/* Layout: a cobalt "검사소" ground where one 3D character lives behind the page;
   opaque paper / ink bands slide over it. Pixel HUD labels = the instrument,
   heavy Korean type = the voice, acid tag = 무료. */
@font-face {
  font-family: "Galmuri11";
  src: url("/fonts/Galmuri11-sub.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0020-007E;
}

:root {
  --cobalt: #1E2BFF;
  --cobalt-2: #0A1290;
  --night: #070A3D;
  --ink: #0B0C1A;
  --paper: #F3F1EA;
  --acid: #D7FF3A;
  --pink: #FF4FA3;
  --cyan: #3DE0FF;
  --white: #FFFFFF;
  --line: rgba(255, 255, 255, .18);
  --glass: rgba(8, 12, 60, .55);
  --muted: rgba(255, 255, 255, .88);
  --ink-muted: #55566A;
  --t1: #D7FF3A; --t2: #FF4FA3; --t3: #FFFFFF;
  --f-kr: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --f-num: "Unbounded", "Pretendard Variable", Pretendard, sans-serif;
  --f-hud: "Galmuri11", "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-kr);
  font-size: 17px;
  line-height: 1.6;
  color: var(--white);
  background: var(--cobalt);
  background-image:
    radial-gradient(120% 80% at 70% 18%, #3A48FF 0%, rgba(58, 72, 255, 0) 55%),
    radial-gradient(90% 70% at 10% 90%, var(--cobalt-2) 0%, rgba(10, 18, 144, 0) 60%),
    linear-gradient(180deg, var(--cobalt) 0%, #1622E0 60%, var(--cobalt-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }

.hud { font-family: var(--f-hud); letter-spacing: .02em; }
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

#stage {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  transition: opacity .35s ease;
}
.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, section, footer, header { position: relative; z-index: 2; }

/* ---------- header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(20, 30, 230, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.top-in {
  max-width: 1180px; margin: 0 auto; height: 58px;
  display: flex; align-items: center; gap: 12px;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.logo { font-family: var(--f-num); font-weight: 900; font-size: 17px; letter-spacing: -.02em; text-decoration: none; display: flex; align-items: baseline; gap: 4px; }
.logo span { font-family: var(--f-hud); font-weight: 400; font-size: 11px; color: var(--acid); }
.top-meta { margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-cta {
  border: 0; background: var(--acid); color: var(--ink); font-weight: 900; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(215, 255, 58, .7); animation: ping 1.6s infinite; flex: none; display: inline-block; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(215, 255, 58, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(215, 255, 58, 0); } }

/* ---------- hero ---------- */
.hero { padding-top: calc(env(safe-area-inset-top, 0px) + 84px); padding-bottom: 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "tags" "title" "sub" "facts" "steps" "actions" "live" "stage";
  gap: 16px;
}
.hero-copy { display: contents; }
.hero-tags { grid-area: tags; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hero-title { grid-area: title; }
.hero-sub { grid-area: sub; }
.hero-actions { grid-area: actions; }
.hero-live { grid-area: live; }
.facts { grid-area: facts; }
.steps { grid-area: steps; }
.hero-stage-wrap { grid-area: stage; display: flex; justify-content: center; }

.free-tag {
  display: inline-block; background: var(--acid); color: var(--ink);
  font-weight: 900; font-size: 24px; line-height: 1; padding: 9px 14px 8px;
  transform: rotate(-2.5deg); box-shadow: 5px 5px 0 var(--pink);
}
.eyebrow { font-size: 15px; font-weight: 700; color: var(--muted); }
.hero-title {
  margin: 6px 0 0; font-weight: 900; letter-spacing: -.045em; line-height: 1.04;
  font-size: clamp(42px, 11.5vw, 104px);
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title .ch { display: inline-block; animation: rise .9s cubic-bezier(.16, .9, .2, 1) both; animation-delay: calc(var(--i) * 32ms + 120ms); }
@keyframes rise { from { transform: translateY(.55em) rotate(7deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ai-word {
  font-style: normal; font-family: var(--f-num); font-weight: 900; letter-spacing: -.04em;
  padding: 0 .04em;
  background: linear-gradient(100deg, var(--acid) 0%, var(--cyan) 35%, var(--pink) 65%, var(--acid) 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 5s linear infinite, glitch 4.2s steps(1) infinite;
  display: inline-block;
}
@keyframes sheen { to { background-position: -240% 0; } }
@keyframes glitch {
  0%, 92%, 100% { transform: none; text-shadow: none; }
  93% { transform: translate(-3px, 1px) skewX(-8deg); }
  95% { transform: translate(3px, -1px) skewX(6deg); }
  97% { transform: translate(-1px, 0); }
}
.hero-sub { margin: 0; font-size: clamp(19px, 2.3vw, 22px); line-height: 1.55; color: var(--white); max-width: 30em; font-weight: 500; }
.hero-sub b { color: var(--acid); font-weight: 800; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--line); max-width: 560px; }
.facts li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1.5px solid var(--line); align-items: baseline; }
.facts span { font-size: 14px; font-weight: 700; color: var(--muted); }
.facts b { font-size: 18px; font-weight: 800; }
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; max-width: 560px; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; background: rgba(5, 10, 80, .45); border: 1.5px solid var(--line); padding: 10px 12px; }
.steps i { font-style: normal; width: 34px; height: 34px; display: grid; place-items: center; background: var(--acid); color: var(--ink); font-family: var(--f-num); font-weight: 900; font-size: 16px; }
.steps b { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; }
.steps small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin-top: 6px; }
.hero-live { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-live b { color: var(--acid); font-weight: 800; }

.btn-main {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  text-align: left; gap: 2px 14px; width: 100%; max-width: 520px;
  border: 3px solid var(--ink); background: var(--acid); color: var(--ink);
  padding: 16px 20px 14px; box-shadow: 7px 7px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-main:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.btn-main:active { transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--ink); }
.btn-main-t { font-weight: 900; font-size: clamp(19px, 2.6vw, 22px); letter-spacing: -.02em; line-height: 1.3; }
.btn-main-s { font-size: 14px; font-weight: 700; grid-column: 1; opacity: .85; }
.btn-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--f-num); font-weight: 900; font-size: 28px; transition: transform .2s ease; }
.btn-main:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
  border: 2px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--white);
  font-weight: 700; padding: 12px 16px; max-width: 520px;
}
.btn-ghost:hover { border-color: var(--white); }

.stage-anchor { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 100%; }
.hero-stage { width: min(88vw, 400px); }
.stage-fallback { display: none; }
body.no-gl .stage-fallback {
  display: block; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, var(--acid) 18%, var(--pink) 60%, var(--cobalt-2) 100%);
  animation: wob 6s ease-in-out infinite;
}
@keyframes wob { 50% { border-radius: 44% 56% 52% 48%; transform: scale(1.04) rotate(8deg); } }
.stage-hud { position: absolute; inset: 4%; font-size: 11px; color: rgba(255, 255, 255, .75); pointer-events: none; }
.stage-hud::before, .stage-hud::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, .7);
}
.stage-hud::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.stage-hud::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.stage-hud span { position: absolute; }
.stage-hud span:first-child { top: 4px; left: 34px; }
.stage-hud span:last-child { bottom: 4px; right: 34px; color: var(--acid); }
.sticker-0won {
  position: absolute; z-index: 3; top: 2%; right: 0;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--pink); color: var(--white); border: 3px solid var(--ink);
  display: grid; place-content: center; text-align: center; line-height: 1.05;
  transform: rotate(12deg); box-shadow: 4px 4px 0 var(--ink);
  animation: bob 3.2s ease-in-out infinite;
}
.sticker-0won span { font-size: 13px; font-weight: 800; }
.sticker-0won b { font-family: var(--f-num); font-size: 24px; font-weight: 900; }
@keyframes bob { 50% { transform: rotate(4deg) translateY(-5px); } }

