/* =========================================================
   FUNJIO - ULTRA FAST ~60s GAME THEMES & MODERN GAMER UI
   ========================================================= */

:root {
  /* =========================================================
     LIGHT THEME: PURE WHITE & WARM CREAM WITH ELECTRIC NEON ACCENTS
     ========================================================= */
  --bg-page: #faf7f2;
  --bg-arena-grad:
    radial-gradient(circle at 50% 45%, rgba(0, 160, 255, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 85% 15%, rgba(255, 0, 110, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #faf5ec 50%, #f3ebe0 100%);
  --bg-home-grad:
    radial-gradient(ellipse at 80% 12%, rgba(0, 180, 255, 0.18), transparent 50%),
    radial-gradient(ellipse at 12% 85%, rgba(255, 0, 110, 0.14), transparent 45%),
    linear-gradient(135deg, #fffdfa 0%, #fbf6ec 52%, #f4ece0 100%);
  --bg-surface: #ffffff;
  --bg-surface-nav: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.92);
  --bg-soft: #f4ece0;
  --bg-chip: rgba(0, 140, 255, 0.12);
  --text-dark: #121929;
  --text-mid: #465672;
  --text-light: #7486a0;
  --primary-blue: #0077ff;
  --primary-glow: rgba(0, 119, 255, 0.38);
  --accent-pink: #ff0066;
  --accent-glow: rgba(255, 0, 102, 0.38);
  --live-green: #00aa50;
  --gold-amber: #d97706;
  --border-light: rgba(0, 119, 255, 0.22);
  --border-neon: rgba(0, 119, 255, 0.55);
  --shadow-soft: 0 10px 30px rgba(50, 60, 85, 0.08);
  --shadow-card: 0 16px 40px rgba(45, 55, 80, 0.12);
  --card-surface: #ffffff;
  --playable-glow: 0 0 16px rgba(0, 119, 255, 0.7), 0 0 0 2px rgba(0, 119, 255, 0.85);
  --playable-hover-glow: 0 0 24px rgba(255, 0, 102, 0.8), 0 0 0 3px rgba(255, 0, 102, 0.9);
  --btn-primary-grad: linear-gradient(135deg, #0088ff 0%, #0055ff 55%, #ff0066 100%);
  --dynamic-overlap: -8px;
}

/* NEON DARK THEME */
body.dark-theme {
  --bg-page: #040814;
  --bg-arena-grad: radial-gradient(circle at 50% 42%, rgba(0, 245, 255, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(255, 0, 127, 0.16) 0%, transparent 45%),
    linear-gradient(180deg, #040813 0%, #081426 50%, #03050c 100%);
  --bg-home-grad: radial-gradient(ellipse at 80% 15%, rgba(0, 245, 255, 0.20), transparent 45%),
    radial-gradient(ellipse at 12% 82%, rgba(255, 0, 127, 0.18), transparent 45%),
    linear-gradient(135deg, #03060f 0%, #061122 55%, #02040a 100%);
  --bg-surface: #0b182b;
  --bg-surface-nav: rgba(10, 20, 36, 0.88);
  --bg-glass: rgba(11, 24, 43, 0.72);
  --bg-glass-card: rgba(14, 29, 52, 0.62);
  --bg-soft: #12213a;
  --bg-chip: rgba(0, 245, 255, 0.14);
  --text-dark: #f8fbff;
  --text-mid: #b8cde4;
  --text-light: #7e9bbd;
  --primary-blue: #00e5ff;
  --primary-glow: rgba(0, 229, 255, 0.45);
  --accent-pink: #ff1f71;
  --accent-glow: rgba(255, 31, 113, 0.45);
  --live-green: #00ff88;
  --gold-amber: #ffb800;
  --border-light: rgba(0, 245, 255, 0.28);
  --border-neon: rgba(0, 245, 255, 0.55);
  --card-surface: #0a1527;
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 16px 44px rgba(0, 0, 0, 0.45);
  --playable-glow: 0 0 20px rgba(0, 229, 255, 0.85), 0 0 0 2px rgba(0, 229, 255, 0.6);
  --playable-hover-glow: 0 0 28px rgba(255, 31, 113, 0.95), 0 0 0 3px rgba(255, 31, 113, 0.7);
  --btn-primary-grad: linear-gradient(135deg, #00e5ff 0%, #0066ff 60%, #ff1f71 100%);
}

/* CAR THEME (NITRO RACING) */
body.car-theme {
  --bg-page: #0b0d13;
  --bg-arena-grad:
    radial-gradient(circle at 50% 46%, rgba(255, 42, 0, 0.24) 0%, transparent 55%),
    radial-gradient(circle at 15% 20%, rgba(255, 183, 0, 0.16) 0%, transparent 45%),
    linear-gradient(180deg, #0b0d12 0%, #171b24 50%, #090b10 100%);
  --bg-home-grad:
    radial-gradient(ellipse at 82% 15%, rgba(255, 42, 0, 0.26), transparent 45%),
    radial-gradient(ellipse at 15% 85%, rgba(255, 183, 0, 0.2), transparent 45%),
    linear-gradient(135deg, #090b10 0%, #161a24 55%, #0c0e14 100%);
  --bg-surface: #181c26;
  --bg-glass: rgba(24, 28, 38, 0.75);
  --bg-glass-card: rgba(30, 35, 48, 0.65);
  --bg-soft: #232836;
  --card-surface: #12141c;
  --text-dark: #f8fbff;
  --text-mid: #b8cde4;
  --text-light: #7e9bbd;
  --primary-blue: #ff3b00;
  --primary-glow: rgba(255, 59, 0, 0.55);
  --accent-pink: #ffb700;
  --accent-glow: rgba(255, 183, 0, 0.55);
  --border-light: rgba(255, 59, 0, 0.35);
  --border-neon: rgba(255, 183, 0, 0.6);
  --btn-primary-grad: linear-gradient(135deg, #ff2a00 0%, #d91b00 55%, #ff9900 100%);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 16px 44px rgba(0, 0, 0, 0.45);
}

/* BARBIE THEME */
body.barbie-theme {
  --bg-page: #1a0515;
  --bg-arena-grad:
    radial-gradient(circle at 50% 42%, rgba(255, 20, 147, 0.24) 0%, transparent 58%),
    radial-gradient(circle at 85% 18%, rgba(217, 70, 239, 0.2) 0%, transparent 46%),
    linear-gradient(180deg, #180314 0%, #290823 52%, #12020f 100%);
  --bg-home-grad:
    radial-gradient(ellipse at 80% 15%, rgba(255, 16, 136, 0.26), transparent 45%),
    radial-gradient(ellipse at 15% 85%, rgba(192, 38, 211, 0.22), transparent 45%),
    linear-gradient(135deg, #1c0517 0%, #2f0928 52%, #130310 100%);
  --bg-surface: #2b0824;
  --bg-glass: rgba(43, 8, 36, 0.75);
  --bg-glass-card: rgba(54, 11, 46, 0.62);
  --bg-soft: #380b2f;
  --card-surface: #1e0518;
  --text-dark: #f8fbff;
  --text-mid: #f3c5ea;
  --text-light: #ba8ea4;
  --primary-blue: #ff0f87;
  --primary-glow: rgba(255, 15, 135, 0.55);
  --accent-pink: #d946ef;
  --accent-glow: rgba(217, 70, 239, 0.55);
  --border-light: rgba(255, 15, 135, 0.35);
  --border-neon: rgba(217, 70, 239, 0.65);
  --btn-primary-grad: linear-gradient(135deg, #ff0f87 0%, #ec4899 55%, #a855f7 100%);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 16px 44px rgba(0, 0, 0, 0.45);
}

/* TREE THEME */
body.tree-theme {
  --bg-page: #041009;
  --bg-arena-grad:
    radial-gradient(circle at 50% 40%, rgba(16, 185, 129, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.18) 0%, transparent 45%),
    linear-gradient(180deg, #030d07 0%, #0a2115 50%, #020804 100%);
  --bg-home-grad:
    radial-gradient(ellipse at 80% 15%, rgba(16, 185, 129, 0.26), transparent 45%),
    radial-gradient(ellipse at 15% 85%, rgba(245, 158, 11, 0.18), transparent 45%),
    linear-gradient(135deg, #030d07 0%, #0d2719 52%, #020704 100%);
  --bg-surface: #0a2417;
  --bg-glass: rgba(10, 36, 23, 0.75);
  --bg-glass-card: rgba(14, 48, 31, 0.65);
  --bg-soft: #0e301f;
  --card-surface: #05160d;
  --text-dark: #f8fbff;
  --text-mid: #b8e4cd;
  --text-light: #7ebd9d;
  --primary-blue: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.55);
  --accent-pink: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.55);
  --border-light: rgba(16, 185, 129, 0.35);
  --border-neon: rgba(52, 211, 153, 0.6);
  --btn-primary-grad: linear-gradient(135deg, #059669 0%, #10b981 55%, #f59e0b 100%);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 16px 44px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text-dark);
  user-select: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.hidden,
.popup-overlay.hidden {
  display: none !important;
}

/* =========================================================
   MODERN GAMER BUTTONS & SURFACES (GLASSMORPHISM + NEON ACCENTS)
   ========================================================= */
.gamer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

.gamer-btn-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), var(--shadow-soft);
  letter-spacing: 0.3px;
}

.gamer-btn-glass:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--primary-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 16px var(--primary-glow), var(--shadow-soft);
  color: var(--primary-blue);
}

.gamer-btn-glass:active {
  transform: translateY(0) scale(0.97);
}

.gamer-btn-gold {
  background: rgba(255, 184, 0, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 184, 0, 0.48);
  color: var(--gold-amber);
  box-shadow: inset 0 1px 0 rgba(255, 220, 100, 0.2), 0 4px 14px rgba(255, 184, 0, 0.25);
  letter-spacing: 0.3px;
}

.gamer-btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 184, 0, 0.25);
  border-color: var(--gold-amber);
  box-shadow: inset 0 1px 0 rgba(255, 220, 100, 0.3), 0 0 20px rgba(255, 184, 0, 0.55), 0 6px 20px rgba(0, 0, 0, 0.4);
  color: #fff4d1;
}

.gamer-btn-gold:active {
  transform: translateY(0) scale(0.97);
}

.gamer-cta-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-primary-grad);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 20px var(--primary-glow), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.gamer-cta-play::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: 0.75s;
}

.gamer-cta-play:hover::after {
  left: 150%;
}

.gamer-cta-play:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 32px var(--accent-glow), 0 0 16px var(--primary-blue), 0 12px 32px rgba(0, 0, 0, 0.5);
}

.gamer-cta-play:active {
  transform: translateY(-1px) scale(0.98);
}

.cta-play-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  font-size: 14px;
}

.cta-play-text {
  text-align: left;
}

.cta-play-text strong {
  display: block;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.5px;
}

.cta-play-text small {
  display: block;
  font-size: 9.5px;
  opacity: 0.88;
}

.cta-play-arrow {
  font-size: 16px;
  font-weight: 900;
  margin-left: 4px;
}

/* =========================================================
   HOME PAGE: HERO & INTERACTIVE 5-CARD DEMO
   ========================================================= */
.home-page {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow-y: auto;
  color: var(--text-dark);
  background: var(--bg-home-grad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =========================================================
   FLOATING BACKGROUND CARD IMAGES
   ========================================================= */
.home-bg-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.home-nav,
.home-arena-layout,
.home-center-stage,
.home-arcade-section,
.home-rules-section,
.home-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.bg-card {
  position: absolute;
  width: clamp(75px, 9vw, 130px);
  aspect-ratio: 5 / 7;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0 0 16px rgba(0, 217, 255, 0.22));
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

[data-theme="light"] .bg-card {
  opacity: 0.12;
  filter: drop-shadow(0 0 12px rgba(0, 102, 255, 0.18));
}

.bg-card-1 {
  top: 6%;
  left: -2%;
  transform: rotate(-16deg);
  animation: floatCard1 8s ease-in-out infinite alternate;
}

.bg-card-2 {
  top: 12%;
  right: -1%;
  transform: rotate(20deg);
  animation: floatCard2 9s ease-in-out infinite alternate;
}

.bg-card-3 {
  top: 36%;
  left: 1.5%;
  transform: rotate(12deg);
  animation: floatCard3 7.5s ease-in-out infinite alternate;
}

.bg-card-4 {
  top: 40%;
  right: 2%;
  transform: rotate(-18deg);
  animation: floatCard1 8.5s ease-in-out infinite alternate;
}

.bg-card-5 {
  top: 68%;
  left: 1%;
  transform: rotate(-14deg);
  animation: floatCard2 8s ease-in-out infinite alternate;
}

.bg-card-6 {
  top: 72%;
  right: 1.5%;
  transform: rotate(16deg);
  animation: floatCard3 9.5s ease-in-out infinite alternate;
}

.bg-card-7 {
  top: 86%;
  left: 10%;
  transform: rotate(24deg);
  animation: floatCard1 9s ease-in-out infinite alternate;
}

.bg-card-8 {
  top: 88%;
  right: 10%;
  transform: rotate(-22deg);
  animation: floatCard2 7.5s ease-in-out infinite alternate;
}

@keyframes floatCard1 {
  0% { transform: translateY(0px) rotate(-16deg); }
  100% { transform: translateY(-16px) rotate(-11deg); }
}

@keyframes floatCard2 {
  0% { transform: translateY(0px) rotate(18deg); }
  100% { transform: translateY(-20px) rotate(13deg); }
}

@keyframes floatCard3 {
  0% { transform: translateY(0px) rotate(10deg); }
  100% { transform: translateY(-18px) rotate(15deg); }
}

/* =========================================================
   GLOBAL WORLD MAP BACKDROP & 'WE ARE ONE' MOTTO
   ========================================================= */
.world-map-backdrop {
  position: absolute;
  top: 55px;
  left: 0;
  width: 100%;
  height: clamp(380px, 58vh, 660px);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0.92;
  display: flex;
  align-items: center;
  justify-content: center;
}

.world-map-svg {
  width: 100%;
  height: 100%;
  max-width: 1300px;
  color: var(--primary-blue);
  filter: drop-shadow(0 0 24px rgba(0, 119, 255, 0.14));
}

.map-pulse-arc {
  animation: arcDash 4.5s linear infinite;
}

@keyframes arcDash {
  to {
    stroke-dashoffset: -36;
  }
}

.map-node-pulse {
  animation: nodeBeacon 2s ease-in-out infinite alternate;
}

@keyframes nodeBeacon {
  0% { transform-origin: center; transform: scale(0.85); opacity: 0.65; }
  100% { transform-origin: center; transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 8px currentColor); }
}

.world-motto-group {
  user-select: none;
}

.world-motto-title {
  font-family: inherit;
  font-size: 26px;
  font-weight: 1000;
  letter-spacing: 12px;
  fill: var(--text-dark);
  opacity: 0.38;
  filter: drop-shadow(0 0 12px var(--primary-glow));
}

.world-motto-sub {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 3.5px;
  fill: var(--primary-blue);
  opacity: 0.55;
}

body.dark-theme .world-motto-title {
  fill: #ffffff;
  opacity: 0.65;
  filter: drop-shadow(0 0 18px var(--primary-glow));
}

body.dark-theme .world-motto-sub {
  fill: var(--primary-blue);
  opacity: 0.85;
}

/* =========================================================
   THEME AMBIENT GRAPHICS: CARS, BARBIE, ENCHANTED TREES
   ========================================================= */
.theme-ambient-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.ambient-car,
.ambient-barbie,
.ambient-tree {
  display: none;
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
  transition: opacity 0.5s ease;
}

/* CAR THEME ACTIVATED: SHOW CARS */
body.car-theme .ambient-car {
  display: block;
}

.car-left {
  top: 22%;
  left: 1.5%;
  width: clamp(100px, 13vw, 175px);
  animation: carFloatLeft 6s ease-in-out infinite alternate;
}

.car-right {
  top: 55%;
  right: 1.5%;
  width: clamp(100px, 13vw, 175px);
  animation: carFloatRight 6.5s ease-in-out infinite alternate;
}

.vector-racecar {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 60, 0, 0.75));
}

.flip-h {
  transform: scaleX(-1);
}

.nitro-exhaust {
  animation: nitroFlicker 0.4s infinite alternate;
}

@keyframes nitroFlicker {
  0% { stroke-width: 3; opacity: 0.7; }
  100% { stroke-width: 6; opacity: 1; filter: drop-shadow(0 0 10px #ff3b00); }
}

@keyframes carFloatLeft {
  0% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(-1deg); }
  100% { transform: translateY(6px) rotate(-5deg); }
}

@keyframes carFloatRight {
  0% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
  100% { transform: translateY(4px) rotate(2deg); }
}

/* BARBIE THEME ACTIVATED: SHOW BARBIE & SPARKLES */
body.barbie-theme .ambient-barbie {
  display: block;
}

.barbie-silhouette-left {
  top: 18%;
  left: 2%;
  width: clamp(90px, 11vw, 150px);
  animation: barbieFloat 7s ease-in-out infinite alternate;
}

.barbie-sparkles-right {
  top: 48%;
  right: 2%;
  width: clamp(80px, 10vw, 130px);
  animation: sparkleFloat 5s ease-in-out infinite alternate;
}

.vector-barbie {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.7));
}

.vector-sparkles {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 105, 180, 0.8));
}

.sparkle-spin {
  transform-origin: 50% 50%;
  animation: sparkleRotate 12s linear infinite;
}

@keyframes sparkleRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes barbieFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-20px) scale(1.04); }
}

