[hidden] { display: none !important; }

/* ── 토큰(DESIGN.md) ───────────────────────────── */
:root {
  --bg: #140E0B; --surface: #1D1511; --surface-2: #281D17; --line: #3A2C23;
  --text: #F2E4D0; --text-dim: #BCA893; --text-mute: #8F7B69;
  --sun: #F0A23A; --rose: #E8566C; --jungle: #8FBF6F; --on-sun: #1A110A;
  --font-display: 'Black Han Sans', 'Pretendard Variable', Pretendard, sans-serif;
  --font-body: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;
  --r1: 6px; --r2: 12px; --r3: 18px; --fang: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; font-weight: 450; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 50; padding: var(--s2) var(--s4); background: var(--sun); color: var(--on-sun); font-weight: 700; border-radius: var(--r1); }
.skip:focus { top: var(--s3); }
.wrap { width: min(100% - 2 * var(--s6), var(--wrap)); margin-inline: auto; }
[data-lucide], svg.lucide { width: 18px; height: 18px; flex: none; stroke-width: 2; }

/* ── 버튼 ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s6); font-size: 15px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; background: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); transition: transform .18s var(--ease), filter .18s var(--ease); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--sun { background: var(--sun); color: var(--on-sun); }
.btn--rose { background: var(--rose); color: var(--on-sun); }
.btn--line { border-color: color-mix(in srgb, var(--text) 30%, transparent); color: var(--text); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.btn--sm { min-height: 40px; padding: 0 var(--s4); font-size: 14px; }
.ibtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform .18s var(--ease), filter .18s var(--ease); }
.ibtn:hover { filter: brightness(1.15); }
.ibtn:active { transform: scale(.94); }
.ibtn:disabled { opacity: .35; cursor: default; }

/* ── 고정 네비 ─────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: var(--s4); height: 60px; padding: 0 var(--s6);
  background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav { background: var(--bg); } }
.nav__brand { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--font-display); font-size: 19px; text-decoration: none; color: var(--text); white-space: nowrap; }
.nav__brand svg { color: var(--sun); }
.nav nav { flex: 1; min-width: 0; }
.nav__links { display: flex; gap: var(--s1); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a { display: block; padding: var(--s2) var(--s3); font-size: 14px; font-weight: 650; color: var(--text-dim); text-decoration: none; border-radius: var(--r1); white-space: nowrap; }
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__adult { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s3); font-size: 13px; font-weight: 700; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.nav__adult[aria-pressed="true"] { color: var(--rose); border-color: color-mix(in srgb, var(--rose) 60%, transparent); }

/* ── 히어로(전면) ─────────────────────────────── */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; padding: 120px 0 var(--s20); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: -3; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 20%, transparent) 0%, color-mix(in srgb, var(--bg) 35%, transparent) 45%, var(--bg) 96%), linear-gradient(90deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, transparent 62%); }
.hero__sun { position: absolute; z-index: -2; right: 18%; top: 14%; width: 220px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sun) 55%, transparent) 0%, transparent 68%); animation: breathe 6s var(--ease) infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .85; transform: scale(1.08); } }
.hero__reika { position: absolute; z-index: -1; right: max(-40px, calc(50% - 620px)); bottom: 0; width: min(620px, 56vw); height: auto; filter: drop-shadow(0 0 40px color-mix(in srgb, var(--sun) 25%, transparent)); }
.hero__copy { position: relative; }
.hero__kicker { display: inline-block; margin-bottom: var(--s4); padding: var(--s1) var(--s3); font-size: 13px; font-weight: 700; color: var(--rose); border: 1px solid color-mix(in srgb, var(--rose) 55%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 7vw, 76px); line-height: 1.05; color: var(--text); text-wrap: balance; text-shadow: 0 2px 24px color-mix(in srgb, var(--bg) 80%, transparent); }
.hero__lead { margin-top: var(--s5); max-width: 22em; font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; color: var(--sun); line-height: 1.5; }
.hero__sub { margin-top: var(--s3); max-width: 30em; font-size: 17px; color: var(--text-dim); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }

