/* 한양분식 공식 홈페이지 — 라이트 아이보리 본문 + 먹/차콜 밤 장면 · 금 · 붉은 먹
   외부 글꼴·CDN 없음(문자권별 시스템 글꼴 스택). 움직임은 transform/opacity 위주.
   RTL: 논리 속성(inline/block)만 쓴다. 터키어 대문자는 <html lang> + text-transform 으로. */

/* ───────── 1. 바탕값 ───────── */
:root {
  --paper: #f8f4ec;
  --paper-2: #f2ebde;
  --hanji: #f3ecdf;
  --ink: #1d1814;
  --ink-2: #5a4f45;
  --ink-3: #8a7d70;
  --gold: #e9c27a;
  --gold-2: #c9973f;
  --bronze: #a2733b;
  --red: #a8251b;
  --red-2: #7a1f14;
  --night: #0e0c0a;
  --night-2: #16120e;
  --night-3: #221b14;
  --night-ink: #f3eadb;
  --night-ink-2: #bdae98;

  --fg: var(--ink);
  --muted: var(--ink-2);
  --accent: var(--red);
  --accent-2: var(--bronze);
  --line: #e4dac8;
  --card: #fffdf8;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(64px, 9vw, 128px);
  --header-h: 76px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  --sans: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --latin: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue",
    Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --display: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
}
@media (max-width: 860px) { :root { --header-h: 112px; } }

