/* The look of this game: fonts, colours, backgrounds. Layout lives in style.css. See THEMING.md.
   Dark, neon-on-navy: pieces are glowing coloured shapes. */

:root {
  --font-body: system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-display: system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  --page-bg: #0b0f1a;
  --ink: #e8f0ff;
  --accent: #38f9d7;                       /* selected tab outline, slider and checkbox colour */
  --pale: rgba(22, 32, 61, .85);           /* title chips, arrows */
  --pale-solid: #16203d;                   /* buttons, dialogs, tutorial card */
  --panel: rgba(18, 26, 48, .72);
  --btn-hover: #1f2d55;
  --tab-on: #223a66;
  --line: rgba(120, 160, 255, .45);        /* borders */
  --line-soft: rgba(120, 160, 255, .16);   /* list dividers */
  --btn-shadow: rgba(0, 0, 0, .55);
  --shadow: rgba(0, 0, 0, .45);
  --shadow-lg: rgba(0, 0, 0, .7);
  --scrim: rgba(3, 6, 14, .72);            /* behind dialogs */
  --neg: #ff6b81;                          /* penalties in the score table */
  --toast-bg: rgba(22, 32, 61, .96);
  --toast-ink: #e8f0ff;

  --cell-bg: rgba(255, 255, 255, .05);     /* board squares */
  --cell-edge: rgba(120, 160, 255, .28);
  --cell-selected: rgba(56, 249, 215, .38);
  --vanish-line: #ffffff;                  /* outline of a use-once edge tile */
  --hl-filter: none;                       /* the highlight ring is already coloured */

  --bg-menu: radial-gradient(ellipse at 50% 18%, #1c2a5c 0%, #101938 45%, #0b0f1a 80%);
  --bg-game: radial-gradient(rgba(140, 170, 255, .1) 1.4px, transparent 1.8px), radial-gradient(ellipse at 50% 0%, #17224a 0%, #0b0f1a 75%);
  --play-btn-bg: radial-gradient(circle closest-side, #16203d 84%, transparent 86%), conic-gradient(from 20deg, #38f9d7, #4d7cff, #a66bff, #ff66e0, #ffe14d, #38f9d7);
  --play-btn-ink: #e8f0ff;
}

h1, h2, .help h3, .summary th { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
h1 { font-size: clamp(18px, 4.4vw, 28px); }
.help h3 { font-size: 16px; color: var(--accent); }
.play-btn { border-radius: 50%; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.btn { box-shadow: 0 0 0 1px rgba(56, 249, 215, .08), 0 3px 0 var(--btn-shadow); }
.btn:hover:not(:disabled) { border-color: var(--accent); }
.logo { filter: drop-shadow(0 0 18px rgba(77, 124, 255, .35)); }
.cell .bg { border-radius: 14%; }
.game-bg { background-size: 26px 26px, cover; background-position: 0 0, center; }
.cell img, .edge img { width: 100%; height: 100%; }
.edge img { width: 74%; height: 74%; }
.bonus img { width: 40px; height: 40px; }
.piece-list img { width: 36px; height: 36px; }
.modal input[type=text] { background: var(--btn-hover); color: var(--ink); border-color: var(--line); }
.mode-card img { max-height: 28vh; }
.cell .ghost { filter: brightness(0) invert(1) opacity(.35); }
