/* =============================================================
   GAMESA999 🎪 — Carnival Big Top
   Style #22 · Circus tent red-white stripes + multi-color confetti
   Festive playful pop · target 25-45 family · slot-heavy seasonal
   ============================================================= */


/* ----- TOKEN ----- */
:root {
  --red:        #E63946;
  --red-dark:   #B81D2A;
  --yellow:     #FFD60A;
  --yellow-2:   #FFB800;
  --pink:       #FF6BA1;
  --pink-2:     #FF3D85;
  --cyan:       #00BBF9;
  --cyan-2:     #0095CC;
  --purple:     #9D4EDD;
  --purple-2:   #7B2CBF;
  --orange:     #FF9F1C;
  --green:      #06D6A0;
  --magenta:    #FF006E;
  --white:      #FFFFFF;
  --cream:      #FFF6E0;
  --paper:      #FFFAF0;
  --ink:        #1F0E1A;
  --ink-2:      #4A2545;
  --text:       #2A1620;
  --text-2:     #5A4050;
  --text-3:     #8A7080;
  --line:       rgba(230, 57, 70, .25);
  --shadow:     0 6px 20px rgba(230, 57, 70, .25);
  --shadow-lg:  0 14px 40px rgba(157, 78, 221, .25);
}

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

html { scroll-behavior: smooth; }

body {
  background:
    /* polka dots */
    radial-gradient(circle at 25px 25px, rgba(255, 214, 10, 0.20) 4px, transparent 5px),
    radial-gradient(circle at 75px 75px, rgba(255, 107, 161, 0.18) 4px, transparent 5px),
    /* base cream */
    var(--paper);
  background-size: 100px 100px, 100px 100px, auto;
  color: var(--text);
  font-family: 'Bai Jamjuree', 'Mitr', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--pink-2); }
img { display: block; max-width: 100%; }


/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ink);
}

.modak-pop {
  font-family: 'Modak', 'Mitr', sans-serif;
  font-weight: 400;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
  text-shadow:
    4px 4px 0 var(--ink),
    8px 8px 0 rgba(0,0,0,0.18);
  letter-spacing: 0.01em;
}
.modak-pop.modak-yellow { color: var(--yellow); }
.modak-pop.modak-pink   { color: var(--pink); }
.modak-pop.modak-cyan   { color: var(--cyan); }
.modak-pop.modak-purple { color: var(--purple); }
.modak-pop.modak-orange { color: var(--orange); }
.modak-pop.modak-red    { color: var(--red); }

.big-yellow { color: var(--orange); font-weight: 700; }
.big-pink   { color: var(--pink-2); font-weight: 700; }
.big-cyan   { color: var(--cyan-2); font-weight: 700; }

.dim   { color: var(--text-2); }
.dim-2 { color: var(--text-3); }
.mini  { font-size: 12px; }
.mono  { font-family:'Bai Jamjuree','Courier New',monospace; }
.center { text-align: center; }
.right { text-align: right; }


/* ----- BUTTON ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-weight: 400;
  font-size: 15px;
  border: 3px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: transform .14s, box-shadow .2s;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover  { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn-pink   { background: var(--pink); color: var(--white); }
.btn-pink:hover { background: var(--pink-2); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-cyan   { background: var(--cyan); color: var(--white); }
.btn-cyan:hover { background: var(--cyan-2); }
.btn-red    { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-2); }

.btn-line   { background: #06C755; color: var(--white); }
.btn-tg     { background: #0088CC; color: var(--white); }

.btn-ghost  { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 214, 10, 0.30); }

.btn-block  { width: 100%; justify-content: center; }
.btn-lg     { padding: 14px 30px; font-size: 17px; border-radius: 14px; }
.btn-xl     { padding: 18px 38px; font-size: 22px; border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); }
.btn-xl:hover  { box-shadow: 8px 8px 0 var(--ink); }
.btn-xl:active { box-shadow: 3px 3px 0 var(--ink); }
.btn-sm     { padding: 8px 14px; font-size: 13px; border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); border-width: 2px; }

/* btn shake on hover */
@keyframes btn-shake {
  0%, 100% { transform: translate(-2px, -2px) rotate(-1deg); }
  50%      { transform: translate(-2px, -2px) rotate(1deg); }
}
.btn-pink:hover, .btn-yellow:hover, .btn-cyan:hover {
  animation: btn-shake .35s ease-in-out infinite;
}


/* ----- LAYOUT ----- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hide-xs { display: inline; }


/* =============================================================
   TICKER STRIP — top scrolling carnival messages
   ============================================================= */
.ticker-strip {
  background:
    repeating-linear-gradient(
      90deg,
      var(--red) 0,
      var(--red) 40px,
      var(--white) 40px,
      var(--white) 80px
    );
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
  height: 36px;
  position: relative;
}
.ticker-track {
  display: flex; gap: 36px;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  padding: 8px 0;
  height: 36px;
  align-items: center;
}
.ticker-track span {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 16px;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--ink);
  flex-shrink: 0;
  display: inline-flex;
  gap: 6px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* =============================================================
   TOPBAR — contact + tickets
   ============================================================= */
.topbar {
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  font-size: 13px;
}
.topbar .container {
  padding-top: 8px; padding-bottom: 8px;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.topbar a { color: var(--text); font-weight: 600; }
.topbar a:hover { color: var(--red); }
.topbar .sep { color: var(--text-3); }

.online-dot {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-weight: 700;
}
.online-dot::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink-dot 1.2s ease-in-out infinite;
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(1.4); }
}

.line-link { color: #06C755 !important; }

.ticket-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow);
  color: var(--ink);
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: 'Carter One', 'Mitr', sans-serif;
}


/* =============================================================
   HEADER — brand
   ============================================================= */
header.main {
  background:
    repeating-linear-gradient(
      135deg,
      var(--white) 0,
      var(--white) 16px,
      var(--cream) 16px,
      var(--cream) 32px
    );
  border-bottom: 4px solid var(--ink);
  position: sticky; top: 0; z-index: 80;
}
header.main .container {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; align-items: center; gap: 24px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand .logo-tent {
  width: 56px; height: 56px;
  position: relative;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      var(--red) 0deg 45deg,
      var(--white) 45deg 90deg,
      var(--red) 90deg 135deg,
      var(--white) 135deg 180deg,
      var(--red) 180deg 225deg,
      var(--white) 225deg 270deg,
      var(--red) 270deg 315deg,
      var(--white) 315deg 360deg
    );
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand .tent-flag {
  font-size: 26px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  z-index: 2;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 26px;
  color: var(--red);
  -webkit-text-stroke: 1px var(--ink);
  text-stroke: 1px var(--ink);
  letter-spacing: 0.01em;
}
.brand-text small {
  font-family: 'Bai Jamjuree';
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  margin-top: 4px;
}

.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.balance-pill {
  display: none;
  font-family: 'Carter One', 'Mitr', sans-serif;
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
}


/* =============================================================
   NAV — 9 IA links
   ============================================================= */
nav.main-nav {
  background: var(--ink);
  border-bottom: 4px solid var(--yellow);
  position: relative;
}
nav.main-nav::before, nav.main-nav::after {
  content: ''; position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg, var(--yellow) 0 8px, var(--ink) 8px 16px
  );
}
nav.main-nav::before { top: 0; }
nav.main-nav::after  { bottom: 0; background: var(--yellow); }

