:root {
  --gold: #f0b90b; /* More vibrant solar gold */
  --gold-glow: rgba(240, 185, 11, 0.4);
  --cyan: #22d3ee;
  --magenta: #f472b6;
  --bg-dark: #020617; /* Deep Indigo/Ink from manifesto */
  --card-bg: rgba(2, 6, 23, 0.8);
  --accent: #E5E5E5;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Glassmorphism 2.0 Background */
.background-overlay {
  position: fixed;
  inset: 0;
  background: url('assets/casino_bg_premium.png') center/cover no-repeat;
  filter: brightness(0.3) blur(2px);
  z-index: -1;
  animation: slowZoom 40s infinite alternate linear;
}

@keyframes slowZoom {
  0% { scale: 1; }
  100% { scale: 1.1; }
}

/* Premium HUD */
.premium-hud {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hud-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 15px var(--gold-glow));
  transition: var(--transition);
}

.hud-logo:hover {
  filter: drop-shadow(0 0 15px var(--cyan));
  transform: scale(1.05);
}

.status-pill {
  font-size: 8px;
  letter-spacing: 0.25em;
  font-weight: 800;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 15px;
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  background: #00ff00;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff00;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.jackpot-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jackpot-display .label {
  font-size: 8px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 800;
}

.jackpot-display .amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(to bottom, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-profile .balance {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
}

.user-profile .avatar {
  width: 38px;
  height: 38px;
  background: #111;
  border: 1px solid var(--gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 0 10px var(--gold-glow);
}

/* Lobby Content */
.lobby-container {
  padding-top: 12rem;
  padding-bottom: 4rem;
  max-width: 1300px;
  margin: 0 auto;
  width: 90%;
}

.lobby-header {
  margin-bottom: 3rem;
  text-align: left;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.logo .gold {
  color: var(--gold);
  text-shadow: 0 0 30px var(--gold-glow);
}

.legend {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.5;
  margin-top: -10px;
  margin-bottom: 2rem;
  font-weight: 500;
}

.subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #555;
  max-width: 500px;
  line-height: 1.4;
}

/* New Grid Layout */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.game-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 4px; /* Slightly more rounded for modern gamer look */
  padding: 1.2rem;
  height: 480px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--cyan);
  box-shadow: 
    0 0 40px rgba(34, 211, 238, 0.15),
    0 0 80px rgba(34, 211, 238, 0.05),
    inset 0 0 40px rgba(34, 211, 238, 0.05);
}

.game-card:hover .card-image {
  filter: grayscale(0) brightness(1.2);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.card-image {
  flex-grow: 1;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.2);
  transition: var(--transition);
}

.game-card:hover .card-image {
  filter: grayscale(0);
}

.badge {
  position: absolute;
  top: 15px; left: 15px;
  background: var(--gold);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 1px;
  letter-spacing: 0.1em;
  box-shadow: 0 0 15px var(--gold-glow);
  z-index: 5;
}

.card-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  letter-spacing: -1px;
}

.card-content p {
  font-size: 11px;
  color: #666;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.btn-play {
  width: 100%;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-play:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.lobby-footer {
  margin-top: 6rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 3rem;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #333;
}

/* Card Backgrounds */
.blackjack-bg { background-image: url('image (8).png?v=fallsatoms'); }
.slots-bg { background-image: url('9.png?v=fallsatoms'); }
.roulette-bg { background-image: url('10.png?v=fallsatoms'); }
.cuarenta-bg { background-image: linear-gradient(135deg, #020617 0%, #1e1b4b 100%), url('https://images.unsplash.com/photo-1511193311914-0346f16efe90?auto=format&fit=crop&q=80'); background-size: cover; background-blend-mode: overlay; }

.game-card#cuarenta:hover {
    border-color: #f472b6; /* var(--v-accent-2) from manifesto */
    box-shadow: 
      0 0 40px rgba(244, 114, 182, 0.15),
      0 0 80px rgba(244, 114, 182, 0.05),
      inset 0 0 40px rgba(244, 114, 182, 0.05);
}

@media (max-width: 1000px) {
  .game-grid { grid-template-columns: 1fr; }
  .logo { font-size: 3rem; }
}

/* Refill Button */
.refill-button {
  display: none;
  margin-top: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--gold), #d4a00a);
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--transition);
  animation: refill-pulse 2s ease-in-out infinite;
}

.refill-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--gold-glow);
}

.refill-button:disabled {
  opacity: 0.5;
  cursor: wait;
  animation: none;
}

@keyframes refill-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(240, 185, 11, 0.3); }
  50% { box-shadow: 0 0 25px rgba(240, 185, 11, 0.6); }
}
