/* =============================================================
   Giacomo Zucco — L'Aula · Telegram Mini App
   Theme: PURE BLACK + Bitcoin ORANGE + WHITE
   Fonts: Playfair Display (serif) + Inter (sans)
   Vibe: manifesto, uncompromising, Bitcoin maximalist
   ============================================================= */

:root {
  color-scheme: dark;
  --bg-0: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1f1f1f;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #ffffff;
  --text-dim: #a1a1aa;
  --text-mute: #71717a;

  --orange: #f7931a;         /* Bitcoin orange */
  --orange-bright: #ff9f2e;
  --orange-dim: #c6761a;
  --orange-glow: rgba(247, 147, 26, 0.3);

  --green: #10b981;
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.3);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-orange: 0 8px 24px rgba(247, 147, 26, 0.4);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  overflow-x: hidden;
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(ellipse at top right, rgba(247, 147, 26, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at bottom left, rgba(247, 147, 26, 0.04) 0%, transparent 50%),
    var(--bg-0);
  min-height: 100vh;
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 24px 20px 40px;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeIn 0.35s ease-out;
}
.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@supports (padding-top: env(safe-area-inset-top)) {
  .screen {
    padding-top: calc(24px + env(safe-area-inset-top));
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
}

/* =============================================================
   HOME
   ============================================================= */

.hero {
  text-align: center;
  margin-bottom: 20px;
  padding-top: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.bolt {
  font-size: 32px;
  color: var(--orange);
  text-shadow: 0 0 20px var(--orange-glow);
  margin-bottom: 4px;
}

.hero-title { margin: 0; }
.hero-title .serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 52px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--orange);
  margin-top: 8px;
  text-transform: uppercase;
}

.rule {
  width: 40px; height: 2px;
  background: var(--orange);
  margin: 14px auto 0;
}

.hero-tag {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 14px auto 0;
  max-width: 320px;
}
.hero-tag s {
  color: var(--text-mute);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
}

/* Motto card */
.motto-card {
  padding: 20px 20px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  position: relative;
}
.motto-mark {
  position: absolute;
  top: 4px; left: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  line-height: 1;
  color: var(--orange);
  opacity: 0.3;
}
.motto-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.motto-author {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Stats */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat-card {
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.stat-label {
  font-size: 10px; font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

/* Rank */
.rank-card {
  padding: 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.rank-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.rank-label {
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--text-mute);
  font-weight: 700; text-transform: uppercase;
}
.rank-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 900;
  font-style: italic;
  color: var(--orange);
  margin-top: 2px;
}
.rank-xp {
  font-size: 14px; font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.rank-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px; overflow: hidden;
}
.rank-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-dim), var(--orange-bright));
  border-radius: 2px;
  transition: width 0.6s ease;
  box-shadow: 0 0 10px var(--orange-glow);
}
.rank-next {
  font-size: 11px; color: var(--text-mute);
  margin-top: 6px;
}

