/* THE SNOW — recruitment page */

:root {
  --night: #07111f;
  --navy: #0c1b2e;
  --deep: #13263d;
  --ice: #7dd3fc;
  --glacier: #38bdf8;
  --snow: #f5f9fc;
  --signal: #ff6a33;
  --muted: rgba(245, 249, 252, 0.72);
  --line: rgba(245, 249, 252, 0.1);
  --card: rgba(245, 249, 252, 0.04);

  --font-kr: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-en: "Barlow Condensed", "Pretendard Variable", sans-serif;

  --gutter: 16px;
  --maxw: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font-family: var(--font-kr);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
  overflow-x: clip; /* clip, so off-screen slide-ins never widen the mobile layout viewport */
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
b { font-weight: 800; }
mark { background: none; color: inherit; }

:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--snow); color: var(--night); font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

.c-signal { color: var(--signal); }
.c-ice { color: var(--ice); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 800; font-size: 16px; letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--primary { background: var(--signal); color: var(--night); box-shadow: 0 8px 28px rgba(255, 106, 51, 0.35); }
.btn--primary:hover { box-shadow: 0 10px 36px rgba(255, 106, 51, 0.55); }
.btn--ghost { border: 1.5px solid rgba(245, 249, 252, 0.45); color: var(--snow); }
.btn--ghost:hover { border-color: var(--snow); background: rgba(245, 249, 252, 0.06); }

/* ─── Nav ─── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.nav.is-solid {
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 24px; min-height: 64px;
}
.nav__logo img { width: 104px; height: auto; }
.nav__links { display: none; gap: 28px; margin-left: auto; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav__links a { padding: 8px 0; transition: color 0.2s; }
.nav__links a:hover { color: var(--snow); }
.nav .btn { margin-left: auto; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav .btn { margin-left: 8px; }
}

/* ─── Hero ─── */
.hero {
  position: relative; min-height: var(--scene-height, 100svh); overflow: hidden;
  display: grid; place-items: center; text-align: center;
  padding: 96px var(--gutter) 120px;
  background:
    radial-gradient(120% 60% at 50% 105%, rgba(255, 138, 92, 0.55) 0%, rgba(255, 138, 92, 0) 60%),
    linear-gradient(180deg, #111a2e 0%, #26263e 38%, #5a4257 70%, #9a5f5c 100%);
}
.hero__snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(120px, 22vw, 260px); }
.ridge--far { fill: #2a2338; opacity: 0.9; }
.ridge--near { fill: var(--night); }
.hero__dusk { position: absolute; inset: 0; z-index: 1; background: var(--night); opacity: 0; pointer-events: none; }
.hero__content { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; }
.hero__logo img {
  width: min(88vw, 640px); height: auto;
  filter: drop-shadow(0 6px 30px rgba(7, 17, 31, 0.35));
}
.hero__lead { font-size: clamp(17px, 2.6vw, 22px); color: rgba(245, 249, 252, 0.88); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero__scroll {
  position: absolute; z-index: 2; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 2px;
  font-family: var(--font-en); font-weight: 600; font-size: 12px; letter-spacing: 0.3em; color: var(--muted);
  animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(7, 17, 31, 0.45); border: 1px solid rgba(245, 249, 252, 0.18);
  font-weight: 700; font-size: 14px;
}
.badge__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--signal); display: inline-block;
  box-shadow: 0 0 0 0 rgba(255, 106, 51, 0.7); animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 106, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 51, 0); } }

/* ─── Numbers ─── */
.numbers { background: var(--night); padding: 36px 0 64px; }
.numbers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
@media (min-width: 900px) { .numbers__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat__num {
  font-family: var(--font-en); font-weight: 800; line-height: 0.95; letter-spacing: -0.01em;
  font-size: clamp(52px, 9vw, 96px);
}
.stat__num small { font-family: var(--font-kr); font-size: 0.32em; font-weight: 800; margin-left: 6px; letter-spacing: -0.02em; }
.stat__num i { font-style: normal; opacity: 0.45; margin: 0 4px; }
.stat__label { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ─── Sections ─── */
.section { background: var(--navy); padding: clamp(80px, 12vw, 140px) 0; }
.section--dark { background: var(--night); }

.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font-family: var(--font-en); font-weight: 600; font-size: 15px; letter-spacing: 0.3em; color: var(--ice);
}
.kicker__n {
  display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 6px;
  background: var(--signal); color: var(--night); font-weight: 800; letter-spacing: 0.04em; font-size: 16px;
}
.kicker--dark { color: var(--night); }
.kicker--dark .kicker__n { background: var(--night); color: var(--signal); }

.title { font-size: clamp(32px, 5.6vw, 60px); font-weight: 850; line-height: 1.15; letter-spacing: -0.035em; }
.lead { margin-top: 18px; font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); }
.lead b { color: var(--snow); }