/* 문자권별 글꼴 대체(lang 이 붙은 요소에 바로 적용 → 언어 목록의 각 이름에도 맞는 글꼴) */
:lang(ko) { font-family: var(--sans); }
:lang(en), :lang(de), :lang(tr), :lang(es), :lang(pt), :lang(fr), :lang(id), :lang(vi), :lang(ru) { font-family: var(--latin); }
:lang(ja) { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif; }
:lang(zh-TW) { font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif; }
:lang(zh-CN) { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Heiti SC", system-ui, sans-serif; }
:lang(th) { font-family: "Noto Sans Thai", "Leelawadee UI", Thonburi, Tahoma, system-ui, sans-serif; }
:lang(hi) { font-family: "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", Mangal, system-ui, sans-serif; }
:lang(ar) { font-family: "Noto Sans Arabic", "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif; }

/* ───────── 2. 기본 ───────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--night);
}
body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--fg);
  background: var(--paper);
  overflow-x: clip;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:lang(ko) body, body:lang(ko) { word-break: keep-all; }
:lang(th) body, :lang(hi) body, :lang(ar) body { line-height: 1.9; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) h4 { overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
[hidden] { display: none !important; }   /* .btn 등 display 를 준 요소도 hidden 이면 숨김(JS 전용 단추) */
.num, time, .dur { font-variant-numeric: tabular-nums; }
:lang(ar) *, :lang(hi) *, :lang(th) * { letter-spacing: 0 !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.wrap.narrow { max-width: 960px; }
.band { padding-block: var(--band); position: relative; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #1d1408; font-weight: 700;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
.soon { color: var(--muted); font-size: 1.05rem; }
.center-link { margin-top: 36px; text-align: center; }

/* ───────── 3. 톤(구역 색) ───────── */
.tone-paper { background: var(--paper); --fg: var(--ink); --muted: var(--ink-2); --accent: var(--red); --accent-2: var(--bronze); --line: #e4dac8; --card: #fffdf8; color: var(--fg); }
.tone-hanji {
  --fg: var(--ink); --muted: var(--ink-2); --accent: var(--red); --accent-2: var(--bronze); --line: #e0d4bd; --card: rgba(255, 253, 248, .78);
  color: var(--fg);
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(201, 151, 63, .08), transparent 60%),
    repeating-linear-gradient(90deg, rgba(120, 90, 50, .025) 0 1px, transparent 1px 7px),
    var(--hanji);
}
.tone-night {
  --fg: var(--night-ink); --muted: var(--night-ink-2); --accent: var(--gold); --accent-2: var(--gold); --line: rgba(233, 194, 122, .16); --card: rgba(255, 255, 255, .035);
  color: var(--fg);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(233, 194, 122, .09), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(168, 37, 27, .10), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.tone-day {
  --fg: #2a2017; --muted: #6a5846; --accent: #b4521e; --accent-2: #a87318; --line: rgba(160, 110, 40, .22); --card: rgba(255, 255, 255, .55);
  color: var(--fg);
  background:
    radial-gradient(900px 480px at 90% 0%, rgba(255, 214, 140, .45), transparent 60%),
    linear-gradient(180deg, #fbf1dc 0%, #f6e8cb 100%);
}

/* ───────── 4. 글머리 · 단추 · 배지 ───────── */
.section-head { display: grid; gap: 12px; margin-block-end: clamp(28px, 4vw, 52px); max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; flex: none; }
.h2 { font-size: clamp(1.75rem, 3.8vw, 2.75rem); line-height: 1.25; letter-spacing: -.02em; font-weight: 800; color: var(--fg); }
.lede { margin: 0; font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--muted); max-width: 62ch; }
.prose p { color: var(--muted); font-size: 1.05rem; }
.prose p:first-child { color: var(--fg); font-size: clamp(1.08rem, 1.8vw, 1.22rem); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; max-width: 100%; padding: 10px 22px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.3; text-align: center;
  text-decoration: none; overflow-wrap: anywhere; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn-gold { background: linear-gradient(180deg, #f2d496, #d9a55a); color: #1d1408; box-shadow: 0 8px 26px rgba(233, 194, 122, .22); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(233, 194, 122, .34); }
.btn-line { border-color: rgba(243, 234, 219, .38); color: var(--night-ink); background: rgba(255, 255, 255, .03); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.tone-night .btn-accent, .doors[data-active="night"] .btn-accent { color: #1d1408; }
.btn-accent:hover { transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn .ext, .footer-links .ext, .chips .ext { flex: none; opacity: .8; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.badge-new { background: var(--red); color: #fff; }
.badge-soon { background: rgba(168, 37, 27, .09); color: var(--red); border: 1px solid rgba(168, 37, 27, .25); }
.tone-night .badge-soon { background: rgba(233, 194, 122, .1); color: var(--gold); border-color: rgba(233, 194, 122, .35); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); text-decoration: none; }
.link-arrow .arr { flex: none; transition: transform .3s var(--ease-out); }
a.link-arrow:hover .arr, a:hover > .link-arrow .arr { transform: translateX(4px); }
[dir="rtl"] .arr { transform: scaleX(-1); }
[dir="rtl"] a.link-arrow:hover .arr, [dir="rtl"] a:hover > .link-arrow .arr { transform: scaleX(-1) translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 12px; }
.chips a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg); font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* 마우스 자리 등불(카드 위) */
.spot-card { position: relative; isolation: isolate; }
.spot {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(233, 194, 122, .16), transparent 45%);
  transition: opacity .35s;
}
.spot-card:hover .spot { opacity: 1; }

/* ───────── 5. 머리글 · 언어 선택 ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  color: var(--night-ink);
  background: rgba(14, 12, 10, .88);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-block-end: 1px solid rgba(233, 194, 122, .14);
  transition: background-color .4s, border-color .4s;
}
.page-home .site-header { position: fixed; inset-inline: 0; background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.page-home .site-header.is-scrolled { background: rgba(14, 12, 10, .88); border-color: rgba(233, 194, 122, .14); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }
.header-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav lang";
  align-items: center; gap: 10px 20px; min-height: 76px;
}
.brand {
  grid-area: brand; display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  color: var(--night-ink); text-decoration: none; font-weight: 800; font-size: 1.05rem;
}
.brand-mark { flex: none; display: grid; place-items: center; }
.brand-mark .lantern { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(233, 170, 80, .45)); }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 머리글 로고 = 작은 크기용 logo_small.svg(2313.0 × 1055.8) · 사용자 12-05 «작은 크기의 깔끔한 로고» */
.brand-logo { --bh: 58px; height: var(--bh); width: calc(var(--bh) * 2.191); aspect-ratio: 2313.0 / 1055.8; flex: none; color: var(--gold); }
.site-header .brand-name { font-size: 1.5rem; font-weight: 900; letter-spacing: .02em; color: var(--gold); }
@media (max-width: 860px) { .brand-logo { --bh: 48px; } .site-header .brand-name { font-size: 1.3rem; } }

.site-nav { grid-area: nav; min-width: 0; }
.site-nav ul { display: flex; gap: 2px; list-style: none; justify-content: center; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  color: rgba(243, 234, 219, .78); text-decoration: none; font-size: .95rem; font-weight: 600;
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: #fff; background: rgba(233, 194, 122, .1); }
.site-nav a[aria-current="page"] { color: var(--gold); background: rgba(233, 194, 122, .12); }

.lang-menu { grid-area: lang; position: relative; justify-self: end; }
.lang-btn {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; max-width: 44vw;
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(233, 194, 122, .35);
  color: var(--night-ink); font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; user-select: none;
  transition: border-color .2s, background-color .2s;
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn::marker { content: ""; }
.lang-btn:hover, .lang-menu[open] .lang-btn { border-color: var(--gold); background: rgba(233, 194, 122, .08); }
.lang-btn svg { flex: none; }
.lang-current { overflow: hidden; text-overflow: ellipsis; }
.lang-menu .chev { transition: transform .25s; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60;
  width: min(380px, calc(100vw - 2 * var(--gutter))); max-height: min(70vh, 540px); overflow: auto;
  padding: 10px; border-radius: 16px; background: #1b1612; border: 1px solid rgba(233, 194, 122, .24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); overscroll-behavior: contain;
}
.lang-menu[open] .lang-panel { animation: hb-drop .22s var(--ease-out); }
.lang-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; list-style: none; }
.lang-list a {
  display: block; padding: 10px 12px; border-radius: 9px; color: var(--night-ink); text-decoration: none;
  font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; transition: background-color .15s, color .15s;
}
.lang-list a:hover { background: rgba(233, 194, 122, .1); }
.lang-list a[aria-current] { color: var(--gold); background: rgba(233, 194, 122, .13); }
.lang-list a[aria-current]::after { content: " ✓"; }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand lang" "nav nav"; min-height: 0; padding-top: 10px; gap: 6px 12px; }
  .site-nav ul {
    justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-block: 2px 8px;
    -webkit-mask-image: linear-gradient(to right, #000 86%, transparent); mask-image: linear-gradient(to right, #000 86%, transparent);
  }
  [dir="rtl"] .site-nav ul { -webkit-mask-image: linear-gradient(to left, #000 86%, transparent); mask-image: linear-gradient(to left, #000 86%, transparent); }
  .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 7px 11px; font-size: .9rem; }
}
@keyframes hb-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ───────── 6. 로고 ───────── */
.logo-mask { display: inline-block; position: relative; }
.logo-fallback { display: none; }
@supports ((-webkit-mask-image: none) or (mask-image: none)) {
  .logo-mask {
    background: linear-gradient(180deg, #fff3d6 0%, #f0cf8a 38%, #d9a55a 70%, #b8803a 100%);
    -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  }
  .brand-logo.logo-mask { background: var(--gold); }
}
@supports not ((-webkit-mask-image: none) or (mask-image: none)) {
  .logo-mask .logo-fallback { display: inline; color: var(--gold); font-weight: 900; }
  .logo-mask { width: auto !important; height: auto !important; }
}
.logo-text {
  display: inline-block; font-family: var(--display); font-weight: 900; color: var(--gold); line-height: 1;
}

/* ───────── 7. 첫 화면 ───────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(55% 45% at 50% 44%, rgba(233, 170, 80, .22), transparent 70%),
    radial-gradient(120% 70% at 50% 115%, rgba(168, 37, 27, .26), transparent 60%),
    linear-gradient(180deg, #090706 0%, #14100c 58%, #0e0c0a 100%);
}
.hero-lattice {
  position: absolute; inset: auto 0 0 0; height: 46%; z-index: -2; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, .55) 46px 50px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(0, 0, 0, .55) 46px 50px);
  -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: none; pointer-events: none; }
.js .hero-canvas { display: block; }
.hero-vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .6)); }
.hero-inner {
  display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.4vh, 22px);
  padding-block: calc(var(--header-h) + clamp(40px, 9vh, 90px)) clamp(90px, 13vh, 130px);
}
.hero-eyebrow { color: var(--gold); }
.hero-title { display: grid; justify-items: center; gap: 12px; margin: 0; }
.hero-logo { display: block; filter: drop-shadow(0 0 26px rgba(233, 194, 122, .32)); }
.logo-big.logo-mask { width: min(84vw, 680px); aspect-ratio: 3082.7 / 1206.2; } /* 세로형 logo.svg 의 실제 비율 */
.logo-big.logo-text { font-size: clamp(3.4rem, 14vw, 8rem); letter-spacing: .04em; }
.hero-sub { font-size: clamp(1rem, 2.6vw, 1.4rem); font-weight: 700; letter-spacing: .14em; color: var(--gold); }
.hero-tagline { margin: 0; max-width: 34ch; font-size: clamp(1.06rem, 2.4vw, 1.4rem); line-height: 1.6; color: rgba(243, 234, 219, .88); }
.hero-faces { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 1.6vw, 14px); list-style: none; max-width: min(760px, 100%); margin-top: 6px; }
.hero-faces a { position: relative; display: block; border-radius: 50%; text-decoration: none; }
.face {
  display: block; width: clamp(48px, 11vw, 68px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(233, 194, 122, .7); background: #2a221a;
  box-shadow: 0 0 0 4px rgba(233, 194, 122, .08), 0 8px 24px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease-back), border-color .3s, box-shadow .3s;
}
.face img { width: 100%; height: 100%; object-fit: cover; }
.hero-faces a:hover .face, .hero-faces a:focus-visible .face { transform: translateY(-5px) scale(1.08); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(233, 194, 122, .18), 0 12px 30px rgba(0, 0, 0, .5); }
.face-name {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translate(-50%, -4px); z-index: 2;
  padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .72); color: var(--night-ink);
  font-size: .78rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.hero-faces a:hover .face-name, .hero-faces a:focus-visible .face-name { opacity: 1; transform: translate(-50%, 0); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 28px; height: 54px; display: grid; justify-items: center; }
.hero-scroll-line { width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(233, 194, 122, .8)); transform-origin: top; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-eyebrow { animation: hb-rise .9s var(--ease-out) .25s both; }
  .js .hero-logo { animation: hb-logo 1.3s var(--ease-out) 1.15s both; }
  .js .hero-sub { animation: hb-rise .9s var(--ease-out) 1.7s both; }
  .js .hero-tagline { animation: hb-rise .9s var(--ease-out) 1.85s both; }
  .js .hero-faces li { animation: hb-pop .62s var(--ease-back) calc(2.15s + var(--i, 0) * 90ms) both; }
  .js .hero-cta { animation: hb-rise .9s var(--ease-out) 3s both; }
  .js .hero-scroll { animation: hb-fade 1s ease 3.4s both; }
  .hero-scroll-line { animation: hb-drip 2.4s ease-in-out infinite; }
}
@keyframes hb-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hb-logo { from { opacity: 0; transform: scale(.965); filter: blur(10px) brightness(1.8); } to { opacity: 1; transform: none; filter: drop-shadow(0 0 26px rgba(233, 194, 122, .32)); } }
@keyframes hb-pop { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hb-drip { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ───────── 8. 최신 공개 · 재생 ───────── */
.latest { padding-top: clamp(40px, 6vw, 80px); }
.latest-grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.feature {
  display: grid; gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(12px, 2vw, 20px);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .latest-grid .feature:nth-child(2n) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .latest-grid .feature:nth-child(2n) .feature-media { order: 2; }
}
.feature-body { padding: clamp(4px, 1vw, 12px); }
.feature-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.feature-title { font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.3; margin-bottom: 14px; color: var(--fg); }
.feature-body p { color: var(--muted); }
.feature-meta { font-size: .88rem; }
.feature-more { margin-top: 14px; }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b0908; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.player-link { position: absolute; inset: 0; display: block; color: #fff; }
.player img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), filter .4s; }
.player-link:hover img, .player-link:focus-visible img { transform: scale(1.045); filter: brightness(1.06); }
.player-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 45%); pointer-events: none; }
.play-ico {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 64px; height: 64px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: rgba(14, 12, 10, .55); border: 1px solid rgba(233, 194, 122, .65);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .35s var(--ease-back), background-color .3s;
}
.play-ico svg { margin-left: 3px; }
.player-link:hover .play-ico, .player-link:focus-visible .play-ico { transform: translate(-50%, -50%) scale(1.12); background: rgba(168, 37, 27, .88); }
.player.is-link .play-ico { width: 52px; height: 52px; }
.dur {
  position: absolute; inset-inline-end: 10px; bottom: 10px; z-index: 1; direction: ltr;
  padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font-size: .8rem; line-height: 1.5;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.is-playing { box-shadow: 0 0 0 2px var(--gold-2), 0 18px 50px rgba(0, 0, 0, .35); }
.thumb-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(233, 194, 122, .06) 30px 32px),
    radial-gradient(70% 60% at 50% 42%, rgba(233, 194, 122, .25), transparent 70%),
    linear-gradient(135deg, #1c1612, #0e0c0a);
}
.thumb-fallback span { font-size: clamp(2.2rem, 7vw, 3.8rem); font-weight: 900; color: rgba(233, 194, 122, .85); line-height: 1; }

/* ───────── 9. 작품 소개 · 두 개의 문 ───────── */
.about-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.door-duo { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.door-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  min-height: 320px; padding: clamp(22px, 3vw, 30px); border-radius: var(--radius-lg); text-decoration: none;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.door-card.is-night { background: linear-gradient(165deg, #1d1712, #0c0a08); color: var(--night-ink); --accent: var(--gold); }
.door-card.is-day { background: linear-gradient(165deg, #fff6e2, #f0d7a2); color: #2a2017; --accent: #b4521e; }
.door-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(40, 25, 10, .22); }
.door-card::after {
  content: ""; position: absolute; z-index: -1; width: 240px; height: 240px; border-radius: 50%;
  inset-inline-start: -60px; bottom: -80px; pointer-events: none;
}
.door-card.is-night::after { background: radial-gradient(circle, rgba(233, 170, 80, .36), transparent 70%); }
.door-card.is-day::after { background: radial-gradient(circle, rgba(255, 255, 255, .8), transparent 70%); }
.door-art { position: absolute; z-index: -1; inset-inline-end: 18px; top: 18px; width: 46%; aspect-ratio: 3 / 4; display: flex; perspective: 600px; opacity: .2; }
.leaf {
  flex: 1; border: 2px solid currentColor; transform-origin: left center; transition: transform .9s var(--ease-out);
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, currentColor 14px 16px),
    repeating-linear-gradient(0deg, transparent 0 14px, currentColor 14px 16px);
}
.leaf-a { border-radius: 60px 0 0 0; }
.leaf-b { border-radius: 0 60px 0 0; transform-origin: right center; }
.door-card:hover .leaf-a { transform: rotateY(-55deg); }
.door-card:hover .leaf-b { transform: rotateY(55deg); }
.door-k { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.door-name { margin-top: auto; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; }
.door-desc { font-size: .95rem; line-height: 1.65; opacity: .82; }
.door-card .link-arrow { margin-top: 6px; color: var(--accent); }

/* ───────── 10. 회차 — 밤의 문 → 낮의 문 ───────── */
.doors { position: relative; isolation: isolate; }
.doors-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: clip; }
.doors-orb { display: none; }
.doors-head { padding-top: var(--band); }
.season { padding-block: clamp(48px, 7vw, 96px); position: relative; }
.season-head { display: grid; gap: 8px; margin-block-end: clamp(24px, 3vw, 40px); max-width: 720px; }
.season-kicker { margin: 0; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.season-title { display: flex; align-items: center; gap: 12px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--fg); }
.season-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); }
.season-ico svg { width: 20px; height: 20px; }
.season-desc { margin: 0; color: var(--muted); max-width: 60ch; }
.doors-more { padding-block: 0 var(--band); text-align: center; }
.door-sign { display: none; }

/* JS 가 살아 있으면: 구역 전체가 한 톤으로 바뀌며 달 → 해 */
.doors.is-live { transition: background-color 1s ease, color 1s ease; }
.doors.is-live[data-active="night"] { background-color: var(--night); --fg: var(--night-ink); --muted: var(--night-ink-2); --accent: var(--gold); --accent-2: var(--gold); --line: rgba(233, 194, 122, .16); --card: rgba(255, 255, 255, .035); color: var(--fg); }
.doors.is-live[data-active="day"] { background-color: #f9eed6; --fg: #2a2017; --muted: #6a5846; --accent: #b4521e; --accent-2: #a87318; --line: rgba(160, 110, 40, .22); --card: rgba(255, 255, 255, .55); color: var(--fg); }
.doors.is-live .season { background: transparent; --fg: inherit; --muted: inherit; --accent: inherit; --accent-2: inherit; --line: inherit; --card: inherit; color: var(--fg); }
.doors.is-live .doors-sky::before, .doors.is-live .doors-sky::after { content: ""; position: absolute; inset: 0; transition: opacity 1.1s ease; }
.doors.is-live .doors-sky::before {
  background:
    radial-gradient(2px 2px at 12% 18%, rgba(255, 236, 190, .7), transparent 60%),
    radial-gradient(2px 2px at 78% 12%, rgba(255, 236, 190, .6), transparent 60%),
    radial-gradient(1.5px 1.5px at 42% 30%, rgba(255, 236, 190, .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 52%, rgba(255, 236, 190, .45), transparent 60%),
    radial-gradient(900px 500px at 15% 100%, rgba(168, 37, 27, .14), transparent 60%),
    linear-gradient(180deg, var(--night), var(--night-2));
  background-size: 600px 600px, 700px 700px, 500px 500px, 800px 800px, auto, auto;
}
.doors.is-live .doors-sky::after { background: radial-gradient(1000px 600px at 85% 0%, rgba(255, 210, 130, .5), transparent 60%), linear-gradient(180deg, #fbf1dc, #f6e6c6); opacity: 0; }
.doors.is-live[data-active="day"] .doors-sky::before { opacity: 0; }
.doors.is-live[data-active="day"] .doors-sky::after { opacity: 1; }
.doors.is-live .doors-orb {
  display: block; position: sticky; z-index: 1; top: calc(var(--header-h) + 14vh);
  width: clamp(80px, 12vw, 160px); aspect-ratio: 1; margin-inline-start: auto; margin-inline-end: 6vw; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffaf0, #efd9a2 58%, #c9a35a);
  box-shadow: 0 0 70px 14px rgba(233, 194, 122, .22);
  transition: background 1.1s ease, box-shadow 1.1s ease, transform 1.1s var(--ease-out);
}
.doors.is-live .doors-orb::after {
  content: ""; position: absolute; inset: -4%; border-radius: 50%; background: var(--night);
  transform: translate(28%, -14%); transition: opacity 1s ease, transform 1.1s var(--ease-out);
}
[dir="rtl"] .doors.is-live .doors-orb::after { transform: translate(-28%, -14%); }
.doors.is-live[data-active="day"] .doors-orb { background: radial-gradient(circle at 40% 38%, #fff3d0, #ffb85c 55%, #e0742c); box-shadow: 0 0 110px 34px rgba(255, 176, 80, .38); transform: scale(1.1); }
.doors.is-live[data-active="day"] .doors-orb::after { opacity: 0; transform: translate(60%, -40%); }
@media (max-width: 700px) { .doors.is-live .doors-orb { opacity: .45; } }

.doors.is-live .door-sign {
  display: flex; justify-content: center; align-items: flex-start; gap: 0; position: sticky; z-index: 5;
  top: calc(var(--header-h) + 10px); height: 0; overflow: visible; pointer-events: none;
}
.ds {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: .82rem; font-weight: 800; white-space: nowrap;
  color: var(--muted); background: rgba(20, 16, 12, .55); border: 1px solid rgba(233, 194, 122, .25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: color .6s, background-color .6s, opacity .6s;
  height: 34px;
}
.ds-night { border-radius: 999px 0 0 999px; border-inline-end: 0; }
.ds-day { border-radius: 0 999px 999px 0; border-inline-start: 0; }
[dir="rtl"] .ds-night { border-radius: 0 999px 999px 0; }
[dir="rtl"] .ds-day { border-radius: 999px 0 0 999px; }
.ds-sep { width: 1px; height: 34px; background: rgba(233, 194, 122, .3); }
.doors[data-active="night"] .ds-night { color: #1d1408; background: var(--gold); }
.doors[data-active="day"] .ds-day { color: #fff; background: #b4521e; border-color: #b4521e; }
.doors[data-active="day"] .ds { background-color: rgba(255, 250, 238, .7); }
.doors[data-active="day"] .ds-day { background-color: #b4521e; }

.ep-grid { display: grid; gap: clamp(20px, 2.6vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.shorts-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.ep-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; scroll-margin-top: calc(var(--header-h) + 24px); }
.ep-card:target .player { box-shadow: 0 0 0 3px var(--accent), 0 18px 50px rgba(0, 0, 0, .3); }
.ep-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 4px; font-size: .85rem; color: var(--muted); }
.ep-no { font-weight: 800; color: var(--accent); }
.ep-title { font-size: 1.2rem; line-height: 1.4; margin-bottom: 8px; color: var(--fg); }
.ep-summary { margin: 0; font-size: .97rem; line-height: 1.7; color: var(--muted); }
.season.tone-day .thumb-fallback, .doors.is-live[data-active="day"] .thumb-fallback { background: linear-gradient(135deg, #f6e3bd, #e7c78a); }
.season.tone-day .thumb-fallback span, .doors.is-live[data-active="day"] .thumb-fallback span { color: #8a5a20; }

.ep-mini-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); list-style: none; }
.ep-mini { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.ep-mini .thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b0908; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.ep-mini .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.ep-mini:hover .thumb img, .ep-mini:focus-visible .thumb img { transform: scale(1.06); }
.ep-mini .thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: box-shadow .3s; }
.ep-mini:hover .thumb::after { box-shadow: inset 0 0 0 2px var(--accent); }
.ep-mini-no { font-size: .8rem; font-weight: 800; color: var(--accent); margin-top: 4px; }
.ep-mini-title { font-weight: 700; line-height: 1.4; color: var(--fg); }

.extras .extra-group + .extra-group { margin-top: clamp(40px, 5vw, 64px); }
.group-title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 1.3rem; color: var(--fg); }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ───────── 11. 인물 ───────── */
.people-grid { display: grid; gap: clamp(18px, 2.4vw, 28px) clamp(12px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); list-style: none; }
.person a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: inherit; }
.avatar {
  position: relative; display: block; width: min(100%, 128px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex: none;
  background: #efe4d0; border: 3px solid #fffaf0; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(60, 40, 20, .12);
  transition: transform .45s var(--ease-back), box-shadow .3s;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initial { display: grid; place-items: center; width: 100%; height: 100%; font-size: 1.9rem; font-weight: 800; color: var(--bronze); background: radial-gradient(circle at 30% 30%, #fff7e6, #e8d5b0); }
.person a:hover .avatar, .person a:focus-visible .avatar { transform: translateY(-5px) rotate(-2deg); box-shadow: 0 0 0 2px var(--accent-2), 0 18px 36px rgba(60, 40, 20, .2); }
.person-name { font-weight: 800; line-height: 1.35; }
.person-role { font-size: .84rem; line-height: 1.45; color: var(--muted); }

.char-group + .char-group { margin-top: clamp(40px, 5vw, 64px); }
.char-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.char-card {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px); transition: transform .4s var(--ease-out), box-shadow .4s, border-color .3s;
}
.char-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(60, 40, 20, .1); }
.char-card:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.char-card .avatar { width: 84px; border-width: 2px; }
.char-name { font-size: 1.12rem; color: var(--fg); }
.char-role { margin: 2px 0 8px; font-size: .84rem; font-weight: 700; color: var(--accent-2); }
.char-intro { margin: 0; font-size: .94rem; line-height: 1.7; color: var(--muted); }

.principles { list-style: none; display: grid; gap: 10px; margin-top: 28px; counter-reset: pr; }
.principles li {
  counter-increment: pr; display: flex; align-items: baseline; gap: 14px; padding: 14px 18px;
  border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); font-weight: 700;
}
.principles li::before { content: counter(pr); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--red); color: #fff; font-size: .85rem; }

/* ───────── 12. 장소 · 지도 ───────── */
.place-grid { display: grid; gap: clamp(16px, 2.2vw, 26px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.place-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px); transition: transform .45s var(--ease-out), box-shadow .45s;
}
.place-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(60, 40, 20, .12); }
.place-card:target { box-shadow: 0 0 0 2px var(--accent); }
.place-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1510; }
.place-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.place-card:hover .place-media img { transform: scale(1.05); }
.place-body { display: grid; gap: 8px; padding: 18px 20px 22px; }
.place-body h3 { font-size: 1.12rem; color: var(--fg); }
.place-body p { margin: 0; font-size: .94rem; line-height: 1.7; color: var(--muted); }
.place-body .link-arrow { font-size: .92rem; margin-top: 4px; }

.map-band { padding-top: clamp(32px, 5vw, 60px); }
.map-band .hb-map { direction: ltr; }
@media (min-width: 1100px) { .map-band .hb-map-layout .place-panel { top: calc(var(--header-h) + 16px); } }
.map-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }
.place-panel .place-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 10px; }
.place-panel .place-list a {
  display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid #e2d6bd; background: #fffdf8;
  color: #2b2724; font-size: .88rem; text-decoration: none; transition: border-color .2s, color .2s;
}
.place-panel .place-list a:hover { border-color: #a8322a; color: #a8322a; }
:lang(ar) .hb-map text { letter-spacing: 0; }

/* ───────── 13. 둘러보기(지도 · 3D) ───────── */
.explore-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.explore-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  min-height: 360px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg);
  border: 1px solid rgba(233, 194, 122, .18); background: linear-gradient(180deg, #1a1510, #0f0c0a);
  color: var(--night-ink); text-decoration: none; transition: transform .55s var(--ease-out), border-color .3s;
}
a.explore-card:hover { transform: translateY(-6px); border-color: rgba(233, 194, 122, .5); }
.explore-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .6; transition: opacity .5s, transform 1.4s var(--ease-out); }
a.explore-card:hover .explore-art { opacity: .9; transform: scale(1.05); }
.explore-card .eyebrow { color: var(--gold); }
.explore-card strong { margin-top: auto; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.3; }
.explore-desc { color: var(--night-ink-2); max-width: 44ch; }
.explore-card .link-arrow { color: var(--gold); }
.explore-card.is-soon .badge { align-self: flex-start; }
@media (prefers-reduced-motion: no-preference) {
  .art-lamps circle { animation: hb-flicker 3.6s ease-in-out infinite alternate; }
  .art-lamps circle:nth-child(2) { animation-duration: 4.4s; animation-delay: -1s; }
  .art-lamps circle:nth-child(3) { animation-duration: 5s; animation-delay: -2s; }
  .art-house { transform-origin: 200px 190px; transition: transform 1.4s var(--ease-out); }
  a.explore-card:hover .art-house { transform: rotate(-2deg) scale(1.04); }
}
@keyframes hb-flicker { from { opacity: .55; } to { opacity: 1; } }

/* ───────── 14. 제작 이야기 ───────── */
.pipeline { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); list-style: none; margin-block-end: 28px; }
.pipeline li {
  position: relative; display: grid; gap: 6px; padding: 20px 18px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease-out), border-color .3s;
}
.pipeline li:hover { transform: translateY(-3px); border-color: var(--accent-2); }
.step-no { font-size: .85rem; font-weight: 900; letter-spacing: .12em; color: var(--accent); }
.step-name { font-weight: 800; line-height: 1.4; }
.mk-list { display: grid; gap: clamp(16px, 2.4vw, 24px); max-width: 900px; }
.mk-step {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px clamp(16px, 3vw, 32px);
  padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line);
}
.mk-no { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1; color: var(--gold-2); opacity: .85; }
.mk-title { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 10px; color: var(--fg); }
.mk-step p, .mk-plain p { color: var(--muted); }
.mk-plain { padding: clamp(18px, 3vw, 30px) 0; text-align: center; max-width: 720px; margin-inline: auto; }
.mk-plain .mk-title { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }

/* ───────── 15. 굿즈 ───────── */
.goods-grid { display: grid; gap: clamp(16px, 2.4vw, 26px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-block-end: 28px; }
.goods-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); transition: transform .45s var(--ease-out), box-shadow .45s; }
.goods-card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(60, 40, 20, .13); }
.goods-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #f5e9cf, #e8d1a2); }
.goods-media img { width: 100%; height: 100%; object-fit: cover; }
.goods-media img[src$=".svg"] { object-fit: contain; padding: 14%; }
.goods-media::after {
  content: ""; position: absolute; inset: -50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 241, 200, .6) 50%, transparent 58%);
  transform: translateX(-60%); transition: transform 1.1s var(--ease-out);
}
.goods-card:hover .goods-media::after { transform: translateX(60%); }
.goods-seal { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 10px; background: var(--red); color: #fff3e6; font-size: 2.4rem; font-weight: 900; transform: rotate(-4deg); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .18); }
.goods-body { display: grid; gap: 8px; padding: 18px 20px 24px; align-content: start; }
.goods-body .badge { justify-self: start; }
.goods-body h3 { font-size: 1.15rem; color: var(--fg); }
.goods-body p { margin: 0; font-size: .94rem; color: var(--muted); }
.notice {
  display: flex; gap: 10px; align-items: flex-start; margin-block-end: 32px; padding: 14px 18px;
  border-radius: var(--radius-sm); background: rgba(168, 37, 27, .06); border-inline-start: 4px solid var(--red); color: var(--fg);
}

/* ───────── 16. 하위 페이지 머리 · 404 ───────── */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 9vw, 112px) clamp(44px, 6vw, 76px); }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); line-height: 1.15; letter-spacing: -.025em; margin: 12px 0 16px; color: var(--fg); }
.page-head .count { margin-top: 14px; font-weight: 700; color: var(--accent); }
.page-head-glow {
  position: absolute; z-index: -1; inset-inline-end: -10%; top: -40%; width: min(70vw, 720px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 170, 80, .22), transparent 65%); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js .page-head .eyebrow { animation: hb-rise .8s var(--ease-out) .05s both; }
  .js .page-head h1 { animation: hb-rise .9s var(--ease-out) .12s both; }
  .js .page-head .lede, .js .page-head .count, .js .page-head .btn-row { animation: hb-rise .9s var(--ease-out) .24s both; }
  .page-head-glow { animation: hb-breathe 6s ease-in-out infinite alternate; }
}
@keyframes hb-breathe { from { opacity: .7; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.nf-inner { display: grid; justify-items: center; gap: 14px; }
.nf-inner h1 { font-size: clamp(1.8rem, 5vw, 3rem); color: var(--fg); }
.nf-lantern .lantern { width: 72px; height: 72px; filter: drop-shadow(0 0 24px rgba(233, 170, 80, .6)); }
.nf-langs { justify-content: center; margin-top: 18px; }

/* ───────── 17. 바닥글 ───────── */
.site-footer { padding-block: 64px 32px; font-size: .92rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-block-end: 32px; border-block-end: 1px solid var(--line); }
.footer-brand p { margin-top: 12px; color: var(--muted); max-width: 32ch; }
.footer-nav, .footer-links { list-style: none; display: grid; gap: 8px; align-content: start; }
.footer-nav a, .footer-links a, .footer-langs a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; }
.footer-nav a:hover, .footer-links a:hover, .footer-langs a:hover { color: var(--gold); }
.footer-langs { padding-block: 24px; border-block-end: 1px solid var(--line); }
.footer-h { margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer-langs ul { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; }
.footer-bottom { display: grid; gap: 6px; padding-top: 22px; font-size: .82rem; color: var(--muted); }

/* ───────── 21. 상영관(SPEC §7) — 어두운 객석 · 스크린 빛 · 막 ───────── */
.page-theater { background: #070605; }
.theater {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(28px, 5vw, 64px) 0;
  background:
    radial-gradient(90% 60% at 50% 36%, rgba(233, 170, 80, .10), transparent 70%),
    radial-gradient(120% 80% at 50% -10%, #241b14 0%, #0d0b09 52%, #070605 100%);
}
.th-house { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* 영사기 빛: 객석 뒤(아래 가운데)에서 스크린 쪽으로 */
.th-beam {
  position: absolute; left: 50%; bottom: -18%; width: min(150vw, 1800px); height: 135%; transform: translateX(-50%);
  background: conic-gradient(from -15deg at 50% 100%, rgba(255, 228, 175, 0) 0deg, rgba(255, 228, 175, .05) 9deg,
    rgba(255, 228, 175, .09) 15deg, rgba(255, 228, 175, .05) 21deg, rgba(255, 228, 175, 0) 30deg, transparent 30deg);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 30%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0%, #000 30%, #000 72%, transparent 100%);
  filter: blur(6px); opacity: .55; transition: opacity 1.2s;
}
.theater.is-playing .th-beam { opacity: 1; }
.th-dust {
  position: absolute; inset: 0; opacity: .45;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 236, 200, .85), transparent 70%),
    radial-gradient(1px 1px at 34% 64%, rgba(255, 236, 200, .7), transparent 70%),
    radial-gradient(1.6px 1.6px at 58% 38%, rgba(255, 236, 200, .8), transparent 70%),
    radial-gradient(1px 1px at 76% 78%, rgba(255, 236, 200, .6), transparent 70%),
    radial-gradient(1.2px 1.2px at 88% 16%, rgba(255, 236, 200, .75), transparent 70%);
  background-size: 420px 420px;
  -webkit-mask-image: radial-gradient(38% 70% at 50% 62%, #000, transparent 75%);
  mask-image: radial-gradient(38% 70% at 50% 62%, #000, transparent 75%);
}
@media (prefers-reduced-motion: no-preference) { .th-dust { animation: th-drift 70s linear infinite; } }
@keyframes th-drift { to { background-position: 0 -420px; } }

.th-wrap { position: relative; }
.th-head { display: grid; justify-items: center; gap: 10px; text-align: center; margin-block-end: clamp(20px, 3vw, 36px); transition: opacity .9s; }
.th-head .lede { margin-inline: auto; font-size: clamp(.98rem, 1.4vw, 1.08rem); }
.th-h1 {
  font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; letter-spacing: .02em; font-weight: 800;
  color: var(--fg); text-shadow: 0 0 40px rgba(233, 170, 80, .25);
}
.theater.is-playing .th-head, .theater.is-playing .th-info { opacity: .62; }   /* 상영 중엔 객석 불이 낮아진다 */
.theater.is-playing .th-info:hover, .theater.is-playing .th-info:focus-within { opacity: 1; }

/* 스크린 */
.th-stage { position: relative; max-width: 1120px; margin-inline: auto; scroll-margin-top: calc(var(--header-h) + 16px); }
.th-marquee {
  height: 12px; margin: 0 6% 10px; opacity: .8;
  background: radial-gradient(circle at 50% 50%, #ffe2a6 0 2px, rgba(255, 210, 140, .35) 3px, transparent 5px) 0 50% / 24px 12px repeat-x;
}
@media (prefers-reduced-motion: no-preference) { .th-marquee { animation: th-chase 6s linear infinite; } }
@keyframes th-chase { to { background-position: 24px 50%; } }
.th-frame {
  position: relative; padding: clamp(5px, .9vw, 12px); border-radius: clamp(10px, 1.4vw, 18px);
  background: linear-gradient(180deg, #3a2c1f, #1a140f 40%, #120e0b);
  box-shadow: 0 0 0 1px rgba(233, 194, 122, .28), inset 0 1px 0 rgba(255, 230, 180, .18),
    0 50px 120px rgba(0, 0, 0, .65), 0 0 140px rgba(233, 170, 80, .10);
}
.th-screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: clamp(6px, .9vw, 10px); background: #000;
  box-shadow: 0 0 60px rgba(255, 220, 160, .14); transition: box-shadow .8s;
}
.th-screen:focus { outline: none; }
.theater.is-playing .th-screen { box-shadow: 0 0 90px rgba(255, 220, 160, .26); }
.th-back, .th-media { position: absolute; inset: 0; }
.th-back img { width: 100%; height: 100%; object-fit: cover; filter: blur(24px) brightness(.45) saturate(1.2); transform: scale(1.15); }
/* 쇼츠(세로): 넓은 화면에선 16:9 스크린 가운데 9:16 틀(스크린 높이 × 9/16 = 너비의 81/256) */
.th-screen.is-vertical .th-media { left: 34.1796875%; right: auto; width: 31.640625%; box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
.th-poster-link { position: absolute; inset: 0; display: block; color: #fff; }
.th-poster-link img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); transition: transform 1.2s var(--ease-out), filter .5s; }
.th-poster-link:hover img, .th-poster-link:focus-visible img { transform: scale(1.03); filter: brightness(.96); }
.th-poster-link::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 70% at 50% 50%, transparent 45%, rgba(0, 0, 0, .45)); }
.th-poster-link .thumb-fallback span { font-size: clamp(3rem, 12vw, 7rem); }
.th-play { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; justify-items: center; gap: 12px; transform: translate(-50%, -50%); }
.th-play-ring {
  display: grid; place-items: center; width: clamp(62px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%;
  color: #1d1408; background: linear-gradient(180deg, #f6dca2, #d9a55a);
  box-shadow: 0 0 0 8px rgba(233, 194, 122, .18), 0 12px 40px rgba(0, 0, 0, .5), 0 0 60px rgba(233, 170, 80, .45);
  transition: transform .4s var(--ease-back), box-shadow .4s;
}
.th-play-ring svg { width: 42%; height: 42%; margin-left: 7%; }
.th-play-label {
  padding: 4px 14px; border-radius: 999px; background: rgba(10, 8, 6, .62); font-size: .9rem; font-weight: 800; letter-spacing: .05em; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.th-poster-link:hover .th-play-ring, .th-poster-link:focus-visible .th-play-ring {
  transform: scale(1.1); box-shadow: 0 0 0 12px rgba(233, 194, 122, .22), 0 12px 40px rgba(0, 0, 0, .5), 0 0 90px rgba(233, 170, 80, .6);
}
@media (prefers-reduced-motion: no-preference) { .th-play-ring { animation: th-pulse 2.8s ease-in-out infinite; } }
@keyframes th-pulse { 50% { box-shadow: 0 0 0 15px rgba(233, 194, 122, .07), 0 12px 40px rgba(0, 0, 0, .5), 0 0 84px rgba(233, 170, 80, .55); } }
.th-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
@media (prefers-reduced-motion: no-preference) { .th-media iframe { animation: hb-fade .6s ease-out both; } }

/* 막: 처음 들어올 때 · 편을 고를 때마다 닫혔다 열린다(움직임 줄이기면 늘 열려 있음) */
.th-curtain {
  position: absolute; top: 0; bottom: 0; z-index: 3; width: 51%; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 18%, transparent 80%, rgba(0, 0, 0, .45)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .34) 0 5px, rgba(255, 120, 90, .07) 9px, rgba(0, 0, 0, .22) 16px, rgba(0, 0, 0, .34) 22px),
    linear-gradient(180deg, #7a1a12, #4a0f0a);
  transform: translateX(var(--off));
}
.th-curtain-a { left: 0; --off: -101%; box-shadow: inset -14px 0 26px rgba(0, 0, 0, .45); }
.th-curtain-b { right: 0; --off: 101%; box-shadow: inset 14px 0 26px rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: no-preference) {
  .js .th-curtain { animation: th-open 1.6s var(--ease-out) .25s both; }
  .js .th-screen.is-raise .th-curtain { animation: th-raise 1.1s var(--ease-out) both; }
}
@keyframes th-open { from { transform: translateX(0); } to { transform: translateX(var(--off)); } }
@keyframes th-raise { 0%, 16% { transform: translateX(0); } 100% { transform: translateX(var(--off)); } }
.th-spill {
  position: absolute; left: 8%; right: 8%; bottom: -64px; height: 130px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 150, .22), transparent); filter: blur(20px); opacity: .6; transition: opacity 1s;
}
.theater.is-playing .th-spill { opacity: 1; }

/* 크게 보기(극장 모드 · 전체 화면) */
.th-close { display: none; }
html.th-big-on { overflow: hidden; }
html.th-big-on .theater { z-index: 300; }   /* .theater 가 쌓임 맥락이라 머리글(z 50) 위로 올린다 */
.th-stage.is-big {
  position: fixed; inset: 0; z-index: 200; max-width: none; margin: 0; display: grid; place-items: center;
  padding: max(58px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: radial-gradient(80% 60% at 50% 50%, #1a130d, #000 72%);
}
.th-stage.is-big .th-marquee, .th-stage.is-big .th-spill { display: none; }
.th-stage.is-big .th-frame { width: min(100%, calc((100vh - 80px) * 16 / 9)); width: min(100%, calc((100dvh - 80px) * 16 / 9)); padding: 0; background: none; box-shadow: none; }
.th-stage.is-big .th-screen { border-radius: 0; }
.th-stage.is-big .th-close {
  position: absolute; z-index: 6; top: max(12px, env(safe-area-inset-top)); inset-inline-end: 12px;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(10, 8, 6, .72); color: #fff; font-weight: 700;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s, color .2s, opacity .3s;
}
.th-stage.is-big.is-calm .th-close:not(:focus-visible) { opacity: 0; pointer-events: none; }
.th-stage.is-big .th-close:hover { border-color: var(--gold); color: var(--gold); }
.th-stage::backdrop { background: #000; }

/* 고른 편 정보 */
.th-info { display: grid; gap: clamp(20px, 3vw, 28px) clamp(28px, 4vw, 56px); max-width: 1120px; margin: clamp(28px, 3.6vw, 46px) auto 0; transition: opacity .9s; }
@media (min-width: 900px) { .th-info { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } }
.th-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.th-now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ffd98a; box-shadow: 0 0 8px #ffd98a; }
.th-label { color: var(--gold); font-weight: 800; }
.th-group::before { content: "·"; margin-inline-end: 10px; }
.th-title { font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.3; letter-spacing: -.01em; color: var(--fg); margin-bottom: 8px; }
.th-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.th-meta:empty { display: none; }
.th-summary p { color: var(--muted); line-height: 1.8; max-width: 68ch; }
.th-chips { margin-top: 16px; }
.th-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.th-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.th-actions .btn { min-height: 44px; padding: 9px 18px; font-size: .95rem; }
.th-actions .btn svg { flex: none; }
.th-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.th-step {
  display: grid; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: var(--radius); text-align: start; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--fg);
  transition: border-color .25s, background-color .25s, transform .3s var(--ease-out);
}
.th-step:hover:not(:disabled) { border-color: rgba(233, 194, 122, .55); background: rgba(233, 194, 122, .07); transform: translateY(-2px); }
.th-step:disabled { opacity: .36; cursor: default; }
.th-step.is-next { text-align: end; }
.th-step-k { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 800; letter-spacing: .05em; color: var(--gold); }
.th-step.is-next .th-step-k { justify-self: end; }
.th-step-t {
  font-size: .88rem; line-height: 1.45; color: var(--muted); overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
[dir="rtl"] .step-ico { transform: scaleX(-1); }
.th-keys { margin: 0; font-size: .8rem; color: var(--muted); opacity: .8; }

/* 객석 */
.th-seats {
  position: relative; height: clamp(80px, 13vw, 170px); margin-top: clamp(24px, 4vw, 52px); pointer-events: none;
  background:
    radial-gradient(ellipse 46% 100% at 50% 100%, #030202 97%, transparent 100%) 0 100% / 96px 62px repeat-x,
    radial-gradient(ellipse 46% 100% at 50% 100%, #0a0806 97%, transparent 100%) 48px calc(100% - 44px) / 84px 52px repeat-x,
    radial-gradient(ellipse 46% 100% at 50% 100%, #120e0a 97%, transparent 100%) 10px calc(100% - 82px) / 72px 44px repeat-x;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%);
}

/* 로비: 포스터 진열 */
.th-lobby { padding-top: clamp(40px, 6vw, 72px); background: linear-gradient(180deg, #030202 0, var(--night) 160px, var(--night-2) 100%); }
.th-shelf, .th-sub { scroll-margin-top: calc(var(--header-h) + 20px); }
.th-shelf + .th-shelf { margin-top: clamp(44px, 6vw, 72px); }
.th-shelf-h { font-size: clamp(1.12rem, 2vw, 1.4rem); flex-wrap: wrap; }
.th-shelf-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: rgba(233, 194, 122, .12); color: var(--gold); }
.th-shelf-ico svg { width: 16px; height: 16px; }
.th-shelf.is-day .th-shelf-ico { background: rgba(255, 190, 110, .16); color: #ffcf8a; }
.th-shelf-range { font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.th-sub + .th-sub { margin-top: 34px; }
.th-sub-h { margin: 0 0 14px; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.poster-grid { list-style: none; display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.poster-grid.is-vertical { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.poster-item { position: relative; display: flex; flex-direction: column; min-width: 0; transition: transform .45s var(--ease-out); }
.poster-item:hover { transform: translateY(-6px); }
.poster {
  flex: 1; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; color: inherit; text-decoration: none;
  background: linear-gradient(180deg, #1c1611, #100d0a); border: 1px solid rgba(233, 194, 122, .16);
  transition: border-color .3s, box-shadow .45s;
}
.th-shelf.is-day .poster { background: linear-gradient(180deg, #261d13, #130f0a); }
.poster-item:hover .poster, .poster:focus-visible { border-color: rgba(233, 194, 122, .55); box-shadow: 0 22px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(233, 170, 80, .14); }
.poster-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0908; }
.is-vertical .poster-img { aspect-ratio: 9 / 16; }
.poster-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.9); transition: transform .8s var(--ease-out), filter .4s; }
.poster-item:hover .poster-img img, .poster:focus-visible .poster-img img { transform: scale(1.06); filter: none; }
.poster .play-ico { width: 50px; height: 50px; opacity: 0; transform: translate(-50%, -40%) scale(.9); transition: opacity .3s, transform .4s var(--ease-back); }
.poster-item:hover .play-ico, .poster:focus-visible .play-ico { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .poster .play-ico { opacity: .85; transform: translate(-50%, -50%) scale(.85); } }
.poster-body { display: grid; gap: 4px; padding: 12px 14px 16px; }
.poster-no { font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: var(--gold); }
.th-shelf.is-day .poster-no { color: #ffcf8a; }
.poster-title {
  font-weight: 700; line-height: 1.4; color: var(--night-ink); overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.poster-date { font-size: .8rem; color: var(--night-ink-2); }
.poster-now {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: none; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800;
}
.poster-now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ffd98a; box-shadow: 0 0 8px #ffd98a; }
.poster[aria-current="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 50px rgba(233, 170, 80, .28); }
.poster[aria-current="true"] .poster-now { display: inline-flex; }
.poster[aria-current="true"] .poster-img img { filter: none; }
@media (prefers-reduced-motion: no-preference) { .poster-now::before, .th-now::before { animation: hb-flicker 1.4s ease-in-out infinite alternate; } }
.poster-flag {
  position: absolute; inset-inline-start: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
  max-width: calc(100% - 70px); padding: 3px 9px; border-radius: 999px; background: rgba(10, 8, 6, .78); color: #fff; font-size: .72rem; font-weight: 700;
}
.poster-flag svg { flex: none; width: 12px; height: 12px; }
.poster-yt {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; color: #fff; background: rgba(10, 8, 6, .72); border: 1px solid rgba(255, 255, 255, .22); opacity: 0;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .25s, background-color .2s;
}
.poster-item:hover .poster-yt, .poster-item:focus-within .poster-yt { opacity: 1; }
.poster-yt:hover { background: var(--red); }
@media (hover: none) { .poster-yt { opacity: .92; } }
.th-lobby .btn-row { margin-top: clamp(40px, 5vw, 60px); justify-content: center; }

/* 폰: 진열은 가로로 넘기기(스크롤 스냅) · 쇼츠 스크린은 세로 */
@media (max-width: 700px) {
  .poster-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 64%);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
  }
  .poster-grid::-webkit-scrollbar { display: none; }
  .poster-grid.is-vertical { grid-auto-columns: minmax(0, 42%); }
  .poster-item { scroll-snap-align: start; }
  .poster-item:hover { transform: none; }
  .th-screen.is-vertical { aspect-ratio: 9 / 16; width: min(100%, calc(70vh * 9 / 16)); width: min(100%, calc(70svh * 9 / 16)); margin-inline: auto; }
  .th-screen.is-vertical .th-media { left: 0; width: 100%; }
  .th-stage.is-big .th-screen.is-vertical { width: min(100%, calc((100dvh - 80px) * 9 / 16)); }
  .th-play-label { display: none; }
  .th-steps { grid-template-columns: 1fr 1fr; }
}

/* ───────── 17b. 음악(/music/ · 첫 화면 요약) — 밤 상영관과 같은 톤 ───────── */
.album-kind {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  background: rgba(233, 194, 122, .12); color: var(--gold); border: 1px solid rgba(233, 194, 122, .32);
}
.album-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 44px) clamp(18px, 3vw, 36px); }
.album {
  position: relative; display: grid; gap: clamp(18px, 2.4vw, 28px); align-content: start; min-width: 0;
  padding: clamp(14px, 2vw, 22px); border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s;
}
.album:hover { transform: translateY(-4px); border-color: rgba(233, 194, 122, .45); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.album:target { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(233, 194, 122, .35); }
.album.is-lead { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .album.is-lead { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(28px, 4vw, 56px); padding: clamp(18px, 2.6vw, 32px); }
  .album.is-lead .album-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
}
@media (max-width: 760px) { .album-list { grid-template-columns: minmax(0, 1fr); } }
.album-art { position: relative; isolation: isolate; }
.album-art .player { z-index: 1; }
.player.album-cover { aspect-ratio: 1 / 1; border-radius: var(--radius); box-shadow: 0 22px 60px rgba(0, 0, 0, .55); }
.album-glow {
  position: absolute; z-index: 0; inset: 10% -4% -6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(233, 194, 122, .5), rgba(168, 37, 27, .18) 60%, transparent);
  filter: blur(26px); opacity: .45; transition: opacity .5s;
}
.album:hover .album-glow, .album:focus-within .album-glow { opacity: .9; }
.album-body { min-width: 0; }
.album-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.album-title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.3; letter-spacing: -.01em; color: var(--fg); margin-bottom: 12px; }
.album-sum { color: var(--muted); }
.album-listen { margin: 22px 0 0; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.listen-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 10px; }
.listen-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(243, 234, 219, .3); background: rgba(255, 255, 255, .03); color: var(--night-ink);
  font-size: .92rem; font-weight: 700; text-decoration: none; line-height: 1.3;
  transition: transform .25s var(--ease-out), border-color .25s, color .25s, background-color .25s;
}
.listen-btn:hover, .listen-btn:focus-visible { transform: translateY(-2px); border-color: var(--gold); color: var(--gold); background: rgba(233, 194, 122, .1); }
.listen-btn .ext { flex: none; opacity: .8; }

.album-strip { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 32px); }
.album-tile a { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.tile-art { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); background: #0b0908; box-shadow: 0 16px 44px rgba(0, 0, 0, .5); }
.tile-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), filter .4s; }
.album-tile a:hover .tile-art img, .album-tile a:focus-visible .tile-art img { transform: scale(1.05); filter: brightness(1.08); }
.tile-body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: .88rem; min-width: 0; }
.tile-title { flex-basis: 100%; font-size: 1.1rem; line-height: 1.35; color: var(--fg); transition: color .25s; overflow-wrap: anywhere; }
.album-tile a:hover .tile-title, .album-tile a:focus-visible .tile-title { color: var(--gold); }
.music-more { margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 700px) {
  .album-strip { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .album-tile a { grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
}

.artist-band { padding-block-start: 0; }
.artist-card {
  display: grid; gap: clamp(18px, 3vw, 36px); align-items: center; padding: clamp(22px, 4vw, 48px);
  border-radius: var(--radius-lg); border: 1px solid rgba(233, 194, 122, .28);
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(233, 194, 122, .14), transparent 70%),
    linear-gradient(180deg, var(--night-3), var(--night-2));
}
@media (min-width: 760px) { .artist-card { grid-template-columns: auto minmax(0, 1fr); } }
.artist-ring {
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  border: 1px solid rgba(233, 194, 122, .5); background: radial-gradient(circle, rgba(233, 194, 122, .22), rgba(14, 12, 10, .6) 70%);
  box-shadow: 0 0 40px rgba(233, 194, 122, .18);
}
.artist-ring .lantern { width: 46px; height: 46px; }
@media (prefers-reduced-motion: no-preference) { .artist-ring .lantern { animation: hb-flicker 2.6s ease-in-out infinite alternate; } }
.artist-text { min-width: 0; }
.artist-text .h2 { margin-block: 10px 12px; }

/* ───────── 18. 스크롤 등장(main.js 가 html.reveal-ready 를 붙였을 때만) ───────── */
@media (prefers-reduced-motion: no-preference) {
  /* animation(backwards)이라 끝난 뒤에는 카드 호버 transform·transition 을 건드리지 않는다 */
  .reveal-ready [data-reveal]:not(.is-in) { opacity: 0; }
  .reveal-ready [data-reveal].is-in { animation: hb-reveal .9s var(--ease-out) calc(var(--i, 0) * 70ms) backwards; }
}
@keyframes hb-reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
}

/* ───────── 19. 움직임 줄이기 ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-canvas { display: none !important; }
}

/* ───────── 20. 인쇄 ───────── */
@media print {
  .site-header, .hero-canvas, .lang-menu, .doors-sky, .door-sign, .hero-scroll,
  .th-house, .th-seats, .th-curtain, .th-marquee, .th-actions, .th-steps, .poster-yt { display: none !important; }
  .tone-night, .hero, .doors { background: #fff !important; color: #000 !important; }
}

/* 스크롤바 = 먹색 길 · 금빛 손잡이 (사용자 12-05) */
:root { color-scheme: dark; }
::-webkit-scrollbar { width: 12px; height: 8px; }
::-webkit-scrollbar-track { background: #100d0b; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #d9b673, #8a6a38); border: 3px solid #100d0b; border-radius: 999px; min-height: 48px; }
::-webkit-scrollbar-thumb:hover { background: #f4cd82; }
::-webkit-scrollbar-corner { background: #100d0b; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: #a8854b #100d0b; }
}

/* 하단 = 가운데 정렬 · 메뉴는 가로 줄 (사용자 12-05 «세로로 나오네») */
.footer-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-brand .brand { grid-area: auto; }
.footer-logo.brand-logo { --bh: 76px; }
.footer-brand p { max-width: none; margin-top: 10px; }
.footer-nav, .footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px; padding: 0; margin: 0; }
.footer-links { gap: 10px 22px; font-size: .86rem; }
.footer-langs { text-align: center; }
.footer-langs ul { justify-content: center; padding: 0; }
.footer-bottom { justify-items: center; text-align: center; }

/* 휴대폰 상단(시계 · 노티 · 아일랜드) = 머리글과 같은 먹색 (사용자 12-05). 아이폰 사파리는 body 바탕색을 위쪽에 쓴다 */
body { background: var(--night); }
main#main { display: block; background: var(--paper); }
.page-theater main#main { background: #070605; }
.site-header { padding-top: env(safe-area-inset-top, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: var(--night); z-index: 55; pointer-events: none; }
/* 휴대폰은 머리글을 불투명하게 — 위 노티 영역과 색이 갈리지 않게 */
@media (max-width: 860px) { .site-header, .page-home .site-header.is-scrolled { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* 아래로 내리면 위 메뉴 접기 (사용자 12-05) */
.site-header { transition: transform .28s ease, background-color .4s, border-color .4s; }
.site-header.is-folded { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

/* 휴대폰 머리글 줄이기 — 로고 작게 · 언어는 지구 그림만 (사용자 12-05 «자리 많이 먹네») */
@media (max-width: 860px) {
  :root { --header-h: 84px; }
  .site-header .brand-logo { --bh: 32px; }
  .site-header .header-inner { padding-top: 6px; gap: 2px 10px; min-height: 0; }
  .site-header .lang-current { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header .lang-btn { min-height: 34px; min-width: 0; padding: 0 9px; gap: 4px; }
  .site-header .site-nav a { padding: 6px 10px; font-size: .88rem; }
  .site-header .site-nav ul { padding-block: 2px 4px; }
}

/* 달 · 해는 구간 처음에 한 번만 — 따라다니면 영상 카드 뒤로 숨었다 나왔다 한다 (사용자 12-05) */
.doors.is-live .doors-orb { position: relative; top: auto; margin-block-start: 8vh; }
/* 밤/낮 표시도 따라다니지 않게 — 휴대폰에서 썸네일을 가린다 */
.doors.is-live .door-sign { position: relative; top: auto; }
@media (max-width: 700px) { .doors.is-live .doors-orb { width: 54px; margin-block-start: 14px; margin-inline-end: 18px; } }

/* 휴대폰 진열 = 한 줄에 두 장씩 (사용자 12-05 «1화가 다 한 줄에 · 갯수 제한») — 위 가로 진열은 칸이 좁게 눌렸다 */
@media (max-width: 700px) {
  .poster-grid, .poster-grid.is-vertical { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding: 4px 0 8px; }
  .poster-grid .poster-body { padding: 8px 9px 11px; }
  .poster-grid .poster-title { font-size: .86rem; }
  .poster-grid .poster-date { font-size: .72rem; }
  .poster-grid .play-ico { width: 38px; height: 38px; }
}

/* 휴대폰 음악: 미리 띄운 플레이어 */
.player.is-preload { position: relative; }
.player.is-preload iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 미리 띄운 플레이어의 뚜껑(우리 썸네일) — 가운데는 누름이 지나간다 */
.hb-lid { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; overflow: hidden; }
.hb-lid > a { position: absolute; inset: 0; display: block; background: #0b0908; pointer-events: none; }
.hb-lid > a img { width: 100%; height: 100%; object-fit: cover; }
.hb-lid-top, .hb-lid-bot { position: absolute; left: 0; right: 0; height: 22%; pointer-events: auto; }
.hb-lid-top { top: 0; } .hb-lid-bot { bottom: 0; }

/* 영상 재생 중 · 휴대폰에서는 뒤 장식 움직임을 멈춘다 (사용자 12-05 «폰이 뜨거워진다») */
html.hb-video .th-dust, html.hb-video .th-marquee, html.hb-video .th-play-ring, html.hb-video .th-now::before, html.hb-video .poster-now::before, body:has(.is-playing) .th-dust, body:has(.is-playing) .th-marquee { animation-play-state: paused; }
@media (pointer: coarse) { .th-dust, .th-marquee { animation: none; } }

/* 첫 화면 인물 12명 = 6 × 2 줄, 아주 넓으면 한 줄 (사용자 12-05) */
.hero-faces { display: grid; grid-template-columns: repeat(6, max-content); justify-content: center; max-width: 100%; }
@media (min-width: 1100px) { .hero-faces { grid-template-columns: repeat(12, max-content); gap: 12px; } .hero-faces .face { width: 64px; } }
@media (max-width: 420px) { .hero-faces { gap: 9px; } .hero-faces .face { width: 46px; } }
/* 10명 = 5 × 2 줄, 넓으면 한 줄 */
.hero-faces { grid-template-columns: repeat(5, max-content); }
@media (min-width: 900px) { .hero-faces { grid-template-columns: repeat(10, max-content); } }
@media (max-width: 420px) { .hero-faces { gap: 11px; } .hero-faces .face { width: 52px; } }
/* 11명 = 6 + 5 (가운데), 넓으면 한 줄 */
.hero-faces { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; max-width: min(445px, 100%); }
@media (min-width: 900px) { .hero-faces { max-width: 100%; gap: 11px; } .hero-faces .face { width: 62px; } }
@media (max-width: 420px) { .hero-faces { gap: 9px; max-width: min(345px, 100%); } .hero-faces .face { width: 50px; } }
