/* ==========================================================================
   BETLY ROYALE - CORE STYLESHEET
   Aesthetic inspired by Betly (Noir theme, Glassmorphism, Neon Accents)
   ========================================================================== */

:root {
  --bg: #000000;
  --bg-2: #050508;
  --surface: #0a0a0f;
  --surface-2: #121218;
  --surface-hover: #1c1c24;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f2ee;
  --muted: rgba(244, 242, 238, 0.56);
  --neon-pink: #d946ef;
  --neon-pink-glow: rgba(217, 70, 239, 0.45);
  --neon-blue: #00d2ff;
  --neon-blue-glow: rgba(0, 210, 255, 0.45);
  --accent: #e5484d;
  --accent-glow: rgba(229, 72, 77, 0.35);
  --accent-ink: #ffffff;
  --gold: #d8b26a;
  --gold-glow: rgba(216, 178, 106, 0.4);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --amber: #f59e0b;
  --felt-bj-1: #0f4633;
  --felt-bj-2: #082319;
  --felt-poker-1: #152b52;
  --felt-poker-2: #091326;
  --nav-h: 72px;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Casino Noise Texture Overlay (Betly Signature) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  transition: border-color 0.3s ease;
}

.nav-container {
  width: min(1380px, 100% - 32px);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  cursor: pointer;
}

.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 5px var(--accent), inset 0 0 0 7px var(--bg);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: logo-ring 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes logo-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.logo-text span {
  color: var(--accent);
  margin-left: 2px;
}

/* Nav Links Pill Bar */
.nav-links {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-link .badge-emergency {
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  animation: pulse-strobe 1s infinite alternate;
}

/* Nav Tools: Balance Pill & Controls */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.balance-pill:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.balance-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.balance-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
}

/* Status colors for Debt */
.balance-pill.positive .balance-amount {
  color: var(--emerald);
}

.balance-pill.debt .balance-amount {
  color: var(--amber);
}

.balance-pill.danger {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  animation: pulse-strobe 1s infinite alternate;
}

.balance-pill.danger .balance-amount {
  color: var(--accent);
}

.balance-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.balance-cloud-sync {
  font-size: 0.85rem;
  margin-left: 2px;
  cursor: pointer;
  opacity: 0.75;
  transition: transform 0.25s ease, opacity 0.25s ease;
  user-select: none;
}

.balance-cloud-sync:hover {
  opacity: 1;
  transform: scale(1.15);
}

.balance-cloud-sync.saving {
  opacity: 1;
  animation: pulse-cloud-sync 0.8s infinite alternate ease-in-out;
}

@keyframes pulse-cloud-sync {
  0% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 2px #00d2ff);
  }
  100% {
    transform: scale(1.3);
    filter: drop-shadow(0 0 10px #00d2ff);
  }
}

.balance-pill:hover .balance-add-btn {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
  transform: translateY(-1px);
}

.icon-btn.muted svg {
  opacity: 0.35;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 1.75rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--surface-2);
  color: var(--text);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
  outline: none;
  position: relative;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
  filter: brightness(0.95);
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.5);
}

/* Primary Action Button (SatoshiBet Signature Neon Cyan) */
.btn-primary {
  background: var(--neon-blue);
  color: #000000;
  border-color: transparent;
  box-shadow: 0 8px 24px -4px rgba(0, 210, 255, 0.45);
}

.btn-primary:hover:not(:disabled) {
  background: #38e1ff;
  color: #000000;
  border-color: transparent;
  box-shadow: 0 12px 30px -2px rgba(0, 210, 255, 0.65);
}

/* Accent / Coral Red (Exact Style from the User Reference Screenshot) */
.btn-accent,
.btn-coral {
  background: #e05353;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 24px -4px rgba(224, 83, 83, 0.45);
}

.btn-accent:hover:not(:disabled),
.btn-coral:hover:not(:disabled) {
  background: #ff6363;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 30px -2px rgba(224, 83, 83, 0.65);
}

/* Emerald Green (Cashout, Hit, Win, Success) */
.btn-emerald {
  background: var(--emerald);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.45);
}

.btn-emerald:hover:not(:disabled) {
  background: #1fd89a;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 30px -2px rgba(16, 185, 129, 0.65);
}

/* Vegas Gold (Stand, VIP, Coins, High Roller) */
.btn-gold {
  background: var(--gold);
  color: #1a1304;
  border-color: transparent;
  box-shadow: 0 8px 24px -4px rgba(216, 178, 106, 0.45);
}

.btn-gold:hover:not(:disabled) {
  background: #e9c47e;
  color: #1a1304;
  border-color: transparent;
  box-shadow: 0 12px 30px -2px rgba(216, 178, 106, 0.65);
}

/* Neon Pink / Magenta (Special Arcade / Modus Action) */
.btn-pink,
.btn-neon-pink {
  background: var(--neon-pink);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 24px -4px rgba(217, 70, 239, 0.45);
}

.btn-pink:hover:not(:disabled),
.btn-neon-pink:hover:not(:disabled) {
  background: #e85bfb;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 30px -2px rgba(217, 70, 239, 0.65);
}