@keyframes sparkleFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(15deg); }
}

/* TREE THEME ACTIVATED: SHOW ENCHANTED TREES */
body.tree-theme .ambient-tree {
  display: block;
}

.tree-left {
  top: 20%;
  left: 1%;
  width: clamp(110px, 14vw, 180px);
  animation: treeSwayLeft 8s ease-in-out infinite alternate;
}

.tree-right {
  top: 50%;
  right: 1%;
  width: clamp(110px, 14vw, 180px);
  animation: treeSwayRight 8.5s ease-in-out infinite alternate;
}

.vector-tree {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(16, 185, 129, 0.65));
}

@keyframes treeSwayLeft {
  0% { transform: rotate(-2deg); }
  100% { transform: rotate(3deg); }
}

@keyframes treeSwayRight {
  0% { transform: rotate(2deg); }
  100% { transform: rotate(-3deg); }
}

/* =========================================================
   HOME NAVIGATION (FUNJIO IN MIDDLE)
   ========================================================= */
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 64px;
  padding: 10px clamp(14px, 4vw, 48px);
  background: var(--bg-surface-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 10;
}

.home-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 200px;
}

.home-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-align: center;
}

.home-brand-center {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 1000;
  letter-spacing: 3px;
  color: var(--primary-blue);
  text-shadow: 0 0 20px var(--primary-glow);
  text-decoration: none;
  transition: transform 0.2s, text-shadow 0.2s;
}

.home-brand-center:hover {
  transform: scale(1.05);
  text-shadow: 0 0 28px var(--primary-glow), 0 0 16px var(--accent-glow);
}

.home-brand-center span {
  color: var(--accent-pink);
  margin-left: 2px;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: var(--live-green);
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.8px;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-green);
  box-shadow: 0 0 8px var(--live-green);
  animation: liveGlow 1.4s infinite ease-in-out;
}

@keyframes liveGlow {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
    box-shadow: 0 0 14px var(--live-green);
  }
}

.home-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 320px;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-actions-row {
  display: contents;
}

.points-nav-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.14);
  border: 1px solid rgba(255, 184, 0, 0.4);
  color: var(--gold-amber);
  font-size: 11px;
  font-weight: 950;
}

/* =========================================================
   CENTER STAGE: HERO, BIG INTERACTIVE DEMO & CENTER CTA
   ========================================================= */
.home-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(6px, 1.2vh, 12px) clamp(12px, 2vw, 24px);
  width: 100%;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.home-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  width: 100%;
}

.hero-live-badge-center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.45);
  color: var(--live-green);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.8px;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.18);
}

.speed-tag {
  color: var(--accent-pink);
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid rgba(0, 255, 136, 0.3);
  font-weight: 900;
}

.hero-gamer-heading-center {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  font-weight: 1000;
  letter-spacing: -1px;
  color: var(--text-dark);
  margin: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subline-center {
  color: var(--text-mid);
  font-size: clamp(13px, 1.3vw, 15.5px);
  line-height: 1.5;
  max-width: 580px;
  margin: 0;
}

/* MISSION STREAK BANNER (PLAY 3 MATCHES = +100 BONUS POINTS) */
.home-mission-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 780px;
  background: var(--bg-surface);
  border: 1.5px solid var(--gold-amber);
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.16), 0 0 20px rgba(255, 184, 0, 0.2);
  animation: pulseGoldGlow 3s infinite alternate;
}

@keyframes pulseGoldGlow {
  0% { box-shadow: 0 6px 18px rgba(217, 119, 6, 0.12), 0 0 14px rgba(255, 184, 0, 0.15); }
  100% { box-shadow: 0 10px 28px rgba(217, 119, 6, 0.22), 0 0 26px rgba(255, 184, 0, 0.35); }
}

.mission-icon {
  font-size: 26px;
}

.mission-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--text-dark);
  flex: 1 1 240px;
}

.mission-info strong {
  font-weight: 950;
  color: var(--gold-amber);
  letter-spacing: 0.5px;
}

.gold-text {
  color: var(--gold-amber);
  font-weight: 1000;
}

.mission-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

/* =========================================================
   BIG CENTERED INTERACTIVE DEMO ARENA (NO CLIPPING)
   ========================================================= */
.home-demo-center-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: visible; /* Prevent any card cutting */
}

.demo-arena-card-big {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-neon);
  border-radius: 28px;
  padding: 22px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 32px var(--primary-glow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible !important; /* Critical: No card cut */
}

.demo-arena-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.demo-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 950;
  color: var(--primary-blue);
  letter-spacing: 0.8px;
}

.demo-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-blue);
  box-shadow: 0 0 10px var(--primary-blue);
  animation: liveGlow 1.2s infinite;
}

.demo-reset-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--text-mid);
  font-size: 10.5px;
  font-weight: 850;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-reset-btn:hover {
  color: #ffffff;
  border-color: var(--primary-blue);
  background: var(--bg-chip);
}

.demo-table-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
  padding: 6px 0;
}

.demo-table-zone-5cards {
  gap: clamp(20px, 4.5vw, 48px);
}

.demo-progress-slot,
.demo-target-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.demo-progress-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.progress-pip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 1000;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  color: var(--text-mid);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-pip.pip-active {
  background: var(--btn-primary-grad);
  border-color: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 0 14px var(--primary-blue);
  transform: scale(1.18);
}

.progress-pip.pip-completed {
  background: var(--live-green);
  border-color: var(--live-green);
  color: #000000;
  box-shadow: 0 0 12px var(--live-green);
  transform: scale(1);
}

.demo-slot-label {
  font-size: 9.5px;
  font-weight: 950;
  letter-spacing: 0.8px;
  color: var(--text-light);
}

.demo-center-card-big {
  width: clamp(86px, 12vw, 108px);
  aspect-ratio: 5 / 7;
  border-radius: 14px;
  background: var(--card-surface);
  border: 2.5px solid var(--border-light);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.demo-center-card-big:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.demo-center-card-big img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 11px;
}

.demo-feedback-big {
  text-align: center;
  font-size: 13px;
  font-weight: 950;
  color: var(--primary-blue);
  min-height: 22px;
  letter-spacing: 0.3px;
}

.demo-hand-wrapper-big {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 14px 18px;
  overflow: visible;
}

.demo-hand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 900;
  color: var(--text-mid);
}

.demo-match-hint {
  color: var(--accent-pink);
  font-weight: 850;
}

.demo-cards-row-big {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 135px;
  flex-wrap: nowrap;
  overflow: visible; /* Prevents card cutoff */
  padding: 14px 6px 6px;
}

.demo-card-item {
  width: clamp(66px, 10vw, 86px);
  aspect-ratio: 5 / 7;
  border-radius: 12px;
  background: var(--card-surface);
  border: 2px solid var(--border-light);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.demo-card-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.demo-card-item.playable-demo {
  border-color: var(--primary-blue);
  box-shadow: var(--playable-glow);
  transform: translateY(-8px);
  animation: demoPlayableGlow 1.8s infinite ease-in-out;
}

@keyframes demoPlayableGlow {
  0%, 100% {
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.75), 0 0 0 2px rgba(0, 229, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 26px rgba(0, 229, 255, 1), 0 0 0 3px rgba(0, 229, 255, 0.85);
  }
}

.demo-card-item.playable-demo:hover {
  animation: none;
  transform: translateY(-14px) scale(1.08);
  border-color: var(--accent-pink);
  box-shadow: var(--playable-hover-glow);
}

.demo-card-item.unplayable-demo {
  opacity: 0.45;
  filter: grayscale(40%);
  cursor: not-allowed;
}

/* MINI VICTORY OVERLAY */
.demo-victory-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 28, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 28px;
  z-index: 25;
  animation: fadeIn 0.25s ease;
}

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

.demo-victory-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.victory-trophy {
  font-size: 44px;
  animation: trophyBounce 0.6s ease;
}

@keyframes trophyBounce {
  0% { transform: scale(0.3) rotate(-15deg); }
  60% { transform: scale(1.15) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.demo-victory-content h3 {
  font-size: 22px;
  font-weight: 1000;
  color: var(--primary-blue);
  letter-spacing: 0.5px;
}

.demo-victory-content p {
  color: var(--text-mid);
  font-size: 13px;
  max-width: 320px;
  line-height: 1.4;
}

.victory-launch-btn {
  margin-top: 6px;
  font-size: 14px !important;
  font-weight: 950 !important;
  width: 100%;
  justify-content: center;
}

.demo-replay-link {
  background: transparent;
  border: 0;
  color: var(--text-light);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 4px;
}

/* =========================================================
   PLAY BUTTON IN CENTER DOWN SIDE OF DEMO
   ========================================================= */
.home-center-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 6px;
  margin-bottom: 12px;
}

.gamer-cta-giant {
  width: min(460px, 100%);
  padding: 16px 28px;
  font-size: 16px;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(0, 119, 255, 0.45), 0 0 28px var(--primary-glow);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  cursor: pointer;
}

.gamer-cta-giant:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 48px rgba(0, 119, 255, 0.6), 0 0 38px var(--primary-glow);
}

.home-sub-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.home-ad-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px dashed var(--border-light);
  width: fit-content;
}

.ad-tag {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--gold-amber);
  color: #000000;
  font-size: 8.5px;
  font-weight: 950;
}

.ad-caption {
  font-size: 10.5px;
  color: var(--text-light);
}

.ad-quick-btn {
  padding: 4px 8px;
  border-radius: 8px;
  border: 0;
  background: var(--btn-primary-grad);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
  cursor: pointer;
}

/* =========================================================
   HOME RULES SECTION (VISIBLE ON HOME PAGE, NO BUTTON)
   ========================================================= */
.home-rules-section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto clamp(24px, 4vh, 48px);
  padding: 0 clamp(16px, 4vw, 48px);
}

.rules-section-container {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-light);
  border-radius: 28px;
  padding: clamp(24px, 3.5vw, 36px) clamp(18px, 3.5vw, 32px);
  box-shadow: var(--shadow-card), 0 0 32px rgba(0, 217, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rules-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rules-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid var(--border-neon);
  color: var(--primary-blue);
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 1px;
}

.rules-main-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 1000;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  margin: 0;
}

.rules-subtitle {
  color: var(--text-mid);
  font-size: clamp(12.5px, 1.2vw, 14px);
  max-width: 580px;
  line-height: 1.5;
  margin: 0;
}

.rules-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.rules-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(40, 50, 75, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rules-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-blue);
  box-shadow: 0 12px 28px rgba(0, 119, 255, 0.16), 0 0 16px var(--primary-glow);
}

.rules-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
  min-height: 85px;
}

.rules-mini-card {
  width: 52px;
  aspect-ratio: 5 / 7;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}

