/* The printed Advent-calendar sheet: night-blue sky ink, cream card stock, gold foil, team inks. */
:root {
  --sky-0: #111933;
  --sky-1: #1b2747;
  --sky-2: #2a3d69;
  --paper: #f3e6c8;
  --paper-shade: #dcc79c;
  --ink: #1d1a2c;
  --ink-soft: #4a4258;
  --gold: #e4bb5c;
  --gold-deep: #8f6a24;
  --stop: #c6342b;
  --snow: #f8f4ec;
  --grey: #8d909a;
  --grey-ink: #24252b;
  --display: 'Ultra', 'Rockwell Extra Bold', 'Rockwell', serif;
  --text: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 55%, var(--sky-2) 100%) fixed;
  color: var(--snow);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
/* print grain over the whole sheet */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--sky-2); border-radius: 10px; border: 2px solid var(--sky-1); }
::-webkit-scrollbar-track { background: transparent; }

.emblem { width: 1em; height: 1em; flex: none; display: block; }

/* die-cut door edge: a dashed perforation inset from the card edge */
.perf { position: relative; }
.perf::before {
  content: '';
  position: absolute;
  inset: 0.35em;
  border: 2px dashed currentColor;
  border-radius: 0.3em;
  opacity: 0.35;
  pointer-events: none;
}

.offline-note {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6em 1.1em;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.35);
}
.offline .offline-note { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
