/* Level Up: Us — shared tokens, fonts, pixel boxes and buttons (game, maker, story). */
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/silkscreen-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/silkscreen-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/silkscreen-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url('../fonts/nunito-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url('../fonts/nunito-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Silkscreen's ampersand reads like a dollar sign: borrow Nunito's for that one glyph */
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/nunito-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0026; }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0026; }

:root {
  --ink: #1c1226;
  --night: #140a22;
  --plum: #2a1840;
  --paper: #fff7ef;
  --paper-2: #ffe9f0;
  --pink: #ff4d8a;
  --pink-2: #ff8fb8;
  --pink-deep: #c7246a;
  --gold: #ffd447;
  --mint: #5fe0b0;
  --lilac: #b9a6ff;
  --sky: #5ff0ff;
  --text: #2a1236;
  --muted: #6b5679;
  --pixel: 'Silkscreen', 'Courier New', monospace;
  --read: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  --b: 4px; /* pixel border size */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: #fff; font-family: var(--pixel); font-variant-ligatures: none; }
[hidden] { display: none !important; }
img, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* notched pixel border: four offset shadows leave the corners empty */
.pixel-box, .card, .btn, .chip, .field-box {
  --bc: var(--ink);
  box-shadow:
    0 calc(var(--b) * -1) 0 0 var(--bc),
    0 var(--b) 0 0 var(--bc),
    calc(var(--b) * -1) 0 0 0 var(--bc),
    var(--b) 0 0 0 var(--bc);
}

.btn {
  --b: 3px;
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 44px;
  padding: .55em 1.1em .5em;
  margin: 3px;
  border: 0; border-radius: 0;
  background: var(--pink); color: #fff;
  font-family: var(--pixel); font-weight: 400; font-size: 1rem; letter-spacing: .02em; line-height: 1.1;
  text-decoration: none; text-shadow: 0 2px 0 rgba(28, 18, 38, .45);
  cursor: pointer;
  position: relative;
  transition: transform .08s steps(2), background-color .12s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn::after { /* bottom bevel */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(28, 18, 38, .28); pointer-events: none;
}
.btn::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 255, 255, .35); pointer-events: none; }
.btn:hover { background: #ff6a9f; }
.btn:active { transform: translateY(2px); }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .icon-btn:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 5px;
}
.btn-ghost { background: var(--paper-2); color: var(--text); text-shadow: none; }
.btn-ghost:hover { background: #fff; }
.btn-small { min-height: 40px; font-size: .9rem; padding: .45em .9em; }

.chip {
  --b: 2px;
  appearance: none; display: inline-flex; align-items: center; gap: .4em;
  min-height: 36px; padding: .35em .8em; margin: 2px;
  border: 0; border-radius: 0;
  background: rgba(20, 10, 34, .72); color: #fff;
  font-family: var(--pixel); font-size: .9rem; text-decoration: none; cursor: pointer;
  --bc: rgba(255, 255, 255, .55);
}
.chip:hover { background: rgba(42, 24, 64, .95); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