.rules-feature-card:hover .rules-mini-card {
  transform: scale(1.06);
}

.rules-flow-icon {
  font-size: 16px;
  font-weight: 1000;
  color: var(--primary-blue);
}

.rules-tag {
  display: inline-block;
  width: fit-content;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 999px;
}

.tag-twist {
  background: rgba(255, 31, 113, 0.18);
  border: 1px solid rgba(255, 31, 113, 0.45);
  color: var(--accent-pink);
}

.tag-color {
  background: rgba(0, 217, 255, 0.16);
  border: 1px solid rgba(0, 217, 255, 0.45);
  color: var(--primary-blue);
}

.tag-number {
  background: rgba(255, 184, 0, 0.16);
  border: 1px solid rgba(255, 184, 0, 0.45);
  color: var(--gold-amber);
}

.tag-wild {
  background: rgba(184, 0, 255, 0.18);
  border: 1px solid rgba(184, 0, 255, 0.45);
  color: #d16eff;
}

.rules-feature-card h3 {
  font-size: 16px;
  font-weight: 950;
  color: var(--text-dark);
  margin: 0;
}

.rules-feature-card p {
  color: var(--text-mid);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.rules-footer-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.rule-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
}

.rule-stat-item .stat-icon {
  font-size: 22px;
}

.rule-stat-item strong {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: var(--text-dark);
}

.rule-stat-item small {
  display: block;
  font-size: 10px;
  color: var(--text-light);
}

/* =========================================================
   ENDLESS CAR RUNNER MINI-GAME (NITRO HIGHWAY)
   ========================================================= */
.home-car-game-section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto clamp(28px, 4vh, 56px);
  padding: 0 clamp(16px, 4vw, 48px);
  position: relative;
  z-index: 2;
}

.car-game-arcade-box {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--border-neon);
  border-radius: 28px;
  padding: clamp(20px, 3.5vw, 36px) clamp(16px, 3vw, 32px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 36px var(--primary-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.car-arcade-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.arcade-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arcade-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 59, 0, 0.16);
  border: 1px solid rgba(255, 59, 0, 0.5);
  color: #ff5500;
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.8px;
  width: fit-content;
}

.arcade-title-group h2 {
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 1000;
  margin: 0;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.arcade-title-group p {
  color: var(--text-mid);
  font-size: clamp(12px, 1.2vw, 13.5px);
  margin: 0;
  max-width: 520px;
}

.arcade-stats-hud {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.arcade-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  min-width: 82px;
}

.arcade-stat-pill .stat-label {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.8px;
  color: var(--text-light);
}

.arcade-stat-pill span:last-child {
  font-size: 16px;
  font-weight: 1000;
  color: var(--primary-blue);
}

.car-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 400 / 480;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-neon);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.6);
  background: #0d111a;
}

#carMiniGameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.car-game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 22, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
  transition: opacity 0.25s ease;
}

.car-game-overlay.hidden {
  display: none !important;
}

.overlay-modal {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 320px;
}

.arcade-logo-car {
  font-size: 48px;
  animation: carBounce 0.8s infinite alternate ease-in-out;
}

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

.overlay-modal h3 {
  font-size: 24px;
  font-weight: 1000;
  color: #ff3b00;
  margin: 0;
  text-shadow: 0 0 16px rgba(255, 59, 0, 0.6);
  letter-spacing: 1px;
}

.overlay-modal p {
  color: var(--text-mid);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.car-start-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  margin-top: 4px;
}

.car-keyboard-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.car-touch-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 420px;
}

.steer-btn {
  flex: 1;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border-light);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.steer-btn:active {
  background: var(--btn-primary-grad);
  color: #ffffff;
  border-color: var(--primary-blue);
  transform: scale(0.96);
  box-shadow: 0 0 18px var(--primary-glow);
}

.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 46px;
  padding: 8px clamp(14px, 4vw, 48px);
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface-nav);
  color: var(--text-mid);
  font-size: 10.5px;
  font-weight: 800;
}

.home-footer button {
  border: 0;
  color: var(--primary-blue);
  background: transparent;
  font-size: 10.5px;
  font-weight: 850;
  cursor: pointer;
}

.home-footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.home-footer-version {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--primary-blue);
  background: rgba(0, 140, 255, 0.08);
  border: 1px solid var(--border-light);
  line-height: 1;
}

.home-footer-version::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--live-green);
  box-shadow: 0 0 6px var(--live-green);
}

/* =========================================================
   ARENA TOP ZONE & MAIN GAMEPLAY
   ========================================================= */
.game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--bg-arena-grad);
  padding-bottom: env(safe-area-inset-bottom, 4px);
}

.top-bar {
  flex: 0 0 auto;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 14px;
  background: var(--bg-surface-nav);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  z-index: 20;
}

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

.match-home-btn {
  background: var(--btn-primary-grad) !important;
  color: #ffffff !important;
  border: 0 !important;
  padding: 6px 11px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  cursor: pointer;
}

.logo {
  font-size: clamp(16px, 2.8vw, 23px);
  font-weight: 950;
  letter-spacing: 2px;
  color: var(--primary-blue);
  cursor: pointer;
  white-space: nowrap;
}

.country-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-chip);
  border: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 900;
  color: var(--primary-blue);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.points-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.14);
  border: 1px solid rgba(255, 184, 0, 0.45);
  color: var(--gold-amber);
  font-size: 11.5px;
  font-weight: 950;
  white-space: nowrap;
}

.speed-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff1f71, #be123c);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: var(--live-green);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--live-green);
  box-shadow: 0 0 8px var(--live-green);
  animation: liveGlow 1.2s infinite;
}

.header-link {
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 6px 9px;
  color: var(--text-dark);
  background: var(--bg-surface);
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.header-link:hover {
  border-color: var(--primary-blue);
  transform: translateY(-1px);
}

.arena-top-zone {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 14px 2px;
  z-index: 12;
}

.arena-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.country-match-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-dark);
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

.country-match-banner .versus {
  color: #ffffff;
  font-size: 9px;
  font-weight: 950;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent-pink);
}

.chest-mini-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 31, 113, 0.12);
  border: 1px solid rgba(255, 31, 113, 0.35);
  color: var(--accent-pink);
  font-size: 10.5px;
  font-weight: 850;
}

.multiplayer-opponents-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.mp-opponent-seat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 13px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, border-color 0.2s;
  min-width: 125px;
}

.mp-opponent-seat.active-turn {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(255, 31, 113, 0.25);
  transform: translateY(-2px);
}

.mp-seat-flag { font-size: 20px; }

.mp-seat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mp-seat-name {
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.mp-seat-cards {
  font-size: 10px;
  color: var(--text-mid);
  font-weight: 800;
}

.mp-mini-fan {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 4px;
}

.mp-mini-card {
  width: 20px;
  height: 28px;
  object-fit: contain;
  border-radius: 3px;
  margin-left: -12px;
  border: 1px solid var(--border-light);
  background: var(--card-surface);
}

.mp-mini-card:first-child { margin-left: 0; }

.mp-rank-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--gold-amber);
  font-size: 10px;
  font-weight: 950;
}

/* TABLE AREA */
.table-area {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px 14px;
  z-index: 8;
  min-height: 0;
}

.game-message {
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 2px solid var(--primary-blue);
  font-size: clamp(11px, 1.8vw, 13.5px);
  font-weight: 950;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary-blue);
  box-shadow: var(--shadow-soft);
  text-align: center;
  max-width: 95vw;
}

.center-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4.5vw, 46px);
}

.deck-wrapper,
.play-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pile-label {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.9px;
  color: var(--text-mid);
}

.deck-card,
.center-card-img {
  width: clamp(80px, 14vh, 128px) !important;
  height: auto !important;
  aspect-ratio: 5 / 7;
  object-fit: contain !important;
  border-radius: 10px;
  background: var(--card-surface);
  padding: 3px;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.deck-card:hover { transform: scale(1.04); }

/* PLAYER BOTTOM AREA */
.player-area {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px 8px;
  z-index: 15;
  overflow: visible !important;
}

.player-hud {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 4px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  padding: 5px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  font-size: 11.5px;
}

.player-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-chip);
  border: 1px solid var(--border-light);
  font-size: 15px;
}

.card-count-sub {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 700;
}

.suggestion-legend {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-chip);
  border: 1px solid var(--border-light);
  color: var(--primary-blue);
  font-size: 10px;
  font-weight: 900;
}

.turn-timer {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--accent-pink);
  color: var(--accent-pink);
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 4px 12px rgba(255, 31, 113, 0.25);
}

.card-img {
  width: clamp(66px, 8.8vw, 104px);
  height: auto;
  aspect-ratio: 5 / 7;
  border-radius: 9px;
  object-fit: contain !important;
  background: var(--card-surface);
  padding: 2px;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
  display: block;
  flex-shrink: 0;
}

.player-hand {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  padding: 28px 12px 4px;
  overflow: visible !important;
}

.player-hand .player-card {
  margin-left: var(--dynamic-overlap, -8px);
}

.player-hand .player-card:first-child {
  margin-left: 0 !important;
}

.player-card.playable {
  transform: translateY(-16px);
  border: 2.5px solid var(--primary-blue);
  box-shadow: var(--playable-glow);
  cursor: pointer;
  z-index: 6;
}

.player-card.playable:hover {
  transform: translateY(-24px) scale(1.06);
  border-color: var(--accent-pink);
  box-shadow: var(--playable-hover-glow);
  z-index: 30;
}

.player-card.unplayable {
  opacity: 0.48;
  filter: grayscale(35%);
}

/* =========================================================
   POPUPS & MODALS
   ========================================================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(4, 9, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}

.popup-box {
  width: min(440px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 22px 20px;
  text-align: center;
  border-radius: 22px;
  background: var(--bg-surface);
  color: var(--text-dark);
  border: 1.5px solid var(--border-neon);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.theme-shop-box {
  width: min(680px, 100%);
  position: relative;
}

.theme-shop-balance {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 900;
}

.theme-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
}

.theme-shop-card {
  border-radius: 16px;
  border: 2px solid var(--border-light);
  background: var(--bg-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.theme-shop-card.active-theme-card {
  border-color: var(--live-green);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.25);
}

.theme-preview {
  height: 78px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.light-preview {
  background: radial-gradient(circle at 75% 20%, rgba(255, 0, 102, 0.22), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 119, 255, 0.25), transparent 50%),
    linear-gradient(135deg, #ffffff, #faf5ec);
  border-bottom: 1px solid var(--border-light);
}
.dark-preview { background: linear-gradient(135deg, #040814, #0d1b30); }
.car-preview { background: linear-gradient(135deg, #2b0c08, #ff3b00); }
.barbie-preview { background: linear-gradient(135deg, #3d0a2d, #ff0f87); }
.tree-preview { background: linear-gradient(135deg, #092317, #10b981); }

.theme-preview-icon { font-size: 28px; }

.theme-preview-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
}

.theme-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.theme-card-body h3 { font-size: 14px; font-weight: 950; }
.theme-card-body p { font-size: 11px; color: var(--text-mid); line-height: 1.35; flex: 1; }

.theme-action-btn {
  width: 100%;
  margin-top: 6px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 950;
  cursor: pointer;
  background: var(--btn-primary-grad);
  color: #ffffff;
}

.theme-action-btn.is-equipped {
  background: var(--live-green);
  color: #000000;
}

.theme-action-btn.buy-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.theme-shop-feedback {
  min-height: 20px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 900;
  color: var(--primary-blue);
}

.popup-badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.14);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: var(--live-green);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.2px;
}

.popup-title {
  margin-bottom: 6px;
  color: var(--primary-blue);
  font-size: clamp(20px, 3.8vw, 25px);
  font-weight: 950;
}

.popup-subtitle {
  margin-bottom: 12px;
  color: var(--text-mid);
  font-size: 12.5px;
  line-height: 1.45;
}

.input-label {
  display: block;
  text-align: left;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--text-mid);
  margin: 9px 0 4px;
}

.name-input,
.country-popup-box select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-soft);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.player-count-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 6px 0 12px;
}

.pcount-btn {
  padding: 9px 4px !important;
  border-radius: 10px !important;
  border: 1.5px solid var(--border-light) !important;
  background: var(--bg-soft) !important;
  color: var(--text-dark) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  cursor: pointer;
}

.pcount-btn.active {
  background: var(--btn-primary-grad) !important;
  color: #ffffff !important;
  border-color: var(--primary-blue) !important;
}

.points-rules-preview {
  display: flex;
  justify-content: space-around;
  padding: 9px;
  margin: 10px 0 14px;
  border-radius: 11px;
  background: var(--bg-chip);
  border: 1px solid var(--border-light);
  font-size: 11.5px;
}

.country-popup-box > button,
.result-box button,
.primary-page-btn {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--btn-primary-grad);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.28);
}

.plus4-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.plus4-choice-btn {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 950;
  color: #ffffff;
  cursor: pointer;
}

.plus4-choice-btn.police-choice { background: linear-gradient(135deg, #0066ff, #0044bb); }
.plus4-choice-btn.chor-choice,
.plus4-choice-btn.robber-choice { background: linear-gradient(135deg, #ff1f71, #be123c); }
.plus4-choice-btn.any-choice { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* TUTORIAL BOX */
.poro-tutorial-box {
  width: min(590px, 100%);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  padding: 20px;
  border: 1.5px solid var(--border-neon);
  border-radius: 22px;
  background: var(--bg-surface);
  color: var(--text-dark);
  text-align: center;
}

.tutorial-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.poro-tutorial-header h2 {
  margin: 0;
  color: var(--primary-blue);
  font-size: clamp(16px, 3.2vw, 22px);
  font-weight: 950;
}

.poro-tutorial-header p {
  margin: 0;
  color: var(--text-mid);
  font-size: 12.5px;
  text-align: left;
}

.tutorial-skip-play-btn {
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #00b862, #059669);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.tutorial-progress { margin: 10px 0; text-align: left; }

#tutorialStepCount {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-blue);
  font-size: 10.5px;
  font-weight: 900;
}

.tutorial-progress-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-soft);
}

.tutorial-progress-fill {
  width: 12.5%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-pink));
  transition: width 0.25s ease;
}

