/* 하얀 겨울의 하얀 마녀 — 랜딩 페이지
   색은 키아트와 로고에서 가져왔다: 하늘 #3f9dfd, 로고 외곽선 남색 #0b2a78, 모자 띠 빨강, 분홍 라벤더 음영.
   모자 챙과 로고의 붉은 점선 스티치를 구분선 모티프로 쓴다. */

:root {
  --sky: #3f9dfd;
  --sky-deep: #2b84e8;
  --sky-pale: #d6eaff;
  --ice: #eef6ff;
  --snow: #ffffff;
  --lav: #f3ecfb;
  --pink: #f8d3e8;
  --navy: #0b2a78;
  --ink: #1b2852;
  --ink-soft: #46527c;
  --red: #e0353f;
  --red-deep: #b8202b;
  --night: #0b1534;
  --night-2: #17275e;
  --gold: #ffd77a;

  --font-latin: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font-latin);
  --font-heading: var(--font-heading-lang, Georgia), Georgia, "Times New Roman", serif;
  --font-hand: var(--font-hand-lang, var(--font-heading-lang, Georgia)), var(--font-heading);

  --header-h: 68px;
  --radius: 22px;
  --ease: cubic-bezier(.22, .9, .25, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 18px 40px -18px rgba(11, 42, 120, .45);
  --container: 1180px;
}

:lang(ko) { --font-body: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", var(--font-latin); }
:lang(ja) { --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, var(--font-latin); }
:lang(zh-Hans) { --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", var(--font-latin); }
:lang(zh-Hant) { --font-body: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", var(--font-latin); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 8px, 18px);
  line-height: 1.75;
  color: var(--ink);
  background: var(--snow);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
:lang(ja) body, :lang(zh-Hans) body, :lang(zh-Hant) body { line-break: strict; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.25; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.hand { font-family: var(--font-hand); }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ── 눈 ─────────────────────────────────────────── */
.snow { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 30; }

/* ── 상단 바 ───────────────────────────────────── */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(14px, 3vw, 36px);
  color: #fff;
  transition: background .35s, color .35s, box-shadow .35s, backdrop-filter .35s;
}
.topbar.is-solid {
  background: rgba(255, 255, 255, .86);
  color: var(--navy);
  box-shadow: 0 6px 24px -14px rgba(11, 42, 120, .5);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; text-decoration: none; font-family: var(--font-heading); font-weight: 700; min-width: 0; }
.topbar__brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); transition: transform .5s var(--bounce); }
.topbar__brand:hover img { transform: rotate(-12deg) scale(1.08); }
.topbar__brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; text-shadow: 0 1px 8px rgba(11, 42, 120, .35); }
.topbar.is-solid .topbar__brand span { text-shadow: none; }
.topbar__nav { display: flex; flex: none; gap: 4px; margin-left: auto; }
.topbar__nav a {
  position: relative; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
  text-shadow: 0 1px 8px rgba(11, 42, 120, .35);
}
.topbar.is-solid .topbar__nav a { text-shadow: none; }
.topbar__nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.topbar__nav a:hover::after, .topbar__nav a.is-current::after { transform: scaleX(1); }
.topbar__tools { display: flex; flex: none; align-items: center; gap: 10px; }
.topbar__menu { display: none; }

.topbar__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.topbar__progress span {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 15px);
}