nav.main-nav .container {
  display: flex; gap: 0; flex-wrap: wrap;
  padding: 0 20px;
  align-items: stretch;
}
nav.main-nav a {
  position: relative;
  padding: 14px 16px;
  color: var(--white);
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 4px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
nav.main-nav a:hover {
  color: var(--yellow);
  background: rgba(255, 214, 10, 0.10);
}
nav.main-nav a.active {
  color: var(--yellow);
  background: rgba(255, 214, 10, 0.18);
  border-bottom-color: var(--yellow);
}
nav.main-nav a .badge {
  font-family: 'Bai Jamjuree';
  font-size: 9px;
  font-weight: 800;
  background: var(--pink);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
}
nav.main-nav a .badge.gold {
  background: var(--yellow);
  color: var(--ink);
}


/* =============================================================
   PROMO RIBBON — light bulb edges
   ============================================================= */
.ribbon {
  background: var(--red);
  border-bottom: 4px solid var(--ink);
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Carter One', 'Mitr', sans-serif;
  color: var(--white);
  letter-spacing: 0.02em;
  position: relative;
}
.ribbon code {
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 12px;
  border-radius: 6px;
  border: 2px solid var(--ink);
  font-family: 'Bai Jamjuree';
  font-weight: 800;
  font-size: 14px;
}
.ribbon .pill {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 12px;
  margin-right: 8px;
  font-weight: 800;
  border: 2px solid var(--ink);
}

/* light bulb row — 8 bulbs blinking in sequence */
.bulb-row {
  display: inline-flex;
  gap: 8px;
  margin: 0 12px;
  vertical-align: middle;
}
.bulb-row i {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  display: inline-block;
  animation: bulb-blink 1.6s ease-in-out infinite;
}
.bulb-row i:nth-child(1) { animation-delay: 0s; }
.bulb-row i:nth-child(2) { animation-delay: 0.2s; }
.bulb-row i:nth-child(3) { animation-delay: 0.4s; }
.bulb-row i:nth-child(4) { animation-delay: 0.6s; }
.bulb-row i:nth-child(5) { animation-delay: 0.8s; }
.bulb-row i:nth-child(6) { animation-delay: 1.0s; }
.bulb-row i:nth-child(7) { animation-delay: 1.2s; }
.bulb-row i:nth-child(8) { animation-delay: 1.4s; }

@keyframes bulb-blink {
  0%, 100% {
    background: var(--yellow);
    box-shadow: 0 0 12px var(--yellow), 0 0 20px var(--yellow);
    transform: scale(1.1);
  }
  50% {
    background: rgba(255, 214, 10, 0.3);
    box-shadow: none;
    transform: scale(0.85);
  }
}


/* =============================================================
   MAIN
   ============================================================= */
main { padding: 28px 0 80px; }
section[data-page] { display: none; }
section[data-page].show { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

:where(h1,h2).page-title {
  font-size: 56px;
  margin-bottom: 8px;
  text-align: center;
  margin-top: 12px;
}
.page-sub {
  color: var(--text-2);
  margin-bottom: 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}


/* =============================================================
   HERO — big top tent + spotlight + curved title + confetti
   ============================================================= */
.hero-tent {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 32px;
  height: 540px;
  background:
    /* night sky */
    radial-gradient(ellipse at 50% 100%, rgba(157, 78, 221, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse at 25% 30%, rgba(255, 107, 161, 0.40) 0%, transparent 40%),
    radial-gradient(ellipse at 75% 25%, rgba(0, 187, 249, 0.35) 0%, transparent 40%),
    linear-gradient(180deg, #2A0E47 0%, #4B1A6B 40%, #6B2E8E 70%, #8C3A9D 100%);
  box-shadow: 0 16px 50px rgba(157, 78, 221, 0.4), inset 0 -120px 100px rgba(0,0,0,0.3);
}

/* Spotlight beams */
.spotlight {
  position: absolute;
  width: 140%;
  height: 140%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.spotlight-1 {
  top: -50%; left: -20%;
  background: conic-gradient(
    from 90deg at 50% 0%,
    transparent 0deg,
    rgba(255, 214, 10, 0.18) 12deg,
    transparent 24deg
  );
  animation: spotlight-sweep-1 8s ease-in-out infinite alternate;
  transform-origin: 50% 0%;
}
.spotlight-2 {
  top: -50%; right: -20%; left: auto;
  background: conic-gradient(
    from 270deg at 50% 0%,
    transparent 348deg,
    rgba(255, 107, 161, 0.20) 360deg,
    transparent 12deg
  );
  animation: spotlight-sweep-2 7s ease-in-out infinite alternate;
  transform-origin: 50% 0%;
}
@keyframes spotlight-sweep-1 {
  0%   { transform: rotate(-15deg); }
  100% { transform: rotate(15deg); }
}
@keyframes spotlight-sweep-2 {
  0%   { transform: rotate(15deg); }
  100% { transform: rotate(-15deg); }
}

/* hero confetti rain mount */
.hero-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

/* hero content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 36px 32px 0;
  max-width: 920px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: 'Carter One', 'Mitr', sans-serif;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--ink);
  font-size: 16px;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.hero-curve {
  width: 100%;
  max-width: 800px;
  height: 130px;
  margin: 0 auto;
  display: block;
}
.hero-curve-text {
  font-weight: 400;
  paint-order: stroke fill;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linejoin: round;
}

.hero-title {
  font-size: 96px;
  line-height: 0.95;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-title .hero-and {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 40px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--ink);
  -webkit-text-stroke: 0;
  text-stroke: 0;
  align-self: center;
}

.hero-sub {
  font-size: 17px;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--ink);
  margin: 16px auto 24px;
  font-weight: 600;
  max-width: 800px;
}
.hero-sub strong { color: var(--yellow); }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Big-top tent silhouette at bottom */
.big-top-silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 200px;
  pointer-events: none;
  z-index: 4;
}
.tent-roof {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 210px solid transparent;
  border-right: 210px solid transparent;
  border-bottom: 130px solid var(--red);
  filter: drop-shadow(0 -2px 0 var(--ink));
}
.tent-stripes {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 130px;
  background:
    linear-gradient(60deg,
      transparent 0%, transparent calc(50% - 35px),
      var(--white) calc(50% - 35px), var(--white) calc(50% - 18px),
      transparent calc(50% - 18px), transparent calc(50% + 12px),
      var(--white) calc(50% + 12px), var(--white) calc(50% + 30px),
      transparent calc(50% + 30px));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.tent-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 84px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--red) 0,
      var(--red) 28px,
      var(--white) 28px,
      var(--white) 56px
    );
  border: 4px solid var(--ink);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.tent-pole {
  position: absolute;
  bottom: 0;
  width: 6px;
  height: 80px;
  background: var(--ink);
}
.tent-pole-l { left: calc(50% - 178px); }
.tent-pole-r { right: calc(50% - 178px); }
.tent-flagtop {
  position: absolute;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.5));
  animation: flag-wave 2.5s ease-in-out infinite;
}
@keyframes flag-wave {
  0%, 100% { transform: translateX(-50%) rotate(-8deg); }
  50%      { transform: translateX(-50%) rotate(8deg); }
}

/* confetti particles (DOM-based via JS) */
.confetti-piece {
  position: absolute;
  width: 10px; height: 14px;
  top: -20px;
  pointer-events: none;
  z-index: 6;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}


/* =============================================================
   STATS — 4 carnival cards
   ============================================================= */
.carnival-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.cstat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform .15s;
}
.cstat-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