.tutorial-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--bg-soft);
}

.tutorial-card-area {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 6px;
}

.tutorial-card-example img {
  width: auto !important;
  height: clamp(102px, 19vh, 150px) !important;
  aspect-ratio: 5 / 7;
  object-fit: contain !important;
  border-radius: 10px;
  padding: 4px;
  background: var(--card-surface);
  border: 2px solid var(--primary-blue);
}

.tutorial-match-symbol {
  color: var(--accent-pink);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 950;
}

.tutorial-hint {
  margin-top: 4px !important;
  color: var(--primary-blue) !important;
  font-size: 12px !important;
  font-weight: 850;
}

.tutorial-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.tutorial-nav-btn {
  min-width: 95px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-dark);
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
}

.tutorial-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.tutorial-skip-bottom-btn {
  border-color: var(--live-green);
  color: var(--live-green);
  background: rgba(0, 255, 136, 0.1);
}

.tutorial-next-btn,
.tutorial-start-btn {
  border: 0;
  background: var(--btn-primary-grad);
  color: #ffffff;
}

/* RESULTS POPUP */
.result-box {
  position: relative;
  width: min(430px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 18px;
  text-align: center;
  border-radius: 22px;
  background: var(--bg-surface);
  color: var(--text-dark);
  border: 1.5px solid var(--border-neon);
}

.reward-badge {
  display: inline-block;
  margin: 4px 0;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  background: rgba(0, 255, 136, 0.15);
  color: var(--live-green);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.reward-badge.is-loss {
  background: rgba(255, 31, 113, 0.14);
  color: var(--accent-pink);
  border-color: rgba(255, 31, 113, 0.4);
}

.result-message {
  margin: 3px 0;
  color: var(--text-mid);
  font-size: 12.5px;
}

.patriotic-quote {
  margin: 2px 0 4px;
  color: var(--primary-blue);
  font-size: 11.5px;
  font-weight: 850;
}

.addictive-result-box {
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 12px;
  background: var(--bg-chip);
  border: 1px dashed var(--border-light);
  font-size: 11px;
}

/* GRAND WINNER CHAMPION SPOTLIGHT - STRICTLY CENTERED IN MIDDLE */
.winner-champion-spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 10px auto 14px;
  padding: 14px 18px;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.16) 0%, rgba(10, 16, 28, 0.88) 75%);
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.25), inset 0 0 16px rgba(0, 229, 255, 0.12);
  width: 100%;
  box-sizing: border-box;
}

.winner-crown-halo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}

.winner-crown-icon {
  font-size: 34px;
  filter: drop-shadow(0 0 14px #ffb800);
  animation: trophyBounce 2s infinite ease-in-out;
}

.winner-flag-badge {
  font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.winner-title-label {
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 2.2px;
  color: #ffb800;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.6);
  margin-top: 3px;
}

.winner-player-name-middle {
  font-size: clamp(23px, 6vw, 32px);
  font-weight: 1000;
  color: #ffffff;
  text-align: center;
  margin: 4px auto 6px;
  letter-spacing: 1px;
  text-shadow: 0 0 16px #00e5ff, 0 0 32px #00e5ff, 0 2px 4px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
  word-break: break-word;
}

.winner-tag-subtitle {
  font-size: 12.5px;
  font-weight: 850;
  color: #00ff88;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  letter-spacing: 0.4px;
}

.podium-section-label {
  font-size: 9.5px;
  font-weight: 950;
  letter-spacing: 1.5px;
  color: var(--text-mid);
  text-align: center;
  text-transform: uppercase;
  margin: 10px auto 4px;
}

.winners-podium {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 6px auto 10px;
  text-align: center;
  width: 100%;
}

.podium-rank-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  width: 100%;
  max-width: 330px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.podium-rank-card.rank-1 {
  border-color: rgba(255, 184, 0, 0.65);
  background: rgba(255, 184, 0, 0.14);
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.25);
}

.podium-rank-card.rank-2 {
  border-color: rgba(203, 213, 225, 0.45);
  background: rgba(203, 213, 225, 0.08);
}

.podium-rank-card.rank-3 {
  border-color: rgba(217, 119, 6, 0.45);
  background: rgba(217, 119, 6, 0.08);
}

.podium-rank-card.is-you {
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.podium-medal {
  font-size: 19px;
  flex-shrink: 0;
}

.podium-flag {
  font-size: 17px;
  flex-shrink: 0;
}

.podium-name {
  font-size: 13.5px;
  font-weight: 950;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.3px;
}

.podium-tag {
  font-size: 9px;
  font-weight: 1000;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.2);
  color: #00e5ff;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.ad-reward-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
}

.result-sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.result-home-btn,
.result-alt-btn {
  background: var(--bg-soft) !important;
  color: var(--text-dark) !important;
  border: 1px solid var(--border-light) !important;
  font-size: 11.5px !important;
  padding: 9px !important;
}

.celebration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -30px;
  background: var(--confetti-color);
  animation: confettiFall var(--fall-time) linear var(--delay) forwards;
}

@keyframes confettiFall {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); }
  100% { transform: translate3d(var(--drift), 550px, 0) rotate(720deg); }
}

/* COMPETITION MODAL */
.info-page {
  position: relative;
  width: min(850px, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  padding: 22px;
  border: 1.5px solid var(--border-neon);
  border-radius: 22px;
  color: var(--text-dark);
  background: var(--bg-surface);
}

.page-close {
  position: sticky;
  float: right;
  top: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-dark);
  font-size: 20px;
  cursor: pointer;
}

.page-eyebrow {
  color: var(--primary-blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.4px;
  margin-bottom: 5px;
}

.page-subtitle {
  color: var(--text-mid);
  font-size: 12.5px;
  margin: 5px 0 14px;
}

.competition-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 16px;
}

.stat-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.country-leaderboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.country-row {
  display: grid;
  grid-template-columns: 26px 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 11px;
  background: var(--bg-soft);
}

.country-row.is-selected {
  border-color: var(--primary-blue);
  background: var(--bg-chip);
}

.country-active-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--live-green);
  font-size: 10px;
}

.mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-green);
}

/* =========================================================
   FUNJIO 3D GAMES UNIVERSE & MODERN GAMER UI SUITE
   - Multi-Game Themed Dynamic Backdrop (Racing, Zombie, Gun, Castle, Pool, Dress, Pets)
   - Centered Brand Hero Spotlight with Glowing Halo
   - Official Main Game Flagship Card Showcase (Funjio ~60s Card Battle)
   - 50+ Trending 3D & Multiplayer Games with Segregation Filter
   - Multiplayer Login & Authentication Modal
   - 3D Games Theater Cabinet Player (Points isolated from Main Game)
   ========================================================= */

/* --- MULTI-GAME THEME AMBIENT BACKDROP --- */
.multi-game-theme-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ambient-theme-item {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

/* 1. Tactical Crosshair */
.ambient-crosshair {
  width: 90px;
  height: 90px;
  top: 12%;
  left: 6%;
  opacity: 0.35;
  animation: spinCrosshair 20s infinite linear;
}

@keyframes spinCrosshair {
  0% { transform: rotate(0deg) scale(0.95); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(0.95); }
}

/* 2. Zombie Hazard */
.ambient-zombie {
  width: 85px;
  height: 85px;
  top: 18%;
  right: 5%;
  opacity: 0.38;
  animation: pulseHazard 3.5s infinite ease-in-out;
}

@keyframes pulseHazard {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 4px rgba(255, 184, 0, 0.4)); }
  50% { transform: translateY(-8px) scale(1.06); filter: drop-shadow(0 0 16px rgba(255, 50, 0, 0.6)); }
}

/* 3. Castle Rampart */
.ambient-castle {
  width: 100px;
  height: 100px;
  bottom: 22%;
  left: 3%;
  opacity: 0.28;
  animation: floatCastle 6s infinite ease-in-out;
}

@keyframes floatCastle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 4. Pool 8-Ball & 3D Dice */
.ambient-board-items {
  top: 36%;
  right: 3%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0.45;
  animation: floatDice 5s infinite ease-in-out alternate;
}

.ambient-8ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #475569, #090d16 75%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), inset -2px -2px 6px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pool-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  font-weight: 1000;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ambient-dice {
  font-size: 32px;
  color: #00e5ff;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.8);
  transform: rotate(18deg);
}

/* 5. Save Pets Floating Icons */
.ambient-pets {
  bottom: 12%;
  left: 20%;
  display: flex;
  gap: 8px;
  font-size: 28px;
  opacity: 0.4;
  animation: floatPets 4s infinite ease-in-out alternate;
}

@keyframes floatPets {
  0% { transform: translateY(0) rotate(-6deg); }
  100% { transform: translateY(-12px) rotate(6deg); }
}

/* 6. Rhythm Notes & Candy */
.ambient-music-candy {
  bottom: 14%;
  right: 18%;
  display: flex;
  gap: 12px;
  font-size: 26px;
  opacity: 0.45;
  animation: floatCandy 4.5s infinite ease-in-out alternate;
}

@keyframes floatCandy {
  0% { transform: translateY(0) scale(0.95); }
  100% { transform: translateY(-14px) scale(1.1); filter: drop-shadow(0 0 10px #ff007f); }
}

/* --- CENTERED BRAND HERO SPOTLIGHT --- */
.hero-brand-spotlight {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 6px auto 14px;
}

.brand-glow-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 90vw);
  height: 110px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.28) 0%, rgba(255, 31, 113, 0.18) 50%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: haloPulse 4s infinite alternate ease-in-out;
}

@keyframes haloPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.brand-hero-title {
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 1000;
  letter-spacing: 5px;
  margin: 0;
  line-height: 1;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #00f0ff 0%, #0077ff 45%, #ff0077 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.45));
}

.brand-hero-subtitle-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.35);
  backdrop-filter: blur(10px);
  color: var(--text-dark);
  font-size: clamp(10.5px, 1.2vw, 12.5px);
  font-weight: 950;
  letter-spacing: 1.2px;
}

.brand-sparkle {
  color: #ffb800;
  margin-left: 3px;
  display: inline-block;
  animation: sparkleRotate 3s infinite linear;
}

@keyframes sparkleRotate {
  0% { transform: rotate(0deg) scale(0.9); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(0.9); }
}

/* --- GAMER PROFILE & 3D CHIP BUTTONS --- */
.profile-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(0, 255, 136, 0.45) !important;
  background: rgba(0, 255, 136, 0.1) !important;
  color: var(--live-green) !important;
  font-weight: 900 !important;
}

.gamer-chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  font-size: 11.5px;
  font-weight: 950;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gamer-chip-pill:hover {
  background: rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}

.coins-3d-pill {
  background: rgba(255, 184, 0, 0.16) !important;
  border: 1.5px solid rgba(255, 184, 0, 0.55) !important;
  color: #ffb800 !important;
  font-weight: 1000 !important;
}

.points-ref-pill {
  background: rgba(139, 92, 246, 0.12) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  color: #c084fc !important;
  font-size: 11px !important;
}

.gamer-btn-pulse {
  animation: btnPulseGlow 2.5s infinite alternate ease-in-out;
}

@keyframes btnPulseGlow {
  0% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
  100% { box-shadow: 0 0 24px rgba(0, 229, 255, 0.8), 0 0 16px rgba(255, 31, 113, 0.6); }
}

/* =========================================================
   ⭐ MAIN GAME FLAGSHIP CARD SHOWCASE STYLING ⭐
   ========================================================= */
.main-game-spotlight-card {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 8px auto 20px;
  border-radius: 28px;
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid transparent;
  background-clip: padding-box;
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22), 0 0 35px rgba(255, 184, 0, 0.2);
  overflow: hidden;
  z-index: 10;
}

/* Glowing Holographic Animated Golden Border */
.spotlight-gold-border-glow {
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffb800, #ff0077, #00f0ff, #ffb800);
  background-size: 300% 300%;
  z-index: -1;
  animation: borderGradMove 6s linear infinite;
}

@keyframes borderGradMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.spotlight-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.2), rgba(255, 0, 110, 0.2));
  border: 1px solid rgba(255, 184, 0, 0.6);
  color: var(--gold-amber);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.spotlight-star-icon {
  font-size: 15px;
}

.spotlight-pill-tag {
  background: #ffb800;
  color: #111111;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 1000;
}

.spotlight-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 42px);
}

.spotlight-left-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-flagship-label {
  font-size: 11.5px;
  font-weight: 950;
  color: var(--primary-blue);
  letter-spacing: 1.2px;
}

.spotlight-main-heading {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 1000;
  margin: 0;
  line-height: 1.15;
  color: var(--text-dark);
}

.spotlight-description {
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
}

.spotlight-features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 8px 0;
}

.spotlight-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 119, 255, 0.08);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 12px;
}

.spotlight-feat-item .feat-icon {
  font-size: 22px;
}

.spotlight-feat-item div {
  display: flex;
  flex-direction: column;
}

.spotlight-feat-item strong {
  font-size: 12px;
  color: var(--text-dark);
}

.spotlight-feat-item small {
  font-size: 9.5px;
  color: var(--text-light);
}

.spotlight-cta-buttons {
  margin-top: 10px;
}

.spotlight-play-action {
  width: 100%;
  padding: 16px 24px !important;
  font-size: 15px !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0, 119, 255, 0.45), 0 0 25px rgba(255, 0, 110, 0.35) !important;
}

/* 3D Fan of Cards Visual Showcase */
.spotlight-cards-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cards-fan-stage {
  position: relative;
  width: 280px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}

.fan-card-wrapper {
  position: absolute;
  width: 90px;
  aspect-ratio: 2.5 / 3.5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.fan-card-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-glow-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

/* Fan positioning */
.fan-card-1 {
  transform: translateX(-80px) translateY(16px) rotate(-18deg);
  z-index: 1;
}

.fan-card-2 {
  transform: translateX(-40px) translateY(6px) rotate(-8deg);
  z-index: 2;
}

.fan-card-center {
  transform: translateX(0) translateY(-10px) rotate(0deg) scale(1.14);
  z-index: 5;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 0, 110, 0.6);
  border: 2px solid #ff0077;
}

