/* Base Reset & Variables - Native Telegram Mini App Theme */
:root {
  /* Map Telegram variables to our base colors with fallbacks */
  --tg-bg: var(--tg-theme-bg-color, #f8fafc);
  --tg-text: var(--tg-theme-text-color, #111827);
  --tg-hint: var(--tg-theme-hint-color, #4B5563);
  --tg-link: var(--tg-theme-link-color, #3b82f6);
  --tg-btn: var(--tg-theme-button-color, #10b981);
  --tg-btn-text: var(--tg-theme-button-text-color, #ffffff);
  --tg-secondary-bg: var(--tg-theme-secondary-bg-color, #e2e8f0);

  /* Hybrid Glass Variables */
  --bg-gradient: var(--tg-bg);
  --color-charcoal: var(--tg-text);
  --color-text-dark: var(--tg-text);
  --color-text-light: var(--tg-hint);
  
  /* Make glass adaptive to light/dark themes */
  --color-glass-border: rgba(128, 128, 128, 0.15);
  --color-glass-bg: color-mix(in srgb, var(--tg-bg) 70%, transparent);
  --color-panel-bg: color-mix(in srgb, var(--tg-bg) 90%, transparent);
}

.twilight-theme {
  /* We remove explicit dark mode overrides because TG handles them natively now,
     but we leave this empty class in case we want custom overrides later. */
}

/* ===================================================
   TELEGRAM MINI APP: ROOT LAYOUT
   The app uses a flex-column layout rooted to the
   Telegram-provided stable viewport height.
=================================================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  /* Use Telegram's stable height to prevent cut-off */
  height: var(--tg-viewport-stable-height, 100vh);
  overflow: hidden; /* Body itself does NOT scroll */
  box-sizing: border-box;
  background: var(--bg-gradient);
  color: var(--color-charcoal);
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent; /* removes tap flash on mobile */
  transition: background 0.5s ease, color 0.5s ease;
}

/* The #game-container wraps the header + all screens.
   It fills the full stable height and allows internal scrolling. */
body > #auth-screen,
#game-container {
  height: var(--tg-viewport-stable-height, 100vh);
}

#game-container {
  display: none;
  flex-direction: column;
  overflow: hidden; /* children scroll, not this container */
}

body.is-logged-in #game-container {
  display: flex !important;
}

/* Each screen fills the remaining space under the sticky header
   and scrolls its own content */
.tg-screen {
  position: relative;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 12px;
}

/* auth screen: full viewport centered */
#auth-screen.tg-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--tg-viewport-stable-height, 100vh);
  padding-top: 0;
}

/* ---------------------------------------------------
   SECURITY: The Default Hidden Rule
   (game-container rules are now in the root layout above)
--------------------------------------------------- */
#wallet-header, .bottom-nav {
  display: none !important;
}

body.is-logged-in #wallet-header { display: flex !important; }
body.is-logged-in .bottom-nav { display: flex !important; }

/* ---------------------------------------------------
   Pure Frosted Glass Utilities
--------------------------------------------------- */
.glass-panel {
  background: var(--color-glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

/* Candy Glossy Rooms */
.room-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.5);
}
.room-card:hover { transform: translateY(-5px); }

.room-blue { background: rgba(59, 130, 246, 0.15); }
.room-green { background: rgba(16, 185, 129, 0.15); }
.room-silver { background: rgba(156, 163, 175, 0.15); }
.room-gold { background: rgba(245, 158, 11, 0.15); }

.room-blue:hover { box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.6); border-color: rgba(59, 130, 246, 0.4); }
.room-green:hover { box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.6); border-color: rgba(16, 185, 129, 0.4); }
.room-silver:hover { box-shadow: 0 15px 40px rgba(156, 163, 175, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.6); border-color: rgba(156, 163, 175, 0.4); }
.room-gold:hover { box-shadow: 0 15px 40px rgba(245, 158, 11, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.6); border-color: rgba(245, 158, 11, 0.4); }

/* Buttons */
.btn-glossy {
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #1e3a8a;
  box-shadow: 
    0 10px 20px rgba(37, 99, 235, 0.1),
    inset 0 2px 5px rgba(255, 255, 255, 1),
    inset 0 -3px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.btn-action {
  background: linear-gradient(135deg, var(--tg-btn) 0%, var(--tg-btn) 100%);
  color: var(--tg-btn-text);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.1),
    inset 0 4px 10px rgba(255, 255, 255, 0.1),
    inset 0 -4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

/* Safe area insets for mobile devices */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 24px) !important;
  padding-bottom: var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom, 24px)) !important;
}

.bottom-nav {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-bottom: var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  height: calc(4rem + var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))) !important;
}
.btn-action:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 15px 35px rgba(16, 185, 129, 0.6),
    inset 0 4px 10px rgba(255, 255, 255, 0.6),
    inset 0 -4px 10px rgba(0, 0, 0, 0.2);
}
.btn-action:disabled {
  background: rgba(156, 163, 175, 0.5);
  color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  transform: none;
  text-shadow: none;
}

