/* ==========================================================
   Kuiper999 - Space Theme
   Stack: HTML / CSS / Vanilla JS
   Palette: Deep space + Nebula purple/cyan + Gold stars
   ========================================================== */

:root {
  /* Cosmic blues / purples (replace old "purple-*" tokens) */
  --purple-1: #1e1b4b;   /* deep space indigo */
  --purple-2: #4338ca;   /* cosmic blue */
  --purple-3: #7c3aed;   /* nebula purple */
  --purple-glow: rgba(124, 58, 237, 0.45);

  /* Star / nebula accents */
  --nebula-cyan: #06b6d4;
  --nebula-pink: #ec4899;
  --star: #ffffff;
  --star-glow: rgba(180, 220, 255, 0.85);

  /* Gold for highlights (still works great on dark space bg) */
  --gold-1: #ffd700;
  --gold-2: #fff8c8;
  --gold-3: #d4a017;

  /* Replace "red-*" with deep nebula tones (kept names for backwards-compat) */
  --red-1: #1e3a8a;   /* deep navy */
  --red-2: #3b82f6;   /* cosmic blue */

  /* Space backgrounds */
  --bg-1: #02030d;
  --bg-2: #050a24;
  --bg-3: #0a1130;
  --card: #0f1437;
  --card-border: rgba(124, 58, 237, 0.40);

  --text: #e8ecff;
  --text-muted: #9aa4d6;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================================
   DEEP-SPACE BACKGROUND
   Multi-layer cosmic background: nebula glows + tiny static stars
   ========================================================== */
body {
  margin: 0;
  font-family: "Kanit", "Sukhumvit Set", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg-1);
  background-image:
    /* nebula glows */
    radial-gradient(ellipse 60% 50% at 18% 20%, rgba(124, 58, 237, 0.35), transparent 70%),
    radial-gradient(ellipse 50% 40% at 82% 35%, rgba(6, 182, 212, 0.22), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(236, 72, 153, 0.18), transparent 70%),
    /* dense star fields (tiny twinkling dots) */
    radial-gradient(1.5px 1.5px at 10% 12%, #fff, transparent 60%),
    radial-gradient(1px 1px at 22% 28%, #cfe8ff, transparent 60%),
    radial-gradient(1.5px 1.5px at 35% 18%, #fff, transparent 60%),
    radial-gradient(1px 1px at 45% 65%, #b5d8ff, transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 8%, #fff, transparent 60%),
    radial-gradient(1px 1px at 72% 42%, #d6e9ff, transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 70%, #fff, transparent 60%),
    radial-gradient(1px 1px at 92% 22%, #b5d8ff, transparent 60%),
    radial-gradient(1px 1px at 12% 80%, #fff, transparent 60%),
    radial-gradient(1px 1px at 30% 92%, #cfe8ff, transparent 60%),
    radial-gradient(1.5px 1.5px at 55% 55%, #fff, transparent 60%),
    radial-gradient(1px 1px at 78% 88%, #b5d8ff, transparent 60%),
    /* deep base gradient */
    linear-gradient(180deg, #02030d 0%, #060a2a 45%, #02030d 100%);
  background-size:
    100% 100%, 100% 100%, 100% 100%,
    240px 240px, 200px 200px, 280px 280px, 220px 220px,
    260px 260px, 240px 240px, 300px 300px, 200px 200px,
    260px 260px, 220px 220px, 240px 240px, 280px 280px,
    100% 100%;
  background-position: center;
  background-repeat: no-repeat, no-repeat, no-repeat,
    repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat,
    repeat, repeat, repeat, repeat,
    no-repeat;
  background-attachment: fixed;
  line-height: 1.6;
  padding-bottom: 90px;
  overflow-x: hidden;
  animation: cosmic-drift 60s ease-in-out infinite alternate;
}

@keyframes cosmic-drift {
  0%   { background-position-x: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, center; }
  100% { background-position-x: 0, 0, 0, 40px, -30px, 50px, -25px, 35px, -45px, 20px, -40px, 30px, -20px, 45px, -35px, center; }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: 16px;
}

.text-gold {
  color: var(--gold-1);
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-purple {
  color: var(--purple-3);
}

.text-muted {
  color: var(--text-muted);
}

/* ==========================================================
   FLOATING STARS (rising particles)
   Tiny white dots drift from the bottom slowly upward,
   twinkling as they go. Sits behind all content.
   ========================================================== */
#particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -10px;
  background: var(--star);
  border-radius: 50%;
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.85),
    0 0 10px var(--star-glow),
    0 0 18px rgba(124, 58, 237, 0.45);
  animation-name: star-rise, star-twinkle;
  animation-iteration-count: infinite, infinite;
  animation-timing-function: linear, ease-in-out;
}

@keyframes star-rise {
  0%   { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-110vh) translateX(var(--drift, 0)); }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* Bigger feature stars with 4-point cross glow */
.particle.particle--bright {
  background: var(--star);
  box-shadow:
    0 0 6px #fff,
    0 0 14px var(--star-glow),
    0 0 24px rgba(124, 58, 237, 0.6);
}

.particle.particle--bright::before,
.particle.particle--bright::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
  border-radius: 2px;
}

.particle.particle--bright::before {
  width: 1px;
  height: 14px;
}

.particle.particle--bright::after {
  width: 14px;
  height: 1px;
}

/* Occasional shooting star */
.shooting-star {
  position: fixed;
  top: var(--start-y, 10%);
  left: var(--start-x, -10%);
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff, 0 0 18px var(--star-glow);
  z-index: 0;
  pointer-events: none;
  animation: shoot 1.6s ease-out forwards;
}

.shooting-star::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: translateY(-50%);
  filter: blur(0.3px);
}

@keyframes shoot {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(120vw, 40vh); opacity: 0; }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 50px;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--login,
.btn--gold {
  background: linear-gradient(225deg, var(--gold-1) 0%, var(--gold-2) 100%);
  color: #000;
}

.btn--login:hover,
.btn--gold:hover {
  background: linear-gradient(225deg, var(--gold-2) 0%, var(--gold-1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.45);
}

.btn--register {
  background: linear-gradient(225deg, var(--red-1) 0%, var(--red-2) 100%);
  color: #fff;
}

.btn--register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 39, 45, 0.55);
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10, 4, 26, 0.96), rgba(20, 4, 31, 0.92));
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--red-1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header__inner {
  position: relative;
}

.bg-announce,
.bg-slant,
.bg-line {
  display: none;
}

.header__top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 10px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 2px 8px var(--purple-glow));
}

.logo__img--footer {
  height: 64px;
}

.nav {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.nav__link {
  padding: 8px 14px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav__link:hover,
.nav__link.active {
  color: #fff;
  border-color: var(--purple-3);
  background: rgba(160, 32, 240, 0.15);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--purple-3);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-1);
  border-radius: 2px;
}

.header__bottom {
  background: linear-gradient(90deg, var(--red-1), #1e1b4b, var(--red-1));
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.announce-label {
  font-weight: 600;
  white-space: nowrap;
}

.announce-marquee {
  flex: 1;
  color: #fff !important;
  font-size: 0.95rem;
}

/* ==========================================================
   SIDEBAR DRAWER (mobile menu)
   ========================================================== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(280px, 80vw);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border-right: 2px solid var(--purple-3);
  z-index: 60;
  transform: translateX(-100%);
  transition: transform var(--transition);
  padding: 20px;
  overflow-y: auto;
}

.sidebar-drawer.active {
  transform: translateX(0);
}

.sidebar-drawer__logo {
  display: block;
  margin-bottom: 18px;
  text-align: center;
}

.sidebar-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-drawer__nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: var(--transition);
}

.sidebar-drawer__nav a:hover,
.sidebar-drawer__nav a.active {
  background: rgba(160, 32, 240, 0.2);
  color: var(--gold-1);
}

body.sidebar-open {
  overflow: hidden;
}

/* ==========================================================
   HERO / PROMO SLIDER
   ========================================================== */
.promo-section {
  padding: 24px 0 12px;
  position: relative;
  z-index: 1;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-1), var(--purple-3));
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.25),
    0 12px 40px rgba(55, 14, 149, 0.55);
  margin-bottom: 18px;
}

.hero-slider__viewport {
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  position: relative;
}

.hero-slider__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slider__viewport.is-dragging .hero-slider__track {
  transition: none;
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
}

.slide__inner {
  display: block;
}

.slide__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}

/* ===== Image lightbox (admin-driven banner / promo / activity images) ===== */
.kuiper-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;
}

.kuiper-lightbox--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.kuiper-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}

