/* ==========================================================================
   ARTHER GAMES — Futuristic Cosmic Arcade & Virtual Entertainment Hub
   Responsive Engine: Multi-Device Universal (Mobile, Tablet, Desktop, 4K)
   ========================================================================== */

:root {
  --bg-dark: #050711;
  --bg-surface: #0a0e21;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: rgba(26, 38, 70, 0.95);
  --bg-glass: rgba(13, 19, 39, 0.7);

  --cyan: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.35);
  --purple: #9d4edd;
  --purple-glow: rgba(157, 78, 221, 0.35);
  --pink: #f72585;
  --pink-glow: rgba(247, 37, 133, 0.35);
  --gold: #ffb703;
  --gold-glow: rgba(255, 183, 3, 0.35);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --crimson: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.25);
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-pill: 9999px;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-neon: 0 0 25px rgba(0, 242, 254, 0.15);
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-bottom: 0;
}

/* Cosmic Canvas & Mesh */
#cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}
.ambient-glow.top-left {
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
}
.ambient-glow.bottom-right {
  bottom: -200px;
  right: -200px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Universal Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  border: 1px solid transparent;
  outline: none;
  user-select: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #3a86ff 100%);
  color: #030712;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #f77f00 100%);
  color: #050711;
  box-shadow: 0 0 18px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 183, 3, 0.6);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 17, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--cyan-glow);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--font-heading);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Hide desktop CTA button on mobile by default */
.nav-cta-desktop {
  display: none;
}
@media (min-width: 769px) {
  .nav-cta-desktop {
    display: inline-flex !important;
  }
}

.wallet-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-glow);
  padding: 0.4rem 0.85rem;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.1);
  white-space: nowrap;
}

.wallet-icon {
  color: var(--gold);
  font-size: 1rem;
  animation: pulseGold 2s infinite ease-in-out;
}

.wallet-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.wallet-refill-btn {
  background: transparent;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 4px;
  border-radius: 4px;
  transition: transform var(--transition-fast);
}
.wallet-refill-btn:hover {
  transform: rotate(45deg) scale(1.15);
}

.audio-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.audio-toggle-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* Live Ticker Bar */
.live-ticker {
  background: rgba(10, 14, 33, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.45rem 0;
  overflow: hidden;
  position: relative;
  font-size: 0.85rem;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}
.ticker-highlight {
  color: var(--cyan);
  font-weight: 600;
}
.ticker-amount {
  color: var(--emerald);
  font-family: var(--font-mono);
  font-weight: 700;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem;
  position: relative;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.35rem 1rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto 1.25rem;
  word-wrap: break-word;
}

.hero-title .glow-gradient {
  background: linear-gradient(135deg, var(--cyan) 10%, #60a5fa 50%, var(--purple) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.stat-item {
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.75rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}
.stat-num.glow-cyan { color: var(--cyan); text-shadow: 0 0 12px var(--cyan-glow); }
.stat-num.glow-gold { color: var(--gold); text-shadow: 0 0 12px var(--gold-glow); }
.stat-num.glow-emerald { color: var(--emerald); text-shadow: 0 0 12px var(--emerald-glow); }

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Floor Filter Tabs */
.floor-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--border-radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}
.tab-btn:hover,
.tab-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(14px);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.2);
}

.game-preview {
  height: 180px;
  position: relative;
  background: linear-gradient(180deg, rgba(16, 24, 52, 0.8), rgba(8, 12, 28, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-preview-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(10, 14, 30, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.65rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  backdrop-filter: blur(8px);
}

.game-category {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--cyan);
  padding: 0.2rem 0.65rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
}

.game-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.game-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-bottom: 1.2rem;
  font-size: 0.82rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.meta-label {
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
}
.meta-value {
  color: #fff;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Arena Modal */
.game-arena-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 15, 0.94);
  backdrop-filter: blur(24px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.25s ease;
}

.game-arena-overlay.active {
  display: flex;
}

.game-arena-box {
  width: 100%;
  max-width: 960px;
  max-height: 94vh;
  background: #090e24;
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 60px rgba(0, 242, 254, 0.25), 0 30px 80px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.arena-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  background: rgba(14, 21, 48, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.arena-title-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.arena-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}
.arena-badge {
  font-size: 0.72rem;
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  border: 1px solid var(--cyan);
}

.arena-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.arena-close-btn:hover {
  background: var(--crimson);
  border-color: var(--crimson);
}

.arena-content {
  padding: 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
}

.bet-control-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(15, 23, 48, 0.9);
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-subtle);
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.bet-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-grow: 1;
}

.bet-input-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.bet-input {
  background: rgba(5, 7, 18, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  width: 130px;
  outline: none;
}
.bet-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.bet-quick-btns {
  display: flex;
  gap: 0.35rem;
}

.btn-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-chip:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan);
  color: #fff;
}

