/* =========================================================
   CARD SHARK — styles.css
   Aesthetic: Neon-noir Vegas crime. Deep blacks, neon magenta
   & cyan, gold accents, subtle film grain, cinematic.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;600;700&family=Special+Elite&family=Monoton&family=Playfair+Display:wght@700;900&display=swap');

:root {
  --bg-deep: #0a0612;
  --bg-shop: #161018;
  --ink: #0c0c10;
  --paper: #efe6d3;
  --neon-magenta: #ff2e88;
  --neon-cyan: #00e5ff;
  --neon-gold: #ffcb2b;
  --neon-green: #2bff7a;
  --danger: #ff3344;
  --noir-1: #1a1220;
  --noir-2: #241830;
  --shadow-neon: 0 0 20px rgba(255, 46, 136, 0.6), 0 0 40px rgba(255, 46, 136, 0.3);
  --shadow-cyan: 0 0 20px rgba(0, 229, 255, 0.6), 0 0 40px rgba(0, 229, 255, 0.3);
  --shadow-gold: 0 0 20px rgba(255, 203, 43, 0.7), 0 0 40px rgba(255, 203, 43, 0.3);
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--paper);
  font-family: 'Oswald', sans-serif;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Film grain overlay on everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.3) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

/* Screens */
.screen {
  position: fixed; inset: 0;
  display: none;
  overflow: hidden;
}
.screen.active { display: block; animation: screenIn 0.5s ease; }

@keyframes screenIn {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== MAIN MENU ===== */
.bg-noir {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,46,136,0.2), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(0,229,255,0.18), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(255,203,43,0.12), transparent 70%),
    linear-gradient(180deg, #0a0612 0%, #1a0a1a 50%, #0a0612 100%);
}
.bg-noir::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg,
    transparent 0, transparent 2px,
    rgba(255,255,255,0.02) 2px, rgba(255,255,255,0.02) 3px);
  pointer-events: none;
}

.menu-wrap {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px;
  gap: 24px;
  z-index: 2;
}
.title-block { text-align: center; }
.title-top {
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--neon-gold);
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
}
.game-title {
  font-family: 'Monoton', display;
  font-size: clamp(64px, 12vw, 140px);
  letter-spacing: 6px;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0 10px #ff2e88,
    0 0 30px #ff2e88,
    0 0 60px #ff2e88,
    0 0 90px rgba(255,46,136,0.5);
  animation: titleFlicker 4s infinite;
}
.game-title span {
  color: #fff;
  text-shadow:
    0 0 10px #00e5ff,
    0 0 30px #00e5ff,
    0 0 60px #00e5ff;
}
@keyframes titleFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.75; }
}
.title-sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--paper);
  margin-top: 12px;
  letter-spacing: 2px;
}
.title-tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--neon-cyan);
  letter-spacing: 8px;
  margin-top: 8px;
}
.menu-card-art {
  width: min(420px, 80vw);
  filter: drop-shadow(0 20px 40px rgba(255,46,136,0.5));
  animation: cardFloat 4s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
.menu-nav {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 12px;
}
.menu-btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 4px;
  padding: 14px 48px;
  background: linear-gradient(180deg, rgba(30,20,40,0.9), rgba(15,10,25,0.95));
  border: 2px solid var(--neon-magenta);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 2px;
  box-shadow: var(--shadow-neon);
  min-width: 280px;
  position: relative;
  overflow: hidden;
}
.menu-btn::before {
  content: "";
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.menu-btn:hover::before { left: 100%; }
.menu-btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-cyan);
  color: var(--neon-cyan);
}
.menu-btn.danger { border-color: var(--danger); box-shadow: 0 0 18px rgba(255,51,68,0.5); }
.menu-btn.danger:hover { border-color: var(--danger); color: var(--danger); box-shadow: 0 0 30px rgba(255,51,68,0.8); }

.menu-footer {
  position: absolute; bottom: 16px;
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.5;
}

