/* =====================================================
   THESEA89 — Ocean / Sea theme
   Stack: Pure HTML / CSS / Vanilla JS
   Palette: Deep abyss + aqua surface + coral + sun-gold
   ===================================================== */

:root {
  /* Deep sea background */
  --c-bg: #001a36;
  --c-bg-deep: #00102a;
  --c-bg-soft: #003566;
  --c-bg-card: #014b86;
  --c-bg-card-2: #0277b6;

  /* Borders + outlines */
  --c-border: #1f7fc6;
  --c-border-soft: #0f4d80;
  --c-border-glow: rgba(94, 234, 255, 0.45);

  /* Aqua / cyan primary */
  --c-primary: #26d7f5;
  --c-primary-hover: #6ce5fa;
  --c-primary-deep: #0288d1;
  --c-primary-glow: rgba(38, 215, 245, 0.55);

  /* Teal mid-tone */
  --c-teal: #14b8a6;
  --c-teal-glow: rgba(20, 184, 166, 0.5);

  /* Coral accent (replaces some gold) */
  --c-coral: #ff7e67;
  --c-coral-2: #ff9472;
  --c-coral-glow: rgba(255, 126, 103, 0.55);

  /* Sun-gold (warm sunset over water) */
  --c-gold: #ffd66a;
  --c-gold-2: #ffb347;
  --c-gold-3: #d97706;
  --c-gold-glow: rgba(255, 214, 106, 0.6);

  /* Foam / sand */
  --c-foam: #e0f7fa;
  --c-sand: #fff3d6;

  /* Text */
  --c-text: #eaf6ff;
  --c-text-muted: #b4d9ee;
  --c-text-dim: #7fa4c2;

  /* Sizing */
  --navbar-h: 76px;
  --rail-w: 72px;
  --header-h: calc(var(--navbar-h) + env(safe-area-inset-top, 0px));
  --rail-top: calc(var(--header-h) + var(--announce-h, 44px));
  --announce-h: 44px;
  --dock-h: 88px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 14px 40px rgba(0, 18, 40, 0.65);
  --shadow-glow: 0 0 24px rgba(38, 215, 245, 0.45);
  --shadow-coral: 0 0 22px rgba(255, 126, 103, 0.45);
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Kanit", system-ui, sans-serif;
  color: var(--c-text);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(94, 234, 255, 0.22), transparent 55%),
    radial-gradient(ellipse at 90% 30%, rgba(20, 184, 166, 0.18), transparent 50%),
    radial-gradient(ellipse at 10% 70%, rgba(2, 119, 182, 0.25), transparent 55%),
    linear-gradient(180deg, #00284f 0%, #001a36 40%, #00102a 80%, #00081d 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Underwater caustic shimmer overlay */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(94, 234, 255, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(20, 184, 166, 0.06), transparent 70%),
    radial-gradient(ellipse 50% 35% at 50% 90%, rgba(2, 119, 182, 0.08), transparent 70%);
  filter: blur(40px);
  animation: caustics 18s ease-in-out infinite alternate;
  opacity: 0.9;
}

@keyframes caustics {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, -1%) scale(1.05); }
  100% { transform: translate(-1%, 2%) scale(1.02); }
}

body > * { position: relative; z-index: 1; }

@media (max-width: 1024px) {
  body {
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  }
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.text-gold { color: var(--c-gold); }
.text-cyan { color: var(--c-primary); }
.text-coral { color: var(--c-coral); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Ocean effects: bubbles, waves, shimmer
   ============================================================ */
.ocean-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.ocean-bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(94, 234, 255, 0.15) 50%, transparent 70%);
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.6),
    0 0 12px rgba(94, 234, 255, 0.35);
  opacity: 0;
  animation: bubble-rise linear infinite;
}

@keyframes bubble-rise {
  0%   { transform: translate(0, 0) scale(0.7); opacity: 0; }
  10%  { opacity: 0.85; }
  50%  { transform: translate(20px, -50vh) scale(1); opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translate(-20px, -110vh) scale(1.05); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ocean-bubbles { display: none; }
  body::before { animation: none; }
}

/* Wavy divider used at bottom of sections */
.wave-divider {
  position: relative;
  height: 60px;
  margin-top: -1px;
  overflow: hidden;
  pointer-events: none;
}

.wave-divider svg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  animation: wave-flow 14s linear infinite;
}