.center-card-badge {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff0077;
  color: #ffffff;
  font-size: 8px;
  font-weight: 1000;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.fan-card-3 {
  transform: translateX(40px) translateY(6px) rotate(8deg);
  z-index: 2;
}

.fan-card-4 {
  transform: translateX(80px) translateY(16px) rotate(18deg);
  z-index: 1;
}

.cards-fan-stage:hover .fan-card-1 { transform: translateX(-105px) translateY(22px) rotate(-26deg); }
.cards-fan-stage:hover .fan-card-2 { transform: translateX(-55px) translateY(8px) rotate(-12deg); }
.cards-fan-stage:hover .fan-card-center { transform: translateX(0) translateY(-22px) scale(1.22); }
.cards-fan-stage:hover .fan-card-3 { transform: translateX(55px) translateY(8px) rotate(12deg); }
.cards-fan-stage:hover .fan-card-4 { transform: translateX(105px) translateY(22px) rotate(26deg); }

.spotlight-points-counter-badge {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.12);
  border: 1px dashed rgba(255, 184, 0, 0.5);
  font-size: 11px;
}

.spotlight-points-counter-badge span {
  color: var(--text-mid);
  font-weight: 850;
}

.spotlight-points-counter-badge strong {
  color: #ffb800;
  font-weight: 1000;
}

/* =========================================================
   50+ 3D GAMES UNIVERSE PAGE STYLING
   ========================================================= */
.games-hub-page {
  position: fixed;
  inset: 0;
  z-index: 85;
  overflow-y: auto;
  color: var(--text-dark);
  background: var(--bg-home-grad);
  display: flex;
  flex-direction: column;
}

.disclaimer-highlight {
  display: block;
  margin-top: 6px;
  color: #ffb800;
  font-size: 12px;
}

/* Live Search Input */
.games-hub-search-bar {
  width: min(580px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.games-search-box {
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--border-light);
  color: var(--text-dark);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
  outline: none;
}

.games-search-box:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 20px var(--primary-glow);
}

.games-count-badge {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 900;
}

/* Filter bar & pills */
.arcade-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.arcade-filter-pill {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--text-mid);
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.arcade-filter-pill:hover,
.arcade-filter-pill.active {
  background: var(--btn-primary-grad);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 16px var(--primary-glow);
  transform: translateY(-2px);
}

.arcade-filter-pill.pill-multiplayer {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.08);
}

/* 50 Games Grid */
.games-universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.arcade-card.card-3d {
  position: relative;
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-light);
  border-radius: 22px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.arcade-card.card-3d:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--primary-blue);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16), 0 0 24px var(--primary-glow);
}

.card-badges-row {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
}

.arcade-card-badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 1000;
  letter-spacing: 0.6px;
}

.badge-3d {
  background: linear-gradient(135deg, #00f0ff, #0077ff);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.badge-mp {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.6);
  color: #c084fc;
}

.badge-hot {
  background: rgba(255, 59, 0, 0.18);
  border: 1px solid rgba(255, 59, 0, 0.5);
  color: #ff3b00;
}

.badge-new {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #10b981;
}

.badge-brain {
  background: rgba(0, 229, 255, 0.18);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: #00e5ff;
}

.badge-glam {
  background: rgba(255, 20, 147, 0.18);
  border: 1px solid rgba(255, 20, 147, 0.5);
  color: #ff1493;
}

.arcade-card-icon {
  font-size: 40px;
  height: 48px;
  display: flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.arcade-card:hover .arcade-card-icon {
  transform: scale(1.15) rotate(4deg);
}

.arcade-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.arcade-card-body h3 {
  font-size: 17px;
  font-weight: 1000;
  margin: 0;
  color: var(--text-dark);
}

.arcade-game-cat {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.8px;
  color: var(--primary-blue);
}

.arcade-card-body p {
  color: var(--text-mid);
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 8px;
}

.card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.rating-tag {
  font-size: 10.5px;
  font-weight: 900;
  color: var(--text-mid);
}

.coins-reward-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 184, 0, 0.14);
  border: 1px dashed rgba(255, 184, 0, 0.45);
  color: var(--gold-amber);
  font-size: 10px;
  font-weight: 950;
}

.arcade-play-btn {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 0;
  background: var(--btn-primary-grad);
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.arcade-card:hover .arcade-play-btn {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

/* =========================================================
   3D GAME CABINET / THEATER MODAL PLAYER
   ========================================================= */
.arcade-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 8, 16, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  animation: fadeIn 0.2s ease;
}

.theater-cabinet-frame {
  position: relative;
  width: min(520px, 100%);
  max-height: 96dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0b0f19;
  border: 2px solid var(--border-neon);
  border-radius: 26px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 40px var(--primary-glow);
  overflow-y: auto;
  gap: 10px;
}

.theater-cabinet-frame.is-fullscreen {
  width: 98vw;
  max-width: 800px;
  max-height: 98dvh;
}

.cabinet-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.cabinet-title-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cabinet-icon {
  font-size: 26px;
}

.cabinet-title-info h3 {
  font-size: 15px;
  font-weight: 1000;
  margin: 0;
  color: #ffffff;
}

.cabinet-title-info small {
  font-size: 9.5px;
  color: var(--primary-blue);
  font-weight: 900;
}

.cabinet-hud-stats {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cabinet-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  min-width: 58px;
}

.cabinet-stat-pill.pill-gold {
  border-color: rgba(255, 184, 0, 0.5);
  background: rgba(255, 184, 0, 0.14);
}

.cabinet-stat-pill.pill-gold span:last-child {
  color: #ffb800 !important;
}

.stat-lbl {
  font-size: 7.5px;
  font-weight: 950;
  letter-spacing: 0.6px;
  color: #8da2c0;
}

.cabinet-stat-pill span:last-child {
  font-size: 13px;
  font-weight: 1000;
  color: #00e5ff;
}

.cabinet-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cabinet-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.cabinet-btn-close {
  background: rgba(255, 31, 113, 0.2);
  border-color: rgba(255, 31, 113, 0.5);
  color: #ff1f71;
}

.cabinet-points-notice {
  width: 100%;
  text-align: center;
  font-size: 9.5px;
  color: #94a3b8;
  padding: 2px 0;
}

.cabinet-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 440 / 520;
  background: #040711;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 229, 255, 0.4);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.85);
}

#arcadeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.arcade-point-toast {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb800, #ff6600);
  color: #ffffff;
  font-size: 16px;
  font-weight: 1000;
  box-shadow: 0 0 24px rgba(255, 184, 0, 0.9);
  pointer-events: none;
  animation: toastFloat 1.2s forwards ease-out;
  z-index: 15;
}

.cabinet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

.cabinet-over-modal {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 320px;
}

.over-icon {
  font-size: 44px;
}

.cabinet-over-modal h2 {
  font-size: 22px;
  font-weight: 1000;
  color: #00e5ff;
  margin: 0;
}

.cabinet-over-modal p {
  color: #94a3b8;
  font-size: 12.5px;
  margin: 0;
}

.points-rewarded-box {
  width: 100%;
  background: rgba(255, 184, 0, 0.15);
  border: 1px dashed #ffb800;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 6px 0;
}

.points-rewarded-box span {
  font-size: 9px;
  font-weight: 950;
  color: #fcd34d;
  letter-spacing: 0.8px;
}

.points-rewarded-box strong {
  font-size: 20px;
  font-weight: 1000;
  color: #ffb800;
  text-shadow: 0 0 12px rgba(255, 184, 0, 0.5);
}

.points-isolated-sub {
  font-size: 9px;
  color: #6ee7b7;
  font-weight: 900;
  margin-top: 2px;
}

.cabinet-over-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.cabinet-restart-cta {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 12px;
}

.cabinet-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  flex-wrap: wrap;
}

