/* 크랙 IP 소개 사이트 공통 틀 — 시안 D (게임 UI · 캐릭터 선택)
   기본 = 모바일 버전 (휴대폰 · 세로 태블릿 · 세로 모니터) → 600 · 1000px 단계
   PC 버전 = 가로 화면이면서 폭 1024px 이상 → 1280 · 1920px 단계
   IP마다 바뀌는 것: --key · --key-deep · --warn (data.js theme), 제목 글꼴, 입장 문서 */
:root {
  --bg: #06090E; --panel: #0B121B; --panel2: #0F1822; --hover: #111B27;
  --line: #1E2836; --line2: #2B3A4C;
  --tx: #D8DEE6; --hi: #F2F5F8; --mut: #A3AFBD;
  --key: #A8D8FF; --key-deep: #5FA8E6; --warn: #FF9B85;
  --bar-h: 56px;
  --f-body: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
  --f-head: 'Do Hyeon', var(--f-body);
  --f-title: 'Hahmlet', serif;
  --f-mono: 'Nanum Gothic Coding', ui-monospace, monospace;
  --f-en: 'Chakra Petch', var(--f-body);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 15.5px/1.7 var(--f-body); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--hi); }
:focus-visible { outline: 2px solid var(--key); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.mono { font-family: var(--f-mono); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 8px 14px; background: var(--key); color: var(--bg); font-weight: 700; }
.skip:focus { top: 12px; }
.noscript { padding: 40px 16px; text-align: center; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.cut { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.cut-s { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.chip { display: inline-flex; align-items: center; padding: 1px 8px; border: 1px solid var(--line2); color: var(--mut); font-size: 12.5px; line-height: 1.6; white-space: nowrap; }

/* 단추 */
.btn-key, .btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; }
.btn-key { background: var(--key); color: var(--bg); }
.btn-key:hover { filter: brightness(1.08); }
.btn-key:active { transform: translateY(1px); }
.btn-line { background: var(--panel2); color: var(--hi); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--key); color: var(--key); }
.btn-s { min-height: 36px; padding: 0 14px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--mut); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--key); }

