/* BoutyGame — Exact Mockup Theme & Responsive Arcade UI */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-deep: #060b27;
  --bg-navy: #0a1238;
  --bg-card: #101b4b;
  --bg-card-2: #15225c;
  --gold: #ffd21e;
  --gold-deep: #ffae00;
  --gold-glow: rgba(255, 210, 30, 0.35);
  --purple: #6d3df5;
  --purple-bright: #8b5cf6;
  --cyan: #38bdf8;
  --text-main: #ffffff;
  --text-muted: #b8c6ef;
  --border-subtle: rgba(255, 255, 255, 0.11);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 68% 8%, rgba(49, 84, 214, 0.36) 0%, transparent 62%),
    radial-gradient(ellipse 55% 40% at 15% 18%, rgba(109, 40, 217, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 65% 45% at 50% 95%, rgba(30, 64, 175, 0.24) 0%, transparent 65%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.bg-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ==================== TOP NAVBAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 13, 44, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  cursor: pointer;
}

.brand-avatar {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  overflow: hidden;
  background: #081036;
  border: 2px solid rgba(255, 210, 30, 0.45);
  box-shadow: 0 4px 16px rgba(255, 210, 30, 0.22);
  flex-shrink: 0;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-title .white { color: #ffffff; }
.brand-title .gold { color: var(--gold); }

.brand-tagline {
  font-size: 11.5px;
  font-weight: 500;
  color: #cbd7ff;
  margin-top: 3px;
  letter-spacing: 0.01em;
}

.nav-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* Center Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px 10px;
  color: #b7c5f0;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  transition: color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.18s ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item:hover svg {
  transform: translateY(-1px);
}

.nav-item.active {
  color: #ffffff;
}

.nav-item.active svg {
  color: #ffffff;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3.5px;
  border-radius: 99px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 210, 30, 0.75);
}

/* Right Header Controls */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bc-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 210, 30, 0.16), rgba(255, 174, 0, 0.08));
  border: 1px solid rgba(255, 210, 30, 0.45);
  color: #ffe266;
  font-weight: 800;
  font-size: 13.5px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bc-wallet-pill.pulse-win {
  animation: walletPulse 0.6s ease;
}

@keyframes walletPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.14); box-shadow: 0 0 24px rgba(255, 210, 30, 0.75); }
  100% { transform: scale(1); }
}

.bc-coin-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff199 0%, #ffd21e 50%, #d97706 100%);
  color: #5c2d00;
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8);
}

/* Country Dropdown */
.country-wrap {
  position: relative;
}

.country-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(16, 28, 77, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.country-btn:hover {
  border-color: rgba(255, 210, 30, 0.5);
  background: rgba(25, 42, 108, 0.9);
}

.flag-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.flag-circle span {
  flex: 1;
  height: 100%;
}

.country-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 185px;
  background: #101b4b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.7);
  display: none;
  z-index: 80;
}

.country-menu.open { display: block; }

.country-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: left;
  transition: background 0.15s ease;
}

.country-option:hover,
.country-option.selected {
  background: rgba(255, 210, 30, 0.14);
  color: #ffffff;
}

/* Auth Buttons */
.btn-outline-nav {
  padding: 9px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.26);
  background: rgba(16, 27, 75, 0.6);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.btn-outline-nav:hover {
  border-color: var(--gold);
  background: rgba(255, 210, 30, 0.12);
}

.btn-gold-nav {
  padding: 9px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe34d 0%, #ffbe00 100%);
  color: #091236;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 198, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-gold-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 210, 30, 0.55);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: rgba(16, 28, 77, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.user-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: #091236;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  padding: 26px 0 22px;
  overflow: hidden;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 16px;
  min-height: 325px;
  padding: 24px 10px 18px 8px;
}

.hero-left {
  position: relative;
  z-index: 4;
}

.hero-spark {
  position: absolute;
  top: -18px;
  left: -22px;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-title .line-white {
  display: block;
  color: #ffffff;
}

.hero-title .line-gold {
  display: block;
  color: var(--gold);
  background: linear-gradient(180deg, #ffe75c 0%, #ffc400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 1.35vw, 1.14rem);
  line-height: 1.5;
  color: #dbe4ff;
  max-width: 500px;
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe44d 0%, #ffb700 100%);
  color: #081135;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(255, 196, 0, 0.42), inset 0 2px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 34px rgba(255, 210, 30, 0.6);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: rgba(13, 24, 68, 0.72);
  border: 1.8px solid rgba(255, 210, 30, 0.72);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.18s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 210, 30, 0.14);
  border-color: #ffe047;
  transform: translateY(-2px);
}

.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-artwork-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 52% 50%, #000 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 88% at 52% 50%, #000 66%, transparent 100%);
}

