/* hi.haru-hub.com — "밤의 운영 일지" (docs/DESIGN-2026-11.md)
   색 뜻 고정: 청자(--cel)=구조·링크, 등불(--lamp)=지금·행동, 산호(--alert)=문제. 다크 고정. */

@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0021-007E, U+00A1-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2190-21FF, U+2212; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0021-007E, U+00A1-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2190-21FF, U+2212; }

/* 이 페이지에 쓰인 글자만 담은 Pretendard 부분 파일(약 146KB). 없는 글자는 아래 동적 부분 파일로 넘어감.
   문구를 바꾸면 README 의 "글꼴 부분 파일 다시 만들기" 대로 재생성. */
@font-face { font-family: "Pretendard Page"; font-style: normal; font-weight: 45 920; font-display: swap;
  src: url(fonts/pretendard-page-subset.woff2?v=20261127g) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0c1416; --surface: #121e21; --surface-2: #192a2e; --lamp-wash: #2a2416;
  --ink: #e8efec; --ink-2: #b3c3be; --ink-3: #93a8a2;
  --cel: #8fcab8; --lamp: #f2c879; --ok: #9ad8a6; --alert: #ff9b8a; --on-lamp: #1b1505;
  --line: #26393e; --line-strong: #3a5157; --focus: #f2c879;
  --bezel: #05090b; --rim: #3a4a4f; --lamp-off: #2c3d41; --stale: #5d7378;
  --sans: "Pretendard Page", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Pretendard Page", "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", ui-monospace, monospace;
  --gut: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --bar: calc(52px + env(safe-area-inset-top));
}

/* ── 기본 ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.72 var(--sans);
  word-break: keep-all; overflow-wrap: anywhere;
  overflow-x: clip; -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--cel); text-decoration: none; transition: color .12s; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
b { font-weight: 750; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.wrap { max-width: calc(1120px + 2 * var(--gut)); margin: 0 auto; padding-inline: var(--gut); }
@media (min-width: 1024px) { :root { --gut: max(32px, env(safe-area-inset-left), env(safe-area-inset-right)); } }

.meta, .kicker, .chip, .chips li, .when, .mh, .cap-row, .lbl { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.meta { font-size: .78125rem; line-height: 1.4; color: var(--ink-3); }
.small { font-size: .875rem; line-height: 1.6; color: var(--ink-2); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 30; background: var(--lamp); color: var(--on-lamp); padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: calc(8px + env(safe-area-inset-top)); color: var(--on-lamp); }

/* ── 상단 막대 ── */
.bar {
  position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top);
  background: rgba(12, 20, 22, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .12s;
}
.bar.scrolled { border-bottom-color: var(--line); }
.bar-in { height: 52px; display: flex; align-items: center; gap: 8px; }
.logo { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--ink); margin-right: auto; min-height: 44px; display: flex; align-items: center; white-space: nowrap; }
.bar-nav { display: flex; }
.bar-nav a { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; padding: 0 8px; font-size: .84375rem; color: var(--ink-2); box-shadow: inset 0 -2px 0 transparent; }
.bar-nav a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--cel); }
.btn-line { min-height: 36px; padding: 0 16px; display: inline-flex; white-space: nowrap; flex: none; align-items: center; border: 1.5px solid var(--lamp); border-radius: 999px; color: var(--lamp); font-size: .875rem; font-weight: 700; margin-left: 4px; position: relative; }
.btn-line::after { content: ""; position: absolute; inset: -4px 0; }
.btn-line:hover { color: var(--ink); }
/* 11-27 '게임' 링크가 늘어 — 폰 폭에선 여정, 아주 좁으면 인프라도 숨김(목차 순서상 바로 아래라 손해 적음) */
@media (max-width: 429px) { .n-journey { display: none !important; } }
@media (max-width: 359px) { .n-infra { display: none !important; } }
@media (max-width: 399px) { .bar-nav a { padding: 0 4px; } .logo { font-size: 14px; } }