/* 위 막대 */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h); background: rgba(6, 9, 14, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hi); flex: none; }
.brand-m { width: 14px; height: 14px; transform: rotate(45deg); border: 2px solid var(--key); box-shadow: 0 0 12px var(--key); }
.brand-t { display: none; font-family: var(--f-head); font-size: 18px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.navlink { display: inline-flex; align-items: baseline; gap: 4px; padding: 8px 8px; color: var(--mut); text-decoration: none; font-size: 14px; white-space: nowrap; }
.navlink:hover, .navlink[aria-current] { color: var(--key); }
.nav-no { font-size: 11px; opacity: .6; }
.bar .btn-key { display: none; }
.bgm { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; background: transparent; border: 1px solid var(--line2); color: var(--mut); font-size: 13px; flex: none; }
.bgm[aria-pressed="true"] { color: var(--key); border-color: var(--key); }
.bgm-t { display: none; }

/* 히어로 — 모바일: 표지를 배경으로 */
.hero { position: relative; padding-top: var(--bar-h); }
.hero { --cov-h: min(112vw, 64svh); }
.hero-bg { position: absolute; inset: var(--bar-h) 0 auto; height: var(--cov-h); overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero-scrim { position: absolute; inset: var(--bar-h) 0 auto; height: var(--cov-h); background: linear-gradient(180deg, rgba(6, 9, 14, .25) 0%, rgba(6, 9, 14, 0) 22%, rgba(6, 9, 14, 0) 46%, rgba(6, 9, 14, .88) 82%, var(--bg) 100%); }
.hero-in { position: relative; z-index: 2; display: grid; gap: 28px; padding-top: calc(var(--cov-h) - 110px); padding-bottom: 28px; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--key); }
.eyebrow .en { font-family: var(--f-en); letter-spacing: .18em; color: var(--mut); }
.ttl { margin-top: 12px; font-family: var(--f-title); font-weight: 900; font-size: clamp(30px, 10.2vw, 44px); line-height: 1.12; color: var(--hi); letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.ttl-l { display: block; }
.ttl-l + .ttl-l { padding-left: .7em; }
.ttl em { position: relative; font-style: normal; font-size: 1.3em; background: linear-gradient(180deg, #fff 8%, var(--key) 58%, var(--key-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ttl em::after { content: '✦'; position: absolute; top: -.1em; right: -.42em; font-size: .32em; color: var(--key); -webkit-text-fill-color: var(--key); text-shadow: 0 0 10px var(--key); }
.en-sub { margin-top: 10px; font-family: var(--f-en); font-size: 11.5px; letter-spacing: .24em; color: var(--mut); }
.logline { margin-top: 18px; font-family: var(--f-head); font-size: 24px; line-height: 1.35; color: var(--hi); }
.lead { margin-top: 10px; color: var(--mut); max-width: 34em; }
.hero-cta { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 22px; }
@media (min-width: 420px) { .hero-cta { grid-template-columns: 1fr 1fr; } }
.hero-cover { display: none; }

.status { position: relative; background: rgba(11, 18, 27, .94); padding: 16px 18px 14px; border-top: 2px solid var(--warn); }
.status-h { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--warn); }
.status-h span + span { color: var(--mut); }
.status-big { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.status-n { font-family: var(--f-en); font-weight: 600; font-size: 56px; line-height: 1; color: var(--warn); letter-spacing: .02em; }
.status-l { color: var(--mut); font-size: 14px; }
.status-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line2); }
.status-rows div { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.status-rows dt { color: var(--mut); }
.status-rows dd { color: var(--hi); font-weight: 600; white-space: nowrap; }
.status-warn { margin-top: 12px; font-size: 13px; color: var(--warn); }
.blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.tiles4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 8px; }
.tiles4 li { background: var(--panel); padding: 14px 14px 12px; display: grid; gap: 2px; }
.t-v { font-family: var(--f-en); font-weight: 600; font-size: 34px; line-height: 1.1; color: var(--hi); }
.t-v small { font-family: var(--f-body); font-size: 15px; font-weight: 600; margin-left: 3px; color: var(--mut); }
.t-l { font-size: 13px; color: var(--mut); }

/* 섹션 공통 */
.sec { position: relative; padding: 72px 0; scroll-margin-top: var(--bar-h); }
.sec-s { padding: 56px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sh { margin-bottom: 28px; }
.lab { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; }
.lab-k { color: var(--key); }
.lab-en { font-family: var(--f-en); letter-spacing: .22em; color: var(--mut); }
.h2 { margin-top: 10px; font-family: var(--f-head); font-weight: 400; font-size: 34px; line-height: 1.2; color: var(--hi); }
.h2-s { font-size: 26px; }
.h3 { display: flex; align-items: center; gap: 10px; margin: 40px 0 14px; font-family: var(--f-head); font-weight: 400; font-size: 22px; color: var(--hi); }
.h3::before { content: ''; width: 18px; height: 2px; background: var(--key); }
.h3 small { font-family: var(--f-body); font-size: 13px; color: var(--mut); }
.sys-r .h3:first-child, .guide .h3:first-child { margin-top: 0; }
.no { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 20px; padding: 0 6px; margin-right: 8px; background: var(--key); color: var(--bg); font-size: 11.5px; font-weight: 700; }

/* 01 세계 */
.brief { display: grid; gap: 12px; }
.card { background: var(--panel); padding: 18px 18px 20px; }
.card-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--mut); }
.card-t { margin-top: 12px; font-size: 16px; line-height: 1.8; color: var(--tx); }
.is-redacted { background: repeating-linear-gradient(135deg, var(--panel) 0 14px, #0D151F 14px 28px); }
.lock { margin-left: auto; padding: 1px 8px; border: 1px solid var(--warn); color: var(--warn); font-size: 11.5px; }
.redact { color: var(--mut); letter-spacing: -.12em; margin: 0 .2em; opacity: .9; user-select: none; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.mini div { background: var(--panel2); padding: 8px 10px; }
.mini dt { font-size: 12px; color: var(--mut); }
.mini dd { font-family: var(--f-en); font-weight: 600; font-size: 22px; color: var(--hi); }
.factions { display: grid; gap: 10px; }
.fac { background: var(--panel); padding: 16px 18px 18px; border-left: 3px solid var(--key); }
.fac:nth-child(2) { border-left-color: var(--mut); }
.fac:nth-child(3) { border-left-color: var(--warn); }
.fac-en { font-family: var(--f-en); font-size: 11px; letter-spacing: .22em; color: var(--mut); }
.fac-n { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-family: var(--f-head); font-size: 24px; color: var(--hi); }
.fac-t { margin-top: 8px; color: var(--tx); }
.places { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; }
.place { scroll-snap-align: start; background: var(--panel); }
.place img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.place figcaption { display: grid; gap: 4px; padding: 12px 14px 14px; }
.place b { font-family: var(--f-head); font-weight: 400; font-size: 19px; color: var(--hi); }
.place span { font-size: 14px; color: var(--mut); }
.terms { display: grid; gap: 8px; }
.terms div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 700; color: var(--key); }
.terms dd { color: var(--tx); font-size: 15px; }

/* 02 인물 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.fchip { min-height: 36px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line2); color: var(--mut); font-size: 14px; }
.fchip[aria-pressed="true"] { background: var(--key); border-color: var(--key); color: var(--bg); font-weight: 700; }
.stage { display: grid; gap: 12px; }
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { display: grid; gap: 2px; padding: 4px 4px 8px; background: var(--panel); border: 0; text-align: left; transition: background-color .15s ease; }
.tile:hover { background: var(--hover); }
.tile[aria-pressed="true"] { background: var(--hover); box-shadow: inset 0 -3px 0 var(--key); }
.tile-img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--panel2); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; transform: scale(1.5); transform-origin: 50% 0; }
.tile-no { padding: 4px 4px 0; font-size: 10.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-n { padding: 0 4px; font-family: var(--f-head); font-size: 17px; color: var(--hi); }
.tile[aria-pressed="true"] .tile-n { color: var(--key); }
.detail { position: relative; display: grid; background: var(--panel); padding: 12px; }
.d-fig { position: relative; background: var(--panel2); aspect-ratio: 9 / 7; overflow: hidden; }
.d-fig::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(168, 216, 255, .22); pointer-events: none; }
.d-fig img { width: 100%; height: 100%; object-fit: cover; }
.d-info { padding: 18px 6px 8px; }
.d-no { font-size: 12.5px; color: var(--key); }
.d-n { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-family: var(--f-head); font-size: 46px; line-height: 1.1; color: var(--hi); }
.d-en { font-size: 12px; letter-spacing: .2em; color: var(--mut); }
.d-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.d-dl div { background: var(--panel2); padding: 8px 12px; }
.d-dl dt { font-size: 12px; color: var(--mut); }
.d-dl dd { color: var(--hi); font-weight: 600; }
.d-look { margin-top: 12px; font-size: 13px; color: var(--mut); }
.d-tr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.d-line { margin-top: 14px; font-size: 16px; line-height: 1.8; }
.d-q { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--key); background: rgba(168, 216, 255, .06); font-size: 17px; color: var(--hi); }
.faces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.face { min-height: 34px; padding: 0 12px; background: transparent; border: 1px solid var(--line2); color: var(--mut); font-size: 13.5px; }
.face:hover { border-color: var(--key); color: var(--key); }
.face[aria-pressed="true"] { background: var(--key); border-color: var(--key); color: var(--bg); font-weight: 700; }
.hint { margin-top: 12px; font-size: 12.5px; color: var(--mut); }

/* 03 장부 */
.sys { display: grid; gap: 28px; }
.rules { display: grid; gap: 8px; }
.rules li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; background: var(--panel); padding: 14px 16px; }
.rules .no { grid-row: span 2; margin: 2px 0 0; }
.rules b { color: var(--hi); font-size: 16.5px; }
.rules span:last-child { color: var(--mut); font-size: 14.5px; }
.judge { display: grid; gap: 6px; }
.j { display: grid; grid-template-columns: 4.2em 1fr; gap: 2px 12px; padding: 10px 14px; background: var(--panel); border-left: 3px solid var(--line2); }
.j b { grid-row: span 2; font-family: var(--f-head); font-weight: 400; font-size: 19px; align-self: center; }
.j span { font-size: 14.5px; }
.j em { font-style: normal; font-size: 13.5px; color: var(--mut); }
.j0 { border-left-color: var(--key); } .j0 b { color: var(--key); }
.j1 b { color: var(--hi); }
.j2 { border-left-color: #E8C27A; } .j2 b { color: #E8C27A; }
.j3 { border-left-color: var(--warn); } .j3 b { color: var(--warn); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats div { background: var(--panel); padding: 12px 14px; }
.stats dt { font-size: 13px; color: var(--mut); }
.stats .v { font-family: var(--f-en); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--hi); }
.stats .d { margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--mut); }
.bands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-top: 10px; }
.bands span { display: grid; padding: 6px 4px; text-align: center; background: var(--panel); color: var(--hi); font-size: 14px; }
.bands span:nth-child(1) { opacity: .55; } .bands span:nth-child(2) { opacity: .7; } .bands span:nth-child(3) { opacity: .82; }
.bands span:last-child { background: var(--key); color: var(--bg); }
.bands small { font-size: 10.5px; color: inherit; opacity: .8; }
.hud { background: var(--panel); padding: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 12px; }
.seg button { min-height: 38px; background: var(--panel2); border: 1px solid var(--line2); color: var(--mut); font-size: 14px; }
.seg button[aria-selected="true"] { border-color: var(--key); color: var(--key); }
.hud-game { display: grid; gap: 10px; justify-items: center; padding: 14px 10px; background: #0A0F15; }
.hud-game img { width: 100%; max-width: 420px; height: auto; }
.spk { width: 100%; max-width: 420px; }
.spk img { width: 64%; max-width: 260px; margin: 0 auto 8px; }
.spk-l { color: var(--hi); font-size: 15px; }
.spk-n { margin-top: 4px; color: var(--mut); font-style: italic; font-size: 14.5px; }
.hud-raw { margin: 0; padding: 14px; background: #0A0F15; color: var(--tx); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; max-height: 420px; overflow: auto; }
.hud-cap { margin-top: 10px; font-size: 12px; color: var(--mut); text-align: center; }
.guide { margin-top: 12px; background: var(--panel); padding: 18px; }
.cmds { display: grid; gap: 6px; }
.cmds li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kbd { padding: 4px 10px; background: var(--panel2); border: 1px solid var(--line2); color: var(--key); font-size: 14px; white-space: nowrap; }
.cmds span { font-size: 14.5px; }
.copy { min-height: 34px; padding: 0 12px; background: transparent; border: 1px solid var(--line2); color: var(--mut); font-size: 13px; }
.copy:hover { border-color: var(--key); color: var(--key); }
.tips { display: grid; gap: 8px; }
.tips li { position: relative; padding-left: 18px; font-size: 14.5px; }
.tips li::before { content: '▸'; position: absolute; left: 0; color: var(--key); }

/* 04 기록 */
.gal-n { margin-top: -12px; margin-bottom: 20px; color: var(--mut); font-size: 14px; }
.gal-n b { font-family: var(--f-en); font-size: 22px; color: var(--key); margin-right: 2px; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shot { position: relative; padding: 0; border: 0; background: var(--panel); }
.shot img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.03); }
.shot span { position: absolute; inset: auto 0 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(6, 9, 14, .9)); font-size: 12px; color: var(--hi); text-align: left; }

/* 05 업데이트 */
.notes { display: grid; }
.notes li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notes time { font-size: 13px; color: var(--mut); }
.ver { padding: 1px 8px; background: var(--key); color: var(--bg); font-size: 12px; font-weight: 700; }
.nt { flex-basis: 100%; color: var(--tx); }

/* 마무리 */
.foot { padding: 56px 0 96px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg)); }
.foot-in { display: grid; gap: 24px; }
.foot-t { margin-top: 8px; font-family: var(--f-title); font-weight: 900; font-size: 30px; line-height: 1.2; color: var(--hi); }
.foot-l { margin-top: 6px; color: var(--mut); }
.foot-r { display: grid; gap: 10px; justify-items: start; }
.foot-r .btn-key { width: 100%; }
.credit { font-size: 12.5px; color: var(--mut); }

