/* =========================================================
   FIRE LINE — style
   ========================================================= */
:root {
  --bg: #0b0b0e;
  --fire: #ff3b1f;
  --ember: #ff8a00;
  --blue: #2e7bff;
  --hivis: #e8ff3a;
  --ink: #f2ede6;
  --ink-dim: rgba(242, 237, 230, .62);
  --ink-faint: rgba(242, 237, 230, .18);
  --glass: rgba(18, 16, 18, .42);
  --line: rgba(255, 255, 255, .12);
  --f-display: 'Bebas Neue', 'Black Han Sans', sans-serif;
  --f-kr-display: 'Black Han Sans', 'Noto Sans KR', sans-serif;
  --f-body: 'Noto Sans KR', system-ui, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  body, a, button, input { cursor: none; }
}
::selection { background: var(--fire); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
em { font-style: normal; color: var(--ember); }

/* ---------- canvas & overlays ---------- */
#webgl {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  display: block; z-index: 0;
  outline: none;
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.35), transparent 18%, transparent 80%, rgba(0,0,0,.5));
}
.alarm-flash {
  position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0;
  background: radial-gradient(80% 80% at 50% 50%, transparent 30%, rgba(255, 30, 10, .55));
  mix-blend-mode: screen;
}
.speed-lines {
  position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.07) 0deg .6deg, transparent .6deg 7deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 28%, #000 70%);
          mask: radial-gradient(circle at 50% 50%, transparent 28%, #000 70%);
  animation: speedspin 1.2s linear infinite;
}
@keyframes speedspin { to { transform: rotate(7deg) scale(1.02); } }

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: #050506;
  display: grid; place-items: center;
  transition: clip-path 1.4s var(--ease), opacity .3s 1.3s;
  clip-path: inset(0 0 0 0);
}
#loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__inner { width: min(420px, 80vw); text-align: center; }
.loader__num {
  position: relative;
  font-family: var(--f-display);
  font-size: clamp(120px, 26vw, 240px);
  line-height: .85;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .18);
}
.loader__num::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: transparent;
  background: linear-gradient(0deg, #ff2a00, #ff8a00 40%, #ffe08a 70%, #fff 100%);
  background-size: 100% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 0;
  clip-path: inset(calc(100% - var(--p, 0%)) 0 0 0);
  filter: drop-shadow(0 0 24px rgba(255, 90, 0, .6));
  animation: flameshift 1.2s ease-in-out infinite alternate;
}
@keyframes flameshift { to { background-position: 0 100%; } }
.loader__bar { margin: 28px auto 12px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--fire), var(--ember)); box-shadow: 0 0 12px var(--ember); }
.loader__meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; color: var(--ink-dim); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; mix-blend-mode: screen; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; box-shadow: 0 0 10px #ffb24a, 0 0 22px var(--fire); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 160, 80, .55);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), border-color .3s, background .3s;
}
.cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; border-color: var(--ember); background: rgba(255, 90, 20, .08); }
.cursor.is-drag .cursor__ring { width: 90px; height: 90px; margin: -45px 0 0 -45px; border-style: dashed; }
.spark {
  position: fixed; left: 0; top: 0; width: 4px; height: 4px; border-radius: 50%;
  pointer-events: none; z-index: 199;
  background: #ffcf7a; box-shadow: 0 0 8px #ff7a1a;
  animation: spark .9s ease-out forwards;
}
@keyframes spark {
  to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #7a1200, var(--fire), var(--ember)); }
.progress__tip {
  position: absolute; top: -5px; left: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, #ffb04a 40%, rgba(255, 60, 0, 0) 70%);
  filter: blur(.5px);
  animation: flicker .12s infinite alternate;
}
@keyframes flicker { from { transform: scale(.85); opacity: .8; } to { transform: scale(1.25); opacity: 1; } }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 26px; letter-spacing: .08em; }
.logo b { color: var(--fire); font-weight: 400; }
.logo__mark {
  width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--ember), var(--fire));
  box-shadow: 0 0 16px rgba(255, 70, 0, .7);
}
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__hint { font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--ink-dim); }
.btn-sound {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .25em; color: var(--ink-dim);
}
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; }
.btn-sound[aria-pressed="true"] { color: var(--ember); }
.btn-sound[aria-pressed="true"] .eq i { animation: eq .8s ease-in-out infinite alternate; }
.btn-sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.btn-sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
.btn-sound[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { to { height: 12px; } }
.btn-cta {
  position: relative; overflow: hidden;
  padding: 10px 22px; border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: .05em;
  background: var(--fire); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 10px 30px -10px rgba(255, 59, 31, .9);
  transition: transform .4s var(--ease);
}
.btn-cta::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-cta:hover { transform: translateY(-2px); }
.btn-cta:hover::after { transform: translateX(120%); }

/* ---------- side dots ---------- */
.dots {
  position: fixed; right: calc(var(--gutter) * .5); top: 50%; transform: translateY(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 14px;
}
.dots button { position: relative; width: 10px; height: 10px; display: grid; place-items: center; }
.dots button::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); transition: all .4s var(--ease); }
.dots button span {
  position: absolute; right: 22px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .25em; color: var(--ink-dim);
  opacity: 0; transform: translateX(8px); transition: all .4s var(--ease);
}
.dots button:hover span, .dots button.is-active span { opacity: 1; transform: none; }
.dots button.is-active::before { width: 10px; height: 10px; background: var(--fire); box-shadow: 0 0 12px var(--fire); }