/* ===== HOW TO PLAY / CREDITS / PANELS ===== */
.panel-wrap, .credits-wrap {
  position: relative;
  height: 100%;
  padding: 40px;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,46,136,0.15), transparent 60%),
    linear-gradient(180deg, #0a0612, #1a0a1a);
}
.panel-title {
  font-family: 'Monoton', display;
  font-size: clamp(36px, 6vw, 64px);
  text-align: center;
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 0 15px var(--neon-magenta), 0 0 30px var(--neon-magenta);
  margin-bottom: 24px;
}
.panel-title.neon {
  color: var(--neon-gold);
  text-shadow: 0 0 15px var(--neon-gold), 0 0 30px var(--neon-gold), 0 0 60px rgba(255,203,43,0.4);
}
.panel-sub {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--paper);
  opacity: 0.8;
  margin-bottom: 32px;
}
.howto-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.howto-card {
  background: linear-gradient(180deg, rgba(36,24,48,0.9), rgba(20,12,30,0.95));
  border: 1px solid rgba(255,46,136,0.35);
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.howto-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  margin-bottom: 8px;
}
.howto-card p { font-size: 15px; line-height: 1.6; opacity: 0.9; }

.back-btn {
  display: block; margin: 32px auto 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 3px;
  padding: 12px 36px;
  background: transparent;
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}
.back-btn:hover { background: var(--neon-cyan); color: #0a0612; box-shadow: var(--shadow-cyan); }
.back-btn.small { font-size: 16px; padding: 8px 20px; margin: 0; position: absolute; top: 16px; left: 16px; z-index: 10; }

/* ===== CREDITS ===== */
.credits-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px;
}
.credits-scroll {
  text-align: center;
  animation: creditsRoll 40s linear infinite;
  max-width: 600px;
}
@keyframes creditsRoll {
  0% { transform: translateY(10vh); }
  100% { transform: translateY(-60vh); }
}
.credits-studio {
  font-family: 'Monoton', display;
  font-size: 48px; letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 20px var(--neon-gold);
}
.credits-studio-sub {
  font-family: 'Bebas Neue';
  font-size: 28px; letter-spacing: 18px;
  color: var(--neon-gold);
  margin-top: 4px;
}
.credits-presents {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  opacity: 0.7;
  margin: 40px 0;
}
.credits-title {
  font-family: 'Monoton';
  font-size: 72px; letter-spacing: 8px;
  color: #fff;
  text-shadow: 0 0 20px var(--neon-magenta), 0 0 40px var(--neon-magenta);
  margin-bottom: 60px;
}
.credits-section { margin: 40px 0; }
.credits-role {
  font-family: 'Bebas Neue';
  font-size: 16px; letter-spacing: 6px;
  color: var(--neon-cyan);
  margin-bottom: 8px;
}
.credits-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--paper);
}
.credits-copyright {
  margin-top: 80px;
  font-family: 'Special Elite';
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.6;
}