@keyframes wave-flow {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Subtle shimmer for cards / highlights */
@keyframes shimmer {
  0%, 100% { box-shadow: 0 0 14px rgba(94, 234, 255, 0.25); }
  50%      { box-shadow: 0 0 22px rgba(94, 234, 255, 0.45); }
}

/* Gentle swim/sway animation for icons */
@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-4px) rotate(2deg); }
}

/* ============================================================
   1.  Sticky top navbar
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: calc(var(--navbar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background:
    linear-gradient(180deg, #003566 0%, #001a36 100%);
  border-bottom: 1px solid rgba(94, 234, 255, 0.2);
  box-shadow:
    0 6px 24px rgba(0, 18, 40, 0.5),
    inset 0 -1px 0 rgba(94, 234, 255, 0.2),
    inset 0 1px 0 rgba(94, 234, 255, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  background:
    radial-gradient(ellipse 60% 100% at 20% 0, rgba(94, 234, 255, 0.2), transparent 70%),
    radial-gradient(ellipse 60% 100% at 80% 0, rgba(20, 184, 166, 0.18), transparent 70%);
  pointer-events: none;
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #0288d1, #001a36 70%);
  border: 1px solid rgba(94, 234, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 0 14px rgba(94, 234, 255, 0.5),
    inset 0 0 12px rgba(20, 184, 166, 0.3);
  animation: shimmer 4s ease-in-out infinite;
}

.brand__logo img { max-width: 78%; max-height: 78%; object-fit: contain; }

.brand__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(180deg, var(--c-foam), var(--c-primary) 50%, var(--c-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px var(--c-primary-glow));
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: 24px;
  flex: 1;
}

.main-nav a {
  position: relative;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: 999px;
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--c-gold);
  background: linear-gradient(180deg, rgba(63, 182, 255, 0.1), rgba(63, 182, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(63, 182, 255, 0.25);
}

.header-cta {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
              rgba(255, 255, 255, 0.4), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.btn:hover::after { opacity: 1; }

.btn--primary {
  background: linear-gradient(180deg, #26d7f5, #0288d1 50%, #015a87);
  color: #fff;
  box-shadow:
    0 6px 16px rgba(38, 215, 245, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #5dd8e8, #26d7f5 50%, #0288d1);
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(38, 215, 245, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--gold {
  background: linear-gradient(180deg, var(--c-gold), var(--c-gold-2) 60%, var(--c-gold-3));
  color: #2a1c00;
  box-shadow:
    0 6px 16px rgba(255, 179, 71, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--gold:hover {
  background: linear-gradient(180deg, #ffe089, var(--c-gold) 60%, var(--c-gold-2));
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 179, 71, 0.6);
}

.btn--lg { padding: 14px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* Hamburger for mobile */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: rgba(10, 29, 68, 0.7);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .menu-toggle { display: flex; }

  .site-header__inner {
    position: relative;
    z-index: 1;
    padding: 0 12px 0 8px;
    gap: 8px;
  }

  .header-cta { display: none; }

  .menu-toggle {
    position: relative;
    z-index: 120;
  }

  .brand {
    position: relative;
    z-index: 120;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h, calc(var(--navbar-h) + env(safe-area-inset-top, 0px)));
    left: 0;
    right: 0;
    flex: none;
    flex-direction: column;
    background: linear-gradient(180deg, #051434, #020a22);
    border-bottom: 1px solid var(--c-border-soft);
    padding: 12px 18px 18px;
    gap: 4px;
    margin-left: 0;
    transform: translateY(calc(-100% - var(--header-h, 80px)));
    transition: transform 0.35s ease, visibility 0.35s ease;
    z-index: 100;
    max-height: calc(100vh - var(--header-h, var(--navbar-h)) - var(--dock-h));
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
  }

  .main-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a { padding: 12px 18px; font-size: 16px; }

  .announce {
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
  }

  .announce__inner {
    max-width: 100%;
    margin: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero { padding-top: 28px; padding-bottom: 36px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .brand__name { display: none; }
  .brand__logo { width: 48px; height: 48px; }
}

@media (max-width: 400px) {
  :root { --rail-w: 64px; }
  .m-game-rail__box img { width: 36px; height: 36px; }
  .m-game-rail__label { font-size: 9px; }
  .m-game-rail__box { padding: 8px 4px; gap: 4px; }
}

/* ============================================================
   2.  Announcement marquee
   ============================================================ */
.announce {
  position: relative;
  background:
    linear-gradient(90deg,
      rgba(38, 215, 245, 0.18) 0%,
      rgba(20, 184, 166, 0.18) 50%,
      rgba(255, 214, 106, 0.18) 100%);
  border-bottom: 1px solid rgba(94, 234, 255, 0.25);
  overflow: hidden;
}

.announce::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'><path fill='%2326d7f5' fill-opacity='0.18' d='M0 18 Q50 30 100 18 T200 18 T300 18 T400 18 L400 0 L0 0 Z'/></svg>") repeat-x;
  background-size: 200px 40px;
  pointer-events: none;
  animation: wave-flow 16s linear infinite;
  opacity: 0.7;
}