/* ---------- sections common ---------- */
main { position: relative; z-index: 10; }
.sec { position: relative; min-height: 100vh; padding: 120px var(--gutter) 80px; }
.sec-num { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .35em; color: var(--ember); margin-bottom: 18px; }
.sec-num::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--ember); vertical-align: middle; margin-right: 12px; }
.sec-title {
  margin: 0 0 22px;
  font-family: var(--f-kr-display); font-weight: 400;
  font-size: clamp(36px, 6vw, 92px); line-height: 1.05; letter-spacing: -.01em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.sec-desc { margin: 0; max-width: 520px; font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-dim); font-weight: 300; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.sec-desc b { color: var(--ink); font-weight: 500; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-desc { margin: 0 auto; }
.tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--ink-dim); }
.tag--live { display: inline-flex; align-items: center; gap: 8px; color: var(--fire); }
.tag--live i { width: 7px; height: 7px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 10px var(--fire); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* split text */
.split { overflow: hidden; }
.split .ch { display: inline-block; will-change: transform; }
.split .word { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.reveal { will-change: transform, opacity; }

kbd {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 30px; padding: 0 8px;
  font-family: var(--f-mono); font-size: 11px; color: var(--ink);
  border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}
kbd.wide { min-width: 64px; }
kbd.is-down { border-color: var(--ember); color: var(--ember); transform: translateY(2px); border-bottom-width: 1px; }
.key-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-dim); }
.key-row span { margin-left: 8px; }

/* ---------- HERO ---------- */
.sec--hero { display: flex; flex-direction: column; justify-content: space-between; height: 100vh; padding-top: 96px; }
.hero__top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero__title {
  margin: 0; align-self: flex-start;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(88px, 19vw, 330px); line-height: .82; letter-spacing: -.005em;
}
.hero__title .line { display: block; }
.fire-text {
  color: transparent;
  background: linear-gradient(0deg, #ff2200 0%, #ff6a00 30%, #ffb347 60%, #fff3c4 90%);
  background-size: 100% 180%;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 40px rgba(255, 80, 0, .45));
  animation: flameshift 2.4s ease-in-out infinite alternate;
}
.fire-text .ch {
  color: transparent;
  background: linear-gradient(0deg, #ff2200 0%, #ff6a00 30%, #ffb347 60%, #fff3c4 90%);
  background-size: 100% 180%;
  -webkit-background-clip: text; background-clip: text;
  animation: flameshift 2.4s ease-in-out infinite alternate;
}
.hero__bottom { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 40px; }
.hero__lead { margin: 0; font-size: clamp(18px, 1.8vw, 26px); font-weight: 300; line-height: 1.5; }
.hero__keys { display: grid; gap: 10px; }
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--ink-dim); }
.scroll-hint i { position: relative; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.scroll-hint i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ember); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- MISSION ---------- */
.sec--mission { min-height: 130vh; display: flex; flex-direction: column; justify-content: center; gap: 60px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); perspective: 1200px; }
.card, .rule {
  position: relative; overflow: hidden;
  padding: 34px 30px 28px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 40%, rgba(255, 60, 20, .05));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transform-style: preserve-3d;
  transition: border-color .4s;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.card:hover, .rule:hover { border-color: rgba(255, 138, 0, .45); }
