
/* Layout: a level-editor world. Baseplate grid ground, a course illustration as the hero,
   and the guide laid out as a path of numbered checkpoint pads (the order is the lesson). */
:root {
  --bg: #EDF2F7; --grid: rgba(19, 32, 56, 0.055); --surface: #FFFFFF; --ink: #132038; --muted: #56657F; --line: #D3DCE8;
  --brand: #08756E; --brand-ink: #FFFFFF; --lava: #BE2F28; --check: #F5B31B; --check-ink: #3A2A00; --sky: #3D7BF2;
  --code-bg: #101A2E; --code-ink: #DCE7FA; --code-dim: #8FA3C7;
  --display: "Rubik", "IBM Plex Sans Hebrew", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans", "IBM Plex Sans Hebrew", "IBM Plex Sans Arabic", "IBM Plex Sans Thai", "IBM Plex Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1524; --grid: rgba(231, 237, 248, 0.05); --surface: #172136; --ink: #E7EDF8; --muted: #9BA9C2; --line: #2A3854;
    --brand: #2CC5B8; --brand-ink: #06221F; --lava: #FF6259; --check: #FFC94A; --check-ink: #3A2A00; --sky: #6FA0FF;
    --code-bg: #0A101D; --code-ink: #DCE7FA; --code-dim: #8FA3C7; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1524; --grid: rgba(231, 237, 248, 0.05); --surface: #172136; --ink: #E7EDF8; --muted: #9BA9C2; --line: #2A3854;
  --brand: #2CC5B8; --brand-ink: #06221F; --lava: #FF6259; --check: #FFC94A; --check-ink: #3A2A00; --sky: #6FA0FF;
  --code-bg: #0A101D; --code-ink: #DCE7FA; --code-dim: #8FA3C7; color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 2px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 14px; padding-block: 10px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font: 900 20px/1 var(--display); text-decoration: none; letter-spacing: 0.01em; }
.logo svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; gap: 6px; margin-inline-start: auto; align-items: center; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.top nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.langpick { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.langpick select { background: var(--surface); border: 2px solid var(--ink); border-radius: 8px; padding: 5px 8px; font-weight: 600; font-size: 14px; color: var(--ink); }

/* buttons + badges */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: var(--brand-ink); border: 2px solid var(--ink); border-radius: 12px;
  padding: 12px 20px; font: 700 17px/1.2 var(--display); text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--ink); }
