/* =========================================
   LUMEN TEAL & OCHRE — Pure Mobile-First & Laptop Frame Architecture
   "Even on laptop, show as mobile + luxury casino background on laptop"
   ========================================= */

/* -----------------------------------------
   1. Universal Base & Layout Resets
   ----------------------------------------- */
html {
  overflow-x: hidden !important;
  width: 100% !important;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
  padding-bottom: 78px !important; /* Space for mobile fixed bottom bar */
  font-family: var(--font-body);
  color: var(--text-primary);
  min-height: 100vh;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* Prevent body scrolling when mobile drawer is open */
body.no-scroll {
  overflow: hidden !important;
}

/* -----------------------------------------
   2. Laptop / Desktop Responsive Architecture
   (Constrain mobile app to 480px & add luxury casino backdrop)
   ----------------------------------------- */
@media (min-width: 481px) {
  /* Disable light body::before overlay from common.css on desktop */
  body::before {
    display: none !important;
  }

  body {
    background-color: #030e0c;
    background-image:
      radial-gradient(circle at 14% 18%, rgba(16, 185, 129, 0.22) 0%, transparent 40%),
      radial-gradient(circle at 86% 20%, rgba(245, 158, 11, 0.2) 0%, transparent 42%),
      radial-gradient(circle at 50% 65%, rgba(12, 74, 66, 0.5) 0%, transparent 55%),
      radial-gradient(circle at 8% 85%, rgba(245, 158, 11, 0.12) 0%, transparent 35%),
      radial-gradient(circle at 92% 80%, rgba(16, 185, 129, 0.16) 0%, transparent 40%),
      repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1.5px, transparent 2px, transparent 32px),
      radial-gradient(ellipse at 50% 30%, #072a24 0%, #020a08 100%);
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  /* Centered Mobile App Container */
  .mobile-app-wrapper {
    max-width: 480px;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg-main);
    position: relative;
    box-shadow:
      0 0 50px rgba(0, 0, 0, 0.8),
      0 0 120px rgba(12, 74, 66, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow-x: hidden;
  }

  /* Keep Fixed Header Centered over Mobile App */
  #main-header {
    max-width: 480px !important;
    width: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Keep Fixed Bottom Bar Centered over Mobile App */
  .mobile-bottom-bar {
    max-width: 480px !important;
    width: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

}

/* -----------------------------------------
   3. Real Mobile Device View (<= 480px)
   ----------------------------------------- */
@media (max-width: 480px) {
  body {
    background: var(--bg-main);
  }

  .mobile-app-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
  }

  #main-header,
  .mobile-bottom-bar {
    max-width: 100% !important;
    left: 0 !important;
    transform: none !important;
    border-left: none !important;
    border-right: none !important;
  }
}

/* -----------------------------------------
   4. Universal Mobile-First Component Rules
   (Active on ALL screen sizes so it displays as mobile everywhere)
   ----------------------------------------- */

/* Header Mobile Style */
#main-header {
  height: 66px !important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: fixed;
  top: 0;
  z-index: 1010 !important;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Mobile Hamburger Button: ALWAYS VISIBLE */
.mobile-menu-toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--teal-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 1006 !important;
  padding: 0;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--teal-deep);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop Header Auth Buttons Hidden (Handled by Mobile Bottom Bar) */
.header-auth .btn-login,
.header-auth .btn-signup {
  display: none !important;
}

.header-auth {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

/* =========================================
   Slide-out Navigation Drawer
   HIDDEN BY DEFAULT — ONLY SHOWN WHEN TOGGLE BUTTON IS CLICKED
   ========================================= */
.nav-list {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  width: min(320px, 85vw) !important;
  background: #ffffff !important;
  border-left: 1px solid var(--border-subtle) !important;
  box-shadow: -10px 0 45px rgba(0, 0, 0, 0.45) !important;
  padding: 5.5rem 1.25rem 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  z-index: 1005 !important;

  /* BULLETPROOF HIDING: Hidden & unclickable until toggle button is clicked */
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(110%) !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.32s !important;
}

/* On Desktop / Laptop: Anchor drawer to right side of 480px mobile app */
@media (min-width: 481px) {
  .nav-list {
    right: calc(50% - 240px) !important;
  }
}

/* On Mobile screens: Anchor drawer to right edge of screen */
@media (max-width: 480px) {
  .nav-list {
    right: 0 !important;
  }
}

/* SHOWN ONLY WHEN USER CLICKS TOGGLE BUTTON */
.nav-list.active {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

.nav-list ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.nav-list a {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--teal-deep) !important;
  background: #f7faf9 !important;
  border: 1px solid rgba(12, 74, 66, 0.1) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.95rem 1.15rem !important;
  margin-bottom: 0.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all var(--transition-fast) !important;
  text-decoration: none !important;
}

.nav-list a:hover,
.nav-list li.active a {
  background: var(--teal-deep) !important;
  color: #ffffff !important;
  border-color: var(--teal-deep) !important;
}

/* Menu Overlay Backdrop (Clear & clean soft dimming, NO blur, z-index under header) */
.mobile-menu-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  z-index: 1002 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s !important;
}

.mobile-menu-overlay.active {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Hero Section Mobile Format */
.hero {
  min-height: auto !important;
  padding: calc(66px + 1.25rem) 0 2rem !important;
  overflow: hidden;
  position: relative;
}

.hero::before {
  width: 200px !important;
  height: 100px !important;
  top: 2% !important;
  right: -30px !important;
  opacity: 0.45 !important;
}

.hero::after {
  width: 70px !important;
  height: 70px !important;
  top: 12% !important;
  right: 15px !important;
  opacity: 0.55 !important;
}

.hero-shape-pill,
.hero-shape-mint {
  display: none !important;
}

.hero-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.75rem !important;
  align-items: center !important;
  text-align: center !important;
}

.hero-content {
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}

.hero-logo {
  justify-content: center !important;
}

.hero-logo img {
  max-height: 48px !important;
}

.hero-badge-pill {
  font-size: 0.76rem !important;
  padding: 5px 12px !important;
  white-space: normal !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.hero-title {
  font-size: 1.85rem !important;
  line-height: 1.18 !important;
  text-align: center !important;
}

.hero-description {
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
  padding: 0 0.5rem !important;
  text-align: center !important;
}

.hero-actions {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 320px !important;
  gap: 0.75rem !important;
  margin: 0 auto !important;
}

.btn-hero-primary,
.btn-hero-secondary {
  width: 100% !important;
  justify-content: center !important;
  padding: 0.85rem 1.25rem !important;
  font-size: 0.95rem !important;
  min-height: 48px !important;
}

.hero-trust-row {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 0.5rem 0.85rem !important;
  padding-top: 0.5rem !important;
}

.hero-trust-item {
  font-size: 0.76rem !important;
}

.hero-visual-card {
  width: 100% !important;
  max-width: 100% !important;
  padding: 1.25rem !important;
  border-radius: var(--radius-md) !important;
}

.hero-jackpot {
  padding: 1.25rem 1rem !important;
}

.jackpot-label {
  font-size: 0.72rem !important;
  padding: 3px 10px !important;
}

.jackpot-amount {
  font-size: 1.55rem !important;
}

.jackpot-subtext {
  font-size: 0.75rem !important;
}

.hero-quick-stats {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.65rem !important;
}

.hero-quick-box {
  padding: 0.75rem 0.6rem !important;
}

/* Section Spacing & Headers */
.content-section {
  padding: 2.75rem 0 !important;
}

.container {
  width: 100% !important;
  padding: 0 1rem !important;
}

.section-header-centered {
  margin-bottom: 1.75rem !important;
  padding: 0 0.5rem !important;
}

.section-title {
  font-size: 1.65rem !important;
  line-height: 1.22 !important;
}

.section-prefix {
  font-size: 0.75rem !important;
  padding: 4px 12px !important;
}

/* Games Grid: Strict 2-Column Mobile Format (Guaranteed No Overflow) */
.games-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.game-card-large {
  padding: 0.65rem !important;
  border-radius: var(--radius-sm) !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.game-card-img-wrap {
  height: 110px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 0.55rem !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden !important;
  position: relative !important;
}

.game-card-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.game-badge {
  font-size: 0.62rem !important;
  padding: 2px 6px !important;
  top: 6px !important;
  left: 6px !important;
  white-space: nowrap !important;
  max-width: 90% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.game-card-overlay {
  min-width: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
}

.game-card-overlay h3 {
  font-size: 0.84rem !important;
  margin-bottom: 0.2rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  width: 100% !important;
  display: block !important;
}

.game-card-overlay p {
  font-size: 0.72rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  width: 100% !important;
}

.btn-play-game {
  padding: 0.5rem 0.35rem !important;
  font-size: 0.75rem !important;
  min-height: 36px !important;
  margin-top: 0.55rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}

/* Tournaments: 1-Column Mobile Stack */
.tournaments-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
}

.tournament-card {
  padding: 1.25rem !important;
}

.tourney-img {
  height: 135px !important;
  margin-bottom: 0.85rem !important;
}

.tourney-body h3 {
  font-size: 1.1rem !important;
}

.tourney-info {
  font-size: 0.82rem !important;
}

.tourney-prize span {
  font-size: 0.95rem !important;
}

/* Stats Counter: 2x2 Mobile Grid */
.stats-counter-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.75rem !important;
}

.stat-counter {
  padding: 1.25rem 0.75rem !important;
  border-radius: var(--radius-sm) !important;
}

.counter-icon {
  width: 42px !important;
  height: 42px !important;
  font-size: 1.1rem !important;
  margin-bottom: 0.75rem !important;
}

.counter-number {
  font-size: 1.5rem !important;
}

.counter-label {
  font-size: 0.76rem !important;
}

/* Testimonials: 1-Column Mobile Stack */
.testimonials-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.15rem !important;
}

.testimonial-card {
  padding: 1.35rem !important;
}

.testimonial-text {
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
}

/* News Previews: 1-Column Mobile Stack */
.news-preview-grid,
.news-grid-glow {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
}

.news-preview-card img,
.news-glow-img img {
  height: 160px !important;
}

.news-preview-content,
.news-glow-content {
  padding: 1.25rem !important;
}

.news-preview-content h3,
.news-glow-content h3 {
  font-size: 1.05rem !important;
}

.news-preview-content p,
.news-glow-content p {
  font-size: 0.85rem !important;
}

/* VIP Program Tiers: 1-Column Stack */
.vip-tiers-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}