.card__glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 170, 90, .22), transparent 40%);
}
.card:hover .card__glare, .rule:hover .card__glare { opacity: 1; }
.card__no { position: absolute; top: 22px; right: 26px; font-family: var(--f-display); font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--ink-faint); }
.card__icon { width: 54px; height: 54px; color: var(--ember); margin-bottom: 40px; transform: translateZ(40px); filter: drop-shadow(0 0 12px rgba(255, 120, 0, .5)); }
.card h3 { margin: 0 0 12px; font-family: var(--f-kr-display); font-weight: 400; font-size: 30px; line-height: 1.1; transform: translateZ(30px); }
.card h3 small { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--ink-dim); }
.card p { margin: 0 0 30px; color: var(--ink-dim); font-size: 14.5px; font-weight: 300; transform: translateZ(20px); }
.card__foot { display: flex; justify-content: space-between; align-items: end; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-dim); }
.card__foot b { font-family: var(--f-display); font-size: 42px; line-height: .9; color: var(--ink); font-weight: 400; }
.card__foot small { font-size: 14px; color: var(--ember); margin-left: 3px; }

/* ---------- GEAR ---------- */
.sec--gear { height: 100vh; display: flex; align-items: center; }
.gear__panel { max-width: 460px; }
.gear__stats { display: flex; gap: 34px; margin-top: 42px; }
.gear__stats div { display: flex; flex-direction: column; }
.gear__stats b { font-family: var(--f-display); font-weight: 400; font-size: 54px; line-height: 1; color: var(--ink); }
.gear__stats span { font-size: 12px; color: var(--ink-dim); }
.gear__drag-hint {
  position: absolute; right: 38%; bottom: 12%;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--ink-dim);
  display: flex; align-items: center; gap: 12px;
}
.gear__drag-hint::before, .gear__drag-hint::after { content: '‹'; font-size: 18px; color: var(--ember); animation: nudge 1.4s ease-in-out infinite; }
.gear__drag-hint::after { content: '›'; animation-direction: reverse; }
@keyframes nudge { 50% { transform: translateX(-5px); } }
.gear__mode { position: absolute; right: var(--gutter); bottom: 60px; display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--ink-dim); }
.gear__mode i { width: 120px; height: 1px; background: var(--line); position: relative; }
.gear__mode i::after { content: ''; position: absolute; left: 0; top: -1px; height: 3px; width: var(--p, 0%); background: var(--ember); }