.hero-artwork-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.12) contrast(1.04);
}

.hero-glow-orb {
  position: absolute;
  width: 420px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, rgba(124, 58, 237, 0.22) 45%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 1;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 14.5px;
  font-weight: 700;
  transition: transform 0.15s ease, color 0.15s ease;
}

.section-link:hover {
  color: #fff08a;
  transform: translateX(3px);
}

/* ==================== POPULAR GAMES GRID (6 COLS EXACT MOCKUP) ==================== */
.popular-section {
  padding: 6px 0 22px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
}

.all-games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 0.85;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 14px 10px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 26px rgba(4, 9, 32, 0.55);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  isolation: isolate;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 224, 71, 0.85);
  box-shadow: 0 18px 36px rgba(4, 9, 32, 0.72), 0 0 24px var(--card-glow, rgba(255, 210, 30, 0.35));
}

.game-card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.35s ease;
}

.game-card:hover .game-card-art {
  transform: scale(1.07);
}

.game-card-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 34, 0.62) 0%,
    rgba(6, 10, 34, 0.08) 38%,
    rgba(6, 10, 34, 0.06) 64%,
    rgba(6, 10, 34, 0.68) 100%
  );
}

.game-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffd21e, #ff9900);
  color: #091236;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.game-card-title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  padding: 0 4px;
}

.game-card-play {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe44d 0%, #ffb700 100%);
  color: #081135;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.42), inset 0 1.5px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.game-card:hover .game-card-play {
  transform: scale(1.06);
  filter: brightness(1.06);
}

/* ==================== 3-COLUMN FEATURE CARDS ==================== */
.features-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.12fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.bento-card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(24, 36, 94, 0.88) 0%, rgba(13, 22, 62, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
  box-shadow: 0 14px 32px rgba(3, 8, 28, 0.52);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.16), transparent 55%);
  pointer-events: none;
}

/* Mission Card */
.mission-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  position: relative;
  z-index: 2;
}

.mission-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.mission-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.target-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 18%, #ef4444 19%, #ef4444 40%, #ffffff 41%, #ffffff 58%, #ef4444 59%);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.bento-heading {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.bento-sub {
  font-size: 13px;
  color: #c7d4ff;
  margin-top: 4px;
  line-height: 1.38;
}

.mission-progress-wrap {
  margin-top: 6px;
}

.mission-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mission-bar-track {
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: rgba(7, 13, 44, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  padding: 2px;
}

.mission-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb800, #ffe24d);
  box-shadow: 0 0 12px rgba(255, 210, 30, 0.7);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 0;
}

.mission-count {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.mission-art-col {
  position: relative;
  width: 106px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mission-art-col img {
  width: 98px;
  height: 98px;
  object-fit: cover;
  border-radius: 18px;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 8px 18px rgba(255, 196, 0, 0.35));
}

.bc-reward-chip {
  margin-top: -16px;
  position: relative;
  z-index: 3;
  padding: 6px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffe44d 0%, #ffa800 100%);
  color: #081135;
  font-size: 14.5px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(255, 184, 0, 0.45);
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.bc-reward-chip.claimable {
  animation: claimBounce 1.1s infinite;
  cursor: pointer;
}

@keyframes claimBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 26px rgba(255, 210, 30, 0.9); }
}

/* Boutique Preview Card */
.shop-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  position: relative;
  z-index: 2;
}