/* ===== HUD ===== */
.hud {
  position: absolute; top: 0; left: 0; right: 0;
  height: 76px;
  background: linear-gradient(180deg, rgba(10,6,18,0.98), rgba(10,6,18,0.85));
  border-bottom: 2px solid var(--neon-magenta);
  box-shadow: 0 4px 20px rgba(255,46,136,0.3);
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 20px;
  z-index: 50;
}
.hud-stat { display: flex; flex-direction: column; min-width: 90px; }
.hud-label {
  font-family: 'Bebas Neue';
  font-size: 11px; letter-spacing: 3px;
  opacity: 0.65;
}
.hud-value {
  font-family: 'Bebas Neue';
  font-size: 26px; letter-spacing: 1px;
  color: var(--neon-gold);
  text-shadow: 0 0 10px rgba(255,203,43,0.7);
}
.hud-stat.cash .hud-value { color: var(--neon-green); text-shadow: 0 0 10px rgba(43,255,122,0.7); }
.hud-bar {
  width: 120px; height: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.hud-bar-fill {
  height: 100%; width: 0%;
  transition: width 0.4s ease, background 0.4s;
}
.heat-fill { background: linear-gradient(90deg, #ffcb2b, #ff3344); box-shadow: 0 0 10px #ff3344; }
.hunger-fill { background: linear-gradient(90deg, #2bff7a, #ffcb2b, #ff3344); box-shadow: 0 0 10px var(--neon-green); }

.hud-nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.nav-btn {
  font-family: 'Bebas Neue';
  font-size: 14px; letter-spacing: 2px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,46,136,0.3);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}
.nav-btn:hover, .nav-btn.active {
  background: rgba(255,46,136,0.15);
  border-color: var(--neon-magenta);
  color: var(--neon-magenta);
  box-shadow: 0 0 10px rgba(255,46,136,0.4);
}
.nav-btn.end-day { border-color: var(--neon-gold); color: var(--neon-gold); }
.nav-btn.end-day:hover { background: rgba(255,203,43,0.15); }
.nav-btn.menu-return { border-color: var(--danger); color: var(--danger); }

/* ===== SCENES ===== */
.scene {
  position: absolute; inset: 76px 0 0 0;
  display: none;
  overflow: hidden;
}
.scene.active { display: block; animation: sceneIn 0.4s ease; }
@keyframes sceneIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SHOP ===== */
.shop-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,46,136,0.25), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(0,229,255,0.2), transparent 50%),
    linear-gradient(180deg, #1a0f20 0%, #0a0612 100%);
}
.shop-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.02) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255,255,255,0.02) 50%, transparent 51%);
  background-size: 40px 40px;
  opacity: 0.5;
}
.shop-layout {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
  z-index: 2;
}
.shop-left, .shop-right {
  background: linear-gradient(180deg, rgba(36,24,48,0.85), rgba(20,12,30,0.9));
  border: 1px solid rgba(255,46,136,0.3);
  border-radius: 6px;
  padding: 20px;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  overflow-y: auto;
}
.customer-area {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  min-height: 320px;
}
#customerSvgHolder { max-width: 100%; max-height: 400px; animation: customerIn 0.5s ease; }
#customerSvgHolder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#customerSvgHolder svg { max-width: 100%; max-height: 400px; }
#customerSvgHolder .customer-photo-shell {
  width: min(100%, 320px);
  aspect-ratio: 4 / 5;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255,46,136,0.35);
  background:
    radial-gradient(circle at top, rgba(255,46,136,0.18), transparent 55%),
    linear-gradient(180deg, rgba(36,24,48,0.92), rgba(12,8,20,0.96));
  box-shadow:
    0 12px 28px rgba(0,0,0,0.55),
    0 0 22px rgba(255,46,136,0.18);
  overflow: hidden;
}
#customerSvgHolder .customer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}
@keyframes customerIn { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

.speech-bubble {
  position: absolute; top: 10px; right: 10px;
  max-width: 240px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 12px;
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: bubblePop 0.3s ease;
}
.speech-bubble::after {
  content: "";
  position: absolute; bottom: -10px; left: 30px;
  border: 10px solid transparent;
  border-top-color: var(--paper);
}
.speech-bubble.hidden { display: none; }
@keyframes bubblePop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }

.customer-info {
  background: rgba(0,0,0,0.4);
  border-left: 3px solid var(--neon-cyan);
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 14px;
}
.customer-info.hidden { display: none; }
.customer-info > div { margin: 4px 0; }
.ci-name { font-family: 'Bebas Neue'; font-size: 22px; letter-spacing: 2px; color: var(--neon-cyan); }
.ci-pay span { color: var(--neon-green); font-weight: bold; }
.ci-risk span { color: var(--neon-magenta); font-weight: bold; }