/* ── 버튼 · 링크 ── */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--lamp); color: var(--on-lamp); font-weight: 750; }
.btn:hover { color: var(--on-lamp); background: #f6d698; }
.btn:active, .btn-line:active, .chips.pick button:active, .tabs button:active { transform: scale(.97); }
.tlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--cel); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.go { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-weight: 600; color: var(--cel); }
.go:hover { color: var(--ink); }

/* ── 첫 화면 ── */
.hero { padding: 24px 0 48px; }
.hero-grid { display: grid; gap: 32px; }
.hero .meta { margin-bottom: 12px; }
.display { font-size: clamp(34px, 7.2vw, 60px); line-height: 1.18; font-weight: 800; letter-spacing: -.03em; }
@media (max-width: 359px) { .display { font-size: 28px; } }
.ul { text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: .09em; text-underline-offset: .14em; }
.lede { margin-top: 16px; max-width: 34em; color: var(--ink-2); }
.proof { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.proof div { background: var(--lamp-wash); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.proof dt { font: 500 .78125rem/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.proof dd { font-size: clamp(17px, 4.4vw, 24px); line-height: 1.3; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.arr { color: var(--lamp); }
.cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

/* 실시간 띠 — 모든 상태 높이 44 고정 */
.strip { margin-top: 24px; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 16px; background: var(--surface); border-radius: 999px; font-size: .84375rem; max-width: 34em; }
.strip .dot { flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--lamp-off); }
.strip[data-state="ok"] .dot { background: var(--lamp); }
.strip[data-state="part"] .dot { background: var(--alert); }
.strip[data-state="stale"] .dot { background: var(--stale); }
.strip[data-state="fail"] .dot, .strip[data-state="loading"] .dot { display: none; }
.strip-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.strip[data-state="ok"] .strip-text b { color: var(--ok); font-weight: 650; }
.strip[data-state="part"] .strip-text b { color: var(--alert); font-weight: 650; }
.strip-link { flex: none; min-height: 44px; display: flex; align-items: center; padding: 0 8px; font-weight: 600; }
@media (max-width: 400px) { .strip { font-size: .78125rem; padding-left: 12px; gap: 4px; } }

/* 지도 */
.map-fig { min-width: 0; }
.map-title { margin-bottom: 8px; }
.map { width: 100%; height: auto; }
.map .b1 { fill: var(--surface); stroke: var(--line-strong); }
.map .b2 { fill: var(--surface-2); stroke: var(--line-strong); }
.map .depth { fill: var(--bezel); }
.map .wires path { fill: none; stroke: var(--cel); stroke-width: 1.2; stroke-dasharray: 3 4; }
.map .trace path { fill: none; stroke: var(--cel); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.map .lbl { font-size: 12px; fill: var(--ink-2); }
.map .lbl-narrow { display: none; font-size: 15px; }
.lamp { fill: var(--lamp-off); transform-box: fill-box; transform-origin: center; transition: fill .3s; }
.lamp[data-s="on"] { fill: var(--lamp); }
.lamp[data-s="bad"] { fill: var(--alert); }
.map.lit .trace path { animation: trace .6s ease-out forwards; }
.map.lit .lamp { transition: fill .22s calc(.6s + var(--i) * 70ms); animation: lampOn .22s calc(.6s + var(--i) * 70ms) both; }
.map.done .trace path { animation: none; stroke-dashoffset: 0; }
.map.done .lamp { transition: fill .3s; animation: none; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes lampOn { from { transform: scale(.6); opacity: .4; } }
.map-note { margin-top: 8px; }
@media (max-width: 559px) { .map .lbl-wide { display: none; } .map .lbl-narrow { display: inline; } }

@media (min-width: 1024px) {
  .hero { padding: 72px 0 112px; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
  .hero-text { grid-column: 1 / span 7; }
  .map-fig { grid-column: 8 / span 5; }
}

/* ── 섹션 공통 ── */
/* 해시 이동 시 섹션 머리가 막대 바로 아래 16px 에 오도록(패딩만큼 당김) */
.sec { padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--bar) + 16px - 72px); }
article { scroll-margin-top: calc(var(--bar) + 16px); }
@media (min-width: 1024px) { .sec { padding: 112px 0; scroll-margin-top: calc(var(--bar) + 16px - 112px); } }
.kicker { font-size: .8125rem; color: var(--cel); margin-bottom: 12px; }
h2 { font-size: clamp(26px, 5.4vw, 40px); line-height: 1.25; font-weight: 750; letter-spacing: -.025em; max-width: 24em; }
h2 b { color: var(--lamp); font-weight: 750; }
h3 { font-size: clamp(19px, 3.6vw, 23px); line-height: 1.4; font-weight: 700; letter-spacing: -.015em; }
.sub { margin-top: 12px; margin-bottom: 32px; max-width: 34em; color: var(--ink-2); }
.closing { margin-top: 32px; color: var(--ink-2); max-width: 34em; }
.body { margin-top: 12px; max-width: 34em; color: var(--ink-2); }
.mh { display: inline-block; margin-right: 8px; font-size: .78125rem; color: var(--cel); }

/* 여정 */
.log { display: grid; gap: 32px; max-width: 760px; }
.log li { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--line-strong); }
.log li.now { border-left-color: var(--lamp); }
.when { font-size: .8125rem; color: var(--ink-3); }
.now .when { color: var(--lamp); }
.where { margin: 4px 0 8px; font-size: .875rem; color: var(--ink-3); }
.log p:last-child { color: var(--ink-2); max-width: 34em; }
@media (min-width: 640px) { .log li { grid-template-columns: 96px 1fr; gap: 16px; } .when { padding-top: 4px; } }

/* 원칙 */
.trio { display: grid; gap: 16px; }
.trio li { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 24px 20px; }
.trio .meta { color: var(--cel); margin-bottom: 8px; }
.trio h3 { margin-bottom: 4px; }
.trio p:last-child { color: var(--ink-2); }
@media (min-width: 640px) { .trio { grid-template-columns: repeat(3, 1fr); } }
/* 사례(Vendor QA) — 글이 길어 3칸은 넓은 화면에서만 */
.trio.cases h3 { margin-bottom: 8px; }
.trio.cases li > p:last-child { font-size: .9375rem; line-height: 1.68; }
@media (min-width: 640px) and (max-width: 959px) { .trio.cases { grid-template-columns: 1fr; } }

/* 카드 · 칩 */
.card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 20px; }
.card + .card { margin-top: 24px; }
@media (min-width: 1024px) { .card { padding: 28px; } }
.card-head { margin-bottom: 12px; }
.card h3 { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .chips li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .78125rem; line-height: 1.3; }
.chip-lamp { background: var(--lamp-wash); color: var(--lamp); }
h3 .chip { vertical-align: middle; margin-left: 4px; }
.chips.pick { margin: 24px 0 12px; }
.chips.pick button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .875rem; font-weight: 600; transition: background-color .12s, color .12s; }
.chips.pick button[aria-pressed="true"] { background: var(--cel); color: var(--bg); }
.mask { margin-top: 12px; font-size: .875rem; color: var(--ink-2); }
.mask .chip { margin-right: 4px; }

/* 표 — 폰은 3열 */
.tbl-title { margin: 32px 0 8px; color: var(--ink-2); }
.lead-case { padding: 16px; border-radius: 12px; background: var(--lamp-wash); color: var(--ink); font-size: 1.0625rem; font-weight: 700; line-height: 1.6; max-width: 40em; }
.lead-case b { color: var(--lamp); }
.lead-case + .small { margin-top: 12px; max-width: 34em; color: var(--ink-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--surface-2); font: 500 .78125rem/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.tbl tbody th { font-weight: 600; }
.tbl td { color: var(--ink-2); }
.tbl td b, .c-now { color: var(--ink); font-weight: 700; }
.gain { position: relative; color: var(--lamp) !important; font-weight: 700; white-space: nowrap; }
.gain i { position: absolute; left: 8px; right: 8px; bottom: 6px; height: 3px; background: var(--line); }
.gain i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--lamp); }
.c-before, .c-now { display: none; }
@media (min-width: 560px) { .c-before, .c-now { display: table-cell; } .c-both { display: none; } }

