/* Apex arcade landing — host chrome; tokens from javan-tokens.css */
:root {
      color-scheme: dark;
      --background: #10100f;
      --surface: #171715;
      --surface-hover: #1d1d1a;
      --text: #f2f0e9;
      --muted: #9e9a8f;
      --line: #33312c;
      --accent: #c49157;
      --pacman: var(--javan-yellow);
      --maze: rgba(45, 57, 210, .18);
      --blinky: var(--javan-red);
    }

    * {
      box-sizing: border-box;
    }

    html {
      background: var(--background);
    }

    body {
      position: relative;
      min-height: 100vh;
      min-height: 100svh;
      margin: 0;
      background: var(--background);
      color: var(--text);
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      -webkit-font-smoothing: antialiased;
    }

    body::before {
      position: fixed;
      inset: 0;
      content: "";
      contain: strict;
      pointer-events: none;
      background-image:
        repeating-linear-gradient(0deg, transparent 0 47px, var(--maze) 47px 48px),
        repeating-linear-gradient(90deg, transparent 0 47px, var(--maze) 47px 48px);
      -webkit-mask-image: radial-gradient(circle at 100% 0, #000 0, transparent 66%);
      mask-image: radial-gradient(circle at 100% 0, #000 0, transparent 66%);
    }

    main {
      position: relative;
      z-index: 1;
      display: grid;
      width: min(100% - 38px, 620px);
      min-height: 100vh;
      min-height: 100svh;
      margin: 0 auto;
      padding: max(48px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom));
      grid-template-rows: 1fr auto;
      gap: 56px;
    }

    .content {
      align-self: center;
    }

    header {
      margin-bottom: 38px;
    }

    .arcade-mark {
      display: flex;
      min-height: 34px;
      align-items: center;
      gap: 10px;
      margin-bottom: 22px;
      overflow: hidden;
    }

    .pacman {
      display: block;
      width: 34px;
      height: 34px;
      flex: 0 0 auto;
      filter: drop-shadow(0 0 8px rgba(255, 212, 0, .16));
    }

    .pellet {
      width: 6px;
      height: 6px;
      flex: 0 0 auto;
      border-radius: 50%;
      background: var(--pacman);
      box-shadow: 0 0 7px rgba(255, 212, 0, .18);
      animation: eaten 2.4s steps(1) infinite;
    }

    .pellet--power {
      width: 11px;
      height: 11px;
    }

    .pellet:nth-of-type(2) { animation-delay: 0.6s; }
    .pellet:nth-of-type(3) { animation-delay: 1.2s; }
    .pellet:nth-of-type(4) { animation-delay: 1.8s; }

    @keyframes eaten {
      0%, 20% { opacity: 1; transform: scale(1); }
      28%, 100% { opacity: 0; transform: scale(0); }
    }

    @media (prefers-reduced-motion: reduce) {
      .pellet {
        animation: none;
      }
    }

    .blinky {
      display: block;
      width: 31px;
      height: 31px;
      margin-left: 2px;
      flex: 0 0 auto;
      filter: drop-shadow(0 0 8px rgba(246, 99, 99, .16));
    }

    h1 {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: clamp(50px, 13vw, 92px);
      font-weight: 800;
      line-height: .9;
      letter-spacing: -.075em;
    }

    h1 span {
      color: var(--accent);
    }

    header p {
      max-width: 46ch;
      margin: 22px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.65;
    }

    .site-nav {
      display: grid;
      gap: 9px;
    }

    .site-nav a {
      display: grid;
      min-height: 72px;
      padding: 15px 18px;
      border: 1px solid var(--line);
      border-radius: 3px;
      background: var(--surface);
      color: var(--text);
      text-decoration: none;
      touch-action: manipulation;
      -webkit-tap-highlight-color: rgba(196, 145, 87, .2);
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 18px;
      transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
    }

    .site-nav a:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }

    .site-nav strong {
      display: block;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 17px;
      letter-spacing: -.025em;
    }

    .site-nav small {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 10px;
      line-height: 1.4;
      letter-spacing: .045em;
    }

    .site-nav .arrow {
      color: var(--accent);
      font-size: 18px;
    }

    @media (hover: hover) and (pointer: fine) {
      .site-nav a:hover {
        border-color: var(--accent);
        background: var(--surface-hover);
        transform: translateX(4px);
      }
    }

    @media (max-width: 480px) {
      main {
        gap: 38px;
      }

      header {
        margin-bottom: 30px;
      }

      .arcade-mark {
        margin-bottom: 18px;
        transform: scale(.9);
        transform-origin: left center;
      }

      .site-nav a {
        min-height: 68px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .site-nav a {
        transition: none;
      }
    }

    @media (forced-colors: active) {
      body::before,
      .arcade-mark {
        display: none;
      }

      .site-nav a {
        border-color: ButtonText;
      }
    }
  