:root {
  --bg: #07060d;
  --bg-2: #0d0a1c;
  --ink: #f4f1ff;
  --muted: #a39fc0;
  --gold: #f5c76b;
  --gold-deep: #c8912f;
  --accent: #2dd4bf;
  --danger: #ff5d6c;
  --radius: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-lg: 0 40px 120px -30px rgba(0,0,0,.8);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: radial-gradient(130% 120% at 50% -10%, var(--bg-2) 0%, var(--bg) 55%);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---------- Ambient background ---------- */
.bg-aurora {
  position: fixed; inset: -20%;
  background:
    radial-gradient(40% 50% at 20% 20%, rgba(45,212,191,.16), transparent 60%),
    radial-gradient(45% 45% at 80% 15%, rgba(245,199,107,.14), transparent 60%),
    radial-gradient(50% 50% at 70% 85%, rgba(167,139,250,.16), transparent 60%);
  filter: blur(10px);
  animation: drift 24s ease-in-out infinite alternate;
  z-index: 0; pointer-events: none;
}
@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.05); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.12); }
}
.bg-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-stars { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.bg-stars .star {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; opacity: .5;
  animation: twinkle var(--dur,4s) ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .05; transform: scale(.4); } }

/* ---------- Stage / scenes ---------- */
.stage {
  position: relative; z-index: 2;
  min-height: 100dvh;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
}
.scene {
  width: min(560px, 100%);
  text-align: center;
  animation: scene-in .9s var(--ease-out) both;
}
.scene.leaving { animation: scene-out .5s var(--ease-out) both; }
@keyframes scene-in { from { opacity: 0; transform: translateY(26px) scale(.98); } }
@keyframes scene-out { to { opacity: 0; transform: translateY(-20px) scale(.98); filter: blur(4px); } }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: .72rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 18px;
}
.title {
  font-family: "Fraunces", serif; font-weight: 900;
  font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.02;
  letter-spacing: -.02em; margin-bottom: 14px;
}
.title .shine {
  background: linear-gradient(100deg, var(--gold) 20%, #fff6df 50%, var(--gold-deep) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  color: var(--muted); font-size: clamp(1rem, 2.6vw, 1.12rem);
  line-height: 1.6; max-width: 42ch; margin: 0 auto 30px;
}

/* ---------- Buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 1.02rem;
  padding: 16px 34px; border-radius: 999px;
  color: #1a1206; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ffe3a3, var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 18px 40px -16px rgba(245,199,107,.7), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), filter .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -18px rgba(245,199,107,.85); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { filter: grayscale(.5) brightness(.8); cursor: not-allowed; transform: none; }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  transform: translateX(-120%); transition: none;
}
.btn.sheen::after { animation: sheen 2.6s ease-in-out infinite; }
@keyframes sheen { 0%,60% { transform: translateX(-120%);} 100% { transform: translateX(120%);} }

.btn.ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }

/* ---------- Intro: gift box ---------- */
.giftbox {
  position: relative; width: 180px; height: 160px;
  margin: 12px auto 22px; cursor: pointer; outline: none;
  animation: gift-breathe 2.4s ease-in-out infinite;
}
@keyframes gift-breathe { 50% { transform: translateY(-5px) scale(1.02); } }
.giftbox:hover { filter: brightness(1.06); }
.giftbox.opened { animation: none; cursor: default; }
.giftbox.shaking { animation: gift-shake .5s ease-in-out 1; }
@keyframes gift-shake {
  0%,100% { transform: rotate(0); } 20% { transform: rotate(-5deg); }
  40% { transform: rotate(5deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(3deg); }
}
.gift-glow {
  position: absolute; top: 40%; left: 50%; width: 10px; height: 10px;
  transform: translate(-50%,-50%) scale(0); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,245,210,.95), rgba(245,199,107,.4) 40%, transparent 70%);
  z-index: 1; opacity: 0;
}
.giftbox.opened .gift-glow { animation: glow-burst 1.1s var(--ease-out) forwards; }
@keyframes glow-burst {
  0% { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(34); opacity: 0; }
}
.gift-base {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 150px; height: 108px; border-radius: 12px; z-index: 2;
  background: linear-gradient(145deg, #34e3cf, #0f766e);
  box-shadow: inset 0 -12px 22px rgba(0,0,0,.28), 0 24px 46px -12px rgba(0,0,0,.6);
}
.gift-base::after {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 28px; height: 100%; background: linear-gradient(#f7d488, #c8912f);
}
.gift-lid {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  width: 170px; height: 46px; border-radius: 10px; z-index: 3;
  background: linear-gradient(145deg, #3df0db, #0f766e);
  box-shadow: 0 10px 18px rgba(0,0,0,.4);
  transition: transform .9s var(--ease-out), opacity .9s;
}
.gift-lid::after {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 28px; height: 100%; background: linear-gradient(#f7d488, #c8912f);
}
.bow { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 2.4rem; }
.giftbox.opened .gift-lid { transform: translateX(-50%) translateY(-220px) rotate(-24deg); opacity: 0; }

.gift-message {
  font-family: "Fraunces", serif; font-weight: 900;
  font-size: clamp(1.5rem, 5.5vw, 2.3rem); line-height: 1.25;
  letter-spacing: -.01em; margin: 10px auto 24px; max-width: 18ch;
  opacity: 0; transform: translateY(16px) scale(.96);
}
.gift-message.show { animation: msg-in 1.2s var(--ease-out) both; }
@keyframes msg-in { to { opacity: 1; transform: translateY(0) scale(1); } }
.gift-message .heart {
  display: inline-block; margin-top: 8px;
  background: linear-gradient(100deg, #ff8fab, #ff5d6c, #ffb3c1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat { 10%,30% { transform: scale(1.06); } 20% { transform: scale(.98); } }

/* ---------- Wheel scene ---------- */
.wheel-wrap {
  position: relative; width: min(84vw, 430px); aspect-ratio: 1;
  margin: 6px auto 30px;
}
.wheel-canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }

.wheel-rim {
  position: absolute; inset: -3%; border-radius: 50%;
  background: conic-gradient(from 0deg, #f5c76b, #7a5a1c, #ffe9b8, #8a6a26, #f5c76b);
  z-index: -1; filter: blur(.5px);
  box-shadow: 0 0 0 2px rgba(0,0,0,.4) inset, 0 20px 70px -20px rgba(245,199,107,.5);
}
.wheel-hub {
  position: absolute; top: 50%; left: 50%; width: 19%; aspect-ratio: 1;
  transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4d6, var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.7), inset 0 2px 6px rgba(255,255,255,.6);
  display: grid; place-items: center; font-size: 1.4rem; z-index: 3;
}
.wheel-pointer {
  position: absolute; top: -4%; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 4;
  border-left: 17px solid transparent; border-right: 17px solid transparent;
  border-top: 30px solid var(--gold);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.6));
  transform-origin: 50% 0%;
}
.wheel-pointer.tick { animation: pointer-tick .09s ease-out; }
@keyframes pointer-tick { 50% { transform: translateX(-50%) rotate(-11deg); } }

.result-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Fraunces", serif; font-weight: 900;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  padding: 10px 26px; border-radius: 999px; margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(45,212,191,.2), rgba(45,212,191,.05));
  box-shadow: inset 0 0 0 1.5px rgba(45,212,191,.5), 0 20px 50px -20px rgba(45,212,191,.6);
  color: #eafffb; opacity: 0; transform: scale(.6);
}
.result-badge.show { animation: pop .7s var(--ease-out) both; }
@keyframes pop { 0% { opacity:0; transform: scale(.4);} 60% { transform: scale(1.12);} 100% { opacity:1; transform: scale(1);} }

.status-line {
  min-height: 1.4em; color: var(--muted); font-weight: 600;
  letter-spacing: .02em; margin-bottom: 26px; font-size: 1.05rem;
  transition: color .3s;
}
.status-line.hot { color: var(--gold); }
.status-line.tense { color: var(--danger); }

/* screen shake used across scenes */
.shake { animation: shake .5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
  10%,90% { transform: translateX(-1px); }
  20%,80% { transform: translateX(3px); }
  30%,50%,70% { transform: translateX(-6px); }
  40%,60% { transform: translateX(6px); }
}

/* ---------- Destination roulette ---------- */
.chip-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin: 10px auto 26px; max-width: 420px;
}
.chip {
  position: relative; padding: 18px 14px; border-radius: 16px;
  font-weight: 700; font-size: 1.05rem; color: var(--ink);
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.1);
  transition: all .25s var(--ease-out); overflow: hidden;
}
.chip .flag { margin-right: 8px; }
.chip.scan {
  color: #1a1206;
  background: linear-gradient(135deg, #ffe3a3, var(--gold));
  box-shadow: 0 10px 30px -10px rgba(245,199,107,.7);
  transform: translateY(-2px) scale(1.03);
}
.chip.hot {
  color: var(--gold);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 30px -6px rgba(245,199,107,.6);
}
.chip.out {
  opacity: .32; filter: grayscale(.8);
  box-shadow: inset 0 0 0 1.5px rgba(255,93,108,.4);
}
.chip.out::after {
  content: "✕"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); font-size: 1.6rem; color: var(--danger);
}
.chip.winner {
  color: #eafffb;
  background: linear-gradient(135deg, rgba(45,212,191,.25), rgba(45,212,191,.06));
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 44px -6px rgba(45,212,191,.7);
  animation: pop .6s var(--ease-out) both;
}
.chip.targeted {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,93,108,.28), rgba(255,93,108,.08));
  box-shadow: inset 0 0 0 2px var(--danger), 0 0 36px -6px rgba(255,93,108,.7);
  animation: target-pulse 1s ease-in-out infinite;
}
@keyframes target-pulse { 50% { box-shadow: inset 0 0 0 2px var(--danger), 0 0 52px -2px rgba(255,93,108,.9); } }
.chip .num {
  position: absolute; top: 7px; left: 9px;
  font-size: .72rem; font-weight: 800; opacity: .55;
  width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 50%; background: rgba(0,0,0,.25);
}