.shop-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.shop-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-card-mini {
  height: 44px;
  flex: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-weight: 900;
  font-size: 12.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.brand-card-mini:hover { transform: translateY(-2px); }

.brand-paypal { background: #ffffff; color: #003087; }
.brand-amazon { background: #141925; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.16); flex-direction: column; gap: 1px; }
.brand-gplay { background: #ffffff; color: #0f172a; }

.btn-purple-pill {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5236f3 0%, #8b3dff 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(109, 61, 245, 0.45);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-purple-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.shop-gift-art {
  width: 96px;
  height: 112px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-gift-art img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 18px;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 8px 20px rgba(139, 92, 246, 0.45));
}

/* Leaderboard Preview Card */
.lb-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.lb-mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.lb-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 11px;
  background: rgba(8, 15, 48, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lb-mini-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.rank-medal {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-1 { background: linear-gradient(135deg, #ffe766, #d97706); color: #3d1d00; box-shadow: 0 0 10px rgba(255, 210, 30, 0.55); }
.rank-2 { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #0f172a; }
.rank-3 { background: linear-gradient(135deg, #fdba74, #b45309); color: #3b1700; }
.rank-other { background: rgba(255, 255, 255, 0.12); color: #cbd5e1; }

.lb-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 900;
  color: #091236;
  flex-shrink: 0;
}

.lb-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-score {
  font-size: 14px;
  font-weight: 800;
  color: #ffe266;
  white-space: nowrap;
}

.lb-footer-link {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.lb-footer-link:hover { color: #fff3a1; }

/* ==================== TRUST FOOTER STRIP ==================== */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(11, 20, 56, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 34px;
}

.trust-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #e2eaff;
}

.btn-community-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6338f5 0%, #8645ff 55%, #5b3df5 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(110, 62, 245, 0.48);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-community-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(134, 69, 255, 0.65);
}

/* ==================== CATALOGUE 20 JEUX SECTION ==================== */
.catalog-section {
  padding: 8px 0 60px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

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

.filter-pill {
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(16, 27, 75, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c2d0fb;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.filter-pill:hover {
  border-color: rgba(255, 210, 30, 0.5);
  color: #ffffff;
}

.filter-pill.active {
  background: linear-gradient(180deg, #ffe44d 0%, #ffb700 100%);
  color: #081135;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 198, 0, 0.35);
}

.search-box {
  position: relative;
  min-width: 240px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 999px;
  background: rgba(16, 27, 75, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: var(--gold);
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #93a7e0;
}

/* ==================== TAB VIEWS (BOUTIQUE, MISSIONS, CLASSEMENT, COMMUNAUTÉ) ==================== */
.tab-view {
  display: none;
  padding: 24px 0 70px;
  animation: fadeSlide 0.22s ease;
}

.tab-view.active {
  display: block;
}

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

.view-banner {
  border-radius: 22px;
  background: linear-gradient(135deg, #1b2870 0%, #101949 60%, #26165e 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.view-banner h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 900;
}

.view-banner p {
  color: #c5d3ff;
  font-size: 14.5px;
  margin-top: 4px;
}

/* Shop Cards */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px;
}

.reward-card {
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(22, 34, 88, 0.92), rgba(11, 19, 54, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.reward-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 210, 30, 0.55);
}

.reward-visual {
  height: 92px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.reward-brand-label {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.reward-val-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(6px);
  font-size: 15px;
  font-weight: 900;
}

.reward-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reward-cost {
  font-size: 16px;
  font-weight: 900;
  color: var(--gold);
}

/* Missions List */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.mission-full-card {
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(23, 35, 92, 0.9), rgba(12, 20, 56, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Full Leaderboard */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.podium-card {
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(27, 42, 110, 0.92), rgba(12, 20, 58, 0.96));
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.podium-card.first {
  border-color: rgba(255, 210, 30, 0.7);
  box-shadow: 0 12px 32px rgba(255, 210, 30, 0.18);
  transform: translateY(-6px);
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(14, 24, 68, 0.85);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-table th, .lb-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.lb-table th {
  background: rgba(7, 13, 44, 0.7);
  color: #9cb0e8;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Community */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.post-card {
  border-radius: 18px;
  background: rgba(16, 27, 75, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  margin-bottom: 14px;
}

.post-composer {
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(24, 38, 102, 0.95), rgba(14, 23, 64, 0.95));
  border: 1px solid rgba(255, 210, 30, 0.25);
  padding: 18px;
}

.post-composer textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(6, 11, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  resize: vertical;
  outline: none;
  font-size: 14px;
  margin-bottom: 10px;
}

.post-composer textarea:focus { border-color: var(--gold); }

/* ==================== GAME ARENA MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 8, 28, 0.84);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeInModal 0.2s ease;
}

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

.game-modal {
  width: 100%;
  max-width: 860px;
  max-height: 94vh;
  background: linear-gradient(165deg, #101b52 0%, #091034 100%);
  border: 1.5px solid rgba(255, 210, 30, 0.32);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78), 0 0 40px rgba(109, 61, 245, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(6, 11, 39, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.game-modal-thumb {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.game-modal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: rgba(255, 210, 30, 0.18);
  border-color: var(--gold);
  color: var(--gold);
}

.game-modal-body {
  padding: 18px 20px 22px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-stage-root {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Shared In-Game UI Kit (so all 20 games look ultra-consistent & crisp!) */
.game-hud-bar {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(6, 11, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
}

.hud-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9bb0eb;
  font-weight: 700;
}

.hud-val {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.hud-val.gold { color: var(--gold); }
.hud-val.green { color: #4ade80; }
.hud-val.cyan { color: #38bdf8; }

.game-canvas-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  background: #060c28;
  max-width: 100%;
  touch-action: none;
}

.game-canvas-frame canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.game-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe44d 0%, #ffb700 100%);
  color: #081135;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(255, 196, 0, 0.4);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.game-btn-gold:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.06);
}

.game-btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.game-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.14s ease;
}

.game-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold);
}

.game-btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  color: #042211;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.game-status-banner {
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255, 210, 30, 0.12);
  border: 1px solid rgba(255, 210, 30, 0.35);
  color: #ffe87a;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  max-width: 600px;
}

/* Auth Modal */
.auth-modal {
  width: 100%;
  max-width: 430px;
  background: linear-gradient(160deg, #13205e 0%, #0a1238 100%);
  border: 1.5px solid rgba(255, 210, 30, 0.35);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.72);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(6, 11, 39, 0.7);
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.auth-tab {
  padding: 9px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  color: #a8baf0;
}

.auth-tab.active {
  background: var(--gold);
  color: #081135;
}

.form-field {
  margin-bottom: 13px;
}

.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #c2d0fb;
  margin-bottom: 5px;
}

.form-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(6, 11, 39, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 14.5px;
  outline: none;
}

.form-field input:focus { border-color: var(--gold); }

/* Toast Notifications */
.toast-stack {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(15, 26, 76, 0.96);
  border: 1.5px solid rgba(255, 210, 30, 0.65);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  animation: toastIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 250;
}

/* ==================== MOBILE BOTTOM NAV (EXACT PHONE MOCKUP) ==================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 75;
  background: rgba(8, 14, 48, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
}

.mobile-bottom-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.mob-nav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  color: #9cb0e8;
  font-size: 11px;
  font-weight: 700;
}

.mob-nav-btn svg { width: 21px; height: 21px; }

.mob-nav-btn.active {
  color: var(--gold);
}

.mob-nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--gold);
}

/* Mobile Touch D-Pad helper */
.dpad-controls {
  display: none;
  grid-template-columns: repeat(3, 52px);
  gap: 8px;
  margin-top: 6px;
}

.dpad-btn {
  width: 52px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dpad-btn:active {
  background: var(--gold);
  color: #081135;
}

/* ==================== RÉGIE PUB & GROWTH BAR ==================== */
.ad-slot-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 13px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 26px rgba(4, 9, 32, 0.45);
}

.ad-slot-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.ad-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(6, 11, 39, 0.55);
  border: 1px solid rgba(255, 210, 30, 0.55);
  color: #ffe266;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.ad-headline {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.ad-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.ad-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: #ffd21e;
  color: #081135;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.14s ease;
}

.ad-cta:hover { transform: scale(1.04); }

.growth-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.growth-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 32, 86, 0.92), rgba(11, 18, 52, 0.96));
  border: 1px solid rgba(255, 210, 30, 0.32);
}

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

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1180px) {
  .topbar-inner { padding: 0 14px; gap: 8px; }
  .brand-avatar { width: 42px; height: 42px; }
  .brand-title { font-size: 20px; }
  .nav-divider { display: none; }
  .nav-item { padding: 8px 9px 10px; font-size: 12px; }
  .btn-outline-nav { padding: 8px 12px; font-size: 13px; }
  .btn-gold-nav { padding: 8px 14px; font-size: 13px; }
  .country-btn { padding: 7px 10px; font-size: 12.5px; }
  .bc-wallet-pill { padding: 6px 10px; font-size: 12.5px; }
  .popular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .all-games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .features-grid .bento-card:last-child { grid-column: span 2; }
}

@media (max-width: 860px) {
  .topbar-inner { height: 64px; padding: 0 12px; gap: 8px; }
  .brand-lockup { gap: 8px; min-width: 0; }
  .brand-avatar { width: 38px; height: 38px; border-radius: 11px; }
  .brand-title { font-size: 18px; }
  .topbar-right { gap: 6px; }
  .bc-wallet-pill { padding: 5px 9px; font-size: 12px; gap: 4px; }
  .bc-coin-dot { width: 17px; height: 17px; font-size: 8px; }
  .mobile-menu-btn { width: 36px; height: 36px; border-radius: 10px; }
  .desktop-nav, .btn-outline-nav, .btn-gold-nav, .country-wrap { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 76px; }
  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 14px 0 8px;
    gap: 14px;
  }
  .hero-subtitle { margin: 0 auto 18px; }
  .hero-actions { justify-content: center; }
  .btn-hero-primary { width: 100%; max-width: 340px; }
  .btn-hero-secondary { width: 100%; max-width: 340px; }
  .hero-spark { display: none; }
  .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .all-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .features-grid .bento-card:last-child { grid-column: span 1; }
  .podium-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .brand-tagline { display: none; }
  .dpad-controls { display: grid; }
}
