/* Clooit · site styles (home, games, simulations, teacher, locker). Games keep their own arcade look.
   Colors (the founder, November 29, 2026: "Black and white is boring. I still want clean but not black and white"):
   Night navy #141A33 for the bar, footer and dark sections (the yellow probe #FFC531 stays on dark only), Clooit Blue
   #2F5BEA for buttons and links, a soft cool page tint, white cards, and one color per kind of game (Sports orange,
   Video Games violet, Game Shows raspberry, Simulations teal). Every text pair is 4.5:1 or better. Type: Inter (optical sizes give the
   Inter Display look on headlines), self-hosted. The teacher board's projector view and the locker use .theme-dark. */
@font-face { font-family: 'Inter'; src: url('/vendor/fonts/inter-latin-opsz.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --ink-c: #121212; --paper: #ffffff; --graphite: #6b7280; --probe: #ffc531;
  --night: #141a33; --night-2: #1d2546; --night-3: #242d55; --night-line: #2c3560; --night-line-2: #3a4470;
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #eef1fa; --line: #e2e6f0; --line-2: #cdd3e1;
  --ink: #141a33; --ink-2: #3b4256; --muted: #5f6678;
  --brand: #2f5bea; --brand-ink: #ffffff; --brand-soft: #eaf0ff; --gold: #ffc531; --good: #0f7a50; --bad: #c63d2f;
  --accent: var(--brand); --accent-deep: #2550d6; --panel: var(--surface); --panel2: var(--surface); --bg2: var(--surface-2);
  /* one color per kind of game: text color, then its tile tint */
  --c-sports: #c2410c; --t-sports: #fff1e6; --c-video: #6741d9; --t-video: #f1ecff;
  --c-shows: #c2255c; --t-shows: #ffeaf1; --c-sims: #0b7285; --t-sims: #e3f7f9;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: var(--font); --body: var(--font); --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 26, 51, .06), 0 4px 14px rgba(20, 26, 51, .07); --shadow-lift: 0 2px 4px rgba(20, 26, 51, .08), 0 12px 28px rgba(20, 26, 51, .16);
  --focus: #2f5bea;
  --wrap: 1240px; --gut: clamp(16px, 3vw, 28px);
}
.theme-dark {
  color-scheme: dark;
  --bg: #10152b; --surface: #19203d; --surface-2: #212a4c; --line: #2c3560; --line-2: #3a4470;
  --ink: #ffffff; --ink-2: #d5d9ea; --muted: #a9afc6;
  --brand: #ffc531; --brand-ink: #141a33; --brand-soft: #2a2a3a; --gold: #ffc531; --good: #4fd18b; --bad: #ff8a7a;
  --accent: #ffc531; --accent-deep: #e6ad1f; --panel: #19203d; --panel2: #1d2546; --bg2: #151b36;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3); --shadow-lift: 0 12px 30px rgba(0, 0, 0, .45);
  --focus: #ffc531;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
/* Short pages: the main area grows so the footer sits at the bottom of the window, with no white strip under it. */
body:has(> .foot) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(> .foot) > * { flex-shrink: 0; }
body:has(> .foot) > main { flex-grow: 1; width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.022em; line-height: 1.12; }
h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; }
h2 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header: Night bar, white logo with the yellow probe ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff; --focus: #ffc531; }
/* A calm bar: plain text links, the current page in white with a thin rule under it, no pills or glass. */
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: inline-flex; align-items: center; color: #fff; text-decoration: none; flex: none; padding: 6px 0; }
.logo svg { height: 40px; width: auto; display: block; }  /* brand book: primary logo at least 120px wide */
.logo .probe, .foot .probe { fill: #ffc531; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: #c9cde0; text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 8px 10px; border-radius: 8px; position: relative; transition: color .15s; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px; border-radius: 2px; background: #ffc531; }
.search { position: relative; flex: 1; max-width: 360px; margin-left: auto; }
.search input { width: 100%; height: 38px; border-radius: 999px; border: 1px solid var(--night-line); background: var(--night-2); padding: 0 14px 0 38px; font: 400 14.5px var(--font); color: #fff; transition: border-color .15s, background .15s; }
.search input::placeholder { color: #a9afc6; }
.search input:focus { outline: none; border-color: #6f7aa8; background: var(--night-3); }
.search svg { position: absolute; left: 13px; top: 10px; width: 18px; height: 18px; color: #a9afc6; pointer-events: none; }
.results { position: absolute; top: 46px; left: 0; right: 0; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); padding: 6px; display: grid; gap: 2px; max-height: 60vh; overflow: auto; --focus: var(--brand); }
.results a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.results a:hover, .results a.on { background: var(--brand-soft); }
.results img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; }
.results b { font-weight: 600; font-size: 15px; display: block; } .results small { color: var(--muted); font-size: 13px; }
.results .none { padding: 12px; color: var(--muted); font-size: 14px; }
.results .rcode { width: 64px; height: 36px; border-radius: 6px; background: var(--night); color: #fff; display: grid; place-items: center; font: 700 14px var(--font); letter-spacing: .02em; }
.me { display: flex; align-items: center; gap: 8px; flex: none; }
.gem { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: #fff; padding: 6px 10px; border-radius: 999px; background: var(--night-3); text-decoration: none; }
.gem svg { width: 16px; height: 16px; color: #7cc8f0; }
.ava { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: inline-flex; box-shadow: 0 0 0 2px var(--night-line-2); }
.ava svg { width: 100%; height: 100%; }
.top .btn.quiet { background: transparent; color: #fff; border-color: var(--night-line-2); }
.top .btn.quiet:hover { background: var(--night-3); }
.top .icon-btn { background: transparent; color: #fff; border-color: var(--night-line-2); }
.top .icon-btn:hover { background: var(--night-3); }
.top .join-btn[aria-current="page"] { border-color: #ffc531; }
.me .menu-btn { display: none; }
@media (max-width: 860px) {
  .nav { display: none; } .search { max-width: none; }
  .me .menu-btn { display: inline-flex; }
  .top.open .nav { display: grid; position: absolute; top: 60px; left: 0; right: 0; margin: 0; background: var(--night); border-bottom: 1px solid var(--night-line); padding: 8px var(--gut) 14px; }
  .top.open .nav a { font-size: 17px; padding: 12px 0; }
  .top.open .nav a[aria-current="page"]::after { left: 0; right: auto; width: 24px; bottom: 6px; }
}
@media (max-width: 1000px) and (min-width: 861px) { .nav a { padding: 8px 7px; } .nav { margin-left: 0; } }
@media (max-width: 560px) { .gem { display: none; } .logo svg { height: 24px; } .key-btn .lbl { display: none; } .logo .word { display: none; } }
/* a phone: the bar's items sit closer, and the search box gives up its width first (the Join link stays) */
/* (the logo's picture keeps the wordmark's width with the word hidden: the link is cut to the mark itself, 30 px) */
@media (max-width: 560px) { .top .wrap { gap: 10px; } .me { gap: 6px; } .logo { width: 30px; overflow: hidden; } .logo svg { flex: none; } .search { min-width: 0; } .search input { padding-right: 8px; } .top .join-btn { padding: 0 11px; } }

/* ---------- buttons and chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); font: 600 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:hover { background: var(--accent-deep); } .btn:active { transform: translateY(1px); }
.btn.ghost, .btn.quiet { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover, .btn.quiet:hover { background: var(--surface-2); }
.btn.sm { height: 36px; padding: 0 13px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.play-y { background: #ffc531; color: var(--night); } .btn.play-y:hover { background: #ffd35c; }  /* yellow buttons only on Night */
.btn.on-ink { background: #fff; color: var(--night); } .btn.on-ink:hover { background: #e2e6f0; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); } .icon-btn svg { width: 20px; height: 20px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 500 14px var(--font); cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip svg { width: 16px; height: 16px; }

/* ---------- game cards ---------- */
.card { display: grid; gap: 9px; align-content: start; text-decoration: none; color: var(--ink); border-radius: var(--radius); }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.thumb .ico { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; }
.card:hover .thumb { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card:hover .thumb img { transform: scale(1.04); }
.thumb .play { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: #ffc531; display: grid; place-items: center; opacity: 0; transform: scale(.85); transition: .18s; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.thumb .play svg { width: 18px; height: 18px; margin-left: 2px; }
.card:hover .play, .card:focus-visible .play { opacity: 1; transform: none; }
.badge { position: absolute; left: 10px; top: 10px; font: 600 11px var(--font); letter-spacing: .02em; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: #141a24; }
.badge.live { background: var(--night); color: #fff; display: inline-flex; gap: 6px; align-items: center; }
.badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ffc531; }
.card h3 { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.card .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.card .blurb { color: var(--ink-2); font-size: 14px; line-height: 1.45; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .blurb.whole { display: block; -webkit-line-clamp: unset; overflow: visible; }
.card.soon { pointer-events: none; } .card.soon .thumb { filter: grayscale(.4); opacity: .7; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 26px 20px; }

/* ---------- rows (horizontal shelves) ---------- */
.shelf { display: grid; gap: 14px; }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.shelf-head > div:first-child { min-width: 0; }
.shelf-head p { color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.shelf-head .arrows { display: flex; gap: 6px; align-items: center; }
.shelf-head a.all { font-size: 14px; font-weight: 500; text-decoration: none; margin-right: 6px; white-space: nowrap; }
@media (max-width: 700px) { .shelf-head .icon-btn { display: none; } .shelf-head a.all { margin-right: 0; } }
.shelf-head a.all:hover { text-decoration: underline; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 10px; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .row { grid-auto-columns: calc((100% - 4 * 18px) / 5); } }
@media (max-width: 700px) { .row { grid-auto-columns: 72%; } }

/* ---------- site pages (home, games, simulations, about, 404): <main class="site"> ----------
   Restraint over decoration: one idea per section, big Inter Display headlines, real game pictures, lots of room.
   Sections are full width (<section class="sec">) with the content inside a .wrap. Light tint and Ink sections
   alternate. Motion is only hover feedback (150 to 300 ms) and is switched off for reduced motion. */
main.site { display: block; }
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec.tight { padding-top: 0; }
.sec.tint { background: var(--surface-2); }
.sec.ink { background: linear-gradient(135deg, var(--night) 0%, #1f2a5c 100%); color: #fff; --focus: #ffc531; }
.display { font-size: clamp(44px, 5.4vw, 76px); font-weight: 700; letter-spacing: -.038em; line-height: 1.02; }
.headline { font-size: clamp(30px, 3.5vw, 48px); font-weight: 700; letter-spacing: -.032em; line-height: 1.06; }
.lede { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 44ch; }
.ink .headline, .ink h2, .ink h3 { color: #fff; }
.ink .lede { color: #d5d9ea; }
.sec-head { display: grid; gap: 14px; max-width: 760px; }
.sec-head.row2 { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 32px; }
.sec-head.row2 > div { display: grid; gap: 14px; }
@media (max-width: 760px) { .sec-head.row2 { grid-template-columns: 1fr; } }
.more { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 16px; color: var(--brand); text-decoration: none; white-space: nowrap; }
.more::after { content: '›'; font-size: 1.25em; line-height: 1; margin-left: 4px; transition: transform .2s ease; }
.more:hover { text-decoration: underline; } .more:hover::after { transform: translateX(2px); }
.ink .more { color: #fff; }
.acts { display: flex; gap: 14px 26px; align-items: center; flex-wrap: wrap; }
.btn.lg { height: 48px; padding: 0 24px; border-radius: 999px; font-size: 16px; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 18px; background: var(--night); box-shadow: 0 1px 2px rgba(20, 26, 51, .08), 0 18px 48px rgba(20, 26, 51, .2); }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.5; max-width: 60ch; }
.ink .shot img { box-shadow: 0 0 0 1px var(--night-line), 0 18px 48px rgba(0, 0, 0, .45); }
.ink .shot figcaption { color: #a9afc6; }

/* home: first screen. The full logo leads (the header shows a small one), then the tagline as the headline. */
.lead-in { padding: clamp(36px, 5.5vw, 68px) 0 clamp(56px, 7vw, 92px); background: radial-gradient(ellipse 60% 70% at 92% 8%, rgba(47, 91, 234, .16), transparent 70%), radial-gradient(ellipse 50% 60% at 2% 100%, rgba(255, 197, 49, .22), transparent 70%), linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.lead-in .wrap { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.lead-in .brandlogo { display: block; height: clamp(60px, 6.2vw, 86px); width: auto; }
.lead-in h1 { margin-top: clamp(22px, 2.6vw, 34px); }
.lead-in .lede { margin-top: 16px; }
.lead-in .acts { margin-top: 30px; }
@media (max-width: 900px) { .lead-in .wrap { grid-template-columns: 1fr; } }
/* home: the class code box under Play a Game (a plain form that opens /join/?c=CODE) */
.joincode { margin-top: 28px; display: grid; gap: 8px; max-width: 360px; }
.joincode label { font-weight: 600; font-size: 15px; color: var(--ink); }
.jc-row { display: flex; gap: 8px; }
.jc-row input { flex: 1 1 0; width: 0; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 14px; font: 600 18px var(--font); letter-spacing: .12em; text-transform: uppercase; }
.jc-row input::placeholder { color: #9aa1b3; letter-spacing: .12em; }
.jc-row input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.jc-row .btn { height: 44px; background: var(--ink); color: var(--surface); }
.jc-row .btn:hover { background: var(--ink-2); }

/* home: the four kinds of games, as big picture tiles */
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 760px) { .kinds { grid-template-columns: 1fr; gap: 16px; } }
.kind { display: grid; grid-template-rows: auto 1fr; gap: 22px; background: var(--surface-2); border-radius: 24px; padding: clamp(24px, 2.6vw, 36px) clamp(24px, 2.6vw, 36px) 0; overflow: hidden; text-decoration: none; color: var(--ink); }
.kind h3 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.028em; line-height: 1.08; }
.kind p { color: var(--ink-2); font-size: 16.5px; line-height: 1.5; margin-top: 8px; max-width: 42ch; }
.kind .more { margin-top: 14px; }
.kind .pic { align-self: end; border-radius: 14px 14px 0 0; overflow: hidden; aspect-ratio: 16 / 8; background: var(--night); }
/* each kind of game in its own color (the link says which kind it is) */
.kind[href$="#sports"] { background: var(--t-sports); } .kind[href$="#sports"] .more { color: var(--c-sports); }
.kind[href$="#video"] { background: var(--t-video); } .kind[href$="#video"] .more { color: var(--c-video); }
.kind[href$="#shows"] { background: var(--t-shows); } .kind[href$="#shows"] .more { color: var(--c-shows); }
.kind[href^="/simulations"] { background: var(--t-sims); } .kind[href^="/simulations"] .more { color: var(--c-sims); }
.kind .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.kind:hover .pic img { transform: scale(1.03); }
.kind:hover .more { text-decoration: underline; }

/* home: browse by standard (subject first; today the five Unit 2 topics of Earth and Space Science) */
.subject-h { font-size: 20px; line-height: 1.25; margin: clamp(28px, 3.5vw, 40px) 0 4px; }
.subject-sub { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.subject-sub + .topics { margin-top: 0; }
.build-note { margin-top: 18px; }
.topics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 1100px) { .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .topics { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; } .topics > * { scroll-snap-align: start; } }
.topic { background: var(--surface); border-radius: 20px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; border-top: 5px solid var(--tc, var(--brand)); box-shadow: var(--shadow); }
.topic .code { font: 700 13px var(--font); color: var(--tc, var(--brand)); letter-spacing: .02em; }
.topic:nth-child(5n+1) { --tc: var(--brand); } .topic:nth-child(5n+2) { --tc: var(--c-sports); } .topic:nth-child(5n+3) { --tc: var(--c-video); }
.topic:nth-child(5n+4) { --tc: var(--c-sims); } .topic:nth-child(5n+5) { --tc: var(--c-shows); }
.topic h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.18; }
.topic p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.topic .links { margin-top: auto; padding-top: 10px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.topic .links a { font-size: 15px; white-space: normal; display: inline; }
.topic .fit { color: var(--muted); font-size: 14px; line-height: 1.45; }
.topic .fit a { color: var(--ink); }
.note-line { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 80ch; }
.tint .note-line { color: var(--ink-2); }  /* Graphite on the tint is under 4.5:1 */

/* home: for teachers (an Ink section) */
.teach .top2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
@media (max-width: 900px) { .teach .top2 { grid-template-columns: 1fr; } }
.teach .acts { margin-top: 28px; }
.teach .top2 .lede { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.facts li { padding: 20px 0 22px; border-top: 1px solid var(--night-line-2); display: grid; gap: 6px; align-content: start; }
.facts b { color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.facts span { color: #c0c5db; font-size: 15px; line-height: 1.5; }

/* home: who made it */
.maker .wrap { display: grid; grid-template-columns: 220px minmax(0, 660px); gap: clamp(28px, 4vw, 56px); align-items: center; }
.maker img { width: 220px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; background: var(--surface-2); }
.maker .lede { max-width: 52ch; margin-top: 14px; }
.maker .acts { margin-top: 22px; }
@media (max-width: 640px) { .maker .wrap { grid-template-columns: 1fr; } .maker img { width: 150px; } }

/* the games page: a short bar in each kind's color above its heading */
.group h2[id^="h-"]::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--kc, var(--brand)); margin-bottom: 12px; }
#h-sports { --kc: var(--c-sports); } #h-video { --kc: var(--c-video); } #h-shows { --kc: var(--c-shows); } #h-sims { --kc: var(--c-sims); }

/* page heads (games, simulations, 404) */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 36px); background: radial-gradient(ellipse 55% 90% at 95% 0%, rgba(47, 91, 234, .13), transparent 70%), linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head .lede { max-width: 52ch; }

/* older page head, still used by the teacher hub */
.intro { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.intro h1 { font-size: clamp(24px, 2.6vw, 32px); }
.intro p { color: var(--muted); max-width: 60ch; margin-top: 4px; }

/* ---------- sections and footer ---------- */
main.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 24px; padding-bottom: 56px; }
.foot { background: var(--night); color: #a9afc6; font-size: 14px; --focus: #ffc531; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; padding-top: 48px; padding-bottom: 36px; align-items: start; }
.foot .flogo { color: #fff; display: inline-flex; margin-bottom: 14px; } .foot .flogo svg { height: 40px; width: auto; }
.foot p { margin: 0; line-height: 1.6; max-width: 46ch; } .foot .ftag { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.foot .fnav { display: grid; grid-template-columns: repeat(3, auto); gap: 24px 56px; }
.foot .fcol { display: grid; gap: 9px; align-content: start; }
.foot .fcol h2 { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: #fff; margin-bottom: 3px; }
.foot a { color: #c9cde0; text-decoration: none; } .foot a:hover { color: #fff; text-decoration: underline; }
.foot .fsmall { grid-column: 1 / -1; border-top: 1px solid var(--night-line); padding-top: 18px; font-size: 13px; color: #9aa1ba; max-width: none; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } .foot .fnav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.empty-note { color: var(--muted); padding: 30px 0; text-align: center; }

/* ---------- legacy pieces still used by the teacher board, locker and info pages ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 18px var(--gut) 64px; display: grid; gap: 22px; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--font); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.kick { font: 600 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); max-width: 62ch; }
.small { font-size: 15px; color: var(--muted); } .small li { margin: 4px 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 26px); display: grid; gap: 14px; box-shadow: var(--shadow); }
.err { color: var(--bad); font-weight: 500; margin: 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.tabsrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tabsrow a, .tabsrow button { font: 500 14px var(--font); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--surface); cursor: pointer; }
.tabsrow [aria-current="page"], .tabsrow [aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