.big-btn {
  font-family: 'Bebas Neue';
  font-size: 20px; letter-spacing: 3px;
  padding: 14px 20px;
  background: linear-gradient(180deg, var(--neon-magenta), #c91e66);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(255,46,136,0.4);
  transition: all 0.2s;
}
.big-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,46,136,0.7); }
.big-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.big-btn.danger { background: linear-gradient(180deg, var(--danger), #a01020); box-shadow: 0 4px 12px rgba(255,51,68,0.5); }
.big-btn.spin { background: linear-gradient(180deg, var(--neon-gold), #c89600); color: #0a0612; box-shadow: 0 4px 12px rgba(255,203,43,0.5); }

.machine-label {
  font-family: 'Bebas Neue';
  font-size: 18px; letter-spacing: 4px;
  color: var(--neon-cyan);
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0,229,255,0.5);
}
#machineHolder { display: flex; justify-content: center; margin: 8px 0; }
#machineHolder svg { max-width: 100%; max-height: 300px; }

.machine-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.mc-btn {
  font-family: 'Bebas Neue';
  font-size: 14px; letter-spacing: 2px;
  padding: 10px 12px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.4);
  color: var(--neon-cyan);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}
.mc-btn:hover:not(:disabled) { background: rgba(0,229,255,0.2); box-shadow: 0 0 10px rgba(0,229,255,0.4); }
.mc-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.mc-btn.done { background: rgba(43,255,122,0.15); border-color: var(--neon-green); color: var(--neon-green); }
.mc-btn.deliver { grid-column: span 2; background: rgba(255,203,43,0.1); border-color: var(--neon-gold); color: var(--neon-gold); }

.made-card-preview {
  margin-top: 16px;
  display: flex; justify-content: center;
  min-height: 100px;
}
.made-card-preview svg { max-width: 260px; filter: drop-shadow(0 8px 20px rgba(255,203,43,0.4)); }

/* ===== PANEL (generic) ===== */
.panel {
  position: relative;
  height: 100%;
  padding: 28px;
  overflow-y: auto;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== BLACK MARKET ===== */
.market-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(43,255,122,0.1), transparent 60%),
    linear-gradient(180deg, #0a1208 0%, #050a05 100%);
}
.market-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg,
    rgba(43,255,122,0.04) 0 2px, transparent 2px 4px);
}
.market-stock {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-width: 900px; margin: 20px auto;
}
.stock-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--neon-green);
  border-radius: 4px;
  padding: 10px;
  text-align: center;
}
.stock-card svg { width: 100%; height: auto; }
.stock-card-label {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: var(--neon-green);
  margin-top: 6px;
}
.market-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ===== CASINO ===== */
.casino-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,46,136,0.3), transparent 60%),
    radial-gradient(ellipse at 80% 40%, rgba(255,203,43,0.25), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0,229,255,0.2), transparent 70%),
    linear-gradient(180deg, #180818, #0a0612);
}
.casino-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,203,43,0.6) 2px, transparent 2px),
    radial-gradient(circle at 80% 10%, rgba(255,46,136,0.6) 2px, transparent 2px),
    radial-gradient(circle at 60% 80%, rgba(0,229,255,0.6) 2px, transparent 2px),
    radial-gradient(circle at 30% 60%, rgba(255,203,43,0.4) 1px, transparent 1px),
    radial-gradient(circle at 90% 70%, rgba(255,46,136,0.5) 1.5px, transparent 1.5px);
  background-size: 140px 140px, 180px 180px, 200px 200px, 100px 100px, 160px 160px;
  animation: casinoLights 4s linear infinite;
}
@keyframes casinoLights { 0%,100%{opacity:0.5;} 50%{opacity:1;} }

.casino-hub {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px;
  gap: 30px;
}
.casino-hub.hidden { display: none; }
.casino-choice {
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: center;
}
.casino-game-btn {
  width: 280px; height: 320px;
  background: linear-gradient(180deg, rgba(36,24,48,0.9), rgba(20,12,30,0.95));
  border: 3px solid var(--neon-gold);
  cursor: pointer;
  padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s;
}
.casino-game-btn:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 0 40px var(--neon-gold); }
.cg-icon { width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; }
.cg-icon svg { width: 100%; height: 100%; }
.cg-label {
  font-family: 'Bebas Neue';
  font-size: 28px; letter-spacing: 4px;
  color: var(--neon-gold);
  text-shadow: 0 0 10px rgba(255,203,43,0.6);
}