.announce__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.announce__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--c-gold), var(--c-coral));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a1c00;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 214, 106, 0.55);
  animation: sway 3s ease-in-out infinite;
}

.announce__text {
  display: flex;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  color: var(--c-text-muted);
  font-size: 14px;
}

.announce__text span { padding-right: 48px; }
.announce__text strong { color: var(--c-gold); }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   3.  Hero section
   ============================================================ */
.hero {
  position: relative;
  padding: 56px 18px 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(255, 214, 106, 0.18), transparent 45%),
    radial-gradient(circle at 25% 70%, rgba(38, 215, 245, 0.28), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(20, 184, 166, 0.22), transparent 60%);
  pointer-events: none;
  animation: caustics 12s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path fill='%2326d7f5' fill-opacity='0.15' d='M0 30 Q150 60 300 30 T600 30 T900 30 T1200 30 L1200 80 L0 80 Z'/><path fill='%230288d1' fill-opacity='0.18' d='M0 45 Q150 15 300 45 T600 45 T900 45 T1200 45 L1200 80 L0 80 Z'/></svg>") repeat-x;
  background-size: 1200px 80px;
  pointer-events: none;
  z-index: 0;
}

.hero__container {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero__copy {
  text-align: center;
}

.hero__brand-logo {
  width: 200px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 22px var(--c-primary-glow));
  animation: sway 5s ease-in-out infinite;
}

.hero__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--c-text-muted);
  font-size: 14px;
  letter-spacing: 1px;
}

.hero__divider::before,
.hero__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
}

.hero__title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #5dd8e8 40%, #26d7f5 70%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(38, 215, 245, 0.45));
}

.hero__desc {
  color: var(--c-text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 auto 28px;
  max-width: 520px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__media-img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--c-border-soft);
}

.hero__spark {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 50% 50%, rgba(38, 215, 245, 0.5), transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(20, 184, 166, 0.3), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

.hero__media-img {
  animation: sway 7s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.7;  transform: scale(1.05); }
}

@media (max-width: 900px) {
  .hero { padding: 40px 18px 48px; }
  .hero__container { grid-template-columns: 1fr; gap: 24px; }
  .hero__brand-logo { width: 140px; margin-bottom: 12px; }
}

/* ============================================================
   4.  Banner slider
   ============================================================ */
.banner {
  max-width: 1180px;
  margin: 0 auto 48px;
  padding: 0 18px;
}

.banner__slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg-card);
  border: 1px solid rgba(94, 234, 255, 0.3);
  box-shadow:
    0 14px 40px rgba(0, 18, 40, 0.65),
    0 0 0 1px rgba(94, 234, 255, 0.15),
    inset 0 1px 0 rgba(94, 234, 255, 0.2);
}

.banner__slider::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(0, 26, 54, 0.4));
  z-index: 1;
  border-radius: var(--radius-lg);
}

.banner__track,
#sliderTrack {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.banner__track > .swiper-slide,
#sliderTrack > .swiper-slide {
  flex: 0 0 100%;
  position: relative;
}

.banner__track img,
#sliderTrack img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  display: block;
}

.banner__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 26, 54, 0.75);
  color: var(--c-primary);
  border: 1px solid rgba(94, 234, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 3;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 12px rgba(38, 215, 245, 0.3);
}

.banner__nav:hover {
  background: var(--c-primary-deep);
  color: #fff;
  box-shadow: 0 0 18px rgba(38, 215, 245, 0.6);
  transform: translateY(-50%) scale(1.08);
}
.banner__nav--prev { left: 14px; }
.banner__nav--next { right: 14px; }

.banner__dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.banner__dots .swiper-pagination-bullet,
.banner__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.banner__dots .active {
  width: 26px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-teal));
  box-shadow: 0 0 10px rgba(38, 215, 245, 0.6);
}

