/* ==========================================================================
   GoPerya PH — Philippine Carnival "Perya" Theme & Core Design System
   Matches Reference Mockup (Dark Night Carnival + Gold Marquee + Ticket Accents)
   ========================================================================== */

:root {
  --bg: #091124;
  --bg-light: #f4f7ff;
  --bg-card: #0f1c3a;
  --surface: #ffffff;
  --surface-blue: #132448;
  --surface-yellow: #fff7d6;

  --border-gold: #e5b038;
  --border-blue: #233b70;
  --text-light: #ffffff;
  --text-muted: #8e9bb8;
  --text-dark: #121c33;

  --brand-pink: #e53162;
  --brand-pink-dark: #b71f4b;
  --brand-red: #d31838;
  --brand-red-dark: #a10d26;
  --brand-blue: #133598;
  --brand-blue-dark: #09132c;
  --brand-gold: #f5bc2c;
  --brand-gold-light: #ffe58f;
  --brand-yellow: #ffd028;

  --success: #138a67;
  --warning: #b96c00;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 20px rgba(245, 188, 44, 0.35);
  --shadow-red: 0 8px 24px rgba(211, 24, 56, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1240px;
  --header-height: 72px;

  --font-display: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 70px;
  background-color: var(--bg);
  color: #ffffff;
}

main, #main-content, .main-container {
  flex: 1 0 auto;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--brand-gold);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ffffff;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand-red);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* Strings of Carnival Lights Top Decor */
.carnival-light-string {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background-image: radial-gradient(circle, #ffd028 3px, transparent 4px), radial-gradient(circle, #e53162 3px, transparent 4px), radial-gradient(circle, #2accd8 3px, transparent 4px);
  background-size: 24px 12px;
  background-position: 0 0, 8px 0, 16px 0;
  background-repeat: repeat-x;
  z-index: 10;
  opacity: 0.9;
}

/* Star Headers & Ribbon Headers */
.star-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-red) 0%, #8a0a1f 100%);
  color: #ffffff;
  border: 2px solid var(--brand-gold);
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  margin-bottom: 0.75rem;
}

.star-header-gold {
  background: linear-gradient(135deg, #d4af37 0%, #8a6c10 100%);
  border-color: #ffe58f;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.925rem;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-red {
  background: linear-gradient(180deg, #f02548 0%, #b80c29 100%);
  color: #ffffff;
  border: 1px solid #ff7a91;
  box-shadow: var(--shadow-red);
}

.btn-red:hover {
  background: linear-gradient(180deg, #ff3d5e 0%, #d31838 100%);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-gold {
  background: linear-gradient(180deg, #ffe066 0%, #d4a012 100%);
  color: #1a1000;
  border: 1px solid #fff5cc;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #fff099 0%, #e6b017 100%);
  transform: translateY(-2px);
  color: #000000;
}

.btn-dark-outline {
  background: rgba(15, 28, 58, 0.8);
  color: #ffffff;
  border: 2px solid var(--border-blue);
}

.btn-dark-outline:hover {
  border-color: var(--brand-gold);
  background: var(--surface-blue);
  color: var(--brand-gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: #060e20;
  border-bottom: 2px solid var(--brand-gold);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
}

.logo-img {
  height: 42px;
  width: auto;
}

.desktop-nav {
  display: none;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav-link {
  font-weight: 700;
  font-size: 0.925rem;
  color: #d0dcfc;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-family: inherit;
  padding: 0;
}

.nav-link.active, .nav-link:hover {
  color: var(--brand-gold);
}

/* Header Dropdown Menu */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-caret {
  display: inline-block;
  font-size: 0.75rem;
  transition: transform 0.25s ease;
  margin-left: 0.15rem;
}

.nav-dropdown:hover .dropdown-caret,
.nav-dropdown.is-open .dropdown-caret {
  transform: rotate(180deg);
  color: var(--brand-gold);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 290px;
  background: #0c162d;
  border: 1.5px solid #233762;
  border-top: 3px solid var(--brand-gold);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 188, 44, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1200;
  pointer-events: none;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #0c162d;
  border-left: 1.5px solid #233762;
  border-top: 1.5px solid var(--brand-gold);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: #d0dcfc;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  border: 1px solid transparent;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(245, 188, 44, 0.12);
  border-color: rgba(245, 188, 44, 0.3);
  transform: translateX(3px);
  color: var(--brand-gold);
}

.dropdown-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.dropdown-text {
  display: flex;
  flex-direction: column;
}

.dropdown-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.dropdown-item:hover .dropdown-title {
  color: var(--brand-gold);
}

.dropdown-desc {
  font-size: 0.725rem;
  color: #8c9ec4;
  line-height: 1.2;
  margin-top: 2px;
}

/* Mobile Drawer Dropdown Styles */
.drawer-dropdown {
  width: 100%;
}

.drawer-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.drawer-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem 0 0.5rem 0.5rem;
}

.drawer-dropdown.is-open .drawer-dropdown-menu {
  display: flex;
}

.drawer-caret {
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

.drawer-dropdown.is-open .drawer-caret {
  transform: rotate(180deg);
  color: var(--brand-gold);
}

.drawer-sublink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  color: #a2b4dc;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-left: 2px solid #233762;
  margin-left: 0.5rem;
  border-radius: 0 6px 6px 0;
  transition: all 0.2s ease;
}

.drawer-sublink:hover,
.drawer-sublink:active,
.drawer-sublink.active {
  color: var(--brand-gold);
  border-left-color: var(--brand-gold);
  background: rgba(245, 188, 44, 0.1);
  transform: translateX(3px);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .header-actions {
    display: flex;
  }
}

.mobile-toggle,
.mobile-drawer-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-blue);
  color: var(--brand-gold);
  border: 1px solid var(--border-blue);
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 992px) {
  .mobile-toggle,
  .mobile-drawer-toggle {
    display: none;
  }
}

.mobile-toggle span,
.mobile-drawer-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--brand-gold);
  border-radius: 2px;
  pointer-events: none;
}

/* Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #09132c;
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
  z-index: 2000;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  border-left: 3px solid var(--brand-gold);
}

.mobile-drawer.is-open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-blue);
  margin-bottom: 1.25rem;
}

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-blue);
  color: var(--brand-gold);
  font-weight: 800;
  font-size: 1.2rem;
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.drawer-link {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-link.active, .drawer-link:hover {
  background: var(--brand-red);
  color: #ffffff;
}

/* HERO SECTION - DARK NIGHT CARNIVAL */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #172c5a 0%, #080f21 100%);
  padding: 3rem 0 4rem 0;
  border-bottom: 3px solid var(--brand-gold);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-title {
  font-size: clamp(2rem, 3.5vw + 1rem, 3rem);
  font-family: var(--font-display);
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--brand-gold);
  text-shadow: 0 0 12px rgba(245, 188, 44, 0.4);
}

