/* 《전선의 계절》 소개 페이지 — 게임과 같은 색(어두운 바탕·양피지·금색). 외부 글꼴 없음 */
:root {
  --bg: #14161a; --panel: #1d2026; --line: #343a43; --ink: #efe4c8; --muted: #a9a08b;
  --gold: #f2c14e; --teal: #1d7a74; --teal2: #8fd3cb; --red: #c8553d;
  --radius: 14px; --max: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 system-ui, -apple-system, 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Hiragino Sans', 'Microsoft YaHei', sans-serif; }
a { color: var(--teal2); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.3; }
h1 { font-size: clamp(28px, 5vw, 44px); margin: 8px 0 12px; }
h2 { color: var(--gold); font-size: clamp(22px, 3.2vw, 28px); margin: 48px 0 14px; }
h3 { font-size: 19px; margin: 18px 0 6px; }
.muted { color: var(--muted); font-size: 15px; }
main { max-width: var(--max); margin: 0 auto; padding: 0 16px 48px; }
.lead { font-size: 19px; color: #e6dcc2; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: rgba(20, 22, 26, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 14px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 15px; padding: 6px 2px; }
.nav a[aria-current] , .nav a:hover { color: var(--gold); }
.lang-hint { max-width: var(--max); margin: 10px auto 0; padding: 8px 16px; font-size: 15px; }
.lang-hint a { font-weight: 700; }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 22px; border-radius: 12px; border: 0; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.btn.play { background: var(--teal); color: #fff; box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.55); }
.btn.play:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 15px; white-space: nowrap; }

/* 첫 화면 */
.hero { position: relative; width: 100vw; margin: 0 calc(50% - 50vw); min-height: min(78vh, 640px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 22, 26, 0.05) 20%, rgba(20, 22, 26, 0.92) 78%, var(--bg)); }
.hero-in { position: relative; z-index: 1; padding: 32px 16px 28px; width: 100%; max-width: var(--max); margin: 0 auto; }
.hero-in > * { max-width: 760px; }
.kicker { letter-spacing: 0.32em; color: var(--gold); font-weight: 800; margin: 0; }
.hero .lead { font-size: clamp(18px, 2.6vw, 22px); font-weight: 700; margin: 0 0 6px; }
.hero .short { margin: 0 0 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.ios-hint { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }

/* 누적 숫자 */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 0; text-align: center; }
.stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 8px; display: flex; flex-direction: column; }
.stats .num { font-size: clamp(26px, 5vw, 38px); font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.stats p { grid-column: 1 / -1; margin: 0; }

/* 목록·카드 */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.shots img { border-radius: 10px; border: 1px solid var(--line); display: block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 14px; overflow: hidden; color: var(--ink); text-decoration: none; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card > :not(img) { padding: 0 14px; }
.card:hover { border-color: var(--gold); }
.tag { color: var(--gold); font-size: 14px; font-weight: 700; }
ul.ticks { padding-left: 20px; }
ul.ticks li { margin: 6px 0; }
.about h3 { color: var(--gold); }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 700; }
.cta { text-align: center; margin: 56px 0 8px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.crumbs a { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 18px; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.facts dt { color: var(--gold); font-size: 14px; font-weight: 700; }
.facts dd { margin: 0; }
img.wide { display: block; width: auto; max-height: 560px; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--line); }
.story { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 18px; align-items: start; margin: 18px 0; }
.story img { border-radius: 10px; }
.story h3 { margin-top: 0; color: var(--gold); }
.story p { margin: 0 0 10px; }
.rules li { list-style: none; margin: 8px 0; }
.rules { padding: 0; }
.ico { display: inline-block; width: 1.6em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips > * { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 15px; }
.pn { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 40px 0 0; }
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.entry { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.entry h3 { margin: 0 0 4px; }
.entry p { margin: 0 0 6px; font-size: 16px; }
.thumb { width: 84px; height: 84px; object-fit: contain; flex: none; }
.thumb.round { border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gcard { background: #f3e7c9; color: #2b2420; border-radius: var(--radius); padding: 14px; border: 5px solid var(--teal); text-align: center; }
.gcard .thumb { margin: 0 auto; }
.gcard h3 { margin: 6px 0; }
.gcard .tag { color: #8a5a00; }
.medals { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.medals li { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.medals li div { display: flex; flex-direction: column; }
.medals li span { color: var(--muted); font-size: 15px; }
.medal { width: 40px; height: 40px; flex: none; }
.hidden-medal .medal { filter: grayscale(1) brightness(0.6); }
.qa h2 { font-size: 21px; margin-top: 32px; }
.nf { text-align: center; padding-top: 12vh; }
.nf .chips { justify-content: center; }

/* 바닥 */
.foot { border-top: 1px solid var(--line); padding: 24px 16px 40px; text-align: center; color: var(--muted); font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin-bottom: 12px; }
.langs { display: inline-block; text-align: left; max-width: 100%; }
.langs nav { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 8px; }
.langs a[aria-current] { color: var(--gold); font-weight: 700; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .story { grid-template-columns: 1fr; }
  .top .brand { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn.play { transition: filter 0.15s; }
}
.gcard .tag { display: block; }