.cabinet-touch-btn {
  flex: 1;
  min-width: 90px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(0, 229, 255, 0.4);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cabinet-touch-btn:active {
  background: var(--btn-primary-grad);
  border-color: #00e5ff;
  transform: scale(0.96);
  box-shadow: 0 0 16px var(--primary-glow);
}

.cabinet-touch-btn.btn-action {
  background: linear-gradient(135deg, #ff1f71, #be123c);
  border-color: #ff1f71;
}

.cabinet-footer-hint {
  font-size: 10px;
  color: #64748b;
  text-align: center;
}

/* =========================================================
   MULTIPLAYER LOGIN & GAMER ID MODAL
   ========================================================= */
.mp-login-box {
  max-width: 440px;
  width: 100%;
  background: #0b1220;
  border: 2px solid rgba(0, 229, 255, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 229, 255, 0.35);
  border-radius: 24px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mp-selected-game-tag {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: #c084fc;
}

.mp-selected-game-tag strong {
  color: #ffffff;
}

.mp-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.mp-avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.mp-avatar-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mp-avatar-opt span {
  font-size: 22px;
}

.mp-avatar-opt small {
  font-size: 8.5px;
  font-weight: 900;
  color: #94a3b8;
}

.mp-avatar-opt:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: #00e5ff;
}

.mp-avatar-opt.active {
  background: rgba(0, 229, 255, 0.25);
  border-color: #00e5ff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

.mp-avatar-opt.active small {
  color: #00e5ff;
}

.mp-actions-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.mp-enter-btn {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 13.5px;
}

.mp-login-footer-note {
  font-size: 9.5px;
  color: #64748b;
  text-align: center;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .home-center-stage {
    padding: 10px 12px;
    gap: 10px;
  }
  .demo-arena-card-big {
    padding: 14px 12px;
  }
  .country-leaderboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .top-bar { height: 48px; padding: 0 8px; }
  .logo { font-size: 14px; }
  .country-badge { display: none; }

  /* REMOVE SOLID NAVBAR BACKGROUND ON MOBILE (TRANSPARENT SLEEK GAMER HUD) */
  .home-nav {
    padding: 4px 8px 4px !important;
    gap: 4px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }
  .home-nav-left {
    order: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .home-brand-side {
    font-size: 18px !important;
    letter-spacing: 1.5px !important;
    margin-right: auto !important;
    flex-shrink: 0 !important;
  }
  .points-nav-pill {
    padding: 3px 8px !important;
    font-size: 9.5px !important;
    white-space: nowrap !important;
    font-weight: 950 !important;
    flex-shrink: 0 !important;
    background: rgba(255, 184, 0, 0.18) !important;
    border: 1.5px solid rgba(255, 184, 0, 0.45) !important;
    color: #ffc400 !important;
    border-radius: 999px !important;
  }
  .live-status-pill {
    padding: 3px 8px !important;
    font-size: 9px !important;
    white-space: nowrap !important;
    font-weight: 950 !important;
    flex-shrink: 0 !important;
    background: rgba(0, 255, 136, 0.16) !important;
    border: 1.5px solid rgba(0, 255, 136, 0.45) !important;
    color: #00ff88 !important;
    border-radius: 999px !important;
  }

  /* 2 CLEAN LINES MENU ON MOBILE (NO GIANT BACKGROUND, SLEEK PILLS) */
  .home-nav-actions {
    order: 1 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }
  .nav-actions-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
  }
  .nav-actions-row .gamer-btn {
    flex: 1 1 0px !important;
    min-width: 0 !important;
    height: 28px !important;
    padding: 2px 4px !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    transition: transform 0.15s ease !important;
  }
  .nav-actions-row .gamer-btn:active {
    transform: scale(0.96) !important;
  }
  .nav-actions-row-1 #homeMoreGamesBtn {
    flex: 1.25 1 0px !important;
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.4), rgba(0, 229, 255, 0.35)) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1.5px solid #00e5ff !important;
    color: #ffffff !important;
    font-weight: 1000 !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4) !important;
  }
  .nav-actions-row .arcade-nav-badge {
    padding: 1px 4px !important;
    font-size: 8px !important;
    margin-left: 2px !important;
    border-radius: 999px !important;
  }
  .nav-actions-row .gamer-btn-glass {
    background: rgba(15, 23, 42, 0.78) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 229, 255, 0.22) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  }
  .nav-actions-row #homeBonusAdBtn {
    flex: 1.15 1 0px !important;
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.25), rgba(255, 120, 0, 0.2)) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1.5px solid rgba(255, 184, 0, 0.6) !important;
    color: #ffc400 !important;
    font-weight: 950 !important;
    box-shadow: 0 0 8px rgba(255, 184, 0, 0.25) !important;
  }

  /* AMBIENT BACKGROUND GRAPHICS MOBILE DAMPENING */
  .multi-game-theme-backdrop {
    opacity: 0.18 !important;
    pointer-events: none !important;
  }
  .world-map-backdrop {
    opacity: 0.25 !important;
  }
  .ambient-theme-item {
    transform: scale(0.6) !important;
    transform-origin: center center !important;
  }

  /* CENTER STAGE CONTAINER MOBILE COMPACT */
  .home-center-stage {
    padding: 6px 8px 16px !important;
    gap: 6px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* HERO TOP BRANDING MOBILE CLEANUP */
  .home-hero-top-compact {
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .hero-spotlight-compact {
    gap: 3px !important;
    width: 100% !important;
  }
  .hero-compact-title-wrap {
    gap: 5px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
  }
  /* Remove duplicate brand name & dangling bullet separator on mobile */
  .brand-hero-title-compact,
  .hero-title-separator {
    display: none !important;
  }
  .hero-mini-tag {
    font-size: 8.5px !important;
    padding: 2px 6px !important;
  }
  .hero-unique-tagline-compact {
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.2px !important;
    text-align: center !important;
  }
  .hero-compact-pills-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3px 5px !important;
    padding: 3px 6px !important;
    border-radius: 999px !important;
    background: rgba(14, 20, 32, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  /* Hide literal dots on mobile so text doesn't orphan lone dots */
  .hero-compact-pills-row .sub-pill-dot {
    display: none !important;
  }
  .hero-compact-pills-row .sub-pill-item {
    font-size: 9px !important;
    padding: 1px 6px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    white-space: nowrap !important;
  }
  /* Hide duplicate live count inside pills row on mobile (already in top navbar) */
  .hero-compact-pills-row .sub-pill-item.live-highlight {
    display: none !important;
  }
  .hero-compact-pills-row .mission-highlight {
    background: rgba(255, 184, 0, 0.14) !important;
    color: #ffc400 !important;
  }

  /* PRACTICE DEMO ARENA CARD MOBILE COMPACT */
  .demo-arena-card-big.demo-arena-compact-screen {
    padding: 8px 8px 8px !important;
    gap: 6px !important;
    border-radius: 14px !important;
    background: rgba(14, 20, 32, 0.88) !important;
    border: 1.5px solid rgba(0, 229, 255, 0.35) !important;
  }
  .demo-arena-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding-bottom: 3px !important;
  }
  .demo-header-info {
    gap: 2px !important;
    text-align: left !important;
  }
  .demo-badge {
    font-size: 8px !important;
    padding: 1px 6px !important;
  }
  .big-demo-title {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }
  .small-demo-subtitle {
    font-size: 9px !important;
    line-height: 1.2 !important;
    color: #94a3b8 !important;
  }
  .demo-reset-btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* PRACTICE DEMO RULES QUICK GUIDE STRIP */
  .demo-rules-compact-strip {
    padding: 5px 6px !important;
    gap: 4px !important;
    border-radius: 10px !important;
  }
  .demo-rules-compact-strip .rules-quick-header {
    padding-bottom: 3px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  .demo-rules-compact-strip .guide-tag {
    font-size: 8.5px !important;
    padding: 2px 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .demo-rules-compact-strip .guide-lead-compact {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  .demo-rules-compact-strip .guide-lead-compact .rule-size-big {
    font-size: 10px !important;
    white-space: nowrap !important;
  }
  .demo-rules-compact-strip .guide-lead-compact .rule-size-small {
    font-size: 8.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .demo-rules-compact-strip .rules-quick-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
  }
  .demo-rules-compact-strip .quick-rule-card {
    padding: 4px 6px !important;
    border-radius: 8px !important;
    min-height: 38px !important;
    gap: 2px !important;
    box-sizing: border-box !important;
  }
  .demo-rules-compact-strip .rule-card-badge {
    font-size: 7.5px !important;
    padding: 1px 4px !important;
  }
  .demo-rules-compact-strip .rule-size-big {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
  }
  .demo-rules-compact-strip .rule-size-small {
    font-size: 8px !important;
    line-height: 1.15 !important;
  }

  /* PRACTICE DEMO PROGRESS & CENTER CARD */
  .demo-arena-compact-screen .demo-table-zone-5cards {
    gap: 12px !important;
    padding: 2px 0 !important;
  }
  .demo-progress-slot {
    gap: 2px !important;
  }
  .demo-progress-pills {
    padding: 3px 6px !important;
    gap: 4px !important;
  }
  .progress-pip {
    width: 19px !important;
    height: 19px !important;
    font-size: 9px !important;
  }
  .demo-arena-compact-screen .demo-center-card-big {
    width: 62px !important;
    height: 86px !important;
  }
  .demo-slot-label {
    font-size: 8px !important;
    letter-spacing: 0.4px !important;
  }
  .demo-arena-compact-screen .demo-feedback-big {
    font-size: 11px !important;
    min-height: 16px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 4px !important;
  }

  /* PRACTICE DEMO PLAYER HAND */
  .demo-arena-compact-screen .demo-hand-wrapper-big {
    padding: 5px 6px 4px !important;
    gap: 4px !important;
    border-radius: 12px !important;
  }
  .demo-hand-header {
    font-size: 9px !important;
  }
  .demo-match-hint {
    font-size: 8px !important;
  }
  .demo-arena-compact-screen .demo-cards-row-big {
    gap: 5px !important;
    min-height: 78px !important;
    padding: 2px 0 !important;
    justify-content: center !important;
  }
  .demo-arena-compact-screen .demo-card-item {
    width: clamp(46px, 15vw, 54px) !important;
    height: auto !important;
  }

  /* PLAY BUTTON INTEGRATED BOTTOM STRIP */
  .demo-integrated-cta {
    gap: 6px !important;
    padding-top: 4px !important;
  }
  .gamer-cta-integrated {
    width: 100% !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
  }
  .gamer-cta-integrated .cta-play-text strong {
    font-size: 14px !important;
  }
  .gamer-cta-integrated .cta-play-text small {
    font-size: 9px !important;
  }
  .demo-sub-cta-row {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .demo-sub-btn {
    padding: 4px 10px !important;
    font-size: 10px !important;
  }
  .demo-ad-strip {
    padding: 3px 8px !important;
    font-size: 10px !important;
  }

  .player-hand {
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 12px;
    padding: 12px 4px 4px;
    max-width: 380px;
    margin: 0 auto;
  }
  .player-hand .player-card {
    margin-left: 0 !important;
    width: clamp(62px, 18.5vw, 74px) !important;
  }
  .player-card.playable {
    transform: translateY(-8px) scale(1.04);
  }
}

@media (max-width: 380px) {
  .home-nav-left {
    gap: 4px !important;
  }
  .home-brand-side {
    font-size: 16px !important;
  }
  .points-nav-pill,
  .live-status-pill {
    padding: 2px 5px !important;
    font-size: 8.5px !important;
  }
  .nav-actions-row .gamer-btn {
    font-size: 9px !important;
    padding: 1px 2px !important;
    height: 26px !important;
  }
  .demo-arena-compact-screen .demo-center-card-big {
    width: 56px !important;
    height: 78px !important;
  }
  .demo-arena-compact-screen .demo-card-item {
    width: 44px !important;
  }
  .demo-rules-compact-strip .rule-size-small {
    display: none !important;
  }
  .hero-compact-pills-row .sub-pill-item {
    font-size: 8.5px !important;
    padding: 1px 4px !important;
  }
}


/* =========================================================
   TOP NAVBAR BRAND ON SIDE & UNIQUE HERO TITLE STYLES
   ========================================================= */
.home-brand-side {
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 1000;
  letter-spacing: 2.5px;
  color: var(--primary-blue);
  text-shadow: 0 0 20px var(--primary-glow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 6px;
  transition: transform 0.2s, text-shadow 0.2s;
}

.home-brand-side:hover {
  transform: scale(1.04);
  text-shadow: 0 0 26px var(--primary-glow), 0 0 14px var(--accent-glow);
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.45);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.8px;
  color: var(--primary-blue);
  margin-bottom: 8px;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}

.hero-eyebrow-pill .eyebrow-tag {
  background: #00ff88;
  color: #0c101a;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 1000;
}

.hero-sparkle {
  color: #ffb800;
  margin-left: 4px;
  font-size: 0.7em;
  vertical-align: super;
  animation: sparkleRotate 3s infinite linear;
}

.hero-unique-tagline {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 1000;
  letter-spacing: 0.5px;
  margin: 6px 0 0;
  color: var(--text-dark);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sub-pill-item {
  color: var(--text-dark);
  font-weight: 900;
}

.sub-pill-dot {
  color: rgba(255, 255, 255, 0.3);
}

/* =========================================================
   INTERACTIVE DEMO: BIG & SMALL SIZE RULES STYLES
   ========================================================= */
.demo-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.demo-easy-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.big-demo-title {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 1000;
  letter-spacing: 0.8px;
  color: var(--primary-blue);
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px var(--primary-glow));
  text-shadow: none;
  display: inline-block;
  line-height: 1.2;
}

.small-demo-subtitle {
  font-size: clamp(11.5px, 1.1vw, 13px);
  font-weight: 600;
  color: var(--text-mid);
}

.demo-rules-quick-guide {
  background: rgba(14, 20, 32, 0.75);
  border: 1.5px solid rgba(0, 229, 255, 0.35);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.08);
}

.rules-quick-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.guide-tag {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 255, 136, 0.2));
  border: 1px solid #00e5ff;
  color: #00e5ff;
  font-size: 10.5px;
  font-weight: 1000;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.guide-lead {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.rules-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.quick-rule-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.2s ease;
}

.quick-rule-card:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

.quick-rule-card.card-trump {
  border-color: rgba(255, 184, 0, 0.45);
  background: rgba(255, 184, 0, 0.06);
}

.quick-rule-card.card-goal {
  border-color: rgba(0, 255, 136, 0.45);
  background: rgba(0, 255, 136, 0.06);
}

.rule-card-badge {
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.8px;
  color: var(--primary-blue);
  background: rgba(0, 229, 255, 0.15);
  padding: 2px 7px;
  border-radius: 6px;
  width: fit-content;
}

.badge-trump {
  color: #ffb800 !important;
  background: rgba(255, 184, 0, 0.2) !important;
}

.badge-goal {
  color: #00ff88 !important;
  background: rgba(0, 255, 136, 0.2) !important;
}

.rule-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* BIG SIZE & SMALL SIZE CONTRAST */
.rule-size-big {
  font-size: 13.5px;
  font-weight: 1000;
  color: #ffffff;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

.rule-size-small {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.35;
}


/* =========================================================
   ZERO-SCROLL DEMO GAME & PLAY BUTTON TOP VIEW STYLES
   ========================================================= */
.home-hero-top-compact {
  gap: 3px !important;
  width: 100%;
}

.hero-spotlight-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-compact-title-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-mini-tag {
  background: #00ff88;
  color: #0c101a;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 1000;
  letter-spacing: 0.5px;
}

.brand-hero-title-compact {
  font-size: clamp(20px, 2.6vw, 25px) !important;
  font-weight: 1000;
  letter-spacing: 2px;
  color: var(--primary-blue);
  text-shadow: 0 0 16px var(--primary-glow);
  margin: 0 !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.hero-title-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  font-weight: 300;
}

.hero-unique-tagline-compact {
  font-size: clamp(14px, 1.8vw, 18px) !important;
  font-weight: 1000;
  margin: 0 !important;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.hero-compact-pills-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-size: 10.5px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.live-highlight {
  color: var(--live-green) !important;
}

.mission-highlight {
  color: var(--gold-amber) !important;
}

.demo-arena-compact-screen {
  padding: 12px 18px 10px !important;
  gap: 8px !important;
  border-radius: 20px !important;
}

.demo-arena-compact-screen .demo-arena-header {
  padding-bottom: 6px;
}

.demo-rules-compact-strip {
  padding: 6px 12px !important;
  gap: 6px !important;
  border-radius: 12px !important;
}

.demo-rules-compact-strip .rules-quick-header {
  padding-bottom: 4px;
  gap: 8px;
}

.guide-lead-compact {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-rules-compact-strip .rules-quick-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 6px !important;
}

.demo-rules-compact-strip .quick-rule-card {
  padding: 5px 8px !important;
  border-radius: 8px !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
}

.demo-rules-compact-strip .rule-card-badge {
  padding: 1px 5px !important;
  font-size: 8px !important;
}

.demo-rules-compact-strip .rule-size-big {
  font-size: 11.5px !important;
  line-height: 1.1 !important;
  white-space: nowrap;
}

.demo-rules-compact-strip .rule-size-small {
  font-size: 9.5px !important;
  line-height: 1.15 !important;
}

.demo-arena-compact-screen .demo-table-zone-5cards {
  padding: 2px 0 !important;
  gap: clamp(16px, 3.5vw, 36px) !important;
}

.demo-arena-compact-screen .demo-center-card-big {
  width: clamp(68px, 8vw, 84px) !important;
}

.demo-arena-compact-screen .demo-feedback-big {
  font-size: 12px !important;
  min-height: 18px !important;
  margin: 0 !important;
}

.demo-arena-compact-screen .demo-hand-wrapper-big {
  padding: 8px 12px 6px !important;
  gap: 6px !important;
  border-radius: 16px !important;
}

.demo-arena-compact-screen .demo-cards-row-big {
  min-height: 104px !important;
  padding: 4px 2px 2px !important;
  gap: 10px !important;
}

.demo-arena-compact-screen .demo-card-item {
  width: clamp(54px, 6.8vw, 72px) !important;
}

/* INTEGRATED PLAY BUTTON */
.demo-integrated-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

.gamer-cta-integrated {
  width: min(380px, 100%) !important;
  padding: 10px 22px !important;
  font-size: 14px !important;
  border-radius: 14px !important;
}

.gamer-cta-integrated .cta-play-text strong {
  font-size: 16px !important;
}

.gamer-cta-integrated .cta-play-text small {
  font-size: 10px !important;
}

.demo-sub-cta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-sub-btn {
  padding: 6px 12px !important;
  font-size: 11px !important;
}

.demo-ad-strip {
  padding: 4px 10px !important;
  font-size: 11px !important;
}


/* =========================================================
   FIX FOR RULES OUT OF BORDER & NEON TITLE IN ALL THEMES
   ========================================================= */
.big-demo-title {
  color: var(--primary-blue) !important;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-pink) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 16px var(--primary-glow)) !important;
  display: inline-block !important;
}

@supports not (-webkit-background-clip: text) {
  .big-demo-title {
    color: var(--primary-blue) !important;
    text-shadow: 0 0 16px var(--primary-glow) !important;
  }
}

/* =========================================================
   PRACTICE DEMO RULES: DYNAMIC NEON COLOR SHIFT & POPUP
   ========================================================= */
@keyframes neonGuideBorderCycle {
  0%, 100% {
    border-color: rgba(0, 229, 255, 0.65);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25), inset 0 0 16px rgba(0, 229, 255, 0.1);
  }
  25% {
    border-color: rgba(255, 31, 113, 0.65);
    box-shadow: 0 0 20px rgba(255, 31, 113, 0.25), inset 0 0 16px rgba(255, 31, 113, 0.1);
  }
  50% {
    border-color: rgba(255, 184, 0, 0.65);
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.25), inset 0 0 16px rgba(255, 184, 0, 0.1);
  }
  75% {
    border-color: rgba(0, 255, 136, 0.65);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.25), inset 0 0 16px rgba(0, 255, 136, 0.1);
  }
}

@keyframes neonRuleCardPopupCycle {
  0%, 100% {
    border-color: #00e5ff !important;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.45), inset 0 0 10px rgba(0, 229, 255, 0.12) !important;
  }
  25% {
    border-color: #ff1f71 !important;
    box-shadow: 0 0 14px rgba(255, 31, 113, 0.45), inset 0 0 10px rgba(255, 31, 113, 0.12) !important;
  }
  50% {
    border-color: #ffb800 !important;
    box-shadow: 0 0 14px rgba(255, 184, 0, 0.45), inset 0 0 10px rgba(255, 184, 0, 0.12) !important;
  }
  75% {
    border-color: #00ff88 !important;
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.45), inset 0 0 10px rgba(0, 255, 136, 0.12) !important;
  }
}

