:root {
  --paper: #f4f0e6;
  --paper-deep: #e8e0cf;
  --ink: #1b2430;
  --muted: #5d625a;
  --blue: #18315f;
  --blue-bright: #2b59a2;
  --amber: #e09a27;
  --red: #a54a37;
  --green: #236b57;
  --line: #c8bfac;
  --white: #fffdf7;
  --shadow: 0 18px 45px rgba(39, 38, 31, .1);
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Trebuchet MS", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .34;
  background-image: linear-gradient(rgba(24,49,95,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(24,49,95,.035) 1px, transparent 1px);
  background-size: 28px 28px;
}
a { color: var(--blue); text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, label:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }

.topbar { min-height: 72px; padding: 14px clamp(18px,4vw,64px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(244,240,230,.92); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 30px; color: var(--white); background: var(--blue); border-radius: 3px 3px 7px 7px; font: 800 13px/1 ui-monospace, monospace; }
.top-actions, .language { display: flex; align-items: center; gap: 10px; }
.rc-badge, .state { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 10px; color: var(--muted); font: 700 11px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; }
.language { padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
.language a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 5px; color: var(--muted); font-weight: 800; text-decoration: none; }
.language a[aria-current="page"] { color: var(--white); background: var(--blue); }

main { overflow: hidden; }
.hero { width: min(1180px, calc(100% - 36px)); min-height: 580px; margin: 0 auto; padding: clamp(70px,9vw,130px) 0 80px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px,.9fr); align-items: center; gap: clamp(40px,7vw,100px); }
.eyebrow { margin: 0 0 16px; color: var(--blue-bright); font: 800 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
h1, h2, h3 { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 24px; font: 850 clamp(43px,7vw,83px)/.96 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.lede { max-width: 680px; margin: 0; color: #464b48; font-size: clamp(18px,2.2vw,23px); line-height: 1.55; }
.trust-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--green); font: 750 13px/1.4 ui-monospace, monospace; }
.trust-row span::before { content: "✓"; margin-right: 8px; }

.device-preview{margin:0;min-width:0}.device-preview img,.screen-grid img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:10px}.device-preview figcaption,.screen-grid figcaption{margin-top:12px;color:var(--muted);font-size:13px;line-height:1.5}.screen-gallery{width:min(1180px,calc(100% - 36px));margin:80px auto}.screen-gallery h2{font:800 clamp(32px,5vw,52px)/1.1 Georgia,serif}.screen-gallery>p{max-width:680px;line-height:1.6}.screen-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.screen-grid figure{margin:0}@media(max-width:700px){.screen-grid{grid-template-columns:1fr}}

.safety-note { width: min(1180px, calc(100% - 36px)); margin: 0 auto 90px; padding: 20px 24px; display: flex; gap: 18px; align-items: baseline; border: 1px solid #b9aa8c; border-left: 6px solid var(--amber); background: #fff8e8; }
.safety-note strong { white-space: nowrap; }
.safety-note span { color: #5d584d; line-height: 1.5; }

/* A hardware feature spread; every visible capability links to its source. */
.hardware { width:min(1180px,calc(100% - 36px)); margin:0 auto 90px; padding:clamp(24px,4vw,54px); border-radius:28px; background:#141922; color:#f7f4ec; scroll-margin-top:92px; }
.hardware-heading { display:flex; justify-content:space-between; align-items:center; gap:32px; margin-bottom:40px; }
.hardware .eyebrow { color:#edb866; }
.hardware h2 { margin-bottom:20px; font:750 clamp(36px,5.4vw,66px)/1.02 ui-sans-serif,system-ui,sans-serif; letter-spacing:-.055em; }
.hardware-intro { max-width:640px; margin:0; color:#bdc5d0; font-size:18px; line-height:1.6; }
.hardware-price { flex-shrink:0; text-align:right; }
.hardware-price span { display:block; color:#bdc5d0; font-size:13px; }
.hardware-price strong { display:block; margin:8px 0 14px; font-size:clamp(34px,4.5vw,52px); letter-spacing:-.055em; white-space:nowrap; }
.hardware-price a { display:inline-block; padding:12px 20px; border-radius:24px; background:#edb866; color:#161b24; font-weight:750; text-decoration:none; }
.hardware-price .affiliate-disclosure { max-width: 280px; margin: 12px 0 0 auto; color: #d2ddf0; font-size: 12px; line-height: 1.5; }
.hardware-features { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.hardware-features article { min-width:0; padding:30px; border-radius:18px; background:#202733; }
.hardware h3 { margin:0 0 12px; font-size:clamp(23px,2.8vw,32px); line-height:1.14; letter-spacing:-.035em; }
.hardware p { line-height:1.6; }
.hardware-cpu > div:last-child > p:last-child { margin-bottom:0; color:#bdc5d0; font-size:15px; }
.chip-visual { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; width:166px; height:166px; margin:18px auto 38px; border:1px solid #596574; border-radius:13px; background:linear-gradient(140deg,#344154,#11161f); box-shadow:0 0 0 8px #131923,0 0 0 9px #56616e,0 22px 30px #0c111980; }
.chip-visual::before { content:""; position:absolute; inset:-18px; z-index:0; border:6px dotted #ad976f; border-radius:5px; }
.chip-visual span { color:#e8ce9e; font-size:17px; letter-spacing:.14em; }
.chip-visual strong { color:#f9f4e8; font-size:68px; line-height:1.05; letter-spacing:-.08em; }
.chip-visual small { color:#aebbcf; font:11px/1.5 ui-monospace,monospace; letter-spacing:.16em; }
.hardware-kicker { color:#edb866; font:700 12px/1.5 ui-monospace,monospace; letter-spacing:.08em; }
.hardware-screen { display:flex; flex-direction:column; justify-content:center; }
.hardware-screen > p { margin:0; color:#bdc5d0; font-size:15px; }
.hardware-screen figure { margin:32px 0 0; }
.hardware-bezel { padding:14px 18px; background:#080b10; border:2px solid #9fabb9; border-radius:18px; box-shadow:0 20px 32px #10131b; }
.hardware-bezel img { display:block; width:100%; height:auto; border-radius:2px; }
.hardware-screen figcaption { color:#aeb8c7; font-size:11px; line-height:1.5; margin-top:18px; }
.hardware-details { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; margin-top:36px; }
.hardware-details article { padding-top:24px; border-top:1px solid #434b57; }
.hardware-symbol { display:block; margin-bottom:20px; color:#edb866; font-size:36px; font-weight:650; letter-spacing:-.06em; }
.hardware-symbol span { margin-left:4px; font-size:17px; letter-spacing:0; }
.hardware-details h3 { font-size:19px; letter-spacing:-.02em; }
.hardware-details p { color:#bdc5d0; font-size:14px; margin-bottom:0; }
.hardware-more { margin-top:36px; padding:24px; border-radius:12px; background:#202733; }
.hardware-more h3 { font-size:21px; }
.hardware-more p { margin:0; color:#bdc5d0; font-size:14px; }
.hardware-footnote { margin-top:26px; color:#acb5c3; font-size:12px; }
.hardware-footnote p { margin:0 0 12px; }
.hardware-footnote nav { display:flex; flex-wrap:wrap; gap:8px 24px; }
.hardware-footnote a { color:#d2ddf0; padding:8px 0; }
@media(max-width:820px) {
  .hardware-heading { display:block; }
  .hardware-price { text-align:left; margin-top:28px; }
  .hardware-features { grid-template-columns:1fr; }
  .hardware-cpu { display:grid; grid-template-columns:180px 1fr; gap:26px; align-items:center; }
  .chip-visual { margin:20px auto; }
}
@media(max-width:520px) {
  .hardware { width:calc(100% - 28px); padding:24px 20px; border-radius:20px; margin-bottom:60px; }
  .hardware-cpu { display:block; }
  .hardware-features article { padding:24px; }
  .chip-visual { margin:22px auto 40px; }
  .hardware-details { grid-template-columns:1fr; gap:22px; }
  .hardware-symbol { margin-bottom:12px; }
  .hardware-bezel { padding:9px 12px; border-radius:12px; }
}

.workbench { padding: 90px max(18px, calc((100vw - 1180px)/2)); color: #f3f0e8; background: var(--blue); }
.section-heading { margin-bottom: 54px; display: grid; grid-template-columns: 1fr minmax(280px,440px); gap: 40px; align-items: end; }
.section-heading .eyebrow { color: #9fb9ee; }
.section-heading h2, .receipt-section h2, .limits h2 { margin-bottom: 0; font: 800 clamp(35px,5vw,58px)/1.02 Georgia, serif; letter-spacing: -.035em; }
.section-heading > p { margin: 0; color: #c5ccdc; line-height: 1.6; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #53678c; }
.step { display: grid; grid-template-columns: 86px 1fr; gap: 26px; padding: 38px 0 42px; border-bottom: 1px solid #53678c; }
.step-number { color: var(--amber); font: 750 18px/1 ui-monospace, monospace; }
.step-title-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.step-label { display: block; margin-bottom: 8px; color: #9fb9ee; font: 700 11px/1.3 ui-monospace, monospace; letter-spacing: .1em; }
.step h3 { margin-bottom: 12px; font-size: clamp(24px,3vw,35px); letter-spacing: -.025em; }
.step-body > p { max-width: 780px; color: #c9cfdb; line-height: 1.6; }
.state { flex: none; color: #c9cfdb; background: transparent; border-color: #60759d; }
.state-warn { color: #ffd68b; border-color: #a97f3f; }

.primary, .secondary { min-height: 50px; margin-top: 12px; padding: 0 20px; border: 1px solid transparent; border-radius: 6px; font-weight: 800; }
.primary { color: #14233f; background: var(--amber); box-shadow: 0 6px 0 #a96b0d; }
.primary:hover { background: #f0ad3d; }
.primary:active { transform: translateY(3px); box-shadow: 0 3px 0 #a96b0d; }
.primary:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .45; box-shadow: none; }
.secondary { color: var(--white); border-color: #7991bd; background: transparent; }
.secondary:hover { background: rgba(255,255,255,.08); }
.compat { display: block; max-width: 620px; padding: 12px 0; color: #ffd59a; line-height: 1.5; }
details { max-width: 730px; margin-top: 26px; color: #c9cfdb; }
summary { cursor: pointer; color: #eef1f8; font-weight: 700; }

.game-pickers { max-width: 900px; margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.picker-heading { max-width: 900px; margin: 34px 0 8px; font-size: 20px; color: #fff; }
.picker-help { max-width: 900px; margin: 0; line-height: 1.55; color: #c9cfdb; }
.game-choice { min-width: 0; }
.file-card { min-width: 0; }
.file-card > span:nth-child(2) { min-width: 0; }
.file-card { min-height: 132px; padding: 18px; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; border: 1px dashed #778cb4; border-radius: 8px; cursor: pointer; background: rgba(255,255,255,.035); }
.file-card:hover { background: rgba(255,255,255,.075); }
.file-card input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.file-index { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--blue); background: var(--amber); font-weight: 900; }
.file-card strong, .file-card small { display: block; }
.file-card small { margin-top: 7px; color: #aebbd2; overflow-wrap: anywhere; line-height: 1.35; }
.file-state { grid-column: 2; color: #ffcf7b; font-size: 13px; }
.file-card.is-good { border-style: solid; border-color: #72bb9b; }
.file-card.is-good .file-state { color: #8fd1b5; }
.file-card.is-bad { border-style: solid; border-color: #e4846d; }
.file-card.is-bad .file-state { color: #ffad9a; }
.action-line { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.inline-status { color: #c9cfdb; }
.source-links { font-size: 14px; }
.source-links a { margin-left: 12px; color: #bed2ff; }

.progress-shell { max-width: 900px; margin-top: 28px; padding: 18px; border: 1px solid #60759d; background: #102548; }
.progress-meta { display: flex; justify-content: space-between; gap: 20px; color: #dfe7f8; font-size: 13px; }
progress { width: 100%; height: 14px; margin: 10px 0; accent-color: var(--amber); }
#install-log { max-height: 180px; margin: 8px 0 0; overflow: auto; color: #b9c7e0; white-space: pre-wrap; font: 12px/1.5 ui-monospace, monospace; }

.receipt-section { padding: 100px max(18px, calc((100vw - 1180px)/2)); background: var(--paper-deep); }
.receipt-section > div:first-child { display: grid; grid-template-columns: 1fr 1.5fr; align-items: end; gap: 40px; }
.receipt-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.receipt-grid article { min-height: 230px; padding: 28px; border-right: 1px solid var(--line); background: rgba(255,253,247,.5); }
.receipt-grid article:last-child { border-right: 0; }
.receipt-grid b { color: var(--amber); font: 800 16px/1 ui-monospace, monospace; }
.receipt-grid h3 { margin: 44px 0 10px; font-size: 21px; }
.receipt-grid p { color: var(--muted); line-height: 1.55; }
.plain-note { max-width: 900px; margin: 30px 0 0; padding-left: 18px; border-left: 3px solid var(--blue-bright); color: var(--muted); line-height: 1.6; }

.limits { padding: 100px max(18px, calc((100vw - 1180px)/2)); }
.limits-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.limits-grid p { margin: 0; padding-top: 18px; border-top: 4px solid var(--blue); }
.limits-grid strong, .limits-grid span { display: block; }
.limits-grid strong { margin-bottom: 14px; font: 800 12px/1.3 ui-monospace, monospace; color: var(--blue-bright); text-transform: uppercase; letter-spacing: .08em; }
.limits-grid span { color: var(--muted); line-height: 1.6; }

footer { padding: 30px max(18px, calc((100vw - 1180px)/2)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 820px) {
  .rc-badge { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .section-heading, .receipt-section > div:first-child { grid-template-columns: 1fr; }
  .game-pickers, .receipt-grid, .limits-grid { grid-template-columns: 1fr; }
  .receipt-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .receipt-grid article:last-child { border-bottom: 0; }
  .safety-note { align-items: start; flex-direction: column; gap: 8px; }
  .safety-note strong { white-space: normal; }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .topbar { min-height: 62px; }
  .brand > span:last-child { font-size: 14px; }
  .hero { width: min(100% - 28px, 1180px); min-height: auto; padding: 54px 0 60px; }
  h1 { font-size: 45px; }
  .lede { font-size: 18px; }
  .trust-row { display: grid; }
  .device { padding: 13px; border-radius: 17px; }
  .device-screen { padding: 15px; }
  .ticket { width: 142px; padding: 14px; top: 0; }
  .ticket strong { font-size: 18px; }
  .cable { height: 52px; border-width: 5px; }
  .safety-note { margin-bottom: 60px; }
  .workbench, .receipt-section, .limits { padding-top: 70px; padding-bottom: 70px; }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .step-number { font-size: 14px; }
  .step-title-row { display: block; }
  .step-title-row .state { display: inline-block; margin-bottom: 12px; }
  .primary, .secondary { width: 100%; }
  .action-line { align-items: stretch; flex-direction: column; }
  footer nav { flex-wrap: wrap; }
}

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

.hero-links { display:flex; gap:14px 24px; flex-wrap:wrap; margin-top:26px; font-weight:750; }
.hero-links a { padding:10px 0; }
.ready-note { border-left:3px solid var(--amber); padding-left:18px; max-width:780px; line-height:1.6; color:#e6dfcf; }
.download-guide li { padding:8px 0 8px 6px; line-height:1.6; }
.play-guide, .future-games { padding:80px max(18px, calc((100vw - 1180px)/2)); scroll-margin-top:90px; }
.play-guide h2, .future-games h2 { font:800 clamp(34px,5vw,54px)/1.1 Georgia,serif; letter-spacing:-.03em; }
.play-guide p, .future-games p { max-width:850px; line-height:1.65; }
.controls-sheet { display:block; width:min(100%,850px); height:auto; margin:30px 0; border:1px solid var(--line); border-radius:12px; }
.controls-list { display:grid; grid-template-columns:1fr 1fr; gap:0 30px; }
.controls-list > div { display:grid; grid-template-columns:70px 1fr; gap:14px; border-top:1px solid var(--line); padding:20px 0; }
.controls-list dt { font:800 15px/1.6 ui-monospace,monospace; color:var(--blue); }
.controls-list dd { margin:0; line-height:1.65; }
.save-tip { padding:18px; background:#fff8e8; border-left:4px solid var(--amber); }
.future-games { border-top:1px solid var(--line); }
.future-games ul { padding:0; list-style:none; }
.future-games li { display:flex; justify-content:space-between; gap:12px 32px; padding:18px 0; border-bottom:1px solid var(--line); line-height:1.5; }
.future-games li a { font-weight:750; }
.future-games li span { color:var(--muted); }
@media(max-width:650px) { .controls-list { grid-template-columns:1fr; } .future-games li { flex-direction:column; } }
#installer-title { scroll-margin-top:100px; }
.game-choice > .file-card { height:calc(100% - 48px); margin:0; }
.download-link { display:block; min-height:44px; padding:12px 2px; color:#c8d9ff; font-size:14px; line-height:1.5; }
.file-card:has(input:disabled) { cursor:wait; opacity:.7; }

.appearance-guide { padding-top:20px; margin-top:24px; border-top:1px solid var(--line); }
.appearance-guide h3 { margin-top:28px; font-size:24px; }

#start, #screens-title { scroll-margin-top:100px; }

.music-addon{margin-top:18px;padding-top:18px;border-top:1px solid #56708e}.music-addon p{font-size:14px;line-height:1.6}

.game-start-tips{margin-top:32px;padding:20px;border:1px solid var(--line);border-radius:8px}.game-start-tips summary{font-weight:750;cursor:pointer;min-height:44px}.game-start-tips h3{margin:24px 0 8px}.game-start-tips p{max-width:850px;line-height:1.7}

/* C145 front proportions: 128 × 80 mm body, 5-inch 16:9 screen. */
.tab5-device { display:block; position:relative; width:100%; aspect-ratio:128/80; border:3px solid #e3e5e6; border-bottom-width:7px; border-radius:3.1% / 5%; background:#101215; box-shadow:0 4px 0 #b4b9bd,0 18px 30px #0b101733; }
.tab5-device::before { content:""; position:absolute; right:2.1%; top:47.5%; width:3.1%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 38% 32%,#6f7c93 0 9%,#172338 13% 29%,#080b10 35% 59%,#454b53 65% 73%,#17191d 78%); box-shadow:0 0 0 1px #34373d; }
.tab5-device::after { content:""; position:absolute; left:-5px; top:27%; width:4px; height:12%; background:#252a31; border-radius:2px; box-shadow:0 46px 0 #252a31; }
.tab5-device img { position:absolute; top:11.1%; left:6.75%; width:86.5%; height:77.8%; object-fit:contain; border:1px solid #252a30; border-radius:0; }
.hardware-price .other-shop { display:block; margin-top:12px; padding:9px 0; color:#e8cfab; background:none; font-size:13px; text-decoration:underline; }
.hardware-price small { display:block; max-width:230px; margin-top:4px; color:#acb5c3; font-size:11px; line-height:1.5; }
.community-games { width:min(1180px,calc(100% - 36px)); margin:70px auto; padding:32px; border-left:4px solid var(--amber); background:var(--paper-deep); }
.community-games h2 { font:800 clamp(28px,4vw,44px)/1.1 Georgia,serif; }
.community-games p { max-width:830px; line-height:1.65; margin-bottom:0; }

.collection { width:min(1180px,calc(100% - 36px)); margin:0 auto 90px; padding:42px 0; border-top:1px solid var(--line); }
.collection h2 { font:800 clamp(30px,4.5vw,50px)/1.08 Georgia,serif; letter-spacing:-.03em; margin-bottom:16px; }
.collection > p { max-width:830px; line-height:1.6; }
.collection-numbers { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px; margin:38px 0 22px; }
.collection-numbers strong { display:block; color:var(--blue); font-size:clamp(40px,5.5vw,70px); line-height:1.1; letter-spacing:-.065em; white-space:nowrap; }
.collection-numbers span { display:block; margin-top:10px; font-size:14px; color:var(--muted); }
.collection-note { font-size:13px; color:var(--muted); }
.collection details { color:var(--ink); width:100%; max-width:none; padding-top:18px; border-top:1px solid var(--line); }
.collection summary { color:var(--blue); cursor:pointer; padding:12px 0; font-weight:750; }
.collection details p { max-width:950px; font-size:13px; color:var(--muted); line-height:1.6; }
.collection-table-wrap { overflow-x:auto; }
.collection table { width:100%; border-collapse:collapse; margin:20px 0; font-size:14px; }
.collection td,.collection th { text-align:left; vertical-align:top; padding:14px 12px; border-bottom:1px solid var(--line); }
.collection th:first-child,.collection td:first-child { padding-left:0; }
.collection td:last-child { white-space:nowrap; }
@media(max-width:700px) { .collection-numbers { grid-template-columns:1fr 1fr; } .collection table { min-width:620px; } }

/* Shared documentation page; kept external for the portal CSP. */
.docs{width:min(900px,calc(100% - 36px));margin:auto;padding:64px 0 90px}.docs h1{font-size:clamp(42px,7vw,70px)}.docs h2{margin-top:48px;font:800 32px/1.15 Georgia,serif}.docs h3{margin-top:28px}.docs p,.docs li{line-height:1.7}.docs code{overflow-wrap:anywhere}.docs nav{display:flex;gap:24px;flex-wrap:wrap}.table-wrap{overflow:auto}.docs table{border-collapse:collapse;width:100%;font-size:15px}.docs td,.docs th{text-align:left;padding:12px;border-bottom:1px solid var(--line)}.docs th{background:var(--paper-deep)}.docs :target{scroll-margin-top:100px}

/* CC 23.09.2026 — układ po przeglądzie (bin/zbuduj-tab5.py): prosty język, instalator wyżej,
   szczegóły na podstronach. Jeden język wizualny: papier, granat, bursztyn. */
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px 26px; margin-top:30px; font-weight:750; }
.hero-actions a { padding:10px 0; }
a.primary.cta { display:inline-flex; align-items:center; margin-top:0; padding:0 26px; text-decoration:none; font-size:18px; }
.games, .needs, .status-line { width:min(1180px,calc(100% - 36px)); margin:0 auto 80px; }
.games h2, .needs h2, .status-line h2 { font:800 clamp(30px,4.5vw,50px)/1.08 Georgia,serif; letter-spacing:-.03em; margin-bottom:14px; }
.games > p, .needs p, .status-line p { max-width:830px; line-height:1.6; }
.game-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:22px 18px; margin-top:26px; }
.game-grid figure { margin:0; min-width:0; }
.game-grid img { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:8px; }
.game-grid figcaption { margin-top:8px; color:var(--muted); font-size:13px; line-height:1.4; }
.game-grid figcaption strong { display:block; color:var(--ink); font-size:15px; }
.needs-list { max-width:830px; margin:22px 0 0; padding:0; list-style:none; }
.needs-list li { padding:16px 0; border-top:1px solid var(--line); line-height:1.6; }
.needs-list li:last-child { border-bottom:1px solid var(--line); }
.shops { display:flex; flex-wrap:wrap; gap:4px 22px; margin-top:6px; }
.shops a { padding:8px 0; font-weight:750; }
.needs .affiliate-disclosure { margin:14px 0 0; color:var(--muted); font-size:14px; }
.needs-more a { white-space:nowrap; }
.status-line { padding:28px 30px; border-left:4px solid var(--blue); background:var(--paper-deep); }
.status-line p { margin-bottom:0; }
.paid-games { max-width:900px; margin-top:30px; padding-top:6px; border-top:1px solid #53678c; }
.paid-games summary { min-height:44px; padding:12px 0; color:#fff; font-size:18px; line-height:1.4; }
.paid-games .picker-help { margin-top:6px; }
.file-card { min-height:0; grid-template-columns:1fr; }
.file-state { grid-column:1; }
.music-row { grid-column:1 / -1; padding:14px 0 20px; margin-bottom:8px; border-top:1px solid #56708e; border-bottom:1px solid #56708e; }
.music-row > .file-card { height:auto; }
.music-row p { margin:4px 0 0; font-size:14px; line-height:1.6; }
a.on-dark { color:#ffd68b; }
.workbench .section-heading { align-items:end; }
.workbench .section-heading h2 { color:#fff; }
.docs .lede { font-size:clamp(17px,2vw,20px); }
.docs .controls-sheet { margin:26px 0; }
.docs .save-tip { margin-top:0; }
.docs .plain-note { margin-top:18px; font-size:14px; }
@media (max-width:520px) {
  .games, .needs, .status-line { width:calc(100% - 28px); margin-bottom:56px; }
  .game-grid { grid-template-columns:1fr 1fr; gap:16px 12px; }
  .game-grid figcaption strong { font-size:14px; }
  .status-line { padding:22px 20px; }
  a.primary.cta { width:100%; justify-content:center; }
}
/* Runda 2 (UX 23.09): karta gry = jedna ramka z „Pobierz” na górze; stan pliku przechodzi na ramkę. */
.game-pickers { gap:10px; }
.game-choice { display:flex; flex-direction:column; border:1px dashed #778cb4; border-radius:8px; background:rgba(255,255,255,.035); }
.game-choice > .file-card { flex:1; height:auto; min-height:0; padding:12px 16px 14px; border:0; background:none; }
.game-choice > .download-link { padding:10px 16px; border-bottom:1px solid #2c4675; }
.game-choice:has(.is-good) { border-style:solid; border-color:#72bb9b; }
.game-choice:has(.is-bad) { border-style:solid; border-color:#e4846d; }
/* Wyłączony przycisk mówi „jeszcze nie”, a nie „zepsuty”; powód stoi pod nim, znika po odblokowaniu. */
.primary:disabled { filter:none; opacity:1; color:#9fb0cf; background:transparent; border:1px dashed #60759d; box-shadow:none; }
.button-hint { margin:10px 0 0; color:#c9cfdb; font-size:14px; }
#install-button:not(:disabled) + .button-hint { display:none; }
.step-title-row { justify-content:flex-start; align-items:center; flex-wrap:wrap; gap:6px 16px; }
.play-guide .controls-list { max-width:850px; }
@media (max-width:520px) {
  .hero, .games, .needs, .status-line { width:calc(100% - 36px); }
  .docs .table-wrap :is(table,tbody,tr,td,th) { display:block; }
  .docs .table-wrap thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .docs .table-wrap tr { padding:14px 0; border-bottom:1px solid var(--line); }
  .docs .table-wrap :is(td,th) { padding:2px 0; border:0; background:none; }
  .docs .table-wrap tr > :first-child { font-weight:750; }
}
/* „Wyczyść” ma być drugorzędne także na telefonie; nagłówek gier z GOG nie może krzyczeć głośniej niż „9 gier za darmo”. */
.paid-games summary { font-size:16px; font-weight:700; }
@media (max-width:520px) {
  .action-line #clear-files { width:auto; align-self:flex-start; min-height:44px; margin-top:4px; border-color:transparent; text-decoration:underline; }
}
/* Runda 3 (UX 23.09): muzyka Drásculi jako taka sama ramka; „Wyczyść” w linii; mniejszy schemat na komputerze. */
.music-row { padding:0; margin:6px 0 8px; }
.music-row > p { margin:0; padding:0 16px 14px; }
.play-guide .controls-sheet { width:min(100%, 620px); }
@media (max-width:520px) { .action-line #clear-files { padding-inline:0; } }
/* W trakcie kopiowania przycisk też jest wyłączony — wtedy podpowiedź „najpierw krok 2” nie może wrócić (przegląd kodu 23.09). */
.workbench:has(#verify-button:disabled) .button-hint { display:none; }
/* 23.09 po uwadze Tomka: liczby kolekcji wracają na główną (6 kafli, widełki), profil gracza z urządzenia. */
.collection-numbers { grid-template-columns:repeat(3,minmax(0,1fr)); }
.collection-numbers > div { min-width:0; }
.collection-numbers strong { font-size:clamp(34px,5vw,60px); }
.collection td:nth-child(4) { min-width:170px; }
.profil { width:min(1180px,calc(100% - 36px)); margin:0 auto 80px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:clamp(24px,4vw,56px); align-items:center; }
.profil h2 { font:800 clamp(30px,4.5vw,50px)/1.08 Georgia,serif; letter-spacing:-.03em; margin-bottom:14px; }
.profil p { max-width:560px; line-height:1.6; }
.profil-ekran { margin:0; min-width:0; }
.profil-ekran figcaption { margin-top:12px; color:var(--muted); font-size:13px; }
@media (max-width:820px) { .profil { grid-template-columns:1fr; } }
@media (max-width:520px) {
  .collection-numbers { grid-template-columns:1fr 1fr; gap:18px; }
  .collection-numbers strong { font-size:34px; white-space:normal; }
  .profil { width:calc(100% - 36px); margin-bottom:56px; }
}
