/* 언니네 산지부엌 웹 사이트 스타일 (3판, 2026-10-29)
   게임 공식 사이트 문법: 전체 화면 키 비주얼, 캐릭터 쇼케이스, 지역 탭 배경, 스크린샷 액자, 떠 있는 다운로드 창.
   재료는 게임 것만 쓴다: 원작 로고 색(파랑 #0252BB, 멸치 주황 #FDA101), 게임 안 글꼴(메이플스토리체), 게임 UI 판(양피지 리본, 나무 테).
   "AI 티" 패턴은 쓰지 않는다. 팀 공용 점검표: Unity 저장소 .claude/skills/no-ai-tells/SKILL.md, 사이트 메모: docs/SITE.md.
   값은 여기 :root 한 곳에서만 바꾼다. */

@font-face {
  font-family: 'Maple';
  src: url('/assets/fonts/maplestory-bold-subset.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --brand: #0b55b8;
  --brand-deep: #083f8a;
  --navy: #0a2348;
  --night: #061936;
  --sun: #fda101;
  --parch: #f6e7c4;
  --parch-ink: #4a2c10;
  --wood: #8a5426;
  --sky: #f1f7fd;
  --sky-line: #d5e5f4;

  --ink: #15233a;
  --ink-soft: #4f5d72;
  --line: #e2e8f0;

  --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-game: 'Maple', var(--font-body);

  --r: 6px;
  --head: 68px;
  --gutter: 16px;
  --max: 1200px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; }
.skip:focus { top: 12px; }

/* ── 머리: 첫 화면 위에서는 투명, 내려가면 남색 ── */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--head); background: linear-gradient(to bottom, rgba(6, 25, 54, .62), rgba(6, 25, 54, 0)); transition: background-color .25s ease; }
.site-head.solid, .solid-head .site-head { background: var(--navy); }
.solid-head { padding-top: var(--head); }
.bar { display: flex; align-items: center; gap: 20px; height: var(--head); }
.brand { flex: none; display: block; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { position: relative; font-family: var(--font-game); font-weight: 700; font-size: 16px; color: #fff; text-decoration: none; padding: 8px 13px; }
.nav a::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 3px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: #fff; }
.head-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.lang { font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.5); padding: 3px 8px; border-radius: 4px; }
.lang:hover { color: #fff; border-color: #fff; }
.head-cta { display: grid; place-items: center; width: 132px; height: 46px; background: url('/assets/img/ui-rush-button-v1.webp') center / 100% 100% no-repeat; font-family: var(--font-game); font-weight: 700; font-size: 15px; color: var(--parch-ink); text-decoration: none; padding-bottom: 2px; transition: transform .16s var(--ease-out); }
.head-cta:hover { color: var(--parch-ink); transform: translateY(-1px); }
.head-cta:active { transform: scale(0.97); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 3px; background: #fff; border-radius: 2px; margin: 4px 0; transition: transform .2s var(--ease-out), opacity .2s ease; }
@media (max-width: 959px) {
  .menu-btn { display: block; }
  .head-cta { display: none; }
  .nav { position: fixed; inset: var(--head) 0 auto 0; height: calc(100svh - var(--head)); background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 18px var(--gutter); margin: 0; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s var(--ease-out), visibility 0s .2s; }
  .nav a { font-size: 24px; padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a::after { left: 4px; right: auto; width: 40px; bottom: 10px; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s var(--ease-out); }
  .menu-open .site-head { background: var(--navy); }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .head-tools { margin-left: auto; }
  .brand img { height: 42px; }
}

/* ── 스토어 단추(검정 배지) ── */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 9px 16px 9px 13px; background: #0b0b0b; color: #fff; text-decoration: none; border-radius: 8px; border: 1px solid #3a3a3a; transition: transform .16s var(--ease-out); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-size: 18px; font-weight: 700; text-align: left; }
.store small { font-size: 11px; font-weight: 700; color: var(--sun); }
a.store:hover { color: #fff; }
a.store:active { transform: scale(0.97); }
.store.is-soon { cursor: default; }
@media (max-width: 480px) { .stores { flex-wrap: nowrap; width: 100%; } .store { flex: 1 1 0; min-width: 0; padding: 9px 10px; gap: 8px; } .store svg { width: 21px; height: 21px; } .store span { font-size: 16px; } }

/* ── 단락 제목: 게임의 양피지 리본 ── */
.ribbon { display: grid; place-items: center; width: min(520px, 92vw); aspect-ratio: 1000 / 144; margin: 0 auto 10px; background: url('/assets/img/ui-heading-ribbon.webp') center / 100% 100% no-repeat; font-family: var(--font-game); font-weight: 700; font-size: clamp(20px, 3vw, 28px); color: var(--parch-ink); line-height: 1; padding-top: 2px; }
.sec-lead { text-align: center; max-width: 34em; margin: 0 auto 40px; font-size: 17px; }

/* 떠오르기(스크립트가 있을 때만) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── 1. 첫 화면 ── */
.kv { position: relative; height: 100svh; min-height: 620px; max-height: 1080px; overflow: hidden; background: var(--navy); color: #fff; }
.kv-bg { position: absolute; inset: 0; }
.kv-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: kv-in 12s var(--ease-out) both; }
@keyframes kv-in { from { transform: scale(1.07); } to { transform: none; } }
.kv::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,35,72,0) 42%, rgba(10,35,72,.72) 78%, var(--navy) 100%); }
.kv-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 64px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gutter); }
.kv-title { margin: 0; display: flex; flex-direction: column; align-items: center; }
.kv-logo { width: min(380px, 66vw); filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.kv-name { margin: -8px 0 0; display: grid; place-items: center; width: min(360px, 70vw); aspect-ratio: 1000 / 144; background: url('/assets/img/ui-heading-ribbon.webp') center / 100% 100% no-repeat; font-family: var(--font-game); font-weight: 700; font-size: clamp(18px, 2.6vw, 25px); color: var(--parch-ink); line-height: 1; padding-top: 2px; }
.kv-tag { margin: 14px 0 20px; font-family: var(--font-game); font-weight: 700; font-size: clamp(16px, 2.1vw, 21px); text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.kv .stores { justify-content: center; }
.kv-cue { position: absolute; z-index: 2; left: 50%; bottom: 16px; width: 18px; height: 18px; margin-left: -9px; border-right: 3px solid rgba(255,255,255,.8); border-bottom: 3px solid rgba(255,255,255,.8); transform: rotate(45deg); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { translate: 0 -4px; opacity: .45; } 50% { translate: 0 3px; opacity: 1; } }
@media (max-width: 719px) { .kv { height: 92svh; min-height: 560px; } .kv-bg img { object-position: 47% 18%; } .kv-content { bottom: 40px; } }
/* 넓은 화면: 그림을 오른쪽으로 밀어(아이들은 가운데~오른쪽) 이름 · 단추는 왼쪽 포구 위에 */
@media (min-width: 960px) {
  .kv-bg img { object-position: 8% 30%; }
  .kv::after { background: linear-gradient(to right, rgba(10,35,72,.8) 0%, rgba(10,35,72,.5) 26%, rgba(10,35,72,0) 46%), linear-gradient(to bottom, rgba(10,35,72,0) 72%, var(--navy) 100%); }
  .kv-content { left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); right: auto; top: 50%; bottom: auto; transform: translateY(-40%); width: 400px; padding: 0; align-items: flex-start; text-align: left; }
  .kv .stores { justify-content: flex-start; }
}

/* ── 떠 있는 다운로드 창(넓은 화면) ── */
.dock { position: fixed; right: 18px; top: 50%; z-index: 55; transform: translateY(-50%); width: 132px; padding: 14px 12px 12px; background: var(--navy); border: 1px solid rgba(255,255,255,.18); border-top: 4px solid var(--sun); border-radius: var(--r); color: #fff; text-align: center; transition: opacity .3s ease, transform .3s var(--ease-out); }
.dock .qr { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 1.5px dashed rgba(255,255,255,.5); font-size: 12px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.dock .qr img { width: 100%; background: #fff; padding: 5px; }
.dock p { margin: 0 0 8px; font-family: var(--font-game); font-weight: 700; font-size: 13px; }
.dock .mini { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 6px 4px; background: #0b0b0b; border: 1px solid #3a3a3a; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; }
.dock .mini svg { width: 14px; height: 14px; }
.dock.hide { opacity: 0; transform: translate(12px, -50%); pointer-events: none; }
@media (max-width: 1279px) { .dock { display: none; } }

/* ── 2. 이야기: 식당 언덕 위 양피지 판 ── */
.story-sec { position: relative; min-height: 640px; display: flex; align-items: center; padding: 96px 0; background: #2a4f6e url('/assets/img/hero-1920.webp') 60% 40% / cover no-repeat; }
.story-sec::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,35,72,.82) 0%, rgba(10,35,72,.35) 55%, rgba(10,35,72,0) 100%); }
.story-sec .wrap { position: relative; }
.parch { max-width: 560px; padding: 30px 34px 28px; border: 28px solid transparent; border-image: url('/assets/img/ui-gather-parchment-card.webp') 34 fill / 28px stretch; color: var(--parch-ink); }
.parch h2 { margin: 0 0 14px; font-family: var(--font-game); font-weight: 700; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.3; color: #3a1f08; }
.parch p { margin: 0 0 10px; font-size: 17px; }
.parch p.small { font-size: 15.5px; color: #6a4a2a; margin: 0; }
@media (max-width: 719px) { .story-sec { padding: 64px 0; min-height: 0; background-position: 70% 30%; } .parch { padding: 14px 10px 12px; border-width: 22px; border-image-width: 22px; } }

/* ── 3. 식구: 캐릭터 쇼케이스 ── */
.family-sec { position: relative; overflow: hidden; padding: 92px 0 84px; color: #fff; background: linear-gradient(rgba(11,85,184,.9), rgba(10,35,72,.96)), url('/assets/img/region-namhae-sea-1536.webp') center / cover; }
.cs { display: grid; }
/* 다섯 판을 한 칸에 겹친다 → 단락 높이는 가장 긴 판에 고정, 탭을 바꿔도 안 움직인다 */
.cs-panel { grid-area: 1 / 1; display: grid; gap: 24px; align-items: end; transition: opacity .35s ease, visibility 0s; }
@media (min-width: 900px) { .cs-panel { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.cs-panel[hidden] { display: grid; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s .2s; }
.cs-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 440px; }
.cs-stage::after { content: ''; position: absolute; left: 7%; right: 7%; bottom: 0; height: 3px; background: rgba(255,255,255,.9); }
.cs-stage .ghost { position: absolute; left: 0; right: 0; top: 4%; text-align: center; font-family: var(--font-game); font-weight: 700; font-size: clamp(80px, 11vw, 150px); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.22); white-space: nowrap; pointer-events: none; overflow: hidden; }
.cs-stage .bust { position: relative; width: auto; height: auto; max-width: 86%; max-height: 100%; transition: transform .45s var(--ease-out); }
.cs-panel[hidden] .bust, .cs-panel[hidden] .cs-info { transform: translateY(12px); }
.cs-info { padding-bottom: 8px; transition: transform .45s .05s var(--ease-out); }
@keyframes cs-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cs-info h3 { margin: 0 0 10px; font-family: var(--font-game); font-weight: 700; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; }
.cs-role { display: inline-block; margin: 0 0 18px; padding: 4px 12px 3px; background: var(--sun); color: var(--night); font-family: var(--font-game); font-weight: 700; font-size: 15px; border-radius: 3px; }
.cs-say { margin: 0 0 22px; font-family: var(--font-game); font-weight: 700; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; padding-left: 16px; border-left: 4px solid var(--sun); }
.cs-ingame { display: flex; align-items: center; gap: 16px; }
.cs-ingame .slot { flex: none; width: 140px; height: 124px; display: grid; place-items: end center; padding: 4px 6px 6px; border: 14px solid transparent; border-image: url('/assets/img/ui-gather-parchment-card.webp') 34 fill / 14px stretch; }
.cs-ingame .slot img { max-height: 92px; width: auto; }
.cs-ingame p { margin: 0; font-size: 14.5px; color: #cfe0f6; }
.cs-tabs { display: flex; justify-content: center; gap: 14px; margin-top: 40px; }
.cs-tab { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; padding: 0; color: #cfe0f6; font-family: var(--font-game); font-weight: 700; font-size: 14px; }
.cs-tab .ring { width: 74px; height: 74px; border-radius: 50%; overflow: hidden; background: var(--parch); border: 4px solid var(--wood); transition: transform .2s var(--ease-out), border-color .2s ease; }
.cs-tab .ring img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.cs-tab:hover .ring { transform: translateY(-3px); }
.cs-tab[aria-selected="true"] { color: #fff; }
.cs-tab[aria-selected="true"] .ring { border-color: var(--sun); transform: translateY(-4px); }
.cs-wrap { display: flex; flex-direction: column; }
@media (max-width: 899px) {
  .cs-stage { height: 290px; }
  .cs-stage .bust { max-width: 76%; }
  .cs-tabs { order: -1; margin: 0 0 14px; gap: 12px; overflow-x: auto; justify-content: flex-start; padding: 6px 2px 4px; }
  .cs-tab .ring { width: 60px; height: 60px; border-width: 3px; }
}

/* ── 4. 산지: 지역 탭에 따라 배경이 바뀐다 ── */
.world-sec { position: relative; overflow: hidden; min-height: 720px; padding: 92px 0 64px; color: #fff; background: var(--navy); }
.world-bg { position: absolute; inset: 0; }
.world-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.world-bg img.on { opacity: 1; }
.world-sec::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(6,25,54,.9) 0%, rgba(6,25,54,.62) 46%, rgba(6,25,54,.08) 100%); }
.world-sec .wrap { position: relative; z-index: 2; }
.world-sec .ribbon { margin: 0 0 22px; }
.region-tabs { display: flex; gap: 4px; margin: 0 0 26px; border-bottom: 1px solid rgba(255,255,255,.25); overflow-x: auto; max-width: 560px; }
.region-tab { flex: none; display: flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; padding: 10px 14px 9px; font-family: var(--font-game); font-weight: 700; font-size: 18px; color: rgba(255,255,255,.72); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.region-tab:hover { color: #fff; }
.region-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--sun); }
.region-panels { display: grid; max-width: 540px; }
.region-panel { grid-area: 1 / 1; transition: opacity .35s ease, visibility 0s; }
.region-panel[hidden] { display: block; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s .2s; }
.region-panel h3 { margin: 0; font-family: var(--font-game); font-weight: 700; font-size: clamp(44px, 6vw, 68px); line-height: 1.1; text-shadow: 0 3px 10px rgba(0,0,0,.4); transition: transform .45s var(--ease-out); }
.region-panel[hidden] h3 { transform: translateY(10px); }
.region-panel .places { margin: 6px 0 14px; font-family: var(--font-game); font-weight: 700; font-size: 19px; color: var(--sun); }
.region-panel .desc { margin: 0 0 24px; font-size: 17px; color: #e6eefa; }
.items { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.items li { width: 104px; text-align: center; font-family: var(--font-game); font-weight: 700; font-size: 14px; color: var(--parch-ink); background: var(--parch); border: 3px solid var(--wood); border-radius: var(--r); padding: 10px 6px 8px; box-shadow: inset 0 -4px 0 rgba(138, 84, 38, .18); }
.items img { height: 56px; width: auto; margin: 0 auto 6px; object-fit: contain; }
.kind { display: flex; gap: 10px; margin-top: 28px; }
.kind button { border: 2px solid rgba(255,255,255,.4); background: none; padding: 0; cursor: pointer; border-radius: 4px; overflow: hidden; position: relative; width: 132px; }
.kind button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.kind button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: rgba(6,25,54,.75); font-family: var(--font-game); font-weight: 700; font-size: 13px; }
.kind button[aria-pressed="true"] { border-color: var(--sun); }
.world-map { position: absolute; right: var(--gutter); bottom: 0; width: 360px; border: 3px solid var(--wood); border-radius: var(--r); background: #2b6e9c; }
.world-map img { width: 100%; aspect-ratio: 2048 / 972; border-radius: 3px; }
.world-map .pin { position: absolute; transform: translate(-50%, -100%); border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.world-map .pin b { font-family: var(--font-game); font-weight: 700; font-size: 12px; color: var(--navy); text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; white-space: nowrap; }
.world-map .pin i { width: 14px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 26'%3E%3Cpath d='M10 25.5C10 25.5 1 15.6 1 9.7A9 9 0 0 1 19 9.7C19 15.6 10 25.5 10 25.5Z' fill='%23ffffff' stroke='%230a2348' stroke-width='1.6'/%3E%3Ccircle cx='10' cy='9.6' r='3.2' fill='%230a2348'/%3E%3C/svg%3E") no-repeat center / contain; }
.world-map .pin[aria-current="true"] i { width: 18px; height: 24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 26'%3E%3Cpath d='M10 25.5C10 25.5 1 15.6 1 9.7A9 9 0 0 1 19 9.7C19 15.6 10 25.5 10 25.5Z' fill='%23fda101' stroke='%23fff' stroke-width='1.6'/%3E%3Ccircle cx='10' cy='9.6' r='3.2' fill='%23fff'/%3E%3C/svg%3E"); }
@media (max-width: 1099px) { .world-map { display: none; } }
@media (max-width: 719px) {
  .world-sec { min-height: 0; padding: 64px 0 48px; }
  .world-sec::before { background: linear-gradient(to bottom, rgba(6,25,54,.2) 0%, rgba(6,25,54,.82) 40%, rgba(6,25,54,.94) 100%); }
  .region-panel h3 { margin-top: 120px; }
  .items { gap: 8px; }
  .items li { flex: 1 1 0; width: auto; }
  .kind button { flex: 1 1 0; width: auto; }
}

/* ── 5. 게임 소개: 게임 액자 안 스크린샷 ── */
.play-sec { padding: 92px 0 88px; background: var(--night); color: #fff; }
.play-sec .sec-lead { color: #cfe0f6; }
.viewer { position: relative; max-width: 1040px; margin: 0 auto; aspect-ratio: 1710 / 896; }
.viewer .frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.viewer .hole { position: absolute; left: 4.21%; top: 7.14%; width: 91.58%; height: 82.25%; overflow: hidden; background: #1c3350; }
.viewer .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; opacity: 0; transition: opacity .45s ease; }
.viewer .slide.on { opacity: 1; }
.viewer .arrow { position: absolute; z-index: 3; top: 46%; width: 48px; height: 48px; margin-top: -24px; border: 3px solid var(--wood); border-radius: 50%; background: var(--parch); color: var(--parch-ink); cursor: pointer; display: grid; place-items: center; transition: transform .16s var(--ease-out); }
.viewer .arrow:active { transform: scale(0.94); }
.viewer .arrow svg { width: 18px; height: 18px; }
.viewer .prev { left: -10px; } .viewer .next { right: -10px; }
.play-caption { max-width: 720px; margin: 26px auto 0; text-align: center; display: grid; }
.play-caption > div { grid-area: 1 / 1; transition: opacity .3s ease, visibility 0s; }
.play-caption h3 { margin: 0 0 6px; font-family: var(--font-game); font-weight: 700; font-size: clamp(22px, 2.8vw, 28px); }
.play-caption p { margin: 0; color: #cfe0f6; font-size: 16.5px; }
.play-caption > [hidden] { display: block; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s .2s; }
.thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 22px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 128px; border: 2px solid rgba(255,255,255,.25); border-radius: 4px; padding: 0; background: none; cursor: pointer; overflow: hidden; opacity: .65; transition: opacity .2s ease, border-color .2s ease; }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-selected="true"] { opacity: 1; border-color: var(--sun); }
@media (max-width: 719px) { .play-sec { padding: 64px 0; } .viewer .arrow { width: 38px; height: 38px; margin-top: -19px; } .viewer .prev { left: -6px; } .viewer .next { right: -6px; } .thumbs { justify-content: flex-start; } .thumb { width: 104px; } }

/* ── 6. 다운로드 ── */
.dl-sec { position: relative; overflow: hidden; padding: 96px 0 0; color: #fff; text-align: center; background: linear-gradient(rgba(10,35,72,.86), rgba(10,35,72,.94)), url('/assets/img/region-namhae-field-1536.webp') center / cover; }
.dl-sec .wrap { position: relative; z-index: 1; padding-bottom: 96px; }
.dl-sec .kv-logo { width: min(300px, 62vw); margin: 0 auto 6px; }
.dl-sec h2 { margin: 0 0 8px; font-family: var(--font-game); font-weight: 700; font-size: clamp(30px, 4.4vw, 42px); }
.dl-sec p { margin: 0 auto 28px; color: #cfe0f6; font-size: 17px; max-width: 32em; }
.download { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.qr-slot { display: none; width: 124px; font-size: 12.5px; line-height: 1.45; color: #cfe0f6; }
.qr-slot .qr { display: grid; place-items: center; width: 124px; height: 124px; margin-bottom: 8px; border: 1.5px dashed rgba(255,255,255,.55); font-weight: 700; font-size: 13px; color: #fff; }
.qr-slot .qr img { width: 112px; height: 112px; background: #fff; padding: 6px; }
@media (min-width: 720px) { .qr-slot { display: block; } }
.dl-peek { position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: 0; width: 170px; }
@media (max-width: 899px) { .dl-peek { width: 110px; right: 8px; } .dl-sec .wrap { padding-bottom: 120px; } }

/* ── 문서(약관 · 방침 · 지원): 지역 그림 띠 머리 + 흰 종이 ── */
.page-head { position: relative; color: #fff; padding-top: 44px; background: linear-gradient(rgba(10,35,72,.78), rgba(10,35,72,.92)), url('/assets/img/region-namhae-sea-1536.webp') center 40% / cover; }
.crumb { margin: 0 0 10px; font-size: 13.5px; color: rgba(255,255,255,.75); }
.crumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.crumb span { margin: 0 6px; }
.page-head h1 { margin: 0 0 6px; font-family: var(--font-game); font-weight: 700; font-size: clamp(30px, 4.8vw, 42px); line-height: 1.25; }
.page-head .meta { margin: 0; font-size: 14px; color: rgba(255,255,255,.8); }
.page-head .lead { margin: 12px 0 0; font-size: 17px; max-width: 44em; color: rgba(255,255,255,.92); }
.doc-tabs { display: flex; gap: 4px; margin-top: 28px; overflow-x: auto; scrollbar-width: none; }
.doc-tabs::-webkit-scrollbar { display: none; }
.doc-tabs a { flex: none; padding: 11px 14px 10px; font-family: var(--font-game); font-weight: 700; font-size: 15px; color: rgba(255,255,255,.75); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.doc-tabs a:hover { color: #fff; }
.doc-tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--sun); }
@media (max-width: 719px) { .doc-tabs { margin-right: calc(var(--gutter) * -1); padding-right: 32px; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); } }
.page-head.plain { padding-bottom: 44px; }

.doc-grid { display: grid; gap: 28px; padding-block: 44px 88px; }
@media (min-width: 960px) { .doc-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; } .toc { position: sticky; top: calc(var(--head) + 20px); align-self: start; } }
.toc { font-size: 14.5px; }
.toc p { margin: 0 0 8px; font-family: var(--font-game); font-weight: 700; font-size: 14px; color: var(--navy); }
.toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.45; }
.toc a:hover { color: var(--navy); }
.toc a.is-active { color: var(--brand); font-weight: 700; border-left-color: var(--sun); }
@media (max-width: 959px) { .toc { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; } .toc ul { columns: 2; column-gap: 16px; border-left: 0; } .toc a { padding-left: 0; border-left: 0; margin: 0; } }
@media (max-width: 479px) { .toc ul { columns: 1; } }

.doc { min-width: 0; max-width: 46em; }
.doc section { padding-bottom: 6px; }
.doc section + section { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 22px; }
.doc h2 { font-family: var(--font-game); font-size: 21px; line-height: 1.4; margin: 0 0 12px; color: var(--navy); font-weight: 700; }
.doc h3 { font-size: 16.5px; margin: 18px 0 6px; color: var(--navy); }
.doc p, .doc li { font-size: 16px; }
.doc p { margin: 0 0 10px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc li > ul, .doc li > ol { margin: 4px 0; }
.doc .note { background: var(--sky); border-left: 3px solid var(--brand); padding: 12px 16px; font-size: 15px; }
.doc .muted { color: var(--ink-soft); font-size: 15px; }
.table-scroll { overflow-x: auto; margin: 8px 0 16px; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--sky); color: var(--navy); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.contact-card { display: grid; gap: 14px; border: 1px solid var(--line); border-top: 4px solid var(--sun); border-radius: var(--r); padding: 20px 22px 22px; margin-bottom: 10px; }
.contact-card .mail { font-size: clamp(20px, 4.5vw, 24px); font-weight: 800; color: var(--navy); word-break: break-all; }
.contact-card dl { display: grid; gap: 4px; margin: 0; font-size: 15px; }
.contact-card dl div { display: flex; flex-wrap: wrap; gap: 0 10px; }
.contact-card dt { color: var(--ink-soft); min-width: 5.5em; }
.contact-card dd { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: var(--r); transition: background-color .15s ease, transform .16s var(--ease-out); }
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn:active { transform: scale(0.97); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary { cursor: pointer; padding: 14px 2px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--navy); }
details.faq summary:hover { color: var(--brand); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1.2; flex: none; font-weight: 400; }
details.faq[open] summary { color: var(--brand); }
details.faq[open] summary::after { content: '−'; }
details.faq > div { padding: 0 2px 16px; }
details.faq > div > :last-child { margin-bottom: 0; }

/* ── 꼬리 ── */
.site-foot { background: var(--night); color: #c9d7ea; padding-block: 44px 52px; font-size: 14px; }
.site-foot a { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 22px; }
.foot-links a { text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.foot-links a.strong { color: var(--sun); }
.biz { display: grid; gap: 2px; margin: 0 0 18px; }
.biz div { display: flex; flex-wrap: wrap; gap: 0 10px; }
.biz dt { color: #8ea3c0; min-width: 7.5em; }
.biz dd { margin: 0; }
.biz dd a { font-size: 13px; color: #c9d7ea; }
.rights { margin: 0; color: #8ea3c0; font-size: 13px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kv-bg img, .kv-cue { animation: none; }
  .js .reveal { transform: none; transition: opacity .3s ease; }
  * { transition-duration: .01ms !important; }
}