/* 알림 */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 20px); padding: 10px 16px; background: var(--hi); color: var(--bg); font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 크게 보기 */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; background: rgba(3, 5, 8, .95); }
.lb figure { display: grid; justify-items: center; gap: 10px; }
.lb img { max-height: 84svh; max-width: 100%; object-fit: contain; }
.lb figcaption { font-size: 13px; color: var(--mut); }
.lb button { background: transparent; border: 0; color: var(--hi); font-size: 34px; min-height: 48px; }
.lb .lb-x { position: absolute; top: 8px; right: 8px; font-size: 22px; width: 48px; }

/* 입장 화면 — 세계 안의 문서 */
.gate { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 20px 16px; overflow-y: auto; background: radial-gradient(80% 60% at 50% 30%, rgba(168, 216, 255, .1), transparent 70%), rgba(4, 6, 10, .97); transition: opacity .45s ease; }
.gate.out { opacity: 0; pointer-events: none; }
.gate-doc { position: relative; width: 100%; max-width: 560px; padding: 26px 22px 22px; background: #0C131C; border-top: 3px solid var(--key); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.gate-org { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12px; color: var(--key); }
.gate-org span + span { color: var(--mut); }
.gate-t { margin-top: 14px; font-family: var(--f-title); font-weight: 900; font-size: 28px; line-height: 1.25; color: var(--hi); }
.gate-dl { margin-top: 18px; border-top: 1px solid var(--line2); }
.gate-dl div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line2); font-size: 14.5px; }
.gate-dl dt { color: var(--mut); }
.gate-dl dd { color: var(--hi); }
.gate-q { margin-top: 18px; color: var(--tx); }
.gate-sign { display: flex; align-items: flex-end; gap: 12px; margin-top: 18px; font-size: 12px; color: var(--mut); }
.gate-line { flex: 1; height: 1px; background: var(--line2); }
.gate-go { width: 100%; margin-top: 20px; min-height: 54px; font-size: 17px; }
.gate-note { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--mut); }
.stamp { position: absolute; right: 22px; bottom: 120px; padding: 6px 14px; border: 3px solid var(--warn); color: var(--warn); font-family: var(--f-head); font-size: 32px; background: rgba(255, 155, 133, .1); text-shadow: 0 0 14px rgba(255, 155, 133, .45); transform: rotate(-12deg) scale(1.8); opacity: 0; transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), opacity .2s; pointer-events: none; }
.signed .stamp { opacity: .92; transform: rotate(-12deg) scale(1); }

