:root {
  --ink: #121719;
  --ink-soft: #343a40;
  --night: #07100f;
  --night-2: #0d1b1a;
  --paper: #f4f3ef;
  --white: #fff;
  --muted: #6f7775;
  --line: #d9ddda;
  --mint: #49d6bd;
  --mint-deep: #153b39;
  --gold: #d5b36e;
  --danger: #cc5264;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { border: 0; }
a { color: inherit; }

.site-header {
  height: 74px;
  padding: 0 clamp(22px, 5vw, 74px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: var(--ink-soft);
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 190px; height: auto; display: block; }
.edition { font-size: 12px; letter-spacing: .16em; color: #d8dddc; }

main { min-height: calc(100vh - 132px); }
.screen { display: none; }
.screen.is-active { display: block; animation: screenIn .5s ease both; }

.start-screen {
  min-height: calc(100vh - 74px);
  color: var(--white);
  background:
    radial-gradient(circle at 81% 42%, rgba(48, 199, 175, .19), transparent 32%),
    radial-gradient(circle at 58% 115%, rgba(213, 179, 110, .11), transparent 28%),
    linear-gradient(118deg, #030605 0%, #07100e 55%, #10231f 100%);
  overflow: hidden;
  position: relative;
}
.start-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000);
}
.hero-copy {
  width: min(50%, 680px);
  min-height: calc(100vh - 74px);
  padding: clamp(52px, 8vh, 92px) 0 48px clamp(28px, 7.3vw, 112px);
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.festival-tag { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 7px 10px 7px 7px; border: 1px solid rgba(213,179,110,.32); border-radius: 7px; background: rgba(213,179,110,.07); color: #e5ca92; font-size: 10px; letter-spacing: .08em; }
.festival-tag span { padding: 4px 7px; border-radius: 4px; color: #10201e; background: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.festival-tag strong { font-weight: 750; }
.eyebrow { margin: 0 0 22px; font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--mint); }
.eyebrow span { width: 26px; height: 1px; background: currentColor; display: inline-block; vertical-align: middle; margin-right: 10px; }
.hero-copy h1, .result-heading h1 {
  margin: 0;
  font-size: clamp(54px, 6.2vw, 94px);
  line-height: 1.04;
  letter-spacing: -.06em;
}
.hero-accent { display: inline-block; margin-left: .08em; color: transparent; background: linear-gradient(100deg, #ffffff 4%, #7be6d2 64%, #d9b772 105%); background-clip: text; -webkit-background-clip: text; filter: drop-shadow(0 0 22px rgba(76,215,190,.13)); }
.hero-question { display: inline-block; position: relative; }
.hero-lead { max-width: 570px; margin: 25px 0 20px; color: #bbc4c2; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.75; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.meta-row span { border: 1px solid rgba(255,255,255,.18); border-radius: 100px; padding: 8px 14px; font-size: 12px; color: #e2e8e6; background: rgba(255,255,255,.04); }
.hero-reward { width: min(480px, 100%); min-height: 70px; margin-bottom: 20px; padding: 11px 62px 11px 12px; position: relative; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(223,190,119,.38); border-radius: 13px; background: linear-gradient(104deg, rgba(213,179,110,.14), rgba(36,105,94,.12) 52%, rgba(73,214,189,.1)); box-shadow: inset 0 0 28px rgba(213,179,110,.035), 0 12px 38px rgba(0,0,0,.14); overflow: hidden; }
.hero-reward::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 9px); pointer-events: none; }
.hero-reward::after { content: ""; position: absolute; width: 90px; height: 90px; right: -30px; top: -35px; border-radius: 50%; border: 1px solid rgba(213,179,110,.2); box-shadow: 0 0 30px rgba(213,179,110,.08); }
.gift-symbol { width: 42px; height: 42px; flex: 0 0 42px; position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: #14231f; background: linear-gradient(145deg, #f0d49b, #c79d50); box-shadow: 0 0 26px rgba(213,179,110,.28); transform: rotate(-4deg); }
.gift-symbol::before { content: ""; width: 24px; height: 17px; position: absolute; bottom: 8px; border-radius: 2px; background: #203d37; box-shadow: inset 0 7px #2d5e54; }
.gift-symbol::after { content: ""; width: 4px; height: 22px; position: absolute; bottom: 8px; background: #e2bd72; box-shadow: 0 -5px 0 5px transparent; }
.gift-symbol i::before, .gift-symbol i::after { content: ""; width: 10px; height: 8px; position: absolute; top: 7px; border: 3px solid #203d37; border-radius: 9px 9px 2px 9px; }
.gift-symbol i::before { left: 9px; transform: rotate(25deg); }
.gift-symbol i::after { right: 9px; transform: scaleX(-1) rotate(25deg); }
.reward-copy { position: relative; z-index: 2; display: grid; gap: 4px; }
.hero-reward small { color: #d9c79e; font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.hero-reward strong { color: #fff8e8; font-size: 15px; letter-spacing: .02em; }
.hero-reward em { padding: 0 4px; color: var(--mint); font-style: normal; }
.reward-seal { width: 45px; height: 45px; position: absolute; z-index: 2; right: 11px; top: 50%; transform: translateY(-50%) rotate(7deg); display: inline-flex; align-items: center; justify-content: center; border: 1px dashed rgba(213,179,110,.6); border-radius: 50%; color: #ead29e; background: rgba(4,14,12,.52); font-size: 9px; font-weight: 850; line-height: 1.15; text-align: center; letter-spacing: .08em; }
.reward-spark { position: absolute; z-index: 1; color: #e7ca88; font-style: normal; animation: sparkle 2.4s ease-in-out infinite; }
.spark-one { right: 57px; top: 7px; font-size: 9px; }
.spark-two { left: 57%; bottom: 7px; font-size: 6px; animation-delay: -1.1s; }
.primary-btn, .secondary-btn {
  min-height: 54px;
  padding: 0 25px;
  border-radius: 9px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.primary-btn { color: #09221e; background: var(--mint); box-shadow: 0 12px 32px rgba(73,214,189,.2); }
.primary-btn:hover:not(:disabled) { transform: translateY(-2px); background: #67e1ca; box-shadow: 0 17px 38px rgba(73,214,189,.25); }
.primary-btn:disabled { cursor: not-allowed; opacity: .35; box-shadow: none; }
.secondary-btn { color: var(--ink); background: transparent; border: 1px solid #aab0ae; }
.secondary-btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.hero-start-btn { min-width: 272px; position: relative; overflow: hidden; }
.hero-start-btn::before { content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent); animation: buttonShine 3.8s 1.3s ease-in-out infinite; }
.hero-start-btn span { position: relative; z-index: 1; }
.as-of { margin: 14px 0 0; font-size: 10px; letter-spacing: .11em; color: #6f7d79; }

.hero-visual { position: absolute; inset: 0 0 0 48%; pointer-events: none; }
.visual-label { position: absolute; z-index: 3; top: 10%; left: 14%; color: #6f8580; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.visual-label span { margin-right: 8px; padding: 4px 6px; border-radius: 100px; color: #09221e; background: var(--mint); letter-spacing: .1em; box-shadow: 0 0 18px rgba(73,214,189,.32); }
.data-globe { position: absolute; width: min(43vw, 580px); aspect-ratio: 1; top: 48%; left: 50%; transform: translate(-45%, -50%); filter: drop-shadow(0 0 40px rgba(50,209,184,.12)); }
.data-globe::before { content: ""; position: absolute; z-index: 1; inset: 9%; border-radius: 50%; background: conic-gradient(from 195deg, transparent 0 68%, rgba(73,214,189,.16) 82%, rgba(213,179,110,.04) 86%, transparent 89%); mix-blend-mode: screen; animation: radarSweep 6.5s linear infinite; }
.data-globe::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; left: 39%; top: 39%; border: 1px solid rgba(73,214,189,.46); border-radius: 50%; animation: signalPulse 2.8s ease-out infinite; }
.data-globe svg { width: 100%; overflow: visible; filter: drop-shadow(0 0 36px rgba(73,214,189,.1)); }
.globe-grid { fill: none; stroke: #6ce4ce; stroke-opacity: .13; stroke-width: 1; }
.continents { filter: drop-shadow(0 0 12px rgba(73,214,189,.13)); }
.orbit-trace { fill: none; stroke: #d7b36e; stroke-opacity: .32; stroke-width: 1.2; stroke-dasharray: 5 8; animation: orbitDash 18s linear infinite; }
.orbit-satellite { fill: #e0bd76; filter: drop-shadow(0 0 8px rgba(224,189,118,.8)); animation: satellitePulse 2.2s ease-in-out infinite; }
.globe-core circle { fill: none; stroke: #66e0ca; stroke-opacity: .34; }
.globe-core circle:first-child { stroke-dasharray: 5 7; animation: radarSweep 9s linear infinite; transform-origin: 210px 210px; }
.globe-core path { stroke: #65ddc7; stroke-opacity: .25; stroke-width: 1; }
.data-stars circle { fill: #65e5cd; filter: drop-shadow(0 0 7px rgba(101,229,205,.9)); animation: starPulse 2.8s ease-in-out infinite; }
.data-stars circle:nth-child(2) { animation-delay: -.7s; }
.data-stars circle:nth-child(3) { animation-delay: -1.4s; }
.data-stars circle:nth-child(4) { animation-delay: -2.1s; }
.data-stars circle:nth-child(5) { animation-delay: -.35s; }
.orbit { position: absolute; border: 1px solid rgba(74,211,187,.11); border-radius: 50%; top: 50%; left: 50%; transform: translate(-46%, -50%); }
.orbit-one { width: min(56vw, 730px); aspect-ratio: 1; }
.orbit-two { width: min(66vw, 860px); aspect-ratio: 1; }
.float-card {
  position: absolute;
  min-width: 185px;
  padding: 14px 16px 13px 34px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(10,19,18,.74);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 46px rgba(0,0,0,.27);
  display: grid;
  gap: 4px;
}
.float-card i { position: absolute; top: 18px; left: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 13px var(--gold); }
.float-card span { color: #87918f; font-size: 10px; letter-spacing: .07em; }
.float-card strong { color: #e8eeec; font-size: 14px; }
.card-top { top: 26%; right: 9%; }
.card-bottom { bottom: 25%; left: 7%; }
.signal-dot { position: absolute; z-index: 2; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px rgba(73,214,189,.08), 0 0 22px rgba(73,214,189,.72); animation: dotBlink 2.2s ease-in-out infinite; }
.dot-one { top: 34%; left: 29%; }
.dot-two { top: 20%; right: 26%; animation-delay: -.8s; }
.dot-three { bottom: 31%; right: 20%; animation-delay: -1.5s; }
.level-card { position: absolute; z-index: 4; right: 8%; bottom: 8%; width: 260px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #aab8b5; background: rgba(7,16,15,.82); backdrop-filter: blur(10px); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.level-card > span { display: block; margin-bottom: 9px; font-size: 9px; letter-spacing: .12em; }
.level-card div { display: flex; justify-content: space-between; font-size: 10px; }
.level-card b:last-child { color: var(--gold); }
.level-card i { display: block; height: 3px; margin-top: 10px; border-radius: 3px; background: linear-gradient(90deg, #6a7471, #55bca9 55%, var(--gold)); position: relative; }
.level-card i::after { content: ""; position: absolute; width: 8px; height: 8px; right: 1px; top: 50%; transform: translateY(-50%); border-radius: 50%; background: #f3dca9; box-shadow: 0 0 14px rgba(213,179,110,.65); }

.quiz-screen { min-height: calc(100vh - 74px); padding: clamp(42px, 6vw, 84px) 22px; background: #eef0ec; }
.quiz-shell { width: min(920px, 100%); margin: 0 auto; }
.quiz-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.quiz-topbar .eyebrow { margin-bottom: 8px; color: #1c8c7b; }
.progress-label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--muted); }
.text-btn { padding: 7px 0; color: var(--muted); background: transparent; cursor: pointer; border-bottom: 1px solid transparent; }
.text-btn:hover { color: var(--ink); border-color: currentColor; }
.progress-track { height: 3px; background: #d5d9d5; margin: 26px 0 34px; overflow: hidden; }
.progress-track span { display: block; width: 16.6667%; height: 100%; background: var(--mint); transition: width .45s ease; }
.question-card { min-height: 480px; padding: clamp(30px, 5vw, 58px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.topic-tag { display: inline-flex; padding: 7px 11px; margin-bottom: 24px; border-radius: 6px; color: #167665; background: #e3f7f1; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.question-card h2 { margin: 0 0 34px; font-size: clamp(25px, 3.4vw, 38px); line-height: 1.45; letter-spacing: -.03em; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.option {
  min-height: 76px;
  padding: 16px 20px;
  text-align: left;
  color: #333a38;
  background: #f6f7f4;
  border: 1px solid #e2e5e1;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.55;
  transition: .18s ease;
}
.option:hover { border-color: #93cfc4; transform: translateY(-1px); }
.option-key { width: 30px; height: 30px; flex: 0 0 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c9ceca; border-radius: 50%; font-size: 12px; font-weight: 800; }
.option.is-selected { background: #e7f7f3; border-color: #3ccdb3; color: #0e5d50; box-shadow: inset 0 0 0 1px #3ccdb3; }
.option.is-selected .option-key { color: #08231f; background: var(--mint); border-color: var(--mint); }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; }
.selection-hint { color: var(--muted); font-size: 13px; }

.result-screen { padding: clamp(54px, 7vw, 92px) 22px 60px; background: var(--paper); }
.result-shell { width: min(1180px, 100%); margin: 0 auto; }
.result-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 36px; }
.result-heading .eyebrow { color: #1a8776; }
.result-heading h1 { font-size: clamp(42px, 5.8vw, 76px); }
.score-lockup { display: flex; align-items: baseline; color: var(--muted); }
.score-lockup strong { color: var(--ink); font-size: clamp(62px, 8vw, 110px); line-height: .8; letter-spacing: -.08em; }
.score-lockup span { font-size: 17px; margin-left: 12px; }
.result-grid { display: grid; grid-template-columns: 1.75fr .8fr; gap: 22px; align-items: stretch; }
.profile-panel, .reward-card { border-radius: var(--radius); overflow: hidden; }
.profile-panel { background: var(--night); color: var(--white); box-shadow: var(--shadow); }
.profile-panel img { width: 100%; display: block; aspect-ratio: 2 / 1; object-fit: cover; }
.profile-copy { padding: 30px 34px 34px; }
.profile-copy > p:first-child { margin: 0 0 7px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.profile-copy h2 { margin: 0 0 12px; font-size: 33px; }
.profile-copy > p:last-child { margin: 0; color: #aeb9b6; line-height: 1.8; }
.reward-card { padding: 34px 28px; background: #143b37; color: var(--white); display: flex; flex-direction: column; }
.reward-label { color: var(--mint); margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.reward-card h2 { margin: 0 0 14px; font-size: 30px; }
.reward-card > p:not(.reward-label) { color: #b9cbc7; line-height: 1.7; margin: 0 0 24px; }
.redeem-btn { min-height: 52px; padding: 0 18px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #092822; background: var(--mint); box-shadow: 0 12px 30px rgba(73,214,189,.16); text-decoration: none; font-size: 14px; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.redeem-btn:hover { transform: translateY(-2px); background: #62e2cb; box-shadow: 0 16px 34px rgba(73,214,189,.24); }
.redeem-btn span:last-child { font-size: 19px; }
.promo-code { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8eaaa4; font-size: 10px; letter-spacing: .08em; }
.promo-code strong { margin-left: 5px; color: #d7c594; font-size: 11px; letter-spacing: .12em; }
.promo-code button { padding: 4px 0; color: #b8d3cd; background: transparent; border-bottom: 1px solid rgba(184,211,205,.45); font-size: 10px; cursor: pointer; }
.promo-code button:hover { color: var(--white); border-color: var(--mint); }
.booth-reward { margin-top: 26px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.14); }
.booth-badge { display: inline-flex; padding: 6px 9px; margin-bottom: 12px; border-radius: 5px; color: #143b37; background: var(--gold); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.booth-reward h3 { margin: 0 0 11px; font-size: 20px; line-height: 1.4; }
.booth-reward p { margin: 0; color: #b9cbc7; font-size: 13px; line-height: 1.75; }
.booth-reward strong { color: var(--white); }
.review-section { margin-top: 80px; }
.review-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-number { margin: 0 0 10px; font-size: 10px; font-weight: 800; letter-spacing: .18em; color: #1a8776; }
.review-header h2 { margin: 0; font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -.04em; }
.review-header > p { margin: 0; color: var(--muted); }
.review-header > p span { color: var(--ink); font-size: 28px; font-weight: 800; }
.review-list { border-top: 1px solid #cdd2ce; }
.review-item { border-bottom: 1px solid #cdd2ce; }
.review-item summary { list-style: none; padding: 20px 4px; cursor: pointer; display: grid; grid-template-columns: 46px 26px 1fr auto; align-items: center; gap: 10px; }
.review-item summary::-webkit-details-marker { display: none; }
.review-index { font-size: 11px; color: var(--muted); font-weight: 800; }
.status-dot { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: white; font-size: 11px; }
.status-dot.correct { background: #238a76; }
.status-dot.wrong { background: var(--danger); }
.review-question { font-weight: 700; line-height: 1.5; }
.review-toggle { font-size: 20px; color: var(--muted); transition: transform .2s; }
.review-item[open] .review-toggle { transform: rotate(45deg); }
.review-body { padding: 0 4px 24px 82px; color: #59615f; line-height: 1.75; }
.review-body p { margin: 5px 0; }
.review-body strong { color: var(--ink); }
.review-body a { color: #147967; text-underline-offset: 3px; }
.result-actions { margin-top: 42px; display: flex; justify-content: flex-end; gap: 12px; }
.link-btn { text-decoration: none; }
.disclaimer { margin: 28px 0 0; color: #888e8c; font-size: 11px; text-align: right; }

footer { min-height: 58px; padding: 18px clamp(22px, 5vw, 74px); display: flex; justify-content: space-between; gap: 24px; color: #afb9b7; background: #262c30; font-size: 11px; letter-spacing: .08em; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 30; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 7px; color: white; background: #111a18; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes radarSweep { to { transform: rotate(360deg); } }
@keyframes signalPulse { 0% { transform: scale(.55); opacity: .8; } 85%, 100% { transform: scale(4.4); opacity: 0; } }
@keyframes dotBlink { 0%, 100% { opacity: .45; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.22); } }
@keyframes buttonShine { 0%, 66% { transform: translateX(-120%) skewX(-22deg); } 92%, 100% { transform: translateX(140%) skewX(-22deg); } }
@keyframes sparkle { 0%, 100% { opacity: .35; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.25) rotate(25deg); } }
@keyframes orbitDash { to { stroke-dashoffset: -130; } }
@keyframes satellitePulse { 0%, 100% { opacity: .7; transform: scale(.85); transform-origin: 387px 119px; } 50% { opacity: 1; transform: scale(1.3); transform-origin: 387px 119px; } }
@keyframes starPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

@media (max-width: 900px) {
  .start-screen.is-active { display: flex; flex-direction: column; }
  .hero-copy { width: 100%; min-height: auto; padding: 64px 28px 42px; }
  .hero-visual { position: relative; inset: auto; height: 470px; }
  .data-globe { width: min(88vw, 470px); transform: translate(-50%, -50%); }
  .orbit-one { width: 560px; }
  .orbit-two { width: 680px; }
  .card-top { top: 11%; right: 7%; }
  .card-bottom { bottom: 21%; left: 6%; }
  .visual-label { top: 1%; left: 7%; }
  .level-card { right: 6%; bottom: 4%; }
  .result-grid { grid-template-columns: 1fr; }
  .reward-card { min-height: 350px; }
}

@media (max-width: 640px) {
  .site-header { height: 66px; padding: 0 18px; }
  .brand img { width: 158px; }
  .edition { font-size: 9px; }
  .hero-copy { padding-top: 50px; }
  .festival-tag { margin-bottom: 18px; }
  .hero-copy h1 { font-size: 49px; }
  .hero-lead { margin-top: 24px; }
  .hero-reward { padding-right: 58px; }
  .hero-start-btn { width: 100%; }
  .hero-visual { height: 430px; }
  .float-card { min-width: 154px; }
  .card-top { right: 2%; }
  .card-bottom { left: 2%; bottom: 23%; }
  .level-card { width: 232px; right: 4%; bottom: 3%; }
  .visual-label { left: 5%; }
  .quiz-screen { padding: 35px 16px 52px; }
  .question-card { padding: 28px 20px; min-height: 520px; }
  .question-card h2 { font-size: 25px; margin-bottom: 27px; }
  .options { grid-template-columns: 1fr; }
  .option { min-height: 61px; }
  .quiz-actions { align-items: stretch; flex-direction: column; }
  .selection-hint { margin: 0; }
  .quiz-actions .primary-btn { width: 100%; }
  .result-heading { align-items: flex-start; }
  .score-lockup strong { font-size: 68px; }
  .score-lockup span { display: inline; margin-left: 8px; font-size: 13px; }
  .profile-copy { padding: 25px 22px 28px; }
  .profile-copy h2 { font-size: 28px; }
  .review-section { margin-top: 58px; }
  .review-header { align-items: flex-start; }
  .review-header > p { white-space: nowrap; }
  .review-item summary { grid-template-columns: 30px 22px 1fr auto; padding: 17px 0; gap: 7px; }
  .review-body { padding-left: 59px; }
  .result-actions { flex-direction: column-reverse; }
  .result-actions > * { width: 100%; }
  .disclaimer { text-align: left; line-height: 1.6; }
  footer { flex-direction: column; gap: 8px; }
}

@media (max-height: 800px) and (min-width: 641px) {
  .quiz-screen { padding-top: 30px; padding-bottom: 34px; }
  .progress-track { margin: 17px 0 22px; }
  .question-card { min-height: 0; padding: 34px 42px; }
  .topic-tag { margin-bottom: 17px; }
  .question-card h2 { margin-bottom: 23px; font-size: 30px; }
  .option { min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
  .quiz-actions { margin-top: 16px; }
}

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