/* ════════════════════════════════════════════════════════════════
   TAVERN OVERHAUL — shared design layer (Oct 17 2026)
   One candlelit visual language across every game room title.
   Cosmetic properties ONLY (no layout): each game keeps its own
   geometry; this layer brings the finish — glass, gold, glow,
   motion. Per-game blocks refine their own surfaces on top.
   ════════════════════════════════════════════════════════════════ */

:root {
  --ov-gold: #c9a227;
  --ov-gold-lt: #ffd76a;
  --ov-gold-soft: rgba(201, 162, 39, 0.45);
  --ov-violet: #7a5cff;
  --ov-ink: #0a0714;
  --ov-glass: rgba(24, 18, 38, 0.72);
  --ov-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── keyframes library ─────────────────────────────────────────── */
@keyframes ov-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ov-pop-in {
  0%   { opacity: 0; transform: scale(0.94); }
  60%  { opacity: 1; transform: scale(1.015); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes ov-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--ov-gold-soft), 0 0 18px rgba(201, 162, 39, 0.25); }
  50%      { box-shadow: 0 0 0 1px var(--ov-gold), 0 0 30px rgba(255, 215, 106, 0.45); }
}
@keyframes ov-shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}
@keyframes ov-ember-drift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: 0.9; }
  100% { transform: translateY(-46vh) translateX(3vw); opacity: 0; }
}
@keyframes ov-title-breathe {
  0%, 100% { text-shadow: 0 0 18px rgba(255, 215, 106, 0.35), 0 2px 0 rgba(0,0,0,0.6); }
  50%      { text-shadow: 0 0 30px rgba(255, 215, 106, 0.6), 0 2px 0 rgba(0,0,0,0.6); }
}

/* ── page finish ───────────────────────────────────────────────── */
html { background: var(--ov-ink); }
::selection { background: rgba(201, 162, 39, 0.55); color: #fff8e7; }
* { scrollbar-width: thin; scrollbar-color: rgba(201,162,39,0.55) rgba(10,7,20,0.6); }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: rgba(201,162,39,0.5); border-radius: 6px; }
*::-webkit-scrollbar-track { background: rgba(10,7,20,0.55); }

/* ── buttons: one touch feel everywhere ────────────────────────── */
.btn, .tbtn, .abtn, .icon-btn, .ka-btn, .ka-zbtn, .packbtn,
.sound-btn, .help-toggle-btn, .grid-den-btn, .cbtn {
  transition: transform 0.16s var(--ov-ease), box-shadow 0.22s var(--ov-ease),
              background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  will-change: transform;
}
.btn:hover, .tbtn:hover, .abtn:hover, .icon-btn:hover, .ka-btn:hover,
.ka-zbtn:hover, .packbtn:hover, .sound-btn:hover, .help-toggle-btn:hover,
.grid-den-btn:hover, .cbtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 14px rgba(201, 162, 39, 0.28);
  filter: brightness(1.08);
}
.btn:active, .tbtn:active, .abtn:active, .icon-btn:active, .ka-btn:active,
.ka-zbtn:active, .packbtn:active, .sound-btn:active, .help-toggle-btn:active,
.grid-den-btn:active, .cbtn:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  filter: brightness(0.96);
}
.btn:focus-visible, .tbtn:focus-visible, .abtn:focus-visible,
.icon-btn:focus-visible, .ka-btn:focus-visible, .ka-zbtn:focus-visible,
.packbtn:focus-visible, .sound-btn:focus-visible,
.help-toggle-btn:focus-visible, .grid-den-btn:focus-visible,
.cbtn:focus-visible, button:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ov-gold-lt);
  outline-offset: 2px;
}

/* gold primary buttons get the living glow */
.btn-gold, .btn.btn-gold {
  background-image: linear-gradient(160deg, #e8b95a, #c9a227 55%, #9a6d1c);
  box-shadow: 0 3px 14px rgba(201, 162, 39, 0.35), inset 0 1px 0 rgba(255, 240, 200, 0.55);
}

/* ── panels & cards: glass + hairline gold ─────────────────────── */
.panel, .hud-box, .clue-box, .codex, .end-card {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── entrances ─────────────────────────────────────────────────── */
.ov-enter { animation: ov-fade-up 0.55s var(--ov-ease) both; }
.ov-pop   { animation: ov-pop-in 0.38s var(--ov-ease) both; }

/* ── reduced motion: the overhaul goes still, never broken ─────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ── Batch #209 (AAA wave 5): canonical gold + per-game gap fills ──
   --ov-gold is now the site canonical #c9a227 (was #c4902a, a
   near-twin that drifted apart across files); every rgba twin in
   this file, game-readability.css, diamond-art.css and
   paint-by-number.css was aligned in the same pass. --ov-gold-lt
   #ffd76a stays as the intentional brighter "lit" variant.
   Below: clickables that had a cursor but no hover/press feedback
   anywhere (audited per game, Oct 27 2026), plus a real disabled
   treatment for the games whose sheets had none (crossword, hall). */
.logtab, .seat, .stepper, .slot, .ibtn, .plusbtn, .tab, .clue-box {
  transition: background-color 0.18s ease, border-color 0.18s ease,
              box-shadow 0.2s var(--ov-ease), filter 0.18s ease;
}
.logtab:hover, .seat:hover, .stepper:hover, .slot:hover,
.ibtn:hover, .plusbtn:hover, .tab:hover, .clue-box:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 14px rgba(201, 162, 39, 0.25);
}
.logtab:active, .seat:active, .stepper:active, .slot:active,
.ibtn:active, .plusbtn:active, .tab:active, .clue-box:active {
  filter: brightness(0.95);
}
/* wordsearch/crossword letter cells: hover tracking for mouse
   players; state cells (found/selected/hinted) keep their own face */
.cell:hover:not(.found):not(.sel):not(.hinted) {
  background-color: rgba(201, 162, 39, 0.13);
}
/* disabled finally looks disabled on every game page */
button:disabled, input:disabled, select:disabled, textarea:disabled {
  opacity: 0.45;
}