@media (max-width: 700px) {
  .banner__track img,
  #sliderTrack img { aspect-ratio: 16 / 9; }
  .banner__nav { width: 36px; height: 36px; }
}

/* ============================================================
   5.  Quick stats (jackpot.js targets)
   ============================================================ */
.stats {
  max-width: 1180px;
  margin: 0 auto 48px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card {
  background:
    linear-gradient(180deg, rgba(2, 119, 182, 0.4), rgba(0, 26, 54, 0.85)),
    radial-gradient(circle at 50% 0%, rgba(94, 234, 255, 0.2), transparent 60%);
  border: 1px solid rgba(94, 234, 255, 0.3);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(94, 234, 255, 0.2),
    0 8px 24px rgba(0, 18, 40, 0.4);
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(94, 234, 255, 0.3),
    0 0 26px rgba(38, 215, 245, 0.35);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20' preserveAspectRatio='none'><path fill='%2326d7f5' fill-opacity='0.18' d='M0 8 Q50 14 100 8 T200 8 T300 8 T400 8 L400 0 L0 0 Z'/></svg>") repeat-x;
  background-size: 200px 20px;
  pointer-events: none;
  animation: wave-flow 10s linear infinite;
}

.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), var(--c-teal), transparent);
}

.stat-card__label {
  position: relative;
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.stat-card__value {
  position: relative;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff, var(--c-gold) 60%, var(--c-gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 0 12px rgba(255, 214, 106, 0.45));
}

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
}

/* ============================================================
   6.  Game tabs (categories: hot / slot / casino / sport / fish)
   ============================================================ */
.game-section {
  max-width: 1180px;
  margin: 0 auto 56px;
  padding: 0 18px;
}

.game-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.game-tab {
  background:
    linear-gradient(180deg, rgba(2, 119, 182, 0.3), rgba(0, 26, 54, 0.85));
  border: 1px solid rgba(94, 234, 255, 0.25);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.game-tab:hover {
  border-color: rgba(94, 234, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(38, 215, 245, 0.3);
}

.game-tab.is-active {
  background: linear-gradient(180deg, #0288d1, #014b86 60%, #001a36);
  border-color: var(--c-gold);
  box-shadow:
    0 0 24px rgba(255, 214, 106, 0.35),
    inset 0 1px 0 rgba(94, 234, 255, 0.3);
}

.game-tab__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #0288d1, #001a36 70%);
  border: 1px solid rgba(94, 234, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: inset 0 0 12px rgba(20, 184, 166, 0.3);
}

.game-tab.is-active .game-tab__icon {
  background: radial-gradient(circle at 40% 30%, #ffd66a, #d97706 70%);
  border-color: var(--c-gold);
  box-shadow:
    0 0 20px var(--c-gold-glow),
    inset 0 0 12px rgba(255, 255, 255, 0.3);
  animation: sway 3s ease-in-out infinite;
}

.game-tab__icon img { width: 60%; height: 60%; object-fit: contain; }

.game-tab__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-muted);
  transition: color var(--transition);
}

.game-tab.is-active .game-tab__label { color: var(--c-gold); }

@media (max-width: 700px) {
  .game-tabs { grid-template-columns: repeat(3, 1fr); }
  .game-tab__icon { width: 52px; height: 52px; }
  .game-tab__label { font-size: 12px; }
}

/* Hide desktop tab row on mobile — use left rail instead */
@media (max-width: 1024px) {
  .game-tabs { display: none; }
}

/* Tab content panels */
.game-panels { position: relative; }
.game-panel { display: none; }
.game-panel.is-active { display: block; animation: fadeIn 0.35s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-title {
  text-align: center;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff, var(--c-primary) 60%, var(--c-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  letter-spacing: 1px;
  filter: drop-shadow(0 2px 12px rgba(38, 215, 245, 0.45));
}

.panel-title::before,
.panel-title::after {
  content: "🌊";
  background: none;
  -webkit-text-fill-color: initial;
  margin: 0 12px;
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(38, 215, 245, 0.6));
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 900px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.game-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 119, 182, 0.35), rgba(0, 26, 54, 0.9));
  border: 1px solid rgba(94, 234, 255, 0.25);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow:
    inset 0 1px 0 rgba(94, 234, 255, 0.18),
    0 6px 18px rgba(0, 18, 40, 0.45);
}

.game-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 60%;
  height: 200%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: rotate(20deg) translateX(-150%);
  pointer-events: none;
  transition: transform 0.7s ease;
  z-index: 2;
}

