:root {
  color-scheme: dark;
  --navy: #081a33;
  --navy-2: #0e2b4f;
  --ice: #edf8ff;
  --blue: #9eddf4;
  --coral: #ff5b4d;
  --lilac: #c8c4ff;
  --muted: rgba(237, 248, 255, 0.72);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  background: var(--navy);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--navy);
  color: var(--ice);
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ice);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 12px;
  background: linear-gradient(180deg, rgba(8, 26, 51, 0.72), transparent);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ice);
  text-decoration: none;
  pointer-events: auto;
}

.brand__puck {
  width: 25px;
  height: 25px;
  border: 6px solid var(--ice);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(158, 221, 244, 0.35), 0 0 22px rgba(158, 221, 244, 0.6);
}

.brand b, .brand small { display: block; }

.brand b {
  font-size: 12px;
  letter-spacing: 0.16em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.topbar__year {
  padding: 7px 10px;
  border: 1px solid rgba(237, 248, 255, 0.24);
  border-radius: 999px;
  color: var(--muted);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
}

.world {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: var(--navy);
}

.world__camera {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  will-change: transform;
}

.world__camera img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.02);
}

.world__wash,
.world__vignette {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.world__wash {
  background: linear-gradient(180deg, rgba(3, 12, 29, 0.1) 0%, rgba(3, 12, 29, 0) 34%, rgba(3, 12, 29, 0.14) 70%, rgba(3, 12, 29, 0.42) 100%);
  mix-blend-mode: multiply;
}

.world__vignette {
  background:
    radial-gradient(circle at 50% 45%, transparent 34%, rgba(4, 12, 28, 0.36) 100%),
    linear-gradient(0deg, rgba(8, 26, 51, 0.88) 0%, transparent 38%);
}

.world__flare {
  position: absolute;
  z-index: 3;
  width: 52vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(158, 221, 244, 0.18);
  filter: blur(42px);
  mix-blend-mode: screen;
  opacity: 0.75;
  will-change: transform;
}

.world__flare--one { top: 10%; right: -28%; }
.world__flare--two { bottom: 8%; left: -34%; background: rgba(255, 91, 77, 0.16); }

.world__snow { position: absolute; z-index: 4; inset: 0; overflow: hidden; }

.snowflake {
  position: absolute;
  top: -6vh;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(237, 248, 255, 0.88);
  box-shadow: 0 0 8px rgba(158, 221, 244, 0.9);
  animation: snow-fall var(--duration) linear var(--delay) infinite;
  opacity: var(--opacity);
}

@keyframes snow-fall {
  to { transform: translate3d(var(--drift), 112vh, 0) rotate(180deg); }
}

.route {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: max(10px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(-50%);
}

.route__line {
  position: absolute;
  z-index: -1;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  overflow: hidden;
  transform: translateX(-50%);
  background: rgba(237, 248, 255, 0.24);
}

.route__line i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: 50% 0;
  background: var(--coral);
  will-change: transform;
}

.route__dot {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.route__dot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(237, 248, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(8, 26, 51, 0.2);
  transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.route__dot.is-active i {
  transform: scale(1.6);
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 91, 77, 0.2);
}

.route__dot:focus-visible {
  border-radius: 50%;
  outline: 2px solid rgba(237, 248, 255, 0.72);
  outline-offset: 0;
}

.story { position: relative; z-index: 10; }

.chapter {
  position: relative;
  min-height: 132svh;
  pointer-events: none;
}

.chapter--hero { min-height: 145svh; }
.chapter--finale { min-height: 155svh; }

.copy {
  position: fixed;
  z-index: 20;
  right: 42px;
  bottom: calc(108px + var(--safe-bottom));
  left: 18px;
  max-width: 480px;
  padding: 18px 18px 17px;
  border: 1px solid rgba(237, 248, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(6, 19, 42, 0.76), rgba(8, 26, 51, 0.46));
  box-shadow: 0 18px 60px rgba(1, 8, 22, 0.28);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.97);
  transform-origin: 50% 100%;
  transition: opacity 360ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.chapter.is-active .copy {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.copy--hero {
  top: calc(92px + env(safe-area-inset-top, 0px));
  bottom: auto;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: 0 2px 24px rgba(1, 8, 22, 0.72);
}

.copy__step {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: rgba(237, 248, 255, 0.58);
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
}

.copy__step span { color: var(--coral); }

.copy__eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

h1, h2 {
  margin: 8px 0 0;
  font-weight: 900;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

h1 {
  max-width: 340px;
  font-size: clamp(37px, 10.8vw, 53px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(29px, 8.2vw, 40px);
  line-height: 1.1;
}

.copy__lead {
  max-width: 31em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.58;
  word-break: keep-all;
}

.hero-date {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 0 9px;
  margin-top: 18px;
  padding: 11px 14px 10px;
  border: 1px solid rgba(237, 248, 255, 0.28);
  border-radius: 14px;
  background: rgba(8, 26, 51, 0.4);
  backdrop-filter: blur(8px);
}

.hero-date span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--coral);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.hero-date b { font: 900 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.08em; }
.hero-date small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.12em; }

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: rgba(237, 248, 255, 0.7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.scroll-hint i {
  position: relative;
  width: 17px;
  height: 27px;
  border: 1px solid rgba(237, 248, 255, 0.55);
  border-radius: 10px;
}

.scroll-hint i::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--coral);
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 8px); }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 7px 10px;
  border: 1px solid rgba(158, 221, 244, 0.25);
  border-radius: 999px;
  background: rgba(158, 221, 244, 0.1);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 15px 0 0;
}