/* Ghost / Modern Pill Outline */
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 6px 20px -2px rgba(0, 210, 255, 0.35);
}

/* Secondary Dark Pill */
.btn-secondary,
.btn-dark {
  background: #14141d;
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover:not(:disabled),
.btn-dark:hover:not(:disabled) {
  background: #1e1e2a;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Sizes */
.btn-sm {
  min-height: 38px;
  padding: 0 1.25rem;
  font-size: 0.85rem;
  border-radius: 9999px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 2.2rem;
  font-size: 1.05rem;
  border-radius: 9999px;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   AUTHENTIC CASINO CHIPS (Betly style)
   ========================================================================== */

.chip {
  --c: #ddd;
  --ink: #111;
  --size: 52px;
  width: var(--size);
  height: var(--size);
  font-family: var(--font-mono);
  font-size: calc(var(--size) * 0.28);
  font-weight: 800;
  color: var(--ink);
  background: radial-gradient(circle at 50% 50%, var(--c) 0 52%, transparent 53%),
              repeating-conic-gradient(from 0deg, #fff 0 12deg, var(--c) 12deg 45deg);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  user-select: none;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4),
              0 3px 6px rgba(0, 0, 0, 0.5),
              0 8px 18px -4px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, filter 0.2s;
  position: relative;
  flex: none;
}

.chip:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4),
              0 8px 14px rgba(0, 0, 0, 0.6),
              0 14px 28px -4px rgba(0, 0, 0, 0.9);
}

.chip.active {
  transform: translateY(-6px) scale(1.12);
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 16px var(--gold-glow);
}

.chip[data-v="1"]    { --c: #e9e6df; --ink: #18181b; }
.chip[data-v="5"]    { --c: #c8323a; --ink: #ffffff; }
.chip[data-v="25"]   { --c: #1b8a55; --ink: #ffffff; }
.chip[data-v="100"]  { --c: #1d1d22; --ink: #ffffff; }
.chip[data-v="500"]  { --c: #6b3fa0; --ink: #ffffff; }
.chip[data-v="1000"] { --c: #d8a640; --ink: #1d1505; }

.chip-rack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(11, 11, 12, 0.6);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ==========================================================================
   MODULAR VIEWS CONTAINER
   ========================================================================== */

main.app-main {
  min-height: calc(100vh - var(--nav-h) - 40px);
  position: relative;
  width: min(1400px, calc(100% - 32px));
  margin: 18px auto 36px auto;
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 25px var(--neon-pink-glow), inset 0 0 20px rgba(217, 70, 239, 0.1);
  border-radius: 28px;
  background: rgba(4, 4, 8, 0.95);
  overflow: hidden;
}

/* ==========================================================================
   NEON BLUE FRAMING FOR ALL GAME MODES
   ========================================================================== */

.game-card,
.table-felt-bj,
.table-felt-poker,
.slot-cabinet,
.rocket-arena,
.bailout-arena,
.minigame-card,
.bankroll-stats-grid > div {
  border: 2px solid var(--neon-blue) !important;
  box-shadow: 0 0 22px var(--neon-blue-glow), inset 0 0 15px rgba(0, 210, 255, 0.08) !important;
}

.game-card:hover,
.minigame-card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.75), inset 0 0 22px rgba(0, 210, 255, 0.2) !important;
}

.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  min-height: calc(100vh - var(--nav-h));
}

.view-section.active {
  display: block;
  opacity: 1;
  animation: fadeInView 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   LOBBY VIEW (Hero & Game Grid)
   ========================================================================== */

.lobby-hero {
  position: relative;
  min-height: 65vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 35%, rgba(229, 72, 77, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-wheel-bg {
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 120vw);
  opacity: 0.18;
  pointer-events: none;
  animation: slow-rotate 120s linear infinite;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 85%);
}

@keyframes slow-rotate {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  display: grid;
  gap: 20px;
  justify-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(229, 72, 77, 0.12);
  border: 1px solid rgba(229, 72, 77, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-title .accent-word {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  max-width: 58ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

/* Game Cards Grid */
.games-section {
  width: min(1380px, 100% - 32px);
  margin: 50px auto 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-header p {
  color: var(--muted);
  max-width: 48ch;
  font-size: 0.95rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 230px auto;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.45s;
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.game-card-art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.art-blackjack {
  background: radial-gradient(circle at 50% 30%, var(--felt-bj-1), var(--felt-bj-2));
}

.art-poker {
  background: radial-gradient(circle at 50% 30%, var(--felt-poker-1), var(--felt-poker-2));
}

.art-slots {
  background: radial-gradient(circle at 50% 30%, #2b143a, #110817);
}

.art-bailout {
  background: radial-gradient(circle at 50% 30%, #2e1518, #14080a);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}

/* ==========================================================================
   GAME CARD ICONS & HOVER ANIMATIONS
   Dynamic, playful, tactile animations on hover for all game cards
   ========================================================================== */

.card-icon {
  display: inline-block;
  user-select: none;
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  will-change: transform, filter;
}

/* 1. ROCKET (Launch Thrust & Fiery Cyan Glow) */
.game-card:hover .icon-rocket,
.icon-rocket:hover {
  animation: rocketLaunchHover 0.75s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 35px #00d2ff) drop-shadow(0 15px 25px rgba(255, 120, 0, 0.9)) !important;
}

@keyframes rocketLaunchHover {
  0% {
    transform: translate(0, 0) rotate(15deg) scale(1.15);
  }
  40% {
    transform: translate(6px, -12px) rotate(22deg) scale(1.28);
  }
  75% {
    transform: translate(4px, -16px) rotate(18deg) scale(1.24);
  }
  100% {
    transform: translate(8px, -20px) rotate(24deg) scale(1.3);
  }
}

/* 2. BLACKJACK SPADE (3D Card Float & Golden-Cyan Aura) */
.game-card:hover .icon-blackjack,
.icon-blackjack:hover {
  animation: blackjackCardHover 1s cubic-bezier(0.35, 0, 0.25, 1) infinite alternate;
  filter: drop-shadow(0 15px 30px rgba(0, 210, 255, 0.85)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) !important;
}

@keyframes blackjackCardHover {
  0% {
    transform: translateY(0) scale(1.1) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) scale(1.26) rotate(-12deg);
  }
  100% {
    transform: translateY(-8px) scale(1.22) rotate(8deg);
  }
}

/* 3. POKER DIAMOND (Prism Sparkle, Pulse & Ruby Glow) */
.game-card:hover .icon-poker,
.icon-poker:hover {
  animation: pokerDiamondHover 0.85s cubic-bezier(0.35, 0, 0.25, 1) infinite alternate;
  filter: drop-shadow(0 0 35px rgba(239, 68, 68, 1)) drop-shadow(0 0 25px rgba(217, 70, 239, 0.9)) !important;
}

@keyframes pokerDiamondHover {
  0% {
    transform: scale(1.1) rotate(0deg);
  }
  50% {
    transform: scale(1.32) rotate(15deg);
  }
  100% {
    transform: scale(1.24) rotate(-10deg);
  }
}

/* 4. SLOT MACHINE (Jackpot Shake, Reel Vibration & Gold Strobe) */
.game-card:hover .icon-slots,
.icon-slots:hover {
  animation: slotJackpotHover 0.55s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 35px rgba(250, 204, 21, 0.95)) drop-shadow(0 15px 25px rgba(217, 70, 239, 0.75)) !important;
}

@keyframes slotJackpotHover {
  0% {
    transform: translateY(0) scale(1.12) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) scale(1.22) rotate(-8deg);
  }
  50% {
    transform: translateY(-12px) scale(1.26) rotate(6deg);
  }
  75% {
    transform: translateY(-6px) scale(1.2) rotate(-4deg);
  }
  100% {
    transform: translateY(-10px) scale(1.24) rotate(4deg);
  }
}

/* 5. ARCADE SIREN (Emergency Beacon Wobble & Intense Red Flash) */
.game-card:hover .icon-arcade,
.icon-arcade:hover {
  animation: sirenBeaconHover 0.45s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 35px rgba(229, 72, 77, 1)) drop-shadow(0 0 55px rgba(255, 30, 30, 0.9)) !important;
}

@keyframes sirenBeaconHover {
  0% {
    transform: translateY(0) scale(1.15) rotate(-16deg);
  }
  50% {
    transform: translateY(-10px) scale(1.28) rotate(16deg);
  }
  100% {
    transform: translateY(-6px) scale(1.22) rotate(-12deg);
  }
}

/* 6. CASES CRATE (Loot Chest Bounce & Prismatic Gold-Magenta Radiant Glow) */
.game-card:hover .icon-cases,
.icon-cases:hover {
  animation: crateLootHover 0.65s cubic-bezier(0.35, 0, 0.25, 1) infinite alternate;
  filter: drop-shadow(0 0 35px #d946ef) drop-shadow(0 10px 25px rgba(255, 215, 0, 0.9)) !important;
}

@keyframes crateLootHover {
  0% {
    transform: translateY(0) scale(1.12) rotate(0deg);
  }
  35% {
    transform: translateY(-10px) scale(1.24) rotate(-8deg);
  }
  70% {
    transform: translateY(-14px) scale(1.28) rotate(6deg);
  }
  100% {
    transform: translateY(-12px) scale(1.25) rotate(-3deg);
  }
}

/* 7. GRAVEYARD ZOMBIE (Zombie Lurch & Toxic Emerald / Blood Red Pulse) */
.game-card:hover .icon-graveyard,
.icon-graveyard:hover {
  animation: zombieLurchHover 0.75s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 35px #10b981) drop-shadow(0 0 55px rgba(239, 68, 68, 0.8)) !important;
}

@keyframes zombieLurchHover {
  0% {
    transform: translateY(0) scale(1.1) rotate(-6deg);
  }
  30% {
    transform: translateY(-8px) scale(1.22) rotate(8deg);
  }
  65% {
    transform: translateY(-14px) scale(1.3) rotate(-10deg);
  }
  100% {
    transform: translateY(-10px) scale(1.25) rotate(4deg);
  }
}

.game-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
}

.game-card-title {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.game-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.game-card-footer .rtp {
  color: var(--emerald);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Features Strip */
.features-strip {
  width: min(1380px, 100% - 32px);
  margin: 0 auto 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-box .f-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.3rem;
  border: 1px solid var(--line-2);
}

.feature-box h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-box p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   MODALS & DIALOGS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
  animation: fadeInBackdrop 0.3s ease forwards;
}

.modal-backdrop.open {
  display: grid;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: popInModal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popInModal {
  from { transform: scale(0.95) translateY(14px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.modal-close {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--surface-hover);
  border-color: var(--line-2);
}

/* Debt Emergency Lockdown Modal */
.modal-debt-alert {
  border: 2px solid var(--accent);
  box-shadow: 0 0 60px var(--accent-glow);
}

.debt-banner {
  text-align: center;
  padding: 16px;
  background: rgba(229, 72, 77, 0.14);
  border: 1px solid rgba(229, 72, 77, 0.35);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.debt-banner h4 {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.debt-banner p {
  color: var(--muted);
  font-size: 0.85rem;
}

.minigame-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.minigame-btn-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--text);
  text-align: center;
}

.minigame-btn-card:hover {
  border-color: var(--gold);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.minigame-btn-card .icon {
  font-size: 2rem;
}

.minigame-btn-card .name {
  font-weight: 700;
  font-size: 0.95rem;
}

.minigame-btn-card .reward {
  font-size: 0.75rem;
  color: var(--emerald);
  font-family: var(--font-mono);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(22, 22, 24, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success { border-color: var(--emerald); color: var(--emerald); }
.toast.warn { border-color: var(--amber); color: var(--amber); }
.toast.danger { border-color: var(--accent); color: var(--accent); }

@keyframes slideToast {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Keyframes for Strobe */
@keyframes pulse-strobe {
  from { opacity: 0.6; filter: drop-shadow(0 0 2px var(--accent)); }
  to { opacity: 1; filter: drop-shadow(0 0 12px var(--accent)); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer.app-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 48px 0 60px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-container {
  width: min(1380px, 100% - 32px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-notice {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  line-height: 1.6;
}

/* ==========================================================================
   AUTH MODAL TABS SWITCHER (Modern Pill Segmented Style)
   Matches the reference screenshot with pill tabs & high contrast active state
   ========================================================================== */

.auth-tabs-seg {
  display: flex;
  background: #0f0f15;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 16px;
  width: 100%;
}

.auth-tab-pill {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-align: center;
  outline: none;
}

.auth-tab-pill:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.auth-tab-pill.active {
  background: #f4f2ee !important;
  color: #0a0a0f !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transform: scale(1.01);
}

/* ==========================================================================
   FORM INPUTS & FIELDS (Modern Rounded Capsule / Neon Border Style)
   Derived from the user's reference screenshot (Player name input)
   ========================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(244, 242, 238, 0.75);
  letter-spacing: -0.01em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: #09090e;
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 13px 18px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 16px var(--neon-blue-glow);
  background: #0d0d14;
}

/* Red / Accent Input (matching the coral outline in the reference screenshot) */
.input-coral:focus,
input:invalid:not(:placeholder-shown):focus {
  border-color: #e05353 !important;
  box-shadow: 0 0 14px rgba(224, 83, 83, 0.35) !important;
}

/* Avatar Chips */
.avatar-chip {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-chip:hover {
  transform: translateY(-2px) scale(1.08);
  border-color: var(--neon-blue) !important;
}

.avatar-chip.selected {
  border-color: var(--neon-blue) !important;
  box-shadow: 0 0 14px var(--neon-blue-glow);
  transform: scale(1.05);
}

/* ==========================================================================
   ROCKET / CRASH GAME MODE (SATOSHIBET)
   ========================================================================== */

.rocket-container {
  width: min(1320px, 100% - 32px);
  margin-inline: auto;
  padding: 24px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rocket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.rocket-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-waiting {
  background: rgba(0, 210, 255, 0.15);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.35);
}

.badge-flying {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  animation: pulse-strobe 1s infinite alternate;
}

.badge-crashed {
  background: rgba(229, 72, 77, 0.15);
  color: #e5484d;
  border: 1px solid rgba(229, 72, 77, 0.4);
}

.rocket-history-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 100%;
}

.rocket-hist-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  user-select: none;
  white-space: nowrap;
}

.rocket-hist-pill.history-cyan {
  background: rgba(0, 210, 255, 0.15);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.35);
}

.rocket-hist-pill.history-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.rocket-hist-pill.history-gold {
  background: rgba(216, 178, 106, 0.2);
  color: var(--gold);
  border: 1px solid rgba(216, 178, 106, 0.5);
  box-shadow: 0 0 10px rgba(216, 178, 106, 0.3);
}

.rocket-arena {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  background: var(--surface);
  border-radius: 28px;
  padding: 24px;
}

.rocket-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  background: #020205;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
}

#rocket-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.rocket-countdown-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

#rocket-countdown-progress {
  height: 100%;
  background: #00d2ff;
  transform-origin: left;
  transition: transform 0.05s linear;
}

.rocket-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.rocket-chip-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.rocket-chip-btn {
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  outline: none;
}

.rocket-chip-btn:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.35);
  transform: translateY(-2px);
}

.rocket-chip-btn:active {
  transform: translateY(0) scale(0.96);
}

.rocket-action-btn {
  width: 100%;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  min-height: 54px;
  border-radius: 9999px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rocket-action-btn.pulse-glow {
  animation: rocketPulse 1s infinite alternate;
}

@keyframes rocketPulse {
  from { box-shadow: 0 0 14px rgba(16, 185, 129, 0.4); transform: scale(1); }
  to { box-shadow: 0 0 30px rgba(16, 185, 129, 0.85); transform: scale(1.02); }
}

.rocket-live-players {
  margin-top: 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rocket-live-players table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.rocket-live-players th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.rocket-live-players td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.player-cashed td {
  background: rgba(16, 185, 129, 0.06);
}

.player-lost td {
  opacity: 0.45;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 960px) {
  .rocket-arena {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none; /* Mobile menu or bottom nav */
  }
  .minigame-picker {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 64px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .balance-pill {
    padding: 2px 4px 2px 10px;
  }
  .balance-amount {
    font-size: 0.95rem;
  }
  .btn-lg {
    min-height: 48px;
    padding: 0 1.5rem;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   CASES OPENING SYSTEM & INVENTORY (CS:GO / CS2 INSPIRED)
   ========================================================================== */

.cases-view-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px 40px;
}

.cases-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.cases-header-title h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2px;
}

.cases-header-title span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.cases-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 24px;
}

@media (max-width: 980px) {
  .cases-layout {
    grid-template-columns: 1fr;
  }
}

/* Left Sidebar Controls */
.cases-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-case-open-main {
  width: 100%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 16px 22px;
  font-size: 1.12rem;
  font-weight: 800;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.45);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-case-open-main:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.75);
  filter: brightness(1.1);
}

.btn-case-open-main:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-case-open-main:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.5);
}

/* Pulsating CTA button when Auto-Open is active */
.btn-case-open-main.is-auto-active {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  border: 1px solid #fca5a5 !important;
  animation: pulseAutoBtn 1s infinite alternate ease-in-out !important;
}

@keyframes pulseAutoBtn {
  0% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.6); transform: scale(1); }
  100% { box-shadow: 0 0 32px rgba(239, 68, 68, 1); transform: scale(1.02); }
}

/* Multi-Case Count Selector (1x - 5x) */
.case-multi-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
}

.case-multi-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-multi-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.multi-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 8px 0;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.multi-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.multi-pill.active {
  background: linear-gradient(135deg, #00d2ff 0%, #0284c7 100%);
  border-color: #00d2ff;
  color: #000;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.6);
  transform: translateY(-1px);
}

.case-options-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
}

.option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.case-list-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.case-item-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(3px);
}

.case-item-card.active {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.16) 0%, rgba(0, 210, 255, 0.08) 100%);
  border-color: #d946ef;
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.4);
}

.case-item-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.case-item-info {
  flex: 1;
  min-width: 0;
}

.case-item-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-item-tag {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.case-item-price-pill {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffd700;
  white-space: nowrap;
}

/* Official Drop Rates Table */
.drop-rates-box {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
}

.drop-rates-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drop-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 0.8rem;
}

.drop-rate-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drop-rate-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.drop-rate-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.drop-rate-val {
  font-weight: 700;
  color: var(--text);
}

.drop-rate-ratio {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Quick Open Switch */
.quick-open-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-open-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* --------------------------------------------------------------------------
   Center Carousel Reel / Spinner
   -------------------------------------------------------------------------- */
.cases-main-stage {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-reel-wrapper {
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, rgba(10, 15, 26, 0.95) 100%);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 18px;
  padding: 18px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

/* Auto Open Live Stats Bar */
.case-auto-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.auto-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auto-pulsing-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseDot 0.8s infinite alternate ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

.auto-bar-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fca5a5;
  letter-spacing: 0.06em;
}

.auto-bar-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.auto-bar-stats strong {
  color: #ffd700;
  margin-left: 2px;
}

.btn-stop-auto {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  color: #fff;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stop-auto:hover {
  background: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.8);
}

/* Multi-Lane Reeling Container */
.case-reels-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.case-reel-viewport {
  position: relative;
  width: 100%;
  height: 154px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85);
  transition: height 0.25s ease;
}

.case-reel-viewport.multi-lane {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-reel-viewport.multi-lane-1 { height: 154px; }
.case-reel-viewport.multi-lane-2 { height: 132px; }
.case-reel-viewport.multi-lane-3 { height: 114px; }
.case-reel-viewport.multi-lane-4 { height: 100px; }
.case-reel-viewport.multi-lane-5 { height: 92px; }

.lane-badge {
  position: absolute;
  top: 6px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #00d2ff;
  z-index: 12;
  pointer-events: none;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Center Selector Needle */
.reel-needle {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ffd700;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 14px #ffd700;
  pointer-events: none;
}

.reel-needle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #ffd700;
  filter: drop-shadow(0 0 6px #ffd700);
}

.reel-needle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #ffd700;
  filter: drop-shadow(0 0 6px #ffd700);
}

.case-reel-track {
  display: flex;
  gap: 10px;
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  will-change: transform;
}

.reel-card {
  width: 150px;
  height: 134px;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid var(--rarity-border, rgba(255, 255, 255, 0.1));
  border-bottom: 3.5px solid var(--rarity-color, #3b82f6) !important;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  position: relative;
  overflow: hidden;
  user-select: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 -10px 20px var(--rarity-bg, rgba(59, 130, 246, 0.12));
}

.reel-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
}

.reel-card-meta {
  width: 100%;
  text-align: center;
}

.reel-card-skin {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reel-card-type {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.reel-prompt {
  text-align: center;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Contents Grid
   -------------------------------------------------------------------------- */
.contents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.contents-title {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 800;
}

.case-contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 12px;
}

.case-content-card {
  border: 1.5px solid var(--rarity-border, rgba(255, 255, 255, 0.1));
  border-bottom: 3.5px solid var(--rarity-color, #3b82f6) !important;
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.22s ease;
  user-select: none;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 0 14px var(--rarity-bg, rgba(59, 130, 246, 0.12));
}

.case-content-card:hover {
  transform: translateY(-4px);
  border-color: var(--rarity-color, #3b82f6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 18px var(--rarity-glow, rgba(59, 130, 246, 0.5));
  filter: brightness(1.12);
}

.content-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  position: relative;
}

.content-card-art svg,
.reel-card-art svg,
.inv-card-art svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 10px var(--rarity-glow, rgba(59, 130, 246, 0.45)));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.case-content-card:hover .content-card-art svg,
.inventory-card:hover .inv-card-art svg {
  transform: scale(1.08) rotate(-1deg);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 1)) drop-shadow(0 0 16px var(--rarity-color, #3b82f6));
}

.content-card-details {
  width: 100%;
  text-align: center;
}

.content-card-skin {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-card-weapon {
  font-size: 0.68rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 6px;
  font-size: 0.72rem;
}

.content-card-price {
  color: #ffd700;
  font-weight: 700;
}

.content-card-chance {
  color: var(--text-dim);
  font-size: 0.68rem;
}

.content-card-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  border-radius: 0 0 12px 12px;
}

/* ==========================================================================
   WEAPON RARITY FIXED OUTLINES & ACCENTS
   ========================================================================== */
.rarity-common {
  --rarity-color: #94a3b8;
  --rarity-border: #64748b;
  --rarity-bg: rgba(148, 163, 184, 0.12);
  --rarity-glow: rgba(148, 163, 184, 0.35);
  border-bottom-color: #94a3b8 !important;
}

.rarity-rare {
  --rarity-color: #3b82f6;
  --rarity-border: #2563eb;
  --rarity-bg: rgba(59, 130, 246, 0.14);
  --rarity-glow: rgba(59, 130, 246, 0.55);
  border-bottom-color: #3b82f6 !important;
}

.rarity-epic {
  --rarity-color: #8b5cf6;
  --rarity-border: #7c3aed;
  --rarity-bg: rgba(139, 92, 246, 0.16);
  --rarity-glow: rgba(139, 92, 246, 0.65);
  border-bottom-color: #8b5cf6 !important;
}

.rarity-legendary {
  --rarity-color: #ec4899;
  --rarity-border: #db2777;
  --rarity-bg: rgba(236, 72, 153, 0.18);
  --rarity-glow: rgba(236, 72, 153, 0.75);
  border-bottom-color: #ec4899 !important;
}

.rarity-mythical {
  --rarity-color: #ef4444;
  --rarity-border: #dc2626;
  --rarity-bg: rgba(239, 68, 68, 0.20);
  --rarity-glow: rgba(239, 68, 68, 0.85);
  border-bottom-color: #ef4444 !important;
}

.rarity-celestial {
  --rarity-color: #00d2ff;
  --rarity-border: #00d2ff;
  --rarity-bg: rgba(0, 210, 255, 0.22);
  --rarity-glow: rgba(0, 210, 255, 0.95);
  border-bottom-color: #00d2ff !important;
}

.rarity-hacker {
  --rarity-color: #10b981;
  --rarity-border: #059669;
  --rarity-bg: rgba(16, 185, 129, 0.25);
  --rarity-glow: rgba(16, 185, 129, 0.95);
  border-bottom-color: #10b981 !important;
}

.rarity-god {
  --rarity-color: #ffd700;
  --rarity-border: #f59e0b;
  --rarity-bg: rgba(255, 215, 0, 0.28);
  --rarity-glow: rgba(255, 215, 0, 1.0);
  border-bottom-color: #ffd700 !important;
}

/* --------------------------------------------------------------------------
   UNBOX REVEAL MODAL
   -------------------------------------------------------------------------- */
.unbox-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.unbox-modal-overlay.open {
  display: flex;
}

.unbox-modal-card {
  background: radial-gradient(circle at center, rgba(20, 30, 48, 0.98) 0%, rgba(10, 15, 26, 0.98) 100%);
  border: 2px solid #00d2ff;
  border-radius: 24px;
  padding: 36px 28px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 210, 255, 0.4);
  animation: unboxPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes unboxPop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.unbox-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.unbox-close-btn:hover {
  color: #fff;
}

.unbox-header-tag {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #00d2ff;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.unbox-preview-box {
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: unboxFloat 3s ease-in-out infinite alternate;
}

@keyframes unboxFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.unbox-rarity-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid;
  margin-bottom: 8px;
}

.unbox-item-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.unbox-price-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 24px;
}

.unbox-modal-card.is-multi {
  max-width: 860px;
}

.unbox-multi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 18px 0;
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
}

.unbox-multi-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1.5px solid var(--rarity-border, rgba(255, 255, 255, 0.12));
  border-bottom: 3.5px solid var(--rarity-color, #3b82f6) !important;
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 0 16px var(--rarity-bg, rgba(59, 130, 246, 0.12));
  animation: unboxItemPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes unboxItemPop {
  0% { transform: scale(0.6) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.unbox-multi-card-art {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.unbox-multi-skin {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.unbox-multi-weapon {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.unbox-multi-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.unbox-multi-price {
  font-weight: 800;
  font-size: 0.78rem;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  width: 100%;
}

.unbox-multi-total {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  padding: 10px 18px;
  margin: 12px 0 18px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.unbox-multi-total strong {
  color: #ffd700;
  font-size: 1.25rem;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.unbox-actions-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-unbox-sell {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  transition: all 0.2s;
}

.btn-unbox-sell:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
}

.btn-unbox-keep {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-unbox-keep:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   INVENTORY VIEW STYLES
   -------------------------------------------------------------------------- */
.inventory-view-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px 40px;
}

.inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.inventory-title-group h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.inventory-stats-bar {
  display: flex;
  gap: 20px;
  align-items: center;
}

.inv-stat-item {
  display: flex;
  flex-direction: column;
}

.inv-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.inv-stat-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.btn-sell-all-inventory {
  background: linear-gradient(135deg, #ffd700 0%, #d97706 100%);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  transition: all 0.2s;
}

.btn-sell-all-inventory:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
}

.btn-sell-all-inventory:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-sell-everything-secondary {
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.btn-sell-everything-secondary:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-sell-everything-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Toolbar (Search & Filter Pills) */
.inventory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.inventory-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.filter-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-pill.active {
  background: #00d2ff;
  color: #000;
  border-color: #00d2ff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.5);
}

.inventory-tools-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inventory-search-input {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 16px;
  color: #fff;
  font-size: 0.85rem;
  min-width: 180px;
  outline: none;
  transition: border-color 0.2s;
}

.inventory-search-input:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.inventory-sort-select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* Inventory Grid */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 16px;
}

.inventory-card {
  border: 1.5px solid var(--rarity-border, rgba(255, 255, 255, 0.1));
  border-bottom: 3.5px solid var(--rarity-color, #3b82f6) !important;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 0 14px var(--rarity-bg, rgba(59, 130, 246, 0.12));
  background: rgba(15, 23, 42, 0.85);
}

.inventory-card:hover {
  transform: translateY(-5px);
  border-color: var(--rarity-color, #3b82f6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--rarity-glow, rgba(59, 130, 246, 0.5));
  filter: brightness(1.1);
}

.inv-card-badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid;
  margin-bottom: 6px;
}

.inv-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85px;
  margin-bottom: 8px;
}

.inv-card-body {
  width: 100%;
  text-align: center;
}

.inv-card-skin {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv-card-weapon {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.inv-card-price-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 8px;
}

.inv-price-label {
  color: var(--text-dim);
  font-size: 0.7rem;
}

.inv-price-val {
  color: #ffd700;
  font-weight: 800;
}

.btn-sell-single {
  width: 100%;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid #ffd700;
  color: #ffd700;
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-sell-single:hover {
  background: #ffd700;
  color: #000;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
}

.inv-card-glow-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}

/* Empty State */
.inventory-empty-card {
  text-align: center;
  padding: 60px 20px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  max-width: 500px;
  margin: 40px auto;
}

.inventory-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.inventory-empty-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.inventory-empty-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Navbar Inventory Badge */
.inventory-badge-count {
  background: #00d2ff;
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
  display: none;
  vertical-align: middle;
}

/* ==========================================================================
   GRAVEYARD SURVIVOR ARENA STYLES
   ========================================================================== */
.arena-layout-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arena-hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(16, 185, 129, 0.15);
  border-radius: 16px;
  padding: 12px 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.arena-hud-left,
.arena-hud-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.arena-hud-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arena-hud-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text);
}

.arena-hp-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.arena-hp-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.arena-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #10b981 100%);
  border-radius: 999px;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.arena-hp-text {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.5px;
}

.arena-bounty-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 12px;
  padding: 8px 18px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.arena-bounty-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 1px;
}

.arena-bounty-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.arena-weapon-card {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arena-weapon-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
}

.arena-weapon-rarity {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
}

.arena-hud-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  user-select: none;
}

.arena-hud-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.arena-canvas-container {
  position: relative;
  width: 100%;
  background: #05070a;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.12);
  transition: all 0.3s ease;
}

.arena-canvas-container.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  border-radius: 0 !important;
  z-index: 999999 !important;
  border: none !important;
  box-shadow: none !important;
}

#graveyard-canvas {
  display: block;
  width: 100%;
  height: clamp(520px, 72vh, 850px);
  cursor: crosshair;
}

.arena-canvas-container.is-fullscreen #graveyard-canvas {
  width: 100vw !important;
  height: 100vh !important;
}

/* First-Person HUD Elements */
.fps-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 20;
  transition: transform 0.08s ease, filter 0.08s ease;
}

.fps-crosshair::before,
.fps-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
  border-radius: 1px;
}

.fps-crosshair::before {
  top: 11px;
  left: 0;
  width: 24px;
  height: 2px;
}

.fps-crosshair::after {
  top: 0;
  left: 11px;
  width: 2px;
  height: 24px;
}

.fps-crosshair.hit {
  transform: translate(-50%, -50%) scale(1.5);
  filter: drop-shadow(0 0 8px #ef4444);
}

.fps-click-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 10, 20, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.35);
  color: #00d2ff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 22;
  backdrop-filter: blur(6px);
  animation: pulse-slow 2s infinite ease-in-out;
}

.fps-dash-bar {
  position: absolute;
  bottom: 20px;
  right: 24px;
  width: 170px;
  height: 18px;
  background: rgba(0, 0, 0, 0.65);
  border: 1.5px solid rgba(0, 210, 255, 0.4);
  border-radius: 999px;
  overflow: hidden;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fps-dash-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #00d2ff, #38bdf8);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
  transition: width 0.08s linear;
}

.fps-dash-label {
  position: relative;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 1px 3px #000;
}

/* In-Canvas Corner HUD Overlays (Top-Left Health & Top-Right Remaining Zombies) */
.fps-corner-hud {
  position: absolute;
  z-index: 26;
  background: rgba(8, 14, 26, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
  user-select: none;
  transition: all 0.2s ease;
}

.fps-corner-top-left {
  top: 18px;
  left: 20px;
  min-width: 210px;
  border-left: 3.5px solid #10b981;
}

.fps-corner-top-right {
  top: 18px;
  right: 20px;
  min-width: 190px;
  text-align: right;
  border-right: 3.5px solid #ef4444;
}

.fps-corner-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fps-corner-top-right .fps-corner-header {
  justify-content: flex-end;
}

.fps-corner-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.fps-corner-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 5px;
}

.fps-corner-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
  border-radius: 999px;
  transition: width 0.15s ease-out, background-color 0.2s ease;
}

.fps-corner-value {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: #10b981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  letter-spacing: 0.5px;
}

.fps-corner-zombies-box {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
}

.fps-corner-zombies-count {
  font-size: 1.85rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: #ef4444;
  line-height: 1;
  text-shadow: 0 0 15px rgba(239, 68, 68, 0.75);
}

.fps-corner-zombies-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Fullscreen adjustments for Corner HUDs */
.arena-canvas-container.is-fullscreen .fps-corner-top-left {
  top: 26px;
  left: 30px;
  padding: 12px 20px;
  min-width: 240px;
}

.arena-canvas-container.is-fullscreen .fps-corner-top-right {
  top: 26px;
  right: 30px;
  padding: 12px 20px;
  min-width: 220px;
}

/* Overlays (Lobby, Intermission, GameOver) */
.arena-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  padding: 24px;
}

.arena-overlay-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(10, 15, 28, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(16, 185, 129, 0.25);
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 580px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: arenaCardPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes arenaCardPop {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.arena-overlay-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 1.5px;
}

.arena-overlay-title {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text);
  margin: 0;
}

.arena-overlay-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

.arena-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.arena-ctrl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.arena-ctrl-item kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
}

.arena-entry-config {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 16px;
  border-radius: 12px;
}

.arena-entry-config label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.arena-select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #ffd700;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

.arena-btn-glow {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
  border: 1px solid #10b981;
}

/* Intermission Card */
.intermission-card {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.25);
}

.intermission-badge {
  background: rgba(245, 158, 11, 0.15);
  border-color: #fbbf24;
  color: #fbbf24;
}

.arena-intermission-pool {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 16px 28px;
  width: 100%;
}

.intermission-pool-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.intermission-pool-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.arena-intermission-actions {
  display: flex;
  gap: 14px;
  width: 100%;
}

.arena-intermission-loot-box {
  width: 100%;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 16px;
  text-align: left;
}

.intermission-loot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
}

.intermission-loot-count {
  color: #38bdf8;
  font-weight: 800;
}

.intermission-loot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 110px;
  overflow-y: auto;
}

.intermission-loot-empty {
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
}

.intermission-loot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f8fafc;
}

.intermission-loot-hint {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

.arena-intermission-actions .btn {
  flex: 1;
}

/* Game Over Card */
.gameover-card {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(239, 68, 68, 0.3);
}

.gameover-badge {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

