  :root {
    --paper: #f7f8fa;
    --ink: #1b1e2b;
    --muted: #5a6275;
    --line: #dadfe7;
    --orange: #f26b1d;
    --cyan: #38d9ff;
    --pixel: 'Silkscreen', ui-monospace, monospace;
    --text: 'Atkinson Hyperlegible', system-ui, sans-serif;
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--text); }
  img { max-width: 100%; display: block; }
  a { color: var(--ink); text-underline-offset: 3px; }
  a:hover { color: var(--orange); }
  :focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

  header.site { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
  .brand { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--pixel); text-decoration: none; }
  .brand img { width: 32px; height: 32px; image-rendering: pixelated; }
  header.site nav a { margin-left: 22px; font-size: 16px; }

  /* Pixel-stepped buttons: square corners cut by a 4px notch, hard offset shadow. */
  .btn {
    --bg: var(--paper);
    display: inline-flex; align-items: center; gap: 10px;
    font: 700 16px/1 var(--pixel); color: var(--ink); text-decoration: none; cursor: pointer;
    background: var(--bg); border: 0; padding: 16px 22px;
    clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
    box-shadow: inset 0 0 0 3px var(--ink), inset 0 -7px 0 rgba(0,0,0,.18);
  }
  .btn:hover { color: var(--ink); filter: brightness(1.06); }
  .btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 3px var(--ink), inset 0 -3px 0 rgba(0,0,0,.18); }
  .btn.primary { --bg: var(--orange); }
  .btn[disabled] { opacity: .5; cursor: not-allowed; }

  /* Hero */
  .hero { padding: 48px 0 20px; }
  h1 {
    font: 700 clamp(44px, 8.4vw, 92px)/.95 var(--pixel);
    letter-spacing: -1px; margin: 0 0 24px; max-width: 12ch;
  }
  .lede { font-size: 21px; max-width: 34em; margin: 0 0 30px; color: var(--ink); }
  .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .hint { color: var(--muted); font-size: 15px; margin: 16px 0 0; }
  .hint kbd, table kbd, .steps kbd, .news kbd {
    font: 700 12px/1 var(--pixel); background: #fff; border: 2px solid var(--ink); border-bottom-width: 4px;
    padding: 3px 6px 2px; margin: 0 1px; white-space: nowrap;
  }
  .shot { margin: 44px 0 0; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: #fff; }
  .shot img { width: 100%; height: auto; }

  section { padding: 76px 0 0; }
  h2 { font: 700 30px/1.1 var(--pixel); margin: 0 0 12px; }
  .intro { color: var(--muted); max-width: 36em; margin: 0 0 34px; }

  /* What happens */
  .effects { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 36px; }
  .effect img { width: 100%; height: auto; border: 3px solid var(--ink); aspect-ratio: 16 / 10; object-fit: cover; }
  .effect h3 { font: 700 21px/1.3 var(--text); margin: 18px 0 4px; }
  .effect p { margin: 0; color: var(--muted); }
  .effect.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
  .effect.wide h3 { margin-top: 0; }

  /* Weapons */
  .arsenal { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin: 0; }
  .arsenal div { display: grid; grid-template-columns: 124px 1fr; align-items: center; gap: 16px; padding: 16px 0; border-top: 2px solid var(--line); }
  .arsenal dt { display: flex; align-items: center; justify-content: center; height: 56px; background: #1b1e2b; }
  .arsenal dt img { image-rendering: pixelated; max-height: 40px; width: auto; }
  .arsenal dd { margin: 0; }
  .arsenal b { display: block; font: 700 16px/1.3 var(--pixel); }
  .arsenal span { color: var(--muted); font-size: 16px; }

  /* Controls */
  table { border-collapse: collapse; width: 100%; max-width: 640px; }
  td { padding: 12px 0; border-top: 2px solid var(--line); vertical-align: top; }
  td:first-child { width: 42%; padding-right: 16px; }

  /* Comparison pages (/vs/*, /alternatives/*) */
  table.compare { max-width: none; }
  table.compare th, table.compare td { padding: 12px 12px 12px 0; border-top: 2px solid var(--line); text-align: left; vertical-align: top; width: auto; }
  table.compare tr:first-child th { border-top: 0; font: 700 14px/1.3 var(--pixel); }
  table.compare tr > th:first-child { width: 34%; }
  .compare-page h1 { font-size: clamp(26px, 6.5vw, 56px); overflow-wrap: break-word; }
  .compare-page .note { color: var(--muted); font-size: 15px; }
  .compare-page details { border-top: 2px solid var(--line); padding: 12px 0; }
  .compare-page summary { cursor: pointer; font-weight: 700; }
  .compare-page li + li { margin-top: 8px; }

  .privacy p { max-width: 36em; margin: 0 0 14px; }

  .cta { margin-top: 90px; padding: 44px; background: var(--ink); color: var(--paper); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
  .cta h2 { color: var(--paper); margin: 0; }
  .cta p { margin: 6px 0 0; color: #b9bfcc; }

  footer { padding: 36px 0 60px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
  footer a { color: var(--muted); }

  /* Phones can't run the demo or install, so they get a send-to-self button instead. */
  .touch-note, .btn.send-link, .btn.watch-clip, .shot .hero-clip { display: none; }
  .touch-note { color: var(--muted); font-size: 15px; margin: 16px 0 0; }
  @media (pointer: coarse) {
    .touch-note { display: block; }
    .btn.send-link, .btn.watch-clip { display: inline-flex; }
    .btn[data-install], .shot .hero-img { display: none; } /* the Web Store can't install on phones */
    .shot .hero-clip { display: block; border: 0; }
    .hint, #wreck { display: none; }
    a[href="/maps/newsroom"] { display: none !important; } /* multiplayer needs a keyboard and mouse */
  }

  @media (max-width: 760px) {
    body { font-size: 17px; }
    .effects, .arsenal, .effect.wide { grid-template-columns: 1fr; }
    .shot { box-shadow: 6px 6px 0 var(--ink); }
    header.site nav a:not(:last-child) { display: none; }
    .cta { padding: 28px; }
  }
  @media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

  /* Clips: looping gameplay videos with a poster until they play. */
  video[data-clip] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border: 3px solid var(--ink); background: var(--ink); }

  /* Welcome page */
  .steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 18px; max-width: 40em; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
  .step-n { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--ink); color: var(--paper); font: 700 22px/1 var(--pixel); }
  .steps b { font: 700 18px/1.3 var(--pixel); }
  .steps p { margin: 4px 0 0; color: var(--muted); }
  .clips { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 36px; }
  .clips figure { margin: 0; }
  .clips figcaption { margin-top: 16px; color: var(--muted); }
  .clips figcaption b { display: block; color: var(--ink); font: 700 21px/1.3 var(--text); }

  /* What's new page */
  .news article { padding: 0 0 48px; margin: 0 0 48px; border-bottom: 2px solid var(--line); }
  .news .when { color: var(--muted); font-size: 15px; margin: 0; }
  .news h2 { margin-top: 6px; }
  .news p { max-width: 36em; }
  .news figure { max-width: 720px; margin: 24px 0; }
  .news ul { padding-left: 1.2em; max-width: 40em; }
  .news li { margin: 6px 0; }

  @media (max-width: 760px) { .clips { grid-template-columns: 1fr; } }

  /* Halloween skins page */
  .skins-status { min-height: 1.6em; margin: 18px 0 0; font-weight: 700; max-width: 36em; }
  .skin-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .skin-grid li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 0 16px; background: #2a2440; color: var(--paper); border: 3px solid var(--ink); }
  .skin-grid img { width: 100%; height: auto; image-rendering: pixelated; background: radial-gradient(circle at 50% 60%, #4a3d78, #2a2440 70%); }
  .skin-grid b { font: 700 16px/1.3 var(--pixel); }
  .skin-grid span { color: #b9bfcc; font-size: 15px; }
  .skin-grid li.owned { border-color: #4be37a; }
  .skin-grid li.owned span { color: #4be37a; font-weight: 700; }
  .how ul { padding-left: 1.2em; max-width: 40em; }
  .how li { margin: 6px 0; }
  .how kbd { font: 700 12px/1 var(--pixel); background: #fff; border: 2px solid var(--ink); border-bottom-width: 4px; padding: 3px 6px 2px; }
  .restore p { max-width: 36em; }
  .key-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
  .key-form label { width: 100%; font: 700 14px/1 var(--pixel); }
  .key-form input { flex: 1 1 280px; min-width: 0; font: 16px/1 ui-monospace, monospace; padding: 14px; border: 3px solid var(--ink); background: #fff; }
  @media (max-width: 760px) { .skin-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (pointer: coarse) { #buy { display: none; } }
