/* Shared look for the challenge site and the replay viewer: a kitchen at midnight. */
:root {
  color-scheme: dark;
  --ink: #0a0d1b;
  --night: #10142a;
  --panel: #161b33;
  --panel-raised: #1d2342;
  --line: #2a3154;
  --line-soft: #20264a;
  --text: #f4efe2;
  --muted: #a6abc6;
  --faint: #767c9e;
  --cheese: #f6c453;
  --cheese-deep: #d99a26;
  --cat: #ff8b5c;
  --mouse: #93d6f6;
  --win: #86dcab;
  --loss: #f08d8d;
  --radius: 12px;
  --radius-small: 8px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cheese); outline-offset: 2px; border-radius: 4px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { font: 600 19px/1 var(--display); letter-spacing: .005em; white-space: nowrap; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-small);
  background: var(--panel); color: var(--text);
  font: 550 14px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.button:hover { background: var(--panel-raised); border-color: var(--faint); }
.button svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.button.primary { background: var(--cheese); border-color: var(--cheese); color: #241803; }
.button.primary:hover { background: #ffd471; border-color: #ffd471; }
.button.quiet { background: transparent; color: var(--muted); }
.button.quiet:hover { color: var(--text); background: var(--panel); }
.button[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

.eyebrow { font: 600 12px/1.3 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--cheese); margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
