/*
 * 栖云居《废土之后》战绩站
 * 颜色与主要文字从 config/app.php 注入；此文件只负责布局与视觉系统。
 */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
::selection { color: var(--ink); background: var(--signal); }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: #f3f1e7; }
.nav-wrap { height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.17); }
.brand { display: inline-flex; width: max-content; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: var(--ink); background: var(--signal); font-weight: 900; transform: rotate(-3deg); box-shadow: 3px 3px 0 rgba(0,0,0,.18); }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 16px; letter-spacing: .14em; }
.brand-copy small { margin-top: 4px; color: rgba(255,255,255,.43); font: 9px/1 monospace; letter-spacing: .16em; }
.site-nav { display: flex; align-items: center; gap: 30px; color: rgba(255,255,255,.67); font-size: 12px; }
.site-nav a { position: relative; padding: 11px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: var(--signal); transition: right .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: white; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.nav-action { justify-self: end; min-width: 136px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: center; transition: .2s ease; }
.nav-action:hover, .nav-action:focus-visible { color: var(--ink); border-color: var(--signal); background: var(--signal); }
.nav-toggle { display: none; width: 44px; height: 40px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 1px; margin: 6px auto; background: currentColor; }

.hero-section { position: relative; min-height: 930px; overflow: hidden; color: #f4f1e5; background: linear-gradient(90deg, rgba(9,12,9,.97) 0%, rgba(9,12,9,.86) 43%, rgba(9,12,9,.46) 100%), linear-gradient(0deg, rgba(9,12,9,.88), transparent 58%), var(--hero-image) center 43% / cover no-repeat; }
.hero-section::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 72% 43%, transparent 0 20%, rgba(6,8,6,.12) 46%, rgba(6,8,6,.72) 100%); }
.hero-noise { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .13; background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.16) 4px); mix-blend-mode: soft-light; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .58fr); gap: 80px; align-items: center; min-height: 884px; padding: 142px 0 92px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--signal); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.eyebrow i, .status-pill i, .freshness i { display: block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 15%, transparent); }
.chapter { margin: 32px 0 8px; color: rgba(255,255,255,.4); font: 10px/1 monospace; letter-spacing: .2em; }
.hero-copy h1 { margin: 0; max-width: 675px; font-size: clamp(92px, 10.8vw, 150px); font-weight: 950; line-height: .79; letter-spacing: -.095em; }
.hero-copy h1 span { display: block; margin-left: .38em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.72); }
.hero-lead { margin: 38px 0 11px; font-size: clamp(23px, 2.5vw, 34px); font-weight: 800; letter-spacing: -.045em; }
.hero-text { max-width: 680px; margin: 0; color: rgba(255,255,255,.61); font-size: 14px; line-height: 1.9; }
.player-search { max-width: 670px; margin-top: 31px; }
.player-search > label { display: block; margin-bottom: 9px; color: rgba(255,255,255,.4); font: 10px/1 monospace; letter-spacing: .15em; }
.search-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 58px; border: 1px solid rgba(255,255,255,.29); background: rgba(0,0,0,.27); backdrop-filter: blur(10px); }
.search-prefix { padding-left: 17px; color: var(--signal); font: 700 12px/1 monospace; }
.search-control input { min-width: 0; height: 56px; padding: 0 12px; color: white; outline: 0; border: 0; background: transparent; font-size: 14px; }
.search-control input::placeholder { color: rgba(255,255,255,.38); }
.search-control:focus-within { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(186,205,110,.1); }
.search-control button { align-self: stretch; min-width: 140px; padding: 0 18px; color: var(--ink); border: 0; background: var(--accent); font-size: 12px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.search-control button:hover, .search-control button:focus-visible { background: #ef7144; }
.hero-meta { display: flex; align-items: center; gap: 22px; margin-top: 18px; color: rgba(255,255,255,.4); font-size: 10px; letter-spacing: .1em; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; color: #d7b66f; }
.status-pill.is-live { color: var(--signal); }
.status-pill i { width: 6px; height: 6px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.quick-actions button, .quick-actions a { display: grid; min-width: 185px; padding: 11px 14px; color: #fff; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.25); text-align: left; cursor: pointer; }
.quick-actions small, .quick-actions span { color: rgba(255,255,255,.4); font-size: 8px; letter-spacing: .08em; }
.quick-actions strong { margin: 4px 0; font-size: 11px; }

.mission-card { position: relative; padding: 23px; color: var(--ink); background: rgba(220,218,205,.95); box-shadow: 0 30px 80px rgba(0,0,0,.43); transform: rotate(1deg); }
.mission-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(17,21,16,.18); pointer-events: none; }
.mission-top { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(17,21,16,.2); font: 10px/1 monospace; letter-spacing: .14em; }
.mission-top b { color: var(--accent-dark); }
.mission-name { padding: 27px 0 24px; }
.mission-name small { display: block; margin-bottom: 7px; color: rgba(17,21,16,.52); font-size: 10px; letter-spacing: .15em; }
.mission-name strong { font-size: 35px; letter-spacing: -.05em; }
.mission-facts { margin: 0; border-top: 1px solid rgba(17,21,16,.2); }
.mission-facts div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(17,21,16,.2); }
.mission-facts dt { color: rgba(17,21,16,.53); font-size: 11px; }
.mission-facts dd { margin: 0; font-size: 12px; font-weight: 800; }
.risk-row { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 10px; }
.risk-row > div { display: flex; gap: 4px; }
.risk-row i { display: block; width: 18px; height: 6px; background: var(--accent); transform: skewX(-20deg); }
.risk-row i.off { background: rgba(17,21,16,.14); }
.mission-alert { margin: 21px 0 4px; padding: 11px 12px; border-left: 3px solid var(--accent); background: rgba(223,91,46,.11); font-size: 11px; line-height: 1.6; }
.stamp { position: absolute; right: 18px; bottom: -27px; padding: 6px 10px; color: rgba(168,61,31,.57); border: 3px double rgba(168,61,31,.44); font: 900 10px/1.1 monospace; text-align: center; transform: rotate(-8deg); }
.ticker { position: absolute; z-index: 3; left: -2%; right: -2%; bottom: 0; display: flex; height: 47px; align-items: center; justify-content: space-around; gap: 20px; color: var(--ink); background: var(--signal); font: 800 10px/1 monospace; letter-spacing: .16em; transform: rotate(-.55deg); }
.ticker i { font-style: normal; font-size: 6px; }

.setup-banner { color: #fff3e6; background: var(--accent-dark); }
.setup-banner .shell { display: flex; gap: 18px; align-items: center; padding: 14px 0; font-size: 12px; }
.setup-banner strong { letter-spacing: .08em; }
.setup-banner span { color: rgba(255,255,255,.7); }
.stat-strip { border-bottom: 1px solid rgba(17,21,16,.18); background: var(--surface); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-grid > div { min-height: 150px; padding: 31px 25px; border-left: 1px solid rgba(17,21,16,.17); }
.stat-grid > div:last-child { border-right: 1px solid rgba(17,21,16,.17); }
.stat-grid small, .stat-grid span { display: block; }
.stat-grid small { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.stat-grid strong { display: block; margin: 13px 0 8px; font-size: 35px; letter-spacing: -.05em; }
.stat-grid strong.stat-time { font-size: 28px; }
.stat-grid span { color: var(--accent-dark); font: 9px/1 monospace; letter-spacing: .14em; }

.section { padding: 125px 0; }
.section-heading { display: grid; grid-template-columns: 1.15fr .7fr; gap: 78px; align-items: end; margin-bottom: 66px; }
.section-heading.compact { align-items: end; }
.section-heading h2, .intel-copy h2, .api-copy h2, .rules-grid h2 { margin: 0; font-size: clamp(46px, 5.7vw, 76px); line-height: .96; letter-spacing: -.075em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.kicker { margin: 0 0 20px; color: var(--accent-dark); font: 800 10px/1 monospace; letter-spacing: .17em; }
.kicker.light { color: var(--signal); }
.operation-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(17,21,16,.2); border-left: 1px solid rgba(17,21,16,.2); }
.operation-card { min-height: 350px; padding: 25px; border-right: 1px solid rgba(17,21,16,.2); border-bottom: 1px solid rgba(17,21,16,.2); }
.operation-card > span { color: var(--accent-dark); font: 10px/1 monospace; }
.geo-icon { display: grid; width: 76px; height: 76px; place-items: center; margin: 50px 0 32px; border: 1px solid rgba(17,21,16,.3); transform: rotate(45deg); }
.geo-icon i { display: block; width: 28px; height: 28px; border: 5px solid var(--accent); border-top-color: transparent; }
.icon-search i { border-radius: 50%; }
.icon-extract i { width: 33px; height: 21px; border-width: 2px; border-top-color: var(--accent); }
.operation-card h3 { margin: 0 0 12px; font-size: 27px; }
.operation-card p { max-width: 290px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.intel-section { position: relative; overflow: hidden; color: #f2f0e5; background: #151914; }
.intel-section::before { content: "GAMEPLAY"; position: absolute; right: -4vw; bottom: -4vw; color: rgba(255,255,255,.025); font-size: 20vw; font-weight: 950; line-height: .8; letter-spacing: -.1em; }
.intel-grid { position: relative; display: grid; grid-template-columns: 1fr .72fr; gap: 110px; align-items: center; }
.intel-copy > p:not(.kicker) { max-width: 620px; margin: 25px 0 0; color: rgba(255,255,255,.57); font-size: 14px; line-height: 1.95; }
.text-link { display: inline-flex; gap: 35px; align-items: center; margin-top: 32px; padding-bottom: 7px; color: var(--signal); border-bottom: 1px solid rgba(186,205,110,.4); font-size: 12px; font-weight: 800; }
.archive-card { position: relative; padding: 30px; color: var(--ink); background: #d1cbb8; transform: rotate(-1.3deg); box-shadow: 0 25px 65px rgba(0,0,0,.35); }
.archive-card::after { content: "READY"; position: absolute; right: 20px; bottom: 45px; padding: 7px; color: rgba(168,61,31,.38); border: 2px solid rgba(168,61,31,.3); font: 800 10px/1 monospace; transform: rotate(-7deg); }
.archive-head { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(17,21,16,.25); font: 10px/1 monospace; letter-spacing: .13em; }
.archive-head b { color: var(--accent-dark); }
.mechanic-list { display: grid; margin: 24px 0 28px; padding: 0; list-style: none; border-top: 1px solid rgba(17,21,16,.2); }
.mechanic-list li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(17,21,16,.2); }
.mechanic-list span { color: var(--accent-dark); font: 800 10px/1 monospace; letter-spacing: .08em; }
.mechanic-list strong { font-size: 13px; line-height: 1.45; }
.archive-card small { color: rgba(17,21,16,.53); font-size: 9px; }

.leaderboard-preview { background: var(--paper); }
.outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 48px; padding: 0 18px; border: 1px solid rgba(17,21,16,.35); font-size: 11px; font-weight: 800; letter-spacing: .04em; transition: .2s ease; }
.outline-button:hover, .outline-button:focus-visible { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.board-card { border: 1px solid rgba(17,21,16,.2); background: var(--surface); }
.board-head, .board-row { display: grid; grid-template-columns: 80px 1.2fr .75fr .8fr; align-items: center; }
.board-head { min-height: 42px; padding: 0 22px; color: var(--muted); border-bottom: 1px solid rgba(17,21,16,.2); font: 9px/1 monospace; letter-spacing: .1em; }
.board-row { min-height: 74px; padding: 0 22px; border-bottom: 1px solid rgba(17,21,16,.14); transition: background .18s ease, padding .18s ease; }
.board-row:last-child { border-bottom: 0; }
.board-row:hover, .board-row:focus-visible { padding-left: 29px; background: rgba(186,205,110,.2); }
.board-row > strong { color: var(--accent-dark); font: 800 15px/1 monospace; }
.board-row > span:not(.player-name) { color: var(--muted); font-size: 12px; }
.board-row > b { font-size: 14px; text-align: right; }
.player-name { display: flex; align-items: center; gap: 13px; font-size: 13px; font-weight: 800; }
.player-name i { display: grid; width: 32px; height: 32px; place-items: center; color: var(--paper); background: var(--ink); font-style: normal; font-size: 11px; }
.board-empty { padding: 50px 25px; color: var(--muted); text-align: center; font-size: 13px; }

.api-section { color: #f2f0e5; background: var(--accent-dark); }
.api-grid { display: grid; grid-template-columns: .8fr 1.15fr; gap: 100px; align-items: center; }
.api-copy > p:not(.kicker) { max-width: 540px; color: rgba(255,255,255,.64); font-size: 14px; line-height: 1.9; }
.api-points { display: grid; gap: 10px; margin: 26px 0 31px; padding: 0; list-style: none; color: rgba(255,255,255,.75); font-size: 12px; }
.api-points li::before { content: "＋"; margin-right: 10px; color: var(--signal); }
.signal-button { display: inline-flex; gap: 35px; align-items: center; min-height: 49px; padding: 0 19px; color: var(--ink); background: var(--signal); font-size: 11px; font-weight: 850; }
.terminal { overflow: hidden; border: 1px solid rgba(255,255,255,.21); background: #10130f; box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.terminal-bar { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 15px; border-bottom: 1px solid rgba(255,255,255,.12); }
.terminal-bar span { display: flex; gap: 6px; }
.terminal-bar i { display: block; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.28); }
.terminal-bar i:first-child { background: var(--accent); }
.terminal-bar b { color: rgba(255,255,255,.38); font: 9px/1 monospace; letter-spacing: .14em; }
.terminal-body { padding: 26px; }
.terminal-body small { display: block; margin: 22px 0 8px; color: rgba(255,255,255,.36); font: 9px/1 monospace; letter-spacing: .12em; }
.terminal-body small:first-child { margin-top: 0; }
.terminal code { display: block; padding: 12px 13px; color: var(--signal); border-left: 2px solid var(--accent); background: rgba(255,255,255,.04); font: 12px/1.5 monospace; white-space: nowrap; overflow-x: auto; }
.terminal pre { margin: 0; padding: 15px; color: #d9d8cd; background: rgba(255,255,255,.04); font: 11px/1.7 monospace; overflow-x: auto; }

.rules-section { background: var(--surface); }
.rules-grid { display: grid; grid-template-columns: .75fr 1.1fr; gap: 100px; align-items: start; }
.rules-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(17,21,16,.2); }
.rules-list li { display: grid; grid-template-columns: 55px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(17,21,16,.2); }
.rules-list li > span { color: var(--accent-dark); font: 10px/1 monospace; }
.rules-list strong { font-size: 14px; }
.rules-list p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }

.site-footer { padding: 75px 0 25px; color: rgba(255,255,255,.7); background: #0d100d; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; padding-bottom: 65px; }
.footer-brand { color: #fff; }
.footer-grid > div:first-child > p { max-width: 520px; margin: 22px 0 0; color: rgba(255,255,255,.38); font-size: 11px; line-height: 1.8; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; }
.footer-links div { display: grid; gap: 11px; align-content: start; }
.footer-links small { margin-bottom: 7px; color: var(--signal); font: 9px/1 monospace; letter-spacing: .14em; }
.footer-links a { font-size: 12px; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; color: rgba(255,255,255,.28); border-top: 1px solid rgba(255,255,255,.1); font: 9px/1 monospace; letter-spacing: .13em; }

/* Inner pages */
.inner-page { min-height: 70vh; background: var(--paper); }
.inner-hero { position: relative; padding: 155px 0 72px; color: #f1efe4; background: linear-gradient(90deg, rgba(8,11,8,.97), rgba(8,11,8,.72)), var(--hero-image) center 47% / cover; }
.inner-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(7,9,7,.55), transparent 60%); }
.inner-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .7fr; gap: 80px; align-items: end; }
.inner-title { margin: 0; font-size: clamp(55px, 8vw, 95px); line-height: .9; letter-spacing: -.08em; }
.inner-hero p:not(.kicker) { max-width: 650px; margin: 19px 0 0; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.8; }
.compact-search { display: grid; grid-template-columns: 1fr auto; border: 1px solid rgba(255,255,255,.27); background: rgba(0,0,0,.25); }
.compact-search input { min-width: 0; height: 52px; padding: 0 15px; color: white; outline: 0; border: 0; background: transparent; }
.compact-search input::placeholder { color: rgba(255,255,255,.35); }
.compact-search button { padding: 0 18px; color: var(--ink); border: 0; background: var(--signal); font-size: 11px; font-weight: 800; cursor: pointer; }
.record-section, .leaderboard-page { padding-top: 75px; }
.empty-state { padding: 90px 30px; border: 1px solid rgba(17,21,16,.2); background: var(--surface); text-align: center; }
.empty-state > span { color: var(--accent-dark); font: 10px/1 monospace; letter-spacing: .15em; }
.empty-state h2 { max-width: 700px; margin: 20px auto 12px; font-size: clamp(25px, 4vw, 42px); letter-spacing: -.04em; }
.empty-state p { margin: 0 auto 25px; color: var(--muted); font-size: 13px; }

.record-header { display: grid; grid-template-columns: 1fr auto auto; gap: 50px; align-items: center; padding: 28px; border: 1px solid rgba(17,21,16,.2); background: var(--surface); }
.record-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.avatar-letter { display: grid; flex: 0 0 auto; width: 72px; height: 72px; place-items: center; color: var(--paper); background: var(--ink); font-size: 24px; font-weight: 900; }
.record-identity small, .record-level small { color: var(--accent-dark); font: 9px/1 monospace; letter-spacing: .14em; }
.record-identity h2 { margin: 5px 0 4px; font-size: 31px; letter-spacing: -.04em; }
.record-identity code { color: var(--muted); font: 9px/1.4 monospace; word-break: break-all; }
.record-level { min-width: 105px; padding-left: 30px; border-left: 1px solid rgba(17,21,16,.17); }
.record-level strong, .record-level span { display: block; }
.record-level strong { margin: 7px 0 2px; font-size: 34px; }
.record-level span { color: var(--muted); font-size: 10px; }
.freshness { display: flex; align-items: center; gap: 13px; color: #73822d; }
.freshness span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.freshness strong { color: var(--ink); font-size: 11px; }
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-top: 1px solid rgba(17,21,16,.2); border-left: 1px solid rgba(17,21,16,.2); }
.rank-grid > div { min-height: 126px; padding: 23px; border-right: 1px solid rgba(17,21,16,.2); border-bottom: 1px solid rgba(17,21,16,.2); }
.rank-grid small, .rank-grid span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.rank-grid strong { display: block; margin: 10px 0 6px; color: var(--accent-dark); font-size: 29px; }
.record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.record-panel { padding: 28px; border: 1px solid rgba(17,21,16,.2); background: var(--surface); }
.record-panel header { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(17,21,16,.18); }
.record-panel header > span { color: var(--accent-dark); font: 10px/1 monospace; }
.record-panel h3 { margin: 0; font-size: 18px; }
.record-panel header small { color: var(--muted); font: 8px/1 monospace; letter-spacing: .13em; }
.big-stats { display: grid; grid-template-columns: 1fr 1fr; }
.big-stats > div { padding: 24px 0; border-bottom: 1px solid rgba(17,21,16,.15); }
.big-stats > div:nth-child(odd) { border-right: 1px solid rgba(17,21,16,.15); }
.big-stats > div:nth-child(even) { padding-left: 24px; }
.big-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
.big-stats small { display: block; color: var(--muted); font-size: 9px; }
.big-stats strong { display: block; margin-top: 8px; font-size: 29px; }
.detail-list { margin: 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(17,21,16,.15); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 11px; }
.detail-list dd { margin: 0; font-size: 13px; font-weight: 800; }
.facility-list { display: grid; gap: 12px; padding-top: 22px; }
.facility-list > div { display: flex; justify-content: space-between; align-items: center; padding: 18px; background: rgba(17,21,16,.045); }
.facility-list span { color: var(--muted); font-size: 11px; }
.facility-list strong { color: var(--accent-dark); font-size: 14px; }
.data-note { display: grid; grid-template-columns: auto 1fr auto; gap: 25px; align-items: center; margin-top: 18px; padding: 22px 25px; color: rgba(255,255,255,.62); background: var(--ink); }
.data-note strong { color: var(--signal); font-size: 12px; }
.data-note p { margin: 0; font-size: 10px; line-height: 1.7; }
.data-note a { color: white; font-size: 10px; white-space: nowrap; }

.metric-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 35px; }
.metric-tabs a { min-width: 95px; padding: 11px 15px; border: 1px solid rgba(17,21,16,.24); font-size: 11px; text-align: center; }
.metric-tabs a.active { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.leaderboard-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.leaderboard-title small { color: var(--accent-dark); font: 9px/1 monospace; letter-spacing: .13em; }
.leaderboard-title h2 { margin: 7px 0 0; font-size: 36px; letter-spacing: -.05em; }
.leaderboard-title p { margin: 0; color: var(--muted); font-size: 10px; }
.full-board { border: 1px solid rgba(17,21,16,.2); background: var(--surface); }
.full-board-head, .full-board-row { display: grid; grid-template-columns: 70px 1.3fr repeat(5, minmax(70px, .55fr)); align-items: center; column-gap: 10px; padding: 0 20px; }
.full-board-head { min-height: 42px; color: var(--muted); border-bottom: 1px solid rgba(17,21,16,.2); font: 9px/1 monospace; letter-spacing: .08em; }
.full-board-row { min-height: 70px; border-bottom: 1px solid rgba(17,21,16,.13); font-size: 11px; transition: .18s ease; }
.full-board-row:last-child { border-bottom: 0; }
.full-board-row:hover, .full-board-row:focus-visible { background: rgba(186,205,110,.19); }
.full-board-row > strong { color: var(--muted); font: 800 14px/1 monospace; }
.full-board-row.top-rank > strong { color: var(--accent-dark); font-size: 18px; }
.full-board-row > span:not(.player-name) { color: var(--muted); }
.full-board-row > b:last-child { text-align: right; font-size: 13px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 28px; color: var(--muted); font-size: 11px; }
.pagination a { color: var(--ink); font-weight: 800; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
    .nav-wrap { grid-template-columns: 1fr auto; }
    .site-nav { display: none; position: absolute; top: 72px; left: 20px; right: 20px; align-items: stretch; padding: 16px; color: #fff; background: #111510; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
    .site-nav.open { display: grid; }
    .nav-toggle { display: block; justify-self: end; }
    .nav-action { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 55px; padding-top: 145px; }
    .mission-card { max-width: 490px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-grid > div:nth-child(3) { border-top: 1px solid rgba(17,21,16,.17); }
    .stat-grid > div:nth-child(4) { border-top: 1px solid rgba(17,21,16,.17); }
    .section-heading, .intel-grid, .api-grid, .rules-grid { grid-template-columns: 1fr; gap: 45px; }
    .archive-card, .terminal { max-width: 680px; }
    .inner-hero-grid { grid-template-columns: 1fr; gap: 35px; }
    .record-header { grid-template-columns: 1fr auto; }
    .freshness { grid-column: 1 / -1; padding-top: 15px; border-top: 1px solid rgba(17,21,16,.15); }
    .full-board-head, .full-board-row { grid-template-columns: 60px 1.2fr repeat(5, minmax(55px, .55fr)); padding-inline: 14px; }
}

@media (max-width: 720px) {
    .shell { width: min(100% - 26px, 1180px); }
    .nav-wrap { height: 72px; }
    .brand-copy strong { font-size: 14px; }
    .hero-section { min-height: 980px; }
    .hero-grid { min-height: 930px; padding: 120px 0 105px; }
    .hero-copy h1 { font-size: clamp(80px, 27vw, 116px); }
    .hero-lead { margin-top: 32px; }
    .search-control { grid-template-columns: auto 1fr; }
    .search-control button { grid-column: 1 / -1; min-height: 48px; }
    .hero-meta { align-items: flex-start; flex-direction: column; gap: 10px; }
    .mission-card { max-width: calc(100% - 4px); }
    .ticker { width: 120%; left: -10%; justify-content: flex-start; padding-left: 20px; overflow: hidden; }
    .ticker span:nth-of-type(n+3), .ticker i:nth-of-type(n+3) { display: none; }
    .setup-banner .shell { align-items: flex-start; flex-direction: column; gap: 5px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-grid > div { min-height: 125px; padding: 24px 18px; }
    .stat-grid strong { font-size: 28px; }
    .stat-grid strong.stat-time { font-size: 21px; }
    .section { padding: 90px 0; }
    .section-heading h2, .intel-copy h2, .api-copy h2, .rules-grid h2 { font-size: clamp(42px, 13vw, 60px); }
    .operation-grid { grid-template-columns: 1fr; }
    .operation-card { min-height: 300px; }
    .board-head { display: none; }
    .board-row { grid-template-columns: 42px 1fr auto; padding: 0 15px; }
    .board-row > span:not(.player-name) { display: none; }
    .board-row > b { font-size: 11px; }
    .api-grid { gap: 55px; }
    .terminal-body { padding: 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 45px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
    .inner-hero { padding-top: 125px; }
    .compact-search { grid-template-columns: 1fr; }
    .compact-search button { min-height: 45px; }
    .record-section, .leaderboard-page { padding-top: 45px; }
    .record-header { grid-template-columns: 1fr; gap: 22px; }
    .record-level { padding: 18px 0 0; border-top: 1px solid rgba(17,21,16,.15); border-left: 0; }
    .rank-grid { grid-template-columns: 1fr; }
    .rank-grid > div { min-height: 105px; }
    .record-grid { grid-template-columns: 1fr; }
    .data-note { grid-template-columns: 1fr; gap: 10px; }
    .metric-tabs { flex-wrap: nowrap; margin-right: -13px; padding-right: 13px; overflow-x: auto; scrollbar-width: none; }
    .metric-tabs a { flex: 0 0 auto; }
    .leaderboard-title { align-items: flex-start; flex-direction: column; gap: 12px; }
    .full-board-head { display: none; }
    .full-board-row { grid-template-columns: 46px 1fr auto; gap: 6px; min-height: 105px; padding: 14px; }
    .full-board-row > span:not(.player-name), .full-board-row > b:last-child { display: none; }
    .full-board-row > b:last-child { display: block; text-align: right; }
    .full-board-row > b:last-child::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 400; }
}

@media (max-width: 430px) {
    .hero-copy h1 { font-size: 76px; }
    .hero-copy h1 span { margin-left: .28em; }
    .hero-section { min-height: 1040px; }
    .hero-grid { min-height: 990px; }
    .stat-grid { grid-template-columns: 1fr; }
    .stat-grid > div { border-top: 1px solid rgba(17,21,16,.17); }
    .stat-grid > div:first-child { border-top: 0; }
    .footer-links { grid-template-columns: 1fr; }
    .record-identity { align-items: flex-start; }
    .avatar-letter { width: 56px; height: 56px; }
    .record-identity h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