.kuiper-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;
}

.kuiper-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.kuiper-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;
}

.kuiper-lightbox__image-link {
  display: block;
  line-height: 0;
}

.kuiper-lightbox__image-link--active {
  cursor: pointer;
}

.kuiper-lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.kuiper-lightbox__caption {
  color: #e8e8e8;
  font-size: 15px;
  text-align: center;
  max-width: 100%;
  line-height: 1.45;
}

img.kuiper-lightbox-trigger {
  cursor: zoom-in;
}

/* ===== Activity fullscreen modal + comments ===== */
.kuiper-activity-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  flex-direction: column;
  background: #0f0f12;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.kuiper-activity-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.kuiper-activity-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100vh;
  width: 100%;
}

.kuiper-activity-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  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;
}

.kuiper-activity-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.kuiper-activity-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 56px 16px 24px;
}

.kuiper-activity-modal__image-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.kuiper-activity-modal__image-link {
  display: inline-block;
  max-width: 100%;
  cursor: pointer;
}

.kuiper-activity-modal__image {
  display: block;
  max-width: 100%;
  max-height: 45vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.kuiper-activity-modal__details {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.kuiper-activity-modal__details-title {
  text-align: center;
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.kuiper-activity-modal__details-body {
  text-align: center;
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.kuiper-activity-modal__form-section {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.kuiper-activity-modal__form-title,
.kuiper-activity-modal__comments-heading {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f3f4f6;
}

.kuiper-activity-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kuiper-activity-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kuiper-activity-modal__field span {
  font-size: 14px;
  color: #d1d5db;
}

.kuiper-activity-modal__field input {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}

.kuiper-activity-modal__field input:focus {
  outline: 2px solid var(--purple, #a855f7);
  outline-offset: 1px;
}

.kuiper-activity-modal__submit {
  align-self: flex-start;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.kuiper-activity-modal__submit:hover:not(:disabled) {
  filter: brightness(1.08);
}

.kuiper-activity-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.kuiper-activity-modal__form-error {
  margin: 0;
  font-size: 14px;
  color: #fca5a5;
}

.kuiper-activity-modal__comments-section {
  padding-bottom: 24px;
}

.kuiper-activity-modal__comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kuiper-activity-comment {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}

.kuiper-activity-comment__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.kuiper-activity-comment__row:last-child {
  margin-bottom: 0;
}

.kuiper-activity-comment__label {
  color: #9ca3af;
  flex: 0 0 auto;
  min-width: 72px;
}

.kuiper-activity-comment__value {
  color: #f3f4f6;
  flex: 1 1 auto;
  word-break: break-word;
}

.kuiper-activity-modal__comments-loading,
.kuiper-activity-modal__comments-empty {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  padding: 12px 0;
}

.kuiper-activity-modal__comments-sentinel {
  height: 1px;
}

img.activity-item__img {
  cursor: pointer;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: var(--gold-1);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--purple-3);
  color: #fff;
}

.slider-arrow--prev { left: 14px; }
.slider-arrow--next { right: 14px; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--gold-1);
  border-color: var(--gold-1);
  transform: scale(1.3);
}

/* ==========================================================
   HIGHWAY (auto-scroll logo strip)
   ========================================================== */
.highway-row {
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
  padding: 10px;
  margin-bottom: 18px;
  overflow: hidden;
}

.highway-slider {
  overflow: hidden;
}

.highway-lane {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: lane-scroll 28s linear infinite;
}

.highway-img {
  height: 56px;
  width: auto;
  border-radius: 6px;
  flex: 0 0 auto;
}

@keyframes lane-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.promo-caption {
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  font-weight: 700;
  margin: 8px 0 12px;
}

/* ==========================================================
   GAME HUB (tabs + panels)
   ========================================================== */
.game-hub {
  padding: 28px 0;
  position: relative;
  z-index: 1;
}

.game-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50px;
  border: 1px solid var(--card-border);
}

.game-tabs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.game-tabs__icon {
  width: 28px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px var(--purple-glow));
}

.game-tabs__item:hover {
  color: #fff;
  background: rgba(160, 32, 240, 0.2);
}

.game-tabs__item.active {
  background: linear-gradient(135deg, var(--purple-1), var(--purple-3));
  color: #fff;
  box-shadow: 0 4px 14px var(--purple-glow);
}

.game-hub__main {
  position: relative;
}

.game-panel {
  animation: fadeIn 0.4s ease;
}

.game-panel[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.game-panel__title {
  text-align: center;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 700;
  margin: 0 0 22px;
}

.section__icon {
  margin-right: 6px;
}

.game-grid,
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.game-card,
.slot-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.game-card__img,
.slot-card__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-2);
}

.game-card__name,
.slot-card span {
  display: block;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.35);
}

.game-card:hover,
.slot-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-1);
  box-shadow: 0 12px 28px var(--purple-glow);
}