/* ─── Film ─── */
.film .wrap { text-align: center; }
.film__player { margin-top: 28px; }
.film__frame {
  position: relative; margin: 0 auto;
  width: min(100%, calc((var(--scene-height, 100svh) - 380px) * 16 / 9)); aspect-ratio: 16 / 9;
  border-radius: 20px; overflow: hidden; background: #000; cursor: pointer;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.film__frame video { width: 100%; height: 100%; object-fit: cover; }
.film__sound {
  position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(7, 17, 31, 0.6); color: var(--snow); backdrop-filter: blur(6px);
  transition: background-color 0.2s, color 0.2s;
}
.film__sound svg { width: 22px; height: 22px; }
.film__frame.is-sound .film__sound { background: var(--signal); color: var(--night); }
.film figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  width: min(100%, calc((var(--scene-height, 100svh) - 380px) * 16 / 9)); margin: 14px auto 0; font-size: 14px; color: var(--muted); text-align: left;
}
.film figcaption span:first-child { font-family: var(--font-en); font-weight: 600; letter-spacing: 0.2em; }
@media (max-width: 767px) {
  .film__frame, .film figcaption { width: 100%; }
  .film__frame { border-radius: 14px; }
  .film__sound { width: 40px; height: 40px; right: 10px; bottom: 10px; }
  .film figcaption { font-size: 12px; }
}

/* ─── Saturday ─── */
.saturday { display: grid; gap: 48px; }
@media (min-width: 960px) { .saturday { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.mode { display: grid; gap: 12px; margin-top: 32px; }
.mode__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--muted); font-size: 15px; }
.mode__tag { font-weight: 800; padding: 4px 12px; border-radius: 8px; font-size: 14px; }
.mode__tag--j { background: var(--signal); color: var(--night); }
.mode__tag--b { border: 2px solid var(--ice); color: var(--ice); }

.timeline { --fill: 0; position: relative; display: grid; gap: 6px; }
.timeline::after { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--signal); transform-origin: top; transform: scaleY(var(--fill)); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 16px 16px 40px; border-radius: 14px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 3px solid var(--ice); }
.timeline time { font-family: var(--font-en); font-weight: 800; font-size: clamp(36px, 5vw, 52px); line-height: 1; letter-spacing: 0.01em; }
.timeline h3 { font-size: 19px; font-weight: 800; margin-top: 6px; }
.timeline p { color: var(--muted); font-size: 15px; }
.timeline .is-hi { background: var(--signal); color: var(--night); }
.timeline .is-hi p { color: rgba(7, 17, 31, 0.75); }
.timeline .is-hi::before { border-color: var(--night); background: var(--signal); left: 12px; }
.timeline .is-hi { padding-left: 52px; }
@media (min-width: 560px) {
  .timeline li { grid-template-columns: 150px 1fr; align-items: center; gap: 18px; }
  .timeline h3 { margin-top: 0; }
}

