/*
 * PHASE 8Q.2 (D) -- THE GAMES HUB AND GAME HISTORY
 *
 * Phone first (375 x 667 is the design size), checked at 412 and desktop.
 * Every colour and size here is a token app.css defines (--bg-elev,
 * --bg-elev-2, --line, --line-soft, --text, --text-dim, --text-faint,
 * --accent, --accent-dim, --warn, --radius, --radius-sm, --tap, --gutter,
 * --sp-*); a test pins this sheet to the defined set, because 8B shipped four
 * tokens that did not exist.
 *
 * NO STATE IS CARRIED BY COLOUR ALONE. Every section says its state in words
 * (PLAY NOW, WAITING, COMPLETED ...); colour only reinforces it.
 *
 * DENSITY. A folded section is its name, its status and at most one action --
 * small enough that several completed or passive games share one phone
 * screen. Only an open game you are playing takes more room.
 *
 * NO HORIZONTAL PAGE SCROLL. The chips scroll inside their own strip; every
 * other row wraps. Long names and family-written text break rather than push.
 */

/* ==========================================================================
   THE HUB FRAME
   ========================================================================== */

.ghub {
  display: grid;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
  min-width: 0;
}

.ghub__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
}

.ghub__title {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.ghub__day {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.ghub-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---- the chips: one horizontal strip, scrolling inside itself ---------- */

.ghub-chips {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.ghub-chips::-webkit-scrollbar {
  display: none;
}

.ghub-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: var(--tap);
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ghub-chip__name {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ghub-chip__status {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.ghub-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ghub-list {
  display: grid;
  gap: var(--sp-2);
  min-width: 0;
}

.ghub-history {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--sp-3);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   ONE GAME'S SECTION: bordered, centred name, then status, then content
   ========================================================================== */

.ghub-game {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  scroll-margin-top: var(--sp-4);
}

.ghub-game[data-bucket="action"] {
  border-color: var(--accent-dim);
  background: var(--bg-elev-2);
}

.ghub-game[data-focused="true"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ghub-game__head {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  min-height: var(--tap);
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.ghub-game__head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.ghub-game__name {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.ghub-game__status {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

/* The state reinforced by colour -- never carried by it: the words say it all. */
.ghub-game[data-stage="play"] .ghub-game__status,
.ghub-game[data-stage="your_turn"] .ghub-game__status,
.ghub-game[data-stage="results_ready"] .ghub-game__status {
  color: var(--accent);
}

.ghub-game[data-stage="author_missed"] .ghub-game__status {
  color: var(--warn);
}

.ghub-game__time,
.ghub-game__secondary {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.ghub-game__time {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ghub-game__flash {
  margin: 0;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.ghub-game--just-done {
  border-color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .ghub-game--just-done .ghub-game__flash {
    animation: ghub-pop var(--motion-base, 220ms) var(--ease, ease-out);
  }
}

@keyframes ghub-pop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ghub-game__actions {
  display: grid;
}

.ghub-game__action {
  min-height: var(--tap);
}

.ghub-game__body {
  display: grid;
  gap: var(--sp-2);
  min-width: 0;
  padding-top: var(--sp-1);
}

.ghub-game__body[hidden] {
  display: none;
}

.ghub-game__content {
  display: grid;
  gap: var(--sp-2);
  min-width: 0;
}

/* A card inside a section needs no second frame or second heading of its own. */
.ghub-game__content .section__head {
  display: none;
}

/*
 * ONE PRIMARY ACTION: when the section header already links to the game's
 * screen, the card's own link to it is folded away. (games-hub.js sets
 * data-own-action; without a section link the card keeps its own.)
 */
.ghub-game[data-own-action="link"] .ghub-game__content a.btn {
  display: none;
}

/* The section name already says the game (and the weekday round's title). */
.ghub-game__content .wdcard__title,
.ghub-game__content .wdcard__eyebrow {
  display: none;
}

.ghub-game__content .card,
.ghub-game__content .dailycard {
  margin: 0;
}

/* ---- the compact strip: the Pole circulating, a Challenge ticking ------ */

.ghub-game--compact {
  padding: 4px var(--sp-3);
  gap: 0;
}

.ghub-game--compact .ghub-game__head {
  grid-auto-flow: column;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--tap);
}

.ghub-game--compact .ghub-game__name {
  font-size: 0.85rem;
}

.ghub-game--compact .ghub-game__secondary {
  font-size: 0.78rem;
  padding-bottom: 4px;
}

/* ==========================================================================
   GUESS THE OTHERS: one row per featured person
   ========================================================================== */

.ghub-people {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ghub-people[hidden] {
  display: none;
}

.ghub-person {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px var(--sp-2);
  padding: 6px var(--sp-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  min-width: 0;
}

.ghub-person__label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.ghub-person__status {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.ghub-person[data-person-stage="play"] .ghub-person__status,
.ghub-person[data-person-stage="your_turn"] .ghub-person__status,
.ghub-person[data-person-stage="results_ready"] .ghub-person__status {
  color: var(--accent);
}

.ghub-person__meta {
  flex-basis: 100%;
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ---- who played (only what the server allowed) ------------------------ */

.ghub-participants {
  display: grid;
  gap: 2px;
  padding-top: var(--sp-1);
  border-top: 1px solid var(--line-soft);
}

.ghub-participants[hidden] {
  display: none;
}

.ghub-participants__line {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

/* ==========================================================================
   GAME HISTORY
   ========================================================================== */

.ghist__title {
  margin: var(--sp-2) 0 var(--sp-3);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.ghist,
.ghist-days {
  display: grid;
  gap: var(--sp-3);
  min-width: 0;
}

.ghist-day {
  display: grid;
  gap: var(--sp-2);
}

.ghist-day__title {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.ghist-game {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  min-width: 0;
}

.ghist-game__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px var(--sp-2);
  width: 100%;
  min-height: var(--tap);
  padding: 6px var(--sp-3);
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ghist-game__name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.ghist-game__meta {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.ghist-game__body {
  display: grid;
  gap: 6px;
  padding: 0 var(--sp-3) var(--sp-3);
}

.ghist-game__body[hidden] {
  display: none;
}

.ghist-game__summary,
.ghist-game__line,
.ghist-game__players {
  margin: 0;
  overflow-wrap: anywhere;
}

.ghist-game__line,
.ghist-game__players {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.ghist-choices {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ghist-choice {
  display: grid;
  gap: 2px;
  padding: 6px var(--sp-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.ghist-choice--correct {
  border-color: var(--accent-dim);
}

.ghist-choice__label {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ghist-choice__names {
  font-size: 0.82rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.ghist-more {
  min-height: var(--tap);
}

/* ==========================================================================
   9B: EVERYDAY GAMES AS COMPACT MARQUEES
   ==========================================================================
   Weekend Trivia and the Casino stay the two HERO marquees above the hub
   (weekend-trivia.css, casino.css -- untouched). Every section below is a
   MINI marquee: the same anatomy for every game -- art tile, title, ONE
   status, ONE supporting-detail row, at most ONE action -- and a palette,
   glyph and background motif of its own. Only presentation lives here: the
   words, the order, the one action and the folding still come from
   games-hub-rules.js, unchanged.

   Each game sets five colours (rgb triplets) and a glyph:
     --mq-deep   the card's base       --mq-ink   titles, status, the CTA
     --mq-ink2   the CTA's lower half  --mq-glow  the corner glow
     --mq-on     text on the CTA       --mq-glyph the art tile's mark
   plus --mq-motif, a quiet background pattern.
   Nothing is carried by colour alone: every state is still in words.
   ========================================================================== */

.ghub-game.ghub-marquee {
  --mq-deep: 17 34 32;
  --mq-ink: 79 209 165;
  --mq-ink2: 47 143 114;
  --mq-glow: 79 209 165;
  --mq-on: 4 32 24;
  --mq-glyph: "\2605";
  --mq-motif: linear-gradient(transparent, transparent);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 2px solid rgb(var(--mq-ink) / 0.55);
  border-radius: var(--radius);
  background:
    var(--mq-motif),
    radial-gradient(90% 120% at 100% 0%, rgb(var(--mq-glow) / 0.34), transparent 62%),
    radial-gradient(70% 90% at 0% 100%, rgb(var(--mq-glow) / 0.16), transparent 70%),
    rgb(var(--mq-deep));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 6px 16px rgb(0 0 0 / 0.35), inset 0 0 22px rgb(var(--mq-glow) / 0.12);
  color: rgb(244 243 255);
}

/* Your turn / play now: the marquee lights come on (a row of bulbs) and the border brightens. */
.ghub-game.ghub-marquee[data-bucket="action"] {
  border-color: rgb(var(--mq-ink));
  padding-top: calc(var(--sp-3) + 6px);
}

.ghub-game.ghub-marquee[data-bucket="action"]::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  block-size: 8px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgb(var(--mq-ink)) 0 2px, transparent 2.5px) 0 50% / 16px 100% repeat-x,
    radial-gradient(circle at center, rgb(255 255 255 / 0.85) 0 1.5px, transparent 2px) 8px 50% / 16px 100% repeat-x;
}

/* Done for today: quieter, never greyed out. */
.ghub-game.ghub-marquee[data-bucket="results"] {
  border-color: rgb(var(--mq-ink) / 0.35);
}

.ghub-game.ghub-marquee[data-focused="true"],
.ghub-game.ghub-marquee.ghub-game--just-done {
  border-color: rgb(var(--mq-ink));
}

.ghub-marquee .ghub-game__head {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: var(--sp-3);
  padding: 0;
  color: inherit;
  text-align: start;
}

.ghub-marquee .ghub-game__head:focus-visible {
  outline: 3px solid rgb(253 224 71);
}

.ghub-game__art {
  display: grid;
  place-items: center;
  inline-size: clamp(2.6rem, 12vw, 3.25rem);
  aspect-ratio: 1;
  border: 1px solid rgb(var(--mq-ink) / 0.8);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgb(var(--mq-ink) / 0.95), rgb(var(--mq-ink2)));
  box-shadow: 0 0 10px rgb(var(--mq-glow) / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.35);
  color: rgb(var(--mq-on));
  transform: rotate(-4deg);
}

.ghub-game__art::before {
  content: var(--mq-glyph);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ghub-game__words {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ghub-game__kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: rgb(var(--mq-ink));
}

.ghub-game__kicker[hidden] {
  display: none;
}

.ghub-marquee .ghub-game__name {
  font-size: clamp(1.02rem, 4.8vw, 1.3rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: rgb(255 255 255);
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.5), 0 0 10px rgb(var(--mq-glow) / 0.55);
}

/* ONE primary status, in the game's ink -- whatever the stage, the words say it. */
.ghub-marquee .ghub-game__status,
.ghub-game.ghub-marquee[data-stage] .ghub-game__status {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgb(var(--mq-ink));
}

.ghub-game.ghub-marquee[data-stage="author_missed"] .ghub-game__status {
  color: rgb(253 186 116);
}

/* ONE supporting-detail row: the time and the secondary line on one board, wrapping. */
.ghub-game__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--sp-2);
  min-width: 0;
  padding: 6px var(--sp-2);
  border: 1px solid rgb(var(--mq-ink) / 0.3);
  border-radius: var(--radius-sm);
  background: rgb(0 0 0 / 0.32);
}

.ghub-game__meta:not(:has(> :not([hidden]))) {
  display: none;
}

.ghub-marquee .ghub-game__time,
.ghub-marquee .ghub-game__secondary,
.ghub-marquee .ghub-game__who {
  margin: 0;
  text-align: start;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  color: rgb(226 232 240);
}

.ghub-marquee .ghub-game__time {
  color: rgb(255 255 255);
}

/* The people line starts its own line on the board: it names everyone, so it never shares a row with the clock. */
.ghub-marquee .ghub-game__who {
  flex-basis: 100%;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgb(var(--mq-ink));
}

.ghub-game__who[hidden] {
  display: none;
}

.ghub-marquee .ghub-game__time:not([hidden]) + .ghub-game__secondary:not([hidden])::before {
  content: "\00B7  ";
  color: rgb(var(--mq-ink));
}

.ghub-marquee .ghub-game__flash {
  color: rgb(var(--mq-ink));
}

/* The people under Guess the Others and Two Truths: one board, one quiet line per person. */
.ghub-marquee .ghub-people {
  gap: 0;
  padding: 2px var(--sp-2);
  border: 1px solid rgb(var(--mq-ink) / 0.3);
  border-radius: var(--radius-sm);
  background: rgb(0 0 0 / 0.28);
}

.ghub-marquee .ghub-person {
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.ghub-marquee .ghub-person + .ghub-person {
  border-top: 1px solid rgb(var(--mq-ink) / 0.18);
}

.ghub-marquee .ghub-person__label {
  color: rgb(255 255 255);
}

.ghub-marquee .ghub-person__status,
.ghub-marquee .ghub-person[data-person-stage] .ghub-person__status {
  color: rgb(var(--mq-ink));
}

.ghub-marquee .ghub-person__meta {
  color: rgb(203 213 225);
}

/* ONE action, the same pill shape on every card; the expand-only action is its outline twin. */
.ghub-marquee .ghub-game__action {
  min-height: var(--tap);
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(var(--mq-ink)), rgb(var(--mq-ink2)));
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.45), 0 0 12px rgb(var(--mq-glow) / 0.4);
  color: rgb(var(--mq-on));
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* VIEW RESULTS is the outline twin; PLAY (a game played in its card) stays the filled pill. */
.ghub-marquee .ghub-game__action[data-hub-action="expand"]:not([data-label="PLAY"]) {
  border-color: rgb(var(--mq-ink) / 0.8);
  background: rgb(0 0 0 / 0.3);
  box-shadow: none;
  color: rgb(var(--mq-ink));
}

.ghub-marquee .ghub-game__action:active {
  transform: scale(0.98);
}

/* The game's own card, when open, sits on the app's normal surface so it reads exactly as before. */
.ghub-marquee .ghub-game__body:not([hidden]) {
  padding: var(--sp-2);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text);
}

/* The ambient strips (the Pole circulating, a Challenge ticking): the same marquee, smaller. */
.ghub-game.ghub-marquee.ghub-game--compact {
  gap: 6px;
  padding: var(--sp-2) var(--sp-3);
}

.ghub-marquee.ghub-game--compact .ghub-game__head {
  grid-auto-flow: row;
  justify-content: stretch;
  min-height: var(--tap);
}

.ghub-marquee.ghub-game--compact .ghub-game__art {
  inline-size: 2.25rem;
}

.ghub-marquee.ghub-game--compact .ghub-game__art::before {
  font-size: 1.05rem;
}

.ghub-marquee.ghub-game--compact .ghub-game__name {
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .ghub-marquee .ghub-game__action:active {
    transform: none;
  }
}

/* ---- the identities ------------------------------------------------------ */

/* Weekday game: violet, a calendar grid. */
.ghub-marquee[data-hub-game="weekday"] {
  --mq-deep: 28 18 66;
  --mq-ink: 196 181 253;
  --mq-ink2: 124 58 237;
  --mq-glow: 139 92 246;
  --mq-on: 24 10 52;
  --mq-glyph: "\25A6";
  --mq-motif:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px) 0 0 / 18px 18px;
}

/* Guess the Others: cyan, a field of dots. */
.ghub-marquee[data-hub-game="hwdyk"] {
  --mq-deep: 6 40 48;
  --mq-ink: 103 232 249;
  --mq-ink2: 8 145 178;
  --mq-glow: 34 211 238;
  --mq-on: 4 30 38;
  --mq-glyph: "?";
  --mq-motif: radial-gradient(circle, rgb(255 255 255 / 0.07) 1.5px, transparent 2px) 0 0 / 14px 14px;
}

/* Two Truths & a Lie: coral, diagonal stripes; the tile reads true-true-false. */
.ghub-marquee[data-hub-game="two-truths"] {
  --mq-deep: 62 14 20;
  --mq-ink: 252 165 165;
  --mq-ink2: 220 38 38;
  --mq-glow: 248 113 113;
  --mq-on: 60 8 8;
  --mq-glyph: "\2713\2713\2715";
  --mq-motif: repeating-linear-gradient(135deg, rgb(255 255 255 / 0.035) 0 8px, transparent 8px 16px);
}

.ghub-marquee[data-hub-game="two-truths"] .ghub-game__art::before {
  font-size: 0.78rem;
}

/* Festivus Bluff: lime on charcoal, a spotlight. */
.ghub-marquee[data-hub-game="bluff"] {
  --mq-deep: 24 28 22;
  --mq-ink: 190 242 100;
  --mq-ink2: 101 163 13;
  --mq-glow: 163 230 53;
  --mq-on: 26 46 5;
  --mq-glyph: "\25D0";
  --mq-motif: radial-gradient(60% 80% at 50% -20%, rgb(255 255 255 / 0.09), transparent 70%);
}

/* Festivus Pole: brushed aluminium -- the tile IS the pole (no glyph). */
.ghub-marquee[data-hub-game="pole"] {
  --mq-deep: 30 41 59;
  --mq-ink: 226 232 240;
  --mq-ink2: 100 116 139;
  --mq-glow: 203 213 225;
  --mq-on: 15 23 42;
  --mq-glyph: "";
  --mq-motif: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.03) 0 1px, transparent 1px 5px);
}

.ghub-marquee[data-hub-game="pole"] .ghub-game__art {
  background:
    linear-gradient(90deg, transparent 42%, rgb(248 250 252) 44%, rgb(148 163 184) 52%, rgb(71 85 105) 58%, transparent 60%),
    linear-gradient(180deg, rgb(51 65 85), rgb(15 23 42));
}

/* Family Vote: ballot blue. */
.ghub-marquee[data-hub-game="family-vote"] {
  --mq-deep: 14 28 72;
  --mq-ink: 147 197 253;
  --mq-ink2: 37 99 235;
  --mq-glow: 59 130 246;
  --mq-on: 8 20 60;
  --mq-glyph: "\2611\FE0E";
  --mq-motif: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.03) 0 1px, transparent 1px 12px);
}

/* Challenges: orange, chevrons, a flag. */
.ghub-marquee[data-hub-game="challenges"] {
  --mq-deep: 58 26 8;
  --mq-ink: 253 186 116;
  --mq-ink2: 234 88 12;
  --mq-glow: 249 115 22;
  --mq-on: 50 18 4;
  --mq-glyph: "\2691\FE0E";
  --mq-motif:
    linear-gradient(135deg, rgb(255 255 255 / 0.035) 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(225deg, rgb(255 255 255 / 0.035) 25%, transparent 25%) 0 0 / 16px 16px;
}

/* Daily Question: evergreen, a big Q. */
.ghub-marquee[data-hub-game="daily-question"] {
  --mq-deep: 6 46 34;
  --mq-ink: 134 239 172;
  --mq-ink2: 22 163 74;
  --mq-glow: 34 197 94;
  --mq-on: 4 40 20;
  --mq-glyph: "Q";
  --mq-motif: radial-gradient(circle at 0 0, rgb(255 255 255 / 0.05) 0 3px, transparent 3.5px) 0 0 / 22px 22px;
}

/* Would You Rather: magenta, the card split in two. */
.ghub-marquee[data-hub-game="wyr"] {
  --mq-deep: 52 16 64;
  --mq-ink: 240 171 252;
  --mq-ink2: 192 38 211;
  --mq-glow: 217 70 239;
  --mq-on: 50 8 60;
  --mq-glyph: "A|B";
  --mq-motif: linear-gradient(115deg, transparent 50%, rgb(255 255 255 / 0.04) 50%);
}

.ghub-marquee[data-hub-game="wyr"] .ghub-game__art::before {
  font-size: 0.9rem;
}

/* Higher / Lower: teal up, red down. */
.ghub-marquee[data-hub-game="higher-lower"] {
  --mq-deep: 15 23 42;
  --mq-ink: 94 234 212;
  --mq-ink2: 13 148 136;
  --mq-glow: 45 212 191;
  --mq-on: 4 40 36;
  --mq-glyph: "\25B2\25BC";
  --mq-motif: radial-gradient(70% 90% at 0% 100%, rgb(239 68 68 / 0.22), transparent 70%);
}

.ghub-marquee[data-hub-game="higher-lower"] .ghub-game__art::before {
  font-size: 0.95rem;
}

/* Who Said It?: rose, a quotation mark. */
.ghub-marquee[data-hub-game="who-said-it"] {
  --mq-deep: 66 12 52;
  --mq-ink: 249 168 212;
  --mq-ink2: 219 39 119;
  --mq-glow: 236 72 153;
  --mq-on: 60 6 40;
  --mq-glyph: "\275D";
  --mq-motif: radial-gradient(circle, rgb(255 255 255 / 0.05) 2px, transparent 2.5px) 0 0 / 20px 12px;
}