.game-card:hover::before { transform: rotate(20deg) translateX(250%); }

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 234, 255, 0.7);
  box-shadow:
    0 18px 36px rgba(0, 18, 40, 0.6),
    0 0 0 1px rgba(94, 234, 255, 0.5),
    0 0 28px rgba(38, 215, 245, 0.35);
}

.game-card img {
  width: 100%;
  height: auto;
  display: block;
}

.game-card__caption {
  padding: 10px 12px;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
  color: var(--c-foam);
  background: linear-gradient(180deg, transparent, rgba(0, 26, 54, 0.85));
  border-top: 1px solid rgba(94, 234, 255, 0.2);
  position: relative;
  z-index: 1;
}

.game-card:hover .game-card__caption {
  color: var(--c-primary);
  text-shadow: 0 0 8px rgba(38, 215, 245, 0.5);
}

/* ============================================================
   7.  Promotion carousel
   ============================================================ */
.promo-carousel {
  max-width: 1180px;
  margin: 0 auto 56px;
  padding: 0 18px;
}

.promo-carousel__title {
  text-align: center;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff, var(--c-gold) 60%, var(--c-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
  filter: drop-shadow(0 2px 10px rgba(255, 214, 106, 0.4));
}

.promo-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: var(--c-bg-card);
}

.promo-carousel__track {
  display: flex;
  gap: 14px;
  padding: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.promo-carousel__track::-webkit-scrollbar { display: none; }

.promo-carousel__slide {
  flex: 0 0 auto;
  width: min(360px, 78vw);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-card-2);
  border: 1px solid var(--c-border-soft);
  transition: transform var(--transition);
}

.promo-carousel__slide:hover { transform: translateY(-4px); }

.promo-carousel__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.promo-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(2, 10, 34, 0.8);
  color: var(--c-primary);
  border: 1px solid var(--c-border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition);
}

.promo-carousel__nav:hover { background: var(--c-primary-deep); color: #fff; }
.promo-carousel__nav--prev { left: 8px; }
.promo-carousel__nav--next { right: 8px; }

/* ============================================================
   8.  About section
   ============================================================ */
.about {
  position: relative;
  max-width: 1180px;
  margin: 0 auto 56px;
  padding: 32px 18px;
  background:
    linear-gradient(180deg, rgba(2, 119, 182, 0.25), rgba(0, 26, 54, 0.7));
  border: 1px solid rgba(94, 234, 255, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(94, 234, 255, 0.2);
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path fill='%2326d7f5' fill-opacity='0.12' d='M0 25 Q150 50 300 25 T600 25 T900 25 T1200 25 L1200 0 L0 0 Z'/></svg>") repeat-x;
  background-size: 1200px 60px;
  pointer-events: none;
  animation: wave-flow 18s linear infinite;
}

.about__head {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
}

.about__head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  background: linear-gradient(180deg, #ffffff, var(--c-primary) 60%, var(--c-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 10px rgba(38, 215, 245, 0.4));
}

.about__head p { color: var(--c-text-muted); max-width: 640px; margin: 0 auto; }

.about__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) { .about__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .about__grid { grid-template-columns: 1fr; } }

.about-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(2, 119, 182, 0.3), rgba(0, 26, 54, 0.9));
  border: 1px solid rgba(94, 234, 255, 0.25);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: inset 0 1px 0 rgba(94, 234, 255, 0.15);
}

.about-card:hover {
  border-color: rgba(94, 234, 255, 0.6);
  transform: translateY(-5px);
  box-shadow:
    0 14px 28px rgba(0, 18, 40, 0.5),
    0 0 22px rgba(38, 215, 245, 0.3);
}

.about-card__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #26d7f5, #0288d1 50%, #001a36 90%);
  border: 1px solid rgba(94, 234, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    inset 0 0 14px rgba(20, 184, 166, 0.4),
    0 0 16px rgba(38, 215, 245, 0.3);
}

.about-card:hover .about-card__icon img {
  animation: sway 2.5s ease-in-out infinite;
}

.about-card__icon img { width: 60%; height: 60%; object-fit: contain; }

.about-card h3 {
  font-size: 16px;
  color: var(--c-primary);
  margin-bottom: 8px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(38, 215, 245, 0.4);
}

.about-card p { font-size: 13px; color: var(--c-text-muted); line-height: 1.65; }

/* ============================================================
   9.  Provider marquee
   ============================================================ */
.providers {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 24px 18px;
  background: linear-gradient(180deg, rgba(10, 29, 68, 0.55), transparent);
  border-top: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
  overflow: hidden;
}