.event-strip {
  margin: 26px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.event-strip > div { padding: 12px 0 4px; min-width: 0; }
.event-strip dt { font-size: 11px; color: var(--acid); }
.event-strip dd { margin: 0; font-weight: 800; font-size: 16px; }

/* ---------- marquee ---------- */
.marquee-clip { position: relative; z-index: 3; overflow: hidden; padding-block: 14px 0; margin-top: 4px; }
.marquee {
  position: relative; z-index: 3; overflow: hidden;
  background: var(--acid); color: var(--ink);
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(-1.6deg); margin: 0 -12px;
}
.marquee-track { display: flex; width: max-content; gap: 18px; padding: 10px 0; animation: marq 26s linear infinite; }
.marquee span { font-weight: 900; font-size: 22px; white-space: nowrap; letter-spacing: -.02em; }
.marquee i { font-style: normal; font-size: 18px; align-self: center; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- paper sections ---------- */
.paper-sec { background: var(--paper); color: var(--ink); padding-block: 72px; }
.get { margin-top: -22px; padding-top: 84px; }
.sec-k { font-size: 15px; font-weight: 800; color: var(--cobalt); margin: 0 0 6px; }
.sec-k-light { color: var(--acid); }
.sec-title { margin: 0 0 28px; font-weight: 900; letter-spacing: -.04em; line-height: 1.12; font-size: clamp(32px, 6vw, 60px); text-wrap: balance; }
.sec-title.light { color: var(--white); }

.get-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.get-card {
  position: relative; background: var(--white); border: 2.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink); padding: 22px 20px 20px; min-width: 0;
}
.get-card.g1 { background: var(--acid); }
.get-card h3 { margin: 6px 0 6px; font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.get-card p { margin: 0; color: #2A2B3A; }
.get-n { font-family: var(--f-num); font-weight: 900; font-size: 15px; color: var(--ink); opacity: .55; }
.code-row, .band-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; font-size: 13px; }
.code-row span, .band-row span { border: 2px solid var(--ink); padding: 3px 8px; background: var(--white); }
.band-row span:first-child { background: var(--ink); color: var(--acid); }
.mini-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.mini-list li { padding-left: 26px; position: relative; }
.mini-list li::before { position: absolute; left: 0; top: 0; font-family: var(--f-hud); }
.get-card p { font-size: 17px; }
.mini-list .ok::before { content: "[+]"; color: #1C9A55; }
.mini-list .no::before { content: "[-]"; color: #D8236F; }
.radar-sample { width: 100%; max-width: 260px; margin: 8px auto 0; display: block; }
.sample-label { position: absolute; top: 16px; right: 16px; font-size: 11px; background: var(--ink); color: var(--white); padding: 2px 6px; }

/* ---------- test ---------- */
#test { min-height: 100vh; min-height: 100dvh; padding-top: calc(env(safe-area-inset-top, 0px) + 64px); padding-bottom: 40px; }
.test-top { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 42px; height: 42px; flex: none; border: 2px solid var(--line); background: rgba(255, 255, 255, .06);
  font-family: var(--f-num); font-weight: 700; font-size: 18px;
}
.icon-btn:disabled { opacity: .3; cursor: default; }
.progress { flex: 1; height: 12px; border: 2px solid var(--white); padding: 2px; }
.progress-bar { height: 100%; width: 0; background: var(--acid); transition: width .4s cubic-bezier(.2, .9, .2, 1); background-image: repeating-linear-gradient(90deg, transparent 0 10px, rgba(11, 12, 26, .35) 10px 12px); }
.q-count { font-size: 13px; flex: none; }
.quiz-stage { width: min(62vw, 300px); margin: 4px auto 0; }
.test-body { max-width: 640px; }
.q-card {
  background: var(--glass); border: 1.5px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 22px 18px 18px; margin-top: -8px;
}
.q-card.swap { animation: swapIn .45s cubic-bezier(.2, .9, .2, 1); }
@keyframes swapIn { from { transform: translateX(28px); opacity: .1; } to { transform: none; opacity: 1; } }
.q-k { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--acid); }
.q-title { margin: 0 0 16px; font-weight: 900; font-size: clamp(23px, 4.6vw, 30px); letter-spacing: -.035em; line-height: 1.28; text-wrap: balance; }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  border: 2.5px solid var(--ink); background: var(--white); color: var(--ink);
  padding: 15px 16px; font-weight: 800; font-size: 18px; line-height: 1.35;
  box-shadow: 5px 5px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.opt .key { font-family: var(--f-hud); font-weight: 400; font-size: 14px; width: 28px; height: 28px; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--acid); }
.opt:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.opt.on { background: var(--acid); transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }

.form-card {
  background: var(--white); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink); padding: 24px 18px 22px; margin-top: -8px;
  color-scheme: light; display: grid; gap: 16px;
}
.form-card .q-k { color: var(--cobalt); margin: 0; }
.form-card .q-title { margin: 0; }
.form-note { margin: -6px 0 0; font-weight: 700; color: var(--ink-muted); font-size: 15px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-l { font-weight: 900; font-size: 15px; padding: 0; }
.field-l small { font-weight: 600; color: var(--ink-muted); margin-left: 4px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink);
  border: 2.5px solid var(--ink); background: #FAFAF7; padding: 13px 14px; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 92px; font-size: 16px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 4px 4px 0 var(--cobalt); background: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; border: 2px solid var(--ink); padding: 8px 12px; font-weight: 700; font-size: 15px;
  background: #FAFAF7; cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--ink); color: var(--acid); }
.chip input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.field-err, .form-err { color: #D8236F; font-weight: 700; font-size: 14px; min-height: 0; }
.field-err:empty, .form-err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: grid; gap: 8px; border-top: 2px dashed #C9C8C0; padding-top: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 800; font-size: 15px; cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check .box { width: 24px; height: 24px; flex: none; border: 2.5px solid var(--ink); background: #FAFAF7; position: relative; margin-top: 1px; }
.check input:checked + .box { background: var(--acid); }
.check input:checked + .box::after { content: ""; position: absolute; left: 6px; top: 1px; width: 7px; height: 13px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.check input:focus-visible + .box { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.consent-d summary { cursor: pointer; font-size: 14px; color: var(--ink-muted); font-weight: 700; }
.consent-d ul { margin: 8px 0 0; padding-left: 18px; font-size: 15px; color: #3A3B4A; display: grid; gap: 4px; }
.btn-submit { max-width: none; }
.btn-submit[disabled] { opacity: .6; cursor: wait; }

/* ---------- scan ---------- */
.scan {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(5, 8, 50, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.scan-line { position: absolute; left: 0; right: 0; height: 3px; background: var(--acid); box-shadow: 0 0 24px 6px rgba(215, 255, 58, .55); animation: scanY 1.1s ease-in-out infinite alternate; top: 10%; }
@keyframes scanY { to { top: 88%; } }
.scan-box { text-align: left; font-size: 15px; padding: 0 24px; }
.scan-box p { margin: 0 0 10px; color: var(--acid); font-size: 20px; }
.scan-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 220px; }
.scan-box li { display: flex; justify-content: space-between; gap: 18px; animation: rise .35s ease both; }

/* ---------- result ---------- */
#result { padding-top: calc(env(safe-area-inset-top, 0px) + 70px); padding-bottom: 56px; }
.result-wrap { display: grid; gap: 18px; max-width: 980px; }
.done-bar { background: var(--acid); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 14px 16px; display: grid; gap: 2px; }
.done-bar b { font-size: 18px; font-weight: 900; }
.done-bar span { font-weight: 600; font-size: 15px; }
.done-bar.updated { background: var(--white); }
.result-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-items: center; }
.result-stage { width: min(80vw, 380px); margin: 0 auto; }
.result-id { text-align: center; min-width: 0; }
.r-k { margin: 0; font-size: 15px; font-weight: 800; color: var(--muted); }
.r-code {
  margin: 14px 0 0; font-family: var(--f-num); font-weight: 900; line-height: .95; letter-spacing: -.02em;
  font-size: clamp(48px, 14vw, 88px);
  background: linear-gradient(95deg, var(--t1), var(--t2) 55%, var(--t3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.r-letters { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 15px; font-weight: 700; }
.r-letters span { border: 1.5px solid var(--line); padding: 2px 7px; background: rgba(255, 255, 255, .06); }
.r-letters b { color: var(--t1); font-family: var(--f-num); font-weight: 900; margin-right: 5px; }
.r-name { margin: 6px 0 6px; font-weight: 900; font-size: clamp(40px, 9vw, 60px); letter-spacing: -.04em; line-height: 1.15; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; }
.r-name small { font-size: .55em; font-weight: 800; color: var(--t1); }
.r-line { margin: 0 auto; font-size: 19px; font-weight: 600; color: var(--white); max-width: 26em; }

.score-card {
  background: var(--white); color: var(--ink); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
}
.score-main, .score-rank { padding: 18px 18px 14px; min-width: 0; }
.score-rank { border-left: 3px solid var(--ink); }
.score-card .sc-k { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink-muted); }
.score-num, .rank-num { margin: 2px 0 0; font-family: var(--f-num); font-weight: 900; line-height: 1; letter-spacing: -.04em; font-size: clamp(54px, 13vw, 92px); }
.score-num small, .rank-num small { font-size: .3em; letter-spacing: 0; margin-left: 4px; color: var(--ink-muted); font-family: var(--f-kr); font-weight: 800; }
.band-chip { display: inline-block; margin: 10px 0 0; background: var(--ink); color: var(--acid); font-weight: 900; padding: 4px 10px; font-size: 15px; }
.rank-sub { margin: 10px 0 0; font-weight: 800; font-size: 15px; }
.band-note { grid-column: 1 / -1; margin: 0; padding: 12px 18px; border-top: 3px solid var(--ink); font-weight: 700; background: #FAFAF7; }

.r-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.r-panel { background: var(--glass); border: 1.5px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 18px; min-width: 0; }
.panel-k { margin: 0 0 10px; font-size: 16px; font-weight: 900; color: var(--acid); }
.panel-k small { font-weight: 600; color: var(--muted); margin-left: 4px; }
.r-panel .radar { width: 100%; max-width: 340px; margin: 0 auto; display: block; }
.sw-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.sw-list li { position: relative; padding: 10px 12px 10px 44px; font-weight: 800; font-size: 16px; background: rgba(255, 255, 255, .07); border-left: 4px solid var(--acid); }
.sw-list.no li { border-left-color: var(--pink); }
.sw-list li::before { position: absolute; left: 12px; top: 10px; font-family: var(--f-hud); font-weight: 400; color: var(--acid); content: "[+]"; }
.sw-list.no li::before { content: "[-]"; color: var(--pink); }

.fill-card { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--pink); padding: 20px 18px; }
.fill-card .panel-k { color: var(--cobalt); }
.fill-card h3 { margin: 0 0 12px; font-size: 22px; font-weight: 900; letter-spacing: -.03em; line-height: 1.3; }
.fill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fill-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 10px; }
.fill-list .n { font-family: var(--f-num); font-weight: 900; font-size: 20px; }
.fill-list .t { font-weight: 900; font-size: 18px; }
.fill-list .s { display: block; font-weight: 600; font-size: 14px; color: var(--ink-muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-msg { margin: 0; font-size: 13px; color: var(--acid); }

/* radar */
.radar .grid { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.radar .axis { stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.radar .shape { fill: var(--t1); fill-opacity: .35; stroke: var(--t1); stroke-width: 2.5; stroke-linejoin: round; }
.radar .dot { fill: var(--t1); stroke: var(--ink); stroke-width: 1.5; }
.radar .lab { fill: var(--white); font-family: var(--f-kr); font-weight: 800; font-size: 12px; }
.radar .val { fill: var(--t1); font-family: var(--f-hud); font-size: 11px; }
.radar-sample .grid, .radar-sample .axis { stroke: rgba(11, 12, 26, .25); }
.radar-sample .shape { fill: var(--cobalt); fill-opacity: .25; stroke: var(--cobalt); }
.radar-sample .dot { fill: var(--cobalt); stroke: var(--white); }
.radar-sample .lab { fill: var(--ink); }
.radar-sample .val { fill: var(--cobalt); }

/* ---------- ranking ---------- */
.rank-sec { background: var(--ink); padding-block: 72px; color: var(--white); }
.rank-lede { margin: -16px 0 22px; color: var(--muted); }
.band-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.band-tabs::-webkit-scrollbar { display: none; }
.band-tab {
  flex: none; border: 2px solid rgba(255, 255, 255, .25); background: transparent; color: var(--white);
  padding: 8px 12px; font-weight: 800; font-size: 14px; display: flex; gap: 6px; align-items: baseline;
}
.band-tab small { font-weight: 700; font-size: 13px; opacity: .75; }
.band-tab[aria-selected="true"] { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.board { display: grid; gap: 22px; }
.band-group h3 { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.band-group h3 .bk { font-family: var(--f-num); font-weight: 900; font-size: 26px; color: var(--acid); width: 28px; }
.band-group h3 small { font-weight: 700; font-size: 14px; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 52px; gap: 10px; align-items: center;
  padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.row .rk { font-family: var(--f-hud); font-size: 14px; color: var(--muted); }
.row .who { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.row .nm { font-weight: 800; font-size: 16px; }
.row .ph { font-family: var(--f-hud); font-size: 13px; color: var(--muted); }
.row .ty { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.row .ty i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: linear-gradient(135deg, var(--a), var(--b)); }
.row .sc { font-family: var(--f-num); font-weight: 900; font-size: 20px; text-align: right; }
.row.top1 .rk { color: var(--acid); }
.row.top2 .rk { color: var(--cyan); }
.row.top3 .rk { color: var(--pink); }
.row.me { background: rgba(215, 255, 58, .12); outline: 2px solid var(--acid); outline-offset: -2px; }
.ai-legend { margin: -10px 0 18px; font-size: 15px; color: var(--muted); max-width: 40em; }
.ai-chip { display: inline-block; font-family: var(--f-num); font-weight: 900; font-size: 11px; line-height: 1; padding: 4px 6px 3px; background: var(--cyan); color: var(--ink); vertical-align: 2px; letter-spacing: .02em; }
.row.ai .nm { color: rgba(255, 255, 255, .8); }
.row.ai .nm .ai-chip { margin-right: 6px; }
.row.ai .sc { color: rgba(255, 255, 255, .8); }
.row.me .nm::after { content: "나"; margin-left: 6px; font-size: 11px; background: var(--acid); color: var(--ink); padding: 1px 5px; vertical-align: 2px; }
.more-btn { margin-top: 10px; border: 2px solid rgba(255, 255, 255, .25); background: transparent; color: var(--white); padding: 8px 12px; font-weight: 700; font-size: 14px; }
.board-empty { margin: 0; padding: 28px 18px; border: 2px dashed rgba(255, 255, 255, .25); color: var(--muted); font-weight: 700; text-align: center; }
.board-empty b { color: var(--acid); }

/* ---------- lecture ---------- */
.lecture .sec-title { margin-bottom: 26px; }
.curri { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 3px solid var(--ink); }
.curri li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1.5px solid rgba(11, 12, 26, .2); align-items: baseline; }
.curri .n { font-family: var(--f-num); font-weight: 900; font-size: 22px; }
.curri .t { font-weight: 900; font-size: 19px; letter-spacing: -.02em; }
.curri .s { display: block; font-size: 14px; color: var(--ink-muted); font-weight: 600; }
.curri li.lab-item { background: var(--acid); padding-inline: 10px; margin-top: 8px; border: 2.5px solid var(--ink); }
.lec-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.lec-info { margin: 0; display: grid; gap: 0; border-top: 3px solid var(--ink); }
.lec-info > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1.5px solid rgba(11, 12, 26, .2); }
.lec-info dt { font-weight: 900; }
.lec-info dd { margin: 0; font-weight: 800; font-size: 17px; min-width: 0; }
.lec-info small { display: block; font-weight: 600; font-size: 14px; color: var(--ink-muted); }
.map-links { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.map-links a { font-size: 14px; font-weight: 800; text-decoration: none; border: 2px solid var(--ink); padding: 4px 10px; background: var(--white); }
.map-links a:hover { background: var(--acid); }
.speaker { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.speaker img { width: 120px; height: 120px; object-fit: cover; filter: grayscale(1) contrast(1.15); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--cobalt); }
.speaker figcaption { display: grid; gap: 2px; min-width: 0; }
.speaker .sp-k { margin: 0; font-size: 15px; font-weight: 800; color: var(--cobalt); }
.speaker b { font-size: 24px; font-weight: 900; }
.speaker span { font-size: 15px; color: #2A2B3A; font-weight: 600; }
.perk { margin-top: 28px; background: var(--ink); color: var(--white); padding: 18px; border-left: 8px solid var(--acid); }
.perk .perk-k { margin: 0 0 4px; color: var(--acid); font-size: 15px; font-weight: 800; }
.perk p:last-child { margin: 0; font-weight: 700; }
.btn-bottom { margin-top: 32px; }

.foot { background: var(--ink); color: rgba(255, 255, 255, .7); padding-block: 26px 40px; font-size: 14px; }
body[data-mode="landing"] .foot { padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(7, 10, 61, 0), rgba(7, 10, 61, .82) 45%);
  display: flex; justify-content: center; pointer-events: none;
}
.float-cta .btn-main { pointer-events: auto; max-width: 560px; box-shadow: 6px 6px 0 var(--ink); }
.btn-float .btn-main-s { font-weight: 700; }
.foot p { margin: 0 0 4px; }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  .event-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .get-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .r-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .curri { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .curri li.lab-item { grid-column: 1 / -1; }
  .lec-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; }
  .speaker { grid-template-columns: 1fr; }
  .speaker img { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 320px; }
  .q-card, .form-card { padding: 28px 28px 24px; }
}
@media (min-width: 1000px) {
  .hero { padding-top: 110px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-areas: "tags stage" "title stage" "sub stage" "facts stage" "steps stage" "actions stage" "live stage";
    column-gap: 40px; align-content: center;
  }
  .hero-stage { width: min(42vw, 520px); }
  .hero-stage-wrap { align-items: center; }
  .result-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; }
  .result-id { text-align: left; }
  .r-code { font-size: min(6.5vw, 92px); }
  .r-letters, .r-name { justify-content: flex-start; }
  .r-line { margin: 0; }
  .sticker-0won { width: 112px; height: 112px; }
  .sticker-0won b { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.hero-actions:not(:has(> :not([hidden]))) { display: none; }
@media (max-width: 480px) { .top-meta { display: none; } .top-in { justify-content: space-between; } }