/* 영상·그림 틀 */
.media { margin-top: 24px; }
.screen-frame { position: relative; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; isolation: isolate; background: var(--bezel); }
.screen-frame img, .screen-frame video { width: 100%; height: auto; object-fit: cover; }
.r1200x772 { aspect-ratio: 1200 / 772; } .r1200x750 { aspect-ratio: 1200 / 750; } .r1200x857 { aspect-ratio: 1200 / 857; } .r1200x771 { aspect-ratio: 1200 / 771; }
.media figcaption { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.cap-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vbtn { min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 .78125rem var(--mono); }
.vbtn:hover { color: var(--ink); }
.vplay { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--lamp); color: var(--on-lamp); display: flex; align-items: center; justify-content: center; z-index: 2; }
.vplay svg { width: 28px; height: 28px; fill: currentColor; }
.vplay[hidden] { display: none; }

/* 기기 틀 — CSS만 */
.device { width: min(100%, 300px); }
.device:has(.dev-laptop) { width: 100%; }
.dev { background: var(--bezel); box-shadow: inset 0 0 0 1.5px var(--rim); }
.dev-iphone { aspect-ratio: 430 / 932; padding: 9px; border-radius: 50px; }
.dev-android { aspect-ratio: 1080 / 2400; padding: 8px; border-radius: 34px; }
.dev-laptop { aspect-ratio: 16 / 10; border: 10px solid var(--bezel); border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1.5px var(--rim); position: relative; margin-bottom: 12px; }
.dev-laptop::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -22px; height: 12px; background: #2a3a3f; clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%); }
.screen { position: relative; height: 100%; overflow: hidden; isolation: isolate; border-radius: 41px; background: var(--surface-2); }
.dev-android .screen { border-radius: 26px; }
.dev-laptop .screen { border-radius: 0; }
.screen video { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.dev-iphone .screen::after { content: ""; position: absolute; top: 11px; left: 35%; width: 30%; height: 26px; border-radius: 999px; background: #000; z-index: 1; }
.dev-android .screen::after { content: ""; position: absolute; top: 10px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #000; z-index: 1; }
.screen.ph { display: flex; align-items: center; justify-content: center; text-align: center; }
.screen.ph p { font: 500 .8125rem/1.6 var(--mono); color: var(--ink-3); }
.device .cap-row { margin-top: 12px; }

/* 둘로 나눈 카드(글 7 + 기기 틀 5) */
.split { display: grid; gap: 32px; }
.home-steps { margin-top: 24px; display: grid; gap: 16px; max-width: 40em; }
.home-steps > li { padding-left: 16px; border-left: 2px solid var(--line-strong); color: var(--ink-2); }
.home-steps > li > .meta { color: var(--cel); margin-bottom: 4px; }
.home-steps .dash { margin-top: 4px; }
.home-safe { margin-top: 16px; max-width: 40em; }
.split .device { justify-self: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
  .split-text { grid-column: 1 / span 7; }
  .split .device { grid-column: 8 / span 5; }
}
.h-sub { font-weight: 500; color: var(--ink-2); font-size: .8em; }
.dash { margin-top: 16px; display: grid; gap: 8px; max-width: 34em; }
.dash li { position: relative; padding-left: 16px; color: var(--ink-2); }
.dash li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 2px; background: var(--cel); }
.split-text > .chips:first-child { margin-bottom: 4px; }
.split-text .chips:not(:first-child) { margin-top: 16px; }

/* 펼침 */
details { margin-top: 24px; border-top: 1px solid var(--line); }
summary { list-style: none; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 600; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 500 1.25rem var(--mono); color: var(--cel); }
details[open] summary::after { content: "−"; }
.more { background: var(--surface-2); border-radius: 12px; padding: 16px; display: grid; gap: 12px; font-size: .9375rem; color: var(--ink-2); }
.more ul { display: grid; gap: 4px; }
.more li::before { content: "· "; color: var(--cel); }

/* 인프라 */
.asof { margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.stats div { background: var(--surface-2); border-radius: 12px; padding: 16px 8px; text-align: center; display: flex; flex-direction: column-reverse; gap: 4px; }
.stats dd { font-size: clamp(22px, 6vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats dt { font-size: .8125rem; color: var(--ink-2); line-height: 1.4; }
#infra .stats { margin: 0 0 32px; }
.stats4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stats4 { grid-template-columns: repeat(4, 1fr); } }
.rules { display: grid; gap: 16px; margin-bottom: 32px; counter-reset: r; }
.rules li { counter-increment: r; padding: 16px 0 0; border-top: 1px solid var(--line); }
.rules h3 { font-size: 1.0625rem; }
.rules h3::before { content: counter(r, decimal-leading-zero) "  "; font: 500 .8125rem var(--mono); color: var(--cel); white-space: pre; }
.rules p { margin-top: 4px; color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 640px) { .rules { grid-template-columns: 1fr 1fr; gap: 24px 16px; } }
@media (min-width: 1024px) { .rules { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; } }

/* 서비스 */
.how { background: var(--surface-2); border-radius: 12px; padding: 16px; margin-bottom: 24px; color: var(--ink-2); max-width: 760px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; padding: 4px 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .9375rem; }
.tabs button[aria-selected="true"] { background: var(--cel); border-color: var(--cel); color: var(--bg); }
[role="tabpanel"][hidden] { display: none; }

/* 게임 — 폰은 가로 넘김 */
.games { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 8px; }
.game { flex: 0 0 76%; scroll-snap-align: start; min-width: 0; }
.game .device { width: 100%; max-width: 300px; }
.game h3 { margin-top: 16px; }
.game > p { margin-top: 4px; color: var(--ink-2); font-size: .9375rem; }
.game .go { margin-top: 8px; }
.status-line { color: var(--lamp) !important; }
@media (min-width: 768px) {
  .games { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 24px; }
}

/* 경력 */
.jobs { display: grid; gap: 24px; }
.job { padding-top: 24px; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; padding-top: 0; }
.job .where { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); }
blockquote { margin-top: 8px; padding: 12px 16px; border-left: 2px solid var(--cel); background: var(--surface); border-radius: 0 8px 8px 0; font-size: .875rem; color: var(--ink-2); }

/* 바로 열기 */
.svc { display: grid; border-top: 1px solid var(--line); }
.svc li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.svc a, .svc .nolink { display: grid; gap: 0 12px; min-height: 44px; color: var(--ink-2); }
.svc b { color: var(--ink); font-weight: 700; }
.svc .url { color: var(--cel); font-family: var(--mono); font-size: .8125rem; }
.svc a:hover .url { color: var(--ink); }
.st { font: 500 .8125rem/1.5 var(--mono); color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.st::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lamp-off); }
.st.off::before { display: none; }
.st[data-s="on"] { color: var(--ok); } .st[data-s="on"]::before { background: var(--lamp); }
.st[data-s="bad"] { color: var(--alert); } .st[data-s="bad"]::before { background: var(--alert); }
.svc[data-state="fail"] li[data-target] .st { display: none; }
.svc-fail { margin-top: 12px; }
@media (min-width: 768px) {
  .svc li { grid-template-columns: 1fr 260px; align-items: center; gap: 16px; }
  .svc a, .svc .nolink { grid-template-columns: 140px 1fr; align-items: center; }
  .svc .url { grid-column: 2; }
}

/* 연락 · 바닥 */
.btn-big { min-height: 56px; font-size: 1.125rem; padding: 0 32px; }
.gh { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.foot { padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; }
.foot .meta { margin-top: 8px; }

/* 게임 카드(첫 화면 아래) — 장르 칩 · 바로 하기 + 자세히 */
.game-tags { margin-top: 8px; }
.game-go { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }

/* 바닥 메뉴(모든 페이지) */
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 16px; }
.foot-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--cel); font-weight: 600; }
.foot-nav a:hover { color: var(--ink); }
.foot-nav a[aria-current="page"] { color: var(--ink); }