.providers__title {
  text-align: center;
  color: var(--c-text-muted);
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.providers__viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

.providers__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-x 32s linear infinite;
}

.provider-logo {
  flex-shrink: 0;
  width: 110px;
  height: 80px;
  padding: 8px;
  background: rgba(10, 29, 68, 0.6);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(0.4) brightness(0.95);
  transition: all var(--transition);
}

.provider-logo:hover { filter: none; transform: translateY(-3px); border-color: var(--c-border-glow); }
.provider-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

@keyframes scroll-x {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   10. Footer
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: auto;
  background:
    linear-gradient(180deg, #001a36 0%, #00102a 60%, #000814 100%);
  border-top: 1px solid rgba(94, 234, 255, 0.25);
  padding: 80px 18px 100px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path fill='%2326d7f5' fill-opacity='0.18' d='M0 30 Q150 0 300 30 T600 30 T900 30 T1200 30 L1200 0 L0 0 Z'/><path fill='%230288d1' fill-opacity='0.18' d='M0 40 Q150 18 300 40 T600 40 T900 40 T1200 40 L1200 0 L0 0 Z'/></svg>") repeat-x;
  background-size: 1200px 60px;
  pointer-events: none;
  animation: wave-flow 22s linear infinite;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

.footer-brand img { width: 140px; margin-bottom: 14px; }
.footer-brand p { color: var(--c-text-muted); font-size: 14px; line-height: 1.7; max-width: 420px; }

.footer-col h4 {
  color: var(--c-primary);
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(38, 215, 245, 0.35);
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col a {
  color: var(--c-text-muted);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--c-primary); }

.footer-faq {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 24px;
  background: rgba(10, 29, 68, 0.45);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius);
}

.footer-faq h3 {
  text-align: center;
  background: linear-gradient(180deg, #ffffff, var(--c-primary) 60%, var(--c-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(38, 215, 245, 0.4));
}

.faq-item {
  background: rgba(2, 10, 34, 0.65);
  border: 1px solid var(--c-border-soft);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
  font-weight: 500;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--c-primary);
  font-size: 20px;
  font-weight: 700;
  transition: transform var(--transition);
}

.faq-item[open] summary::after { content: "−"; }

.faq-answer {
  padding: 0 18px 14px;
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--c-border-soft);
}

.footer-bottom p { color: var(--c-text-dim); font-size: 13px; }

/* ============================================================
   11. Mobile left game rail (Poseidon-style)
   ============================================================ */
.m-game-rail {
  display: none;
  position: fixed;
  left: 0;
  top: var(--rail-top, var(--header-h));
  bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: var(--rail-w);
  padding: 8px 5px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #002d93 0%, #061334 55%, #02061a 100%);
  border-right: 1px solid rgba(63, 182, 255, 0.25);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
  scrollbar-width: thin;
  scrollbar-color: rgba(63, 182, 255, 0.45) transparent;
}

.m-game-rail::-webkit-scrollbar { width: 4px; }
.m-game-rail::-webkit-scrollbar-thumb {
  background: rgba(63, 182, 255, 0.45);
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .m-game-rail {
    display: flex;
    position: fixed;
  }
}

@media (max-height: 640px) and (max-width: 1024px) {
  .m-game-rail { gap: 4px; padding: 6px 4px; }
  .m-game-rail__box { padding: 6px 4px; }
  .m-game-rail__box img { width: 32px; height: 32px; }
}

.m-game-rail__item {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  color: #fff;
}

.m-game-rail__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 25, 80, 0.5));
  border: 2px solid #2063b9;
  transition: all 0.25s ease;
}

.m-game-rail__box img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.m-game-rail__label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.m-game-rail__item:hover .m-game-rail__box {
  border-color: rgba(63, 182, 255, 0.6);
  box-shadow: 0 0 14px rgba(63, 182, 255, 0.35);
}