.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6);
  transition: background .2s;
}
.langs summary::-webkit-details-marker { display: none; }
.topbar.is-solid .langs summary { background: var(--ice); box-shadow: inset 0 0 0 1.5px rgba(11, 42, 120, .2); }
.langs summary:hover { background: rgba(255, 255, 255, .32); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 10px); margin: 0; padding: 8px; list-style: none; min-width: 180px;
  background: #fff; color: var(--navy); border-radius: 18px; box-shadow: 0 0 0 2px var(--navy), var(--shadow);
  transform-origin: top right; animation: pop-in .28s var(--bounce);
}
.langs a { display: block; padding: 8px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.langs a:hover { background: var(--ice); }
.langs a[aria-current="page"] { background: var(--navy); color: #fff; }

/* ── 버튼 ──────────────────────────────────────── */
.btn {
  --btn-bg: var(--red);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 800; line-height: 1.15; text-decoration: none; text-align: center;
  transition: transform .3s var(--bounce), box-shadow .3s, background .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn--steam {
  color: #fff; background: linear-gradient(180deg, #f2545d, var(--red) 55%, var(--red-deep));
  box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--navy), 0 14px 28px -10px rgba(11, 42, 120, .6);
  overflow: hidden; isolation: isolate;
}
.btn--steam::before {
  content: ""; position: absolute; inset: 4px; border-radius: inherit; z-index: -1;
  border: 1.5px dashed rgba(255, 255, 255, .55);
}
.btn--steam::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  transform: translateX(-130%); animation: shine 5s 2.2s infinite;
}
.btn--stove { color: #fff; background: var(--navy); box-shadow: 0 0 0 3px #fff, 0 12px 26px -12px rgba(11, 42, 120, .7); }
.btn--ghost { color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 12px 26px -12px rgba(11, 42, 120, .55); }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { padding: .55em 1em; font-size: 14px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); }
.btn--sm::before { inset: 3px; }
.btn--lg { font-size: clamp(16px, 1.1vw + 7px, 19px); padding: .95em 1.6em; }
.btn--xl { font-size: clamp(18px, 1.3vw + 8px, 22px); padding: 1.05em 2em; }

/* ── 첫 화면 ───────────────────────────────────── */
/* 넓은 화면: 메인 캡슐 키아트를 꽉 채우고, 캡슐에서 로고가 놓이는 오른쪽 하늘에 로고·소개·버튼 */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100svh; min-height: 640px; max-height: 1100px;
  background: var(--sky); color: #fff;
}
.hero__art { position: absolute; inset: -6% -3% -2%; z-index: -1; will-change: transform; }
.hero__art picture, .hero__art img { width: 100%; height: 100%; }
.hero__art img { object-fit: cover; object-position: 10% 30%; animation: art-in 1.8s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 60% at 78% 42%, rgba(18, 82, 196, .34), transparent 72%),
    linear-gradient(180deg, rgba(11, 42, 120, .42), transparent 18%);
}
.hero__content {
  position: absolute; z-index: 2;
  right: clamp(20px, 4.5vw, 96px); top: calc(var(--header-h) + 14px); bottom: clamp(70px, 8vw, 140px);
  width: min(44vw, 620px);
  display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: clamp(12px, 2.2vh, 24px);
  text-align: center;
}
.hero__head { display: flex; flex-direction: column; align-items: center; width: 100%; will-change: transform; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px;
  padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--navy);
  font-weight: 800; font-size: 14px; letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--navy), 0 8px 18px -8px rgba(11, 42, 120, .6);
  animation: drop-in .8s .25s var(--bounce) both;
}
.hero__badge-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: ping 1.8s infinite; }
.hero__title { width: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; }
.hero__logo {
  width: 100%; max-height: 36vh; object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(11, 42, 120, .35));
  animation: logo-in 1.2s .4s var(--bounce) both, bob 6s 1.8s ease-in-out infinite;
}
.hero__fullname {
  display: inline-block; margin-top: 4px; padding: 4px 18px 6px;
  font-family: var(--font-heading); font-size: clamp(16px, 1.25vw, 23px); line-height: 1.35; color: var(--navy);
  background: rgba(255, 255, 255, .94); border-radius: 999px; box-shadow: 0 0 0 2px var(--navy);
  animation: fade-up .8s .9s var(--ease) both;
}
.hero__body { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.hero__tagline {
  margin: 0; padding: 14px 22px; border-radius: 20px;
  font-weight: 700; font-size: clamp(15px, .5vw + 10px, 18px); line-height: 1.6; color: #fff;
  background: rgba(11, 42, 120, .28); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(11, 42, 120, .45);
  animation: fade-up .9s 1s var(--ease) both;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; animation: fade-up .9s 1.2s var(--ease) both; }
.hero__note { margin: -4px 0 0; padding: 3px 12px; border-radius: 999px; background: rgba(11, 42, 120, .45); font-size: 13px; font-weight: 600; animation: fade-up .9s 1.35s var(--ease) both; }
.hero__scroll {
  position: absolute; z-index: 4; left: 50%; bottom: clamp(26px, 5vw, 64px); margin-left: -23px;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--navy); box-shadow: 0 0 0 2px var(--navy), var(--shadow);
  animation: hop 2.2s 2s ease-in-out infinite;
}
.drift { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(46px, 7vw, 120px); color: var(--snow); z-index: 1; pointer-events: none; }