#hotspots { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.hotspot {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; pointer-events: auto;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .4s;
}
.hotspot.is-visible { opacity: 1; }
.hotspot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 90, 20, .5), 0 0 18px var(--ember); }
.hotspot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--ember); animation: ping 1.8s var(--ease) infinite; }
.hotspot span {
  position: absolute; left: 30px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--ink);
  padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid var(--line);
}
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.spec {
  position: fixed; z-index: 70; right: var(--gutter); top: 50%;
  width: min(360px, calc(100vw - 32px));
  padding: 30px 28px; border-radius: 20px;
  background: rgba(14, 12, 14, .72); border: 1px solid rgba(255, 138, 0, .35);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px -30px #000, 0 0 60px -20px rgba(255, 80, 0, .4);
  transform: translate(30px, -50%); opacity: 0; pointer-events: none;
  transition: all .6s var(--ease);
}
.spec.is-open { transform: translate(0, -50%); opacity: 1; pointer-events: auto; }
.spec__close { position: absolute; top: 14px; right: 18px; font-size: 24px; color: var(--ink-dim); }
.spec__tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--ember); }
.spec__title { margin: 8px 0 10px; font-family: var(--f-kr-display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.spec__desc { margin: 0 0 20px; color: var(--ink-dim); font-size: 14px; }
.spec__list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 13px; }
.spec__list dt { color: var(--ink-dim); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; }
.spec__list dd { margin: 0; text-align: right; font-weight: 500; }

/* ---------- THE CALL ---------- */
.sec--call { height: 100vh; overflow: hidden; }
.call__timer { position: absolute; left: var(--gutter); bottom: 70px; }
.call__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .35em; color: var(--ember); }
.call__clock {
  font-family: var(--f-display); font-size: clamp(90px, 15vw, 220px); line-height: .85;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
  text-shadow: 0 0 40px rgba(255, 60, 20, .45);
}
.call__track { width: min(420px, 60vw); height: 2px; background: var(--line); margin-top: 18px; }
.call__track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--fire), var(--ember)); box-shadow: 0 0 10px var(--fire); }
.call__steps { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: min(380px, 42vw); margin: 0; padding: 0; list-style: none; }
.call__steps li {
  position: absolute; left: 0; right: 0; top: 0; transform: translateY(-50%);
  padding: 28px 28px 26px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
}
.call__steps .t { font-family: var(--f-mono); font-size: 12px; color: var(--ember); letter-spacing: .2em; }
.call__steps h3 { margin: 6px 0 10px; font-family: var(--f-kr-display); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; }
.call__steps p { margin: 0; color: var(--ink-dim); font-size: 14.5px; font-weight: 300; }
.call__badge {
  position: absolute; left: var(--gutter); top: 100px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--ink-dim);
}
.call__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 10px var(--fire); animation: blink .6s steps(2) infinite; }