/* The Caller Orb - scales down for mobile */
.glass-orb {
  width: clamp(180px, 45vw, 300px);
  height: clamp(180px, 45vw, 300px);
  border-radius: 50%;
  background: radial-gradient(110% 110% at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.2) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.05),
    inset 0 0 30px rgba(255, 255, 255, 0.8),
    inset 0 10px 40px rgba(255, 255, 255, 1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.glow-pulse {
  box-shadow: 
    0 0 40px rgba(59, 130, 246, 0.3),
    inset 0 0 50px rgba(255, 255, 255, 1),
    inset 0 10px 60px rgba(255, 255, 255, 1) !important;
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 1);
}

/* ---------------------------------------------------
   Phase 2: Numbered Inventory Grid
--------------------------------------------------- */
.custom-scroll::-webkit-scrollbar {
  width: 8px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cols on tiny 320px phones */
  gap: 6px;
  width: 100%;
}
@media (min-width: 400px) {
  .inventory-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 540px) {
  .inventory-grid { grid-template-columns: repeat(7, 1fr); }
}
@media (min-width: 768px) {
  .inventory-grid { grid-template-columns: repeat(10, 1fr); }
}

.inv-cell {
  background: var(--color-panel-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.8rem, 3vw, 1.25rem); /* scales from 320px to desktop */
  font-weight: 800;
  color: var(--color-text-dark);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-height: 48px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.inv-cell:hover:not(.taken):not(.selected) {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px) scale(1.05);
  z-index: 5;
  box-shadow: 0 8px 15px rgba(59, 130, 246, 0.15), inset 0 2px 4px rgba(255, 255, 255, 1);
  border-color: rgba(59, 130, 246, 0.4);
}
.inv-cell.taken {
  background: rgba(156, 163, 175, 0.3);
  color: rgba(156, 163, 175, 0.5);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: none;
  cursor: not-allowed;
}
.inv-cell.selected {
  background: linear-gradient(135deg, #FFD700 0%, #F59E0B 100%);
  color: #451a03;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.8), inset 0 -2px 5px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transform: translateY(-4px) scale(1.1);
  z-index: 10;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* ---------------------------------------------------
   Phase 3: Live Game (Stacked Cards)
--------------------------------------------------- */
.cards-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  width: 100%;
}

.card-wrapper.stacked-2 {
  position: absolute;
  top: 40px;
  left: 20px;
  z-index: 0;
  transform: scale(0.95);
  opacity: 0.8;
  transition: all 0.3s ease;
}
.card-wrapper.stacked-1 {
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
}
.card-wrapper.stacked-2:hover {
  transform: scale(1) translateY(-20px);
  z-index: 20;
  opacity: 1;
}

.bingo-cell {
  background: var(--color-panel-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.bingo-cell:hover:not(.daubed) {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.bingo-cell.daubed {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #1e3a8a;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.8);
  transform: scale(0.95);
}

.bingo-cell.free-space {
  font-size: 0.8rem;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.2);
  color: #b45309;
}
.bingo-cell.free-space.daubed {
  background: rgba(251, 191, 36, 0.4);
  border-color: rgba(251, 191, 36, 0.8);
}

/* Animations */
@keyframes liquid-fill {
  0% { transform: scale(0) translateY(10px); opacity: 0; }
  50% { transform: scale(1.1) translateY(-2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.liquid-daub::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
  border-radius: 50%;
  opacity: 0;
}
.bingo-cell.auto-daubed::before {
  animation: liquid-fill 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Activity Feed Mask */
.mask-gradient {
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 100%);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 100%);
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.feed-item {
  animation: slideInUp 0.3s ease-out forwards;
}
.glass-toggle {
  background: rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------------------
   Live Prize Odometer & Warnings
--------------------------------------------------- */
.odometer-spin {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.prize-locked {
  color: #d97706 !important;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
  animation: lock-glow 1s ease-out forwards;
}
@keyframes lock-glow {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); text-shadow: 0 0 25px rgba(245, 158, 11, 1); }
  100% { transform: scale(1); }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); transform: scale(1); }
}
.btn-warning-pulse {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  border-color: #fca5a5 !important;
  color: white !important;
  animation: pulse-red 1s infinite !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
}

@keyframes text-pulse-red {
  0% { color: #111827; transform: scale(1); }
  50% { color: #ef4444; transform: scale(1.2); text-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
  100% { color: #111827; transform: scale(1); }
}
.text-warning-pulse {
  animation: text-pulse-red 1s infinite;
}

/* ---------------------------------------------------
   Magic Hover Tooltip
--------------------------------------------------- */
#cardPreviewTooltip {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 12px;
  width: 220px;
  transform: translate(15px, 15px);
  transition: opacity 0.2s ease;
}
#cardPreviewTooltip .mini-cell {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f2937;
  aspect-ratio: 1;
}
#cardPreviewTooltip .mini-cell.free {
  background: rgba(251, 191, 36, 0.4);
  font-size: 0.5rem;
}

/* ---------------------------------------------------
   Settings & Navigation Toggles
--------------------------------------------------- */
.toggle-switch {
  width: 44px;
  height: 24px;
  background-color: rgba(156, 163, 175, 0.3);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;
}
.toggle-switch.active {
  background-color: #3b82f6;
}
.toggle-thumb {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-switch.active .toggle-thumb {
  transform: translateX(20px);
}

/* ---------------------------------------------------
   Wallet & Navigation System
--------------------------------------------------- */
.bottom-nav {
  background: var(--color-glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid var(--color-glass-border);
  /* Use safe area insets for devices with home indicators */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
  color: var(--color-text-light);
  transition: all 0.3s ease;
  position: relative;
}

.nav-item.active {
  color: #3b82f6;
  transform: translateY(-2px);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 4px;
  background: #3b82f6;
  border-radius: 4px;
}

.wallet-card {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.4);
}

.input-glass {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid var(--color-glass-border);
  color: var(--color-text-dark);
  transition: all 0.2s;
}

.twilight-theme .input-glass {
  background: rgba(15, 23, 42, 0.5);
  color: #f8fafc;
}

.input-glass:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.btn-deposit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: white;
}

.btn-withdraw {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: white;
}

/* Twilight Button Overrides */
.twilight-theme .btn-action {
  border: 1px solid #06b6d4;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}
.twilight-theme .btn-deposit {
  border: 1px solid #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}
.twilight-theme .btn-withdraw {
  border: 1px solid #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Amharic Text Flash */
.amharic-flash {
  position: absolute;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.8);
  opacity: 0;
  bottom: 5px;
  transition: opacity 0.3s;
  pointer-events: none;
  text-align: center;
  width: 100%;
}
.amharic-flash.show {
  animation: pulse-flash 3s ease-out forwards;
}
@keyframes pulse-flash {
  0% { transform: scale(0.8) translateY(10px); opacity: 0; }
  15% { transform: scale(1.1) translateY(0); opacity: 1; }
  85% { transform: scale(1) translateY(0); opacity: 1; }
  100% { transform: scale(0.9) translateY(-10px); opacity: 0; }
}

/* Profile Filters */
.filter-btn {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--color-glass-border);
    color: var(--color-text-light);
}
.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.twilight-theme .filter-btn {
    background: rgba(30, 41, 59, 0.5);
    color: #94a3b8;
}
.animate-slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.glass-toggle {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Auth Tabs Styles */
.auth-tab {
    color: var(--color-text-light);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}
.auth-tab.active {
    color: #3b82f6 !important;
    border-bottom: 2px solid #3b82f6 !important;
}

/* ── Daub Pop Animation ── */
@keyframes daubPop {
    0%   { transform: scale(1);    background: rgba(255,255,255,0.2); }
    40%  { transform: scale(1.35); background: #facc15; color: #1e293b; }
    70%  { transform: scale(1.2);  background: #22c55e; color: white; }
    100% { transform: scale(1.1);  background: #22c55e; color: white; }
}

.daub-pop {
    animation: daubPop 0.35s ease-out forwards;
    border-radius: 6px;
}

/* ── Called Numbers Pills ── */
#calledNumbersGrid span {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* ── Win Overlay CSS Celebration ── */
#winOverlay:not(.opacity-0) {
    animation: winPulse 0.6s ease-out;
}

@keyframes winPulse {
    0%   { background: rgba(255,255,255,0); }
    50%  { background: rgba(59,130,246,0.15); }
    100% { background: rgba(255,255,255,0); }
}

#winOverlay:not(.opacity-0) .text-7xl {
    animation: winBounce 0.5s cubic-bezier(0.36,0.07,0.19,0.97) both;
}

@keyframes winBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    20%      { transform: translateY(-20px) scale(1.1); }
    50%      { transform: translateY(8px) scale(0.95); }
    70%      { transform: translateY(-10px) scale(1.05); }
}

/* ── Missed Hint Animation ── */
@keyframes hintPulse {
    0%   { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); background-color: rgba(234, 179, 8, 0.3); border-color: rgba(234, 179, 8, 0.8); }
    70%  { box-shadow: 0 0 0 8px rgba(234, 179, 8, 0); background-color: rgba(234, 179, 8, 0.6); border-color: rgba(234, 179, 8, 1); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); background-color: rgba(234, 179, 8, 0.3); border-color: rgba(234, 179, 8, 0.8); }
}

.missed-hint {
    animation: hintPulse 1.5s infinite;
    z-index: 10;
}

.bingo-ready {
    opacity: 1 !important;
    cursor: pointer !important;
    animation: pulse-red 1.1s infinite;
}

.winning-cell {
    animation: winningLine 1s ease-in-out infinite;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.55), 0 0 24px rgba(251, 191, 36, 0.8);
    border-color: rgba(251, 191, 36, 0.95) !important;
}

@keyframes winningLine {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.12); filter: brightness(1.18); }
}