.casino-game { display: none; position: relative; z-index: 2; height: 100%; padding: 60px 20px 20px; overflow-y: auto; }
.casino-game.active { display: block; }

#slotsMachineHolder { display: flex; justify-content: center; margin: 20px 0; }
#slotsMachineHolder svg { max-width: 520px; filter: drop-shadow(0 20px 40px rgba(255,203,43,0.4)); }

.slots-controls, .bj-controls {
  max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: rgba(0,0,0,0.4);
  padding: 20px;
  border: 1px solid var(--neon-gold);
  border-radius: 6px;
}
.bet-row { display: flex; align-items: center; gap: 14px; font-family: 'Bebas Neue'; font-size: 22px; letter-spacing: 2px; }
.bet-btn {
  width: 36px; height: 36px;
  background: var(--neon-gold); color: #0a0612;
  border: none; border-radius: 4px; font-size: 24px; font-weight: bold;
  cursor: pointer;
}
.bet-btn:hover { box-shadow: 0 0 12px var(--neon-gold); }
.slots-result, .bj-result {
  font-family: 'Bebas Neue';
  font-size: 22px; letter-spacing: 3px;
  color: var(--neon-gold);
  text-align: center;
  min-height: 28px;
}
.slots-result.win, .bj-result.win { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); animation: winPulse 0.8s ease; }
.slots-result.lose, .bj-result.lose { color: var(--danger); }
@keyframes winPulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.15);} }

/* Blackjack table */
.bj-table {
  max-width: 800px; margin: 20px auto;
  background:
    radial-gradient(ellipse at center, #0b5226 0%, #063016 70%, #031a0b 100%);
  border: 4px solid #3a2008;
  border-radius: 200px / 100px;
  padding: 30px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 60px rgba(0,0,0,0.5);
  position: relative;
}
.bj-table::before {
  content: "";
  position: absolute; inset: 10px;
  border: 2px dashed rgba(255,203,43,0.25);
  border-radius: 180px / 90px;
  pointer-events: none;
}
.bj-area { margin: 14px 0; }
.bj-label {
  font-family: 'Bebas Neue';
  font-size: 18px; letter-spacing: 3px;
  color: var(--neon-gold);
  margin-bottom: 10px; text-align: center;
}
.bj-cards { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; min-height: 120px; }
.bj-cards svg { width: 80px; height: 112px; animation: cardDeal 0.4s ease backwards; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.6)); }
@keyframes cardDeal { from { transform: translateY(-200px) rotate(-15deg); opacity:0; } to { transform: translateY(0) rotate(0); opacity:1; } }

/* ===== NEWS ===== */
.news-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #1a1a12, #0a0a05);
}
#newspaperHolder { position: relative; z-index: 2; height: 100%; overflow-y: auto; padding: 20px; display: flex; justify-content: center; }
#newspaperHolder svg { max-width: 920px; width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.7)); }

/* ===== FOOD ===== */
.food-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,203,43,0.15), transparent 60%),
    linear-gradient(180deg, #2a1508, #0a0604);
}
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 900px; margin: 0 auto;
}
.food-item {
  background: linear-gradient(180deg, rgba(50,30,15,0.8), rgba(25,15,8,0.9));
  border: 2px solid rgba(255,203,43,0.4);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.food-item:hover { transform: translateY(-4px); border-color: var(--neon-gold); box-shadow: 0 8px 20px rgba(255,203,43,0.3); }
.food-item:disabled, .food-item.disabled { opacity: 0.35; cursor: not-allowed; }
.food-item svg { width: 110px; height: 110px; margin: 0 auto; display: block; }
.food-name { font-family: 'Bebas Neue'; font-size: 20px; letter-spacing: 2px; color: var(--paper); margin-top: 8px; }
.food-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 17px;
}
.food-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  min-height: 56px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  color: #fff;
  background: linear-gradient(180deg, var(--neon-gold), #d79300);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255,203,43,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.food-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 28px rgba(255,203,43,0.36);
}
.food-btn:active { transform: translateY(0); }
.food-stat { font-size: 13px; margin: 4px 0; }
.food-stat.price { color: var(--neon-green); }
.food-stat.hunger { color: var(--neon-cyan); }