/* ---------- NUMBERS ---------- */
.sec--numbers { min-height: 120vh; display: flex; flex-direction: column; justify-content: space-between; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 30px 22px 10px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(54px, 7vw, 110px); line-height: .9; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #ffb36b 70%, var(--fire));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: 14px; font-size: 14px; font-weight: 500; }
.stat small { color: var(--ink-dim); font-size: 12px; }
.source { margin: 24px 0 0; font-size: 11px; color: var(--ink-dim); }

/* ---------- PLAY ---------- */
.sec--play { height: 100vh; display: flex; align-items: center; }
.play__intro {
  max-width: 520px; padding: 44px 40px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(20, 16, 18, .7), rgba(20, 16, 18, .35));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.play__intro .sec-title { font-size: clamp(34px, 4.4vw, 64px); }
.play__keys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 30px 0 34px; }
.btn-start {
  position: relative; width: 100%; padding: 20px 0; border-radius: 14px; overflow: hidden;
  font-family: var(--f-display); font-size: 26px; letter-spacing: .14em;
  background: linear-gradient(90deg, #c51d00, var(--fire), var(--ember), var(--fire), #c51d00);
  background-size: 300% 100%;
  animation: flow 4s linear infinite;
  box-shadow: 0 20px 50px -18px rgba(255, 59, 31, .95), inset 0 0 0 1px rgba(255,255,255,.2);
  transition: transform .3s var(--ease);
}
.btn-start:hover { transform: scale(1.02); }
.btn-start span { position: relative; animation: blink 1.2s steps(2) infinite; }
@keyframes flow { to { background-position: 300% 0; } }
.play__best { margin-top: 16px; text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; color: var(--ink-dim); }
.play__best b { color: var(--hivis); }

/* HUD */
.hud { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .5s; }
body.is-gaming .hud { opacity: 1; visibility: visible; }
body.is-gaming main, body.is-gaming .dots, body.is-gaming .topbar, body.is-gaming .progress { opacity: 0 !important; pointer-events: none; }
main, .dots, .progress { transition: opacity .5s; }
.hud__top { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.hud__box { min-width: 120px; padding: 10px 18px; border-radius: 12px; text-align: center; background: rgba(0,0,0,.45); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.hud__box span { display: block; font-family: var(--f-mono); font-size: 9px; letter-spacing: .3em; color: var(--ink-dim); }
.hud__box b { font-family: var(--f-display); font-size: 34px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.hud__time.is-low { color: var(--fire); animation: blink .5s steps(2) infinite; }
.hud__water { position: absolute; left: 30px; bottom: 34px; width: 220px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .3em; color: var(--ink-dim); }
.hud__gauge { margin-top: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid var(--line); }
.hud__gauge i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #1b5cff, #6ad4ff); box-shadow: 0 0 12px #3a9cff; transition: width .1s linear; }
.hud__speed { position: absolute; right: 34px; bottom: 26px; text-align: right; }
.hud__speed b { display: block; font-family: var(--f-display); font-size: 80px; line-height: .85; font-weight: 400; font-variant-numeric: tabular-nums; }
.hud__speed span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--ink-dim); }
.hud__msg { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-family: var(--f-display); font-size: clamp(48px, 9vw, 130px); letter-spacing: .05em; text-align: center; line-height: .9; text-shadow: 0 0 40px rgba(255, 60, 20, .7); white-space: nowrap; }
.hud__msg small { display: block; font-family: var(--f-body); font-size: 16px; font-weight: 500; letter-spacing: 0; margin-top: 10px; text-shadow: none; color: var(--ink-dim); }
.hud__esc { position: absolute; top: 34px; right: 34px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .25em; color: var(--ink-dim); }
.touchpad { display: none; }
@media (hover: none), (pointer: coarse) {
  .touchpad { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: 56px 56px; gap: 8px; position: absolute; left: 20px; bottom: 90px; pointer-events: auto; }
  .touchpad button { border-radius: 12px; background: rgba(0,0,0,.5); border: 1px solid var(--line); font-size: 18px; touch-action: none; }
  .touchpad [data-k="KeyA"] { grid-column: 1; grid-row: 2; }
  .touchpad [data-k="KeyW"] { grid-column: 2; grid-row: 1; }
  .touchpad [data-k="KeyS"] { grid-column: 2; grid-row: 2; }
  .touchpad [data-k="KeyD"] { grid-column: 3; grid-row: 2; }
  .touchpad .tp-water { position: fixed; right: 24px; bottom: 140px; width: 84px; height: 84px; border-radius: 50%; font-size: 30px; background: rgba(30, 90, 255, .35); }
  .hud__water { bottom: 26px; left: 20px; width: 170px; }
}
.result {
  position: fixed; z-index: 90; left: 50%; top: 50%;
  width: min(460px, calc(100vw - 32px));
  padding: 40px 36px; border-radius: 26px; text-align: center;
  background: rgba(12, 10, 12, .8); border: 1px solid rgba(255, 138, 0, .35);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 50px 100px -30px #000, 0 0 80px -20px rgba(255, 80, 0, .5);
  transform: translate(-50%, -44%) scale(.96); opacity: 0; visibility: hidden;
  transition: all .6s var(--ease);
}
.result.is-open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; }
.result__tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .35em; color: var(--ember); }
.result__title { margin: 10px 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 54px; letter-spacing: .04em; line-height: 1; }
.result__score { font-family: var(--f-display); font-size: 110px; line-height: .9; color: var(--hivis); text-shadow: 0 0 40px rgba(232, 255, 58, .35); }
.result__desc { color: var(--ink-dim); margin: 10px 0 26px; }
.result__btns { display: flex; gap: 10px; }
.result__btns button { flex: 1; padding: 15px 0; border-radius: 12px; font-weight: 700; border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: background .3s; }
.result__btns .result__retry { background: var(--fire); border-color: var(--fire); }
.result__btns button:hover { background: rgba(255,255,255,.12); }
.result__btns .result__retry:hover { background: #ff5a3c; }

/* ---------- PASS ---------- */
.sec--pass { height: 100vh; display: flex; align-items: center; }
.pass__panel { max-width: 480px; }
.pass__panel .sec-title { font-size: clamp(34px, 4.6vw, 70px); }
.pass__steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.pass__steps li {
  display: flex; gap: 18px; align-items: center;
  padding: 14px 18px; border-radius: 14px;
  border: 1px solid transparent;
  opacity: .32; transition: all .5s var(--ease);
}
.pass__steps li.is-active { opacity: 1; background: var(--glass); border-color: rgba(255, 138, 0, .4); backdrop-filter: blur(12px); transform: translateX(10px); }
.pass__steps li.is-done { opacity: .6; }
.pass__steps b { font-family: var(--f-display); font-weight: 400; font-size: 48px; line-height: 1; width: 36px; color: var(--ember); }
.pass__steps h4 { margin: 0; font-size: 18px; font-weight: 700; }
.pass__steps p { margin: 2px 0 0; font-size: 13px; color: var(--ink-dim); }

/* ---------- SAFETY RULES ---------- */
.sec--safety { min-height: 120vh; display: flex; flex-direction: column; justify-content: center; gap: 60px; }
.rules { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; perspective: 1200px; }
.rule { padding: 26px 22px; min-height: 290px; display: flex; flex-direction: column; }
.rule__n { font-family: var(--f-mono); font-size: 11px; color: var(--ember); letter-spacing: .2em; }
.rule__big {
  margin: auto 0 18px; font-family: var(--f-display); font-size: clamp(44px, 4.4vw, 70px); line-height: .9;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 160, 80, .7);
  transform: translateZ(40px);
}
.rule h4 { margin: 0 0 8px; font-size: 17px; font-weight: 700; transform: translateZ(25px); }
.rule p { margin: 0; font-size: 13px; color: var(--ink-dim); font-weight: 300; }