.vip-tier-item {
  display: flex !important;
  flex-direction: column !important;
  text-align: center !important;
  padding: 1.35rem 1rem !important;
  gap: 1rem !important;
}

.vip-tier-badge {
  margin: 0 auto 0.5rem !important;
}

.vip-tier-main h3 {
  font-size: 1.15rem !important;
}

.vip-tier-benefits {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.4rem !important;
  font-size: 0.85rem !important;
}

.vip-tier-btn .btn-primary,
.vip-tier-btn .btn-secondary {
  width: 100% !important;
  justify-content: center !important;
}

/* Why Choose Us & Trust Sections */
.why-choose-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
}

.why-card {
  padding: 1.5rem 1.25rem !important;
}

.why-card h3 {
  font-size: 1.15rem !important;
}

.why-card p,
.why-card ul {
  font-size: 0.88rem !important;
  text-align: left !important;
}

.trust-section {
  padding: 3rem 0 !important;
}

.trust-grid-v2 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

.trust-card-v2 {
  padding: 1.25rem !important;
}

.trust-subtitle {
  font-size: 0.9rem !important;
  padding: 0 0.5rem !important;
}

/* FAQ Split & Accordion */
.faq-split {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.75rem !important;
}

.faq-info {
  text-align: center !important;
}

.faq-info .section-title {
  text-align: center !important;
}