.cstat-card.cstat-yellow { background: var(--yellow); }
.cstat-card.cstat-pink   { background: var(--pink); color: var(--white); }
.cstat-card.cstat-cyan   { background: var(--cyan); color: var(--white); }
.cstat-card.cstat-purple { background: var(--purple); color: var(--white); }

.cstat-card.cstat-pink h2,
.cstat-card.cstat-pink h4,
.cstat-card.cstat-cyan h2,
.cstat-card.cstat-cyan h4,
.cstat-card.cstat-purple h2,
.cstat-card.cstat-purple h4 { color: var(--white); }

.cstat-icon {
  font-size: 38px;
  filter: drop-shadow(2px 2px 0 var(--ink));
  flex-shrink: 0;
}
.cstat-num {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  text-shadow: 2px 2px 0 rgba(255,255,255,0.6);
}
.cstat-card.cstat-pink .cstat-num,
.cstat-card.cstat-cyan .cstat-num,
.cstat-card.cstat-purple .cstat-num { color: var(--white); text-shadow: 2px 2px 0 var(--ink); }

.cstat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
  opacity: 0.85;
}
.cstat-card.cstat-pink .cstat-label,
.cstat-card.cstat-cyan .cstat-label,
.cstat-card.cstat-purple .cstat-label { color: var(--white); opacity: 0.95; }


/* =============================================================
   SECTION HEAD
   ============================================================= */
.sec-head {
  display: flex; align-items: center;
  gap: 14px; flex-wrap: wrap;
  margin: 36px 0 18px;
  position: relative;
}
.sec-head h2 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 32px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sec-head h2 small.sec-mini {
  font-family: 'Bai Jamjuree';
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}
.sec-bulb {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 14px var(--yellow);
  border: 2px solid var(--ink);
  animation: bulb-blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.sec-head .more {
  margin-left: auto;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
}
.sec-head .more:hover {
  background: var(--pink);
  color: var(--white);
}
.sec-head .dim { margin-left: auto; }


/* =============================================================
   SPIN WHEEL — center stage feature
   ============================================================= */
.wheel-stage {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: center;
  background:
    repeating-linear-gradient(
      45deg,
      var(--red) 0,
      var(--red) 40px,
      var(--white) 40px,
      var(--white) 80px
    );
  border: 5px solid var(--ink);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
}

.wheel-container {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}
.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 42px;
  color: var(--yellow);
  text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink);
  z-index: 30;
  animation: pointer-bob 0.8s ease-in-out infinite;
}
@keyframes pointer-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(4px); }
}

.wheel {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 6px solid var(--ink);
  box-shadow: 0 0 0 6px var(--yellow), 0 16px 40px rgba(0,0,0,0.4);
  overflow: hidden;
}
.wheel-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--red)     0deg  45deg,
    var(--yellow) 45deg  90deg,
    var(--pink)   90deg 135deg,
    var(--cyan)  135deg 180deg,
    var(--purple) 180deg 225deg,
    var(--orange) 225deg 270deg,
    var(--green)  270deg 315deg,
    var(--magenta) 315deg 360deg
  );
  transition: transform 4.5s cubic-bezier(0.18, 0.85, 0.18, 1);
}

/* labels positioned at each wedge center */
.wheel-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 4.5s cubic-bezier(0.18, 0.85, 0.18, 1);
}
.wheel-labels span {
  position: absolute;
  left: 50%; top: 50%;
  transform-origin: 0 0;
  transform:
    rotate(calc(22.5deg + var(--i) * 45deg))
    translateY(-115px)
    translateX(-22px);
  width: 56px;
  text-align: center;
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 13px;
  color: var(--white);
  text-shadow: 1.5px 1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px -1.5px 0 var(--ink);
  line-height: 1.1;
}

/* lights around wheel rim */
.wheel-bulbs {
  position: absolute;
  inset: -2px;
  pointer-events: none;
}
.wheel-bulbs i {
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  transform-origin: 0 0;
  animation: bulb-blink 1.6s ease-in-out infinite;
}
.wheel-bulbs i:nth-child(1)  { transform: rotate(0deg)   translateY(-167px) translate(-5px, -5px); animation-delay: 0.0s; }
.wheel-bulbs i:nth-child(2)  { transform: rotate(22.5deg) translateY(-167px) translate(-5px, -5px); animation-delay: 0.1s; }
.wheel-bulbs i:nth-child(3)  { transform: rotate(45deg)  translateY(-167px) translate(-5px, -5px); animation-delay: 0.2s; }
.wheel-bulbs i:nth-child(4)  { transform: rotate(67.5deg) translateY(-167px) translate(-5px, -5px); animation-delay: 0.3s; }
.wheel-bulbs i:nth-child(5)  { transform: rotate(90deg)  translateY(-167px) translate(-5px, -5px); animation-delay: 0.4s; }
.wheel-bulbs i:nth-child(6)  { transform: rotate(112.5deg) translateY(-167px) translate(-5px, -5px); animation-delay: 0.5s; }
.wheel-bulbs i:nth-child(7)  { transform: rotate(135deg) translateY(-167px) translate(-5px, -5px); animation-delay: 0.6s; }
.wheel-bulbs i:nth-child(8)  { transform: rotate(157.5deg) translateY(-167px) translate(-5px, -5px); animation-delay: 0.7s; }
.wheel-bulbs i:nth-child(9)  { transform: rotate(180deg) translateY(-167px) translate(-5px, -5px); animation-delay: 0.8s; }
.wheel-bulbs i:nth-child(10) { transform: rotate(202.5deg) translateY(-167px) translate(-5px, -5px); animation-delay: 0.9s; }
.wheel-bulbs i:nth-child(11) { transform: rotate(225deg) translateY(-167px) translate(-5px, -5px); animation-delay: 1.0s; }
.wheel-bulbs i:nth-child(12) { transform: rotate(247.5deg) translateY(-167px) translate(-5px, -5px); animation-delay: 1.1s; }
.wheel-bulbs i:nth-child(13) { transform: rotate(270deg) translateY(-167px) translate(-5px, -5px); animation-delay: 1.2s; }
.wheel-bulbs i:nth-child(14) { transform: rotate(292.5deg) translateY(-167px) translate(-5px, -5px); animation-delay: 1.3s; }
.wheel-bulbs i:nth-child(15) { transform: rotate(315deg) translateY(-167px) translate(-5px, -5px); animation-delay: 1.4s; }
.wheel-bulbs i:nth-child(16) { transform: rotate(337.5deg) translateY(-167px) translate(-5px, -5px); animation-delay: 1.5s; }