/* ===== TEMPLATES ===== */
.templates-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,46,136,0.15), transparent 60%),
    linear-gradient(180deg, #180c20, #0a0612);
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.template-item {
  background: linear-gradient(180deg, rgba(36,24,48,0.9), rgba(20,12,30,0.95));
  border: 2px solid rgba(255,46,136,0.4);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: all 0.25s;
}
.template-item.owned { border-color: var(--neon-green); }
.template-item.owned::before {
  content: "✓ OWNED";
  display: block;
  font-family: 'Bebas Neue'; font-size: 14px; letter-spacing: 3px;
  color: var(--neon-green); margin-bottom: 6px;
}
.template-item.active-tpl { border-color: var(--neon-gold); box-shadow: var(--shadow-gold); }
.template-item.active-tpl::after {
  content: "★ ACTIVE";
  display: block;
  font-family: 'Bebas Neue'; font-size: 14px; letter-spacing: 3px;
  color: var(--neon-gold); margin-top: 6px;
}
.template-item svg { width: 240px; height: auto; margin: 0 auto; display: block; }
.template-name { font-family: 'Bebas Neue'; font-size: 22px; letter-spacing: 3px; margin-top: 10px; color: var(--neon-cyan); }
.template-desc { font-size: 13px; opacity: 0.8; margin: 6px 0; }
.template-price { font-family: 'Bebas Neue'; font-size: 20px; color: var(--neon-gold); }
.template-btn {
  margin-top: 8px;
  font-family: 'Bebas Neue'; font-size: 16px; letter-spacing: 2px;
  padding: 8px 16px;
  background: var(--neon-magenta); color: #fff;
  border: none; border-radius: 3px; cursor: pointer;
}
.template-btn:hover { box-shadow: var(--shadow-neon); }
.template-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== COURT ===== */
.court-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,203,43,0.1), transparent 60%),
    linear-gradient(180deg, #1a1008, #0a0604);
}
.court-layout {
  position: relative; z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}
#courtScene { display: flex; align-items: center; justify-content: center; }
#courtScene svg { max-width: 100%; max-height: 80vh; }
.court-panel {
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--neon-gold);
  border-radius: 6px;
  padding: 24px;
  overflow-y: auto;
}
.court-text {
  font-family: 'Special Elite', monospace;
  font-size: 16px; line-height: 1.6;
  margin-bottom: 20px;
}
.court-evidence {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--danger);
  padding: 12px;
  margin: 12px 0;
  font-style: italic;
  font-size: 14px;
}
.court-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.court-choice {
  font-family: 'Bebas Neue'; font-size: 18px; letter-spacing: 2px;
  padding: 12px 18px;
  background: rgba(255,203,43,0.1);
  border: 1px solid var(--neon-gold);
  color: var(--paper);
  cursor: pointer;
  border-radius: 3px;
  text-align: left;
  transition: all 0.2s;
}
.court-choice:hover { background: rgba(255,203,43,0.25); transform: translateX(4px); }
.court-choice:disabled { opacity: 0.7; cursor: not-allowed; }
.court-choice:disabled:hover { background: rgba(255,203,43,0.1); transform: none; }
.cc-text { display: block; }
.cc-desc {
  display: block;
  margin-top: 4px;
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1.35;
  opacity: 0.85;
}
.cc-lock {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--danger);
}
.court-choice .difficulty { float: right; font-size: 13px; opacity: 0.7; }