@media (min-aspect-ratio: 5/4) and (max-height: 860px) {
  .hero__logo { max-height: 29vh; }
  .hero__tagline { font-size: 14px; padding: 10px 18px; }
  .hero__badge { font-size: 13px; padding: 4px 14px; }
  .hero__cta .btn--lg { font-size: 16px; padding: .8em 1.3em; }
}

/* 가로가 짧은 화면: 세로 캡슐처럼 위쪽 하늘에 로고, 그림 아래 흰 바탕에 소개와 버튼 */
@media (max-aspect-ratio: 5/4) {
  .hero {
    height: auto; min-height: 0; max-height: none;
    display: grid; grid-template-areas: "art" "body"; grid-template-rows: auto auto;
    padding-top: var(--header-h);
    background: linear-gradient(180deg, var(--sky) 0, var(--sky) 40%, var(--snow) 40%);
  }
  .hero::before { background: linear-gradient(180deg, rgba(11, 42, 120, .25), transparent 12%); }
  .hero__art { grid-area: art; position: relative; inset: auto; width: min(100%, 760px); margin-inline: auto; aspect-ratio: 748 / 896; z-index: 0; }
  .hero__art img { object-position: 50% 100%; }
  .hero__content { display: contents; }
  .hero__head { grid-area: art; align-self: start; justify-self: center; z-index: 2; width: min(66vw, 500px); margin-top: min(2.4vw, 18px); }
  .hero__badge { font-size: 12px; padding: 4px 12px; margin-bottom: 4px; }
  .hero__logo { max-height: none; }
  .hero__fullname { font-size: clamp(13px, 3.4vw, 18px); padding: 3px 12px 4px; }
  .hero__body { grid-area: body; z-index: 2; padding: 4px 20px 96px; background: var(--snow); color: var(--ink); }
  .hero__tagline { color: var(--ink); background: none; box-shadow: none; text-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; max-width: 34em; font-weight: 600; }
  .hero__note { color: var(--ink-soft); background: none; }
  .drift { grid-area: art; position: relative; align-self: end; bottom: -1px; }
  .hero__scroll { bottom: 24px; }
}
@media (min-width: 761px) and (max-aspect-ratio: 5/4) {
  .hero__art { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .hero { background: linear-gradient(180deg, var(--sky) 0, #8cc4ff 50%, #e7f2ff 75%, var(--snow) 76%); }
}

/* ── 공통 구간 ─────────────────────────────────── */
.section { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.section-head { position: relative; z-index: 2; max-width: 820px; margin: 0 auto clamp(36px, 5vw, 64px); padding: 0 20px; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  color: var(--red); font-weight: 800; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
}
.kicker::before, .kicker::after {
  content: ""; width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M24 4v40M6.7 14l34.6 20M6.7 34l34.6-20M18 7l6 5 6-5M18 41l6-5 6 5M5.4 21.5 13 24l-1.6 7.8M42.6 26.5 35 24l1.6-7.8M11.4 16.2 13 24l-7.6 2.5M36.6 31.8 35 24l7.6-2.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M24 4v40M6.7 14l34.6 20M6.7 34l34.6-20M18 7l6 5 6-5M18 41l6-5 6 5M5.4 21.5 13 24l-1.6 7.8M42.6 26.5 35 24l1.6-7.8M11.4 16.2 13 24l-7.6 2.5M36.6 31.8 35 24l7.6-2.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.kicker--light { color: var(--pink); }
.section-title { font-family: var(--font-heading); font-size: clamp(28px, 3.4vw + 8px, 52px); color: var(--navy); letter-spacing: -.01em; text-wrap: balance; }
.section-head--light .section-title { color: #fff; }
.section-lead { margin: 18px auto 0; max-width: 40em; color: var(--ink-soft); font-size: 1.05em; }

.stitch { width: min(260px, 60%); height: 18px; margin: 14px 0 18px; overflow: visible; }
.stitch path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 9 8; }
.stitch--center { margin-inline: auto; }
.stitch--small { width: 150px; margin: 10px 0 16px; }
.stitch--light path { stroke: var(--pink); }

.frame {
  position: relative; border-radius: var(--radius); background: #fff; padding: 8px;
  box-shadow: 0 0 0 2px rgba(11, 42, 120, .9), 0 30px 60px -30px rgba(11, 42, 120, .7);
}
.frame::after {
  content: ""; position: absolute; inset: 15px; border-radius: calc(var(--radius) - 8px); pointer-events: none;
  border: 2px dashed rgba(224, 53, 63, .75);
}
.frame > video, .frame > img, .frame__media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--radius) - 8px); background: var(--sky-pale); }

.lead { font-size: 1.06em; }

.deco-flakes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.deco-flake { position: absolute; color: var(--sky); opacity: .22; will-change: transform; }
.deco-flake .icon { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.deco-flake--1 { width: 90px; height: 90px; left: 4%; top: 12%; }
.deco-flake--2 { width: 54px; height: 54px; right: 7%; top: 18%; color: var(--red); opacity: .16; }
.deco-flake--2 .icon { animation-duration: 18s; animation-direction: reverse; }
.deco-flake--3 { width: 130px; height: 130px; right: 3%; bottom: 8%; }
.deco-flake--4 { width: 46px; height: 46px; left: 9%; bottom: 14%; color: #b48ad8; opacity: .3; }

/* ── 트레일러 ──────────────────────────────────── */
.trailer { background: linear-gradient(180deg, var(--snow), var(--ice)); padding-top: clamp(48px, 7vw, 100px); }
.trailer__frame { width: min(1100px, 100% - 40px); margin-inline: auto; z-index: 2; }
.trailer__video { cursor: pointer; }
.trailer__play {
  position: absolute; inset: 8px; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  border-radius: calc(var(--radius) - 8px); background: radial-gradient(circle at center, rgba(11, 42, 120, .1), rgba(11, 42, 120, .38));
  transition: opacity .4s, visibility .4s;
}
.trailer__frame.is-playing .trailer__play { opacity: 0; visibility: hidden; }
.trailer__frame.is-playing::after { opacity: 0; }
.play-orb {
  position: relative; display: grid; place-items: center; width: clamp(76px, 9vw, 112px); aspect-ratio: 1; border-radius: 50%;
  color: #fff; background: linear-gradient(180deg, #f2545d, var(--red-deep));
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--navy), 0 18px 40px -10px rgba(0, 0, 0, .5);
  transition: transform .35s var(--bounce);
}
.play-orb .icon { width: 44%; height: 44%; margin-left: 8%; }
.play-orb::before, .play-orb::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid #fff; opacity: 0; animation: ripple 2.4s infinite;
}
.play-orb::after { animation-delay: 1.2s; }
.trailer__play:hover .play-orb { transform: scale(1.1) rotate(-6deg); }

/* ── 이야기 ────────────────────────────────────── */
.story { background: linear-gradient(180deg, var(--ice), var(--snow) 70%); overflow: hidden; }
.story__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.story__visual { position: relative; padding-top: 24%; }
.story__window {
  position: relative; border-radius: 48% 48% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius); overflow: hidden;
  box-shadow: 0 0 0 8px #fff, 0 0 0 10px var(--navy), 0 40px 70px -35px rgba(11, 42, 120, .8);
  aspect-ratio: 4 / 3.7;
}
.story__window img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; scale: 1.12; }
.story__kore {
  position: absolute; left: 47%; bottom: 0; width: 94%; translate: -50% 0;
  filter: drop-shadow(0 18px 24px rgba(11, 42, 120, .35));
  animation: bob 5.5s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.bubble.story__bubble { position: absolute; right: -8%; top: 5%; max-width: 56%; z-index: 2; }
.story__quote { font-size: clamp(30px, 3.2vw + 10px, 52px); line-height: 1.3; color: var(--navy); text-wrap: balance; }
:lang(ko) .story__quote, :lang(en) .story__quote { font-weight: 400; font-size: clamp(36px, 3.6vw + 12px, 62px); line-height: 1.2; }
.story__quote q { quotes: auto; }
.story__text .lead:last-child { margin-bottom: 0; }

.bubble {
  position: relative; margin: 0; padding: 14px 18px; border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 0 0 2px var(--navy), 0 16px 30px -16px rgba(11, 42, 120, .7);
  font-size: .95em; line-height: 1.55;
}
.bubble p { margin: 0; }
.bubble::after {
  content: ""; position: absolute; left: 26px; bottom: -11px; width: 20px; height: 20px; background: #fff;
  box-shadow: 2px 2px 0 0 var(--navy); transform: rotate(45deg); border-radius: 0 0 4px 0;
}
.bubble__name { font-weight: 800; color: var(--red); font-size: .9em; margin-bottom: 2px !important; }
.bubble__name small { color: var(--ink-soft); font-weight: 600; margin-left: 4px; }
.story__bubble .hand { font-size: 1.12em; }
:lang(ko) .story__bubble .hand, :lang(en) .story__bubble .hand { font-size: 1.4em; line-height: 1.3; color: var(--navy); }

/* ── 게임 소개 ─────────────────────────────────── */
.features { background: var(--snow); overflow: hidden; }
.feature { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 130px); }
.feature--flip .feature__media { order: 2; }
.feature__media .frame--tilt { rotate: -1.6deg; transition: rotate .6s var(--bounce), translate .6s var(--bounce); }
.feature--flip .frame--tilt { rotate: 1.6deg; }
.feature__media:hover .frame--tilt { rotate: 0deg; translate: 0 -6px; }
.feature__num {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  color: var(--sky-deep); font-family: var(--font-heading); font-size: 15px;
}
.feature__num .icon { width: 34px; height: 34px; animation: spin 14s linear infinite; }
.feature__num b { font-size: 22px; color: var(--navy); letter-spacing: .06em; }
.feature__title { font-family: var(--font-heading); font-size: clamp(24px, 1.6vw + 14px, 38px); color: var(--navy); text-wrap: balance; }
.feature__text p:last-child { margin-bottom: 0; }
.feature__text p { color: var(--ink-soft); }