.wheel-hub {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  z-index: 5;
}

.wheel-side {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 5px 5px 0 var(--ink);
}
.wheel-side h3 {
  font-size: 32px;
  margin-bottom: 8px;
}
.wheel-side p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 14px;
  font-weight: 500;
}
.wheel-prizes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
}
.wheel-prizes .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  margin-right: 6px;
  vertical-align: middle;
}
.dot-red     { background: var(--red); }
.dot-yellow  { background: var(--yellow); }
.dot-pink    { background: var(--pink); }
.dot-cyan    { background: var(--cyan); }
.dot-purple  { background: var(--purple); }
.dot-orange  { background: var(--orange); }
.dot-green   { background: var(--green); }
.dot-magenta { background: var(--magenta); }

.wheel-status {
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  margin-top: 10px;
  font-weight: 600;
}
.wheel-status strong { color: var(--red); }


/* =============================================================
   MYSTERY BOXES — 3 colorful, click to open
   ============================================================= */
.mystery-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.mbox {
  position: relative;
  height: 220px;
  border-radius: 20px;
  border: 4px solid var(--ink);
  cursor: pointer;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .15s, box-shadow .2s;
  animation: mbox-bob 2.8s ease-in-out infinite;
}
.mbox:nth-child(2) { animation-delay: 0.5s; }
.mbox:nth-child(3) { animation-delay: 1.0s; }

@keyframes mbox-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.mbox.mbox-red    { background: linear-gradient(135deg, var(--red), var(--pink-2)); color: var(--white); }
.mbox.mbox-yellow { background: linear-gradient(135deg, var(--yellow), var(--orange)); color: var(--ink); }
.mbox.mbox-cyan   { background: linear-gradient(135deg, var(--cyan), var(--purple)); color: var(--white); }

.mbox:hover { transform: translate(-2px, -8px); box-shadow: 8px 14px 0 var(--ink); }
.mbox:hover .mbox-emoji { animation: mbox-emoji-shake 0.4s ease-in-out infinite; }
@keyframes mbox-emoji-shake {
  0%, 100% { transform: rotate(-8deg) scale(1.05); }
  50%      { transform: rotate(8deg)  scale(1.15); }
}

.mbox-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 14px;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  padding: 3px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.mbox-emoji {
  font-size: 80px;
  filter: drop-shadow(2px 4px 0 rgba(0,0,0,0.3));
  margin-bottom: 8px;
  transition: transform .2s;
}
.mbox-label {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 22px;
  text-shadow: 2px 2px 0 var(--ink);
}
.mbox.mbox-yellow .mbox-label { text-shadow: 2px 2px 0 var(--ink); }

.mbox-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,0.3) 45%,
    transparent 60%);
  background-size: 250% 100%;
  background-position: 100% 0;
  pointer-events: none;
  animation: mbox-shine 3s ease-in-out infinite;
}
@keyframes mbox-shine {
  0% { background-position: 100% 0; }
  60%, 100% { background-position: -100% 0; }
}

/* opened state */
.mbox.opened .mbox-emoji {
  animation: mbox-explode 0.5s forwards;
}
@keyframes mbox-explode {
  0%   { transform: scale(1); opacity: 1; }
  40%  { transform: scale(1.5); opacity: 0.8; }
  100% { transform: scale(0.3); opacity: 0; }
}
.mbox-reveal {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity .35s ease .35s, transform .35s ease .35s;
  pointer-events: none;
  font-family: 'Carter One', 'Mitr', sans-serif;
  text-align: center;
  padding: 20px;
}
.mbox.opened .mbox-reveal {
  opacity: 1;
  transform: scale(1);
}
.mbox-reveal .mbox-prize {
  font-size: 30px;
  color: var(--red);
  text-shadow: 2px 2px 0 var(--yellow);
  display: block;
}

/* greyed out (not your pick) */
.mbox.locked {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(60%);
}


/* =============================================================
   BOOTH GRID — 6 game category cards
   ============================================================= */
.booth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.booth-card {
  position: relative;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 24px 22px 22px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s, box-shadow .2s;
  overflow: hidden;
}
.booth-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
  color: var(--ink);
}
.booth-card.booth-red    { background: linear-gradient(135deg, var(--red), var(--pink-2)); color: var(--white); }
.booth-card.booth-pink   { background: linear-gradient(135deg, var(--pink), var(--magenta)); color: var(--white); }
.booth-card.booth-yellow { background: linear-gradient(135deg, var(--yellow), var(--orange)); color: var(--ink); }
.booth-card.booth-cyan   { background: linear-gradient(135deg, var(--cyan), var(--purple)); color: var(--white); }
.booth-card.booth-purple { background: linear-gradient(135deg, var(--purple), var(--magenta)); color: var(--white); }
.booth-card.booth-orange { background: linear-gradient(135deg, var(--orange), var(--red)); color: var(--white); }

.booth-card:hover { color: var(--white); }
.booth-card.booth-yellow:hover { color: var(--ink); }

.booth-tag {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid var(--ink);
  margin-bottom: 12px;
}
.booth-card.booth-yellow .booth-tag {
  background: var(--ink); color: var(--yellow);
}
.booth-emoji {
  font-size: 60px;
  display: block;
  margin: 8px 0 12px;
  filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.25));
}
.booth-card h3 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 26px;
  margin-bottom: 4px;
  color: inherit;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}
