/* ============================================================
   OctoDecks: game family kit (see game-kit.js)
   Shared by World Explorer, Bingo, Prize Ladder, Wedge Trivia and
   MonstersBuild. Each game keeps its own colours; these pieces are
   what they have in common:
   - .gk-btn   the chunky game button (4px darker bottom edge)
   - .gk-chip  the dark HUD chip used over a game (as in MonstersBuild)
   - .gk-wait  the "waiting for your teacher" screen with the game's icon
   - .gk-topbar the teacher's bar: room code, icon, game name
   ============================================================ */
:root {
  --gk-chip-bg: rgba(26, 24, 34, .86);  /* HUD chip, as in MonstersBuild */
  --gk-chip-bd: #4b465a;
  --gk-chip-tx: #f4f0e6;
  --gk-bar-bg: #1a1a1a;
  --gk-bar-bd: #2a2a2a;
  --gk-bar-tx: #f0ede8;
  --gk-bar-mute: #9a9a9a;
}

.gk-ico { display: block; flex: none; }

/* Chunky game button: each game passes its own colour in --gk-accent */
.gk-btn {
  --gk-accent: #086bb5;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2;
  background: var(--gk-accent); color: var(--gk-on, #fff);
  border: 0; border-bottom: 4px solid rgba(0, 0, 0, .3); border-radius: 6px;
  padding: 12px 22px; cursor: pointer;
  transition: transform .06s ease, filter .12s ease;
}
.gk-btn:hover:not(:disabled) { filter: brightness(1.08); border-color: rgba(0, 0, 0, .3); }
.gk-btn, .gk-btn:hover { box-shadow: none; }
.gk-btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.gk-btn:disabled { opacity: .5; cursor: default; }
.gk-btn.gk-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; border-bottom-width: 4px; opacity: .85; }

/* HUD chip over a game */
.gk-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gk-chip-bg); color: var(--gk-chip-tx);
  border: 1px solid var(--gk-chip-bd); border-radius: 6px;
  padding: 6px 10px; font-size: 13px; line-height: 1.2;
}
.gk-chip b { font-weight: 700; }

/* Waiting screen */
.gk-wait {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 48px 20px; min-height: 320px;
}
.gk-wait-ico { animation: gk-bob 1.4s ease-in-out infinite alternate; }
.gk-wait-ico .gk-ico { width: 96px; height: 96px; }
.gk-wait-msg { margin: 8px 0 0; font-size: 21px; font-weight: 700; color: var(--text-primary, #1d1f23); }
.gk-wait-sub { margin: 0; font-size: 15px; color: var(--text-secondary, #5f6670); }
@keyframes gk-bob { 0% { transform: translateY(0); } 100% { transform: translateY(-6px); } }

/* Teacher top bar */
.gk-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--gk-bar-bg); color: var(--gk-bar-tx);
  border-bottom: 1px solid var(--gk-bar-bd);
  padding: 10px 18px; flex-shrink: 0;
}
.gk-topbar-l, .gk-topbar-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gk-topbar .gk-ico { width: 30px; height: 30px; }
.gk-code {
  font-size: 18px; font-weight: 800; letter-spacing: .08em;
  background: rgba(46, 159, 233, .15); color: #4fb0ee;
  border: 1px solid rgba(46, 159, 233, .35); border-radius: 6px; padding: 3px 12px;
}
.gk-name { font-size: 17px; font-weight: 700; color: var(--gk-bar-tx); }
.gk-meta { font-size: 13px; color: var(--gk-bar-mute); }
.gk-pill {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: var(--gk-bar-tx); border: 1px solid rgba(255, 255, 255, .14);
}

@media (prefers-reduced-motion: reduce) {
  .gk-wait-ico { animation: none; }
  .gk-btn { transition: none; }
}
