/* Game chrome on the shared tokens. One solid coral (dark enough for white text) instead of the
   old coral→orange gradients, and one soft tint per game for the page. Loaded after each game.css. */

:root {
  --stop-hero: var(--c-primary-strong);
  --stop-brand: var(--c-primary);
  --stop-brand-2: var(--c-primary-strong);
  --stop-glow: var(--shadow-2);
  --stop-sheen: none;
  --dm-hero: var(--c-primary-strong);
  --dm-brand: var(--c-primary);
  --dm-brand-2: var(--c-primary-strong);
  --tv-hero: var(--c-primary-strong);
  --tv-brand: var(--c-primary-strong);
  --tv-brand-2: var(--c-primary);
  --tv-hero-glow: var(--shadow-1);
  --bn-hero: var(--c-primary-strong);
  --bn-brand: var(--c-primary-strong);
  --pic-hero: var(--c-primary-strong);
  --pic-glow: var(--shadow-2);
  --tl-hero: var(--c-primary-strong);
  --tl-brand: var(--c-primary);
  --tl-brand-2: var(--c-primary-strong);
  --mm-hero: var(--c-primary-strong);
  --mm-coral: var(--c-primary-strong);
  --mm-glow: var(--shadow-2);
  --ol-hero: var(--c-primary-strong);
  --imp-hero: var(--c-night);
  --imp-glow: var(--shadow-2);
  --pq-hero: var(--c-primary-strong);
  --pq-brand: var(--c-primary-strong);
  --pq-brand-2: var(--c-primary-strong);
}

/* pages stay the app cream (dark: the night token). Beats the old peach and navy washes.
   A chosen "Fiesta nocturna" board keeps its own page. */
html:root[data-game="stop"] body,
html:root[data-game="trivia"] body,
html:root[data-game="bingo"] body,
html:root body.bn-page,
html:root[data-game="pictionary"] body,
html:root[data-game="memoria"] body,
html:root body.mm-hero,
html:root[data-game="rummy"] body,
html:root[data-game="parques"]:not([data-board="fiesta"]) body,
html:root[data-game="domino"] body,
html:root[data-dm] body,
html:root[data-game="ochos"] body,
html:root[data-ol] body,
html:root[data-game="impostor"] body,
html:root[data-game="diario"] body { background: var(--c-bg); }
@media (prefers-color-scheme: dark) {
  html:root[data-game="stop"]:not([data-theme="light"]) body,
  html:root[data-game="trivia"]:not([data-theme="light"]) body,
  html:root[data-game="bingo"]:not([data-theme="light"]) body,
  html:root:not([data-theme="light"]) body.bn-page,
  html:root[data-game="pictionary"]:not([data-theme="light"]) body,
  html:root[data-game="memoria"]:not([data-theme="light"]) body,
  html:root:not([data-theme="light"]) body.mm-hero,
  html:root[data-game="rummy"]:not([data-theme="light"]) body,
  html:root[data-game="parques"]:not([data-theme="light"]):not([data-board="fiesta"]) body,
  html:root[data-game="domino"]:not([data-theme="light"]) body,
  html:root[data-dm]:not([data-theme="light"]) body,
  html:root[data-game="ochos"]:not([data-theme="light"]) body,
  html:root[data-ol]:not([data-theme="light"]) body,
  html:root[data-game="impostor"]:not([data-theme="light"]) body { background: var(--c-bg); }
}

/* matchup splash: night, like the home hero, instead of a full-screen coral gradient */
html:root .pq-vs {
  color: var(--c-on-night);
  background: radial-gradient(420px 280px at 50% 0%, rgba(217, 164, 65, .28), transparent 62%), var(--c-night);
}

/* a chosen option is the same coral as the primary button, not a second gradient */
.stop-preset.is-on, .stop-seg__btn.is-on, .pic-seg__opt.is-on, .tl-seg__btn.is-on, .imp-seg__opt.is-on,
.pq-chipbtn.is-on, .tl-chipbtn.is-on {
  background: var(--c-primary-strong);
  color: var(--c-on-primary);
  text-shadow: none;
  box-shadow: var(--shadow-1);
}

/* daily challenge on the home page: night card, coral action (white only on the darker coral) */
.dz-hub {
  background: radial-gradient(280px 180px at 100% 0%, rgba(217, 164, 65, .22), transparent 70%), var(--c-night);
  box-shadow: var(--shadow-2);
}
.dz-hub::after { display: none; }
.dz-hub__kicker, .dz-hub__streak small, .dz-hub--compact .dz-hub__kicker, .dz-head__kicker,
.hub-resume__kicker, .mesa-hub__kicker, .hub-path__name, .hub-daily__dn { font-size: var(--fs-micro); }
.hub-daily__dn { color: var(--c-text-2); }
.dz-hub__kicker, .dz-hub__streak small, .dz-head__kicker { color: #F3D48A; }
.dz-hub__rule { color: rgba(255, 255, 255, .84); }
.dz-hub__play { background: var(--c-primary-strong); box-shadow: var(--shadow-1); color: var(--c-on-primary); }
.dz-hub__mins { opacity: 1; color: var(--c-on-primary); }
.dz-hub__streak { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }

/* desktop: waiting rooms that were still one column sit beside their settings, boards stay inside 1200px */
@media (min-width: 1024px) {
  html[data-game] .ndj-app { max-width: var(--page-max); }
  .tv-lobby.stack, .imp-lobby.stack, .pic-lobby.stack,
  .tl-lobby.stack, .ol-lobby.stack, .dm-lobby.stack, .bn-lobby {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-6);
    align-items: start;
  }
  .tv-lobby .tv-start, .bn-lobby .bn-start, .dm-lobby .btn-primary, .ol-lobby .btn-primary, .tl-lobby .btn-primary {
    grid-column: 1 / -1;
  }
}