/* Marks Grid */
.marks-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, transparent, rgba(10, 15, 35, 0.8) 50%, transparent);
}

.marks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.mark-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: all var(--transition-fast);
}

.mark-card.unlocked {
  border-color: rgba(255, 183, 3, 0.4);
  background: rgba(26, 33, 62, 0.85);
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.1);
}

.mark-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--text-dim);
}
.mark-card.unlocked .mark-icon {
  background: linear-gradient(135deg, var(--gold), #f77f00);
  color: #050711;
  box-shadow: 0 0 15px var(--gold-glow);
}

.mark-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}
.mark-info p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Features */
.features-section {
  padding: 4.5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
}
.feature-box:hover {
  border-color: var(--cyan);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.feature-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
  padding: 0.85rem 1.15rem;
  border-radius: var(--border-radius-md);
  color: #fff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  backdrop-filter: blur(12px);
  max-width: 360px;
}
.toast.gold {
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(255, 183, 3, 0.3);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04060d;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 340px;
  margin-top: 0.8rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--cyan);
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 1.1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Bottom Navigation Dock (Default Hidden on Desktop) */
.mobile-bottom-nav {
  display: none;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Multi-Device Perfection)
   ========================================================================== */

/* Tablet & Mobile Screens (<= 900px) */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 72px; /* Clears fixed bottom dock */
  }

  .container {
    padding: 0 1rem;
  }

  /* Compact Navbar */
  .navbar {
    height: 60px;
  }

  .brand-logo {
    gap: 0.45rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  /* STRICTLY HIDE DESKTOP CTA ON MOBILE */
  .nav-cta-desktop,
  .nav-actions a.btn,
  .nav-actions .btn-sm {
    display: none !important;
  }

  .wallet-badge {
    padding: 0.3rem 0.6rem;
    gap: 0.35rem;
  }

  .wallet-icon {
    font-size: 0.85rem;
  }

  .wallet-amount {
    font-size: 0.82rem;
  }

  .wallet-refill-btn {
    font-size: 0.72rem;
    padding: 1px 3px;
  }

  .audio-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  /* Live Ticker Mobile */
  .live-ticker {
    font-size: 0.75rem;
    padding: 0.35rem 0;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 2.2rem 0 1.8rem;
  }

  .hero-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1.2rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.85rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Stats Bar Mobile */
  .hero-stats-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item:not(:last-child) {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.85rem;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  /* Games Grid Mobile */
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
  }

  .game-card {
    border-radius: 16px;
  }

  .game-preview {
    height: 160px;
  }

  .game-body {
    padding: 1.2rem;
  }

  .game-title {
    font-size: 1.15rem;
  }

  .game-desc {
    font-size: 0.84rem;
    margin-bottom: 1rem;
  }

  .game-meta {
    padding-top: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
  }

  .game-body .btn {
    width: 100%;
    padding: 0.75rem 1.2rem;
  }

  /* Filter Tabs Mobile */
  .floor-filter-tabs {
    gap: 0.35rem;
    margin-bottom: 1.5rem;
  }

  .tab-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
  }

  /* Game Arena Modal Mobile */
  .game-arena-overlay {
    padding: 0.4rem;
  }

  .game-arena-box {
    max-height: 96vh;
    border-radius: 16px;
  }

  .arena-header {
    padding: 0.75rem 1rem;
  }

  .arena-title {
    font-size: 1.05rem;
  }

  .arena-content {
    padding: 0.85rem;
  }

  .bet-control-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .bet-input-wrap {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .bet-input {
    width: 110px;
    font-size: 0.95rem;
    padding: 0.45rem 0.75rem;
  }

  .bet-quick-btns {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.4rem;
  }

  .bet-control-panel .btn-lg {
    width: 100%;
    min-width: unset !important;
  }

  /* Glassmorphic Mobile Bottom Dock */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    background: rgba(8, 12, 28, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
  }

  .mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all var(--transition-fast);
  }

  .mobile-bottom-item.active,
  .mobile-bottom-item:hover {
    color: var(--cyan);
  }

  .mobile-bottom-icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  /* Toast notification position */
  #toast-container {
    bottom: 4.75rem;
    right: 1rem;
    left: 1rem;
  }
}

/* Extra Compact Phones (e.g. 320px - 380px) */
@media (max-width: 380px) {
  .brand-text {
    font-size: 0.88rem;
  }
  .wallet-badge {
    padding: 0.25rem 0.45rem;
  }
  .wallet-amount {
    font-size: 0.75rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
}
