/* ===== DARK BACKGROUND (cinematic + bocchi vibe) ===== */
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  background: linear-gradient(
    180deg,
    #1a0f18 0%,
    #241321 30%,
    #2f182b 55%,
    #3a1e35 75%,
    #46243f 100%
  );

  background-attachment: fixed;
  color: #ffffff;
}

/* dreamy dark overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at top, rgba(255,255,255,0.12), transparent 55%),
    radial-gradient(circle at bottom, rgba(255,120,180,0.18), transparent 60%);
}

/* ===== LAYOUT ===== */
.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 6px;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.muted {
  text-align: center;
  opacity: 0.75;
  font-size: 14px;
}

/* ===== GLASS CARD (STRONG) ===== */
.card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);

  border: 1px solid rgba(255,255,255,0.18);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* ===== LABEL ===== */
.label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 8px;
}

/* ===== INPUT ===== */
input {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: none;
  outline: none;

  background: rgba(0,0,0,0.35);
  color: #ffffff;

  margin-bottom: 12px;
  font-size: 15px;
}

input::placeholder {
  color: rgba(255,255,255,0.6);
}

/* ===== BUTTON ===== */
button {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: none;

  background: linear-gradient(135deg, #ff7abf, #b56cff);
  color: #ffffff;

  font-size: 15px;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 8px 22px rgba(255,122,191,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255,122,191,0.45);
}

/* ===== SCORE LAYOUT ===== */
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kv {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: center;
}

.k {
  opacity: 0.75;
  font-size: 13px;
}

.v {
  font-weight: 600;
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 12px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);

  backdrop-filter: blur(14px);
}

/* Badge levels */
.badge-low {
  background: rgba(255, 99, 132, 0.22);
}

.badge-medium {
  background: rgba(255, 206, 86, 0.22);
}

.badge-high {
  background: rgba(75, 192, 192, 0.22);
}

/* ===== DETAILS / RAW JSON ===== */
.details {
  margin-top: 14px;
}

.details summary {
  cursor: pointer;
  opacity: 0.85;
  font-size: 13px;
}

.details pre {
  margin-top: 10px;
}