/* ─── Season ─── */
.season { display: grid; gap: 12px; margin-top: 44px; counter-reset: s; }
@media (min-width: 640px) { .season { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .season { grid-template-columns: repeat(3, 1fr); } }
.season li { border-top: 3px solid var(--deep); padding: 20px 4px 8px; transition: border-color 0.3s; }
.season li:hover { border-color: var(--signal); }
.season__m { font-family: var(--font-en); font-weight: 700; letter-spacing: 0.22em; color: var(--ice); font-size: 15px; }
.season h3 { font-size: 24px; font-weight: 850; letter-spacing: -0.02em; margin-top: 6px; }
.season p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ─── Season house ─── */
.house { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .house { grid-template-columns: 0.9fr 1.1fr; } }
.house__art { background: linear-gradient(180deg, var(--night), var(--deep)); border-radius: var(--radius); border: 1px solid var(--line); padding: 28px 24px 22px; }
.house__art svg { width: 100%; height: auto; }
.house__ridge { fill: none; stroke: var(--ice); stroke-width: 3; stroke-linejoin: round; opacity: 0.7; }
.house__fill { fill: var(--navy); }
.house__line { fill: none; stroke: var(--snow); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.house__win { fill: var(--signal); animation: glow 3s ease-in-out infinite; }
.house__win + .house__win { animation-delay: 0.6s; }
@keyframes glow { 50% { opacity: 0.55; } }
.house__tag { margin-top: 14px; text-align: center; font-family: var(--font-en); font-weight: 600; letter-spacing: 0.3em; font-size: 13px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.perk { margin-top: 36px; }
.perk__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.perk__head mark { background: var(--signal); color: var(--night); padding: 4px 10px 5px; font-size: 15px; font-weight: 850; }
.perk__list { margin-top: 14px; border-top: 1px solid var(--line); }
.perk__list li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.perk__list span { font-family: var(--font-en); font-weight: 800; font-size: 20px; color: var(--signal); letter-spacing: 0.02em; }
.perk__note { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ─── Cost ─── */
.cost { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 768px) { .cost { grid-template-columns: repeat(3, 1fr); } }
.cost__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.cost__label { color: var(--muted); font-weight: 700; font-size: 15px; }
.cost__label span { font-weight: 500; font-size: 13px; }
.cost__price { font-family: var(--font-en); font-weight: 800; font-size: 44px; line-height: 1.1; margin-top: 6px; }
.cost__price small { font-family: var(--font-kr); font-size: 16px; font-weight: 700; margin-left: 4px; color: var(--muted); }
.cost__card:last-child .cost__price { font-family: var(--font-kr); font-size: 32px; letter-spacing: -0.03em; }
.cost__desc { margin-top: 6px; color: var(--muted); font-size: 14px; }
.discount { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.discount__title { font-weight: 850; font-size: 18px; }
.discount ul { margin-top: 12px; display: grid; }
.discount li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.discount li span { color: var(--ice); font-weight: 700; }
.discount__note { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* ─── FAQ ─── */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font-weight: 800; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 14px; height: 14px;
  background: linear-gradient(var(--ice), var(--ice)) center / 100% 2px no-repeat, linear-gradient(var(--ice), var(--ice)) center / 2px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--muted); }

/* ─── Join ─── */
.join { background: var(--signal); color: var(--night); padding: clamp(80px, 12vw, 140px) 0; overflow: hidden; }
.join__title { display: grid; font-size: clamp(48px, 10vw, 120px); font-weight: 900; line-height: 1.05; letter-spacing: -0.045em; }
.join__title mark { background: var(--night); color: var(--signal); padding: 0 0.14em 0.04em; }
.steps { display: grid; gap: 10px; margin-top: 44px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: rgba(7, 17, 31, 0.08); border-radius: 14px; padding: 18px; font-weight: 800; font-size: 17px; }
.steps li > span { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--night); color: var(--signal); font-family: var(--font-en); font-size: 18px; }
.steps small { display: block; font-weight: 600; font-size: 13px; opacity: 0.75; margin-top: 2px; }
.join__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.join__cta .btn--primary { background: var(--night); color: var(--snow); box-shadow: none; min-height: 58px; font-size: 17px; }
.join__cta .note { font-weight: 700; font-size: 15px; background: rgba(7, 17, 31, 0.1); padding: 14px 18px; border-radius: 12px; }

/* ─── Footer ─── */
.footer { background: var(--night); padding: 64px 0 120px; }
.footer__inner { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: 14px; }
.footer__inner img { width: 200px; height: auto; margin-bottom: 8px; opacity: 0.9; }
.footer__copy { font-family: var(--font-en); letter-spacing: 0.2em; font-size: 12px; }
.footer__game { display: inline-block; margin-top: 6px; padding: 10px 16px; border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 999px; color: var(--snow); font-weight: 800; text-decoration: none; }
@media (min-width: 768px) { .footer { padding-bottom: 64px; } }

/* ─── Sticky CTA (mobile) ─── */
.sticky-cta {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 20px; border-radius: 16px;
  background: var(--snow); color: var(--night); font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(140%); transition: transform 0.4s var(--ease);
}
.sticky-cta > span { display: inline-flex; align-items: center; gap: 10px; }
.sticky-cta b { color: var(--signal); }
.sticky-cta.is-on { transform: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ─── One section = one screen ─── */
.page {
  min-height: 100vh; min-height: var(--scene-height, 100svh);
  display: flex; flex-direction: column; justify-content: center;
  padding: 104px 0 80px;
}
.numbers.page { padding-top: 104px; }
.numbers__grid { margin-top: 48px; }
html.scrolly { scroll-behavior: auto; } /* Prevent CSS smoothing from fighting explicit anchor tweens. Wheel/touch remain native. */

@media (max-width: 767px) {
  .page { padding: 80px 0 96px; } /* room for the nav and the sticky join bar */
  .kicker { margin-bottom: 12px; font-size: 13px; }
  .title { font-size: clamp(28px, 7.6vw, 36px); }
  .lead { margin-top: 10px; font-size: 15px; }
  .numbers__grid { margin-top: 28px; gap: 22px 16px; }
  .stat__num { font-size: clamp(44px, 13vw, 60px); }
  .stat__label { font-size: 13px; }

  .saturday { gap: 18px; }
  .mode { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
  .mode__item { grid-template-columns: 1fr; gap: 6px; padding: 10px 12px; font-size: 12px; line-height: 1.45; }
  .mode__tag { justify-self: start; font-size: 12px; padding: 2px 8px; }
  .timeline { gap: 0; }
  .timeline li { padding: 6px 12px 6px 34px; }
  #saturday.page { padding-top: 72px; padding-bottom: 90px; }
  .timeline .is-hi { padding-left: 44px; }
  .timeline li::before { top: 16px; width: 14px; height: 14px; }
  .timeline time { font-size: 26px; }
  .timeline h3 { font-size: 15px; margin-top: 2px; }
  .timeline p { font-size: 12px; }

  .house__art { display: none; }
  .chips { gap: 6px; margin-top: 16px; }
  .chips li { padding: 6px 10px; font-size: 12px; }
  .perk { margin-top: 20px; }
  .perk__head { font-size: 15px; }
  .perk__list li { padding: 10px 0; font-size: 14px; }
  .perk__note { font-size: 12px; }

  .cost { gap: 8px; margin-top: 22px; }
  .cost__card {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label price" "desc price";
    align-items: center; column-gap: 12px; padding: 14px 16px;
  }
  .cost__label { grid-area: label; font-size: 14px; }
  .cost__price { grid-area: price; font-size: 28px; margin: 0; }
  .cost__card:last-child .cost__price { font-size: 20px; }
  .cost__desc { grid-area: desc; margin-top: 2px; font-size: 12px; }
  .discount { margin-top: 8px; padding: 14px 16px; }
  .discount__title { font-size: 15px; }
  .discount ul { margin-top: 4px; }
  .discount li { padding: 7px 0; font-size: 13px; }
  .discount__note { margin-top: 8px; font-size: 11px; }

  .faq { margin-top: 18px; }
  .faq summary { padding: 15px 2px; font-size: 16px; }

  .join__title { font-size: clamp(40px, 12vw, 56px); }
  .steps { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
  .steps li { padding: 12px; font-size: 14px; gap: 10px; }
  .steps li > span { width: 26px; height: 26px; font-size: 15px; }
  .steps small { font-size: 11px; }
  .join__cta { margin-top: 20px; }
}
@media (max-width: 767px) and (max-height: 720px) {
  html:not(.is-kakao) .timeline p, html:not(.is-kakao) .mode { display: none; }
}
@media (max-width: 767px) {
  html.is-kakao.is-short-viewport .timeline p, html.is-kakao.is-short-viewport .mode { display: none; }
}

/* ─── Scroll-driven states (set by js/scroll.js) ─── */
.saturday__now { display: none; }
@media (min-width: 960px) { .scrolly .saturday__now { display: flex; align-items: baseline; gap: 16px; margin-top: 28px; } }
.saturday__now span { font-family: var(--font-en); font-weight: 600; letter-spacing: 0.3em; font-size: 14px; color: var(--signal); }
.saturday__now b { font-family: var(--font-en); font-weight: 800; font-size: clamp(72px, 9vw, 132px); line-height: 0.9; }
.timeline.is-scrolly li { opacity: 0.32; transition: opacity 0.35s, background-color 0.35s, color 0.35s; }
.timeline.is-scrolly li.is-on { opacity: 1; }
.timeline.is-scrolly li.is-hi:not(.is-on) { background: transparent; color: var(--snow); }
.timeline.is-scrolly li.is-hi:not(.is-on) p { color: var(--muted); }
.timeline.is-scrolly li.is-hi:not(.is-on)::before { border-color: var(--ice); background: var(--navy); left: 0; }

#season.is-horizontal { overflow: hidden; }
#season.is-horizontal .season { display: flex; gap: 20px; width: max-content; }
#season.is-horizontal .season li {
  width: min(380px, 74vw); min-height: clamp(220px, calc(var(--scene-height, 100svh) * 0.34), 300px); padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); display: flex; flex-direction: column; justify-content: flex-end;
}
#season.is-horizontal .season li:hover { border-color: var(--signal); }
#season.is-horizontal .season__m { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: 0.02em; line-height: 1; margin-bottom: auto; }
.season__progress { height: 3px; margin-top: 40px; background: var(--line); }
.season__progress i { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(0); }

/* Kakao-only, dismissible browser guidance; fixed so it cannot shift pins. */
.browser-hint { position: fixed; z-index: 110; top: calc(76px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; max-width: 420px; margin: 0 auto; padding: 18px 42px 18px 18px; background: #f5f9fc; color: #101b2c; border-radius: 14px; box-shadow: 0 8px 30px #0003; }
.browser-hint strong { font-size: 16px; }
.browser-hint p { margin: 8px 0 12px; font-size: 13px; line-height: 1.6; }
.browser-hint button { cursor: pointer; font: inherit; }
.browser-hint__close { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; background: transparent; border: 0; color: inherit; font-size: 24px !important; }
.browser-hint__copy { min-height: 44px; padding: 8px 12px; border: 1px solid #101b2c; border-radius: 8px; color: #101b2c; background: transparent; font-size: 13px !important; }
.browser-hint__status { display: block; margin-top: 6px; font-size: 12px; overflow-wrap: anywhere; }
.browser-hint button:focus-visible { outline: 3px solid #e75f24; outline-offset: 2px; }

/* ─── Reveal ─── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Compact screen compositions: keep the complete cost summary visible. */
#cost.page, #join.page { padding-top: 88px; padding-bottom: 32px; }
#cost .kicker, #join .kicker { margin-bottom: 14px; }
#cost .title { font-size: clamp(28px, 4vw, 46px); text-wrap: balance; }
#cost .lead { margin-top: 10px; font-size: 16px; text-wrap: pretty; }
.cost-layout { margin-top: 24px; display: grid; gap: 16px; }
.cost-layout .cost, .cost-layout .discount { margin-top: 0; }
.cost-layout .cost__price { font-variant-numeric: tabular-nums; }
.cost-layout .discount { padding: 18px 20px; }
.cost-layout .discount li { padding: 10px 0; font-size: 14px; }
.cost-layout .discount__note { line-height: 1.5; }
.join__title { font-size: clamp(40px, 6vw, 76px); text-wrap: balance; }
.join .steps { margin-top: 24px; }
.join__contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.join__contact .join__cta { margin-top: 0; }
.join__qr { display: flex; align-items: center; gap: 16px; color: var(--night); }
.join__qr img { display: block; width: 144px; height: 144px; border-radius: 8px; }
.join__qr b, .join__qr small { display: block; }
.join__qr b { font-size: 16px; }
.join__qr small { margin-top: 6px; font-size: 13px; }
.join__qr:focus-visible { outline: 3px solid var(--night); outline-offset: 6px; }
@media (min-width: 960px) {
  .cost-layout { grid-template-columns: 1fr 1fr; }
  .cost-layout .cost { grid-template-columns: 1fr; gap: 10px; }
  .cost-layout .cost__card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label price" "desc price"; align-items: center; padding: 16px 20px; gap: 2px 14px; }
  .cost-layout .cost__label { grid-area: label; }
  .cost-layout .cost__price { grid-area: price; font-size: 36px; margin: 0; }
  .cost-layout .cost__desc { grid-area: desc; margin: 0; font-size: 13px; }
  .cost-layout .cost__card:last-child .cost__price { font-size: 26px; }
}
@media (min-width: 768px) and (max-width: 959px) {
  .cost-layout .cost__card { padding: 14px; }
  .cost-layout .cost__price { font-size: 32px; }
  .cost-layout .discount ul { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .cost-layout .discount li { display: block; }
  .cost-layout .discount li span { display: block; }
}
@media (max-width: 767px) {
  #cost.page { padding: 76px 0 84px; }
  #cost .lead { font-size: 13px; }
  .cost-layout { margin-top: 16px; gap: 8px; }
  .cost-layout .cost__card { padding: 10px 12px; }
  .cost-layout .discount { padding: 12px; }
  .cost-layout .discount li { font-size: 12px; padding: 6px 0; gap: 2px 8px; }
  .cost-layout .discount__note { margin-top: 8px; font-size: 11px; }
  #join.page { padding: 76px 0 28px; }
  .join .steps { margin-top: 18px; }
  .join__contact { flex-wrap: wrap; gap: 16px; margin-top: 18px; }
  .join__qr { gap: 12px; }
  .join__qr img { width: 112px; height: 112px; }
  .join__qr b { font-size: 14px; }
  .join__qr small { font-size: 12px; }
}
@media (min-width: 768px) and (max-height: 680px) {
  #cost.page, #join.page { padding-top: 76px; padding-bottom: 24px; }
  #cost .title { font-size: 36px; }
  .cost-layout { margin-top: 16px; }
  .join__title { font-size: 56px; }
  .join .steps { margin-top: 16px; }
  .join .steps li { padding: 12px; font-size: 15px; }
  .join__contact { margin-top: 16px; }
  .join__qr img { width: 112px; height: 112px; }
}

@media (min-width: 768px) and (max-height: 850px) {
  .page, .numbers.page { padding-top: 84px; padding-bottom: 32px; }
  .page .title { font-size: clamp(32px, 3.6vw, 46px); }
  .page .kicker { margin-bottom: 14px; }
  .hero { padding-top: 84px; padding-bottom: 72px; }
  .hero__content { gap: 16px; }
  /* SVG has no intrinsic width, so size by width (logo ratio 514:277 → 40% of screen height) */
  .hero__logo img { width: min(88vw, 640px, calc(var(--scene-height, 100svh) * 0.74)); height: auto; }
  .house { gap: 28px; }
  .chips { margin-top: 18px; }
  .perk { margin-top: 22px; }
  .perk__list { margin-top: 10px; }
  .perk__list li { padding: 10px 0; font-size: 15px; }
  .perk__note { margin-top: 10px; font-size: 13px; }
  .faq { margin-top: 20px; }
  .faq summary { padding: 15px 4px; font-size: 17px; }
  .timeline li { padding-top: 10px; padding-bottom: 10px; }
  .timeline time { font-size: 40px; }
}

@media (max-width: 767px) {
  .cost-layout { margin-top: 12px; }
  .cost-layout .cost__card { padding: 7px 12px; }
  .cost-layout .cost__label { font-size: 13px; line-height: 1.3; }
  .cost-layout .cost__desc { font-size: 11px; line-height: 1.3; }
  .cost-layout .discount li { padding: 4px 0; }
  .cost-layout .discount__note { line-height: 1.3; }
}

@media (min-width: 960px) and (max-height: 680px) {
  #house.page { padding-top: 76px; padding-bottom: 24px; }
  #house .chips { margin-top: 12px; }
  #house .perk { margin-top: 16px; }
  #house .perk__list li { padding-top: 8px; padding-bottom: 8px; }
}

.join__qr { padding: 12px 16px 12px 12px; background: var(--night); color: var(--snow); border: 1px solid #ffffff24; border-radius: 14px; gap: 16px; text-align: left; }
.join__qr .join__qr-code { width: 128px; height: 128px; border-radius: 6px; }
.join__qr .join__qr-logo { width: 88px; height: auto; border-radius: 0; margin-bottom: 6px; }
.join__qr b { font-size: 14px; }
.join__qr small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.join__qr-action { display: block; color: var(--signal); font-size: 12px; font-weight: 800; margin-top: 10px; }
@media (max-width: 767px) {
  .join__qr .join__qr-code { width: 112px; height: 112px; }
  .join__qr { gap: 12px; }
}
@media (min-width: 768px) and (max-height: 680px) { .join__qr .join__qr-code { width: 112px; height: 112px; } }

/* ─── Crew game popup (self-playing preview) ─── */
.gamepop {
  position: fixed; z-index: 60; right: 20px; bottom: 20px; width: 320px;
  background: rgba(12, 27, 46, 0.94); border: 1px solid rgba(245, 249, 252, 0.14); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); overflow: hidden;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateY(24px) scale(0.96); opacity: 0; pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.35s ease;
}
.gamepop.is-on { transform: none; opacity: 1; pointer-events: auto; }
.gamepop.is-live { transition: none; } /* scroll position drives it from here */
.gamepop.is-away { visibility: hidden; pointer-events: none; }
.gamepop__close {
  position: absolute; z-index: 2; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(7, 17, 31, 0.72); color: var(--snow); font-size: 22px; line-height: 1; cursor: pointer;
}
.gamepop__play { display: block; color: var(--snow); text-decoration: none; }
.gamepop__screen { position: relative; height: 210px; background: #eaf1f8; overflow: hidden; }
.gamepop__screen iframe { position: absolute; left: 0; top: -34px; width: 100%; height: 150%; border: 0; pointer-events: none; }
.gamepop__live {
  position: absolute; left: 10px; top: 10px; padding: 4px 8px 3px; background: var(--signal); color: var(--night);
  font-family: var(--font-en); font-weight: 800; font-size: 12px; letter-spacing: 0.14em;
}
.gamepop__body { display: grid; gap: 6px; padding: 14px 16px 12px; }
.gamepop__kicker { font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: 0.22em; color: var(--ice); }
.gamepop__title { font-size: 26px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; }
.gamepop__rank, .gamepop__sub { font-size: 14px; color: var(--muted); }
.gamepop__rank b { color: var(--snow); font-weight: 800; }
.gamepop__battle { display: grid; gap: 4px; }
.gamepop__bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; }
.gamepop__bar i:first-child { background: var(--ice); }
.gamepop__bar i:last-child { background: var(--signal); }
.gamepop__teams { display: flex; justify-content: space-between; font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.gamepop__teams span:first-child { color: var(--ice); }
.gamepop__teams span:last-child { color: var(--signal); }
.gamepop__cta {
  display: grid; place-items: center; height: 44px; margin-top: 4px; border-radius: 12px;
  background: var(--signal); color: var(--night); font-weight: 900; font-size: 16px;
}
.gamepop__later {
  display: block; width: 100%; padding: 4px 0 12px; border: 0; background: none; cursor: pointer;
  color: rgba(245, 249, 252, 0.5); font: inherit; font-size: 12px; text-decoration: underline;
}
@media (max-width: 767px) {
  /* slim strip above the sticky CTA so the hero's join buttons stay visible */
  .gamepop { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); width: auto; border-radius: 16px; }
  .gamepop__play { display: grid; grid-template-columns: 120px 1fr; }
  .gamepop__screen { height: auto; min-height: 128px; }
  .gamepop__screen iframe { top: -16px; width: 200%; height: 240%; transform: scale(0.5); transform-origin: 0 0; }
  .gamepop__live { left: 6px; top: 6px; font-size: 10px; padding: 3px 6px 2px; }
  .gamepop__close { top: 4px; right: 4px; width: 32px; height: 32px; font-size: 20px; background: transparent; }
  .gamepop__body { gap: 3px; padding: 10px 34px 4px 12px; }
  .gamepop__kicker { font-size: 11px; }
  .gamepop__title { font-size: 20px; }
  .gamepop__rank, .gamepop__sub { font-size: 12.5px; }
  .gamepop__sub, .gamepop__teams { display: none; }
  .gamepop__bar { height: 6px; }
  .gamepop__cta { justify-self: start; height: 34px; padding: 0 14px; margin-top: 4px; font-size: 14px; border-radius: 10px; }
  .gamepop__later { position: absolute; right: 12px; bottom: 8px; width: auto; padding: 0; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .gamepop { transition: none; } }

/* ─── Page scrollbar: slim night track, ice thumb that warms to orange on hover ─── */
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: var(--night); }
html::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.38); border-radius: 999px;
  border: 3px solid var(--night); /* inset the thumb so it reads as a thin pill */
  min-height: 56px;
}
html::-webkit-scrollbar-thumb:hover { background: rgba(125, 211, 252, 0.7); }
html::-webkit-scrollbar-thumb:active { background: var(--signal); }
html::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
html::-webkit-scrollbar-corner { background: var(--night); }
/* Firefox has no pseudo-elements for this; give it the same colours. */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: rgba(125, 211, 252, 0.45) #07111f; }
}

/* ─── Slope rail: the desktop scrollbar becomes a slalom course with a rider ─── */
.sloperail { display: none; }
@media (min-width: 768px) {
  html.has-sloperail { scrollbar-width: none; }
  html.has-sloperail::-webkit-scrollbar { display: none; }
  .sloperail { display: block; position: fixed; z-index: 45; right: 4px; top: 112px; bottom: 52px; width: 60px; pointer-events: none; }
  .sloperail svg { position: absolute; inset: 0; overflow: visible; }
  .sloperail__course { fill: none; stroke: rgba(245, 249, 252, 0.26); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
  .sloperail__trail { fill: none; stroke: var(--ice); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(125, 211, 252, 0.7)); }
  .sloperail__rider { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55)); }
  .sloperail__board { fill: var(--snow); }
  .sloperail__jacket { fill: var(--signal); }
  .sloperail__helmet { fill: var(--night); }
  .sloperail__gate {
    position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: auto;
    display: grid; place-items: center; text-decoration: none;
  }
  .sloperail__gate i {
    width: 8px; height: 8px; border-radius: 50%; background: var(--night); border: 1.5px solid rgba(245, 249, 252, 0.7);
    transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
  }
  .sloperail__gate.is-passed i { background: var(--ice); border-color: var(--ice); }
  .sloperail__gate.is-current i { background: var(--signal); border-color: var(--signal); transform: scale(0); } /* the rider sits on it */
  .sloperail__gate:hover i, .sloperail__gate:focus-visible i { transform: scale(1.6); border-color: var(--snow); }
  .sloperail__gate span {
    position: absolute; right: calc(100% + 14px); top: 50%; padding: 5px 9px 4px; border-radius: 7px; white-space: nowrap;
    background: var(--snow); color: var(--night); font-size: 12px; font-weight: 800;
    opacity: 0; transform: translate(8px, -50%); transition: opacity 0.2s, transform 0.25s var(--ease); pointer-events: none;
  }
  .sloperail__gate.is-right span { right: calc(100% + 32px); }
  .sloperail__gate:hover span, .sloperail__gate:focus-visible span { opacity: 1; transform: translate(0, -50%); z-index: 2; }
  .sloperail__gate:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 50%; }
  .sloperail__alt {
    position: absolute; right: calc(100% - 2px); transform: translateY(-50%); white-space: nowrap;
    font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; color: var(--ice);
    text-shadow: 0 1px 6px rgba(7, 17, 31, 0.9);
  }
  .sloperail__cap {
    position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
    font-family: var(--font-en); font-weight: 700; font-size: 10px; letter-spacing: 0.16em; color: rgba(245, 249, 252, 0.55);
  }
  .sloperail__cap--top { top: -24px; }
  .sloperail__cap--base { bottom: -24px; }
  .has-sloperail .gamepop { right: 84px; }
}

/* ─── Fun layer: countdown chip, settling snow, blizzard toast ─── */
.badge__dday { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(245, 249, 252, 0.3); white-space: nowrap; }
.badge__dday b { color: var(--signal); font-family: var(--font-en); font-size: 1.15em; letter-spacing: 0.04em; }
.hero .badge { white-space: nowrap; }
@media (max-width: 420px) {
  .hero .badge { font-size: 12.5px; padding: 7px 12px; gap: 7px; }
  .badge__dday { margin-left: 6px; padding-left: 8px; }
}
@media (max-width: 350px) { .hero .badge { font-size: 11px; padding: 6px 10px; gap: 6px; } }
.fundrift { max-width: none; }
/* snow bank at the foot of the hero: grows from the bottom edge (scaleY set by fun.js) */
.funground { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(56px, 11svh, 100px); z-index: 1; pointer-events: none; transform: scaleY(0); transform-origin: 50% 100%; will-change: transform; }
.funground svg { display: block; width: 100%; height: 100%; }
.hero:has(.funground) .hero__scroll { bottom: 40px; }
.funsnow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 44; pointer-events: none; }
.funtoast {
  position: fixed; z-index: 120; left: 50%; top: 22%; transform: translateX(-50%);
  background: var(--snow); color: var(--night); font-weight: 900; font-size: clamp(16px, 4.4vw, 22px); padding: 14px 22px; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); animation: funtoast 4.2s var(--ease) both;
}
@keyframes funtoast { 0% { opacity: 0; transform: translate(-50%, 16px) scale(0.9); } 10%, 85% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -10px); } }
.hero__logo { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ─── Snowman guestbook (footer) ─── */
.snowmen { padding: 0 0 40px; }
.snowmen__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 4px; }
.snowmen__title { font-size: clamp(22px, 5vw, 30px); font-weight: 900; letter-spacing: -0.04em; color: var(--snow); }
.snowmen__count { font-size: 13px; color: var(--muted); margin-top: 4px; }
.snowmen__open { flex: none; height: 44px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; background: var(--signal); color: var(--night); font: inherit; font-weight: 900; font-size: 14px; }
/* the hill: a night sky strip with a rolling snow bank that scrolls with the snowmen */
.snowmen__hill {
  display: flex; align-items: flex-end; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; touch-action: pan-x;
  min-height: 236px; padding: 76px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 0; scrollbar-width: none;
  background:
    radial-gradient(90px 26px at 50% 100%, #f5f9fc 97%, transparent 100%) 0 calc(100% - 14px) / 180px 30px repeat-x local,
    radial-gradient(70px 20px at 50% 100%, #dfe9f4 97%, transparent 100%) 60px calc(100% - 18px) / 140px 26px repeat-x local,
    linear-gradient(#f5f9fc, #d3e1ef) 0 100% / 100% 16px no-repeat,
    linear-gradient(180deg, rgba(19, 38, 61, 0) 0%, rgba(19, 38, 61, 0.55) 100%);
}
.snowmen__hill::-webkit-scrollbar { display: none; }
.snowmen__one { position: relative; flex: none; width: 108px; margin: 0 -2px calc(6px + var(--y, 0px)); outline: none; transform: scale(var(--s, 1)); transform-origin: 50% 100%; }
.snowmen__one .snowman { display: block; width: 128px; height: auto; margin-left: -10px; transition: transform 0.3s var(--ease); transform-origin: 50% 93%; }
.snowmen__one:hover .snowman, .snowmen__one:focus .snowman { transform: rotate(-4deg) scale(1.06); }
.snowmen__one figcaption {
  position: absolute; left: 50%; bottom: calc(100% - 4px); transform: translate(-50%, 6px); min-width: 84px; max-width: 200px; width: max-content;
  padding: 7px 10px 6px; border-radius: 10px; background: var(--snow); color: var(--night); text-align: center; line-height: 1.3;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ease); z-index: 2; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.snowmen__one figcaption::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--snow); }
.snowmen__one figcaption b { display: block; font-size: 13px; font-weight: 900; }
.snowmen__one figcaption span { display: block; font-size: 12px; font-weight: 600; }
.snowmen__one:hover figcaption, .snowmen__one:focus figcaption, .snowmen__one.is-new figcaption { opacity: 1; transform: translate(-50%, 0); }
.snowmen__one.is-new .snowman, .snowman.is-pop { animation: snowpop 0.5s var(--ease); }
@keyframes snowpop { from { transform: scale(0.82) translateY(8px); } 60% { transform: scale(1.06); } to { transform: none; } }
.snowmen__empty { align-self: center; padding: 0 0 40px; color: var(--muted); font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* builder — one fixed-size window: the snowman stays put, only the option list scrolls, and the
   name fields and the button are always on screen */
.snowdlg {
  border: 0; padding: 0; border-radius: 22px; background: var(--navy); color: var(--snow); margin: auto; overflow: hidden;
  width: min(94vw, 880px); height: min(92dvh, 600px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.snowdlg:focus { outline: none; }
.snowdlg::backdrop { background: rgba(3, 7, 18, 0.72); backdrop-filter: blur(3px); }
.snowdlg__form { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: 16px; }
.snowdlg__head { display: flex; align-items: center; justify-content: space-between; }
.snowdlg__head h2 { font-size: 20px; font-weight: 900; letter-spacing: -0.04em; }
.snowdlg__close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--snow); font-size: 21px; line-height: 1; cursor: pointer; }
.snowdlg__body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; min-height: 0; }
/* the stage: night sky, a far ridge, snow underfoot */
.snowdlg__scene {
  position: relative; border-radius: 16px; overflow: hidden; min-height: 0;
  background:
    radial-gradient(circle at 80% 14%, #fff4d6 0 9px, rgba(255, 244, 214, 0.2) 10px, transparent 28px),
    radial-gradient(1.5px 1.5px at 18% 16%, #fff, transparent), radial-gradient(1.5px 1.5px at 36% 8%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 58% 20%, #fff, transparent), radial-gradient(1.4px 1.4px at 68% 34%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 9% 38%, #fff, transparent),
    linear-gradient(180deg, #0a1730 0%, #1b3558 62%, #3d4a72 100%);
}
.snowdlg__scene::before { content: ""; position: absolute; left: -6%; right: -6%; bottom: 9%; height: 30%; background: #24406a; clip-path: polygon(0 100%, 0 62%, 14% 30%, 24% 54%, 38% 12%, 52% 50%, 64% 28%, 78% 58%, 90% 34%, 100% 60%, 100% 100%); opacity: 0.8; }
.snowdlg__scene::after { content: ""; position: absolute; left: -12%; right: -12%; bottom: -16%; height: 34%; border-radius: 50%; background: linear-gradient(180deg, #ffffff, #d9e6f3); }
.snowdlg__stage { position: absolute; inset: 8% 0 4%; display: flex; align-items: flex-end; justify-content: center; z-index: 1; }
.snowdlg__stage .snowman { height: 100%; width: auto; max-width: 100%; }
.snowdlg__dice { position: absolute; left: 10px; top: 10px; z-index: 2; height: 32px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(7, 17, 31, 0.6); color: var(--snow); font: inherit; font-size: 12.5px; font-weight: 800; backdrop-filter: blur(6px); }
.snowdlg__side { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-height: 0; }
.snowdlg__tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.snowdlg__tab { height: 34px; padding: 0; border: 0; border-radius: 9px; background: none; color: rgba(245, 249, 252, 0.62); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.snowdlg__tab[aria-selected="true"] { background: var(--snow); color: var(--night); }
.snowdlg__panel { display: grid; gap: 12px; align-content: start; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 6px 2px; scrollbar-width: thin; scrollbar-color: rgba(125, 211, 252, 0.4) transparent; }
.snowdlg__panel::-webkit-scrollbar { width: 6px; }
.snowdlg__panel::-webkit-scrollbar-thumb { background: rgba(125, 211, 252, 0.4); border-radius: 3px; }
.snowdlg__hint { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.snowdlg__group { display: grid; gap: 6px; }
.snowdlg__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.snowdlg__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.snowdlg__opt { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.18); background: none; color: var(--snow); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.snowdlg__opt.is-color { width: 34px; padding: 0; background: var(--c); border-color: transparent; }
.snowdlg__opt.is-preset { border-color: rgba(125, 211, 252, 0.45); }
.snowdlg__opt[aria-pressed="true"] { background: var(--snow); color: var(--night); border-color: var(--snow); }
.snowdlg__opt.is-color[aria-pressed="true"] { background: var(--c); outline: 3px solid var(--snow); outline-offset: 2px; }
.snowdlg__foot { display: grid; grid-template-columns: 170px minmax(0, 1fr) 170px; gap: 8px; align-items: center; }
.snowdlg__foot input { width: 100%; height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: var(--snow); font: inherit; font-weight: 700; font-size: 16px; outline: none; min-width: 0; }
.snowdlg__foot input:focus { border-color: var(--ice); }
.snowdlg__go { height: 46px; border: 0; border-radius: 12px; background: var(--signal); color: var(--night); font: inherit; font-weight: 900; font-size: 15.5px; cursor: pointer; }
.snowdlg__go:disabled { opacity: 0.6; }
.snowdlg__err { grid-column: 1 / -1; font-size: 13px; color: #ffb199; }
.snowdlg__err:empty { display: none; }
@media (max-width: 759px) {
  .snowdlg { width: 94vw; height: min(92dvh, 680px); border-radius: 20px; }
  .snowdlg__form { padding: 14px; gap: 10px; }
  .snowdlg__body { grid-template-columns: 1fr; grid-template-rows: clamp(140px, 27dvh, 200px) minmax(0, 1fr); gap: 10px; }
  .snowdlg__tab { font-size: 12.5px; }
  .snowdlg__foot { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .snowdlg__go { grid-column: 1 / -1; }
}