/* ── 섹션 ─────────────────────────────────────── */
.sec { padding: var(--s24) 0; }
.sec--alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; text-wrap: balance; }
.sec__lead { margin-top: var(--s3); max-width: 38em; color: var(--text-dim); text-wrap: pretty; }
.fang { position: relative; padding: var(--s6); background: var(--surface); border: 1px solid var(--line); clip-path: polygon(0 0, calc(100% - var(--fang)) 0, 100% var(--fang), 100% 100%, 0 100%); }
.sec--alt .fang { background: var(--surface-2); }
.card__title { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.3; }

/* ── 프롤로그 가로 띠 ─────────────────────────── */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 78vw); gap: var(--s4); margin-top: var(--s10); padding: 0 max(var(--s6), calc((100% - var(--wrap)) / 2)) var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--s6), calc((100% - var(--wrap)) / 2)); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.strip:focus-visible { outline-offset: -2px; }
.panel { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); clip-path: polygon(0 0, calc(100% - var(--fang)) 0, 100% var(--fang), 100% 100%, 0 100%); }
.panel__img { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--surface-2); }
.panel__body { padding: var(--s5); font-size: 15px; line-height: 1.7; color: var(--text-dim); }
.panel__tail { margin-top: var(--s2); font-weight: 700; color: var(--text); }
.strip__nav { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s4); }