.booth-card.booth-yellow h3 { text-shadow: 2px 2px 0 rgba(255,255,255,0.4); }
.booth-card p {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.95;
}
.booth-arrow {
  position: absolute;
  bottom: 16px; right: 18px;
  font-size: 28px;
  font-weight: 900;
  transition: transform .2s;
}
.booth-card:hover .booth-arrow { transform: translateX(6px); }


/* =============================================================
   GAME GRID — slot/fishing cards with bulb borders
   ============================================================= */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.game-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.game-card {
  position: relative;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .2s;
}
.game-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 6px 7px 0 var(--ink);
}

.gtag {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 5;
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.gtag-red    { background: var(--red);    color: var(--white); }
.gtag-yellow { background: var(--yellow); color: var(--ink); }
.gtag-pink   { background: var(--pink);   color: var(--white); }
.gtag-cyan   { background: var(--cyan);   color: var(--white); }
.gtag-purple { background: var(--purple); color: var(--white); }
.gtag-orange { background: var(--orange); color: var(--white); }
.gtag-green  { background: var(--green);  color: var(--ink); }

.provider-tag {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 5;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  letter-spacing: 0.05em;
  border: 1.5px solid var(--ink);
}

.game-card .thumb {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
.game-grid.cols-3 .thumb { aspect-ratio: 16/10; }

.game-card .body {
  padding: 12px 12px 14px;
}
.game-card h4 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card .meta {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 10px;
  font-weight: 600;
}
.game-card .meta .rtp {
  background: var(--cream);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--ink);
}

.play-btn {
  width: 100%;
  font-family: 'Carter One', 'Mitr', sans-serif;
  background: var(--pink);
  color: var(--white);
  border: 2px solid var(--ink);
  padding: 8px 0;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: background .15s;
}
.play-btn:hover { background: var(--magenta); }
.play-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }


/* live-card ----------------------------------------------------- */
.live-card {
  position: relative;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .2s;
}
.live-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 6px 7px 0 var(--ink);
}
.live-card .thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
.live-card .body { padding: 14px; }
.live-card h4 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 17px;
  margin-bottom: 8px;
}
.live-card .info {
  font-size: 13px; color: var(--text-2);
  margin-bottom: 12px;
}
.live-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 5;
  background: var(--red);
  color: var(--white);
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}


/* =============================================================
   LOTTO GRID — countdown cards
   ============================================================= */
.lotto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.lotto-card {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 18px 18px 16px;
  text-align: center;
  position: relative;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s;
}
.lotto-card:hover { transform: translate(-2px, -3px); }
.lotto-card.lotto-red    { background: var(--red);    color: var(--white); }
.lotto-card.lotto-yellow { background: var(--yellow); color: var(--ink); }
.lotto-card.lotto-pink   { background: var(--pink);   color: var(--white); }
.lotto-card.lotto-cyan   { background: var(--cyan);   color: var(--white); }
.lotto-card.lotto-purple { background: var(--purple); color: var(--white); }
.lotto-card.lotto-orange { background: var(--orange); color: var(--white); }

.lotto-card h4 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 22px;
  margin: 6px 0 4px;
  color: inherit;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}
.lotto-card .flag {
  font-size: 30px;
  display: block;
  margin: 0 auto 4px;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.3));
}
.lotto-card .next {
  font-size: 12px;
  color: inherit;
  opacity: 0.9;
  font-weight: 600;
}
.lotto-card .last {
  font-size: 13px;
  margin-top: 10px;
  color: inherit;
  opacity: 0.95;
  font-weight: 600;
}
.lotto-card .last strong {
  background: var(--white);
  color: var(--ink);
  padding: 1px 8px;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  font-family: 'Bai Jamjuree';
  margin: 0 2px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 14px 0 12px;
}
.countdown .unit {
  background: var(--ink);
  color: var(--yellow);
  padding: 6px 0;
  border-radius: 8px;
  border: 2px solid var(--white);
}
.countdown .num {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 22px;
  line-height: 1;
}
.countdown .lab {
  font-size: 9px;
  color: var(--white);
  opacity: 0.8;
  margin-top: 2px;
}


/* =============================================================
   WIN FEED — table
   ============================================================= */
.win-feed {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 5px 5px 0 var(--ink);
}
.win-feed table { width: 100%; border-collapse: collapse; }
.win-feed th {
  background: var(--ink);
  color: var(--yellow);
  padding: 10px 14px;
  text-align: left;
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.win-feed td {
  padding: 10px 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  font-weight: 600;
}
.win-feed tbody tr:nth-child(odd) { background: var(--cream); }
.win-feed .amt {
  color: var(--red);
  font-weight: 800;
}
.win-feed .ok { color: var(--green); font-weight: 700; }
.new-row { animation: new-row-flash 0.6s ease; }
@keyframes new-row-flash {
  0% { background: var(--yellow); }
  100% { background: transparent; }
}


/* =============================================================
   PROVIDER WALL — colored chips
   ============================================================= */
.provider-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.ptag {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  letter-spacing: 0.04em;
  box-shadow: 2px 2px 0 var(--ink);
}
.ptag.pt-red    { background: var(--red);    color: var(--white); }
.ptag.pt-yellow { background: var(--yellow); color: var(--ink); }
.ptag.pt-pink   { background: var(--pink);   color: var(--white); }
.ptag.pt-cyan   { background: var(--cyan);   color: var(--white); }
.ptag.pt-purple { background: var(--purple); color: var(--white); }
.ptag.pt-orange { background: var(--orange); color: var(--white); }
.ptag.pt-mini   { font-size: 11px; padding: 3px 10px; box-shadow: 1.5px 1.5px 0 var(--ink); }


/* =============================================================
   WHY US — feature cards
   ============================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.why-card {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s;
}
.why-card:hover { transform: translateY(-4px); }
.why-card.why-red    { background: var(--red);    color: var(--white); }
.why-card.why-yellow { background: var(--yellow); }
.why-card.why-pink   { background: var(--pink);   color: var(--white); }
.why-card.why-cyan   { background: var(--cyan);   color: var(--white); }

.why-card.why-red h4, .why-card.why-pink h4, .why-card.why-cyan h4 { color: var(--white); }
.why-card .why-icon {
  font-size: 50px;
  margin-bottom: 12px;
  filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.2));
}
.why-card h4 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 20px;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 13px;
  color: inherit;
  opacity: 0.95;
  font-weight: 500;
}


/* =============================================================
   BANK WALL
   ============================================================= */
.bank-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.bank-wall.bank-wall-lg {
  grid-template-columns: repeat(8, 1fr);
}
.bank {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 14px 10px;
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 14px;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s;
  text-align: center;
}
.bank:hover { transform: translateY(-3px); }
.bank .bdot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: block;
  margin-bottom: 4px;
}
.bank .btag {
  font-family: 'Bai Jamjuree';
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
}