/* ===== GAME OVER ===== */
.gameover-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,51,68,0.3), transparent 60%), #0a0204;
}
.gameover-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg,
    transparent 0 20px,
    rgba(255,51,68,0.05) 20px 22px);
}
.gameover-wrap {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px;
  gap: 24px;
  text-align: center;
}
.gameover-title {
  font-family: 'Monoton';
  font-size: clamp(72px, 15vw, 180px);
  letter-spacing: 10px;
  color: #fff;
  text-shadow: 0 0 30px var(--danger), 0 0 60px var(--danger);
  animation: goFlicker 2s infinite;
}
@keyframes goFlicker { 0%,97%,100%{opacity:1;} 98%{opacity:0.5;} }
.gameover-reason {
  font-family: 'Special Elite', monospace;
  font-size: 22px;
  max-width: 700px;
  line-height: 1.5;
}
.gameover-stats {
  font-family: 'Oswald'; font-size: 18px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--danger);
  padding: 20px 30px;
  border-radius: 4px;
}
.gameover-btns { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* ===== RAID ===== */
#screen-raid .raid-flash {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,
    rgba(0,50,255,0.3) 0 20%,
    rgba(255,20,20,0.3) 20% 40%);
  animation: raidFlash 0.3s infinite alternate;
}
@keyframes raidFlash { from{opacity:0.5;} to{opacity:1;} }
.raid-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px;
  gap: 20px;
  text-align: center;
  background: rgba(0,0,0,0.6);
}
#raidArt svg { max-width: 600px; width: 100%; filter: drop-shadow(0 0 30px rgba(255,0,0,0.6)); }
.raid-title {
  font-family: 'Monoton';
  font-size: clamp(40px, 8vw, 72px);
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 0 20px var(--danger), 0 0 40px var(--danger);
  animation: raidShake 0.15s infinite;
}
@keyframes raidShake { 0%{transform:translate(0);} 25%{transform:translate(-3px,2px);} 50%{transform:translate(3px,-2px);} 75%{transform:translate(-2px,-2px);} 100%{transform:translate(0);} }
.raid-text { font-family: 'Special Elite', monospace; font-size: 22px; max-width: 700px; }

/* ===== DAY TRANSITION ===== */
#screen-day {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(255,203,43,0.3), transparent 60%),
    linear-gradient(180deg, #200a30, #1a0812 40%, #2a1008 80%);
}
.day-wrap { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
#daySun {
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--neon-gold), rgba(255,203,43,0.3), transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 80px var(--neon-gold);
  animation: daySunRise 2s ease;
}
@keyframes daySunRise { from { transform: translateY(200px) scale(0.5); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.day-title {
  font-family: 'Monoton';
  font-size: clamp(56px, 10vw, 120px);
  letter-spacing: 10px;
  color: #fff;
  text-shadow: 0 0 20px var(--neon-gold);
}
.day-sub { font-family: 'Playfair Display', serif; font-style: italic; font-size: 22px; opacity: 0.85; }

/* ===== TOASTS ===== */
#toastContainer {
  position: fixed; top: 90px; right: 20px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 1000;
  pointer-events: none;
}
.toast {
  background: rgba(10,6,18,0.95);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 10px 18px;
  border-radius: 3px;
  font-family: 'Bebas Neue'; font-size: 16px; letter-spacing: 2px;
  box-shadow: 0 4px 20px rgba(0,229,255,0.3);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
  max-width: 340px;
}
.toast.success { border-color: var(--neon-green); color: var(--neon-green); box-shadow: 0 4px 20px rgba(43,255,122,0.3); }
.toast.warn { border-color: var(--neon-gold); color: var(--neon-gold); box-shadow: 0 4px 20px rgba(255,203,43,0.3); }
.toast.danger { border-color: var(--danger); color: var(--danger); box-shadow: 0 4px 20px rgba(255,51,68,0.3); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--neon-magenta), var(--neon-cyan)); border-radius: 5px; }

/* Responsive */
@media (max-width: 900px) {
  .shop-layout, .court-layout { grid-template-columns: 1fr; overflow-y: auto; }
  .scene, .panel-wrap { padding: 10px; }
  .hud { flex-wrap: wrap; height: auto; padding: 6px 10px; gap: 10px; }
  .scene { inset: 140px 0 0 0; }
}