@keyframes neonRuleCardPopupPop {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3.5px) scale(1.025);
  }
}

@keyframes beaconPulseFast {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(0, 229, 255, 0);
  }
}

.demo-rules-compact-strip {
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  background: rgba(10, 16, 28, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.45) !important;
  animation: neonGuideBorderCycle 6s infinite ease-in-out !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.18) !important;
}

.guide-tag-pulsing {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(255, 31, 113, 0.25)) !important;
  border: 1px solid #00e5ff !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4) !important;
}

.guide-beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5ff;
  display: inline-block;
  animation: beaconPulseFast 1.5s infinite ease-in-out;
}

.demo-rules-compact-strip .rules-quick-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 760px) {
  .demo-rules-compact-strip .rules-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.demo-rules-compact-strip .quick-rule-card {
  padding: 8px 10px !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.4) !important;
  position: relative !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
  animation: neonRuleCardPopupCycle 4s infinite ease-in-out, neonRuleCardPopupPop 3s infinite ease-in-out !important;
}

/* Staggered neon popup phases so colors wave across the cards */
.demo-rules-compact-strip .quick-rule-card.rule-card-1 {
  animation-delay: 0s, 0s !important;
}
.demo-rules-compact-strip .quick-rule-card.rule-card-2 {
  animation-delay: 0.8s, 0.75s !important;
}
.demo-rules-compact-strip .quick-rule-card.rule-card-3 {
  animation-delay: 1.6s, 1.5s !important;
}
.demo-rules-compact-strip .quick-rule-card.rule-card-4 {
  animation-delay: 2.4s, 2.25s !important;
}

.demo-rules-compact-strip .quick-rule-card:hover {
  transform: translateY(-4px) scale(1.04) !important;
  z-index: 10 !important;
  box-shadow: 0 0 20px #00e5ff !important;
  border-color: #00e5ff !important;
}

.demo-rules-compact-strip .rule-card-badge {
  font-size: 9px !important;
  font-weight: 1000 !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.8px !important;
  flex-shrink: 0 !important;
  color: #00e5ff !important;
  background: rgba(0, 229, 255, 0.2) !important;
  border: 1px solid rgba(0, 229, 255, 0.5) !important;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.6) !important;
}

.demo-rules-compact-strip .rule-card-badge.badge-trump {
  color: #ffb800 !important;
  background: rgba(255, 184, 0, 0.22) !important;
  border-color: rgba(255, 184, 0, 0.6) !important;
  text-shadow: 0 0 6px rgba(255, 184, 0, 0.6) !important;
}

.demo-rules-compact-strip .rule-card-badge.badge-goal {
  color: #00ff88 !important;
  background: rgba(0, 255, 136, 0.22) !important;
  border-color: rgba(0, 255, 136, 0.6) !important;
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.6) !important;
}

.demo-rules-compact-strip .rule-card-content {
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  box-sizing: border-box !important;
}

.demo-rules-compact-strip .rule-size-big {
  font-size: 11.5px !important;
  font-weight: 1000 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  color: #ffffff !important;
  letter-spacing: 0.3px !important;
  margin: 0 !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4) !important;
}

.demo-rules-compact-strip .rule-size-small {
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #f1f5f9 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  margin: 0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* =========================================================
   MORE GAMES NAVIGATION & HOME TEASER
   ========================================================= */
.gamer-btn-arcade {
  background: linear-gradient(135deg, rgba(255, 31, 113, 0.25), rgba(0, 229, 255, 0.25)) !important;
  border: 1.5px solid #00e5ff !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35) !important;
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.gamer-btn-arcade:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 20px #00e5ff, 0 0 30px #ff1f71 !important;
}

.arcade-nav-badge {
  background: #ff1f71;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 1000;
  padding: 1px 6px;
  border-radius: 999px;
  box-shadow: 0 0 8px #ff1f71;
}

/* =========================================================
   HOME ARCADE SECTION (2 GAMES AT DOWN SIDE)
   ========================================================= */
.home-arcade-section {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: min-content !important;
  overflow: visible !important;
  width: min(1080px, 95%);
  margin: 28px auto 36px;
  position: relative;
  z-index: 5;
  padding: clamp(20px, 3.5vw, 36px) clamp(14px, 3vw, 30px);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 0%, rgba(18, 28, 52, 0.96), rgba(8, 12, 22, 0.98));
  border: 2px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 229, 255, 0.2), inset 0 0 30px rgba(0, 229, 255, 0.06);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.home-arcade-section.arcade-section-focused {
  animation: arcadeSectionHighlight 1.6s ease-out;
}

@keyframes arcadeSectionHighlight {
  0%, 100% {
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 229, 255, 0.2);
  }
  50% {
    border-color: #00e5ff;
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.8), 0 0 90px rgba(255, 31, 113, 0.45);
  }
}

.arcade-glow-ambient {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.28), rgba(255, 31, 113, 0.12) 50%, transparent 75%);
  pointer-events: none;
}

/* SECTION HEADER */
.arcade-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 18px;
  position: relative;
  z-index: 2;
}

.arcade-header-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  max-width: 640px;
}

.arcade-main-title {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 1000;
  letter-spacing: 0.5px;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

.arcade-neon-text {
  background: linear-gradient(135deg, #00e5ff 20%, #ff1f71 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.5));
}

.arcade-main-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.45;
}

.arcade-header-rewards {
  display: flex;
  align-items: center;
}

.arcade-reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.14);
  border: 1.5px solid rgba(255, 184, 0, 0.5);
  color: #ffc400;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.25);
  white-space: nowrap;
}

.reward-title {
  font-size: 10.5px;
  letter-spacing: 0.8px;
  color: #ffd768;
}

.reward-highlight {
  color: #ffffff;
  font-weight: 1000;
}

/* ARCADE TABS & SWITCHER */
.arcade-tabs-bar {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.arcade-tab-btn {
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
}

.arcade-tab-btn:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.arcade-tab-btn.active-arcade-tab {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(255, 31, 113, 0.14));
  border-color: #00e5ff;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
}

.tab-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.tab-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.tab-title {
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.3px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-sub {
  font-size: 10.5px;
  color: var(--text-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-badge {
  font-size: 9px;
  font-weight: 1000;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  flex-shrink: 0;
}

.active-arcade-tab .tab-badge {
  background: #00e5ff;
  color: #070a12;
  font-weight: 1000;
  box-shadow: 0 0 10px #00e5ff;
}

/* ARCADE STAGE WRAPPER (SINGLE OR DUAL SIDE-BY-SIDE MODE) */
.arcade-stage-wrapper {
  width: 100%;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.arcade-stage-wrapper.single-mode {
  max-width: 720px;
  margin: 0 auto;
}

.arcade-stage-wrapper.dual-mode {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 24px;
  align-items: start;
  justify-content: center;
}

.arcade-stage-wrapper.dual-mode .arcade-game-panel {
  display: flex !important;
  width: 100% !important;
}

/* GAME PANELS */
.arcade-game-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arcade-game-panel.hidden {
  display: none !important;
}

.cabinet-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.cabinet-reward-badge {
  font-size: 10px;
  font-weight: 1000;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.16);
  border: 1px solid rgba(255, 184, 0, 0.45);
  color: #ffc400;
  letter-spacing: 0.5px;
}

.cabinet-reward-badge.car-coin-reward {
  background: rgba(255, 59, 0, 0.16);
  border-color: rgba(255, 59, 0, 0.45);
  color: #ff6633;
}

.car-footer-tips {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-mid);
  text-align: center;
}

/* =========================================================
   NEON DOTS & BOXES & NITRO HIGHWAY DUAL CABINET STYLES
   ========================================================= */
.dots-game-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(14, 20, 34, 0.94);
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.2), inset 0 0 20px rgba(0, 229, 255, 0.08);
  box-sizing: border-box;
}

.car-game-arcade-box {
  width: 100%;
  background: rgba(14, 20, 34, 0.94) !important;
  border: 1.5px solid rgba(255, 59, 0, 0.45) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  box-shadow: 0 0 35px rgba(255, 59, 0, 0.22), inset 0 0 20px rgba(255, 59, 0, 0.08) !important;
  box-sizing: border-box !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.car-arcade-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 14px;
}

.dots-header-hud {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.dots-title-group,
.arcade-title-group {
  text-align: center;
}

.dots-title-group h2,
.dots-title-group h3 {
  margin: 4px 0 2px;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 1000;
  color: #ffffff !important;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.8) !important;
  letter-spacing: 0.5px;
}

.arcade-title-group h2,
.arcade-title-group h3 {
  margin: 4px 0 2px;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 1000;
  color: #ffffff !important;
  text-shadow: 0 0 14px rgba(255, 59, 0, 0.8) !important;
  letter-spacing: 0.5px;
}

.dots-title-group p,
.arcade-title-group p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8 !important;
}

.car-game-arcade-box .arcade-stat-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.car-game-arcade-box .arcade-stat-pill .stat-label {
  color: #94a3b8 !important;
}

.car-game-arcade-box .arcade-stat-pill span:last-child {
  color: #ffb800 !important;
  text-shadow: 0 0 8px rgba(255, 184, 0, 0.6) !important;
}

/* SCOREBOARD HUD */
.dots-scoreboard-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(560px, 100%);
}

.dots-player-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  position: relative;
  transition: all 0.25s ease;
}

.dots-player-card.p1-card {
  border-color: rgba(0, 229, 255, 0.3);
}

.dots-player-card.p2-card {
  border-color: rgba(255, 31, 113, 0.3);
}

.dots-player-card.p1-card.active-turn {
  border-color: #00e5ff !important;
  background: rgba(0, 229, 255, 0.12) !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.45) !important;
  transform: scale(1.03);
}

.dots-player-card.p2-card.active-turn {
  border-color: #ff1f71 !important;
  background: rgba(255, 31, 113, 0.12) !important;
  box-shadow: 0 0 20px rgba(255, 31, 113, 0.45) !important;
  transform: scale(1.03);
}

.dots-card-avatar {
  font-size: 24px;
}

.dots-card-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dots-player-name {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text-mid);
}

.p1-card .dots-player-name {
  color: #00e5ff;
}

.p2-card .dots-player-name {
  color: #ff1f71;
}

.dots-player-score {
  font-size: 24px;
  font-weight: 1000;
  color: #ffffff;
  line-height: 1;
}

.dots-turn-beacon {
  margin-left: auto;
  font-size: 8.5px;
  font-weight: 1000;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-mid);
}

.active-turn .dots-turn-beacon {
  background: #00e5ff;
  color: #070a12;
  box-shadow: 0 0 10px #00e5ff;
  animation: beaconPulseFast 1.5s infinite;
}

.p2-card.active-turn .dots-turn-beacon {
  background: #ff1f71;
  color: #ffffff;
  box-shadow: 0 0 10px #ff1f71;
}

.dots-vs-badge {
  font-size: 13px;
  font-weight: 1000;
  color: #ffb800;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.6);
  flex-shrink: 0;
}

/* CONTROLS BAR */
.dots-controls-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
}

.dots-control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dots-control-label {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: var(--text-mid);
}

.dots-pill-selector {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dots-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-mid);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dots-pill-btn:hover {
  color: #ffffff;
}

.dots-pill-btn.active {
  background: #00e5ff;
  color: #070a12;
  box-shadow: 0 0 10px #00e5ff;
}

.dots-restart-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dots-restart-btn:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: #00e5ff;
  transform: translateY(-2px);
}

/* STATUS BANNER */
.dots-status-banner {
  font-size: 13px;
  font-weight: 950;
  color: #00e5ff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  margin-bottom: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  text-align: center;
  transition: all 0.3s ease;
}

