:root {
  --bg-surface-plane: #0c0303;
  --background-top: #102993;
  --bg-surface-lighter: #102993;
  --bg-surface-darker: #050f3b;
  --bg-surface-sidebar: #140505;
  --bg-sidebar-shadow: #006df3;
  --card-normal: #240909;
  --card-lighter: #3d0f0f;
  --card-darker: #040101;
  --input-bg: #200808;
  --input-stroke: #551515;
  --main-primary: #51b0ff;
  --main-primary-dark: #3658ea;
  --main-secondary: #4096ff;
  --text-title: #ececec;
  --text-body: #8e8e8e;
}

html,
body {
  background-color: var(--bg-surface-plane);
  color: var(--text-title);
  font-family: 'Noto Sans Thai', 'Kanit', ui-sans-serif, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.header-top-gradient {
  background: linear-gradient(180deg, #102993 0%, #091a63 60%, #050f3b 100%);
}

.header-nav-bar {
  background: linear-gradient(180deg, #140505 0%, #0c0303 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-primary-glow {
  background: linear-gradient(180deg, #62bcff 0%, #3d8bff 48%, #2e56e5 100%);
  box-shadow: 0 2px 12px rgba(64, 150, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary-glow:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px rgba(81, 176, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-secondary-dark {
  background: linear-gradient(180deg, #270b0b 0%, #160404 100%);
  border: 1px solid #3c73e8;
  color: #51b0ff;
}

.btn-secondary-dark:hover {
  background: linear-gradient(180deg, #351010 0%, #1d0606 100%);
  border-color: #62bcff;
}

.promo-card-blue {
  background: linear-gradient(180deg, #132c8c 0%, #0a1857 58%, #07103d 100%);
  border: 1px solid rgba(81, 176, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(120, 194, 255, 0.25), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.promo-card-blue:hover {
  border-color: rgba(81, 176, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(120, 194, 255, 0.4), 0 6px 20px rgba(16, 41, 147, 0.45);
}

.section-header-bar {
  background: linear-gradient(90deg, rgba(19, 44, 140, 0.75) 0%, rgba(12, 27, 88, 0.35) 55%, rgba(12, 3, 3, 0) 100%);
  border-left: 3px solid #51b0ff;
}

.rank-outline-num {
  font-family: 'Kanit', sans-serif;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.8px #3f7cf7;
  text-shadow: 0 0 14px rgba(64, 150, 255, 0.32);
  line-height: 0.85;
  user-select: none;
}

.game-card-aspect {
  aspect-ratio: 360 / 472;
}

.game-card-frame-border {
  border: 1.5px solid rgba(240, 194, 96, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.game-card-frame-border:hover {
  border-color: rgba(81, 176, 255, 0.85);
  box-shadow: 0 6px 22px rgba(64, 150, 255, 0.35);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

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

.animate-marquee-left {
  animation: marquee-left 36s linear infinite;
}

.animate-marquee-right {
  animation: marquee-right 40s linear infinite;
}

.animate-marquee-left:hover,
.animate-marquee-right:hover {
  animation-play-state: paused;
}

.nav-active-glow {
  position: relative;
}

.nav-active-glow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  border-radius: 9999px 9999px 0 0;
  background: linear-gradient(90deg, #3658ea, #51b0ff, #3658ea);
  box-shadow: 0 0 12px #51b0ff, 0 -2px 10px rgba(81, 176, 255, 0.6);
}

/* Mobile Curved-Notch Bottom Navigation */
.mobile-nav-active-pill {
  background: linear-gradient(180deg, #240909 0%, #160404 100%);
  border-bottom: 3px solid #51b0ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(81, 176, 255, 0.35);
}

@keyframes coin-spin-3d {
  0% {
    transform: perspective(260px) rotateY(0deg);
  }
  50% {
    transform: perspective(260px) rotateY(180deg);
  }
  100% {
    transform: perspective(260px) rotateY(360deg);
  }
}

.animate-coin-spin {
  animation: coin-spin-3d 4.2s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes chat-radar-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.chat-fab-sphere {
  background: radial-gradient(circle at 35% 30%, #422020 0%, #240909 55%, #120303 100%);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.16);
}

.chat-radar-1 {
  animation: chat-radar-ring 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.chat-radar-2 {
  animation: chat-radar-ring 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) 1.2s infinite;
}