.game-card:hover .game-card__name,
.slot-card:hover span {
  color: var(--gold-1);
}

/* ==========================================================
   CONTENT SECTIONS
   ========================================================== */
.section {
  padding: 28px 0;
  position: relative;
  z-index: 1;
}

.section--alt {
  background: rgba(0, 0, 0, 0.25);
}

.promo-grid {
  display: grid;
  gap: 18px;
}

.featured__card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card);
  transition: var(--transition);
}

.featured__card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-1);
  box-shadow: 0 16px 36px var(--purple-glow);
}

.featured__image img {
  width: 100%;
  height: auto;
  display: block;
}

.seo-content__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.seo-content__text {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
}

.seo-content__text h2 {
  margin: 0 0 14px;
  text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.seo-content__text p {
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0 0 14px;
}

.seo-content__text strong {
  color: var(--gold-1);
}

.seo-content__image {
  text-align: center;
}

.seo-content__image img {
  width: clamp(160px, 22vw, 240px);
  height: auto;
  filter: drop-shadow(0 4px 12px var(--purple-glow));
  margin: 0 auto;
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq-section {
  padding: 32px 0;
}

.faq-header {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--gold-1);
  box-shadow: 0 8px 22px var(--purple-glow);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold-1);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(160, 32, 240, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.faq-item[open] .faq-question::after {
  content: "−";
  background: var(--gold-1);
  color: #000;
}

.faq-answer {
  padding: 0 22px 18px;
}

.faq-answer p {
  margin: 0 0 0.75em;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--gold-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: var(--gold-2);
}

/* ==========================================================
   PROVIDERS (auto-scroll)
   ========================================================== */
.providers {
  padding: 28px 0;
  background: rgba(0, 0, 0, 0.4);
  border-block: 1px solid var(--card-border);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.providers__track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: lane-scroll 35s linear infinite;
}

.provider-logo {
  flex: 0 0 auto;
  width: 110px;
  height: 110px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.provider-logo img {
  max-width: 100%;
  height: auto;
  filter: grayscale(0.2);
  transition: var(--transition);
}

.provider-logo:hover {
  border-color: var(--gold-1);
  transform: translateY(-4px);
}

.provider-logo:hover img {
  filter: grayscale(0);
}

/* ==========================================================
   FOOTER CTA
   ========================================================== */
.footer-cta {
  padding: 36px 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-cta h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 10px;
}

.footer-cta p {
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 18px;
}

.footer-cta img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: linear-gradient(180deg, rgba(20, 4, 31, 0.95), rgba(10, 4, 26, 1));
  border-top: 2px solid var(--purple-2);
  padding: 32px 0 20px;
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.logo--footer {
  display: inline-block;
}

.footer__desc {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
  white-space: pre-line;
}

.footer__terms {
  color: var(--gold-1);
  font-weight: 500;
}

.footer__terms:hover {
  text-decoration: underline;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 4px 0 0;
}

/* ==========================================================
   PAGE HERO (promotions / activities)
   ========================================================== */
.promotions-page,
.activities-page {
  padding: 32px 16px 48px;
  position: relative;
  z-index: 1;
}

.promotions-page__title,
.activities-page__title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 28px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Promotions grid (cards rendered by image-content.js -> .promo-item) */
.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.promo-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  color: var(--text);
}

.promo-item__img-wrap {
  background: var(--bg-2);
  overflow: hidden;
}

.promo-item__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.promo-item__content {
  padding: 16px 18px 18px;
  flex: 1;
}

.promo-item__content p {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.promo-item:hover {
  transform: translateY(-6px);
  border-color: var(--gold-1);
  box-shadow: 0 16px 36px var(--purple-glow);
}

.promo-item:hover .promo-item__img {
  transform: scale(1.04);
}

/* Activities */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.activity-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.activity-item__img-wrap {
  background: var(--bg-2);
  overflow: hidden;
}

.activity-item__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.activity-item__content {
  padding: 16px 18px 18px;
  flex: 1;
}

.activity-item__content p {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.activity-item:hover {
  transform: translateY(-6px);
  border-color: var(--gold-1);
  box-shadow: 0 16px 36px var(--purple-glow);
}

.activity-item:hover .activity-item__img {
  transform: scale(1.04);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pagination .page-num,
.pagination .page-link {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.pagination .page-num.active {
  background: linear-gradient(135deg, var(--purple-1), var(--purple-3));
  color: #fff;
  border-color: var(--purple-3);
}

.pagination .page-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination a:hover {
  border-color: var(--gold-1);
  color: var(--gold-1);
}

/* ==========================================================
   GIF PROMOS (kuiper999-style 3 lifted cards)
   ========================================================== */
.gif-promos {
  padding: 24px 0;
  position: relative;
  z-index: 1;
}

.gif-promos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
}

.gif-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.gif-card img {
  width: 100%;
  height: auto;
  display: block;
}

.gif-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-1);
  box-shadow: 0 14px 30px var(--purple-glow);
}

.gif-card--lift {
  transform: translateY(-12px);
  border-color: var(--gold-1);
  box-shadow: 0 16px 36px rgba(255, 215, 0, 0.25);
}

.gif-card--lift:hover {
  transform: translateY(-18px);
}

/* ==========================================================
   CATEGORY ICONS
   ========================================================== */
.categories {
  padding: 28px 0;
  position: relative;
  z-index: 1;
}

.categories__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: end;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 8px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(55, 14, 149, 0.4), rgba(160, 32, 240, 0.15));
  border: 1px solid var(--card-border);
  transition: var(--transition);
  text-align: center;
  color: var(--text);
}

.cat-item img {
  width: clamp(56px, 7vw, 84px);
  height: clamp(56px, 7vw, 84px);
  object-fit: contain;
  filter: drop-shadow(0 4px 12px var(--purple-glow));
  transition: var(--transition);
}

.cat-item span {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cat-item small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cat-item:hover {
  transform: translateY(-6px);
  border-color: var(--gold-1);
  box-shadow: 0 10px 28px var(--purple-glow);
}

.cat-item:hover img {
  transform: scale(1.08) rotate(-3deg);
}

.cat-item--center {
  background: linear-gradient(180deg, var(--gold-3), var(--purple-2));
  border-color: var(--gold-1);
  transform: translateY(-10px);
  padding-block: 22px;
}

.cat-item--center span {
  -webkit-text-fill-color: #fff;
  color: #fff;
}

/* ==========================================================
   MINI SLIDER (3 square banners)
   ========================================================== */
.mini-slider {
  padding: 12px 0;
  position: relative;
  z-index: 1;
}

.mini-slider__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-slide {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: var(--transition);
}

.mini-slide:hover {
  transform: translateY(-4px);
  border-color: var(--gold-1);
  box-shadow: 0 8px 24px var(--purple-glow);
}

.mini-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ==========================================================
   BOTTOM NAV (mobile fixed - kuiper999 zodiac style)
   ========================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  background: linear-gradient(180deg, rgba(20, 4, 31, 0.98), rgba(10, 4, 26, 1));
  border-top: 2px solid var(--purple-3);
  padding: 6px 4px 8px;
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.55);
}