.hero-desc {
  font-size: 1.05rem;
  color: #b0c2ee;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero Ferris Wheel Frame Box */
.hero-ferris-card {
  background: linear-gradient(180deg, #122248 0%, #09132c 100%);
  border: 3px solid var(--brand-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-gold);
  position: relative;
}

.hero-ferris-badge {
  background: var(--brand-red);
  color: #ffffff;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 0.75rem;
  border: 1px solid var(--brand-gold);
}

/* GOLDEN MARQUEE CAROUSEL (TOP SLOT GAMES) */
.marquee-section {
  padding: 3rem 0;
  background: #081023;
}

.marquee-box {
  background: linear-gradient(180deg, #102046 0%, #08122a 100%);
  border: 3px solid var(--brand-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 0 30px rgba(245, 188, 44, 0.25);
  position: relative;
  overflow: hidden;
}

.marquee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

@media (min-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
}

@media (min-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 992px) {
  .games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
  .marquee-box .games-grid .game-card:nth-child(n+7) {
    display: none !important;
  }
}

/* MOBILE MARQUEE ANIMATION FOR MARQUEE SECTIONS */
@media (max-width: 991px) {
  .marquee-box {
    padding: 1.25rem 0.5rem;
  }

  .marquee-box .games-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    gap: 0.4rem !important;
    animation: marqueeMobileScroll 9s linear infinite !important;
    will-change: transform;
  }

  .marquee-box .games-grid:hover,
  .marquee-box .games-grid:focus-within,
  .marquee-box .games-grid:active {
    animation-play-state: paused !important;
  }

  .marquee-box .game-card {
    flex: 0 0 82px !important;
    width: 82px !important;
  }
}

@keyframes marqueeMobileScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.2rem));
  }
}

.game-card {
  background: #0d1a38;
  border: 2px solid var(--border-blue);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  border-color: var(--brand-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(245, 188, 44, 0.3);
}

.game-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect */
  background: #050b18;
  overflow: hidden;
}

.game-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 28, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  padding: 0.5rem;
  transition: opacity 0.25s ease, backdrop-filter 0.25s ease;
  z-index: 5;
}

.game-card:hover .game-play-overlay,
.game-card:focus-within .game-play-overlay,
.game-card:active .game-play-overlay,
.game-card.active .game-play-overlay {
  opacity: 1;
}

.game-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 0 0.5rem;
}

.game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.2;
  border: none;
  width: 100%;
}

