:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #263a3b;
  background: #f6f3ed;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #263a3b;
  --muted: #657777;
  --paper: #fffefa;
  --line: #dfe5dc;
  --green: #d9efdc;
  --green-strong: #365e4c;
  --pink: #f3d9d8;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f6f3ed; }
button, input, select { font: inherit; }
a { color: #315f53; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #78a98c; outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #d8e8dc; color: #315b49; font-size: 1rem; letter-spacing: 0; }
.nav-link { color: var(--muted); font-size: .88rem; text-decoration: none; }
.nav-link span { margin-left: 8px; color: #547d69; }
.hero { min-height: 390px; padding: 62px 5.5% 52px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; }
.kicker { margin: 0 0 16px; color: #587b68; font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.pulse { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #8db994; box-shadow: 0 0 0 4px #e1eee1; }
h1 { max-width: 650px; margin: 0; color: #293d3d; font-size: clamp(3.25rem, 7.6vw, 6.2rem); font-weight: 720; letter-spacing: -.075em; line-height: .94; }
h1 em { color: #6d9680; font-family: Georgia, serif; font-weight: 500; }
.lede { max-width: 510px; margin: 24px 0; color: #536968; font-size: 1.08rem; line-height: 1.7; }
.trustline { display: flex; flex-wrap: wrap; gap: 10px 19px; color: #7a8984; font-size: .62rem; font-weight: 750; letter-spacing: .08em; }
.hero-art { position: relative; min-height: 250px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e0e5db; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #edf3e9 0, #f4f1e9 61%, transparent 62%); }
.orbit { position: absolute; width: 210px; height: 210px; border: 1px solid #cbdacb; border-radius: 50%; transform: rotate(-25deg) scaleX(1.4); }
.orbit-two { width: 174px; height: 174px; border-color: #e0cbc4; transform: rotate(38deg) scaleX(1.55); }
.chip { z-index: 1; width: 122px; height: 122px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #c5d7c8; border-radius: 26px; background: #fffefa; box-shadow: 0 14px 35px #435b4820; transform: rotate(-5deg); }
.chip span, .chip small { color: #789083; font-size: .62rem; font-weight: 800; letter-spacing: .16em; }
.chip strong { color: #3e6d56; font-size: 3rem; line-height: 1.05; }
.spark { position: absolute; color: #d18c78; font-size: 1.5rem; }
.spark-one { top: 35px; left: 25%; }
.spark-two { right: 21%; bottom: 35px; color: #82a88b; }
.orbit-label { position: absolute; right: 4%; top: 40%; color: #75837c; font-size: .58rem; font-weight: 800; letter-spacing: .11em; line-height: 1.7; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 14px 35px #34443b08; }
.checker { padding: 34px clamp(20px, 5vw, 56px) 38px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-head .kicker { margin-bottom: 8px; }
h2 { margin: 0; color: var(--ink); font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.04em; }
.catalog-count { color: var(--muted); font-size: .8rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; color: #405756; font-size: .82rem; font-weight: 700; }
.field-wide, .form-submit { grid-column: 1 / -1; }
.field select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #d6dfd7; border-radius: 8px; background: #fffefa; color: #263a3b; }
.field input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #d6dfd7; border-radius: 8px; background: #fffefa; color: #263a3b; font: 500 .88rem system-ui, sans-serif; }
.field input:focus, .field select:focus { border-color: #78a98c; outline: 3px solid #d7ead9; }
.form-submit { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.form-submit p { color: var(--muted); font-size: .78rem; }
.button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 9px; background: #d9efdc; color: #294e3c; cursor: pointer; font-weight: 800; transition: background .2s, transform .2s; }
.button:hover { background: #c6e4cc; transform: translateY(-1px); }
.button span { margin-left: 18px; }
.result { margin-top: 25px; padding: 22px; border: 1px solid #c9dfce; border-radius: 12px; background: #f1f8f0; }
.result[hidden] { display: none; }
.result.below { border-color: #e7cbc7; background: #fcf2f0; }
.result-head { display: flex; align-items: center; gap: 12px; }
.result-head h3 { margin: 0; font-size: 1.05rem; }
.result-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #dcecdf; color: #416c50; font-weight: 900; }
.below .result-icon { background: #f2deda; color: #8c5148; }
.result ul { padding-left: 22px; color: #495e59; line-height: 1.8; }
.result-foot { margin-bottom: 0; color: #60726d; font-size: .85rem; line-height: 1.6; }
.library { padding: 56px 0; }
.search-field input { width: min(280px, 40vw); min-height: 42px; padding: 0 12px; border: 1px solid #d6dfd7; border-radius: 8px; background: #fffefa; }
.game-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game-card { padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: #fffefa; }
.game-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-card h3 { margin: 0; font-size: 1rem; }
.platform { padding: 5px 8px; border-radius: 20px; background: #edf1e9; color: #597264; font-size: .67rem; font-weight: 700; }
.game-card p { color: var(--muted); font-size: .82rem; }
.game-card a { font-size: .82rem; font-weight: 700; }
.method { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; padding: 34px clamp(20px, 5vw, 56px); }
.method-copy p { margin: 0 0 13px; color: #596c67; font-size: .9rem; line-height: 1.7; }
.method-copy p:last-child { margin-bottom: 0; }
.source-note { padding-left: 14px; border-left: 3px solid #b7d3bc; }
footer { display: flex; justify-content: space-between; gap: 18px; padding: 26px 0 34px; color: #71817b; font-size: .72rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .shell { width: min(100% - 32px, 560px); }
  .topbar { min-height: 64px; }
  .hero { min-height: 0; padding: 48px 0 34px; grid-template-columns: 1fr; gap: 24px; }
  h1 { font-size: clamp(3.25rem, 15vw, 5rem); }
  .hero-art { min-height: 190px; width: min(100%, 360px); justify-self: center; }
  .orbit { width: 170px; height: 170px; }
  .orbit-two { width: 142px; height: 142px; }
  .chip { width: 96px; height: 96px; border-radius: 22px; }
  .chip strong { font-size: 2.5rem; }
  .checker { padding: 24px 18px; }
  .section-head { align-items: start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .field-wide, .form-submit { grid-column: auto; }
  .form-submit { align-items: start; flex-direction: column; gap: 6px; }
  .form-submit p { margin: 4px 0; }
  .game-list { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; gap: 18px; padding: 24px 18px; }
  .search-field input { width: 100%; }
  footer { flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Shared responsive geometry across the utility suite. */
:root { --layout-max: 1180px; --layout-inline-space: clamp(32px, 8vw, 96px); }
.shell { width: min(var(--layout-max), calc(100% - var(--layout-inline-space))); }
.checker, .planner, .search-panel, .finder, .explorer { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.checker, .planner, .search-panel, .finder, .explorer { margin-top: clamp(24px, 4vw, 48px); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 20px; padding: clamp(30px, 6vw, 56px) clamp(20px, 5vw, 56px); }
  .hero-art { width: min(100%, 420px); justify-self: center; }
  .method { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .hero { padding: 32px 0 24px; }
  h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  .checker, .planner, .search-panel, .finder, .explorer { padding: 22px clamp(16px, 5vw, 24px); }
  .form-grid, .game-list, .game-grid, .results, .explainer, .editorial, .limits-grid { grid-template-columns: 1fr; }
  .targets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-row { flex-wrap: wrap; }
  .search-row input, .search-row button { flex: 1 1 100%; min-height: 48px; }
  footer { flex-direction: column; }
}
@media (max-width: 400px) {
  header { min-height: 64px; height: auto; flex-wrap: wrap; row-gap: 8px; padding-block: 12px; }
  h1 { font-size: clamp(2.8rem, 11vw, 3.4rem); }
  .topbar { gap: 12px; }
  .brand { font-size: .65rem; }
  .nav-link { font-size: .75rem; }
  .targets { grid-template-columns: 1fr; }
  .trustline { gap: 8px 12px; }
}

/* Visual direction: a quiet hardware diagnostic bench, not a generic landing page. */
:root {
  color-scheme: dark;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  color: #e6eadf;
  background: #17211e;
  --ink: #e6eadf;
  --muted: #a7b4aa;
  --paper: #202d28;
  --line: #3a4d43;
  --green: #c4e870;
  --green-strong: #c4e870;
  --pink: #e4a18d;
}
body {
  background-color: #17211e;
  background-image: linear-gradient(#ffffff06 1px, transparent 1px), linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 32px 32px;
}
.topbar { border-bottom-color: #3a4d43; }
.brand { color: #e6eadf; letter-spacing: .1em; }
.brand-mark { border-radius: 4px; background: #c4e870; color: #1c2a20; }
.nav-link { color: #bdc9be; }
.nav-link span, a { color: #d1ec8e; }
.hero { min-height: 345px; padding-inline: 2%; }
.kicker { color: #c4e870; font-family: inherit; font-size: .68rem; }
h1 { color: #f0f2e9; font-family: "Arial Narrow", "Segoe UI", sans-serif; font-size: clamp(3.4rem, 8vw, 6.6rem); font-weight: 800; letter-spacing: -.08em; }
h1 em { color: #c4e870; }
.lede { color: #bac7bc; }
.trustline { color: #8d9c91; font-size: .58rem; }
.hero-art { min-height: 260px; border: 1px solid #43574b; border-radius: 8px; background: radial-gradient(circle at center, #314139 0, #202d28 45%, #17211e 72%); }
.orbit { border-color: #70845c; }
.orbit-two { border-color: #647568; }
.chip { width: 136px; height: 136px; border: 1px solid #b4d86b; border-radius: 8px; background: #26352d; box-shadow: 7px 7px 0 #121a17; transform: rotate(-3deg); }
.chip span, .chip small { color: #c4e870; }
.chip strong { color: #f0f2e9; font-family: "Arial Narrow", sans-serif; }
.spark { color: #e9a28d; }
.orbit-label { color: #c5d0c5; }
.panel { border-color: #3a4d43; border-radius: 7px; background: #202d28; box-shadow: 10px 10px 0 #101714; }
.checker { padding-top: 30px; }
h2, .result-head h3 { color: #eef0e8; font-family: "Arial Narrow", "Segoe UI", sans-serif; letter-spacing: -.03em; }
.catalog-count { color: #bdc9be; }
.field { color: #dce5da; }
.field input, .field select, .search-field input { border-color: #506356; border-radius: 4px; background: #17211e; color: #f0f2e9; }
.field input::placeholder, .search-field input::placeholder { color: #91a095; }
.field input:focus, .field select:focus, .search-field input:focus { border-color: #c4e870; outline-color: #c4e870; }
.button { border-radius: 4px; background: #c4e870; color: #1c2a20; font-family: inherit; text-transform: uppercase; letter-spacing: .04em; }
.button:hover { background: #d5f39a; }
.result { border-color: #819e59; border-radius: 4px; background: #29392b; color: #eaf2dc; }
.result.below { border-color: #ae6959; background: #392a27; }
.result-icon { border-radius: 4px; background: #c4e870; color: #1c2a20; }
.below .result-icon { background: #e4a18d; color: #351d18; }
.result ul, .result-foot { color: #d0dbcf; }
.game-card { border-color: #3a4d43; border-radius: 4px; background: #202d28; }
.game-card h3 { color: #eef0e8; }
.platform { border-radius: 2px; background: #35483b; color: #d5e9bd; }
.method { border-color: #3a4d43; }
.method-copy p { color: #bdc9be; }
.source-note { border-color: #c4e870; }
footer { border-color: #3a4d43; color: #a7b4aa; }
@media (max-width: 640px) {
  .hero { padding-top: 38px; }
  .hero-art { min-height: 185px; }
  .checker, .method { box-shadow: 5px 5px 0 #101714; }
}
