/* The arcade's tokens: cream enamel by day, black lacquer by night, one loud pink, chrome, and mint light. */
:root {
  --cab: #fff4ec;
  --cab-2: #ffe6ee;
  --cab-3: #ffd3e2;
  --edge: #f4c6d6;
  --ink: #23132a;
  --ink-2: #5d4763;
  --ink-3: #8d7792;
  --pink: #ff2f86;
  --pink-ink: #c90f5a;
  --pink-soft: #ffd0e2;
  --mint: #22d8b8;
  --mint-ink: #0b7d6a;
  --sun: #ffd23f;
  --led: #ff4d8d;
  --led-2: #3ff0d2;
  --board: #170b1d;
  --paper: #fffdf8;
  --shadow: 0 1px 0 #fff inset, 0 -2px 0 #0000000d inset, 0 10px 24px -14px #6b1d4366;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9dbe6 22%, #9aa0b4 48%, #f3f4f8 54%, #c6cad8 78%, #8e93a6 100%);
  --display: "Dela Gothic One", "Arial Black", system-ui, sans-serif;
  --body: "Zen Maru Gothic", ui-rounded, system-ui, sans-serif;
  --dot: "DotGothic16", ui-monospace, monospace;
  --r: 18px;
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cab: #140b1b;
    --cab-2: #1f1129;
    --cab-3: #2e1840;
    --edge: #3b2150;
    --ink: #fff0f6;
    --ink-2: #d4bfd9;
    --ink-3: #9d86a4;
    --pink: #ff4d97;
    --pink-ink: #ff86b6;
    --pink-soft: #4a1a39;
    --mint: #3ff0d2;
    --mint-ink: #5ff5da;
    --paper: #1b1023;
    --shadow: 0 1px 0 #ffffff14 inset, 0 10px 26px -12px #000c;
    --chrome: linear-gradient(180deg, #e9eaf2 0%, #9fa4b8 30%, #555a6e 50%, #c9ccd8 56%, #7c8196 80%, #3c4052 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cab: #140b1b;
  --cab-2: #1f1129;
  --cab-3: #2e1840;
  --edge: #3b2150;
  --ink: #fff0f6;
  --ink-2: #d4bfd9;
  --ink-3: #9d86a4;
  --pink: #ff4d97;
  --pink-ink: #ff86b6;
  --pink-soft: #4a1a39;
  --mint: #3ff0d2;
  --mint-ink: #5ff5da;
  --paper: #1b1023;
  --shadow: 0 1px 0 #ffffff14 inset, 0 10px 26px -12px #000c;
  --chrome: linear-gradient(180deg, #e9eaf2 0%, #9fa4b8 30%, #555a6e 50%, #c9ccd8 56%, #7c8196 80%, #3c4052 100%);
  color-scheme: dark;
}


/* The base components read these. */
:root {
  --d-font-display: var(--display);
  --d-font-text: var(--body);
  --d-font-ui: var(--body);
  --d-font-mono: var(--dot);
  --d-step--2: 0.75rem;
  --d-step--1: 0.875rem;
  --d-step-0: 1rem;
  --d-step-1: 1.1875rem;
  --d-step-2: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  --d-step-3: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem);
  --d-step-4: clamp(2.125rem, 1.4rem + 4vw, 4.25rem);
  --d-step-5: clamp(3rem, 1.8rem + 8vw, 7rem);
  --d-leading-display: 1.04;
  --d-leading-text: 1.62;
  --d-tracking-label: 0.1em;
  --d-space-1: 4px; --d-space-2: 8px; --d-space-3: 12px; --d-space-4: 16px; --d-space-5: 24px;
  --d-space-6: 32px; --d-space-7: 44px; --d-space-8: 64px; --d-space-9: 96px;
  --d-gutter: clamp(16px, 4vw, 40px);
  --d-measure: 38rem;
  --d-radius-s: 12px;
  --d-ease: cubic-bezier(0.3, 1.3, 0.5, 1);
  --d-dur-fast: 140ms; --d-dur: 260ms; --d-dur-slow: 560ms;
  --d-bg: var(--cab);
  --d-bg-2: var(--cab-2);
  --d-surface: var(--paper);
  --d-ink: var(--ink);
  --d-ink-2: var(--ink-2);
  --d-muted: var(--ink-3);
  --d-line: color-mix(in oklab, var(--ink) 12%, transparent);
  --d-line-strong: color-mix(in oklab, var(--ink) 30%, transparent);
  --d-accent: var(--pink-ink);
  --d-accent-ink: #fff;
  --d-focus: var(--mint);
  --d-stage-1: var(--paper);
  --d-stage-2: var(--cab-2);
  --d-night-1: #23112f;
  --d-night-2: #0c0612;
  --d-night-ink: #fff0f6;
  --d-night-ink-2: #d4bfd9;
  --d-shadow: var(--shadow);
}


/* The arcade's type, self-hosted. Licenses are beside the files in fonts/ (SIL Open Font License 1.1). */
@font-face { font-family: "Dela Gothic One"; src: url("/fonts/dela.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("/fonts/zen-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("/fonts/zen-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("/fonts/zen-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "DotGothic16"; src: url("/fonts/dot.woff2") format("woff2"); font-display: swap; }


/* The arcade's frame: the marquee, the keys, the coin door, copy boxes, and notes. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cab); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 500 16px/1.6 var(--body); background: var(--cab); color: var(--ink); overflow-x: hidden; }
a { color: var(--pink-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--cab); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* The marquee: the name, lit, and the board under it. */
.marquee { position: relative; z-index: 3; padding: calc(env(safe-area-inset-top) + 10px) var(--gutter) 8px; background: var(--cab); }
.marquee-top { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand b { font: 400 25px/1 var(--display); letter-spacing: -0.01em; color: var(--pink); text-shadow: 0 0 0.5px var(--pink), 0 2px 0 var(--cab-3), 0 0 18px #ff2f8640; }
.brand small { font: 700 10px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.round { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; background: var(--cab-2); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; text-decoration: none; font: 700 12px/1 var(--body); }
.round svg { width: 20px; height: 20px; }
.round:hover { background: var(--cab-3); color: var(--ink); }
.board { position: relative; display: block; margin-top: 8px; height: 46px; border-radius: 10px; background: var(--board); box-shadow: 0 0 0 2px #00000014, 0 0 0 4px var(--cab-3), inset 0 2px 10px #000a; overflow: hidden; }
.board canvas { position: absolute; inset: 5px 8px; width: calc(100% - 16px); height: calc(100% - 10px); }
.board::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #ffffff12, transparent 45%); pointer-events: none; }

/* Buttons that look like an arcade's. */
.key { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; font: 700 15px/1 var(--body); letter-spacing: 0.01em; color: var(--ink); background: var(--cab-2); box-shadow: var(--shadow); text-decoration: none; cursor: pointer; }
.key:hover { background: var(--cab-3); color: var(--ink); }
.key--go { color: #fff; background: radial-gradient(120% 140% at 30% 20%, #ff7fb3 0%, var(--pink) 45%, #d0105c 100%); box-shadow: 0 2px 0 #ffffff66 inset, 0 -3px 0 #0000002a inset, 0 8px 18px -8px #ff2f86aa; }
.key--go:hover { color: #fff; filter: brightness(1.06); }
.key svg { width: 18px; height: 18px; flex: none; }

/* The color button. */
.mode { position: relative; }
.mode svg { width: 20px; height: 20px; }
.mode .m-light, .mode .m-dark, .mode .m-auto { display: none; }
.mode[data-mode="light"] .m-light, .mode[data-mode="dark"] .m-dark, .mode[data-mode="auto"] .m-auto { display: block; }

/* Copy boxes. */
.copy-box { position: relative; margin: 12px 0; }
.copy-box pre, .copy-box code.code { display: block; margin: 0; padding: 14px 52px 14px 14px; background: var(--board); color: #ffe1ee; font: 400 13px/1.55 var(--dot); border-radius: 12px; white-space: pre-wrap; word-break: break-all; }
.copy-box button { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 9px; border: 0; background: #ffffff14; color: #ffd8e8; display: grid; place-items: center; cursor: pointer; }
.copy-box button:hover { background: #ffffff26; }
.copy-box button svg { width: 18px; height: 18px; }
.copy-box button[data-done]::after { content: "Copied"; position: absolute; right: 42px; top: 8px; font: 700 12px/1 var(--body); color: var(--mint); white-space: nowrap; }

/* The credit row and the coin door. */
.coin-door { margin: 40px var(--gutter) 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--cab-2); box-shadow: var(--shadow); }
.coin-plate { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--chrome); color: #23132a; box-shadow: 0 1px 0 #fff8 inset, 0 2px 8px #0002; }
.coin-slot { position: relative; width: 52px; height: 74px; border-radius: 10px; background: linear-gradient(#2a2230, #120c16); box-shadow: inset 0 2px 6px #000; }
.coin-slot::before { content: ""; position: absolute; left: 50%; top: 14px; width: 6px; height: 34px; margin-left: -3px; border-radius: 3px; background: #000; box-shadow: 0 0 0 2px #555a6e; }
.coin-slot::after { content: "FREE"; position: absolute; left: -6px; right: -6px; top: 24px; transform: rotate(-12deg); background: var(--sun); color: #23132a; font: 400 11px/1.6 var(--display); text-align: center; box-shadow: 0 2px 4px #0004; }
.coin-plate p { margin: 0; font: 700 14px/1.45 var(--body); }
.coin-plate p strong { font: 400 15px/1.3 var(--display); display: block; margin-bottom: 2px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 2px 4px; font: 700 14px/1.5 var(--body); }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--pink-ink); text-decoration: underline; }
.fine { margin: 14px 2px 0; font: 500 12.5px/1.55 var(--body); color: var(--ink-3); }
.credit { --credit-ink: var(--ink); --credit-muted: var(--ink-3); --credit-line: var(--edge); --credit-hover: color-mix(in oklab, var(--ink) 7%, transparent); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--credit-line); color: var(--credit-ink); font: 700 14px/1.4 var(--body); }
.credit-name { margin: 0; }
.credit-name a { color: inherit; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.credit-icons { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.credit-icons a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--credit-muted); }
.credit-icons a:hover { background: var(--credit-hover); color: var(--credit-ink); }
.credit-icons svg { width: 20px; height: 20px; }
.credit-sponsor { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--credit-line); border-radius: 999px; color: var(--credit-ink); text-decoration: none; background: var(--paper); }
.credit-sponsor:hover { background: var(--credit-hover); color: var(--credit-ink); }
.credit-sponsor svg { width: 16px; height: 16px; color: #db61a2; }

/* A note that waits for Ryan's words: a price tag with a hole and a string. */
.needs { position: relative; display: block; margin: 18px 0; padding: 12px 14px 12px 40px; border-radius: 10px 14px 14px 10px; background: var(--sun); color: #23132a; font: 700 14px/1.45 var(--body); box-shadow: 0 6px 14px -8px #0006; transform: rotate(-0.6deg); }
.needs::before { content: ""; position: absolute; left: 13px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--cab); box-shadow: inset 0 1px 2px #0005; }
.needs strong { font: 400 13px/1.3 var(--display); letter-spacing: 0.02em; display: block; }

/* The keys: fixed under the thumb on every page. */
.keys { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr) 1.45fr; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--cab) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 -1px 0 var(--edge); }
.keycap { position: relative; display: grid; place-items: center; min-height: 42px; padding: 0 4px; border-radius: 12px; background: var(--cab-2); box-shadow: var(--shadow); color: var(--ink); font: 700 13px/1.1 var(--body); text-align: center; text-decoration: none; }
.keycap:hover { color: var(--ink); background: var(--cab-3); }
.keycap[aria-current="page"] { background: var(--ink); color: var(--cab); box-shadow: none; }
.keycap--go { color: #fff; background: radial-gradient(120% 140% at 30% 15%, #ff7fb3 0%, var(--pink) 48%, #d0105c 100%); box-shadow: 0 2px 0 #ffffff66 inset, 0 -3px 0 #0000002a inset, 0 6px 14px -6px #ff2f86aa; font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: 0.01em; }
.keycap--go:hover { color: #fff; background: radial-gradient(120% 140% at 30% 15%, #ff8fbd 0%, #ff4d97 48%, #d8156a 100%); }
.keycap-n { position: absolute; top: -5px; right: 2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--mint); color: #08302a; font: 700 11px/20px var(--body); }
body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .keys { left: 50%; right: auto; bottom: 14px; width: 620px; transform: translateX(-50%); border-radius: 20px; padding: 8px; box-shadow: 0 0 0 1px var(--edge), 0 18px 40px -18px #0006; }
  body { padding-bottom: 96px; }
}
[hidden] { display: none !important; }