.m-game-rail__item.is-active .m-game-rail__box {
  border-color: #fff;
  background: radial-gradient(100% 100% at 50% 0, #66f4fe 0, #3389ff 44%, #143cb4 100%);
  box-shadow: 0 0 20px rgba(66, 160, 255, 0.85);
}

.m-game-rail__item.is-active .m-game-rail__box img {
  animation: bounce-top 2s infinite both;
}

@keyframes bounce-top {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  65% { transform: translateY(-5px); }
}

/* ============================================================
   12. Mobile bottom dock (Poseidon-style)
   ============================================================ */
.m-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  width: auto;
  max-width: 100%;
  margin: 0;
  display: none;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .m-dock {
    display: block;
    left: 0;
    right: 0;
    width: auto;
    margin: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

.m-dock__wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: var(--dock-h);
  max-width: 100vw;
  margin: 0 auto;
  overflow: hidden;
}

.m-dock__side {
  display: flex;
  align-items: flex-end;
  flex: 1;
  height: 70px;
  padding-bottom: 6px;
  background: linear-gradient(180deg, #0e56da, #110b6b);
  border-top: 3px solid #f4eb9a;
  z-index: 2;
}

.m-dock__side--left {
  justify-content: space-evenly;
  border-top-left-radius: 10px;
  border-top-right-radius: 22px;
}

.m-dock__side--right {
  justify-content: space-evenly;
  border-top-right-radius: 10px;
  border-top-left-radius: 22px;
}

.m-dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 50%;
  min-height: 58px;
  color: #fff;
  text-decoration: none;
  position: relative;
}

.m-dock__item img {
  width: 34px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.m-dock__item span {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(10px, 2.8vw, 13px);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-dock__item:hover span {
  text-shadow: 0 0 8px #fff, 0 0 16px rgba(255, 255, 255, 0.6);
}

.m-dock__center {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 74px;
  height: 74px;
  margin: 0 6px 16px;
  padding-bottom: 6px;
  border-radius: 50%;
  background: linear-gradient(182deg, #ffd81a, #b57700);
  color: #fff;
  text-decoration: none;
  animation: dock-jello 3s infinite both;
  flex-shrink: 0;
}

@keyframes dock-jello {
  0%, 100% { transform: scale(1); }
  5% { transform: scale3d(1.12, 0.88, 1); }
  10% { transform: scale3d(0.92, 1.08, 1); }
  15% { transform: scale3d(1.06, 0.94, 1); }
}

.m-dock__center-media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  max-width: 72px;
  height: auto;
  transform: translate(-50%, calc(-50% - 10px));
  pointer-events: none;
}

.m-dock__center-label {
  position: absolute;
  bottom: 5px;
  font-size: 13px;
  font-weight: 400;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.m-dock__cutout {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 50px;
  overflow: hidden;
  pointer-events: none;
}

.m-dock__cutout svg {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 108px;
  transform: translateX(-50%);
}

.m-dock__cutout path {
  fill: url(#dockBarGrad);
}

@media (max-width: 480px) {
  .m-dock__center {
    width: 64px;
    height: 64px;
    margin: 0 4px 12px;
  }
  .m-dock__center-media {
    width: 58px;
    max-width: 58px;
  }
  .m-dock__side { height: 64px; }
  .m-dock__item img {
    width: 28px;
    margin-bottom: 18px;
  }
}

body:not(.is-mobile) { padding-bottom: 0; }

@media (max-width: 1024px) {
  .line-float {
    bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom, 0px));
    right: 10px;
    width: 50px;
    height: 50px;
  }
}

/* ============================================================
   13. Floating LINE
   ============================================================ */
.line-float {
  position: fixed;
  bottom: 100px;
  right: 16px;
  z-index: 30;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #06c755;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 22px rgba(6, 199, 85, 0.5),
    inset 0 0 12px rgba(255, 255, 255, 0.2);
  animation: pulse 2.5s ease-in-out infinite;
}

.line-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(6, 199, 85, 0.6);
  animation: pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

.line-float img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.15); }

@media (min-width: 1025px) { .line-float { bottom: 20px; } }

/* ============================================================
   14. Sub-page styles (promotions / activities)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 60px 18px 36px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  background: linear-gradient(180deg, #fff, var(--c-gold) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.page-hero p { color: var(--c-text-muted); max-width: 580px; margin: 0 auto; }

.page-grid {
  max-width: 1180px;
  margin: 0 auto 48px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .page-grid { grid-template-columns: 1fr; } }

.promo-item,
.activity-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--c-bg-card), #050f2d);
  border: 1px solid var(--c-border-soft);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  cursor: pointer;
}

.promo-item:hover,
.activity-item:hover {
  transform: translateY(-4px);
  border-color: var(--c-border-glow);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.promo-item__img-wrap,
.activity-item__img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-bg-deep);
}

.promo-item__img,
.activity-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.promo-item__content,
.activity-item__content {
  padding: 14px 16px 18px;
}

.promo-item__content p,
.activity-item__content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text-muted);
}

.page-grid:empty::after {
  content: "ยังไม่มีข้อมูลในขณะนี้";
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--c-text-dim);
  font-size: 16px;
}

/* ============================================================
   14. Lightbox (image-content.js — banner / promo)
   ============================================================ */
.thesea-lightbox {
  position: fixed !important;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.thesea-lightbox--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.thesea-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}

.thesea-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.thesea-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.thesea-lightbox__figure {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.thesea-lightbox__image-link {
  display: block;
  line-height: 0;
}

.thesea-lightbox__image-link--active {
  cursor: pointer;
}

.thesea-lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.thesea-lightbox__caption {
  color: #e8e8e8;
  font-size: 15px;
  text-align: center;
  max-width: 100%;
  line-height: 1.45;
}

img.thesea-lightbox-trigger,
img.slide__img,
img.promo-item__img {
  cursor: zoom-in;
}

/* ============================================================
   15. Activity modal (used by activity-detail.js)
   ============================================================ */
.thesea-activity-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 26, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.thesea-activity-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.thesea-activity-modal__panel {
  position: relative;
  width: min(96vw, 720px);
  max-height: 92vh;
  background: linear-gradient(180deg, #0a1d44, #02061a);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.thesea-activity-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thesea-activity-modal__scroll { max-height: 92vh; overflow-y: auto; padding: 22px 22px 28px; }
.thesea-activity-modal__image { width: 100%; border-radius: 10px; }
.thesea-activity-modal__details { margin: 16px 0; }
.thesea-activity-modal__details-title { color: var(--c-gold); font-size: 18px; margin-bottom: 8px; text-align: center; }
.thesea-activity-modal__details-body { color: var(--c-text-muted); line-height: 1.7; font-size: 14px; text-align: center; }

.thesea-activity-modal__form-section,
.thesea-activity-modal__comments-section { margin-top: 22px; }

.thesea-activity-modal__form-title,
.thesea-activity-modal__comments-heading {
  color: var(--c-primary); font-size: 16px; margin-bottom: 12px; font-weight: 600;
}

.thesea-activity-modal__field { display: block; margin-bottom: 12px; }
.thesea-activity-modal__field span { display: block; font-size: 13px; margin-bottom: 4px; color: var(--c-text-muted); }
.thesea-activity-modal__field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-border-soft);
  border-radius: 8px;
  background: rgba(2, 6, 26, 0.65);
  color: var(--c-text);
  font-family: inherit;
}

.thesea-activity-modal__submit {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--c-gold), var(--c-gold-2));
  color: #2a1c00;
  font-weight: 700;
}