/* 제작자 캡처 */
.cap { position: absolute; top: calc(var(--bar-h) + 8px); right: 8px; z-index: 20; padding: 4px 10px; background: #F4F5F7; color: var(--bg); border: 0; font-size: 12px; font-weight: 700; }
.sec > .cap, .detail > .cap { top: 8px; }
.cap:hover { background: #fff; }

/* 모바일 단계 */
@media (min-width: 600px) {
  .wrap { max-width: 920px; padding: 0 32px; }
  .places { margin: 0 -32px; padding-left: 32px; padding-right: 32px; grid-auto-columns: 46%; }
  .ttl { font-size: clamp(58px, 9vw, 80px); }
  .logline { font-size: 28px; }
  .hero-cta { display: flex; }
  .tiles4 { grid-template-columns: repeat(4, 1fr); }
  .h2 { font-size: 42px; }
  .terms { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .d-dl { grid-template-columns: repeat(4, 1fr); }
  .gate-doc { padding: 32px 34px 26px; }
  .gate-t { font-size: 34px; }
  .brand-t { display: inline; }
  .bar .btn-key { display: inline-flex; }
}
@media (min-width: 1000px) {
  .brief { grid-template-columns: 1fr 1fr; }
  .factions { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
}

/* PC 버전 — 가로 화면 · 폭 1024px 이상 */
@media (orientation: landscape) and (min-width: 1024px) {
  :root { --bar-h: 64px; }
  body { font-size: 16px; }
  .wrap { max-width: 1760px; padding: 0 32px; }
  .brand-t { display: inline; }
  .bar .btn-key { display: inline-flex; }
  .bgm-t { display: inline; }
  .nav { flex: none; margin-left: auto; overflow: visible; gap: 6px; }
  .navlink { font-size: 15px; padding: 8px 10px; }
  .bar-in { gap: 16px; }

  .hero { min-height: max(680px, min(100vh, 62vw)); display: flex; flex-direction: column; background: radial-gradient(60% 70% at 78% 40%, rgba(168, 216, 255, .09), transparent 70%); }
  .hero-bg, .hero-scrim { display: none; }
  .hero-in { flex: 1; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main cover" "status cover"; align-content: center; column-gap: 56px; row-gap: 26px; padding-top: 36px; padding-bottom: 28px; }
  .hero-main { grid-area: main; align-self: end; }
  .hero-side { display: contents; }
  .ttl { font-size: clamp(58px, 4.7vw, 116px); text-shadow: none; }
  .en-sub { font-size: 13px; }
  .logline { font-size: clamp(26px, 1.8vw, 36px); }
  .lead { font-size: 17px; }
  .hero-cta { display: flex; gap: 10px; margin-top: 28px; }
  .hero-cover { grid-area: cover; align-self: center; display: block; position: relative; width: calc((max(680px, min(100vh, 62vw)) - 230px) * .6667); aspect-ratio: 2 / 3; background: var(--panel); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
  .hero-cover::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(168, 216, 255, .25); }
  .hero-cover img { width: 100%; height: 100%; object-fit: cover; }
  .status { grid-area: status; align-self: start; max-width: 660px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; padding: 16px 22px 14px; }
  .status-h, .status-warn { grid-column: 1 / -1; }
  .status-big { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 10px; }
  .status-rows { margin-top: 10px; padding: 0 0 0 24px; border-top: 0; border-left: 1px dashed var(--line2); align-content: center; }
  .status-n { font-size: 60px; }
  .tiles4 { gap: 12px; padding-bottom: 24px; }
  .tiles4 li { padding: 16px 20px 14px; }
  .t-v { font-size: 40px; }

  .sec { padding: clamp(80px, 6vw, 128px) 0; }
  .h2 { font-size: clamp(42px, 2.4vw + 1rem, 72px); }
  .sh { margin-bottom: 36px; }
  .brief { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card { padding: 22px 24px 24px; }
  .card-t { font-size: 17px; }
  .factions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .places { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 12px; }
  .terms { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }

  .stage { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .stage .detail { order: 1; }
  .stage .roster { order: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .detail { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); padding: clamp(16px, 1.6vw, 28px); }
  .d-info { padding: 12px 0; align-self: center; }
  .d-n { font-size: clamp(56px, 4.4vw, 104px); }
  .d-dl { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 720px; }
  .d-line { font-size: 18px; max-width: 40em; }
  .d-q { font-size: 20px; max-width: 36em; }
  .tile { grid-template-columns: 84px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; padding: 6px; align-items: center; }
  .tile-img { grid-row: span 2; }
  .tile-no { padding: 0; align-self: end; }
  .tile-n { padding: 0; align-self: start; font-size: 22px; }

  .sys { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide { padding: 22px 24px; }

  .gal-wrap { display: grid; grid-template-columns: clamp(260px, 20vw, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
  .gal-head { position: sticky; top: calc(var(--bar-h) + 24px); }
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

  .notes li { flex-wrap: nowrap; }
  .nt { flex-basis: auto; }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(280px, 26rem); align-items: center; gap: 40px; }
  .foot-t { font-size: 44px; }
  .lb { grid-template-columns: 80px 1fr 80px; }
}
@media (orientation: landscape) and (min-width: 1280px) {
  .wrap { padding: 0 48px; }
  .hero-in { column-gap: 80px; }
  .tile { grid-template-columns: 96px 1fr; }
}
@media (orientation: landscape) and (min-width: 1920px) {
  html { font-size: 17px; }
  body { font-size: 17px; }
  .hero-in { column-gap: 96px; }
  .status { max-width: 720px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blink { animation: none; }
  .shot img, .tile, .gate, .stamp, .toast { transition: none; }
}