/* Milestone */
.ach-showcase {
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.ach-title {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.ach-counter {
  color: var(--orange);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ach-chip {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  opacity: 0.3;
  transition: all 0.3s;
  filter: grayscale(0.8);
}
.ach-chip.unlocked {
  opacity: 1;
  filter: grayscale(0);
  background: rgba(247, 147, 26, 0.12);
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(247, 147, 26, 0.25);
}

/* Buttons */
.btn-primary {
  width: 100%; padding: 18px 20px;
  background: var(--orange);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 900;
  letter-spacing: 0.15em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: var(--shadow-orange);
  transition: all 0.2s;
  position: relative; overflow: hidden;
  text-transform: uppercase;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--orange-bright);
  opacity: 0; transition: opacity 0.2s;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-arrow { font-size: 18px; }

.btn-ghost {
  width: 100%; margin-top: 10px; padding: 14px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-ghost:active { background: var(--surface-hover); }

.credits {
  text-align: center; font-size: 11px;
  color: var(--text-mute);
  margin-top: 18px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* =============================================================
   GAME HUD
   ============================================================= */

.hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.hud-lives { display: flex; gap: 4px; font-size: 14px; color: var(--orange); }
.hud-lives .heart { transition: all 0.3s; }
.hud-lives .heart.lost { color: var(--bg-3); transform: scale(0.85); }

.hud-timer { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.timer-ring { transform: rotate(-90deg); display: block; }
.timer-track { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 3.5; }
.timer-progress {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
  filter: drop-shadow(0 0 4px var(--orange-glow));
}
.timer-progress.warn { stroke: #fbbf24; }
.timer-progress.danger { stroke: var(--red); animation: pulseRed 0.5s ease infinite alternate; }
@keyframes pulseRed { from { opacity: 1; } to { opacity: 0.5; } }
.timer-num {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hud-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hud-streak {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  background: rgba(247, 147, 26, 0.15);
  border: 1px solid rgba(247, 147, 26, 0.4);
  border-radius: 100px;
  font-size: 12px; font-weight: 800;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  transition: all 0.2s;
}
.hud-streak.hot {
  background: rgba(247, 147, 26, 0.3);
  animation: boltPulse 1s ease infinite;
}
@keyframes boltPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--orange-glow); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px transparent; transform: scale(1.04); }
}

.hud-score {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Round row */
.round-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.round-pill {
  padding: 5px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.mult-pill {
  padding: 5px 12px;
  background: var(--orange);
  color: #000;
  border-radius: 100px;
  font-family: 'Playfair Display', serif;
  font-size: 13px; font-weight: 900;
  font-variant-numeric: tabular-nums;
  animation: multPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes multPop {
  from { transform: scale(0) rotate(-6deg); }
  to { transform: scale(1) rotate(0); }
}

.progress-bar { height: 3px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.progress-fill { height: 100%; background: var(--orange); border-radius: 2px; transition: width 0.5s ease; box-shadow: 0 0 6px var(--orange-glow); }

/* =============================================================
   CARD (statement)
   ============================================================= */

.card-card {
  padding: 24px 22px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  animation: slideIn 0.4s ease;
  min-height: 160px;
  display: flex;
  flex-direction: column;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.card-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--orange);
}
.card-quote {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  line-height: 0.5;
  color: var(--orange);
  opacity: 0.4;
  margin-bottom: 6px;
}
.card-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  text-wrap: balance;
  font-style: italic;
}

.card-reveal {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(247, 147, 26, 0.08);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  animation: revealIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-reveal.wrong {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: var(--red);
}
.reveal-label {
  font-size: 10px; font-weight: 900;
  color: var(--orange);
  letter-spacing: 0.18em;
  margin-bottom: 4px;
}
.card-reveal.wrong .reveal-label { color: var(--red); }
.reveal-text {
  font-family: 'Playfair Display', serif;
  font-size: 13px; font-style: italic;
  line-height: 1.45;
  color: var(--text);
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   VERDICT (the 2 big buttons)
   ============================================================= */

.verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.verdict-btn {
  padding: 22px 12px;
  background: var(--bg-1);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.verdict-btn:not(:disabled):active { transform: scale(0.97); }

.verdict-btn.btn-bitcoin:not(:disabled):hover {
  border-color: var(--orange);
  background: rgba(247, 147, 26, 0.08);
  box-shadow: 0 6px 20px var(--orange-glow);
}
.verdict-btn.btn-fuffa:not(:disabled):hover {
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.08);
}

.verdict-icon {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}
.btn-bitcoin .verdict-icon { color: var(--orange); }
.btn-fuffa .verdict-icon { color: var(--red); }

.verdict-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.verdict-btn.correct {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--green);
  animation: correctPulse 0.6s ease;
}
.verdict-btn.correct .verdict-icon { color: var(--green); }
.verdict-btn.correct .verdict-label { color: var(--green); }

.verdict-btn.wrong {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--red);
  animation: shake 0.4s ease;
}
.verdict-btn.wrong .verdict-icon { color: var(--red); }
.verdict-btn.wrong .verdict-label { color: var(--red); }

@keyframes correctPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.verdict-btn:disabled { cursor: default; }

/* Lifelines */
.lifelines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.lifeline {
  padding: 10px 4px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.lifeline:not(:disabled):active { transform: scale(0.96); }
.lifeline:not(:disabled):hover { border-color: var(--orange); background: rgba(247, 147, 26, 0.08); }
.ll-icon { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 800; color: var(--orange); }
.ll-label { font-size: 9px; font-weight: 700; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.lifeline.used { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.lifeline.used .ll-icon { color: var(--text-mute); text-decoration: line-through; }

.btn-quit {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--text-mute);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-quit:hover { color: var(--red); border-color: var(--red); }

/* =============================================================
   RESULT
   ============================================================= */

#screen-result {
  text-align: center;
  display: none;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-top: calc(40px + env(safe-area-inset-top));
  position: relative;
}
#screen-result.active { display: flex; }

.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

.result-icon {
  font-size: 56px;
  margin-bottom: 8px;
  color: var(--orange);
  text-shadow: 0 0 30px var(--orange-glow);
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

.result-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 900;
  font-style: italic;
  margin: 12px 0 4px;
  color: var(--text);
  text-wrap: balance;
}
.result-sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.result-prize {
  font-family: 'Playfair Display', serif;
  font-size: 56px; font-weight: 900;
  color: var(--orange);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px var(--orange-glow);
  animation: scoreCount 0.8s ease;
}
@keyframes scoreCount { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.rank-badge {
  display: inline-block;
  margin: 0 auto 20px;
  padding: 6px 16px;
  background: var(--orange);
  color: #000;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.result-stats {
  padding: 16px 18px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  text-align: left;
  position: relative; z-index: 2;
}
.rs-row {
  display: flex; justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dotted var(--border);
  gap: 12px;
}
.rs-row-last { border-bottom: none; }
.rs-label { font-size: 13px; color: var(--text-dim); font-family: 'Playfair Display', serif; font-style: italic; }
.rs-value { font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

.result-quote {
  padding: 16px 18px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  text-align: left;
  position: relative; z-index: 2;
}
.rq-mark {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  line-height: 0.5;
  color: var(--orange);
  opacity: 0.4;
  margin-bottom: 8px;
}
.rq-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}

.result-ach {
  padding: 14px 16px;
  background: rgba(247, 147, 26, 0.08);
  border: 1px solid var(--orange);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  text-align: left;
  position: relative; z-index: 2;
}
.result-ach-title {
  font-size: 11px; font-weight: 900;
  color: var(--orange);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.result-ach-list { display: flex; flex-direction: column; gap: 6px; }
.result-ach-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.result-ach-item .ach-ic { font-size: 18px; }

.disclaimer {
  font-size: 10px;
  color: var(--text-mute);
  margin-top: 16px;
  line-height: 1.4;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  animation: fadeIn 0.2s;
}
.modal-box {
  max-width: 440px; width: 100%; max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  position: relative;
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}
.modal-close {
  position: sticky; top: 0; float: right;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 18px; font-weight: 700;
  cursor: pointer;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
  margin-top: -6px; margin-right: -6px;
}
.modal-close:active { transform: scale(0.92); }
.modal-box h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--orange);
}
.modal-section { margin-bottom: 14px; }
.modal-h {
  font-size: 11px; font-weight: 900;
  color: var(--orange);
  margin-bottom: 4px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.modal-section p {
  font-size: 13px; line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  font-family: 'Playfair Display', serif;
}
.modal-section b { color: var(--text); font-weight: 700; }

/* Popups */
.ach-popup {
  position: fixed;
  top: calc(20px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  padding: 12px 18px;
  background: var(--orange);
  border-radius: 100px;
  display: flex; align-items: center; gap: 12px;
  color: #000;
  box-shadow: var(--shadow-orange);
  z-index: 300;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  max-width: 320px;
}
.ach-popup.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.ach-pop-icon { font-size: 26px; line-height: 1; }
.ach-pop-sub { font-size: 9px; font-weight: 900; letter-spacing: 0.18em; opacity: 0.75; }
.ach-pop-title { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 900; font-style: italic; }

.score-pop {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  font-family: 'Playfair Display', serif;
  font-size: 56px; font-weight: 900;
  color: var(--green);
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.7);
  opacity: 0; pointer-events: none;
  z-index: 250;
}
.score-pop.show {
  animation: scoreFloat 1.2s ease forwards;
}
@keyframes scoreFloat {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(0.9); }
}

.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 20px;
  background: var(--bg-3);
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 100px;
  font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
  pointer-events: none;
  max-width: 280px;
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.confetti-piece {
  position: absolute;
  width: 8px; height: 14px;
  opacity: 0;
  animation: confettiFall 2.5s linear forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(-20vh) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