/* ---------- Dice ---------- */
.dice-stage {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; margin: 6px auto 20px;
}
.die {
  width: 92px; height: 92px; border-radius: 20px; position: relative;
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 900; font-size: 3rem; color: #1a1206;
  background: linear-gradient(145deg, #fff6df, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 18px 36px -14px rgba(0,0,0,.7), inset 0 2px 4px rgba(255,255,255,.7),
              inset 0 -6px 12px rgba(120,80,10,.4);
}
.die .faces-tag {
  position: absolute; bottom: 6px; right: 10px;
  font-family: "Inter", sans-serif; font-size: .62rem; font-weight: 700;
  opacity: .55; letter-spacing: .04em;
}
.die.rolling { animation: tumble .5s linear infinite; }
@keyframes tumble {
  0%   { transform: rotate(0) scale(1); }
  25%  { transform: rotate(-12deg) translateY(-6px) scale(1.04); }
  50%  { transform: rotate(10deg) translateY(2px) scale(.98); }
  75%  { transform: rotate(-6deg) translateY(-3px) scale(1.02); }
  100% { transform: rotate(0) scale(1); }
}
.die.landed { animation: die-land .5s var(--ease-out) both; }
@keyframes die-land { 0% { transform: scale(1.25); } 60% { transform: scale(.92); } 100% { transform: scale(1); } }

.reroll-token {
  font-size: .82rem; color: var(--muted); font-weight: 600; min-height: 1.2em;
}
.reroll-token b { color: var(--gold); }

.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.small { padding: 13px 24px; font-size: .95rem; }

/* ---------- Map scene ---------- */
.map-frame {
  position: relative; width: min(88vw, 480px); aspect-ratio: 4/3;
  margin: 8px auto 24px; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(245,199,107,.3);
}
#map { position: absolute; inset: 0; background: #0a1020; }
.map-frame .scanline {
  position: absolute; inset: 0; z-index: 500; pointer-events: none;
  background: linear-gradient(transparent 0%, rgba(45,212,191,.12) 50%, transparent 100%);
  background-size: 100% 12px; mix-blend-mode: screen; opacity: .5;
  animation: scanmove 2.4s linear infinite;
}
@keyframes scanmove { to { background-position: 0 240px; } }
.map-frame .coord {
  position: absolute; left: 12px; bottom: 10px; z-index: 600;
  font-family: ui-monospace, monospace; font-size: .78rem;
  color: var(--accent); text-shadow: 0 1px 4px #000; pointer-events: none;
}
.map-frame .pin-label {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%) translateY(-14px);
  z-index: 600; padding: 7px 16px; border-radius: 999px; opacity: 0;
  font-weight: 800; font-family: "Fraunces", serif; font-size: 1.1rem;
  background: rgba(7,6,13,.75); color: #fff; backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1.5px rgba(245,199,107,.5); transition: all .6s var(--ease-out);
}
.map-frame .pin-label.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* Leaflet dark tweaks */
.leaflet-container { background: #0a1020 !important; }
.leaflet-control-attribution { font-size: 9px !important; opacity: .4; }

/* ---------- Finale: loading + boarding pass ---------- */
.load-track {
  width: min(86vw, 420px); height: 12px; margin: 22px auto 10px;
  background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
}
.load-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 16px rgba(245,199,107,.6); transition: width .25s linear;
}
.load-pct { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 800; }