/* ---------- TRIBUTE ---------- */
.sec--tribute { min-height: 130vh; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 30px; }
.tribute__inner { margin-top: 18vh; text-align: center; }
.tribute__title { margin: 0 0 24px; font-family: var(--f-kr-display); font-weight: 400; font-size: clamp(36px, 6.4vw, 100px); line-height: 1.12; text-shadow: 0 0 60px rgba(120, 160, 255, .25); }
.tribute__inner .sec-desc { margin: 0 auto; }
.thanks {
  display: flex; gap: 8px; max-width: 480px; margin: 44px auto 14px; padding: 6px;
  border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.thanks input { flex: 1; min-width: 0; padding: 12px 18px; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; }
.thanks input::placeholder { color: var(--ink-dim); }
.thanks button { padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #111; font-weight: 700; font-size: 14px; white-space: nowrap; }
.thanks__count { font-size: 12px; color: var(--ink-dim); }
.thanks__count b { color: var(--ember); }
.thanks-fly {
  position: fixed; z-index: 85; pointer-events: none;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 140, 40, .18); border: 1px solid rgba(255, 170, 90, .6);
  color: #fff; font-size: 14px; white-space: nowrap;
  box-shadow: 0 0 30px rgba(255, 120, 0, .5);
}
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-dim); }
.footer b { color: var(--fire); font-family: var(--f-display); font-size: 18px; font-weight: 400; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .rules { grid-template-columns: repeat(3, 1fr); }
  .topbar__hint { display: none; }
}
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat { border-bottom: 1px solid var(--line); }
  .rules { grid-template-columns: 1fr 1fr; }
  .hero__bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero__keys, .scroll-hint { display: none; }
  .call__steps { left: var(--gutter); right: var(--gutter); width: auto; top: 34%; }
  .call__timer { bottom: 40px; }
  .gear__drag-hint { right: var(--gutter); bottom: 100px; }
  .call__badge { display: none; }
  .gear__panel { align-self: flex-start; margin-top: 4vh; }
  .gear__stats b { font-size: 40px; }
  .pass__panel { align-self: flex-start; }
  .pass__steps li { padding: 10px 12px; }
  .play__intro { padding: 30px 24px; }
  .play__keys { grid-template-columns: 1fr; }
  .dots { display: none; }
  .btn-sound__label { display: none; }
  .hud__top { top: 16px; gap: 6px; }
  .hud__box { min-width: 84px; padding: 8px 10px; }
  .hud__box b { font-size: 26px; }
  .hud__speed b { font-size: 52px; }
}
@media (max-width: 480px) {
  .btn-cta { padding: 9px 16px; font-size: 12px; }
  .rules { grid-template-columns: 1fr; }
  .rule { min-height: 0; }
  .rule__big { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .speed-lines, .fire-text, .loader__num::after { animation: none !important; }
}