.faq-support-card {
  margin: 1.25rem auto !important;
  max-width: 320px !important;
  text-align: left !important;
}

.faq-question {
  font-size: 0.92rem !important;
  padding: 1rem !important;
}

.faq-answer {
  padding: 0 1rem 1rem !important;
  font-size: 0.86rem !important;
}

/* Winner & Support Split */
.winners-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 2rem !important;
}

.winners-text {
  text-align: center !important;
}

.winners-text .section-title {
  text-align: center !important;
}

.winners-text .btn-primary,
.winners-text .btn-secondary {
  width: 100% !important;
  justify-content: center !important;
}

.total-paid-card {
  margin: 1.25rem auto !important;
  max-width: 320px !important;
}

.winner-testimonial {
  padding: 1.25rem !important;
  text-align: left !important;
}

/* Crypto Strip */
.crypto-strip {
  padding: 1.15rem 0 !important;
  margin: 2rem 0 !important;
}

.crypto-track {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.5rem 0.75rem !important;
}

.crypto-track span {
  font-size: 0.8rem !important;
  padding: 5px 12px !important;
}

/* Footer Register CTA Banner */
.footer-register-banner {
  padding: 2.25rem 1.25rem !important;
  margin: 2.25rem 0.75rem !important;
  border-radius: var(--radius-lg) !important;
  text-align: center !important;
}

.footer-register-banner h3 {
  font-size: 1.45rem !important;
  line-height: 1.25 !important;
}

.footer-register-banner p {
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
}

.footer-register-banner .btn-primary {
  width: 100% !important;
  justify-content: center !important;
  padding: 0.9rem 1.5rem !important;
  font-size: 0.95rem !important;
  min-height: 48px !important;
}

/* Footer Section */
footer, #main-footer {
  padding: 3rem 0 2rem !important;
  margin-top: 3rem !important;
}

.footer-top {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  text-align: center !important;
  margin-bottom: 2rem !important;
}

.footer-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.footer-brand img {
  height: 38px !important;
  margin-bottom: 0.85rem !important;
}

.footer-brand p,
.footer-desc {
  max-width: 100% !important;
  text-align: center !important;
  font-size: 0.85rem !important;
  line-height: 1.65 !important;
}

