:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #eef0f7;
  --text: #14162b;
  --muted: #5c6080;
  --line: #dfe2ee;
  --accent: #5b45f5;
  --accent-ink: #ffffff;
  --ready: #5b45f5;
  --wait: #e8404f;
  --go: #12b76a;
  --early: #f08c00;
  --result: #2a2f5a;
  --good: #0f9f5c;
  --bad: #d8364a;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(20, 22, 60, 0.08);
  --font: 'Pretendard Variable', Pretendard, system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d18;
    --surface: #151729;
    --surface-2: #1d2037;
    --text: #eef0ff;
    --muted: #9aa0c3;
    --line: #2a2e4b;
    --accent: #7b6cff;
    --result: #23284f;
    --good: #3ddc97;
    --bad: #ff6b7a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 58px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo svg { width: 26px; height: 26px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 700; }
.lang-switch a { padding: 5px 11px; color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current='true'] { background: var(--text); color: var(--bg); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .off { display: none; }
.icon-btn[aria-pressed='true'] .on { display: none; }
.icon-btn[aria-pressed='true'] .off { display: block; }

/* Hero */
.hero { padding: 28px 0 14px; }
.hero h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 6px; }
.hero p { margin: 0; color: var(--muted); }
.vs-banner { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--text); font-weight: 700; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }

/* Stage */
.dots { display: flex; gap: 8px; justify-content: center; margin: 14px 0 12px; }
.dot { width: 34px; height: 6px; border-radius: 6px; background: var(--line); transition: background 0.2s; }
.dot.on { background: var(--go); }
.dot.cur { background: var(--muted); }

.stage {
  position: relative;
  height: min(60vh, 460px);
  min-height: 300px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #fff;
  background: var(--ready);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: background-color 0.18s ease;
  outline: none;
}
.stage:focus-visible { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow); }
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 18px, transparent 18px 60px);
  pointer-events: none;
}
.stage[data-state='waiting'] { background: var(--wait); }
.stage[data-state='go'] { background: var(--go); transition: none; }
.stage[data-state='early'] { background: var(--early); }
.stage[data-state='result'], .stage[data-state='done'] { background: var(--result); }
.stage[data-state='go'] .stage-title { transform: scale(1.12); }