.fact-grid div {
  min-height: 74px;
  padding: 11px;
  border: 1px solid rgba(237, 248, 255, 0.13);
  border-radius: 14px;
  background: rgba(237, 248, 255, 0.06);
}

.fact-grid dt {
  color: var(--coral);
  font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.15em;
}

.fact-grid dd {
  margin: 7px 0 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.fact-grid dd strong { font-size: 23px; line-height: 1; }
.fact-grid dd small { color: var(--muted); font-size: 10px; font-weight: 600; }

.format-stats {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.format-stats span {
  flex: 1;
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(200, 196, 255, 0.12);
  color: rgba(237, 248, 255, 0.84);
  font-size: 10px;
  text-align: center;
}

.format-stats b { color: var(--lilac); }

.schedule-open {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid rgba(237, 248, 255, 0.28);
  border-radius: 13px;
  background: rgba(8, 26, 51, 0.52);
  color: var(--ice);
  font: 800 12px/1 inherit;
  cursor: pointer;
}

.schedule-open svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.notice { margin: 8px 0 0; color: rgba(237, 248, 255, 0.72); font-size: 11px; line-height: 1.4; }

.host {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(237, 248, 255, 0.14);
}

.host p { margin: 4px 0; color: rgba(237, 248, 255, 0.72); font-size: 9px; line-height: 1.45; }
.host span { display: inline-block; width: 55px; color: var(--blue); font-weight: 800; }

.inline-register {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 13px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.floating-cta {
  position: fixed;
  z-index: 60;
  right: 14px;
  bottom: calc(14px + var(--safe-bottom));
  left: 14px;
  display: grid;
  min-height: 72px;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  gap: 11px;
  padding: 8px 16px 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  background: linear-gradient(135deg, #ff6a5d, var(--coral));
  box-shadow: 0 12px 36px rgba(1, 8, 22, 0.44), 0 0 0 5px rgba(255, 91, 77, 0.12);
  color: #fff;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-cta:active { transform: scale(0.985); }

.floating-cta__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
}

.floating-cta__icon svg, .floating-cta__arrow { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.floating-cta small, .floating-cta b { display: block; }
.floating-cta small { opacity: 0.76; font-size: 8px; font-weight: 800; letter-spacing: 0.11em; }
.floating-cta b { margin-top: 2px; font-size: 18px; letter-spacing: -0.03em; }

.schedule {
  width: min(100% - 20px, 520px);
  max-height: calc(100dvh - 20px);
  margin: auto auto 10px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(237, 248, 255, 0.18);
  border-radius: 26px 26px 18px 18px;
  background: #0a203e;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
  color: var(--ice);
}

.schedule[open] { animation: sheet-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.schedule::backdrop { background: rgba(1, 8, 22, 0.72); backdrop-filter: blur(5px); }

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(32px); }
}

.schedule__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(237, 248, 255, 0.11);
}

.schedule__head p { margin: 0 0 5px; color: var(--coral); font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.16em; }
.schedule__head h2 { margin: 0; font-size: 24px; }

.schedule__close {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(237, 248, 255, 0.18);
  border-radius: 50%;
  background: rgba(237, 248, 255, 0.06);
  cursor: pointer;
}

.schedule__close svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.schedule__body {
  max-height: calc(100dvh - 105px);
  padding: 4px 16px calc(24px + var(--safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.schedule__rules {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(237, 248, 255, 0.1);
  border-radius: 16px;
  background: rgba(68, 159, 231, 0.08);
}

.schedule__rules div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 6px 0;
}

.schedule__rules div + div { border-top: 1px solid rgba(237, 248, 255, 0.08); }
.schedule__rules dt { color: var(--blue); font: 800 8px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.1em; }
.schedule__rules dd { margin: 0; color: rgba(237, 248, 255, 0.82); font-size: 10px; font-weight: 650; line-height: 1.45; }

.schedule__body section { margin-top: 18px; }
.schedule__body h3 { margin: 0 0 10px; font-size: 13px; }
.schedule__body h3 span { margin-right: 7px; color: var(--blue); font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; }

.games { margin: 0; padding: 0; list-style: none; }

.games li {
  display: grid;
  min-height: 48px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(237, 248, 255, 0.09);
}

.games li:last-child { border-bottom: 1px solid rgba(237, 248, 255, 0.09); }
.games b { color: rgba(237, 248, 255, 0.43); font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.games span { min-width: 0; font-size: 11px; font-weight: 700; }
.games time { color: var(--muted); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.games em { display: inline-block; margin-left: 4px; color: var(--coral); font-size: 8px; font-style: normal; }
.schedule__notice { margin: 14px 0 0; color: rgba(237, 248, 255, 0.72); font-size: 10px; line-height: 1.5; }
.schedule__notice + .schedule__notice { margin-top: 7px; }

body.dialog-open { overflow: hidden; }

@media (max-width: 379px) {
  .copy--hero .copy__lead {
    font-size: 13px;
    letter-spacing: -0.015em;
  }
}

@media (min-width: 640px) {
  body::before {
    content: "MOBILE EXPERIENCE";
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(237, 248, 255, 0.35);
    font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.16em;
  }

  body { width: 430px; margin-inline: auto; box-shadow: 0 0 80px rgba(0, 0, 0, 0.55); }
  .topbar, .world, .route, .floating-cta { right: calc((100vw - 430px) / 2); left: calc((100vw - 430px) / 2); }
  .route { right: calc((100vw - 430px) / 2 + 10px); left: auto; }
  .copy { right: calc((100vw - 430px) / 2 + 42px); left: calc((100vw - 430px) / 2 + 18px); }
}

@media (max-height: 720px) {
  .copy { bottom: calc(98px + var(--safe-bottom)); padding: 14px; }
  .copy--hero { top: calc(74px + env(safe-area-inset-top, 0px)); padding: 0; }
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  .copy__lead { font-size: 12px; line-height: 1.45; }
  .fact-grid div { min-height: 62px; padding: 9px; }
  .floating-cta { min-height: 64px; border-radius: 21px; }
  .floating-cta__icon { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .world__camera, .world__flare { transform: none !important; }
  .world__snow { display: none; }
  .copy { transition: opacity 120ms linear; transform: none; }
}