/* =============================================================
   CHIP ROW (filter)
   ============================================================= */
.chip-row {
  display: flex; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.chip {
  display: inline-block;
  padding: 8px 16px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: background .15s, color .15s;
}
.chip:hover { background: var(--yellow); }
.chip.chip-active {
  background: var(--pink);
  color: var(--white);
}


/* =============================================================
   TABLES — carnival style
   ============================================================= */
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 14px;
}
.tbl th {
  background: var(--ink);
  color: var(--yellow);
  padding: 10px 14px;
  text-align: left;
  font-family: 'Carter One', 'Mitr', sans-serif;
  letter-spacing: 0.02em;
  font-size: 13px;
}
.tbl td {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.tbl tbody tr:nth-child(even) { background: var(--cream); }
.tbl-carnival th:first-child { background: var(--red); }
.tbl-carnival th:nth-child(3) { background: var(--purple); }


/* =============================================================
   AUTH — register/login forms
   ============================================================= */
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.auth-card {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 6px 6px 0 var(--ink);
}
.auth-card.auth-pink { background: linear-gradient(180deg, #FFEEF5, var(--white)); }
.auth-card.auth-cyan { background: linear-gradient(180deg, #E5F8FE, var(--white)); }
.auth-card h3 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--red);
}
.auth-card.auth-cyan h3 { color: var(--cyan-2); }

.auth-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 14px;
}
.auth-card label small {
  color: var(--text-3);
  font-weight: 400;
  margin-left: 4px;
}
.auth-card input[type=text],
.auth-card input[type=password],
.auth-card input[type=tel],
.auth-card select {
  width: 100%;
  padding: 11px 14px;
  margin-top: 6px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  font-family: 'Bai Jamjuree';
  font-size: 14px;
  color: var(--ink);
}
.auth-card input:focus,
.auth-card select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 107, 161, 0.25);
}
.row-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}
.row-check input { width: 18px; height: 18px; }
.auth-forgot {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--cyan-2);
  font-weight: 700;
}
.social-login {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--line);
  text-align: center;
}


/* =============================================================
   LOYALTY GRID
   ============================================================= */
.loyalty-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.loyalty-card {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 20px 14px 16px;
  text-align: center;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s;
}
.loyalty-card:hover { transform: translateY(-6px); }
.loyalty-card.loyalty-bronze   { background: linear-gradient(180deg, #FFF6E0, #FFE4B0); }
.loyalty-card.loyalty-silver   { background: linear-gradient(180deg, #FFEEF5, #FFD0E5); color: var(--ink); }
.loyalty-card.loyalty-gold     { background: linear-gradient(180deg, var(--yellow), var(--orange)); }
.loyalty-card.loyalty-platinum { background: linear-gradient(180deg, var(--cyan), var(--purple)); color: var(--white); }
.loyalty-card.loyalty-diamond  { background: linear-gradient(180deg, var(--magenta), var(--purple)); color: var(--white); }

.loyalty-card.loyalty-platinum h3, .loyalty-card.loyalty-diamond h3 { color: var(--white); }

.loyal-emoji {
  font-size: 56px;
  margin-bottom: 6px;
  filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.2));
}
.loyalty-card h3 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--ink);
}
.loyal-tier {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 12px;
}
.loyalty-card.loyalty-platinum .loyal-tier,
.loyalty-card.loyalty-diamond .loyal-tier { color: rgba(255,255,255,0.85); }

.loyalty-card ul {
  list-style: none;
  text-align: left;
  font-size: 12px;
  line-height: 1.65;
  padding: 0 4px;
  font-weight: 500;
}
.loyalty-card ul li {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
}
.loyalty-card ul li:last-child { border-bottom: none; }


/* =============================================================
   CONTACT GRID + FAQ
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.contact-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s;
  color: var(--ink);
}
.contact-card:hover { transform: translateY(-4px); color: var(--ink); }
.contact-card.contact-line  { background: #06C755; color: var(--white); }
.contact-card.contact-tg    { background: #0088CC; color: var(--white); }
.contact-card.contact-phone { background: var(--yellow); }
.contact-card.contact-chat  { background: var(--pink); color: var(--white); }
.contact-card:hover.contact-line, .contact-card:hover.contact-tg, .contact-card:hover.contact-chat {
  color: var(--white);
}
.cc-icon { font-size: 44px; filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.25)); margin-bottom: 8px; }
.contact-card h4 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 20px;
  color: inherit;
  margin-bottom: 4px;
}
.contact-card p {
  font-size: 13px;
  color: inherit;
  opacity: 0.95;
  font-weight: 600;
}
.cc-time {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  background: rgba(0,0,0,0.2);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.contact-card.contact-phone .cc-time { background: rgba(0,0,0,0.15); color: var(--ink); }

.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 4px 4px 0 var(--ink);
}
.faq-list summary {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  color: var(--ink);
}
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--red);
  transition: transform .2s;
}
.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-list details[open] {
  background: var(--cream);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}


/* =============================================================
   INFO CARDS — colored callout
   ============================================================= */