/* ── 이웃 ──────────────────────────────────────── */
.neighbors { background: linear-gradient(180deg, var(--snow), var(--lav) 30%, #fbeef6 70%, var(--ice)); overflow: hidden; }
.cast { position: relative; z-index: 2; }
.cast__stage { position: relative; }
.cast__panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(20px, 4vw, 64px);
  min-height: clamp(380px, 34vw, 500px);
}
.js .cast__panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.js .cast__panel.is-active { position: relative; opacity: 1; visibility: visible; }
.cast__art { position: relative; align-self: end; display: grid; place-items: end center; height: 100%; }
.cast__disc {
  position: absolute; left: 50%; bottom: 4%; width: min(84%, 400px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 70%, #fff) 70%);
  box-shadow: 0 0 0 8px #fff, 0 0 0 10px color-mix(in srgb, var(--c) 60%, var(--navy)), 0 30px 60px -30px var(--c);
}
.cast__disc::after {
  content: ""; position: absolute; inset: 16px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .85);
  animation: spin 40s linear infinite;
}
.cast__art img {
  position: relative; width: min(92%, 360px); margin-bottom: 2%; transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 99%); mask-image: linear-gradient(180deg, #000 78%, transparent 99%);
}
.cast__panel.is-active .cast__art img { animation: cast-in .7s var(--bounce) both; }
.cast__panel.is-active .cast__info > * { animation: fade-up .6s var(--ease) both; }
.cast__panel.is-active .cast__info > :nth-child(2) { animation-delay: .06s; }
.cast__panel.is-active .cast__info > :nth-child(3) { animation-delay: .12s; }
.cast__panel.is-active .cast__info > :nth-child(4) { animation-delay: .22s; }
.cast__role {
  display: inline-block; margin: 0 0 6px; padding: 3px 14px; border-radius: 999px; font-weight: 800; font-size: 14px;
  color: #fff; background: color-mix(in srgb, var(--c) 85%, #000);
}
.cast__name { font-family: var(--font-heading); font-size: clamp(40px, 4vw + 12px, 72px); color: var(--navy); line-height: 1.05; margin-bottom: 14px; }
.cast__desc { font-size: 1.05em; color: var(--ink-soft); max-width: 30em; }
.cast__line { margin-top: 22px; max-width: 30em; font-size: 1em; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 70%, var(--navy)), 0 16px 30px -16px rgba(11, 42, 120, .6); }
.cast__line::after { box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--c) 70%, var(--navy)); }
.cast__picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 0 18px; padding-top: 8px; }
.cast__tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: 13px; color: var(--ink-soft);
}
.cast__tab img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  background: color-mix(in srgb, var(--c) 35%, #fff);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px color-mix(in srgb, var(--c) 50%, #c9cfe6);
  transition: transform .35s var(--bounce), box-shadow .35s;
}
.cast__tab:hover img { transform: translateY(-5px) rotate(-6deg); }
.cast__tab[aria-selected="true"] { color: var(--navy); }
.cast__tab[aria-selected="true"] img { transform: translateY(-6px) scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c), 0 12px 20px -8px var(--c); }
.cast__tab .cast__timer { display: none; }