.stage-icon { width: 64px; height: 64px; margin-bottom: 10px; opacity: 0.95; position: relative; }
.stage[data-state='result'] .stage-icon, .stage[data-state='done'] .stage-icon, .stage[data-state='go'] .stage-icon { display: none; }
.stage[data-state='waiting'] .stage-icon { animation: pulse 1.1s ease-in-out infinite; }
.stage-title { position: relative; font-size: clamp(32px, 7vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.stage-title.big { font-size: clamp(56px, 15vw, 110px); font-variant-numeric: tabular-nums; }
.stage-sub { position: relative; margin-top: 12px; font-size: 16px; opacity: 0.9; max-width: 440px; }
.stage-hint { position: absolute; bottom: 14px; left: 0; right: 0; font-size: 12px; opacity: 0.65; }

.shake { animation: shake 0.38s cubic-bezier(.36,.07,.19,.97); }
.pop { animation: pop 0.28s cubic-bezier(.2,1.4,.4,1); }
.rise { animation: rise 0.45s ease-out; }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(5px); } 30%, 50%, 70% { transform: translateX(-9px); } 40%, 60% { transform: translateX(9px); } }
@keyframes pop { 0% { transform: scale(0.7); opacity: 0.3; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Results */
.results { margin-top: 22px; display: grid; gap: 14px; scroll-margin-top: 72px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kicker { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.score { font-size: clamp(48px, 12vw, 72px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.score small { font-size: 0.4em; font-weight: 800; color: var(--muted); margin-left: 4px; }
.pill { display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--go) 18%, var(--surface)); color: var(--good); font-weight: 800; }
.note { font-size: 14px; color: var(--muted); margin-top: 6px; }
.tier { font-size: clamp(30px, 7vw, 40px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; margin-top: 2px; }
.pb { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--muted); min-height: 1em; }
.pb.new { color: var(--good); }
.vs { padding: 14px 18px; border-radius: 16px; font-weight: 800; font-size: 17px; }
.vs.win { background: color-mix(in srgb, var(--go) 16%, var(--surface)); color: var(--good); }
.vs.lose { background: color-mix(in srgb, var(--wait) 14%, var(--surface)); color: var(--bad); }
.vs.tie { background: var(--surface-2); }

.dist svg { width: 100%; height: auto; display: block; margin-top: 8px; overflow: visible; }
.dist-area { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.dist-line { fill: none; stroke: var(--accent); stroke-width: 3; }
.dist-axis { stroke: var(--line); stroke-width: 2; }
.dist-marker { stroke: var(--text); stroke-width: 2.5; stroke-dasharray: 5 4; }
.dist-label { fill: var(--text); font-weight: 800; font-size: 15px; font-family: var(--font); }
.dist-tick { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { width: 14px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 35%, transparent); }

.trials { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.trials li { display: grid; grid-template-columns: 40px 1fr 104px; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.trials .tl { color: var(--muted); font-size: 14px; font-weight: 700; }
.trials .tb { height: 12px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.trials .tb span { display: block; height: 100%; border-radius: 12px; background: var(--muted); opacity: 0.55; }
.trials li.best .tb span { background: var(--go); opacity: 1; }
.trials .tv { text-align: right; font-weight: 800; }
.trials em { font-style: normal; font-size: 11px; color: var(--good); font-weight: 800; }

.share { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; }
.share img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 14px; background: var(--surface-2); object-fit: cover; display: block; }
.btns { display: grid; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 800 16px var(--font); cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }

/* Ads: hidden until AdSense is approved (set data-ads="on" on <body>) */
.ad-slot { display: none; }
body[data-ads='on'] .ad-slot { display: block; min-height: 120px; margin: 24px 0; }

/* Article */
.article { margin: 44px 0 20px; }
.article h2 { font-size: 24px; letter-spacing: -0.02em; margin: 36px 0 10px; line-height: 1.3; }
.article h3 { font-size: 18px; margin: 22px 0 6px; }
.article p, .article li { color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.article th, .article td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.article th { color: var(--muted); font-weight: 700; font-size: 13px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 8px 0; background: var(--surface); }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 8px 0 2px; }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0 40px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--text); }
.site-footer .copy { margin-left: auto; }

/* Home */
.home-hero { padding: 44px 0 26px; }
.home-hero h1 { font-size: clamp(32px, 7vw, 52px); line-height: 1.15; letter-spacing: -0.035em; margin: 0 0 12px; }
.home-hero h1 em { font-style: normal; color: var(--accent); }
.home-hero p { margin: 0; color: var(--muted); font-size: 17px; max-width: 560px; }
.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 8px; }
.test-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease; }
a.test-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.test-card .ti { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.test-card .ti svg { width: 26px; height: 26px; }
.test-card h2, .test-card h3 { font-size: 20px; margin: 0; letter-spacing: -0.02em; }
.test-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.test-card .go { margin-top: auto; padding-top: 10px; font-weight: 800; color: var(--accent); font-size: 15px; }
.test-card.soon { opacity: 0.6; box-shadow: none; }
.test-card.soon .go { color: var(--muted); }
.badge { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge.live { background: color-mix(in srgb, var(--go) 18%, var(--surface)); color: var(--good); }

/* Plain text pages (about, privacy, contact) */
.prose { max-width: 720px; padding: 34px 0 10px; }
.prose h1 { font-size: clamp(28px, 6vw, 38px); letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 8px; }
.prose .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.prose h2 { font-size: 21px; margin: 30px 0 8px; letter-spacing: -0.02em; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.prose h3 { font-size: 18px; margin: 22px 0 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 700; font-size: 13px; }
.prose .note { margin: 18px 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.prose .note p { margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: var(--muted); }
.guide-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.guide-list a { display: block; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.guide-list a:hover { border-color: var(--accent); }
.guide-list strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.guide-list span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.more-guides { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.more-guides ul { padding-left: 20px; }
.contact-box { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 18px; font-weight: 800; word-break: break-all; }

/* ---------- Hexagon test ---------- */
.hx-intro { display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: center; padding: 34px 0 10px; }
.hx-intro h1 { font-size: clamp(32px, 7vw, 50px); line-height: 1.15; letter-spacing: -0.035em; margin: 0 0 12px; }
.hx-intro h1 em { font-style: normal; background: linear-gradient(90deg, #ff9f1a, #ffcc33); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-intro p { margin: 0 0 18px; color: var(--muted); font-size: 17px; }
.hx-intro .mascot { filter: drop-shadow(0 16px 30px rgba(255, 170, 0, 0.35)); animation: bob 2.6s ease-in-out infinite; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.hx-chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.hx-intro .btn.primary { min-width: 220px; font-size: 18px; min-height: 56px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

#play { scroll-margin-top: 66px; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 18px 0 12px; padding: 0; list-style: none; }
.step { padding: 7px 4px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; line-height: 1.2; display: flex; flex-direction: column; gap: 2px; }
.step b { color: var(--text); font-size: 15px; }
.step.cur { background: var(--accent); color: #fff; }
.step.done { background: color-mix(in srgb, var(--go) 18%, var(--surface)); color: var(--good); }

.arena { position: relative; height: min(68vh, 560px); min-height: 380px; border-radius: var(--radius); overflow: hidden; background: #fff4e0; box-shadow: var(--shadow); user-select: none; -webkit-user-select: none; touch-action: none; -webkit-tap-highlight-color: transparent; }
.arena canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.arena::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--flash, transparent); opacity: 0; }
.arena.flash::after { animation: flashfade 0.35s ease-out; }
.arena.shake { animation: shake 0.35s cubic-bezier(.36,.07,.19,.97); }
@keyframes flashfade { from { opacity: 1; } to { opacity: 0; } }
.hud { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: #1b1836; font-weight: 800; font-size: 14px; pointer-events: none; z-index: 2; background: rgba(255,255,255,0.78); backdrop-filter: blur(4px); border-bottom: 1px solid rgba(0,0,0,0.06); font-variant-numeric: tabular-nums; }
.hud #hud-title { opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud #hud-l { margin-left: auto; }
.hud #hud-r { min-width: 60px; text-align: right; }
.arena-choices { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; z-index: 3; padding: 0 12px; }
.choice { position: relative; width: min(22vw, 92px); aspect-ratio: 1; border-radius: 18px; border: 2px solid rgba(27,24,54,0.12); background: #fff; box-shadow: 0 4px 12px rgba(120,80,20,0.18); font-size: min(10vw, 44px); cursor: pointer; display: grid; place-items: center; }
.choice kbd { position: absolute; top: 4px; left: 7px; font: 700 11px var(--font); color: rgba(27,24,54,0.4); }
.choice:hover { background: #f3f0ff; }
.choice.right { border-color: #12c76f; background: #d6f8e6; }
.choice.wrong { border-color: #e5394b; background: #ffdfe3; }
.arena-overlay { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; background: rgba(20, 18, 45, 0.45); backdrop-filter: blur(4px); }
.ov-card { width: min(100%, 440px); background: var(--surface); color: var(--text); border-radius: 22px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); animation: pop 0.3s cubic-bezier(.2,1.3,.4,1); }
.ov-card.center { text-align: center; }
.ov-kicker { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 0.02em; }
.ov-card h2 { margin: 4px 0 10px; font-size: 28px; letter-spacing: -0.03em; }
.ov-card ul { margin: 0 0 18px; padding-left: 20px; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.ov-card li { margin: 4px 0; }
.ov-btn { width: 100%; font-size: 18px; min-height: 54px; }
.ov-hint { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.ov-score { font-size: 84px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.ov-bar { height: 12px; border-radius: 12px; background: var(--surface-2); overflow: hidden; margin-bottom: 18px; }
.ov-bar span { display: block; height: 100%; border-radius: 12px; background: linear-gradient(90deg, var(--accent), var(--go)); transition: width 0.6s cubic-bezier(.2,.8,.2,1); }

.res-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 26px; color: var(--gink, #fff); background: linear-gradient(135deg, var(--g1, #1c0f4a), var(--g2, #4b2bd1) 55%, var(--g3, #120838)); box-shadow: var(--shadow); display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; align-items: center; }
.res-hero[data-grade='S']::before { content: ''; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.18), transparent 30%); animation: spin 6s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(1turn); } }
.res-hero > * { position: relative; }
.res-mascot svg { width: 100%; height: auto; display: block; animation: bob 2.6s ease-in-out infinite; }
.res-kicker { font-size: 14px; font-weight: 800; opacity: 0.75; }
.res-type { font-size: clamp(34px, 8.5vw, 60px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.12; margin: 4px 0 8px; word-break: keep-all; text-wrap: balance; }
.res-hero p { word-break: keep-all; }
.res-desc { margin: 0 0 16px; opacity: 0.9; font-size: 17px; }
.res-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.res-badge { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 16px; background: rgba(255,255,255,0.12); }
.res-badge .hex { width: 48px; height: 48px; display: grid; place-items: center; font-weight: 900; font-size: 26px; color: var(--g3, #120838); background: var(--gacc, #b9a8ff); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.res-badge small { display: block; font-size: 12px; opacity: 0.75; font-weight: 700; }
.res-badge strong { font-size: 20px; font-weight: 900; }
.res-pb { font-size: 13px; font-weight: 700; opacity: 0.8; margin-top: 10px; min-height: 1em; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radar svg { width: 100%; height: auto; display: block; }
.rd-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.rd-axis { stroke: var(--line); stroke-width: 1; }
.rd-me { fill: color-mix(in srgb, var(--accent) 30%, transparent); stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.rd-friend { fill: color-mix(in srgb, var(--early) 15%, transparent); stroke: var(--early); stroke-width: 2; stroke-dasharray: 6 5; }
.rd-label { fill: var(--text); font: 800 13px var(--font); }
.stat-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.stat-list li { display: grid; grid-template-columns: 84px 1fr 34px; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.stat-list em { grid-column: 2 / 4; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: -6px; }
.stat-list em.up { color: var(--good); }
.stat-list em.down { color: var(--bad); }
.stat-list .sl { font-weight: 800; font-size: 14px; }
.stat-list .sb { height: 12px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.stat-list .sb span { display: block; height: 100%; border-radius: 12px; background: linear-gradient(90deg, var(--accent), var(--go)); }
.stat-list .sv { text-align: right; font-weight: 900; }
.cta-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-top: 22px; border-radius: 18px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #3b1d8f, #6d4dff 60%, #ff9f1a); box-shadow: var(--shadow); }
.cta-banner svg { width: 54px; height: 54px; flex: none; }
.cta-banner strong { display: block; font-size: 17px; }
.cta-banner span { font-size: 14px; opacity: 0.9; }

@media (max-width: 640px) {
  .hx-intro { grid-template-columns: 1fr; text-align: left; }
  .hx-intro .mascot { width: 150px; justify-self: center; grid-row: 1; }
  .res-hero { grid-template-columns: 1fr; text-align: center; }
  .res-mascot { width: 180px; justify-self: center; }
  .res-meta { justify-content: center; }
  .res-grid { grid-template-columns: 1fr; }
  .step { font-size: 10px; padding: 6px 2px; }
  .arena { height: 62vh; }
}

.notfound { text-align: center; padding: 80px 0 40px; }
.notfound .code { font-size: 96px; font-weight: 900; letter-spacing: -0.05em; color: var(--accent); line-height: 1; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; pointer-events: none; transition: 0.25s; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .score-grid { grid-template-columns: 1fr; }
  .share { grid-template-columns: 1fr; }
  .share img { max-width: 260px; margin: 0 auto; }
  .stage { height: 52vh; }
  .site-footer .copy { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