.info-card {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 5px 5px 0 var(--ink);
}
.info-card.info-pink   { background: linear-gradient(135deg, #FFEEF5, #FFD0E5); }
.info-card.info-cyan   { background: linear-gradient(135deg, #E5F8FE, #B0E8FB); }
.info-card.info-yellow { background: linear-gradient(135deg, #FFF8DC, #FFEAB0); }
.info-card.info-purple { background: linear-gradient(135deg, #F0E0FA, #DABDF0); }
.info-card h3 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 22px;
  color: var(--red);
  margin-bottom: 8px;
}
.info-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}


/* =============================================================
   BANK ACTION CARDS
   ============================================================= */
.bank-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bank-action-card {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: 6px 6px 0 var(--ink);
}
.bank-action-card.bank-action-pink { background: linear-gradient(135deg, var(--pink), var(--magenta)); color: var(--white); }
.bank-action-card.bank-action-cyan { background: linear-gradient(135deg, var(--cyan), var(--purple)); color: var(--white); }
.bank-action-card h3 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 8px;
}
.bank-action-card p {
  font-size: 14px;
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 600;
}
.ba-icon { font-size: 56px; filter: drop-shadow(2px 4px 0 rgba(0,0,0,0.3)); margin-bottom: 8px; }


/* =============================================================
   CLOWN FAB — floating action buttons
   ============================================================= */
.clown-fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 100;
  display: flex; flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.clown-fab a {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .2s;
}
.clown-fab a:hover {
  transform: translate(-2px, -3px);
  box-shadow: 5px 6px 0 var(--ink);
}
.cf-line   { background: #06C755; color: var(--white); font-size: 13px; }
.cf-tg     { background: #0088CC; color: var(--white); }
.cf-clown  { background: var(--pink); color: var(--white); font-size: 30px; animation: clown-wave 2.4s ease-in-out infinite; }
@keyframes clown-wave {
  0%, 100% { transform: rotate(-12deg); }
  50%      { transform: rotate(12deg); }
}
.cf-top    { background: var(--yellow); color: var(--ink); }


/* =============================================================
   FOOTER
   ============================================================= */
.footer-stripe {
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0,
    var(--red) 50px,
    var(--white) 50px,
    var(--white) 100px,
    var(--yellow) 100px,
    var(--yellow) 150px,
    var(--white) 150px,
    var(--white) 200px
  );
  border-bottom: 4px solid var(--ink);
}
footer.site {
  background: var(--ink);
  color: var(--cream);
  padding-bottom: 24px;
  margin-top: 60px;
  border-top: 4px solid var(--ink);
}
footer.site .container { padding-top: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
footer.site h5 {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 16px;
  color: var(--yellow);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
footer.site ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 6px;
}
footer.site ul a {
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
}
footer.site ul a:hover { color: var(--yellow); }

.brand-footer .brand-name { color: var(--yellow); }
.brand-footer .brand-text small { color: var(--cream); }
.about p {
  font-size: 13px;
  color: rgba(255, 246, 224, 0.75);
  margin-top: 12px;
  line-height: 1.65;
}

.footer-providers {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px dashed rgba(255, 246, 224, 0.18);
}
.footer-providers .ptag { background: rgba(255,255,255,0.92); }

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px dashed rgba(255, 246, 224, 0.18);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 246, 224, 0.6);
}
.footer-bottom > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }


/* =============================================================
   TOAST
   ============================================================= */
.toast {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  z-index: 200;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  max-width: 90%;
  text-align: center;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* =============================================================
   PRIZE POPUP — wheel result
   ============================================================= */
.prize-popup {
  position: fixed;
  inset: 0;
  background: rgba(31, 14, 26, 0.85);
  display: none;
  align-items: center; justify-content: center;
  z-index: 300;
  animation: fadeIn 0.3s ease;
}
.prize-popup.show { display: flex; }

.prize-card {
  background:
    repeating-linear-gradient(
      45deg,
      var(--white) 0 30px,
      var(--cream) 30px 60px
    );
  border: 5px solid var(--ink);
  border-radius: 24px;
  padding: 40px 50px;
  text-align: center;
  max-width: 460px;
  box-shadow: 10px 10px 0 var(--ink);
  animation: prize-pop 0.5s cubic-bezier(0.18, 0.85, 0.18, 1.4);
  position: relative;
  overflow: hidden;
}
@keyframes prize-pop {
  from { transform: scale(0.4) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1)   rotate(0); opacity: 1; }
}
.prize-card::before {
  content: '🎉';
  position: absolute;
  top: -10px; left: 14px;
  font-size: 50px;
  animation: confetti-bounce 1s ease-in-out infinite;
}
.prize-card::after {
  content: '🎊';
  position: absolute;
  top: -10px; right: 14px;
  font-size: 50px;
  animation: confetti-bounce 1s ease-in-out infinite 0.5s;
}
@keyframes confetti-bounce {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50%      { transform: translateY(-10px) rotate(12deg); }
}

.prize-card h2 {
  font-family: 'Modak', 'Mitr', sans-serif;
  font-size: 50px;
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
  margin-bottom: 12px;
}
.prize-card .prize-amount {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 42px;
  color: var(--purple);
  display: block;
  margin: 16px 0;
}
.prize-card p { font-size: 16px; color: var(--text-2); margin-bottom: 20px; font-weight: 600; }
.prize-close {
  background: var(--pink);
  color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 28px;
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.prize-close:hover { background: var(--magenta); transform: translate(-1px, -1px); }


/* =============================================================
   TICKET MOSAIC — wall-mosaic of 18 tilted ticket-stubs
   each cell: jagged-edge ticket stub, light-bulb border,
   carnival rainbow bg, sequential blink + bob animation
   ============================================================= */
.ticket-mosaic-sec {
  position: relative;
  margin: 32px 0 40px;
  padding: 32px 28px 36px;
  background:
    radial-gradient(ellipse 60% 70% at 28% 22%, rgba(255, 107, 161, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 70% at 72% 78%, rgba(0, 187, 249, 0.20), transparent 60%),
    linear-gradient(180deg, #2A0E47 0%, #4B1A6B 50%, #2A0E47 100%);
  border: 5px solid var(--ink);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  animation: section-bob 2.5s ease-in-out infinite;
}
@keyframes section-bob {
  0%, 100% { transform: translateY(-4px); }
  50%      { transform: translateY(4px); }
}

.ticket-mosaic-spotlight {
  position: absolute;
  top: -40%;
  left: -25%;
  width: 50%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.10) 30%, transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: spotlight-track 8s linear infinite;
  z-index: 1;
}
@keyframes spotlight-track {
  0%   { left: -25%; }
  100% { left: 125%; }
}

.ticket-mosaic-head {
  position: relative;
  z-index: 5;
  text-align: center;
  margin: 0 0 28px;
}
.mosaic-title {
  font-family: 'Modak', 'Carter One', 'Mitr', sans-serif;
  font-weight: 400;
  font-size: 50px;
  line-height: 1.1;
  color: var(--yellow);
  text-shadow:
    3px 3px 0 var(--red),
    6px 6px 0 var(--cyan),
    9px 9px 0 var(--ink);
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}
.mosaic-sub {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 16px;
  color: var(--cream);
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 var(--ink);
  margin: 0;
}

.ticket-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 22px 18px;
  position: relative;
  z-index: 5;
  filter: contrast(1.3) saturate(1.4);
  padding: 8px 4px;
}

.ticket-mosaic .ticket-stub:nth-child(2),
.ticket-mosaic .ticket-stub:nth-child(7),
.ticket-mosaic .ticket-stub:nth-child(11),
.ticket-mosaic .ticket-stub:nth-child(14),
.ticket-mosaic .ticket-stub:nth-child(17) {
  grid-column: span 2;
}

.ticket-stub {
  position: relative;
  display: block;
  text-decoration: none;
  min-height: 132px;
  cursor: pointer;
  transform: rotate(var(--rot, 0deg));
  animation: bob 1.8s ease-in-out infinite;
  animation-delay: var(--bob-delay, 0s);
  filter: drop-shadow(3px 4px 0 var(--ink));
  transition: filter .25s ease;
}
.ticket-stub:hover {
  z-index: 20;
  filter: drop-shadow(5px 6px 0 var(--ink)) brightness(1.08);
}
@keyframes bob {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(-4px); }
  50%      { transform: rotate(var(--rot, 0deg)) translateY(4px); }
}

.ticket-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 132px;
  background: var(--cell-bg, var(--yellow));
  color: var(--cell-text, var(--ink));
  border: 2.5px solid var(--ink);
  padding: 16px 14px 14px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  clip-path: polygon(
    0 0, 0 4%, 6% 8%, 0 12%, 6% 16%, 0 20%, 6% 24%, 0 28%, 6% 32%,
    0 36%, 6% 40%, 0 44%, 6% 48%, 0 52%, 6% 56%, 0 60%, 6% 64%,
    0 68%, 6% 72%, 0 76%, 6% 80%, 0 84%, 6% 88%, 0 92%, 6% 96%,
    0 100%, 100% 100%, 100% 0
  );
}
.ticket-mosaic .ticket-stub:nth-child(even) .ticket-shell {
  padding: 16px 24px 14px 14px;
  clip-path: polygon(
    0 0, 100% 0, 100% 4%, 94% 8%, 100% 12%, 94% 16%, 100% 20%, 94% 24%,
    100% 28%, 94% 32%, 100% 36%, 94% 40%, 100% 44%, 94% 48%, 100% 52%,
    94% 56%, 100% 60%, 94% 64%, 100% 68%, 94% 72%, 100% 76%, 94% 80%,
    100% 84%, 94% 88%, 100% 92%, 94% 96%, 100% 100%, 0 100%
  );
}

.ticket-mosaic .ticket-stub:nth-child(5n+1) { --cell-bg: var(--red);    --cell-text: var(--white); }
.ticket-mosaic .ticket-stub:nth-child(5n+2) { --cell-bg: var(--yellow); --cell-text: var(--ink); }
.ticket-mosaic .ticket-stub:nth-child(5n+3) { --cell-bg: var(--cyan);   --cell-text: var(--white); }
.ticket-mosaic .ticket-stub:nth-child(5n+4) { --cell-bg: var(--pink);   --cell-text: var(--white); }
.ticket-mosaic .ticket-stub:nth-child(5n)   { --cell-bg: var(--purple); --cell-text: var(--white); }

.ticket-logo-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 7px;
  overflow: hidden;
}
.ticket-logo-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.ticket-bank {
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 1.5px 1.5px 0 rgba(0, 0, 0, 0.18);
  color: inherit;
}
.ticket-cta {
  display: inline-block;
  font-family: 'Carter One', 'Mitr', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--yellow);
  padding: 2px 9px;
  border-radius: 999px;
  border: 1.5px solid var(--white);
  white-space: nowrap;
}

.t-bulb {
  position: absolute;
  width: 9px; height: 9px;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 0 3px var(--yellow));
}
.t-bulb circle {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 1;
  transform-origin: center;
  animation: tbulb-blink 1.4s ease-in-out infinite;
}