/* ── 스크린샷 ──────────────────────────────────── */
.gallery { background: linear-gradient(180deg, var(--ice), #e6f0ff 70%, #dfe6fb); }
.shots { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 auto; padding: 0; list-style: none; }
.shots__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.shots__item:nth-child(6) { grid-column: 3 / span 2; grid-row: span 2; }
.shots__item a {
  position: relative; display: block; height: 100%; overflow: hidden; border-radius: 18px;
  box-shadow: 0 0 0 2px var(--navy), 0 18px 34px -20px rgba(11, 42, 120, .8); background: var(--sky-pale);
  transform: translateZ(0);
}
.shots__item img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease), filter .8s; }
.shots__item a:hover img, .shots__item a:focus-visible img { transform: scale(1.07); }
.shots__cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .92); color: var(--navy); font-weight: 700; font-size: 14px; line-height: 1.4;
  transform: translateY(calc(100% + 14px)); transition: transform .45s var(--bounce);
}
.shots__item a:hover .shots__cap, .shots__item a:focus-visible .shots__cap { transform: none; }

/* ── 밤과 비밀 ─────────────────────────────────── */
.night {
  color: #e8ecff; overflow: hidden;
  background: linear-gradient(180deg, #dfe6fb 0%, #c3bde8 9%, #7f78c4 20%, #3c4796 34%, var(--night-2) 50%, var(--night) 78%);
  padding-top: clamp(140px, 16vw, 220px);
}
.night__stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.night__shooting { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shooting-star {
  position: absolute; width: 160px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 70%, #fff);
  filter: drop-shadow(0 0 6px #fff);
  rotate: 152deg; animation: shoot 1.4s ease-out forwards;
}
.night__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.night__title { font-family: var(--font-heading); font-size: clamp(28px, 2.6vw + 12px, 48px); color: #fff; text-wrap: balance; }
.night__text p { color: #cfd6f6; }
.night__questions { font-size: 1.1em; color: #fff !important; font-weight: 600; }
.memory { position: relative; margin: 0; }
.memory__frame {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), 0 0 0 8px var(--gold), 0 0 80px 10px rgba(130, 160, 255, .35);
}
.memory__frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; animation: memory-pan 18s ease-in-out infinite alternate; }
.dialog-box {
  position: relative; margin: -46px 6% 0; padding: 14px 22px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); color: #3a3348; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
}
.dialog-box__name { display: block; padding-bottom: 6px; margin-bottom: 8px; color: #c9764a; font-weight: 800; font-size: .9em; border-bottom: 1.5px solid #e9b9a0; }
.dialog-box__text { display: block; min-height: 1.6em; font-weight: 600; }
.dialog-box__text.is-typing::after { content: "▍"; margin-left: 2px; color: #c9764a; animation: blink .8s steps(1) infinite; }

/* ── 약속 ──────────────────────────────────────── */
.promise { background: var(--night); color: #e8ecff; padding-top: clamp(40px, 6vw, 90px); }
.promise__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.promise__card {
  position: relative; padding: 30px 30px 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22);
  transition: transform .4s var(--bounce), background .4s;
}
.promise__card::after { content: ""; position: absolute; inset: 10px; border-radius: 16px; border: 1.5px dashed rgba(248, 211, 232, .35); pointer-events: none; }
.promise__card:hover { transform: translateY(-6px); background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
.promise__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--pink); color: var(--navy); margin-bottom: 14px; }
.promise__icon .icon { width: 28px; height: 28px; animation: spin 16s linear infinite; }
.promise__card h3 { font-family: var(--font-heading); font-size: clamp(20px, 1vw + 14px, 26px); color: #fff; margin-bottom: 8px; }
.promise__card p { margin: 0; color: #cfd6f6; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 28px; margin-bottom: 0; padding: 0; border-radius: 18px; overflow: hidden; }
.facts__item { padding: 18px 20px; background: rgba(255, 255, 255, .06); text-align: center; }
.facts dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); font-weight: 800; }
.facts dd { margin: 4px 0 0; color: #fff; font-weight: 700; }

/* ── 마지막 ────────────────────────────────────── */
.finale { position: relative; min-height: min(100svh, 920px); display: grid; place-items: end center; overflow: hidden; background: var(--night); color: #fff; text-align: center; isolation: isolate; }
.finale__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.finale::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--night) 0%, rgba(11, 21, 52, .1) 22%, rgba(11, 21, 52, .1) 50%, rgba(8, 16, 42, .85) 80%, #070f28 100%);
}
.finale__inner { padding: 52vh 0 clamp(60px, 8vh, 110px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.finale__logo { width: min(340px, 64vw); filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .4)); animation: bob 6s ease-in-out infinite; }
.finale__title { font-family: var(--font-heading); font-size: clamp(30px, 3vw + 12px, 54px); text-shadow: 0 4px 24px rgba(0, 0, 0, .5); text-wrap: balance; }
.finale__body { max-width: 34em; margin: 0; color: #dfe5ff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.finale__badge { margin: 4px 0 0; padding: 5px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); font-weight: 800; font-size: 14px; }
.finale__cta { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; }
.finale__note { margin: 0; font-size: 13px; color: #b9c2ea; }

/* ── 바닥글 ────────────────────────────────────── */
.footer { position: relative; z-index: 31; background: #070f28; color: #aab4dc; padding: 44px 0 52px; font-size: 14px; }
.footer__inner { display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: 700; font-size: 18px; }
.footer__brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.footer__langs { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.footer__langs a { color: #cfd6f6; text-decoration: none; }
.footer__langs a:hover, .footer__langs a[aria-current="page"] { color: #fff; text-decoration: underline dashed var(--red) 2px; text-underline-offset: 5px; }
.footer__links { margin: 0; }
.footer__links a { color: #fff; font-weight: 700; }
.footer__contact { margin: 0; }
.footer__contact a { color: #fff; margin-left: 6px; }
.footer__legal { margin: 0; line-height: 1.6; color: #7f8ab5; }

/* ── 크게 보기 ─────────────────────────────────── */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 12, 34, .92); color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: fade .3s; }
.lightbox__figure { margin: 0; width: min(92vw, 1600px); display: grid; gap: 14px; justify-items: center; }
.lightbox__figure img { max-height: 80vh; width: auto; border-radius: 16px; box-shadow: 0 0 0 3px #fff, 0 30px 80px rgba(0, 0, 0, .6); animation: pop-in .4s var(--bounce); }
.lightbox__figure figcaption { font-weight: 700; text-align: center; padding: 0 60px; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--navy); box-shadow: 0 0 0 2px var(--navy); transition: transform .3s var(--bounce);
}
.lightbox__btn:hover { transform: scale(1.1); }
.lightbox__btn--close { top: 18px; right: 18px; }
.lightbox__btn--prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: 18px; top: 50%; translate: 0 -50%; }

/* ── 나타나기 ──────────────────────────────────── */
.js [data-reveal] { opacity: 0; translate: 0 32px; transition: opacity .9s var(--ease), translate 1s var(--ease), scale 1s var(--ease), rotate 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="left"] { translate: -60px 0; rotate: -3deg; }
.js [data-reveal="right"] { translate: 60px 0; rotate: 3deg; }
.js [data-reveal="zoom"] { translate: 0 20px; scale: .9; }
.js [data-reveal="pop"] { translate: 0 10px; scale: .5; transition-timing-function: var(--bounce); }
.js [data-reveal="draw"] { opacity: 1; translate: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease) .25s; }
.js [data-reveal].is-in { opacity: 1; translate: none; scale: 1; rotate: none; }
.js [data-reveal="draw"].is-in { clip-path: inset(0 -10% 0 0); }

/* ── 움직임 ────────────────────────────────────── */
@keyframes art-in { from { scale: 1.14; filter: brightness(1.2) saturate(.8); } to { scale: 1; filter: none; } }
@keyframes logo-in { 0% { opacity: 0; transform: translateY(-60px) scale(.7) rotate(-6deg); } 100% { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-12px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(224, 53, 63, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(224, 53, 63, 0); } }
@keyframes shine { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }
@keyframes ripple { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes cast-in { 0% { opacity: 0; transform: translateY(40px) scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes memory-pan { from { scale: 1.02; translate: -1% 0; } to { scale: 1.08; translate: 1% -1%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shoot { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateX(-520px); } }

/* ── 좁은 화면 ─────────────────────────────────── */
@media (max-width: 1080px) {
  .topbar__nav a { padding: 8px 9px; font-size: 14px; }
  .topbar__tools .btn--sm span { display: none; }
  .topbar__tools .btn--sm { padding: .55em .7em; }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .topbar__brand span { display: none; }
  .topbar__menu {
    display: grid; gap: 4px; place-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6);
  }
  .topbar.is-solid .topbar__menu { background: var(--ice); box-shadow: inset 0 0 0 1.5px rgba(11, 42, 120, .2); }
  .topbar__menu span { width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
  .topbar__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .topbar__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .topbar__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .topbar__tools { margin-left: auto; }
  .topbar__nav {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); margin: 0;
    flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px;
    background: #fff; color: var(--navy); box-shadow: 0 0 0 2px var(--navy), var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top;
    transition: opacity .25s, visibility .25s, transform .3s var(--bounce);
  }
  .topbar__nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .topbar__nav a { padding: 12px 16px; font-size: 16px; text-shadow: none; }
  .topbar__nav a::after { left: 16px; right: auto; width: 40px; }

  .story__grid, .night__grid { grid-template-columns: 1fr; }
  .story__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .cast__panel { grid-template-columns: 1fr; min-height: 0; text-align: center; gap: 8px; }
  .cast__art { height: auto; }
  .cast__art img { width: min(72vw, 340px); }
  .cast__desc, .cast__line { margin-inline: auto; }
  .cast__line { text-align: left; }
  .cast__picker { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 6px 8px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .cast__picker::-webkit-scrollbar { display: none; }
  .cast__tab { scroll-snap-align: center; flex: none; }
  .cast__tab img { width: 60px; height: 60px; }
  .shots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shots__item:nth-child(6) { grid-column: auto; grid-row: span 1; }
  .shots__cap { font-size: 12px; transform: none; padding: 5px 9px; left: 6px; right: auto; bottom: 6px; max-width: calc(100% - 12px); }
  .shots__item:not(:first-child) .shots__cap { display: none; }
  .promise__cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .memory { margin-top: 10px; }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 18px; translate: none; }
}
@media (max-aspect-ratio: 1/1) {
  .finale { min-height: 0; }
  .finale__bg {
    inset: 9vh 0 auto; height: auto; aspect-ratio: 16 / 9; object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
  }
  .finale__inner { padding-top: calc(9vh + 50vw); }
}
@media (max-width: 520px) {
  .langs summary span { display: none; }
  .langs summary { padding: 9px; }
  .hero__cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .finale__cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .bubble.story__bubble { right: 0; top: 4%; max-width: 70%; font-size: .9em; }
  .feature__media .frame--tilt, .feature--flip .frame--tilt { rotate: 0deg; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; translate: none; scale: 1; rotate: none; clip-path: none; }
  .snow { display: none; }
}