.game-btn-start {
  background: linear-gradient(180deg, #f02548 0%, #b80c29 100%);
  color: #ffffff !important;
  border: 1px solid #ff7a91;
  box-shadow: 0 4px 12px rgba(211, 24, 56, 0.5);
}

.game-btn-start:hover {
  background: linear-gradient(180deg, #ff3d5e 0%, #d31838 100%);
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(211, 24, 56, 0.8);
}

.game-btn-demo {
  background: linear-gradient(180deg, #132448 0%, #09132c 100%);
  color: var(--brand-gold) !important;
  border: 1.5px solid var(--brand-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.game-btn-demo:hover {
  background: var(--brand-gold);
  color: #000000 !important;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(245, 188, 44, 0.5);
}

/* DEMO GAME POPUP MODAL */
.demo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 20, 0.88);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.demo-modal-content {
  background: linear-gradient(180deg, #0d1a38 0%, #060d1f 100%);
  border: 3px solid var(--brand-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(245, 188, 44, 0.4), 0 20px 60px rgba(0, 0, 0, 0.8);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  position: relative;
  overflow: hidden;
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.demo-modal-backdrop.is-open .demo-modal-content {
  transform: scale(1);
}

.demo-modal-header {
  padding: 1rem 1.25rem;
  background: #081226;
  border-bottom: 2px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.demo-modal-badge {
  background: var(--brand-yellow);
  color: #000000;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.demo-modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
  flex-grow: 1;
}

.demo-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #172a56;
  color: var(--brand-gold);
  border: 1px solid var(--border-blue);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.demo-modal-close:hover {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
  transform: rotate(90deg);
}

.demo-iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-iframe-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  text-align: center;
  background: radial-gradient(circle at center, #112248 0%, #030712 100%);
}

.demo-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(245, 188, 44, 0.2);
  border-top-color: var(--brand-gold);
  border-radius: 50%;
  animation: demoSpin 1s linear infinite;
}

@keyframes demoSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.demo-game-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
  z-index: 2;
}

.demo-modal-footer {
  padding: 1rem 1.25rem;
  background: #081226;
  border-top: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.game-card-title {
  padding: 0.6rem 0.75rem;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  color: #ffffff;
  background: #081126;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 639px) {
  .game-card {
    border-width: 1px;
    border-radius: 6px;
  }

  .game-card-title {
    padding: 0.25rem 0.1rem;
    font-size: 0.6rem;
    line-height: 1.1;
  }

  .game-play-overlay {
    padding: 0.15rem;
    gap: 0.15rem;
  }

  .game-card-actions {
    padding: 0 0.1rem;
    gap: 0.15rem;
  }

  .game-btn {
    padding: 0.2rem 0.1rem;
    font-size: 0.5rem;
    gap: 0.1rem;
    letter-spacing: 0;
    border-radius: 8px;
  }
}

/* CATEGORY TICKET NAVIGATION RIBBON */
.ticket-ribbon-section {
  background: #070e1f;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-blue);
  border-bottom: 1px solid var(--border-blue);
}

.ticket-ribbon-grid {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.ticket-ribbon-grid::-webkit-scrollbar {
  display: none;
}

.ribbon-ticket-item {
  flex: 0 0 auto;
  background: #ffffff;
  color: var(--text-dark);
  border: 2px dashed var(--brand-gold);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.25rem;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.ribbon-ticket-item:hover {
  background: var(--brand-gold);
  color: #000000;
  transform: translateY(-2px);
}

/* PRIORITY GUIDES SECTION (WHITE BOOTHS) */
.priority-section {
  padding: 3.5rem 0;
  background: #f4f7ff;
  color: var(--text-dark);
}

.priority-section h2 {
  color: var(--brand-blue-dark);
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .priority-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .priority-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
  }
}

.priority-card {
  background: #ffffff;
  border: 1px solid #dbe3f5;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(19, 35, 72, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

@media (max-width: 639px) {
  .priority-section {
    padding: 2rem 0;
  }
  .priority-card {
    padding: 0.85rem 0.5rem;
    border-radius: 10px;
  }
  .priority-icon-box {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }
  .priority-card h3 {
    font-size: 0.825rem;
    margin-bottom: 0.25rem;
  }
  .priority-card p {
    font-size: 0.7rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }
  .priority-card a {
    font-size: 0.75rem;
  }
}

.priority-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-red);
  box-shadow: 0 10px 24px rgba(211, 24, 56, 0.15);
}

.priority-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #fff0f3;
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.priority-card h3 {
  font-size: 0.95rem;
  color: var(--brand-blue-dark);
  margin-bottom: 0.4rem;
}

.priority-card p {
  font-size: 0.8rem;
  color: #5d677d;
  line-height: 1.4;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.priority-card a {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--brand-red);
}

/* FEATURED PISO TALPAK SECTION */
.featured-piso-section {
  padding: 3.5rem 0;
  background: #ffffff;
  color: var(--text-dark);
}

.piso-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .piso-layout-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.piso-banner-box {
  background: linear-gradient(135deg, #133598 0%, #09132c 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(19, 53, 152, 0.2);
}

.piso-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.piso-step-item {
  background: #f4f7ff;
  border: 1px solid #d0dcfa;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.piso-step-item:hover {
  background: #eef3ff;
  border-color: var(--brand-blue);
}

.step-badge-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* SPIN THE GOPERYA WHEEL OF FORTUNE SECTION */
.wheel-section {
  padding: 4rem 0;
  background: radial-gradient(circle at 50% 30%, #172a56 0%, #070e1f 100%);
  color: #ffffff;
  border-top: 3px solid var(--brand-gold);
  border-bottom: 3px solid var(--brand-gold);
  position: relative;
}

.wheel-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .wheel-section-grid {
    grid-template-columns: 0.9fr 1fr 1.1fr;
  }
}

.wheel-center-wrap {
  position: relative;
  width: 310px;
  height: 310px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 10px;
  background: radial-gradient(circle, #3a1c06 0%, #170902 100%);
  border: 4px solid var(--brand-gold);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 188, 44, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

@media (min-width: 480px) {
  .wheel-center-wrap {
    width: 370px;
    height: 370px;
  }
}

.wheel-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.wheel-bulbs-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
}

.wheel-bulb {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  box-shadow: 0 0 8px #f5bc2c, 0 0 12px #f5bc2c;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.wheel-bulb.bulb-a {
  animation: bulbFlashA 0.8s infinite alternate ease-in-out;
}

.wheel-bulb.bulb-b {
  animation: bulbFlashB 0.8s infinite alternate ease-in-out;
}

@keyframes bulbFlashA {
  0% { background: #fff5cc; box-shadow: 0 0 10px #f5bc2c, 0 0 18px #f5bc2c; }
  100% { background: #dc2626; box-shadow: 0 0 10px #dc2626, 0 0 18px #dc2626; }
}

@keyframes bulbFlashB {
  0% { background: #00f0ff; box-shadow: 0 0 10px #00f0ff, 0 0 18px #00f0ff; }
  100% { background: #fff5cc; box-shadow: 0 0 10px #f5bc2c, 0 0 18px #f5bc2c; }
}

.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 32px solid #f5bc2c;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
  z-index: 12;
  transform-origin: 50% 0%;
  transition: transform 0.05s ease-out;
}

.wheel-pointer.tick {
  transform: translateX(-50%) rotate(-12deg);
}

.wheel-spin-btn-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  border: 4px solid var(--brand-gold);
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.9), inset 0 2px 4px rgba(255,255,255,0.4);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wheel-spin-btn-center:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 30px rgba(245, 188, 44, 0.9), inset 0 2px 4px rgba(255,255,255,0.6);
}

.wheel-spin-btn-center:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* WIN POPUP MODAL STYLES */
.wheel-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 20, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.25rem;
  opacity: 1;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.wheel-modal-backdrop.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* FIREWORKS CANVAS */
.fireworks-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* FLAME PROJECTORS FOR JACKPOT WIN */
.flame-projectors-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.flame-projectors-container.hidden {
  display: none !important;
}

.flame-projector {
  position: absolute;
  bottom: 0;
  width: 110px;
  height: 360px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.flame-projector.left {
  left: 3%;
  transform: rotate(12deg);
  transform-origin: bottom center;
}

.flame-projector.right {
  right: 3%;
  transform: rotate(-12deg);
  transform-origin: bottom center;
}

@media (max-width: 480px) {
  .flame-projector.left { left: -10px; }
  .flame-projector.right { right: -10px; }
}

.flame-nozzle {
  width: 48px;
  height: 28px;
  background: linear-gradient(180deg, #333 0%, #111 100%);
  border: 2px solid #ff5500;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 20px #ff3300;
  position: relative;
  z-index: 5;
}

.flame-jet {
  position: relative;
  width: 100px;
  height: 330px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: flameBlastPulse 0.12s infinite alternate ease-in-out;
}

.flame-core {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 20% 20% / 80% 80% 20% 20%;
  transform-origin: bottom center;
  filter: blur(4px);
}

.flame-core.red {
  width: 100px;
  height: 330px;
  background: radial-gradient(circle at 50% 90%, #ff1a00 0%, #cc0000 70%, transparent 100%);
  animation: flameFlickerRed 0.18s infinite alternate ease-in-out;
}

.flame-core.orange {
  width: 72px;
  height: 270px;
  background: radial-gradient(circle at 50% 90%, #ff6600 0%, #ff3300 70%, transparent 100%);
  animation: flameFlickerOrange 0.15s infinite alternate ease-in-out;
}

.flame-core.yellow {
  width: 48px;
  height: 210px;
  background: radial-gradient(circle at 50% 90%, #ffcc00 0%, #ff9900 80%, transparent 100%);
  animation: flameFlickerYellow 0.12s infinite alternate ease-in-out;
}

.flame-core.white {
  width: 26px;
  height: 140px;
  background: radial-gradient(circle at 50% 90%, #ffffff 0%, #fff5cc 80%, transparent 100%);
  animation: flameFlickerWhite 0.09s infinite alternate ease-in-out;
}

@keyframes flameBlastPulse {
  0% { transform: scaleY(0.92) scaleX(0.96); }
  100% { transform: scaleY(1.08) scaleX(1.04); }
}

@keyframes flameFlickerRed {
  0% { transform: scaleX(0.9) skewX(-2deg); }
  100% { transform: scaleX(1.1) skewX(2deg); }
}

@keyframes flameFlickerOrange {
  0% { transform: scaleX(1.1) skewX(3deg); }
  100% { transform: scaleX(0.9) skewX(-3deg); }
}

@keyframes flameFlickerYellow {
  0% { transform: scaleY(0.95); }
  100% { transform: scaleY(1.05); }
}

@keyframes flameFlickerWhite {
  0% { transform: scaleY(1.05) scaleX(0.9); }
  100% { transform: scaleY(0.95) scaleX(1.1); }
}

.flame-heat-aura {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255, 68, 0, 0.45) 0%, rgba(255, 153, 0, 0.2) 50%, transparent 85%);
  animation: heatPulse 0.25s infinite alternate ease-in-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes heatPulse {
  0% { opacity: 0.75; }
  100% { opacity: 1; }
}

.wheel-modal-card {
  position: relative;
  background: linear-gradient(180deg, #132752 0%, #081228 100%);
  border: 3px solid var(--brand-gold, #f5bc2c);
  border-radius: var(--radius-lg, 16px);
  padding: 2.25rem 1.75rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 188, 44, 0.35);
  animation: wheelModalPopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  z-index: 10;
  transition: all 0.3s ease;
}

/* Jackpot Special Card Styling */
.wheel-modal-card.jackpot-mode {
  border-color: #ff3300 !important;
  background: linear-gradient(180deg, #380d0d 0%, #170404 100%) !important;
  box-shadow: 0 20px 70px rgba(255, 51, 0, 0.85), 0 0 60px rgba(255, 153, 0, 0.7) !important;
  animation: jackpotCardPulse 0.8s infinite alternate ease-in-out !important;
}

@keyframes jackpotCardPulse {
  0% { box-shadow: 0 20px 70px rgba(255, 51, 0, 0.85), 0 0 40px rgba(255, 153, 0, 0.7); }
  100% { box-shadow: 0 25px 90px rgba(255, 102, 0, 1), 0 0 80px rgba(255, 204, 0, 0.9); }
}

@keyframes wheelModalPopIn {
  0% { transform: scale(0.6) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.wheel-modal-header-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 15px rgba(245, 188, 44, 0.8));
  animation: prizeIconBounce 1.2s infinite alternate ease-in-out;
}

@keyframes prizeIconBounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.1); }
}

.wheel-modal-tag {
  display: inline-block;
  background: var(--brand-gold);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(245, 188, 44, 0.4);
}

.wheel-modal-title {
  font-size: 1.85rem;
  font-family: var(--font-display, sans-serif);
  color: #ffffff;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.wheel-modal-subtitle {
  font-size: 0.9rem;
  color: #a3beed;
  margin-bottom: 1.25rem;
}

.wheel-modal-prize-box {
  background: rgba(255, 255, 255, 0.06);
  border: 2px dashed rgba(245, 188, 44, 0.6);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  margin-bottom: 1.5rem;
}

.prize-label-mini {
  display: block;
  font-size: 0.7rem;
  color: var(--brand-gold);
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}

.wheel-win-prize-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.wheel-win-badge {
  display: inline-block;
  background: #059669;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
}

.wheel-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wheel-modal-claim-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff !important;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 30px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6), 0 0 15px rgba(245, 188, 44, 0.4);
  border: 2px solid var(--brand-gold);
  transition: all 0.2s ease;
}

.wheel-modal-claim-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #f5bc2c 0%, #d49419 100%);
  color: #000000 !important;
  box-shadow: 0 8px 25px rgba(245, 188, 44, 0.8);
}

.wheel-modal-close-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #a8beec;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wheel-modal-close-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

@media (max-width: 640px) {
  .wheel-modal-card {
    max-width: 320px;
    width: 90vw;
    padding: 1.25rem 1rem;
    border-width: 2px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 188, 44, 0.3);
  }

  .wheel-modal-header-icon {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
  }

  .wheel-modal-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.4rem;
  }

  .wheel-modal-title {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
  }

  .wheel-modal-subtitle {
    font-size: 0.775rem;
    margin-bottom: 0.85rem;
    line-height: 1.3;
  }

  .wheel-modal-prize-box {
    padding: 0.75rem 0.6rem;
    margin-bottom: 1rem;
    border-radius: 10px;
  }

  .prize-label-mini {
    font-size: 0.6rem;
    margin-bottom: 0.15rem;
  }

  .wheel-win-prize-name {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }

  .wheel-win-badge {
    font-size: 0.625rem;
    padding: 0.15rem 0.5rem;
  }

  .wheel-modal-actions {
    gap: 0.5rem;
  }

  .wheel-modal-claim-btn {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    border-radius: 25px;
  }

  .wheel-modal-close-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.775rem;
  }
}

/* MARQUEE REWARD CARD */
.reward-marquee-card {
  background: linear-gradient(180deg, #132448 0%, #09132c 100%);
  border: 3px solid var(--brand-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-gold);
  text-align: center;
  position: relative;
}

/* PLATFORM & GAMES MIDWAY */
.midway-section {
  padding: 3.5rem 0;
  background: #081023;
}

.filter-pills-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.875rem;
  background: #0f1c3a;
  color: #a2b4dc;
  border: 1px solid var(--border-blue);
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill.active, .filter-pill:hover {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
}

@media (max-width: 768px) {
  .midway-section {
    padding: 1.25rem 0;
  }

  .midway-section .filter-pills-bar {
    margin-bottom: 0.75rem;
    gap: 0.3rem;
  }

  .midway-section .filter-pill {
    padding: 0.3rem 0.65rem;
    font-size: 0.725rem;
  }
}

@media (max-width: 639px) {
  .midway-section {
    padding: 0.85rem 0;
  }

  .midway-section .games-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.25rem !important;
  }

  .midway-section .game-card {
    border-width: 1px;
    border-radius: 6px;
  }

  .midway-section .game-card-title {
    padding: 0.15rem 0.05rem;
    font-size: 0.52rem;
    line-height: 1.1;
  }

  .midway-section .game-play-overlay {
    padding: 0.1rem;
    gap: 0.1rem;
  }

  .midway-section .game-card-actions {
    padding: 0 0.05rem;
    gap: 0.1rem;
  }

  .midway-section .game-btn {
    padding: 0.15rem 0.05rem;
    font-size: 0.45rem;
    border-radius: 4px;
  }
}

@media (max-width: 380px) {
  .midway-section {
    padding: 0.65rem 0;
  }

  .midway-section .games-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.2rem !important;
  }

  .midway-section .game-card-title {
    font-size: 0.48rem;
  }

  .midway-section .game-btn {
    font-size: 0.42rem;
    padding: 0.12rem 0.04rem;
  }
}

/* SAFETY & VERIFICATION SPLIT BANNERS */
.banners-section {
  padding: 3rem 0;
  background: #070d1e;
}

.split-banners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .split-banners-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.banner-card-box {
  background: #0d1a38;
  border: 2px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* IS GOPERYA LEGIT? TRUST CHECKS */
.trust-checks-section {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, #f4f7ff 0%, #ebf1fe 100%);
  color: var(--text-dark);
}

.trust-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .trust-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .trust-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.trust-item-card {
  background: #ffffff;
  border: 1.5px solid #d5e1fa;
  border-radius: 12px;
  padding: 1.15rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 4px 12px rgba(13, 26, 56, 0.04);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}

.trust-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2accd8, #f5bc2c);
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.trust-item-card:hover,
.trust-item-card:active {
  transform: translateY(-3px) scale(1.02);
  border-color: #f5bc2c;
  box-shadow: 0 8px 24px rgba(13, 26, 56, 0.12), 0 0 15px rgba(245, 188, 44, 0.25);
  background: #ffffff;
}

.trust-item-card:hover::before,
.trust-item-card:active::before {
  opacity: 1;
}

.trust-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ebf2ff 0%, #d8e5ff 100%);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(13, 26, 56, 0.08);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.trust-item-card:hover .trust-icon-wrap,
.trust-item-card:active .trust-icon-wrap {
  transform: scale(1.1) rotate(6deg);
  background: linear-gradient(135deg, #f5bc2c 0%, #e5a812 100%);
  color: #070e1f;
  box-shadow: 0 4px 10px rgba(245, 188, 44, 0.4);
}

.trust-card-content {
  min-width: 0;
  flex: 1;
}

.trust-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 0.15rem;
  line-height: 1.25;
}

.trust-card-desc {
  font-size: 0.75rem;
  color: #5d6880;
  margin: 0;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 639px) {
  .trust-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .trust-item-card {
    padding: 0.75rem 0.5rem;
    gap: 0.45rem;
    border-radius: 10px;
  }

  .trust-icon-wrap {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .trust-card-title {
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
  }

  .trust-card-desc {
    font-size: 0.65rem;
    line-height: 1.15;
  }
}

/* TROUBLESHOOTING & FAQ SPLIT SECTION */
.help-faq-section {
  padding: 3.5rem 0;
  background: #ffffff;
  color: var(--text-dark);
}

.help-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .help-faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.help-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.help-link-item {
  background: #f4f7ff;
  border: 1px solid #d5e1fa;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-blue-dark);
}

.help-link-item:hover {
  background: #eaf0ff;
  color: var(--brand-red);
}

/* FAQ Accordion */
.faq-item,
.faq-accordion-item {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.faq-item:hover,
.faq-accordion-item:hover {
  border-color: var(--brand-gold) !important;
}

.faq-item.is-open {
  border-color: var(--brand-gold) !important;
  box-shadow: 0 4px 20px rgba(255, 208, 40, 0.25);
  background: rgba(15, 28, 58, 0.95) !important;
}

.faq-accordion-item.is-open {
  border-color: var(--brand-gold) !important;
  box-shadow: 0 4px 16px rgba(11, 24, 54, 0.08);
  background: #ffffff !important;
}

.faq-item .faq-answer {
  display: none;
}

.faq-item.is-open .faq-answer {
  display: block !important;
}

.faq-item .faq-icon {
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
  font-weight: 800;
}

.faq-item.is-open .faq-icon {
  color: var(--brand-gold);
  transform: scale(1.25);
}

.faq-accordion-item {
  background: #f4f7ff;
  border: 1px solid #d5e1fa;
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq-accordion-btn {
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.15rem;
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--brand-blue-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-accordion-btn::after {
  content: '∨';
  font-size: 0.85rem;
  color: var(--brand-red);
}

.faq-accordion-item.is-open .faq-accordion-btn::after {
  content: '∧';
}

.faq-accordion-content {
  padding: 0 1.15rem 0.95rem 1.15rem;
  display: none;
  font-size: 0.875rem;
  color: #4a556d;
}

.faq-accordion-item.is-open .faq-accordion-content {
  display: block;
}

/* RESPONSIBLE GAMING BANNER */
.responsible-banner-section {
  padding: 3rem 0;
  background: #fff0f3;
  color: var(--text-dark);
}

.responsible-box {
  background: #ffffff;
  border: 2px solid #f7c5d1;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(229, 49, 98, 0.08);
}

.responsible-icons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .responsible-icons-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.responsible-mini-card {
  background: #fff8f9;
  border: 1px solid #fce3e8;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-red-dark);
}

/* FOOTER */
.site-footer {
  background: #050b18;
  color: #ffffff;
  padding: 3.5rem 0 2rem 0;
  font-size: 0.9rem;
  border-top: 3px solid var(--brand-gold);
}

.site-footer a {
  color: #a8beec;
}

.site-footer a:hover {
  color: var(--brand-gold);
}

.site-footer .logo-img {
  height: 54px;
}

.footer-trust-logos {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.footer-trust-badge {
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.footer-trust-badge:hover {
  transform: translateY(-2px);
}

.footer-trust-badge img {
  height: 26px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-main-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  }
}

.newsletter-input-box {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-blue);
  background: #0c1836;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
}

.footer-bottom-bar {
  border-top: 1px solid #14244d;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.825rem;
  color: #7183a8;
}

/* MOBILE BOTTOM NAV */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(6, 13, 31, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1500;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.725rem;
  font-weight: 700;
  color: #8c9ec4;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item:active,
.bottom-nav-item.active {
  color: var(--brand-gold);
}

.bottom-nav-item:hover .bottom-nav-icon,
.bottom-nav-item:active .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-icon {
  transform: translateY(-2px) scale(1.1);
}

/* ==========================================================================
   CARNIVAL TARGET BOARD & BALLOON POP GAME STYLES
   ========================================================================== */
.target-board-game {
  position: relative;
  width: 100%;
  max-width: 290px;
  margin: 0 auto 1rem auto;
  user-select: none;
  -webkit-user-select: none;
}

.target-board-arena {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 25px rgba(245, 188, 44, 0.35);
  overflow: hidden;
  cursor: crosshair;
  background: radial-gradient(circle, #0b1a3a 0%, #040914 100%);
  border: 4px solid var(--brand-gold, #f5bc2c);
  touch-action: manipulation;
}

.target-board-svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Score Badge Overlay */
.target-score-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 16, 38, 0.9);
  border: 1.5px solid var(--brand-gold, #f5bc2c);
  color: #ffffff;
  font-family: var(--font-display, sans-serif);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.2rem 0.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 10;
  pointer-events: none;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  letter-spacing: 0.05em;
  transition: transform 0.15s ease;
}

.target-score-badge span {
  color: #f5bc2c;
  font-size: 0.95rem;
  margin-left: 2px;
}

.target-score-badge.pop-bounce {
  transform: translateX(-50%) scale(1.25);
}

/* Balloons Container */
.balloons-container {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.balloon {
  position: absolute;
  width: 44px;
  height: 56px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.15s ease-out;
  animation: balloonFloat var(--float-duration, 3.2s) ease-in-out infinite alternate;
  animation-delay: var(--float-delay, 0s);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
  touch-action: manipulation;
}

.balloon:hover {
  transform: translate(-50%, -50%) scale(1.15);
  filter: drop-shadow(0 0 12px rgba(245, 188, 44, 0.7));
}

.balloon-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

@keyframes balloonFloat {
  0% {
    transform: translate(-50%, -50%) translateY(0px) rotate(-4deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px) rotate(4deg);
  }
  100% {
    transform: translate(-50%, -50%) translateY(-4px) rotate(-2deg);
  }
}

.balloon.popping {
  animation: balloonPop 0.25s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  pointer-events: none;
}

@keyframes balloonPop {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  40% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

/* Darts Layer */
.darts-container {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.dart-item {
  position: absolute;
  width: 20px;
  height: 42px;
  transform-origin: 50% 0%; /* Tip of dart */
  will-change: transform, opacity;
  filter: drop-shadow(3px 5px 6px rgba(0, 0, 0, 0.7));
  transition: opacity 0.4s ease;
}

.dart-item.flying {
  transition: transform 0.18s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.dart-item.stuck {
  animation: dartThwack 0.15s ease-out;
}

@keyframes dartThwack {
  0% {
    transform: var(--stuck-transform) scale(1.25);
  }
  50% {
    transform: var(--stuck-transform) scale(0.9);
  }
  100% {
    transform: var(--stuck-transform) scale(1);
  }
}

/* Pop Particles & Score Floating FX */
.pop-effects-container {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.pop-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: popParticleAnim 0.45s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes popParticleAnim {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.2);
    opacity: 0;
  }
}

.pop-text-floating {
  position: absolute;
  font-family: var(--font-display, sans-serif);
  font-weight: 900;
  font-size: 1.05rem;
  color: #ffe066;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px #ff2a5f;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: popTextFloat 0.75s ease-out forwards;
}

@keyframes popTextFloat {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -100%) scale(1.25);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -170%) scale(1);
    opacity: 0;
  }
}

/* Game Over / Miss Overlay Styles */
.target-game-over-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(6, 12, 28, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  animation: overlayFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.target-game-over-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.game-over-card {
  text-align: center;
  padding: 0.8rem 1rem;
  max-width: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-over-icon {
  font-size: 1.8rem;
  margin-bottom: 0.1rem;
}

.game-over-title {
  color: #ff3366;
  font-family: var(--font-display, sans-serif);
  font-weight: 900;
  font-size: 0.95rem;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-over-subtitle {
  color: #a2b8e8;
  font-size: 0.72rem;
  margin-bottom: 0.4rem;
}

.game-over-score-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.6rem;
}

.game-over-score-box {
  background: rgba(15, 28, 60, 0.85);
  border: 1px solid rgba(245, 188, 44, 0.4);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 65px;
}

.score-label {
  font-size: 0.6rem;
  color: #a2b8e8;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.score-num {
  font-family: var(--font-display, sans-serif);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand-gold, #f5bc2c);
}

.game-over-restart-btn {
  background: linear-gradient(135deg, #f5bc2c 0%, #d49419 100%);
  color: #0b1a3a;
  border: none;
  font-family: var(--font-display, sans-serif);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 188, 44, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-over-restart-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(245, 188, 44, 0.6);
}

.game-over-restart-btn:active {
  transform: scale(0.96);
}

.game-over-claim-btn {
  display: inline-block;
  margin-top: 0.4rem;
  background: linear-gradient(135deg, #ff3366 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-display, sans-serif);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.game-over-claim-btn:hover {
  transform: scale(1.06);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(255, 51, 102, 0.6);
}

/* ==========================================================================
   CARNIVAL GRAND JACKPOT COUNTER & SLOT REEL STYLES
   ========================================================================== */
.jackpot-section {
  width: 100%;
  padding: 1.25rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}

.jackpot-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: radial-gradient(ellipse at top, #240a45 0%, #0e051c 70%, #06020c 100%);
  border-top: 3px solid var(--brand-gold, #f5bc2c);
  border-bottom: 3px solid var(--brand-gold, #f5bc2c);
  border-left: none;
  border-right: none;
  border-radius: 0;
  padding: 1.75rem 1.25rem 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.85), inset 0 0 40px rgba(245, 188, 44, 0.3);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Flashing Bulbs Track */
.jackpot-bulbs-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 6px;
  left: 12px;
  right: 12px;
  height: 10px;
  pointer-events: none;
}

.jackpot-bulbs-track .bulb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffe066;
  box-shadow: 0 0 8px #ffe066;
  animation: bulbPulse 1.2s ease-in-out infinite alternate;
}

.jackpot-bulbs-track .bulb:nth-child(even) {
  background-color: #ff3366;
  box-shadow: 0 0 8px #ff3366;
  animation-delay: 0.6s;
}

@keyframes bulbPulse {
  0% {
    opacity: 0.3;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1.25);
  }
}

/* Header */
.jackpot-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0.85rem;
}

.jackpot-crown {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  filter: drop-shadow(0 0 8px rgba(245, 188, 44, 0.9));
  animation: crownBounce 2s ease-in-out infinite alternate;
}

@keyframes crownBounce {
  0% { transform: translateY(0) rotate(-4deg); }
  100% { transform: translateY(-4px) rotate(4deg); }
}

.jackpot-title {
  color: var(--brand-gold, #f5bc2c);
  font-family: var(--font-display, sans-serif);
  font-weight: 900;
  font-size: clamp(1.35rem, 4.5vw, 2.75rem);
  letter-spacing: 0.08em;
  margin: 0;
  text-shadow: 0 0 22px rgba(245, 188, 44, 0.85), 0 3px 6px rgba(0,0,0,0.95);
  text-transform: uppercase;
}

/* Jackpot Display Box (GRAND MONEY POT) */
.jackpot-counter-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(180deg, #020612 0%, #0d1e42 50%, #020612 100%);
  border: 3.5px solid #f5bc2c;
  border-radius: 20px;
  padding: 1.1rem 1.75rem;
  margin: 0 auto 1.25rem auto;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.95), 0 10px 35px rgba(245, 188, 44, 0.45), 0 0 25px rgba(255, 224, 102, 0.3);
  max-width: 100%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.jackpot-counter-box:hover {
  transform: scale(1.025);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.95), 0 12px 40px rgba(245, 188, 44, 0.65), 0 0 30px rgba(255, 224, 102, 0.4);
}

.jackpot-counter-box:active {
  transform: scale(0.98);
}

.jackpot-currency {
  font-family: var(--font-display, sans-serif);
  font-weight: 900;
  font-size: clamp(2.2rem, 6.8vw, 4.5rem);
  color: #ffe066;
  text-shadow: 0 0 18px rgba(255, 224, 102, 0.9), 0 0 35px rgba(245, 188, 44, 0.6);
  margin-right: 0.25rem;
}

.jackpot-reels-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
}

/* Individual Slot Digit Reel */
.slot-reel {
  position: relative;
  width: clamp(32px, 6.2vw, 56px);
  height: clamp(52px, 9.5vw, 84px);
  background: linear-gradient(180deg, #09152d 0%, #152952 45%, #152952 55%, #09152d 100%);
  border: 1.5px solid rgba(245, 188, 44, 0.55);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 12px 14px rgba(0, 0, 0, 0.92), inset 0 -12px 14px rgba(0, 0, 0, 0.92), 0 4px 10px rgba(0,0,0,0.5);
}

.slot-reel-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.12, 0.8, 0.32, 1.25);
  will-change: transform;
}

.slot-reel-digit {
  height: clamp(52px, 9.5vw, 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, monospace, sans-serif);
  font-weight: 900;
  font-size: clamp(1.8rem, 5.5vw, 3.4rem);
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 20%, #f5bc2c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.95));
  line-height: 1;
}

.jackpot-separator {
  font-family: var(--font-display, sans-serif);
  font-weight: 900;
  font-size: clamp(1.6rem, 5.2vw, 3.2rem);
  color: var(--brand-gold, #f5bc2c);
  margin: 0 0.1rem;
  align-self: flex-end;
  padding-bottom: 0.35rem;
  text-shadow: 0 0 12px rgba(245, 188, 44, 0.9);
}

/* Shimmer Sweep */
.jackpot-shimmer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 42%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 58%
  );
  transform: rotate(25deg);
  animation: shimmerSweep 4s infinite linear;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { transform: translateY(-100%) rotate(25deg); }
  100% { transform: translateY(100%) rotate(25deg); }
}

/* Controls */
.jackpot-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

.jackpot-claim-btn {
  background: linear-gradient(135deg, #20e070 0%, #008538 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-family: var(--font-display, sans-serif);
  font-weight: 900;
  font-size: 1.05rem;
  padding: 0.65rem 1.8rem;
  border-radius: 25px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(32, 224, 112, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.jackpot-claim-btn:hover {
  transform: scale(1.06);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(32, 224, 112, 0.7);
}

.jackpot-claim-btn:active {
  transform: scale(0.95);
}

/* Live Winners Slot Machine Card (Full Width 3 Columns Layout) */
.jackpot-winners-card {
  position: relative;
  background: radial-gradient(ellipse at top, #14072b 0%, #080212 100%);
  border: 2px solid var(--brand-gold, #f5bc2c);
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), inset 0 0 18px rgba(245, 188, 44, 0.25);
}

.jackpot-winners-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(245, 188, 44, 0.25);
}

.ticker-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slot-reel-tag {
  font-size: 0.72rem;
  color: var(--brand-gold, #f5bc2c);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(245, 188, 44, 0.6);
}

/* Slot Machine Viewport Window */
.slot-winners-viewport {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #030712;
  border: 1.5px solid rgba(245, 188, 44, 0.35);
  box-shadow: inset 0 12px 14px rgba(0, 0, 0, 0.95), inset 0 -12px 14px rgba(0, 0, 0, 0.95);
  padding: 0.5rem 0.5rem;
}

.slot-winners-glass-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.04) 100%
  );
  pointer-events: none;
}

/* 3 Winners Grid: Left, Middle, Right */
.jackpot-winners-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  will-change: transform;
}

@media (max-width: 680px) {
  .jackpot-winners-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Slot Machine Reel Spin Animations */
.jackpot-winners-list.slot-spinning {
  animation: slotReelCascade 0.45s cubic-bezier(0.15, 0.85, 0.35, 1.2);
}

@keyframes slotReelCascade {
  0% {
    transform: translateY(-30px);
    filter: blur(3px);
    opacity: 0.4;
  }
  65% {
    transform: translateY(5px);
    filter: blur(0.5px);
    opacity: 0.95;
  }
  100% {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
  }
}

/* Winner Row / Grid Column Items */
.winner-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(15, 28, 60, 0.88) 0%, rgba(22, 42, 88, 0.88) 100%);
  border: 1px solid rgba(245, 188, 44, 0.3);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.winner-row-item:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(245, 188, 44, 0.85);
  box-shadow: 0 6px 18px rgba(245, 188, 44, 0.4);
}

.winner-row-item.newest-winner {
  border: 1.5px solid var(--brand-gold, #f5bc2c);
  background: linear-gradient(90deg, rgba(245, 188, 44, 0.22) 0%, rgba(255, 51, 102, 0.18) 100%);
  box-shadow: 0 0 16px rgba(245, 188, 44, 0.45), inset 0 0 10px rgba(255, 224, 102, 0.25);
  animation: goldFlashGlow 1.2s ease-in-out infinite alternate;
}

@keyframes goldFlashGlow {
  0% {
    box-shadow: 0 0 8px rgba(245, 188, 44, 0.3);
  }
  100% {
    box-shadow: 0 0 22px rgba(245, 188, 44, 0.8), 0 0 10px rgba(255, 51, 102, 0.5);
  }
}

.winner-col-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
}

.winner-badge-icon {
  font-size: 1.15rem;
  filter: drop-shadow(0 0 5px rgba(245, 188, 44, 0.7));
}

.winner-text-group {
  display: flex;
  flex-direction: column;
}

.winner-user-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.winner-game-title {
  font-size: 0.7rem;
  color: #a2b8e8;
  line-height: 1.2;
}

.winner-col-payout {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.winner-payout-num {
  font-family: var(--font-display, sans-serif);
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--brand-gold, #f5bc2c);
  text-shadow: 0 0 8px rgba(245, 188, 44, 0.6);
  line-height: 1.2;
}

.winner-payout-tag {
  font-size: 0.6rem;
  color: #20e070;
  font-weight: 700;
  line-height: 1.2;
}

/* ==========================================================================
   GoPerya PH — Festival & Carnival Blog Article Enhancements
   Mobile-Friendly Layouts, Responsive Tables, Interactive Widgets & Carnival Marquees
   ========================================================================== */

/* Banderitas / Fiesta Pennant Garlands */
.fiesta-banderitas {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 18px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: repeat-x bottom/40px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18'%3E%3Cpolygon points='0,0 20,16 40,0' fill='%23ef4444'/%3E%3Cpolygon points='40,0 60,16 80,0' fill='%23f5bc2c'/%3E%3Cpolygon points='80,0 100,16 120,0' fill='%2338bdf8'/%3E%3Cpolygon points='120,0 140,16 160,0' fill='%23e11d48'/%3E%3C/svg%3E");
  opacity: 0.95;
}

/* Article Hero Title */
.article-hero-title {
  font-size: clamp(1.4rem, 4.2vw, 2.2rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Article Container Card */
.article-container-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: 16px;
  padding: clamp(1rem, 4vw, 2.5rem);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(245, 188, 44, 0.2);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Article Hero Banner with Carnival Marquee Frame */
.article-hero-banner {
  width: 100%;
  height: clamp(180px, 32vw, 320px);
  background: linear-gradient(135deg, #09132c 0%, #132448 100%);
  border-radius: 12px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 4px solid var(--brand-gold, #f5bc2c);
  box-shadow: 0 0 20px rgba(245, 188, 44, 0.35), inset 0 0 25px rgba(0, 0, 0, 0.5);
}

.article-hero-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 2;
  border-radius: 8px;
  margin: 4px;
}

/* Table of Contents - Mobile Collapsible */
.toc-box {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-left: 5px solid var(--brand-gold, #f5bc2c);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.toc-header-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
}

.toc-title {
  font-weight: 800;
  color: #0f1c3a;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.toc-list li a {
  color: #1e3a8a;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.toc-list li a:hover, .toc-list li a.active {
  background: #e0f2fe;
  color: #0284c7;
  padding-left: 0.85rem;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  background: #ffffff;
}

.article-body th {
  background: #0f1c3a;
  color: #ffffff;
  font-weight: 800;
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--brand-gold, #f5bc2c);
}

.article-body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.9rem;
}

.article-body tr:nth-child(even) td {
  background: #f8fafc;
}

.article-body tr:hover td {
  background: #f1f5f9;
}

/* Carnival Booth & Callout Cards */
.perya-booth-callout {
  background: linear-gradient(135deg, #0f1c3a 0%, #1a2a52 100%);
  border: 2px solid var(--brand-gold, #f5bc2c);
  border-radius: 14px;
  padding: 1.35rem;
  margin: 2rem 0;
  color: #ffffff;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.perya-booth-callout::before {
  content: "🎪 PERYA TIP BOOTH";
  position: absolute;
  top: -14px;
  left: 1.25rem;
  background: var(--brand-red, #d31838);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 900;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.perya-booth-callout p {
  color: #e2e8f0 !important;
  margin-bottom: 0.5rem !important;
  font-size: 0.95rem !important;
}

/* Interactive Carnival Widgets Base Styles */
.interactive-widget {
  background: linear-gradient(145deg, #0a1329 0%, #14244a 100%);
  border: 3px solid var(--brand-gold, #f5bc2c);
  border-radius: 16px;
  padding: clamp(1rem, 3.5vw, 1.75rem);
  margin: 2.25rem 0;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35), 0 0 15px rgba(245, 188, 44, 0.25);
  position: relative;
}

.interactive-widget-title {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 900;
  color: var(--brand-gold, #f5bc2c);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.interactive-widget-subtitle {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* Mobile Optimizations for Widgets */
.widget-grid-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.widget-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.widget-btn-primary {
  background: linear-gradient(135deg, #f5bc2c 0%, #d97706 100%);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(245, 188, 44, 0.4);
}

.widget-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 188, 44, 0.6);
}

.widget-btn-secondary {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
}

.widget-btn-secondary:hover {
  background: #334155;
}

/* Like & Share Social Floating Bar for Articles */
.article-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #f1f5f9;
  border-radius: 12px;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.action-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.action-bar-btn:hover {
  background: #f8fafc;
  color: var(--brand-red, #d31838);
  border-color: var(--brand-red, #d31838);
}

@media (max-width: 640px) {
  .article-action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .action-bar-btn {
    justify-content: center;
  }
}

/* ==========================================================================
   Home Interactive Blog Marquee Section
   ========================================================================== */
.home-blog-marquee-section {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, #070d1e 0%, #0f1c3a 50%, #070d1e 100%);
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(245, 188, 44, 0.25);
  border-bottom: 2px solid rgba(245, 188, 44, 0.25);
}

.home-blog-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.blog-controls-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 0 0.5rem;
}

.blog-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.blog-filter-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.blog-filter-btn:hover, .blog-filter-btn.active {
  background: var(--brand-gold);
  color: #0f172a;
  border-color: var(--brand-gold);
  box-shadow: 0 0 12px rgba(245, 188, 44, 0.4);
}

.blog-playback-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-control-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: rgba(15, 28, 58, 0.85);
  color: #f5bc2c;
  border: 1px solid rgba(245, 188, 44, 0.4);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-control-btn:hover {
  background: var(--brand-gold);
  color: #0f172a;
}

/* Marquee Outer Viewport */
.blog-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-marquee-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.blog-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: blogMarqueeScroll 35s linear infinite;
  will-change: transform;
}

.blog-marquee-track.paused {
  animation-play-state: paused !important;
}

.blog-marquee-track.fast {
  animation-duration: 18s !important;
}

.blog-marquee-track:hover {
  animation-play-state: paused;
}

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

/* Individual Blog Marquee Card */
.blog-marquee-card {
  width: 310px;
  flex-shrink: 0;
  background: rgba(15, 28, 58, 0.95);
  border: 1.5px solid rgba(245, 188, 44, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.blog-marquee-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--brand-gold);
  box-shadow: 0 12px 30px rgba(245, 188, 44, 0.3);
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(245, 188, 44, 0.15);
  color: var(--brand-gold);
  border: 1px solid rgba(245, 188, 44, 0.3);
  margin-bottom: 0.65rem;
  width: fit-content;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.blog-card-title a {
  color: #ffffff;
}
.blog-card-title a:hover {
  color: var(--brand-gold);
}

.blog-card-excerpt {
  font-size: 0.825rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-highlights {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.blog-card-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 700;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.blog-card-readtime {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.blog-card-btn {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease;
}

.blog-card-btn:hover {
  gap: 0.5rem;
  color: #ffffff;
}

@media (max-width: 640px) {
  .blog-marquee-card {
    width: 270px;
    padding: 1rem;
  }
  .blog-controls-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .blog-filter-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}





