/* Pop tiles theme — light, chunky, one signature colour per game.
 *
 * Game controllers style themselves inline, so they reference these variables
 * rather than hard-coded colours. `--game` / `--game-shade` default to the site's
 * violet and are overridden per game by game-page.js from config.js.
 */
:root {
  --bg: #f3f0ff;
  --surface: #ffffff;
  --sunken: #f8f6fe;
  --line: #ebe5f7;
  --line-strong: #d9d0ee;
  --muted-2: #a39dbd;
  --muted: #6e6790;
  --ink-soft: #3b3663;
  --ink: #1e1b4b;

  --game: #7c3aed;
  --game-shade: #5b21b6;
  --on-game: #ffffff;
  --tint: color-mix(in srgb, var(--game) 7%, white);
  --tint-strong: color-mix(in srgb, var(--game) 20%, white);
  --select: color-mix(in srgb, var(--game) 32%, white);

  --good: #16a34a;
  --bad: #dc2626;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
}

/* Unlayered on purpose: this sheet isn't processed by Tailwind, and a native
   @layer rule would lose to the Play CDN's unlayered preflight. */
a, button:not(:disabled), [role="button"], summary { cursor: pointer; }

/* Every button inside a game gets the chunky "pressable" lip. */
#game-host button {
  box-shadow: 0 3px 0 var(--line-strong);
  transition: transform 0.08s, box-shadow 0.08s;
}
#game-host button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--line-strong);
}

/* Home grid tiles: solid game colour sitting on a darker shade "lip". */
.pop-tile {
  background: var(--game);
  box-shadow: 0 6px 0 var(--game-shade);
  transition: transform 0.1s, box-shadow 0.1s;
}
.pop-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--game-shade); }
.pop-tile:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--game-shade); }

.pop-chip {
  background: var(--surface);
  border: 2px solid #e9d5ff;
}

.pop-btn {
  background: var(--game);
  color: var(--on-game);
  box-shadow: 0 4px 0 var(--game-shade);
}
.pop-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--game-shade); }