.footer-nav ul,
.footer-contact ul {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.footer-contact li {
  justify-content: center !important;
}

.footer-bottom {
  display: flex !important;
  flex-direction: column !important;
  text-align: center !important;
  gap: 1rem !important;
  font-size: 0.8rem !important;
}

.footer-links {
  justify-content: center !important;
}

/* Mobile Fixed Bottom Action Bar: ALWAYS VISIBLE */
.mobile-bottom-bar {
  position: fixed !important;
  bottom: 0 !important;
  display: flex !important;
  padding: 10px 14px !important;
  gap: 10px !important;
  z-index: 1001 !important;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid var(--border-subtle) !important;
  box-shadow: 0 -6px 25px rgba(12, 74, 66, 0.12) !important;
}

.mobile-bottom-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  min-height: 48px;
  font-family: var(--font-heading);
  text-decoration: none;
}

.mobile-bottom-bar .btn-login {
  background: var(--bg-white);
  color: var(--teal-deep);
  border: 1.5px solid var(--border-medium);
}

.mobile-bottom-bar .btn-register {
  background: var(--teal-deep);
  color: var(--text-white);
  border: none;
  box-shadow: 0 4px 14px rgba(12, 74, 66, 0.28);
}

/* Show.html Page Adaptations */
.page-container {
  padding-top: calc(66px + 1rem) !important;
}

.page-hero {
  padding: 2rem 0 2.25rem !important;
  margin-bottom: 2rem !important;
}

.landing-title {
  font-size: 1.75rem !important;
  line-height: 1.25 !important;
}

.hero-meta {
  gap: 0.75rem !important;
}

.article-container {
  padding: 1rem !important;
}

.article-body {
  font-size: 0.94rem !important;
  line-height: 1.7 !important;
}

/* -----------------------------------------
   5. Dark Mode Overrides for Laptop & Mobile Bar
   ----------------------------------------- */
[data-theme="dark"] body {
  background-color: #020706;
}

@media (min-width: 481px) {
  [data-theme="dark"] body {
    background-image:
      radial-gradient(circle at 14% 18%, rgba(16, 185, 129, 0.15) 0%, transparent 40%),
      radial-gradient(circle at 86% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 42%),
      radial-gradient(circle at 50% 65%, rgba(12, 74, 66, 0.35) 0%, transparent 55%),
      radial-gradient(circle at 8% 85%, rgba(245, 158, 11, 0.08) 0%, transparent 35%),
      radial-gradient(circle at 92% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
      repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1.5px, transparent 2px, transparent 32px),
      radial-gradient(ellipse at 50% 30%, #051a16 0%, #010403 100%);
  }

  [data-theme="dark"] .mobile-app-wrapper {
    box-shadow:
      0 0 60px rgba(0, 0, 0, 0.95),
      0 0 120px rgba(16, 185, 129, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.05);
  }
}

[data-theme="dark"] #main-header {
  background: rgba(7, 26, 23, 0.95) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

[data-theme="dark"] .nav-list {
  background: #09201c !important;
  border-left: 1px solid var(--border-subtle) !important;
}

[data-theme="dark"] .nav-list a {
  background: #112d28 !important;
  color: #e6f5f2 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .nav-list a:hover,
[data-theme="dark"] .nav-list li.active a {
  background: var(--teal-deep) !important;
  color: #ffffff !important;
  border-color: var(--teal-deep) !important;
}

[data-theme="dark"] .mobile-bottom-bar {
  background: rgba(9, 26, 23, 0.96) !important;
  border-top: 1px solid var(--border-subtle) !important;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .mobile-bottom-bar .btn-login {
  background: #112d28 !important;
  color: #f1f5f9 !important;
  border-color: #1e453e !important;
}

[data-theme="dark"] .mobile-bottom-bar .btn-register {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-medium)) !important;
  color: #ffffff !important;
}

/* Safe area support for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-bottom-bar {
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }
}

/* Extra small mobile device safety (<= 380px screens e.g., iPhone SE, Galaxy Fold) */
@media (max-width: 380px) {
  .container {
    padding: 0 0.65rem !important;
  }

  .games-grid {
    gap: 0.5rem !important;
  }

  .game-card-large {
    padding: 0.5rem 0.4rem !important;
  }

  .game-card-img-wrap {
    height: 95px !important;
  }

  .game-card-overlay h3 {
    font-size: 0.76rem !important;
  }

  .game-card-overlay p {
    font-size: 0.68rem !important;
  }

  .btn-play-game {
    font-size: 0.7rem !important;
    min-height: 32px !important;
    padding: 0.4rem 0.2rem !important;
    gap: 3px !important;
  }
}