/* ── 하위 페이지(게임 · 소개 · 개인정보) ── */
.page { padding: 24px 0 72px; }
@media (min-width: 1024px) { .page { padding: 48px 0 112px; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font: 500 .8125rem/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-3); margin-bottom: 8px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cel); }
.page-title { font-size: clamp(32px, 6.4vw, 52px); line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
.page .lede { font-size: 1.0625rem; }
.facts { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 760px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { font: 500 .75rem/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.facts dd { margin-top: 2px; font-weight: 650; font-size: .9375rem; line-height: 1.45; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.page .cta { margin-top: 24px; }
.blk { margin-top: 64px; }
.blk > h2 { font-size: clamp(22px, 4.4vw, 30px); margin-bottom: 16px; }
.prose { max-width: 40em; color: var(--ink-2); display: grid; gap: 12px; }
.prose b, .prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose h3 { color: var(--ink); margin-top: 16px; font-size: 1.0625rem; }
.blk .dash { max-width: 40em; }
.blk .dash b { color: var(--ink); }
.blk .dash .tlink, .blk details .tlink { display: inline; min-height: 0; padding-block: 10px; }
.blk .rules { margin-bottom: 0; }
.blk .log { gap: 20px; }
.blk .log li p { color: var(--ink-2); }
.blk details { max-width: 40em; }
.blk details + details { margin-top: 0; }
.blk details p { color: var(--ink-2); padding-bottom: 16px; }

/* 실제 화면 사진 — 폰은 가로 넘김, 넓으면 3단 */
.shots { margin-top: 32px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 8px; }
.shots figure { flex: 0 0 68%; max-width: 280px; scroll-snap-align: start; min-width: 0; }
.shots img { width: 100%; height: auto; aspect-ratio: 540 / 1170; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.shots figcaption { margin-top: 8px; font-size: .8125rem; line-height: 1.55; color: var(--ink-2); }
.shots figcaption .chip { margin-top: 6px; }
@media (min-width: 768px) {
  .shots { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 32px 0 0; padding: 0; gap: 24px; max-width: 900px; }
  .shots figure { max-width: none; }
}
.note { margin-top: 12px; font-size: .8125rem; color: var(--ink-3); max-width: 40em; }

/* 게임 목록 페이지 · 다른 게임 */
.glist { display: grid; gap: 16px; margin-top: 32px; max-width: 760px; }
.glist li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px; }
.glist img { width: 96px; height: auto; aspect-ratio: 540 / 1170; border-radius: 12px; border: 1px solid var(--line); }
.glist h2, .glist h3 { font-size: 1.1875rem; }
.glist h2 a, .glist h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.glist p { margin-top: 4px; color: var(--ink-2); font-size: .9375rem; }
.glist .game-go { margin-top: 8px; }
@media (min-width: 768px) { .glist li { grid-template-columns: 140px 1fr; padding: 20px; } .glist img { width: 140px; } }

/* 움직임 줄이기: 모든 연출 생략 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .map .trace path { stroke-dashoffset: 0; }
}

/* 인쇄: 흰 바탕, 영상·지도·막대 숨김, 링크 주소 표시 */
@media print {
  :root { --ink: #000; --ink-2: #222; --ink-3: #444; --cel: #000; --lamp: #000; --bg: #fff; --surface: #fff; --surface-2: #f2f2f2; --lamp-wash: #f2f2f2; }
  body { background: #fff; color: #000; }
  .bar, .skip, .map-fig, .media, .device, .gallery, .strip, .tabs, .cta, .vplay, .vbtn, .shots { display: none !important; }
  [role="tabpanel"][hidden] { display: block !important; }
  details > .more { display: grid; }
  .card, .trio li { border-color: #999; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
  .sec { padding: 24px 0; break-inside: avoid-page; }
}
