:root {
  color-scheme: dark;
  --base: #110e1a;
  --panel: #201929;
  --foreground: #fbf4ff;
  --muted: #c6bacd;
  --line: #45364c;
  --coral: #ff94ad;
  --mint: #b8ffd9;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 86% 26%, #24182e 0%, transparent 55%), var(--base);
  color: var(--foreground);
  font: 1rem/1.55 system-ui, sans-serif;
}
a { color: inherit; }
a:hover { color: var(--mint); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.topbar { min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.wordmark { white-space: nowrap; text-decoration: none; font-family: var(--mono); font-weight: 750; letter-spacing: -.06em; }
.wordmark span { color: var(--coral); }
nav { display: flex; gap: clamp(12px, 3vw, 36px); }
nav > a, .games-menu summary { padding-block: 20px; text-decoration: none; font-size: .94rem; color: var(--muted); }
.games-menu { position: relative; }
.games-menu summary { cursor: pointer; color: var(--foreground); box-shadow: inset 0 -2px var(--coral); }
.games-menu ul { position: absolute; z-index: 2; top: 100%; right: 0; min-width: 140px; margin: 5px 0 0; padding: 7px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; list-style: none; }
.games-menu li a { display: block; padding: 8px 10px; white-space: nowrap; text-decoration: none; }
.games-menu li a:hover { background: var(--base); }
.page-label { display: flex; align-items: center; gap: 12px; margin-block: 34px 22px; }
.page-label span { width: 25px; height: 1px; background: var(--coral); }
.page-label h1, .eyebrow { margin: 0; font: 750 .75rem var(--mono); letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { color: var(--coral); }
.hero { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.intro h2 { font-size: clamp(4rem, 8.3vw, 8rem); line-height: .83; letter-spacing: -.083em; margin: 20px 0 24px; }
.intro h2 em { color: var(--coral); font-style: normal; }
.intro h2 em span { color: var(--mint); }
.lede { max-width: 28ch; color: var(--muted); font-size: clamp(1.04rem, 1.55vw, 1.25rem); margin: 0 0 25px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px 15px; align-items: center; color: var(--muted); font-size: .81rem; }
kbd { display: inline-grid; min-width: 26px; height: 26px; place-content: center; padding-inline: 4px; background: var(--panel); font: 700 .81rem var(--mono); color: var(--foreground); border: 1px solid var(--line); border-radius: 4px; }
.arcade { min-width: 0; background: var(--panel); border: 1px solid #624760; border-radius: 15px; overflow: hidden; box-shadow: 0 18px 70px #0a061482; }
.arcade-bar, .arcade-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 15px; font: 650 .69rem/1.5 var(--mono); }
.arcade-bar { min-height: 42px; text-transform: uppercase; letter-spacing: .11em; }
.arcade-bar i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px #b8ffd977; }
.arcade-bar button { color: var(--foreground); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.arcade-footer { color: var(--muted); }
.arcade-footer a { text-underline-offset: 3px; text-align: right; }
.game-screen { position: relative; display: grid; place-items: center; aspect-ratio: 6 / 5; background: #100a1b; }
.game-screen:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; }
.poster, .game-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { display: grid; place-items: end center; padding-bottom: 12%; isolation: isolate; }
.poster img, .poster::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.poster img { object-fit: cover; }
.poster::after { content: ""; background: linear-gradient(transparent 55%, #110b1bd9); }
.play { display: inline-flex; align-items: center; gap: 10px; border-radius: 99px; background: var(--mint); color: #15151c; text-decoration: none; font-weight: 800; padding: 14px 21px; box-shadow: 0 6px 22px #0b021fba; }
.play:hover { color: #15151c; background: #e2ffed; }
.play span { font-size: .8em; }
.field-guide { margin-block: clamp(36px, 6vw, 75px) 45px; }
.guide-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.guide-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.04em; margin: 0; }
.guide-heading a { font-size: .87rem; color: var(--mint); text-underline-offset: 4px; text-align: right; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; background: #1a1422; }
.guide-grid article { padding: 20px; }
.guide-grid article + article { border-left: 1px solid var(--line); }
.guide-grid h3 { margin: 6px 0 4px; font-size: 1.05rem; }
.guide-grid p, .model-note { margin: 0; color: var(--muted); font-size: .89rem; }
.model-note { margin-top: 13px; }
.organelle { display: inline-block; position: relative; width: 36px; height: 30px; color: #cbb0ff; }
.nucleus::before { content: ""; position: absolute; inset: 0 6px 0 0; border: 2px solid currentColor; border-radius: 50%; background: radial-gradient(circle at center, currentColor 0 24%, transparent 25%); }
.mitochondrion { color: var(--coral); border: 2px solid currentColor; border-radius: 52% 42% 58% 42%; height: 23px; margin-block: 3px 4px; transform: rotate(-10deg); }
.mitochondrion::after { content: ""; position: absolute; inset: 4px 5px; border-radius: 40%; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px); }
.ribosome::before, .ribosome::after { content: ""; position: absolute; border-radius: 50%; background: var(--mint); }
.ribosome::before { inset: 1px 7px 13px 3px; }
.ribosome::after { inset: 15px 4px 2px 7px; opacity: .65; }
.golgi { height: 23px; margin-block: 2px 5px; border: 3px double var(--coral); border-inline: 0; border-radius: 50%; }
.golgi::before { content: ""; position: absolute; inset: 5px 3px; border: 2px solid var(--coral); border-inline: 0; border-radius: 50%; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 36px); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .intro h2 { font-size: clamp(3.45rem, 12vw, 6rem); margin: 14px 0; line-height: .94; }
  .intro h2 br { display: none; }
  .intro h2 em::before { content: " "; }
  .lede { max-width: 38ch; margin-bottom: 14px; }
  .page-label { margin-block: 24px 16px; }
}
@media (min-width: 561px) and (max-width: 820px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid article:nth-child(3) { border-left: 0; }
  .guide-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid article { padding: 15px; }
  .guide-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
}