.pass-wrap { perspective: 1400px; margin: 10px auto 22px; width: min(92vw, 460px); }
.pass {
  position: relative; display: flex; text-align: left;
  border-radius: 18px; overflow: hidden; color: #10141f;
  background: linear-gradient(135deg, #ffffff, #eef2fb);
  box-shadow: var(--shadow-lg);
  transform: rotateY(90deg); opacity: 0;
}
.pass.flip { animation: pass-flip 1s var(--ease-out) both; }
@keyframes pass-flip {
  0% { transform: rotateY(90deg) scale(.9); opacity: 0; }
  60% { transform: rotateY(-8deg) scale(1.02); opacity: 1; }
  100% { transform: rotateY(0) scale(1); opacity: 1; }
}
.pass-main { flex: 1; padding: 16px 18px; }
.pass-stub {
  width: 108px; padding: 16px 12px; color: #fff;
  background: linear-gradient(160deg, #0f766e, #134e4a);
  border-left: 2px dashed rgba(255,255,255,.5);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
}
.pass-airline {
  display: flex; align-items: center; gap: 8px; font-weight: 900;
  font-family: "Fraunces", serif; font-size: 1.05rem; color: #0f766e; margin-bottom: 14px;
}
.pass-kind {
  margin-left: auto; font-family: "Inter", sans-serif; font-weight: 800;
  font-size: .62rem; letter-spacing: .12em; color: #fff;
  background: #0f766e; padding: 3px 10px; border-radius: 999px;
}
.pass-wrap + .pass-wrap { margin-top: 14px; }
.pass-route { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pass-route .code { font-family: "Fraunces", serif; font-weight: 900; font-size: 2.1rem; line-height: 1; }
.pass-route .city { font-size: .72rem; color: #5b6472; text-transform: uppercase; letter-spacing: .08em; }
.pass-path { flex: 1; position: relative; height: 24px; }
.pass-path .line {
  position: absolute; top: 50%; left: 0; right: 0; height: 0;
  border-top: 2px dashed #9aa4b6;
}
.pass-path .plane {
  position: absolute; top: 50%; left: 0; transform: translate(-50%,-50%);
  font-size: 1.2rem; transition: left 2.4s cubic-bezier(.45,0,.2,1);
}
.pass-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pass-details .f .k { font-size: .58rem; color: #8a93a3; text-transform: uppercase; letter-spacing: .06em; }
.pass-details .f .v { font-size: .82rem; font-weight: 800; }
.pass-stub .barcode {
  width: 100%; height: 56px; align-self: stretch;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 9px);
  opacity: .9; border-radius: 3px;
}
.pass-stub .stub-label { font-size: .6rem; letter-spacing: .14em; opacity: .85; }
.pass-stub .stub-dest { font-family: "Fraunces", serif; font-weight: 900; font-size: 1.5rem; }

.postcard {
  max-width: 440px; margin: 6px auto 0; padding: 18px 22px; border-radius: 16px;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1.5px rgba(245,199,107,.3);
  color: var(--ink); font-size: 1.02rem; line-height: 1.6;
}
.postcard .sig { display: block; margin-top: 10px; font-family: "Fraunces", serif; font-style: italic; color: var(--gold); }
.postcard .disclaimer { display: block; margin-top: 12px; font-size: .72rem; font-style: italic; color: var(--muted); opacity: .8; }

/* ---------- Warm-up: disclaimer + quiz ---------- */
.disclaimer-card {
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
  max-width: 460px; margin: 6px auto 28px; padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,93,108,.16), rgba(255,93,108,.05));
  box-shadow: inset 0 0 0 1.5px rgba(255,93,108,.45), 0 20px 50px -24px rgba(255,93,108,.6);
  animation: warn-in .8s var(--ease-out) both;
}
@keyframes warn-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.disclaimer-icon {
  font-size: 1.6rem; line-height: 1.4; flex: none;
  animation: warn-pulse 1.6s ease-in-out infinite;
}
@keyframes warn-pulse { 50% { transform: scale(1.15) rotate(-6deg); } }
.disclaimer-text { color: #ffd9dd; font-weight: 600; line-height: 1.55; font-size: 1rem; }

.quiz { animation: scene-in .6s var(--ease-out) both; }
.quiz-count {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 10px;
}
.quiz-q {
  font-family: "Fraunces", serif; font-weight: 900;
  font-size: clamp(1.3rem, 4.6vw, 1.8rem); line-height: 1.2; margin-bottom: 20px;
}
.quiz-choices { display: grid; gap: 12px; max-width: 420px; margin: 0 auto 14px; }
.quiz-choice {
  appearance: none; border: 0; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 1.02rem; color: var(--ink); text-align: left;
  padding: 15px 20px; border-radius: 14px;
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out),
              opacity .22s, background .22s, color .22s;
}
.quiz-choice:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 14px 30px -14px rgba(245,199,107,.5);
}
.quiz-choice.picked {
  color: #1a1206;
  background: linear-gradient(135deg, #ffe3a3, var(--gold));
  box-shadow: 0 12px 30px -12px rgba(245,199,107,.7); transform: translateY(-1px);
}
.quiz-choice.dim { opacity: .4; }
.quiz-choice:disabled { cursor: default; }
.quiz-choice:disabled:hover { transform: none; }
.quiz-choice.correct {
  color: #04120d;
  background: linear-gradient(135deg, #7ff0c8, var(--accent));
  box-shadow: 0 12px 30px -12px rgba(45,212,191,.7);
}
.quiz-choice.wrong {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,93,108,.92), rgba(255,93,108,.6));
  box-shadow: 0 12px 30px -12px rgba(255,93,108,.6);
}
.quiz-tag {
  display: inline-block; margin-bottom: 14px;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--gold); padding: 5px 13px; border-radius: 999px;
  background: rgba(245,199,107,.1); box-shadow: inset 0 0 0 1.5px rgba(245,199,107,.3);
}
.quiz-react {
  min-height: 1.4em; color: var(--gold); font-weight: 700;
  font-size: 1.05rem; margin: 6px 0 20px;
}
.quiz-react.good { color: var(--accent); }
.quiz-react.bad { color: var(--danger); }

/* ---------- Sound toggle ---------- */
.sound-toggle {
  position: fixed; top: 16px; right: 16px; z-index: 6;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.08); color: #fff; font-size: 1rem;
  backdrop-filter: blur(8px); transition: background .2s;
}
.sound-toggle:hover { background: rgba(255,255,255,.16); }
.sound-toggle .sound-off { display: none; }
.sound-toggle.muted .sound-on { display: none; }
.sound-toggle.muted .sound-off { display: inline; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