.btn:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--ink); }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; }
.badge { display: inline-block; font: 700 12px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; padding: 5px 8px; border-radius: 6px; border: 2px solid var(--ink); }
.badge.free { background: var(--brand); color: var(--brand-ink); }
.badge.soon { background: var(--surface); color: var(--muted); border-color: var(--line); }
.badge.probox { background: var(--check); color: var(--check-ink); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding-block: 44px 36px; }
.kicker { font: 700 13px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.hero h1 { font-weight: 900; font-size: clamp(34px, 5.4vw, 58px); margin-block: 14px 16px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 24px; }
.hero .note { font-size: 14px; color: var(--muted); }
.stage { background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; padding: 10px; box-shadow: 8px 8px 0 var(--ink); }
svg.ill { display: block; width: 100%; height: auto; direction: ltr; }

/* sections */
section.block { padding-block: 30px; }
section.block > h2 { font-weight: 900; font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 18px; }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.type { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.type.open { border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.type .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.type svg { width: 44px; height: 44px; flex: none; }
.type h3 { font-size: 19px; font-weight: 700; }
.type p { font-size: 15px; color: var(--muted); flex: 1; }
.type a.go { font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.how div { border-inline-start: 4px solid var(--check); padding-inline-start: 14px; }
.how h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.how p { color: var(--muted); font-size: 16px; }
.probox { background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.probox h2 { font-weight: 900; font-size: 26px; margin-block: 10px; }
.probox p { color: var(--muted); }
.probox .btn { margin-top: 18px; }
.probox ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.probox li { display: flex; gap: 10px; align-items: center; border: 2px dashed var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 16px; }
.probox li svg { width: 18px; height: 18px; flex: none; }
footer { border-top: 2px solid var(--line); margin-top: 26px; padding-block: 22px 30px; color: var(--muted); font-size: 14px; }

/* guide */
.ghead { padding-block: 30px 8px; }
.ghead a.back { font-weight: 600; font-size: 15px; color: var(--muted); }
.ghead h1 { font-weight: 900; font-size: clamp(30px, 4.6vw, 48px); margin-block: 12px 10px; }
.ghead p { color: var(--muted); font-size: 19px; max-width: 36em; }
.ghead .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; padding-block: 18px 10px; }
.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 74px); background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 14px; }
.rail .bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; margin-block: 8px 12px; }
.rail .bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.rail .count { font: 700 14px/1.2 var(--display); }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rail li a { display: flex; gap: 8px; align-items: baseline; text-decoration: none; font-size: 14.5px; padding: 5px 6px; border-radius: 7px; color: var(--muted); }
.rail li a:hover { background: var(--bg); color: var(--ink); }
.rail li a b { font: 700 12px/1 var(--mono); min-width: 1.6em; }
.rail li.ok a { color: var(--ink); }
.rail li.ok a b { color: var(--brand); }
.steps { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.step { background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; scroll-margin-top: 90px; }
.step header { display: flex; gap: 14px; align-items: center; }
.pad { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--check); color: var(--check-ink); border: 2px solid var(--ink); box-shadow: 0 0 0 5px var(--surface), 0 0 0 7px var(--check);
  display: grid; place-items: center; font: 900 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.step.ok .pad { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 5px var(--surface), 0 0 0 7px var(--brand); }
.step header small { display: block; font: 700 12px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.step h2 { font-weight: 700; font-size: clamp(21px, 2.8vw, 27px); }
.step figure { margin: 0; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 8px; }
.step ol.do { margin: 0; padding-inline-start: 1.3em; display: flex; flex-direction: column; gap: 8px; max-width: 40em; }
.step ol.do li::marker { font-weight: 700; color: var(--brand); }
.code { border-radius: 12px; overflow: hidden; border: 2px solid var(--ink); direction: ltr; }
.code .bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--code-bg); color: var(--code-dim); padding: 8px 12px; font: 500 12.5px/1 var(--mono); border-bottom: 1px solid #22304d; }
.code button { background: transparent; border: 1.5px solid var(--code-dim); color: var(--code-ink); border-radius: 7px; padding: 5px 10px; font: 600 12.5px/1 var(--body); cursor: pointer; }
.code pre { margin: 0; background: var(--code-bg); color: var(--code-ink); padding: 14px 16px; overflow-x: auto; font: 500 14px/1.6 var(--mono); tab-size: 2; text-align: left; }
.explain h3 { font: 700 13px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.explain ul { margin: 0; padding-inline-start: 1.2em; display: flex; flex-direction: column; gap: 6px; max-width: 40em; }
.callout { border-radius: 10px; padding: 12px 14px; font-size: 16px; border: 2px solid var(--line); max-width: 42em; }
.callout b { font-family: var(--display); }
.callout.tip { border-color: var(--brand); }
.callout.tip b { color: var(--brand); }
.callout.mis { border-color: var(--lava); }
.callout.mis b { color: var(--lava); }
.donebtn { align-self: flex-start; }
.nextup { border: 2px dashed var(--ink); border-radius: 18px; padding: 22px; }
.nextup h2 { font-weight: 900; font-size: 24px; margin-bottom: 12px; }
.nextup ul { margin: 0; padding-inline-start: 1.2em; display: flex; flex-direction: column; gap: 8px; max-width: 40em; }

/* drawing tokens */
.i-ink { fill: var(--ink); } .i-sur { fill: var(--surface); } .i-bg { fill: var(--bg); } .i-brand { fill: var(--brand); } .i-lava { fill: var(--lava); }
.i-check { fill: var(--check); } .i-sky { fill: var(--sky); } .i-soft { fill: var(--line); } .i-mut { fill: var(--muted); }
.i-o { stroke: var(--ink); stroke-width: 2; } .i-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-dash { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
.i-t { fill: var(--ink); font: 700 11px var(--mono); } .i-tm { fill: var(--muted); font: 500 10px var(--mono); } .i-tw { fill: var(--brand-ink); font: 700 11px var(--mono); }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 28px 22px; }
  .probox { grid-template-columns: minmax(0, 1fr); }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rail { position: static; }
  .rail ol { display: none; }
  .rail .bar { margin-bottom: 0; }
  .stage { box-shadow: 5px 5px 0 var(--ink); }
  .step { padding: 16px; }
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: transform 0.08s, box-shadow 0.08s; } html { scroll-behavior: smooth; } }
.i-w { stroke: var(--brand-ink); }
.type .gno { font: 700 12px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.type .gmeta { font-size: 13px; color: var(--muted); }
.type .gprog { font: 700 13px/1.2 var(--display); color: var(--brand); }
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; font: 700 18px/1.3 var(--display); }
.faq p { color: var(--muted); margin-top: 8px; max-width: 40em; }
.ghead .gno { font: 700 13px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-top: 16px; }
.endrow { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.footnote { margin-top: 8px; }
.langnote { background: var(--surface); border: 2px solid var(--lava); border-radius: 10px; padding: 10px 14px; margin-top: 16px; font-size: 15px; }

.probox .pronote { font-size: 14px; margin-top: 12px; }
.probox a.btn { text-decoration: none; }

/* ---------- v2: multi-page site ---------- */
body { margin: 0; } img { max-width: 100%; height: auto; } [hidden] { display: none !important; }
.langhint { display: block; background: var(--check); color: var(--check-ink); text-align: center; font-weight: 700; padding: 9px 14px; text-decoration: none; border-bottom: 2px solid var(--ink); }
.footlinks { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 14px; align-items: baseline; }
.footlinks a { font-weight: 600; color: var(--ink); }
.probox .promore { margin-top: 12px; font-weight: 600; }
.promore a { color: var(--brand); text-underline-offset: 3px; }
.pp a.back { font-weight: 600; font-size: 15px; color: var(--muted); display: inline-block; margin-bottom: 18px; }
.pphero { align-items: start; }
.pphero h1 { margin-top: 12px; }
.ppprice { margin-top: 20px; }
.ppprice b { font: 900 46px/1 var(--display); }
.pphero .cta { margin-top: 14px; }
.pphero .pronote, .ppcta .pronote { font-size: 14px; color: var(--muted); max-width: 30em; }
.ppget { padding: 24px; }
.ppget h2 { font-size: 22px; font-weight: 900; margin-bottom: 14px; }
.ppget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ppget li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ppget li svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.pplessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pplesson { background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; scroll-margin-top: 90px; }
.pplesson header { display: flex; gap: 16px; align-items: center; }
.pplesson header small { display: block; font: 700 12px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.pplesson h3 { font-size: 21px; font-weight: 700; }
.pplesson .pad { width: 46px; height: 46px; font-size: 19px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--check); }
.pplesson .pps { color: var(--muted); }
.pplesson figure { margin: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #F7FAFD; direction: ltr; }
svg.ppfig { display: block; width: 100%; height: auto; }
.ppb { margin: 0; padding-inline-start: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.ppb li::marker { color: var(--brand); }
.pplesson details { border-top: 2px dashed var(--line); padding-top: 12px; margin-top: auto; }
.pplesson summary { cursor: pointer; font-weight: 700; }
.pplesson details ol { margin: 10px 0 0; padding-inline-start: 1.5em; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 15.5px; }
.pplookp { color: var(--muted); margin-bottom: 16px; max-width: 40em; }
.pplook { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pplook img { display: block; width: 100%; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
.ppcta { align-items: center; }
.ppcta .btn { margin-top: 0; }
.legal { max-width: 760px; padding-block: 34px 10px; }
.legal h1 { font-weight: 900; font-size: clamp(30px, 4.6vw, 44px); margin-bottom: 8px; }
.legal .upd { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.legal h2 { font-weight: 700; font-size: 22px; margin: 28px 0 8px; }
.legal p, .legal li { max-width: 42em; }
.legal p { margin-block: 10px; }
.legal ul { padding-inline-start: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--brand); font-weight: 600; }
.legal .box { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 16px 18px; margin-block: 16px; }
@media (max-width: 820px) {
  .pplessons { grid-template-columns: minmax(0, 1fr); }
  .pplook { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
}

/* ---------- v3: accessibility + new features ---------- */
html { scroll-padding-top: 100px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 10px; top: -80px; z-index: 30; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
main:focus { outline: none; }
.top { display: block; }
.a11ybtn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 5px 10px; font: 600 14px/1.2 var(--body); cursor: pointer; min-height: 34px; }
.a11ybtn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a11ybtn svg circle { fill: currentColor; stroke: none; }
.a11ybtn[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.a11ypanel { border-top: 2px solid var(--ink); background: var(--surface); padding-block: 16px 18px; }
.a11ypanel h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.a11yrow { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 10px; }
.a11yrow fieldset { border: 2px solid var(--line); border-radius: 10px; padding: 6px 12px 8px; margin: 0; display: flex; gap: 14px; }
.a11yrow legend { font-weight: 700; padding-inline: 6px; }
.a11yrow label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 32px; cursor: pointer; }
.a11yrow input { width: 20px; height: 20px; accent-color: var(--brand); }
.a11yrow a { font-weight: 600; color: var(--brand); }
.a11yrow .btn { padding: 8px 14px; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
.footlinks a { display: inline-block; padding-block: 4px; min-height: 24px; }
.how h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.explain.more { background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.steprow { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-start; }
.stuck { font-size: 15.5px; max-width: 34em; }
.stuck summary { cursor: pointer; font-weight: 600; color: var(--muted); padding-block: 12px; text-decoration: underline; text-underline-offset: 3px; }
.stuck > div { border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.stuck ul { margin: 8px 0; padding-inline-start: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.stuck a { color: var(--brand); font-weight: 600; }
.dlg { border: 2px solid var(--ink); border-radius: 18px; background: var(--surface); color: var(--ink); padding: 26px; max-width: min(480px, calc(100vw - 32px)); box-shadow: 8px 8px 0 var(--ink); }
.dlg::backdrop { background: rgba(10, 16, 29, 0.6); }
.dlg h2 { font-weight: 900; font-size: 24px; margin-bottom: 10px; }
.dlg p { color: var(--muted); margin-bottom: 20px; }
.cert { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 22px; align-items: center; border: 2px solid var(--ink); border-radius: 18px; background: var(--surface); padding: 22px; }
.certform h2 { font-weight: 900; font-size: 24px; margin-bottom: 12px; }
.certform label { display: block; font-weight: 700; margin-bottom: 6px; }
.certform input { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; }
.certnote { font-size: 14px; color: var(--muted); margin-block: 8px 14px; }
.certcard { border: 3px double var(--ink); border-radius: 14px; padding: 26px 20px; text-align: center; background: #fff; color: #132038; }
.certlogo { display: inline-flex; align-items: center; gap: 8px; font: 900 18px/1 var(--display); }
.certlogo svg { width: 26px; height: 26px; }
.certh { font: 700 13px/1.3 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: #08756E; margin-top: 18px; }
.certname { font: 900 clamp(24px, 4vw, 36px)/1.2 var(--display); margin-block: 12px 8px; overflow-wrap: anywhere; }
.certline { color: #56657F; }
.certguide { font: 700 20px/1.3 var(--display); margin-top: 6px; }
.certdate { margin-top: 18px; font-size: 14px; color: #56657F; }
.parents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.parents > div { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 18px; }
.parents h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.parents p { color: var(--muted); }
.searchbox label { display: block; font-weight: 700; margin-bottom: 8px; }
.searchbox input { width: 100%; max-width: 560px; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; }
.qres h2 { font-size: 20px; font-weight: 700; margin: 18px 0 8px; }
.qres ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.qres li, .qres li a { display: flex; flex-direction: column; gap: 2px; }
.qres li { background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.qres li a { text-decoration: none; }
.qres li b { font-size: 13px; color: var(--muted); }
.glos { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.glos > div { background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.glos dt { font: 700 16px/1.3 var(--mono); }
.glos dd { margin: 4px 0 0; color: var(--muted); }
html.fs1 body { zoom: 1.2; } html.fs2 body { zoom: 1.4; }
html.ul a { text-decoration: underline !important; text-underline-offset: 3px; }
html.sf { --display: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; --body: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
html.sf body { letter-spacing: 0.02em; word-spacing: 0.08em; line-height: 1.75; }
html.nm *, html.nm *::before, html.nm *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
html.hc { --bg: #FFFFFF; --grid: transparent; --surface: #FFFFFF; --ink: #000000; --muted: #1C1C1C; --line: #000000; --brand: #00524C; --brand-ink: #FFFFFF; --lava: #8A1010; --check: #FFD500; --check-ink: #000000; --sky: #0037C4; color-scheme: light; }
html.hc body { background-image: none; }
@media (max-width: 820px) {
  .cert, .parents, .glos { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  body.certprint > *:not(main), body.certprint main > .wrap > *:not(.guide):not(.block), body.certprint .rail, body.certprint .steps > *:not(.cert), body.certprint .block > *:not(.cert), body.certprint .certform { display: none !important; }
  body.certprint { background: #fff !important; }
  body.certprint .cert { border: 0; display: block; padding: 0; }
  body.certprint .guide { display: block; }
  body.certprint .certcard { padding: 60px 30px; margin: 40px auto; max-width: 640px; }
}
.faq summary, .pplesson summary { padding-block: 3px; min-height: 26px; }
.promore a, .stuck a, .ghead a.back, .pp a.back, .type a.go, .legal a, .a11yrow a { display: inline-block; padding-block: 3px; min-height: 26px; }

/* ---------- v4: game kits ---------- */
.gmhero { padding-top: 34px; }
.gmhero h1 { font-weight: 900; font-size: clamp(34px, 5.4vw, 58px); margin-block: 14px 16px; }
.gmhero p.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.kit { background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; scroll-margin-top: 90px; }
.kitshots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--ink); border-bottom: 2px solid var(--ink); }
.kitshots img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 650; object-fit: cover; background: #132038; }
.kitbody { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.kithead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.kithead small { display: block; font: 700 12px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.kithead h3 { font-size: 26px; font-weight: 900; }
.kitprice { font: 900 34px/1 var(--display); white-space: nowrap; direction: ltr; }
.kitcols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 26px; }
.kitcols h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.kitbuy { margin-top: 18px; }
.kitbuy .pronote { font-size: 14px; color: var(--muted); }
.kitnext { margin-top: 18px; border: 2px dashed var(--line); border-radius: 14px; padding: 18px 20px; }
.kitnext h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.kitnext p { color: var(--muted); max-width: 46em; }
.how.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.how.two h2 { font-size: 21px; margin-bottom: 8px; }
.how.two .ppb { margin-bottom: 10px; }
.enonly { color: var(--muted); font-size: 14px; }
.gamesbox { align-items: center; }
.gamesshot { display: block; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.gamesshot img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .kitshots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kitcols, .how.two { grid-template-columns: minmax(0, 1fr); }
  .kithead { flex-direction: column; gap: 8px; }
}
.legal h2[id] { scroll-margin-top: 90px; }

/* ---------- v5: about ---------- */
.abhero { padding-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: center; }
.abhero h1 { font-weight: 900; font-size: clamp(32px, 5vw, 52px); margin-block: 14px 16px; }
.abhero p.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.ablogo { display: block; width: 100%; height: auto; border-radius: 28px; border: 2px solid var(--ink); }
.abp { color: var(--muted); max-width: 46em; margin-top: 10px; }
.abgames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.abgame { background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.abgame h3 { font-size: 21px; font-weight: 700; }
.abgame p { color: var(--muted); }
.abgame a.go { margin-top: auto; font-weight: 700; display: inline-block; padding-block: 3px; min-height: 26px; align-self: flex-start; }
.footlinks a.madeby { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.footlinks a.madeby img { border-radius: 7px; display: block; }
@media (max-width: 860px) {
  .abhero { grid-template-columns: minmax(0, 1fr); }
  .ablogo { max-width: 200px; }
  .abgames { grid-template-columns: minmax(0, 1fr); }
}