/* ── 인물(비대칭) ─────────────────────────────── */
.chars { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s6); margin-top: var(--s10); align-items: start; }
.char { display: grid; gap: var(--s5); }
.char--main { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
.char__art { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--sun) 22%, var(--surface-2)) 0%, var(--surface-2) 70%); border: 1px solid var(--line); clip-path: polygon(0 0, calc(100% - var(--fang)) 0, 100% var(--fang), 100% 100%, 0 100%); overflow: hidden; }
.char__art img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s var(--ease); }
.char--bouter .char__art { background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rose) 18%, var(--surface-2)) 0%, var(--surface-2) 70%); }
.char--bouter .char__art img { object-fit: cover; }
.char__name { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.1; }
.char--main .char__name { color: var(--sun); }
.char--bouter .char__name { color: var(--rose); }
.char__role { margin-top: var(--s1); font-size: 14px; font-weight: 700; color: var(--text-mute); }
.facts { display: grid; gap: var(--s3); margin: var(--s5) 0 0; }
.facts div { display: grid; grid-template-columns: 5.6em 1fr; gap: var(--s3); font-size: 15px; line-height: 1.65; }
.facts dt { font-weight: 700; color: var(--text-mute); }
.facts dd { margin: 0; color: var(--text); }
.faces { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.face { width: 48px; height: 48px; padding: 0; border-radius: 999px; border: 2px solid var(--line); background: var(--surface-2) center 18% / 230% no-repeat; cursor: pointer; transition: transform .18s var(--ease), filter .18s var(--ease); }
.face:hover { transform: translateY(-2px); }
.face[aria-checked="true"] { border-color: var(--sun); }
.faces__label { width: 100%; font-size: 13px; font-weight: 700; color: var(--text-mute); }

/* ── 이레(타임라인) ───────────────────────────── */
.days { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); margin: var(--s12) 0 0; padding: 0; list-style: none; }
.days::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: linear-gradient(90deg, var(--sun), var(--rose)); opacity: .55; }
.day { position: relative; padding-top: var(--s16); }
.day__no { position: absolute; top: 0; left: 0; display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 var(--s3); border-radius: 999px; font-family: var(--font-display); font-size: 18px; color: var(--on-sun); background: var(--sun); }
.day--wed .day__no { background: var(--rose); }
.day__title { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.3; }
.day__text { margin-top: var(--s2); font-size: 15px; color: var(--text-dim); }
.rules { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s6); margin-top: var(--s16); }
.rules__bet p { color: var(--text-dim); }
.routes { display: grid; gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.routes li { padding-left: var(--s4); border-left: 3px solid var(--jungle); }
.routes b { display: block; color: var(--jungle); font-size: 16px; }
.routes span { font-size: 15px; color: var(--text-dim); }

/* ── 상태창 재현 ─────────────────────────────── */
.status { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s12); align-items: start; }
.seg { display: inline-flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s6); padding: var(--s1); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.seg button { min-height: 40px; padding: 0 var(--s4); font-size: 14px; font-weight: 700; color: var(--text-dim); background: none; border: 0; border-radius: 999px; cursor: pointer; }
.seg button[aria-checked="true"] { color: var(--on-sun); background: var(--sun); }
.legend { display: grid; gap: var(--s3); margin: var(--s8) 0 0; }
.legend div { display: grid; grid-template-columns: 7.5em 1fr; gap: var(--s3); font-size: 15px; }
.legend dt { font-weight: 700; color: var(--text); }
.legend dd { margin: 0; color: var(--text-dim); }
.sw { max-width: 440px; width: 100%; justify-self: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.sw__head { position: relative; height: 150px; background: var(--surface-2) center 42% / cover no-repeat; }
.sw__head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 10%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 45%, var(--bg) 100%); }
.sw__top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; padding: var(--s4) var(--s5) 0; }
.sw__day { font-family: var(--font-display); font-size: 30px; line-height: 1.05; }
.sw__tm { display: inline-flex; align-items: center; gap: var(--s1); margin-left: var(--s2); padding: 2px var(--s2); font-size: 12px; font-weight: 700; color: var(--sun); border: 1px solid color-mix(in srgb, var(--sun) 40%, transparent); border-radius: 999px; vertical-align: 6px; background: color-mix(in srgb, var(--bg) 50%, transparent); }
.sw__tm svg { width: 13px; height: 13px; }
.sw__place { display: flex; align-items: center; gap: var(--s1); margin-top: var(--s1); font-size: 13px; font-weight: 600; color: var(--text-dim); }
.sw__place svg { width: 14px; height: 14px; color: var(--sun); }
.sw__dd { padding: var(--s1) var(--s3); text-align: right; border: 1px solid color-mix(in srgb, var(--sun) 40%, transparent); border-radius: var(--r2); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.sw__dd small { display: block; font-size: 11px; font-weight: 700; color: var(--text-dim); }
.sw__dd b { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--sun); }
.sw__dd.is-late { border-color: color-mix(in srgb, var(--rose) 60%, transparent); }
.sw__dd.is-late b { color: var(--rose); }
.track7 { position: absolute; z-index: 1; left: var(--s5); right: var(--s5); bottom: var(--s3); display: flex; align-items: center; }
.track7 i { flex: 1; height: 2px; margin: 0 3px; background: var(--line); }
.track7 i.on { background: var(--sun); }
.track7 span { width: 11px; height: 11px; flex: none; border-radius: 999px; border: 2px solid var(--text-mute); background: var(--bg); }
.track7 span.past { background: var(--sun); border-color: var(--sun); }
.track7 span.now { width: 22px; height: 22px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--on-sun); background: var(--sun); border-color: var(--sun); }
.track7 span.wed { width: 20px; height: 20px; border-color: var(--rose); }
.track7 span.wed.now { background: var(--rose); }
.sw__body { display: grid; gap: var(--s3); padding: var(--s4); }
.sw__card { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); }
.sw__row { display: flex; justify-content: space-between; align-items: center; margin: var(--s2) 0 6px; font-size: 13px; color: var(--text-dim); }
.sw__row b { font-family: var(--font-display); font-weight: 400; font-size: 18px; }
.sw__label { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); font-size: 13px; font-weight: 800; }
.gauge { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.gauge__fill { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 999px; transform-origin: left center; transform: scaleX(0); transition: transform .7s var(--ease); }
.gauge__fill--sun { background: linear-gradient(90deg, var(--sun), color-mix(in srgb, var(--sun) 70%, var(--rose))); }
.gauge--dual .gauge__neg, .gauge--dual .gauge__pos { position: absolute; top: 0; bottom: 0; width: 50%; transition: transform .7s var(--ease); }
.gauge--dual .gauge__neg { right: 50%; transform-origin: right center; background: linear-gradient(270deg, var(--text-mute), color-mix(in srgb, var(--text-mute) 40%, var(--surface-2))); }
.gauge--dual .gauge__pos { left: 50%; transform-origin: left center; background: linear-gradient(90deg, var(--rose), color-mix(in srgb, var(--rose) 75%, var(--sun))); }
.gauge--dual::after { content: ''; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; background: var(--text-dim); }
.scale3 { display: flex; justify-content: space-between; margin-top: 3px; font-size: 10px; color: var(--text-mute); }
.steps { display: flex; gap: var(--s1); }
.steps span { flex: 1; padding: 7px 0; text-align: center; font-size: 12px; font-weight: 800; color: var(--text-mute); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r1); }
.steps span.past { color: color-mix(in srgb, var(--rose) 70%, var(--text)); background: color-mix(in srgb, var(--rose) 12%, var(--surface-2)); }
.steps span.now { color: var(--text); background: color-mix(in srgb, var(--rose) 32%, var(--surface-2)); border-color: var(--rose); }
.bars5 { display: flex; gap: var(--s1); }
.bars5 span { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); }
.bars5 + .names5 { display: flex; margin-top: 6px; }
.names5 span { flex: 1; text-align: center; font-size: 10px; color: var(--text-mute); }
.names5 span.now { color: var(--sun); font-weight: 800; }
.route { margin-top: var(--s3); }
.route__row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 13px; font-weight: 700; }
.route__row b { color: var(--jungle); }
.gauge__fill--jungle { background: var(--jungle); }
.sw__me { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.sw__face { width: 76px; height: 96px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--surface-2) 50% 12% / 170% no-repeat; }
.sw__row--first { margin-top: 0; }
.sw__label--gap { margin: var(--s4) 0 var(--s2); }
.sw__label--tight { margin-bottom: var(--s1); }
.t-sun { color: var(--sun); } .t-rose { color: var(--rose); } .t-jungle { color: var(--jungle); } .t-dim { color: var(--text-dim); } .t-mute { color: var(--text-mute); font-weight: 600; }
.sw__empty { font-size: 13px; color: var(--text-mute); }
.sw__example { padding: 0 var(--s4) var(--s4); font-size: 12px; color: var(--text-mute); }