.thesea-activity-modal__form-error {
  color: #ff6b80; font-size: 13px; margin-top: 8px;
}

.thesea-activity-comment {
  background: rgba(2, 6, 26, 0.6);
  border: 1px solid var(--c-border-soft);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.thesea-activity-comment__row { display: flex; gap: 6px; margin-bottom: 4px; }
.thesea-activity-comment__label { color: var(--c-text-dim); min-width: 64px; }
.thesea-activity-comment__value { color: var(--c-text); flex: 1; word-break: break-word; }
.thesea-activity-modal__comments-loading,
.thesea-activity-modal__comments-empty { color: var(--c-text-dim); text-align: center; padding: 12px; font-size: 14px; }

/* ============================================================
   16. Mobile content layout (override desktop margin:auto)
   ============================================================ */
@media (max-width: 1024px) {
  .hero,
  .banner,
  .stats,
  .game-section,
  .promo-carousel,
  .about,
  .providers,
  .site-footer,
  .page-hero,
  .page-grid,
  body > section:not(:where(.page-hero, .m-game-rail, .m-dock)) {
    width: calc(100% - var(--rail-w));
    max-width: calc(100vw - var(--rail-w));
    margin-left: var(--rail-w);
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  .banner { margin-bottom: 32px; }
  .stats { margin-bottom: 32px; }
  .game-section { margin-bottom: 40px; }

  .hero__container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .banner__slider,
  .game-grid,
  .game-panels,
  .panel-title,
  .stat-card {
    width: 100%;
    max-width: 100%;
  }

  .game-grid {
    margin-left: auto;
    margin-right: auto;
    justify-items: stretch;
  }

  .panel-title {
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
  }

  .promo-carousel__viewport,
  .about__grid {
    max-width: 100%;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--c-primary), var(--c-primary-deep));
  border-radius: 4px;
}