/* BOARD STAGE */
.dots-board-wrapper {
  position: relative;
  width: min(440px, 94vw);
  height: min(440px, 94vw);
  background: radial-gradient(circle at center, rgba(16, 26, 48, 0.95), rgba(8, 12, 22, 0.98));
  border: 2px solid rgba(0, 229, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 229, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dots-svg-container {
  width: 100%;
  height: 100%;
}

.dots-svg-board {
  width: 100%;
  height: 100%;
  display: block;
}

/* SVG NEON ELEMENTS */
.neon-dot-outer {
  fill: rgba(0, 229, 255, 0.2);
  stroke: #00e5ff;
  stroke-width: 1.5;
  transition: all 0.2s ease;
}

.neon-dot-inner {
  fill: #ffffff;
  filter: drop-shadow(0 0 4px #00e5ff);
}

.dots-line-hitbox {
  cursor: pointer;
  stroke: transparent;
  stroke-width: 32;
  stroke-linecap: round;
}

.dots-line-hitbox:hover + .neon-line-unclaimed {
  stroke: rgba(0, 229, 255, 0.5) !important;
  stroke-width: 4 !important;
  filter: drop-shadow(0 0 8px #00e5ff) !important;
}

.neon-line-unclaimed {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3;
  stroke-linecap: round;
  transition: all 0.2s ease;
}

.neon-line-claimed.p1-line {
  stroke: #00e5ff !important;
  stroke-width: 5 !important;
  stroke-linecap: round !important;
  filter: drop-shadow(0 0 8px #00e5ff) drop-shadow(0 0 16px rgba(0, 229, 255, 0.8)) !important;
  animation: lineLaserGlow 2s infinite alternate ease-in-out;
}

.neon-line-claimed.p2-line {
  stroke: #ff1f71 !important;
  stroke-width: 5 !important;
  stroke-linecap: round !important;
  filter: drop-shadow(0 0 8px #ff1f71) drop-shadow(0 0 16px rgba(255, 31, 113, 0.8)) !important;
  animation: lineLaserGlowPink 2s infinite alternate ease-in-out;
}

@keyframes lineLaserGlow {
  0% { filter: drop-shadow(0 0 6px #00e5ff); }
  100% { filter: drop-shadow(0 0 12px #00e5ff) drop-shadow(0 0 20px #00e5ff); }
}

@keyframes lineLaserGlowPink {
  0% { filter: drop-shadow(0 0 6px #ff1f71); }
  100% { filter: drop-shadow(0 0 12px #ff1f71) drop-shadow(0 0 20px #ff1f71); }
}

/* CAPTURED BOX ANIMATION */
@keyframes boxCapturedPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.neon-captured-box {
  transform-origin: center;
  animation: boxCapturedPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.neon-captured-box.box-p1 {
  fill: rgba(0, 229, 255, 0.25);
  stroke: #00e5ff;
  stroke-width: 2;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.6));
}

.neon-captured-box.box-p2 {
  fill: rgba(255, 31, 113, 0.25);
  stroke: #ff1f71;
  stroke-width: 2;
  filter: drop-shadow(0 0 12px rgba(255, 31, 113, 0.6));
}

.neon-captured-text {
  font-family: inherit;
  font-weight: 1000;
  font-size: 16px;
  fill: #ffffff;
  pointer-events: none;
  animation: fadeIn 0.4s ease forwards;
}

.neon-captured-text.text-p1 {
  filter: drop-shadow(0 0 8px #00e5ff);
}

.neon-captured-text.text-p2 {
  filter: drop-shadow(0 0 8px #ff1f71);
}

/* VICTORY OVERLAY FOR DOTS & BOXES */
.dots-victory-modal {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: fadeIn 0.3s ease forwards;
}

.dots-victory-modal.hidden {
  display: none !important;
}

.dots-modal-card {
  width: min(340px, 90%);
  padding: 22px;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(14, 22, 40, 0.98), rgba(7, 10, 18, 0.98));
  border: 2px solid #00e5ff;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dots-modal-crown {
  font-size: 42px;
  filter: drop-shadow(0 0 16px #ffb800);
  animation: trophyBounce 2s infinite ease-in-out;
}

.dots-modal-badge {
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 1.5px;
  color: #ffb800;
}

.dots-modal-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 1000;
  color: #ffffff;
  text-shadow: 0 0 16px #00e5ff;
}

.dots-modal-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-mid);
}

.dots-modal-score-summary {
  font-size: 18px;
  font-weight: 1000;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0 10px;
}

.dots-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.dots-footer-tips {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-mid);
  text-align: center;
}

/* =========================================================
   ULTIMATE MOBILE RESPONSIVE OVERRIDES (HOME TOP & ARENA)
   Ensures precedence over all preceding declarations in cascade
   ========================================================= */
@media (max-width: 650px) {
  /* Top Bar */
  .top-bar { height: 48px; padding: 0 8px; }
  .logo { font-size: 14px; }
  .country-badge { display: none; }

  /* REMOVE SOLID NAVBAR BACKGROUND ON MOBILE (TRANSPARENT SLEEK GAMER HUD) */
  .home-nav {
    padding: 4px 8px 4px !important;
    gap: 4px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }
  .home-nav-left {
    order: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .home-brand-side {
    font-size: 18px !important;
    letter-spacing: 1.5px !important;
    margin-right: auto !important;
    flex-shrink: 0 !important;
  }
  .points-nav-pill {
    padding: 3px 8px !important;
    font-size: 9.5px !important;
    white-space: nowrap !important;
    font-weight: 950 !important;
    flex-shrink: 0 !important;
    background: rgba(255, 184, 0, 0.18) !important;
    border: 1.5px solid rgba(255, 184, 0, 0.45) !important;
    color: #ffc400 !important;
    border-radius: 999px !important;
  }
  .live-status-pill {
    padding: 3px 8px !important;
    font-size: 9px !important;
    white-space: nowrap !important;
    font-weight: 950 !important;
    flex-shrink: 0 !important;
    background: rgba(0, 255, 136, 0.16) !important;
    border: 1.5px solid rgba(0, 255, 136, 0.45) !important;
    color: #00ff88 !important;
    border-radius: 999px !important;
  }

  /* 2 CLEAN LINES MENU ON MOBILE (NO GIANT BACKGROUND, SLEEK PILLS) */
  .home-nav-actions {
    order: 1 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }
  .nav-actions-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
  }
  .nav-actions-row .gamer-btn {
    flex: 1 1 0px !important;
    min-width: 0 !important;
    height: 28px !important;
    padding: 2px 4px !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    transition: transform 0.15s ease !important;
  }
  .nav-actions-row .gamer-btn:active {
    transform: scale(0.96) !important;
  }
  .nav-actions-row-1 #homeMoreGamesBtn {
    flex: 1.25 1 0px !important;
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.4), rgba(0, 229, 255, 0.35)) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1.5px solid #00e5ff !important;
    color: #ffffff !important;
    font-weight: 1000 !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4) !important;
  }
  .nav-actions-row .arcade-nav-badge {
    padding: 1px 4px !important;
    font-size: 8px !important;
    margin-left: 2px !important;
    border-radius: 999px !important;
  }
  .nav-actions-row .gamer-btn-glass {
    background: rgba(15, 23, 42, 0.78) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 229, 255, 0.22) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  }
  .nav-actions-row #homeBonusAdBtn {
    flex: 1.15 1 0px !important;
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.25), rgba(255, 120, 0, 0.2)) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1.5px solid rgba(255, 184, 0, 0.6) !important;
    color: #ffc400 !important;
    font-weight: 950 !important;
    box-shadow: 0 0 8px rgba(255, 184, 0, 0.25) !important;
  }

  /* Center Stage Container */
  .home-center-stage {
    padding: 6px 8px 16px !important;
    gap: 6px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Hero Top Branding */
  .home-hero-top-compact {
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .hero-spotlight-compact {
    gap: 3px !important;
    width: 100% !important;
  }
  .hero-compact-title-wrap {
    gap: 5px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .brand-hero-title-compact,
  .hero-title-separator {
    display: none !important;
  }
  .hero-mini-tag {
    font-size: 8.5px !important;
    padding: 2px 6px !important;
  }
  .hero-unique-tagline-compact {
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.2px !important;
    text-align: center !important;
  }
  .hero-compact-pills-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3px 5px !important;
    padding: 3px 6px !important;
    border-radius: 999px !important;
    background: rgba(14, 20, 32, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .hero-compact-pills-row .sub-pill-dot {
    display: none !important;
  }
  .hero-compact-pills-row .sub-pill-item {
    font-size: 9px !important;
    padding: 1px 6px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    white-space: nowrap !important;
  }
  .hero-compact-pills-row .sub-pill-item.live-highlight {
    display: none !important;
  }
  .hero-compact-pills-row .mission-highlight {
    background: rgba(255, 184, 0, 0.14) !important;
    color: #ffc400 !important;
  }

  /* Practice Demo Arena Card */
  .demo-arena-card-big.demo-arena-compact-screen {
    padding: 8px 8px 8px !important;
    gap: 6px !important;
    border-radius: 14px !important;
    background: rgba(14, 20, 32, 0.88) !important;
    border: 1.5px solid rgba(0, 229, 255, 0.35) !important;
  }
  .demo-arena-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding-bottom: 3px !important;
  }
  .demo-header-info {
    gap: 2px !important;
    text-align: left !important;
  }
  .demo-badge {
    font-size: 8px !important;
    padding: 1px 6px !important;
  }
  .big-demo-title {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }
  .small-demo-subtitle {
    font-size: 9px !important;
    line-height: 1.2 !important;
    color: #94a3b8 !important;
  }
  .demo-reset-btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Practice Demo Rules Strip */
  .demo-rules-compact-strip {
    padding: 5px 6px !important;
    gap: 4px !important;
    border-radius: 10px !important;
  }
  .demo-rules-compact-strip .rules-quick-header {
    padding-bottom: 3px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  .demo-rules-compact-strip .guide-tag {
    font-size: 8.5px !important;
    padding: 2px 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .demo-rules-compact-strip .guide-lead-compact {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  .demo-rules-compact-strip .guide-lead-compact .rule-size-big {
    font-size: 10px !important;
    white-space: nowrap !important;
  }
  .demo-rules-compact-strip .guide-lead-compact .rule-size-small {
    font-size: 8.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .demo-rules-compact-strip .rules-quick-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
  }
  .demo-rules-compact-strip .quick-rule-card {
    padding: 4px 6px !important;
    border-radius: 8px !important;
    min-height: 38px !important;
    gap: 2px !important;
    box-sizing: border-box !important;
  }
  .demo-rules-compact-strip .rule-card-badge {
    font-size: 7.5px !important;
    padding: 1px 4px !important;
  }
  .demo-rules-compact-strip .rule-size-big {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
  }
  .demo-rules-compact-strip .rule-size-small {
    font-size: 8px !important;
    line-height: 1.15 !important;
  }

  /* Practice Demo Table Zone & Center Card */
  .demo-arena-compact-screen .demo-table-zone-5cards {
    gap: 12px !important;
    padding: 2px 0 !important;
  }
  .demo-progress-slot {
    gap: 2px !important;
  }
  .demo-progress-pills {
    padding: 3px 6px !important;
    gap: 4px !important;
  }
  .progress-pip {
    width: 19px !important;
    height: 19px !important;
    font-size: 9px !important;
  }
  .demo-arena-compact-screen .demo-center-card-big {
    width: 62px !important;
    height: 86px !important;
  }
  .demo-slot-label {
    font-size: 8px !important;
    letter-spacing: 0.4px !important;
  }
  .demo-arena-compact-screen .demo-feedback-big {
    font-size: 11px !important;
    min-height: 16px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 4px !important;
  }

  /* Player Hand */
  .demo-arena-compact-screen .demo-hand-wrapper-big {
    padding: 5px 6px 4px !important;
    gap: 4px !important;
    border-radius: 12px !important;
  }
  .demo-hand-header {
    font-size: 9px !important;
  }
  .demo-match-hint {
    font-size: 8px !important;
  }
  .demo-arena-compact-screen .demo-cards-row-big {
    gap: 5px !important;
    min-height: 78px !important;
    padding: 2px 0 !important;
    justify-content: center !important;
  }
  .demo-arena-compact-screen .demo-card-item {
    width: clamp(46px, 15vw, 54px) !important;
    height: auto !important;
  }

  /* Play Integrated Button */
  .demo-integrated-cta {
    gap: 6px !important;
    padding-top: 4px !important;
  }
  .gamer-cta-integrated {
    width: 100% !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
  }
  .gamer-cta-integrated .cta-play-text strong {
    font-size: 14px !important;
  }
  .gamer-cta-integrated .cta-play-text small {
    font-size: 9px !important;
  }
  .demo-sub-cta-row {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .demo-sub-btn {
    padding: 4px 10px !important;
    font-size: 10px !important;
  }
  .demo-ad-strip {
    padding: 3px 8px !important;
    font-size: 10px !important;
  }

  /* Match Arena Player Hand */
  .player-hand {
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 12px;
    padding: 12px 4px 4px;
    max-width: 380px;
    margin: 0 auto;
  }
  .player-hand .player-card {
    margin-left: 0 !important;
    width: clamp(62px, 18.5vw, 74px) !important;
  }
  .player-card.playable {
    transform: translateY(-8px) scale(1.04);
  }

  /* Home Arcade Section Mobile Rules */
  .home-arcade-section {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: min-content !important;
    overflow: visible !important;
    padding: 16px 10px !important;
    border-radius: 20px !important;
    margin: 18px auto 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .arcade-section-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
  }
  .arcade-header-main {
    align-items: center !important;
    text-align: center !important;
  }
  .arcade-main-title {
    font-size: 20px !important;
  }
  .arcade-main-sub {
    font-size: 11.5px !important;
  }
  .arcade-tabs-bar {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .arcade-tab-btn {
    padding: 10px 14px !important;
    border-radius: 14px !important;
    gap: 10px !important;
  }
  .arcade-tab-btn .tab-icon {
    font-size: 18px !important;
  }
  .arcade-tab-btn .tab-title {
    font-size: 11.5px !important;
  }
  .arcade-tab-btn .tab-sub {
    font-size: 9.5px !important;
  }
  .dots-game-container,
  .car-game-arcade-box {
    padding: 14px 10px !important;
    border-radius: 18px !important;
  }
  .dots-title-group h3,
  .arcade-title-group h3 {
    font-size: 16px !important;
  }
  .dots-scoreboard-wrapper {
    gap: 6px !important;
    width: 100% !important;
  }
  .dots-player-card {
    padding: 8px 10px !important;
    gap: 6px !important;
  }
  .dots-card-avatar {
    font-size: 18px !important;
  }
  .dots-player-name {
    font-size: 9.5px !important;
  }
  .dots-player-score {
    font-size: 18px !important;
  }
  .dots-turn-beacon {
    font-size: 7.5px !important;
    padding: 2px 6px !important;
  }
  .dots-controls-bar {
    padding: 8px !important;
    gap: 8px !important;
  }
  .dots-pill-btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
  .dots-board-wrapper {
    width: min(340px, 92vw) !important;
    height: min(340px, 92vw) !important;
  }
  .car-canvas-wrapper {
    max-width: 340px !important;
    width: 100% !important;
  }
  .car-arcade-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    padding-bottom: 10px !important;
  }
  .arcade-stats-hud {
    justify-content: center !important;
  }
  .arcade-stat-pill {
    padding: 6px 10px !important;
    min-width: 70px !important;
  }
}

@media (max-width: 380px) {
  .home-nav-left {
    gap: 4px !important;
  }
  .home-brand-side {
    font-size: 16px !important;
  }
  .points-nav-pill,
  .live-status-pill {
    padding: 2px 5px !important;
    font-size: 8.5px !important;
  }
  .nav-actions-row .gamer-btn {
    font-size: 9px !important;
    padding: 1px 2px !important;
    height: 26px !important;
  }
  .demo-arena-compact-screen .demo-center-card-big {
    width: 56px !important;
    height: 78px !important;
  }
  .demo-arena-compact-screen .demo-card-item {
    width: 44px !important;
  }
  .demo-rules-compact-strip .rule-size-small {
    display: none !important;
  }
  .hero-compact-pills-row .sub-pill-item {
    font-size: 8.5px !important;
    padding: 1px 4px !important;
  }
}

