/* The guide pages (generated by scripts/gen-pages.js). They load /style.css first for the game's
   colors, fonts, grade badges and the character figure, then this file for the page layout. */
html, body { height: auto; overflow: auto; }
body { background: radial-gradient(ellipse 80% 40% at 30% 0%, #2a1a12 0%, var(--bg) 60%) fixed var(--bg); line-height: 1.6; }
a { color: var(--accent2); }
a:hover { color: #ffd08a; }
img { max-width: 100%; }

/* Header: logo, sections, Play button. */
.site-head {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 24px;
  background: rgba(13,16,22,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-head .logo { font-size: 22px; margin: 0; text-decoration: none; color: var(--text); white-space: nowrap; }
.site-nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); background: var(--panel2); }
.play-cta {
  display: inline-block; padding: 9px 18px; border-radius: 6px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: #1a0e06; white-space: nowrap; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  background: linear-gradient(180deg, #ff9a5e 0%, var(--accent) 55%, #e8612a 100%);
}
.play-cta:hover { color: #1a0e06; filter: brightness(1.1); }
.play-cta.big { font-size: 20px; padding: 14px 34px; }

/* Page body. */
.page { max-width: 1120px; margin: 0 auto; padding: 22px 24px 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 26px 30px; margin-bottom: 26px; border-radius: 18px;
  background: radial-gradient(ellipse 60% 80% at 85% 60%, color-mix(in srgb, var(--c, var(--accent)) 22%, transparent), transparent 70%), linear-gradient(180deg, #151b27, #0d1118);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 30%, var(--line)); }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1; margin: 6px 0 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.hero .lead { font-size: 17px; color: #c9d1de; margin: 0; max-width: 680px; }
.hero .kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c, var(--accent2)); }
.hero-art { display: flex; align-items: flex-end; justify-content: center; min-width: 160px; }
.hero-art img.gun { width: 260px; image-rendering: pixelated; filter: drop-shadow(0 10px 12px rgba(0,0,0,0.5)); }
.hero-art img.suit { width: 170px; image-rendering: pixelated; filter: drop-shadow(0 10px 12px rgba(0,0,0,0.5)); }
.hero-art .map-svg { width: 380px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fact { padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,0.35); border: 1px solid var(--line); font-size: 13px; color: #c9d1de; }
.fact b { color: var(--text); }

.page h2 { font-size: 26px; margin: 34px 0 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.page h3 { font-size: 18px; margin: 22px 0 6px; color: var(--text); text-transform: none; letter-spacing: 0.01em; }
.page p, .page li { color: #c9d1de; }
.page p { margin: 0 0 12px; }
.page ul, .page ol { padding-left: 22px; margin: 0 0 14px; }
.page li { margin-bottom: 6px; }
.prose { max-width: 820px; }
.note { padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 10px 10px 0; color: #c9d1de; margin: 14px 0; }
kbd { min-width: 0; }

/* Cards and grids. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 12px 0 18px; }
.card-link {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, #161c28, #0f131b); border: 1px solid var(--line); transition: border-color 0.15s, transform 0.15s;
}
.card-link:hover { color: var(--text); border-color: var(--c, var(--accent)); transform: translateY(-2px); }
.card-link b { font-size: 18px; }
.card-link span { color: var(--muted); font-size: 14px; }
.card-link .art { height: 120px; display: flex; align-items: center; justify-content: center; }
.card-link .art img { max-height: 100px; image-rendering: pixelated; }
.card-link .art .map-svg { width: 100%; }
.card-link .art .doll-figure { transform: scale(0.42); transform-origin: center center; margin: -80px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); }

/* Tables. */
.table-wrap { overflow-x: auto; margin: 10px 0 18px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--panel); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; position: sticky; top: 0; }
td { color: #dbe2ec; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,0.025); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td a { font-weight: 600; }
.weak { color: var(--good); font-weight: 700; }
.resist { color: var(--bad); }
.thumb-cell img { height: 22px; vertical-align: middle; image-rendering: pixelated; margin-right: 8px; }

/* Abilities, stat rows, two-column layouts. */
.ability-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 10px 0 16px; }
.ability-card { padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--accent)); }
.ability-card b { display: block; font-size: 16px; }
.ability-card .cd { font-size: 12px; color: var(--muted); }
.ability-card p { margin: 6px 0 0; font-size: 14px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.panel-box { padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.panel-box h3 { margin-top: 0; }
.enemy-icon { width: 96px; height: 96px; }
.enemy-icon.small { width: 26px; height: 26px; vertical-align: middle; margin-right: 8px; }
.map-svg { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); }
.zone-list { counter-reset: zone; list-style: none; padding: 0; }
.zone-list > li { counter-increment: zone; position: relative; padding: 12px 14px 12px 52px; margin-bottom: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.zone-list > li::before {
  content: counter(zone); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel2); border: 2px solid #3a475e; font-weight: 700; font-size: 13px; color: var(--text);
}
.zone-list > li.boss::before { content: '☠'; border-color: var(--bad); color: var(--bad); }
.zone-list b { color: var(--text); }
.faq dt { font-weight: 700; color: var(--text); margin-top: 16px; font-size: 17px; }
.faq dd { margin: 4px 0 0; color: #c9d1de; }

/* Tier lists: a row per tier with a chip for each gun or class. */
.tier-row { display: grid; grid-template-columns: 64px 1fr; margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.tier-row .tier { display: grid; place-items: center; font-size: 32px; font-weight: 700; color: #10141b; background: var(--t); }
.tier-items { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; }
.tier-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; width: 118px; min-height: 92px; padding: 8px 6px;
  border-radius: 10px; text-decoration: none; color: var(--text); background: var(--panel2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; text-align: center; line-height: 1.25;
}
.tier-chip:hover { color: var(--text); border-color: var(--t); }
.tier-chip img { max-height: 40px; max-width: 100px; image-rendering: pixelated; }
.tier-fig { position: relative; width: 57px; height: 84px; }
.tier-fig .doll-figure { position: absolute; left: 0; top: 0; margin: 0; transform: scale(0.3); transform-origin: top left; }
.tier-badge { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 6px; font-weight: 700; color: #10141b; background: var(--t); }

/* Leaderboards. */
.lb-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.lb-jump a { padding: 5px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: #c9d1de; text-decoration: none; font-size: 13px; font-weight: 600; }
.lb-jump a:hover { color: var(--text); border-color: var(--accent); }
.lb-meta { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.table-wrap.lb { max-width: 760px; }
.lb .lb-top td:first-child { font-weight: 700; color: #10141b; }
.lb .lb-1 td:first-child { background: #ffd75c; }
.lb .lb-2 td:first-child { background: #c9d1de; }
.lb .lb-3 td:first-child { background: #e0a46a; }
.lb-class { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }

/* Patch notes, glossary, press kit. */
.update { padding: 4px 0 18px; border-bottom: 1px solid var(--line); max-width: 820px; }
.update time { display: block; color: var(--muted); font-size: 13px; margin: -4px 0 8px; }
.update .lead { font-size: 17px; color: var(--text); }
.glossary dt { scroll-margin-top: 80px; }
.glossary dd a { white-space: nowrap; }
.quote { font-size: 18px; color: var(--text) !important; border-left: 3px solid var(--accent); padding-left: 14px; }
.press-squad { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; }
.press-squad .doll-figure { margin: -40px -30px; transform: scale(0.62); }
.press-squad p { flex: 1 1 100%; }

/* Bottom call to action and footer. */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 40px 0 0; padding: 22px 26px; border-radius: 16px;
  background: radial-gradient(ellipse 50% 100% at 90% 50%, rgba(255,122,61,0.22), transparent 70%), var(--panel); border: 1px solid rgba(255,122,61,0.35);
}
.cta-band b { font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; }
.cta-band p { margin: 2px 0 0; color: var(--muted); }
.site-foot { border-top: 1px solid var(--line); background: var(--bg2); padding: 30px 24px; }
.foot-cols { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.foot-cols h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols li { margin: 4px 0; }
.foot-cols a { color: #c9d1de; text-decoration: none; font-size: 14px; }
.foot-cols a:hover { color: var(--text); }
.foot-note { max-width: 1120px; margin: 22px auto 0; color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .site-head { flex-wrap: wrap; padding: 10px 14px; gap: 8px 12px; }
  .site-nav { order: 3; flex: 1 1 100%; overflow-x: auto; flex-wrap: nowrap; }
  .site-head .play-cta { margin-left: auto; }
  .page { padding: 16px 16px 32px; }
  .hero { grid-template-columns: 1fr; padding: 20px; }
  .hero-art { justify-content: flex-start; }
  .hero-art .map-svg { width: 100%; }
  .split { grid-template-columns: 1fr; }
}