.t-bulb.tb-tl { top: 3px;  left: 16px;  }
.t-bulb.tb-tm { top: 1px;  left: calc(50% - 4.5px); }
.t-bulb.tb-tr { top: 3px;  right: 16px; }
.t-bulb.tb-mr { top: calc(50% - 4.5px); right: 3px; }
.t-bulb.tb-br { bottom: 3px; right: 16px; }
.t-bulb.tb-bm { bottom: 1px; left: calc(50% - 4.5px); }
.t-bulb.tb-bl { bottom: 3px; left: 16px; }
.t-bulb.tb-ml { top: calc(50% - 4.5px); left: 3px; }

.t-bulb.tb-tl circle { animation-delay: 0.0s;  }
.t-bulb.tb-tm circle { animation-delay: 0.15s; }
.t-bulb.tb-tr circle { animation-delay: 0.3s;  }
.t-bulb.tb-mr circle { animation-delay: 0.45s; }
.t-bulb.tb-br circle { animation-delay: 0.6s;  }
.t-bulb.tb-bm circle { animation-delay: 0.75s; }
.t-bulb.tb-bl circle { animation-delay: 0.9s;  }
.t-bulb.tb-ml circle { animation-delay: 1.05s; }

@keyframes tbulb-blink {
  0%, 100% { fill: var(--yellow); opacity: 1; }
  50%      { fill: rgba(255, 214, 10, 0.25); opacity: 0.35; }
}


/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .loyalty-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid, .carnival-stats { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .bank-wall { grid-template-columns: repeat(4, 1fr); }
  .bank-wall.bank-wall-lg { grid-template-columns: repeat(6, 1fr); }
  .booth-grid { grid-template-columns: repeat(2, 1fr); }
  .lotto-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .wheel-stage { grid-template-columns: 1fr; }
  .wheel-side { margin-top: 14px; }
  .auth-grid { grid-template-columns: 1fr; }
  .bank-actions { grid-template-columns: 1fr; }
  .hero-tent { height: auto; min-height: 580px; padding-bottom: 220px; }
  .ticket-mosaic { grid-template-columns: repeat(4, 1fr); gap: 18px 14px; }
  .mosaic-title { font-size: 38px; }
}

@media (max-width: 720px) {
  .hide-xs { display: none; }
  :where(h1,h2).page-title { font-size: 38px; }
  .hero-title { font-size: 56px; }
  .hero-curve { height: 100px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .loyalty-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .carnival-stats { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid.cols-3 { grid-template-columns: 1fr; }
  .mystery-boxes { grid-template-columns: 1fr; }
  .booth-grid { grid-template-columns: 1fr; }
  .lotto-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .bank-wall { grid-template-columns: repeat(3, 1fr); }
  .bank-wall.bank-wall-lg { grid-template-columns: repeat(3, 1fr); }
  .topbar .container { font-size: 11px; }
  nav.main-nav a { padding: 10px 12px; font-size: 13px; }
  .ribbon { font-size: 13px; }
  .bulb-row { display: none; }
  .big-top-silhouette { transform: translateX(-50%) scale(0.65); transform-origin: bottom center; }
  .sec-head h2 { font-size: 24px; }
  .footer-bottom { flex-direction: column; }
  .ticket-mosaic { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .ticket-mosaic .ticket-stub { grid-column: span 1 !important; }
  .mosaic-title { font-size: 28px; text-shadow: 2px 2px 0 var(--red), 4px 4px 0 var(--cyan), 6px 6px 0 var(--ink); }
  .ticket-mosaic-sec { padding: 22px 14px 26px; }
  .t-bulb.tb-tl, .t-bulb.tb-tr, .t-bulb.tb-bl, .t-bulb.tb-br { left: 10px; right: 10px; }
  .t-bulb.tb-tl, .t-bulb.tb-bl { right: auto; }
  .t-bulb.tb-tr, .t-bulb.tb-br { left: auto; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 44px; }
  .hero-title .hero-and { font-size: 28px; }
  .modak-pop { -webkit-text-stroke-width: 1.5px; text-shadow: 3px 3px 0 var(--ink); }
}
