/*
 * Dribdrab shared theme. Every game loads this from the hub:
 *   <link rel="stylesheet" href="https://dribdrab.games/theme.css">
 * It only defines the font and the colour tokens (and two optional helper classes), so it
 * won't restyle a game's own pages until the game chooses to use the tokens.
 */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('fonts/fredoka-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: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('fonts/fredoka-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;
}

:root {
  --dd-font: 'Fredoka', system-ui, sans-serif;

  --dd-bg-1: #0d0a2b;
  --dd-bg-2: #241048;
  --dd-panel: #1a1450;
  --dd-panel-hi: #342a78;
  --dd-ink: #f4eefe;
  --dd-muted: #bdb3dd;
  --dd-violet: #7b4dff;
  --dd-violet-hi: #a48bff;
  --dd-pink: #f4539e;
  --dd-yellow: #ffc857;
  --dd-good: #3ddc97;
  --dd-bad: #ff6b8b;
  --dd-line: rgba(255, 255, 255, 0.12);
  --dd-card: rgba(255, 255, 255, 0.06);
  --dd-radius: 14px;

  --dd-page-background:
    radial-gradient(1200px 700px at 75% -10%, #3a1670 0%, rgba(58, 22, 112, 0) 60%),
    linear-gradient(180deg, var(--dd-bg-2) 0%, var(--dd-bg-1) 70%);
}

/* Optional: the standard Dribdrab page background and text. */
.dd-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--dd-font);
  color: var(--dd-ink);
  background: var(--dd-page-background);
  background-color: var(--dd-bg-1);
  background-attachment: fixed;
}

/* Optional: the yellow Play button. */
.dd-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--dd-radius);
  background: var(--dd-yellow);
  color: var(--dd-bg-1);
  font: 600 18px/1 var(--dd-font);
  text-decoration: none;
  cursor: pointer;
}
.dd-play:hover { filter: brightness(1.06); }
.dd-play:focus-visible { outline: 3px solid var(--dd-violet-hi); outline-offset: 3px; }