.bottom-nav__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr;
  align-items: end;
  gap: 4px;
  position: relative;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: center;
}

.bn-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px var(--purple-glow));
}

.bn-item.active {
  color: var(--gold-1);
}

.bn-item--center {
  position: relative;
}

.bn-item--center .bn-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--purple-1), var(--purple-3));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -28px;
  box-shadow:
    0 0 0 4px var(--bg-1),
    0 8px 22px var(--purple-glow);
  transition: var(--transition);
}

.bn-item--center .bn-bubble img {
  width: 52px;
  height: 52px;
}

.bn-item--center:hover .bn-bubble {
  transform: translateY(-4px);
}

.bn-item--center span {
  color: var(--gold-1);
  font-weight: 600;
  margin-top: 2px;
}

.floating-banner {
  z-index: 1100;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 960px) {
  .nav,
  .header__actions .btn--login,
  .header__actions .btn--register {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header__top {
    justify-content: space-between;
  }

  .categories__row {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .bottom-nav {
    display: block;
  }

  body {
    padding-bottom: 100px;
  }
}

@media (max-width: 640px) {
  .game-grid,
  .slot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .categories__row {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-item--center {
    grid-column: 1 / -1;
  }

  .mini-slider__track {
    grid-template-columns: 1fr;
  }

  .slide__img {
    aspect-ratio: 16 / 9;
  }

  .logo__img {
    height: 42px;
  }

  .game-tabs__item {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .promo-grid {
    grid-template-columns: 1fr !important;
  }

  .highway-img {
    height: 44px;
  }
}

@media (max-width: 420px) {
  .gif-promos__grid {
    grid-template-columns: 1fr;
  }

  .gif-card--lift {
    transform: none;
  }
}
