/* GameSpecCheck — hardware-panel style */
:root {
  --bg: #0a0e15;
  --bg-2: #0d121b;
  --panel: #111824;
  --panel-2: #162030;
  --line: #222e40;
  --line-2: #2c3b52;
  --text: #e4ebf5;
  --muted: #8797ad;
  --dim: #5d6c82;
  --accent: #33a9ff;
  --accent-2: #66c2ff;
  --accent-ink: #04121f;
  --pass: #5fd068;
  --pass-bg: rgba(95, 208, 104, .12);
  --warn: #ffb224;
  --warn-bg: rgba(255, 178, 36, .12);
  --fail: #ff5b4d;
  --fail-bg: rgba(255, 91, 77, .12);
  --track: #1b2535;
  --r: 4px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: .01em; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(10, 14, 21, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 54px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .02em; text-transform: uppercase; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px solid var(--accent); border-radius: 3px; position: relative; }
.logo-mark::before { content: ""; width: 10px; height: 10px; background: var(--accent); border-radius: 1px; }
.logo b { color: var(--accent); font-weight: 700; }
.topbar nav { margin-left: auto; display: flex; gap: 24px; font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.topbar nav a { color: var(--muted); }
.topbar nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 680px) { .topbar nav .hide-sm { display: none; } }

/* Hero */
.hero { position: relative; border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .35;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 60%); }
.hero .wrap { position: relative; padding-top: 30px; padding-bottom: 36px; }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .04em; }
.crumbs a { color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.hero h1 { font-size: clamp(44px, 8vw, 82px); text-transform: uppercase; letter-spacing: 0; }
.hero h1 small { display: block; font-size: .4em; color: var(--accent); letter-spacing: .06em; margin-bottom: 4px; }
.lede { font-size: 17px; color: var(--muted); max-width: 36em; margin: 16px 0 0; }

.metastrip { display: flex; flex-wrap: wrap; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.metastrip div { padding: 10px 16px; border-right: 1px solid var(--line); min-width: 0; }
.metastrip div:last-child { border-right: 0; }
.metastrip dt { font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.metastrip dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; white-space: nowrap; }
@media (max-width: 640px) { .metastrip div { flex: 1 1 50%; border-bottom: 1px solid var(--line); } .metastrip div:nth-child(2n) { border-right: 0; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; align-items: start; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.panel-head .tag { font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.panel-body { padding: 18px; }

/* Spec sheet (min vs rec) */
.sheet { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sheet th, .sheet td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet thead th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: var(--bg-2); }
.sheet thead th.rec { color: var(--accent); }
.sheet tbody th { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; width: 92px; padding-top: 13px; }
.sheet td.rec { background: rgba(51, 169, 255, .05); }
.sheet td small { color: var(--dim); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Checker */
.checker .panel-body { display: grid; gap: 16px; }
.field > label, .field > .label { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 7px; }
.detect { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 14px; color: var(--muted); }
.detect button { font: 600 14px var(--sans); border: 1px solid var(--accent); color: var(--accent-2); background: rgba(51, 169, 255, .08);
  border-radius: 3px; padding: 7px 12px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; letter-spacing: .02em; }
.detect button:hover { background: rgba(51, 169, 255, .16); }
.detect button svg { width: 15px; height: 15px; }
.detect .msg { flex: 1; min-width: 170px; }
.detect .msg strong { color: var(--text); }

.combo { position: relative; }
.combo input { width: 100%; font: 500 15px var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 11px 38px 11px 12px; outline: none; transition: border-color .12s, box-shadow .12s; }
.combo input::placeholder { color: var(--dim); }
.combo input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(51, 169, 255, .18); }
.combo .chev { position: absolute; right: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.combo ul { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--panel-2);
  border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); max-height: 280px; overflow-y: auto; display: none; }
.combo.open ul { display: block; }
.combo li { padding: 8px 10px; border-radius: 3px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.combo li small { font-family: var(--mono); color: var(--dim); font-size: 11px; text-transform: uppercase; white-space: nowrap; padding-top: 2px; }
.combo li[aria-selected="true"], .combo li:hover { background: rgba(51, 169, 255, .12); }
.combo li.empty { color: var(--dim); cursor: default; }
.combo li.empty:hover { background: none; }

.seg { display: flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; width: fit-content; max-width: 100%; }
.seg button { font: 600 14px var(--sans); color: var(--muted); background: var(--bg); border: 0; border-right: 1px solid var(--line-2); padding: 9px 13px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.row2 { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 16px 22px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

.go { width: 100%; font: 700 18px var(--display); letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--r); padding: 13px; cursor: pointer; transition: background .12s; }
.go:hover { background: var(--accent-2); }

/* Result */
.result { display: none; scroll-margin-top: 66px; border-top: 1px solid var(--line); }
.result.show { display: block; }
.verdict { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-left: 4px solid; }
.verdict svg { width: 26px; height: 26px; flex: none; }
.verdict .code { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.verdict strong { display: block; font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.verdict p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.v-rec { background: var(--pass-bg); border-color: var(--pass); color: var(--pass); }
.v-min { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.v-bad { background: var(--fail-bg); border-color: var(--fail); color: var(--fail); }

.meters { margin: 0; padding: 0; list-style: none; }
.meters li { padding: 12px 18px; border-top: 1px solid var(--line); }
.meter-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.meter-head .k { font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.meter-head .name { font-weight: 600; font-size: 15px; }
.pill { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; border: 1px solid; white-space: nowrap; flex: none; }
.p-rec { color: var(--pass); border-color: rgba(95, 208, 104, .45); background: var(--pass-bg); }
.p-min { color: var(--warn); border-color: rgba(255, 178, 36, .45); background: var(--warn-bg); }
.p-bad { color: var(--fail); border-color: rgba(255, 91, 77, .45); background: var(--fail-bg); }
.bar { position: relative; height: 6px; background: var(--track); margin-top: 9px; border-radius: 1px; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; transition: width .5s ease-out; border-radius: 1px; }
.f-rec { background: var(--pass); } .f-min { background: var(--warn); } .f-bad { background: var(--fail); }
.bar .mark { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--text); opacity: .6; }
.bar-legend { position: relative; height: 15px; font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 3px; text-transform: uppercase; }
.bar-legend span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.meter-note { font-size: 13px; color: var(--muted); margin-top: 3px; }
.upgrade { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 14px; color: var(--muted); }
.upgrade strong { display: block; font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: .04em; color: var(--text); margin-bottom: 2px; }
.upgrade ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.upgrade li { font-family: var(--mono); font-size: 12px; color: var(--accent-2); border: 1px solid var(--line-2); border-radius: 2px; padding: 4px 8px; }

/* Sections */
main section { margin: 52px 0; scroll-margin-top: 70px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 34px); text-transform: uppercase; }
.sec-head .idx { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.sec-head p { margin: 0 0 0 auto; color: var(--dim); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) { .sec-head { flex-wrap: wrap; } .sec-head p { margin: 0; width: 100%; } }
.src { font-size: 13px; color: var(--dim); margin-top: 10px; }

.factors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.factor { padding: 18px 20px; border-right: 1px solid var(--line); }
.factor:last-child { border-right: 0; }
@media (max-width: 800px) { .factors { grid-template-columns: 1fr; } .factor { border-right: 0; border-bottom: 1px solid var(--line); } .factor:last-child { border-bottom: 0; } }
.factor .n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.factor h3 { font-size: 21px; text-transform: uppercase; margin: 6px 0 6px; }
.factor .big { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--text); }
.factor p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }

.cmp td .price { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--text); }
.yes { color: var(--pass); font-family: var(--mono); font-weight: 700; }
.no { color: var(--dim); font-family: var(--mono); }
.note { margin-top: 12px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--panel); color: var(--muted); font-size: 15px; }
.note strong { color: var(--text); }

.faq { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 44px 14px 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { background: var(--panel-2); }
.faq details > div { padding: 0 18px 14px; color: var(--muted); font-size: 15px; }
.faq details > div p, .faq details > div ol { margin: 0; }
.faq kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 3px; padding: 1px 5px; color: var(--text); }

/* Home */
.game-list { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.game-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: center; padding: 16px 18px; color: var(--text); border-bottom: 1px solid var(--line); }
.game-row:last-child { border-bottom: 0; }
.game-row:hover { background: var(--panel-2); text-decoration: none; }
.game-row .title { font-family: var(--display); font-size: 24px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.game-row .title small { display: block; font-family: var(--mono); font-size: 11px; color: var(--accent); font-weight: 500; letter-spacing: .08em; margin-top: 6px; }
.game-row .spec dt { font-family: var(--mono); font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.game-row .spec dd { margin: 0; font-size: 14px; font-weight: 600; }
.game-row .cta { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 760px) { .game-row { grid-template-columns: 1fr 1fr; } .game-row .title, .game-row .cta { grid-column: 1 / -1; } }

.prose { max-width: 720px; }
.prose h1 { font-size: 44px; text-transform: uppercase; margin: 36px 0 6px; }
.prose h3 { font-size: 22px; text-transform: uppercase; margin: 28px 0 6px; }
.prose p { color: var(--muted); }


/* Footer (multi-column) */
footer.site { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 64px; padding: 0; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: 40px 0 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .logo { font-size: 19px; }
.foot-brand p { margin: 12px 0 0; max-width: 340px; color: var(--muted); font-size: 14px; }
.foot-col h4 { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.foot-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot-col a { color: var(--muted); }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-legal { border-top: 1px solid var(--line); padding: 18px 0 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12.5px; color: var(--dim); }
.foot-legal p { margin: 0; max-width: 720px; }