/* ── 핸드폰(2×2 화면) ─────────────────────────── */
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8) var(--s10); max-width: 960px; margin-top: var(--s10); }
.phone { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.phone__screen { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r3); border: 1px solid var(--line); background: var(--surface-2); box-shadow: inset 0 0 0 6px var(--surface); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__title { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.phone__desc { font-size: 15px; color: var(--text-dim); }
.phone:nth-child(even) { margin-top: var(--s12); }

/* ── 18+ 게이트 ───────────────────────────────── */
.gatebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); padding: var(--s4) var(--s5); background: color-mix(in srgb, var(--rose) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--rose) 40%, transparent); border-radius: var(--r2); }
.gatebar p { font-size: 15px; font-weight: 600; }
.adult[data-locked="true"] img { filter: blur(22px) saturate(.7); transform: scale(1.12); }
.adult[data-locked="true"]::after { content: '18+'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; color: var(--text); background: color-mix(in srgb, var(--bg) 45%, transparent); pointer-events: none; }

/* ── 갤러리 ───────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s8); }
.chip { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); font-size: 14px; font-weight: 650; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: transform .18s var(--ease), filter .18s var(--ease); }
.chip:hover { filter: brightness(1.12); }
.chip small { font-size: 12px; color: var(--text-mute); }
.chip[aria-checked="true"] { color: var(--on-sun); background: var(--sun); border-color: var(--sun); }
.chip[aria-checked="true"] small { color: var(--on-sun); }
.chips__desc { margin-top: var(--s3); font-size: 14px; color: var(--text-mute); }
.gtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); }
.search { position: relative; display: flex; align-items: center; flex: 1 1 280px; max-width: 420px; }
.search svg { position: absolute; left: var(--s3); color: var(--text-mute); pointer-events: none; }
.search input { width: 100%; min-height: 44px; padding: 0 var(--s4) 0 40px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r2); }
.search input::placeholder { color: var(--text-mute); }
.gcount { font-size: 14px; color: var(--text-mute); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); margin-top: var(--s5); min-height: 300px; }
.cell { position: relative; display: flex; flex-direction: column; padding: 0; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; cursor: pointer; transition: transform .18s var(--ease), filter .18s var(--ease); }
.cell:hover { transform: translateY(-3px); filter: brightness(1.08); }
.cell__media { position: relative; aspect-ratio: 1; overflow: hidden; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--sun) 10%, var(--surface-2)), var(--surface-2) 70%); }
.cell__media img { width: 100%; height: 100%; object-fit: contain; }
.cell.is-missing .cell__media img { visibility: hidden; }
.cell.is-missing .cell__media::before { content: '그림 없음'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--text-mute); }
.cell__cap { display: flex; gap: var(--s2); align-items: baseline; padding: var(--s2) var(--s3); font-size: 13px; line-height: 1.4; }
.cell__cap b { flex: none; font-family: var(--font-display); font-weight: 400; color: var(--sun); }
.cell__cap span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); }
.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: var(--s3); padding: var(--s16) 0; color: var(--text-mute); }
.pager { display: flex; justify-content: center; align-items: center; gap: var(--s4); margin-top: var(--s8); font-size: 14px; color: var(--text-dim); }

/* ── 라이트박스 ───────────────────────────────── */
.lb { width: min(100% - 2 * var(--s4), 760px); max-height: calc(100svh - 2 * var(--s4)); padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: 0 24px 80px color-mix(in srgb, var(--bg) 85%, transparent); overflow: auto; }
.lb::backdrop { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lb__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s3) var(--s3) var(--s5); border-bottom: 1px solid var(--line); }
.lb__title { min-width: 0; font-weight: 700; }
.lb__title b { margin-right: var(--s2); font-family: var(--font-display); font-weight: 400; color: var(--sun); }
.lb__media { position: relative; height: min(720px, calc(100svh - 190px)); background: var(--bg); display: grid; place-items: center; }
.lb__media img { width: 100%; height: 100%; object-fit: contain; }
.lb__media p { position: absolute; font-size: 14px; color: var(--text-mute); }
.lb__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3); border-top: 1px solid var(--line); }
.lb__tools { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }

/* ── 토스트·푸터 ──────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: var(--s6); z-index: 60; padding: var(--s3) var(--s5); font-size: 14px; font-weight: 700; color: var(--on-sun); background: var(--sun); border-radius: 999px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.foot { padding: var(--s16) 0; border-top: 1px solid var(--line); }
.foot__in { display: grid; gap: var(--s2); font-size: 14px; color: var(--text-mute); }
.foot__title { font-family: var(--font-display); font-size: 22px; color: var(--text); }

/* ── 등장 ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .52s var(--ease), transform .52s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── 반응형 ───────────────────────────────────── */
@media (max-width: 980px) {
  .chars, .rules, .status { grid-template-columns: minmax(0, 1fr); }
  .char--main { grid-template-columns: minmax(0, 1fr); }
  .char--main .char__art { max-width: 420px; }
  .char--bouter { grid-template-columns: minmax(0, 1fr); }
  .char--bouter .char__art { max-width: 420px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 2 * var(--s4), var(--wrap)); }
  .nav { padding: 0 var(--s4); gap: var(--s2); }
  .nav__brand span { display: none; }
  .nav__adult span { display: none; }
  .sec { padding: var(--s16) 0; }
  .hero { display: block; min-height: 0; padding: 76px 0 var(--s12); }
  .hero__reika { position: relative; z-index: 0; right: auto; bottom: auto; width: min(84vw, 420px); margin: 0 auto calc(-1 * var(--s10)); }
  .hero__copy { z-index: 1; }
  .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 15%, transparent) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 40%, var(--bg) 72%); }
  .hero__sun { right: 8%; width: 160px; }
  .days { grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
  .days::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--sun), var(--rose)); }
  .day { padding: 0 0 0 var(--s16); min-height: 48px; }
  .phones { grid-template-columns: minmax(0, 1fr); }
  .phone:nth-child(even) { margin-top: 0; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
  .cell__cap { padding: 6px var(--s2); font-size: 12px; }
  .facts div, .legend div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .strip { padding-inline: var(--s4); scroll-padding-inline: var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__sun { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .ibtn, .chip, .cell, .face, .gauge__fill, .gauge--dual .gauge__neg, .gauge--dual .gauge__pos, .toast { transition: none; }
}
