/* =============================================================
   SPIN88GO — Stadium Green Pitch
   Pitch + LED scoreboard · referee yellow accents · grass texture
   ============================================================= */

/* ----- TOKENS ----- */
:root {
  --pitch-1:    #0E7C0E;       /* bright pitch green */
  --pitch-2:    #1B4332;       /* dark touchline green */
  --pitch-3:    #126E12;       /* alternate stripe */
  --pitch-4:    #0a4a0a;       /* deep grass */
  --grass-lite: #2E8B2E;
  --grass-line: rgba(255,255,255,0.55);

  --light:      #FFF8E7;       /* stadium house light cream */
  --light-2:    #FFF3D4;
  --paper:      #FAF6E8;
  --ball:       #FFFFFF;

  --whistle:    #FFD60A;       /* referee yellow */
  --whistle-2:  #FFC300;
  --whistle-3:  #FFA000;

  --redcard:    #D62828;       /* red card */
  --redcard-2:  #B91C1C;

  --score-bg:   #0A0A0A;       /* LED scoreboard black */
  --score-bg-2: #1A1A1A;
  --led:        #00FF66;       /* LED green */
  --led-2:      #FFD60A;       /* LED yellow */
  --led-3:      #FF3030;       /* LED red */

  --line-green: #06C755;
  --tg:         #0088CC;
  --text:       #1B2017;
  --text-2:     #4A5D45;
  --text-3:     #7A8C75;
  --text-4:     #B0C0AB;
  --text-light: #F5F5DC;

  --shadow-1:   0 2px 8px rgba(11, 51, 11, 0.15);
  --shadow-2:   0 8px 24px rgba(11, 51, 11, 0.25);
  --shadow-led: 0 0 8px rgba(0,255,102,0.6), 0 0 16px rgba(0,255,102,0.3);
}

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

html { scroll-behavior: smooth; }
body {
  background:
    repeating-linear-gradient(
      90deg,
      var(--pitch-3) 0 80px,
      var(--pitch-1) 80px 160px
    ),
    var(--pitch-1);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Mitr', 'Sarabun', system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--pitch-2); text-decoration: none; }
a:hover { color: var(--whistle-3); }

img { display: block; max-width: 100%; }

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5 {
  font-family: 'Oswald', 'Bai Jamjuree', 'Mitr', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.yellow-text {
  color: var(--whistle-2);
  text-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 0 12px rgba(255,214,10,0.35);
}
.green-text { color: #00C853; }
.dim   { color: var(--text-3); }
.mono  { font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Mono', 'Sarabun', monospace; font-weight: 700; letter-spacing: 0.5px; }
.center { text-align: center; }

.small-txt { font-size: 12px; }

/* ----- LAYOUT ----- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   LED-STRIP — scrolling live scores ticker (top)
   ============================================================ */
.led-strip {
  background: linear-gradient(180deg, var(--score-bg) 0%, var(--score-bg-2) 100%);
  border-bottom: 2px solid var(--pitch-2);
  overflow: hidden;
  height: 32px;
  position: relative;
}
.led-marquee {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  height: 32px;
  white-space: nowrap;
  animation: led-scroll 40s linear infinite;
  padding-left: 100%;
}
@keyframes led-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.led-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--led);
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0,255,102,0.5);
}
.led-item .led-min { color: var(--led-3); }
.led-item .led-team { color: var(--text-light); }
.led-item .led-score { color: var(--led-2); font-size: 16px; }
.led-item em { color: var(--text-3); font-style: normal; font-size: 11px; margin-left: 4px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--pitch-2);
  color: var(--text-light);
  font-size: 13px;
  border-bottom: 2px solid var(--whistle);
}
.topbar .container {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
}
.topbar a { color: var(--whistle); font-weight: 600; }
.topbar a:hover { color: var(--whistle-2); }
.topbar .sep { opacity: 0.4; }
.topbar .line-link { color: var(--line-green) !important; }
.kickoff-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(214, 40, 40, 0.18);
  border: 1px solid var(--redcard);
  color: #FF8888;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}
.dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--redcard);
  display: inline-block;
  animation: dot-pulse 1s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.6);
}
@keyframes dot-pulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(214,40,40,0.7); }
  50%     { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(214,40,40,0); }
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  background:
    linear-gradient(180deg, var(--light) 0%, var(--paper) 100%);
  border-bottom: 4px solid var(--pitch-2);
  box-shadow: var(--shadow-1);
}
.masthead .container {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.ball-mark {
  width: 52px; height: 52px;
  background: var(--pitch-2);
  border: 3px solid var(--whistle);
  color: var(--whistle);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  animation: ball-spin 8s linear infinite;
  box-shadow: 0 0 0 2px rgba(255,214,10,0.3), 0 4px 12px rgba(11,51,11,0.4);
}
@keyframes ball-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: 'Oswald', 'Bai Jamjuree', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--pitch-2);
  letter-spacing: 1.5px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.brand-text small {
  color: var(--text-2);
  font-size: 11px;
  font-family: 'Mitr', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.head-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.head-bal {
  background: var(--score-bg);
  color: var(--led);
  padding: 8px 14px;
  border: 2px solid var(--pitch-4);
  border-radius: 4px;
  font-size: 16px;
  text-shadow: 0 0 8px rgba(0,255,102,0.6);
  letter-spacing: 1px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 4px;
  font-family: 'Oswald', 'Mitr', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-yellow {
  background: linear-gradient(180deg, var(--whistle) 0%, var(--whistle-2) 100%);
  border-color: var(--whistle-3);
  color: #000;
  box-shadow: 0 4px 0 var(--whistle-3), inset 0 1px 0 rgba(255,255,255,0.5);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.btn-yellow:hover {
  background: linear-gradient(180deg, #FFE54A 0%, var(--whistle) 100%);
  box-shadow: 0 6px 0 var(--whistle-3), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-yellow:active {
  box-shadow: 0 2px 0 var(--whistle-3);
  transform: translateY(2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--pitch-2);
  color: var(--pitch-2);
}
.btn-ghost:hover {
  background: var(--pitch-2);
  color: var(--whistle);
}

.btn-cashout {
  background: linear-gradient(180deg, var(--redcard) 0%, var(--redcard-2) 100%);
  color: white;
  border-color: var(--redcard-2);
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 0 #7F1D1D, 0 0 24px rgba(214,40,40,0.4);
  animation: cashout-pulse 2s ease-in-out infinite;
}
.btn-cashout:hover {
  background: linear-gradient(180deg, #EF4444 0%, var(--redcard) 100%);
  box-shadow: 0 6px 0 #7F1D1D, 0 0 32px rgba(214,40,40,0.6);
}
@keyframes cashout-pulse {
  0%,100% { box-shadow: 0 4px 0 #7F1D1D, 0 0 24px rgba(214,40,40,0.4); }
  50%     { box-shadow: 0 4px 0 #7F1D1D, 0 0 32px rgba(214,40,40,0.7); }
}

.btn-watch {
  background: var(--score-bg);
  border-color: var(--pitch-4);
  color: var(--led);
  font-weight: 700;
  text-shadow: 0 0 4px rgba(0,255,102,0.5);
}
.btn-watch:hover {
  background: var(--pitch-4);
  border-color: var(--led);
}

.btn-cheer {
  background: var(--whistle);
  border-color: var(--whistle-3);
  color: #000;
  width: 100%;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 12px;
  font-size: 14px;
}
body.cheer-on .btn-cheer {
  background: var(--redcard);
  color: white;
  border-color: var(--redcard-2);
  text-shadow: 0 0 6px rgba(255,255,255,0.4);
}

.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.main-nav {
  background: var(--pitch-4);
  border-bottom: 4px solid var(--whistle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-2);
}
.main-nav .container {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.main-nav a {
  color: var(--whistle);
  padding: 16px 18px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid rgba(255,214,10,0.15);
  position: relative;
  transition: all 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--whistle);
  transition: height 0.15s ease;
}
.main-nav a:hover {
  background: var(--pitch-2);
  color: var(--ball);
}
.main-nav a:hover::after { height: 3px; }
.main-nav a.active {
  background: var(--pitch-2);
  color: var(--ball);
}
.main-nav a.active::after { height: 4px; background: var(--whistle); }
.nav-pill {
  background: rgba(255, 214, 10, 0.2);
  border: 1px solid rgba(255, 214, 10, 0.4);
  color: var(--whistle);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
}
.nav-pill.live {
  background: rgba(214, 40, 40, 0.25);
  border-color: var(--redcard);
  color: #FF8888;
  animation: blink-live 1.4s ease-in-out infinite;
}
@keyframes blink-live {
  0%, 60%, 100% { opacity: 1; }
  80% { opacity: 0.5; }
}

/* ============================================================
   PROMO RIBBON
   ============================================================ */
.ribbon {
  background:
    repeating-linear-gradient(
      45deg,
      var(--whistle) 0 16px,
      #FFE066 16px 32px
    );
  border-top: 2px solid var(--whistle-3);
  border-bottom: 2px solid var(--whistle-3);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.ribbon .container {
  padding: 8px 16px;
}
.ribbon .ref-card {
  display: inline-block;
  background: var(--redcard);
  color: white;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: 8px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
}
.ribbon code {
  background: var(--score-bg);
  color: var(--led);
  padding: 2px 8px;
  border-radius: 2px;
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-size: 12px;
  margin: 0 4px;
}

/* ============================================================
   SECTIONS — page router
   ============================================================ */
section[data-page] {
  display: none;
  padding: 24px 0 60px;
  min-height: 60vh;
}
section[data-page].show { display: block; }

main {
  background: var(--light);
  border-top: 1px solid rgba(11,51,11,0.2);
}

.page-title {
  font-size: 32px;
  color: var(--pitch-2);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  border-bottom: 4px solid var(--whistle);
  padding-bottom: 12px;
  display: inline-block;
}
.page-sub {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 880px;
  line-height: 1.7;
}

.sec-head {
  display: flex;
  align-items: center;
  margin: 32px 0 16px;
  gap: 12px;
}
.sec-head.sm { margin-top: 20px; }
.sec-head.no-mt { margin-top: 0; }
.sec-head h2 {
  font-size: 22px;
  color: var(--pitch-2);
  font-weight: 700;
  letter-spacing: 1px;
}
.sec-head h2.sm-title { font-size: 17px; opacity: 0.8; }
.sec-head .more {
  margin-left: auto;
  color: var(--pitch-2);
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.sec-head .more:hover {
  border-bottom-color: var(--whistle);
  color: var(--whistle-3);
}

/* ============================================================
   HERO PITCH — aerial view + LED scoreboard overlay
   ============================================================ */
.hero-pitch {
  position: relative;
  border: 4px solid var(--pitch-2);
  border-radius: 4px;
  margin: 0 0 24px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: var(--shadow-2);
}
.pitch-bg {
  position: absolute;
  inset: 0;
  background: var(--pitch-1);
  z-index: 0;
}
.pitch-stripes {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      var(--pitch-3) 0 60px,
      var(--pitch-1) 60px 120px
    );
  opacity: 0.95;
}
.pitch-bg .center-line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 4px;
  background: var(--grass-line);
  transform: translateX(-50%);
}
.pitch-bg .center-circle {
  position: absolute;
  width: 220px; height: 220px;
  border: 4px solid var(--grass-line);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.pitch-bg .center-spot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grass-line);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.pitch-bg .penalty-box {
  position: absolute;
  top: 50%;
  height: 240px;
  width: 100px;
  border: 4px solid var(--grass-line);
  transform: translateY(-50%);
}
.pitch-bg .penalty-box.left {
  left: 0;
  border-left: none;
}
.pitch-bg .penalty-box.right {
  right: 0;
  border-right: none;
}

.ball-roll {
  position: absolute;
  font-size: 56px;
  z-index: 2;
  animation: roll 12s linear infinite;
  bottom: 8%;
  left: 0;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}
@keyframes roll {
  0%   { left: -8%; transform: rotate(0deg); }
  50%  { left: 105%; transform: rotate(1080deg); }
  50.01% { left: 105%; transform: rotate(1080deg) scale(1,1); opacity: 0; }
  50.5% { left: -8%; opacity: 1; }
  100% { left: 105%; transform: rotate(2160deg); }
}

.hero-content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  padding: 32px 28px;
  min-height: 460px;
  align-items: center;
}
.hero-left { color: var(--text-light); }
.kick-tag {
  display: inline-block;
  background: var(--whistle);
  color: #000;
  padding: 4px 14px;
  border-radius: 2px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  box-shadow: 0 2px 0 var(--whistle-3);
}
.hero-h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.6);
  color: var(--ball);
  margin-bottom: 14px;
}
.hero-p {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  margin-bottom: 22px;
  max-width: 560px;
}
.hero-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-row .btn-ghost {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  color: var(--ball);
  border-color: var(--ball);
}
.hero-row .btn-ghost:hover {
  background: var(--ball);
  color: var(--pitch-2);
}
.hero-mini-stats {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  border-top: 2px solid rgba(255,255,255,0.2);
}
.hero-mini-stats div {
  display: flex; flex-direction: column; gap: 2px;
}
.hero-mini-stats b {
  font-size: 24px;
  color: var(--whistle);
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  text-shadow: 0 0 12px rgba(255,214,10,0.5);
}
.hero-mini-stats small {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-family: 'Mitr', sans-serif;
}

/* ============================================================
   LED SCOREBOARD
   ============================================================ */
.scoreboard {
  background: linear-gradient(180deg, var(--score-bg) 0%, var(--score-bg-2) 100%);
  border: 4px solid #2A2A2A;
  border-radius: 4px;
  padding: 14px 20px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.05),
    inset 0 -3px 8px rgba(0,0,0,0.6),
    0 8px 32px rgba(0,0,0,0.6);
  margin-bottom: 12px;
}
.scoreboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,214,10,0.2);
  margin-bottom: 12px;
}
.sb-comp {
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-weight: 700;
  font-size: 11px;
  color: var(--led-2);
  letter-spacing: 1.5px;
  text-shadow: 0 0 6px rgba(255,214,10,0.5);
}
.sb-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--led-3);
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-size: 11px;
  font-weight: 700;
}
.scoreboard-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.sb-team {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 2px;
}
.sb-flag { font-size: 20px; }
.sb-name {
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ball);
  letter-spacing: 1.5px;
}
.sb-team small { color: var(--text-3); font-size: 10px; letter-spacing: 1px; }
.sb-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.6);
  border: 2px solid #2A2A2A;
  border-radius: 4px;
  padding: 6px 14px;
}
.led-digit {
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-weight: 900;
  font-size: 36px;
  color: var(--led);
  text-shadow: var(--shadow-led);
  min-width: 24px;
  text-align: center;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s ease;
}
.led-digit.flip { animation: digit-flip 0.6s ease; }
@keyframes digit-flip {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(90deg); color: var(--led-2); }
  100% { transform: rotateX(0); }
}
.led-sep {
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-size: 28px;
  color: var(--led-2);
  text-shadow: 0 0 8px rgba(255,214,10,0.6);
}
.led-big {
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-weight: 900;
  font-size: 64px;
  color: var(--led);
  text-shadow: var(--shadow-led);
  line-height: 1;
  display: inline-block;
}
.scoreboard-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(255,214,10,0.2);
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
}
.sb-min {
  background: var(--led-3);
  color: white;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 12px;
  text-shadow: 0 0 4px rgba(255,255,255,0.4);
}
.sb-stat {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

/* ============================================================
   HERO BET MINI
   ============================================================ */
.hero-bet-mini {
  background: var(--light);
  border: 3px solid var(--whistle);
  border-radius: 4px;
  padding: 14px;
  box-shadow: 0 0 0 2px var(--pitch-2), 0 8px 32px rgba(0,0,0,0.5);
}
.hbm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(11,51,11,0.2);
}
.hbm-tag {
  background: var(--redcard);
  color: white;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
}
.hbm-pool {
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-size: 12px;
  color: var(--pitch-2);
  font-weight: 700;
}
.hbm-odds {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.odds-mini {
  background: var(--whistle);
  border: 2px solid var(--whistle-3);
  border-radius: 4px;
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.15s ease;
  font-family: 'Mitr', sans-serif;
}
.odds-mini small { font-size: 10px; color: var(--text); font-weight: 600; }
.odds-mini b { font-size: 16px; color: #000; }
.odds-mini:hover {
  background: var(--redcard);
  border-color: var(--redcard-2);
  color: white;
  transform: translateY(-2px);
}
.odds-mini:hover small,
.odds-mini:hover b { color: white; }

/* ============================================================
   STAT BOARD — 4 LED-like cells
   ============================================================ */
.stat-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.stat-cell {
  background: var(--paper);
  border: 3px solid var(--pitch-2);
  border-radius: 4px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-1);
  border-bottom-width: 5px;
}
.stat-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 2px solid;
}
.stat-icon.green  { background: rgba(14,124,14,0.15); border-color: var(--pitch-1); color: var(--pitch-2); }
.stat-icon.yellow { background: rgba(255,214,10,0.2); border-color: var(--whistle-3); }
.stat-icon.red    { background: rgba(214,40,40,0.15); border-color: var(--redcard); color: var(--redcard-2); }
.stat-icon.dark   { background: rgba(0,0,0,0.85); border-color: var(--pitch-4); color: var(--led); }
.stat-num {
  font-size: 22px;
  color: var(--pitch-2);
  line-height: 1;
}
.stat-lbl {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
  font-family: 'Mitr', sans-serif;
}

/* ============================================================
   LEAGUE GRID (6 cards)
   ============================================================ */
.league-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.league-card {
  background: var(--paper);
  border: 2px solid var(--pitch-2);
  border-radius: 4px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}
.league-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--whistle);
  transition: height 0.2s ease;
}
.league-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(11,51,11,0.25);
  border-color: var(--whistle-3);
}
.league-card:hover::before { height: 6px; background: var(--whistle-2); }
.lg-flag {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}
.league-card h3 {
  font-size: 14px;
  color: var(--pitch-2);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.league-card p {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
}
.lg-epl::before     { background: #4F0D5C; }
.lg-laliga::before  { background: #FF8200; }
.lg-bundes::before  { background: #D20515; }
.lg-seriea::before  { background: #008FD7; }
.lg-thai::before    { background: #FFD700; }
.lg-jleague::before { background: #BC002D; }

/* ============================================================
   IN-PLAY CARD (live featured)
   ============================================================ */
.inplay-card {
  background: var(--paper);
  border: 4px solid var(--pitch-2);
  border-bottom: 6px solid var(--pitch-2);
  border-radius: 4px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: var(--shadow-2);
  position: relative;
}
.inplay-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 6px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--whistle) 0 20px,
      #000 20px 22px,
      var(--whistle) 22px 42px
    );
}
.ip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 2px dashed rgba(11,51,11,0.2);
  margin-bottom: 16px;
}
.ip-comp {
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--pitch-2);
  letter-spacing: 1.5px;
}
.ip-min {
  font-size: 14px;
  color: var(--redcard-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.ip-min b { color: var(--redcard); font-size: 18px; }

.ip-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  background:
    radial-gradient(circle at center, rgba(14,124,14,0.05), transparent 60%);
}
.ip-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ip-team.home { text-align: right; align-items: flex-end; }
.ip-team.away { text-align: left;  align-items: flex-start; }
.ip-crest {
  font-size: 48px;
  background: white;
  border: 3px solid var(--pitch-2);
  border-radius: 50%;
  width: 72px; height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ip-team h3 {
  font-size: 22px;
  color: var(--pitch-2);
  letter-spacing: 1.5px;
}
.ip-team small { font-size: 11px; color: var(--text-3); }

.ip-score {
  background: var(--score-bg);
  border: 4px solid #2A2A2A;
  border-radius: 4px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-2);
}

/* Possession bar */
.ip-poss {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 0 8px;
}
.ip-poss small { font-size: 12px; color: var(--text-2); }
.ip-poss small b { color: var(--pitch-2); font-size: 14px; }
.poss-bar {
  height: 12px;
  background: var(--text-4);
  border: 2px solid var(--pitch-2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.poss-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pitch-1) 0%, var(--pitch-2) 100%);
  transition: width 0.6s ease;
  border-right: 2px solid var(--whistle);
}

/* Match stats grid */
.ip-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 16px 0;
}
.ip-stat {
  background: white;
  border: 2px solid var(--pitch-2);
  border-radius: 4px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ip-stat b:first-child {
  color: var(--pitch-1);
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-size: 18px;
  display: block;
}
.ip-stat b:last-child {
  color: var(--redcard-2);
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-size: 18px;
  display: block;
}
.ip-stat span {
  font-size: 10px;
  color: var(--text-3);
  margin: 4px 0;
  font-family: 'Mitr', sans-serif;
}

.ip-odds-title {
  font-size: 14px;
  color: var(--pitch-2);
  margin: 16px 0 8px;
  letter-spacing: 1.5px;
}
.ip-odds-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.odds-live {
  background: var(--score-bg);
  border: 2px solid var(--whistle);
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
  font-family: 'Mitr', sans-serif;
}
.odds-live small { color: var(--text-light); font-size: 11px; font-weight: 600; }
.odds-live b { color: var(--led-2); font-size: 18px; text-shadow: 0 0 6px rgba(255,214,10,0.5); }
.odds-live:hover {
  background: var(--whistle);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,214,10,0.4);
}
.odds-live:hover small { color: #000; }
.odds-live:hover b { color: #000; text-shadow: none; }

/* CASH OUT BAR */
.cashout-bar {
  background: linear-gradient(135deg, var(--pitch-2) 0%, var(--pitch-4) 100%);
  border: 3px solid var(--whistle);
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.cashout-bar small {
  color: var(--text-light);
  font-size: 13px;
}
.cashout-bar small b { color: var(--whistle); }
.co-amt {
  font-size: 28px;
  margin-top: 4px;
}

/* ============================================================
   MATCH TABLE — THE STAR
   ============================================================ */
.match-tbl-wrap {
  background: white;
  border: 3px solid var(--pitch-2);
  border-bottom-width: 5px;
  border-radius: 4px;
  overflow-x: auto;
  box-shadow: var(--shadow-1);
}
.match-tbl {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-family: 'Mitr', sans-serif;
}
.match-tbl thead {
  background:
    linear-gradient(180deg, var(--pitch-2) 0%, var(--pitch-4) 100%);
}
.match-tbl thead th {
  color: var(--whistle);
  padding: 12px 8px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-align: center;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.match-tbl thead th:first-child,
.match-tbl thead th.col-match { text-align: left; }
.match-tbl tbody tr {
  border-bottom: 1px solid rgba(11,51,11,0.08);
  transition: background 0.15s ease;
}
.match-tbl tbody tr:nth-child(even) {
  background: rgba(255,248,231,0.4);
}
.match-tbl tbody tr:hover {
  background: rgba(255,214,10,0.12);
}
.match-tbl tbody tr.live-row {
  background: rgba(214,40,40,0.06);
  border-left: 4px solid var(--redcard);
}
.match-tbl tbody tr.live-row:hover {
  background: rgba(214,40,40,0.10);
}
.match-tbl tbody td {
  padding: 10px 8px;
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
  color: var(--text);
}
.match-tbl tbody td:nth-child(3),
.match-tbl tbody td.col-match { text-align: left; }
.match-tbl tbody td.col-match,
.match-tbl tbody td:nth-child(3) {
  font-weight: 500;
  min-width: 280px;
}

.col-time { width: 60px; }
.col-comp { width: 100px; }
.col-odd  { width: 70px; }
.col-ou   { width: 90px; }
.col-ah   { width: 100px; }
.col-more { width: 70px; }

.live-min {
  display: inline-block;
  background: var(--redcard);
  color: white;
  padding: 4px 8px;
  border-radius: 2px;
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  min-width: 36px;
  text-shadow: 0 0 4px rgba(255,255,255,0.4);
  animation: live-min-pulse 1.6s ease-in-out infinite;
}
@keyframes live-min-pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(214,40,40,0); }
  35% { box-shadow: 0 0 0 4px rgba(214,40,40,0.3); }
}

.score-now {
  display: inline-block;
  background: var(--score-bg);
  color: var(--led-2);
  padding: 1px 6px;
  border-radius: 2px;
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-size: 13px;
  text-shadow: 0 0 4px rgba(255,214,10,0.5);
  margin: 0 2px;
}
.team-flag { display: inline-block; margin: 0 2px; }
.vs {
  color: var(--text-3);
  font-size: 11px;
  margin: 0 4px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  text-transform: uppercase;
}
.live-pip {
  display: inline-block;
  background: var(--redcard);
  color: white;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 6px;
}
.big-bet-pip {
  display: inline-block;
  background: var(--whistle);
  color: #000;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
}

/* COMP TAGS */
.comp-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  white-space: nowrap;
  color: white;
}
.comp-tag.epl     { background: #4F0D5C; }
.comp-tag.laliga  { background: #FF8200; }
.comp-tag.bundes  { background: #D20515; }
.comp-tag.seriea  { background: #008FD7; }
.comp-tag.thai    { background: #DAA520; color: #000; }
.comp-tag.jleague { background: #BC002D; }

/* ODDS BUTTONS */
.odds-btn {
  background: var(--whistle);
  color: #000;
  border: 2px solid var(--whistle-3);
  border-radius: 3px;
  padding: 6px 8px;
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  min-width: 50px;
}
.odds-btn:hover {
  background: var(--redcard);
  color: white;
  border-color: var(--redcard-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(214,40,40,0.3);
}
.odds-btn.ou-btn,
.odds-btn.ah-btn {
  font-size: 11px;
  min-width: 70px;
  padding: 6px 4px;
}
.odds-btn.pulse-up {
  animation: odds-up 1.5s ease-in-out;
  background: linear-gradient(180deg, var(--whistle) 0%, #00C853 100%);
  color: #000;
}
.odds-btn.pulse-down {
  animation: odds-down 1.5s ease-in-out;
  background: linear-gradient(180deg, var(--whistle) 0%, var(--redcard) 100%);
  color: white;
}
@keyframes odds-up {
  0%, 100% { background: var(--whistle); }
  30% { background: #00C853; color: white; }
}
@keyframes odds-down {
  0%, 100% { background: var(--whistle); }
  30% { background: var(--redcard); color: white; }
}

.more-cell { white-space: nowrap; }
.more-link {
  display: inline-block;
  background: var(--pitch-2);
  color: var(--whistle) !important;
  padding: 4px 10px;
  border-radius: 2px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.more-link:hover {
  background: var(--pitch-4);
  color: white !important;
}

.tbl-foot {
  font-size: 12px;
  margin-top: 8px;
  padding: 0 8px;
}

.big-league-h {
  font-size: 22px;
  color: var(--pitch-2);
  margin: 28px 0 14px;
  padding-left: 14px;
  border-left: 6px solid var(--whistle);
  letter-spacing: 1.5px;
}

.thai-pride {
  background: linear-gradient(180deg, #FFFAEB 0%, #FFF3D4 100%);
  border: 2px solid var(--whistle);
  border-left: 6px solid #DAA520;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin: 12px 0;
  color: var(--text);
}

/* ============================================================
   ROW-2 = wager + cheer
   ============================================================ */
.row-2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.wager-card {
  background: var(--paper);
  border: 3px solid var(--pitch-2);
  border-bottom: 5px solid var(--pitch-2);
  border-radius: 4px;
  padding: 16px;
  box-shadow: var(--shadow-1);
}
.wager-card .sec-head h2 { font-size: 18px; }
.wager-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.wager-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-bottom: 1px dashed rgba(11,51,11,0.15);
  font-size: 13px;
  animation: feed-slide 0.6s ease;
}
.wager-list li:last-child { border-bottom: none; }
.wager-list li b {
  color: #00C853;
  font-size: 14px;
  background: rgba(0,200,83,0.12);
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid rgba(0,200,83,0.4);
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
}
.wager-list li span:nth-child(2) { color: var(--text-2); }
.wager-list li .dim { font-size: 11px; }
@keyframes feed-slide {
  0% { opacity: 0; transform: translateX(-12px); }
  100% { opacity: 1; transform: translateX(0); }
}

.cheer-card {
  background: linear-gradient(135deg, var(--pitch-2) 0%, var(--pitch-4) 100%);
  border: 3px solid var(--whistle);
  border-radius: 4px;
  padding: 18px;
  color: var(--ball);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cheer-card h2 {
  color: var(--whistle);
  font-size: 18px;
  letter-spacing: 2px;
}
.cheer-p { color: var(--text-light); font-size: 13px; line-height: 1.6; }

.cheer-vis {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 60px;
  background: rgba(0,0,0,0.4);
  border-radius: 4px;
  padding: 8px;
  border: 1px solid var(--pitch-1);
}
.cheer-bar {
  width: 8px;
  background: var(--whistle);
  border-radius: 2px;
  transition: height 0.2s ease;
  height: 8px;
}
body.cheer-on .cheer-bar {
  animation: cheer-bar 1.2s ease-in-out infinite;
}
body.cheer-on .cheer-bar:nth-child(1) { animation-delay: 0.0s; }
body.cheer-on .cheer-bar:nth-child(2) { animation-delay: 0.1s; background: var(--redcard); }
body.cheer-on .cheer-bar:nth-child(3) { animation-delay: 0.2s; }
body.cheer-on .cheer-bar:nth-child(4) { animation-delay: 0.3s; background: var(--redcard); }
body.cheer-on .cheer-bar:nth-child(5) { animation-delay: 0.4s; }
body.cheer-on .cheer-bar:nth-child(6) { animation-delay: 0.5s; background: var(--redcard); }
body.cheer-on .cheer-bar:nth-child(7) { animation-delay: 0.6s; }
body.cheer-on .cheer-bar:nth-child(8) { animation-delay: 0.7s; background: var(--redcard); }
body.cheer-on .cheer-bar:nth-child(9) { animation-delay: 0.8s; }
@keyframes cheer-bar {
  0%, 100% { height: 8px; }
  20% { height: 38px; }
  50% { height: 50px; }
  70% { height: 28px; }
}
.cheer-tip { font-size: 11px; color: var(--text-4); margin-top: 4px; }

/* ============================================================
   STREAM GRID
   ============================================================ */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stream-card {
  background: var(--paper);
  border: 3px solid var(--pitch-2);
  border-bottom: 5px solid var(--pitch-2);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease;
}
.stream-card:hover { transform: translateY(-3px); }
.stream-thumb {
  background:
    repeating-linear-gradient(
      90deg,
      var(--pitch-1) 0 30px,
      var(--pitch-3) 30px 60px
    ),
    var(--pitch-1);
  height: 140px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stream-thumb::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  border: 3px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.stream-thumb.st-2 {
  background:
    repeating-linear-gradient(
      90deg,
      #1a4f0e 0 30px,
      #226312 30px 60px
    );
}
.stream-thumb.st-3 {
  background:
    repeating-linear-gradient(
      90deg,
      #0e7c54 0 30px,
      #126e4c 30px 60px
    );
}
.stream-thumb.st-4 {
  background:
    repeating-linear-gradient(
      90deg,
      #0a4a0a 0 30px,
      #0e5e0e 30px 60px
    );
}
.stream-live {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--redcard);
  color: white;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.stream-min {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--score-bg);
  color: var(--led-3);
  padding: 2px 8px;
  border-radius: 2px;
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.stream-soon {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--whistle);
  color: #000;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.stream-score {
  position: relative;
  z-index: 3;
  font-size: 36px;
  color: var(--ball);
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.stream-teams {
  position: relative;
  z-index: 3;
  color: var(--whistle);
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.stream-body {
  padding: 12px;
}
.stream-body h4 {
  font-size: 14px;
  color: var(--pitch-2);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.stream-body p {
  font-size: 11px;
  margin-bottom: 10px;
  font-family: 'Mitr', sans-serif;
}

.featured-stream {
  background: var(--score-bg);
  border: 4px solid var(--pitch-2);
  border-radius: 4px;
  padding: 12px;
  margin: 16px 0 24px;
  box-shadow: var(--shadow-2);
}
.fs-screen {
  background:
    repeating-linear-gradient(
      90deg,
      var(--pitch-3) 0 60px,
      var(--pitch-1) 60px 120px
    ),
    var(--pitch-1);
  height: 360px;
  border: 2px solid var(--pitch-4);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.fs-screen::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border: 4px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.fs-overlay {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.fs-live {
  background: var(--redcard);
  color: white;
  padding: 4px 12px;
  border-radius: 2px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fs-min {
  background: var(--score-bg);
  color: var(--led-3);
  padding: 4px 12px;
  border-radius: 2px;
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255,48,48,0.4);
}
.fs-viewers {
  background: rgba(0,0,0,0.6);
  color: var(--ball);
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 12px;
  font-family: 'Mitr', sans-serif;
}
.fs-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
}
.fs-teams {
  display: flex;
  align-items: center;
  gap: 32px;
  color: white;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}
.fs-teams b {
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-size: 24px;
  letter-spacing: 1.5px;
}
.fs-vs {
  color: var(--whistle);
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-size: 32px;
  font-weight: 700;
}
.fs-comp {
  color: var(--whistle);
  margin-top: 12px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.fs-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.85);
  padding: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 4;
}
.fs-btn {
  background: var(--score-bg-2);
  color: var(--ball);
  border: 1px solid var(--text-3);
  border-radius: 2px;
  padding: 6px 12px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fs-btn:hover {
  background: var(--whistle);
  color: #000;
  border-color: var(--whistle-3);
}

.stream-info {
  background: var(--paper);
  border: 2px solid var(--pitch-2);
  border-left: 6px solid var(--whistle);
  padding: 16px;
  border-radius: 4px;
  margin-top: 24px;
}
.stream-info h3 {
  font-size: 18px;
  color: var(--pitch-2);
  margin-bottom: 8px;
}
.stream-info p { font-family: 'Mitr', sans-serif; line-height: 1.7; }

/* ============================================================
   PROMO GRID
   ============================================================ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.promo-card {
  background: var(--paper);
  border: 3px solid var(--pitch-2);
  border-bottom: 5px solid var(--pitch-2);
  border-radius: 4px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--whistle);
}
.promo-pct {
  display: inline-block;
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-size: 36px;
  font-weight: 900;
  color: var(--whistle-3);
  margin-bottom: 8px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.1);
}
.promo-card h3 {
  font-size: 18px;
  color: var(--pitch-2);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.promo-card p {
  font-family: 'Mitr', sans-serif;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.promo-1::before { background: var(--whistle); }
.promo-2::before { background: var(--redcard); }
.promo-3::before { background: var(--pitch-1); }

/* ============================================================
   GAME GRID + slot mini
   ============================================================ */
.footnote-p {
  background: rgba(255,214,10,0.08);
  border-left: 4px solid var(--whistle);
  padding: 10px 14px;
  font-style: italic;
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 16px;
  border-radius: 0 4px 4px 0;
}

.slot-mini {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.mini-card {
  background: var(--paper);
  border: 2px solid var(--pitch-2);
  border-radius: 4px;
  padding: 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mini-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
}
.mini-card h4 {
  font-size: 11px;
  color: var(--pitch-2);
  margin-top: 6px;
  font-family: 'Mitr', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-card .provider-tag {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--pitch-2);
  color: var(--whistle);
  padding: 2px 6px;
  border-radius: 2px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 1;
}

.slot-callout {
  background: linear-gradient(135deg, var(--whistle) 0%, var(--whistle-2) 100%);
  border: 3px solid var(--whistle-3);
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 24px;
}
.slot-callout-em {
  font-size: 48px;
  flex-shrink: 0;
}
.slot-callout h3 {
  font-size: 18px;
  color: #000;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.slot-callout p { color: #2A2A0A; font-family: 'Mitr', sans-serif; font-size: 13px; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.game-card {
  background: var(--paper);
  border: 2px solid var(--pitch-2);
  border-bottom: 4px solid var(--pitch-2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.game-card .provider-tag {
  position: absolute;
  top: 6px; right: 6px;
  background: var(--pitch-2);
  color: var(--whistle);
  padding: 2px 8px;
  border-radius: 2px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
}
.game-card .thumb {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.game-card .body {
  padding: 10px;
}
.game-card .body h4 {
  font-size: 13px;
  color: var(--pitch-2);
  margin-bottom: 6px;
  font-family: 'Mitr', sans-serif;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.play-btn {
  background: var(--whistle);
  color: #000;
  border: 1px solid var(--whistle-3);
  border-radius: 2px;
  padding: 6px 12px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s ease;
}
.play-btn:hover { background: var(--redcard); color: white; border-color: var(--redcard-2); }

/* ============================================================
   MATCH BANKING — scoreboard LED ticker (top of footer)
   Black bg · referee yellow LED border · Orbitron mono ·
   3D rotateX flip on hover → green LED "AVAILABLE NOW · 30s"
   ============================================================ */
.match-banking {
  background: linear-gradient(180deg, #000 0%, #0a0a0a 60%, #000 100%);
  border-top: 3px solid var(--whistle);
  border-bottom: 1px solid var(--whistle-3);
  padding: 14px 0 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -2px 12px rgba(255, 214, 10, 0.15);
}
.match-banking::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 214, 10, 0.025) 0px,
      rgba(255, 214, 10, 0.025) 1px,
      transparent 1px,
      transparent 3px
    );
  pointer-events: none;
  z-index: 0;
}
.mb-head {
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.mb-tag {
  font-family: 'Orbitron', 'Bai Jamjuree', monospace;
  color: var(--whistle);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 6px;
  text-shadow: 0 0 8px rgba(255, 214, 10, 0.7), 0 0 14px rgba(255, 214, 10, 0.35);
  animation: mb-tag-flicker 3.2s steps(1) infinite;
}
.mb-sub {
  font-family: 'Orbitron', monospace;
  color: var(--led);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.6);
}
@keyframes mb-tag-flicker {
  0%, 92%, 100% { opacity: 1; }
  93%, 95% { opacity: 0.6; }
  94% { opacity: 0.85; }
}

.mb-track {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.mb-row {
  display: inline-flex;
  gap: 12px;
  padding-left: 12px;
  white-space: nowrap;
  animation: mb-scroll 28s linear infinite;
}
@keyframes mb-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.match-banking:hover .mb-row {
  animation-play-state: paused;
}

.mb-cell {
  flex: 0 0 auto;
  width: 180px;
  height: 64px;
  perspective: 900px;
  cursor: pointer;
}
.mb-cell-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.mb-cell:hover .mb-cell-inner,
.mb-cell:focus-within .mb-cell-inner {
  transform: rotateX(180deg);
}

.mb-front,
.mb-back {
  position: absolute;
  inset: 0;
  border: 2px solid var(--whistle);
  border-radius: 3px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 10, 0.15),
    0 0 6px rgba(255, 214, 10, 0.18);
}

.mb-front {
  animation: mb-pulse 2.8s ease-in-out infinite;
}
.mb-front img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: contrast(1.3) saturate(1.4);
  flex-shrink: 0;
}
.mb-name {
  font-family: 'Orbitron', 'Bai Jamjuree', monospace;
  font-weight: 900;
  color: var(--whistle);
  font-size: 14px;
  letter-spacing: 2.5px;
  text-shadow: 0 0 6px rgba(255, 214, 10, 0.65);
}
@keyframes mb-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 214, 10, 0.15), 0 0 6px rgba(255, 214, 10, 0.18);
  }
  50% {
    opacity: 0.92;
    box-shadow: inset 0 0 0 1px rgba(255, 214, 10, 0.25), 0 0 10px rgba(255, 214, 10, 0.32);
  }
}

.mb-back {
  transform: rotateX(180deg);
  flex-direction: column;
  gap: 1px;
  border-color: var(--led);
  background: #000408;
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 102, 0.2),
    0 0 8px rgba(0, 255, 102, 0.3);
}
.mb-status {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  color: var(--led);
  font-weight: 900;
  letter-spacing: 2.5px;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.7);
  animation: mb-led-blink 1.4s steps(2) infinite;
}
.mb-time {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  color: var(--led);
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.85), 0 0 18px rgba(0, 255, 102, 0.4);
}
@keyframes mb-led-blink {
  0%, 70%, 100% { opacity: 1; }
  85% { opacity: 0.55; }
}

/* ============================================================
   BANK WALL (legacy — kept for backward compatibility)
   ============================================================ */
.bank-wall {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}
.bank-wall.lg {
  grid-template-columns: repeat(7, 1fr);
}
.bank-tile {
  background: var(--paper);
  border: 2px solid var(--pitch-2);
  border-radius: 4px;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.bank-tile:hover {
  background: var(--whistle);
  border-color: var(--whistle-3);
  transform: translateY(-2px);
}
.bk-em { font-size: 18px; }
.bank-tile b {
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--pitch-2);
  letter-spacing: 0.5px;
}
.bank-tile small {
  color: var(--text-3);
  font-size: 10px;
  font-family: 'Mitr', sans-serif;
}

.banking-feat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.bf-card {
  background: var(--paper);
  border: 2px solid var(--pitch-2);
  border-bottom: 4px solid var(--pitch-2);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
}
.bf-em { font-size: 36px; display: block; margin-bottom: 8px; }
.bf-card h4 { font-size: 15px; color: var(--pitch-2); margin-bottom: 8px; letter-spacing: 1px; }
.bf-card p { font-size: 12px; font-family: 'Mitr', sans-serif; color: var(--text-2); line-height: 1.6; }

/* ============================================================
   TRUST ROW
   ============================================================ */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.trust-card {
  background: linear-gradient(135deg, var(--pitch-2) 0%, var(--pitch-4) 100%);
  border: 2px solid var(--whistle);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  color: var(--ball);
}
.trust-ico { font-size: 32px; display: block; margin-bottom: 8px; }
.trust-card h4 { color: var(--whistle); font-size: 14px; margin-bottom: 6px; letter-spacing: 1px; }
.trust-card p { font-family: 'Mitr', sans-serif; font-size: 12px; color: var(--text-light); line-height: 1.5; }

/* ============================================================
   LEAGUE PILLS · LIVE FILTER
   ============================================================ */
.league-pills, .live-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
  padding: 12px;
  background: var(--paper);
  border: 2px solid var(--pitch-2);
  border-radius: 4px;
}
.lp {
  background: white;
  border: 2px solid var(--pitch-2);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lp:hover {
  background: var(--whistle);
  border-color: var(--whistle-3);
}
.lp.active {
  background: var(--pitch-2);
  border-color: var(--pitch-4);
  color: var(--whistle);
}
.lp-num {
  background: var(--whistle);
  color: #000;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 11px;
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
}
.lp-num.live {
  background: var(--redcard);
  color: white;
  animation: blink-live 1.4s ease-in-out infinite;
}
.lp.active .lp-num { background: var(--whistle); color: #000; }

/* ============================================================
   MARKET GRID
   ============================================================ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}
.market-card {
  background: var(--paper);
  border: 2px solid var(--pitch-2);
  border-bottom: 4px solid var(--pitch-2);
  border-radius: 4px;
  padding: 14px;
}
.market-card h4 {
  font-size: 14px;
  color: var(--pitch-2);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.market-card p {
  font-family: 'Mitr', sans-serif;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   CASHOUT EXPLAIN
   ============================================================ */
.cashout-explain {
  background:
    linear-gradient(135deg, var(--pitch-2) 0%, var(--pitch-4) 100%);
  border: 3px solid var(--whistle);
  border-radius: 4px;
  padding: 20px;
  color: var(--ball);
  margin: 24px 0;
}
.cashout-explain h3 {
  color: var(--whistle);
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: 1.5px;
}
.cashout-explain ol {
  list-style: none;
  counter-reset: co-num;
  padding: 0;
}
.cashout-explain li {
  counter-increment: co-num;
  padding: 10px 0 10px 48px;
  position: relative;
  font-family: 'Mitr', sans-serif;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  border-bottom: 1px dashed rgba(255,214,10,0.2);
}
.cashout-explain li::before {
  content: counter(co-num);
  position: absolute;
  left: 0; top: 8px;
  width: 32px; height: 32px;
  background: var(--whistle);
  color: #000;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-weight: 700;
  font-size: 16px;
}
.cashout-explain li b { color: var(--whistle); }

/* ============================================================
   FORM
   ============================================================ */
.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-card {
  background: var(--paper);
  border: 3px solid var(--pitch-2);
  border-bottom: 5px solid var(--pitch-2);
  border-radius: 4px;
  padding: 24px;
}
.form-card h3 {
  font-size: 22px;
  color: var(--pitch-2);
  margin-bottom: 4px;
  letter-spacing: 1.5px;
}
.form-sub {
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: 18px;
  font-family: 'Mitr', sans-serif;
}
.form-card label {
  display: block;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--pitch-2);
  margin: 12px 0 6px;
  text-transform: uppercase;
}
.form-card input,
.form-card select {
  width: 100%;
  background: white;
  border: 2px solid var(--pitch-2);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: 'Mitr', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border 0.15s ease;
}
.form-card input:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--whistle-3);
  box-shadow: 0 0 0 3px rgba(255,214,10,0.15);
}
.form-card .req { color: var(--redcard); }
.form-card .hint {
  font-family: 'Mitr', sans-serif;
  font-size: 11px;
  color: var(--text-3);
  margin: 4px 0;
  text-transform: none;
  letter-spacing: 0;
}
.cb-line {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-top: 14px !important;
}
.cb-line input { width: auto !important; margin-top: 4px; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.form-foot {
  text-align: center;
  font-family: 'Mitr', sans-serif;
  font-size: 12px;
  margin-top: 12px;
}
.form-card form button[type="submit"] { margin-top: 12px; }

/* ============================================================
   TIER GRID
   ============================================================ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tier-card {
  background: var(--paper);
  border: 3px solid var(--pitch-2);
  border-bottom: 5px solid var(--pitch-2);
  border-radius: 4px;
  padding: 16px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
}
.t-rookie::before    { background: #6B7280; }
.t-starter::before   { background: var(--pitch-1); }
.t-captain::before   { background: var(--whistle); }
.t-icon::before      { background: var(--redcard); }
.t-ballondor::before { background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%); }
.t-em { font-size: 36px; display: block; margin: 6px 0; }
.tier-card h4 {
  font-size: 16px;
  color: var(--pitch-2);
  letter-spacing: 1.5px;
  margin: 4px 0;
}
.tier-card small {
  color: var(--text-3);
  font-size: 11px;
  display: block;
  font-family: 'Mitr', sans-serif;
}
.t-xp {
  font-family: 'Orbitron', 'Bai Jamjuree', 'IBM Plex Sans Thai', monospace;
  font-size: 13px;
  color: var(--whistle-3);
  margin: 8px 0;
  background: rgba(255,214,10,0.1);
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px dashed var(--whistle-3);
}
.tier-card ul {
  list-style: none;
  text-align: left;
  font-family: 'Mitr', sans-serif;
  font-size: 12px;
  color: var(--text-2);
}
.tier-card ul li {
  padding: 4px 0 4px 16px;
  position: relative;
}
.tier-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 4px;
  color: var(--pitch-1);
  font-weight: 700;
}

/* ============================================================
   CONTACT GRID + FAQ + RG
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}
.contact-card {
  background: var(--paper);
  border: 2px solid var(--pitch-2);
  border-bottom: 4px solid var(--pitch-2);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--whistle-3);
  background: var(--whistle);
}
.cc-em { font-size: 32px; display: block; margin-bottom: 8px; }
.contact-card h3 {
  font-size: 14px;
  color: var(--pitch-2);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.contact-card p { font-family: 'Mitr', sans-serif; font-size: 12px; color: var(--text-3); }
.cc-line:hover { background: var(--line-green); color: white; }
.cc-line:hover h3, .cc-line:hover p { color: white; }
.cc-tg:hover   { background: var(--tg); color: white; }
.cc-tg:hover h3, .cc-tg:hover p { color: white; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 24px;
}
.faq {
  background: var(--paper);
  border: 2px solid var(--pitch-2);
  border-radius: 4px;
  padding: 12px 16px;
  cursor: pointer;
}
.faq summary {
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--pitch-2);
  letter-spacing: 0.5px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--whistle-3);
  font-weight: 700;
  transition: transform 0.15s ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(11,51,11,0.2);
  font-family: 'Mitr', sans-serif;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ft {
  background: var(--score-bg);
  color: var(--text-light);
  margin-top: 40px;
  border-top: 4px solid var(--whistle);
  padding: 32px 0 16px;
}
.ft a { color: var(--text-light); }
.ft a:hover { color: var(--whistle); }
.ft .line-link { color: var(--line-green); }
.ft-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,214,10,0.15);
}
.ft-col h5 {
  color: var(--whistle);
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 1.5px;
}
.ft-col a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  font-family: 'Mitr', sans-serif;
  color: var(--text-4);
}
.ft-col p { font-family: 'Mitr', sans-serif; }
.brand-ft {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.brand-ft .ball-mark {
  width: 36px; height: 36px;
  font-size: 18px;
  border-width: 2px;
  animation: none;
}
.brand-ft .brand-name { color: var(--whistle); font-size: 18px; }

.ft-bottom {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.floats {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
}
.float-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 4px;
  border: 2px solid;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Oswald', 'Mitr', 'Bai Jamjuree', sans-serif;
  background: white;
}
.float-btn:hover { transform: translateX(-4px); }
.float-em { font-size: 20px; line-height: 1; }
.float-lbl { font-size: 9px; font-weight: 700; margin-top: 2px; letter-spacing: 0.5px; }
.float-line {
  background: var(--line-green);
  border-color: #04A348;
  color: white;
}
.float-tg {
  background: var(--tg);
  border-color: #006699;
  color: white;
}
.float-cheer {
  background: var(--pitch-2);
  border-color: var(--whistle);
  color: var(--whistle);
}
body.cheer-on .float-cheer {
  background: var(--redcard);
  border-color: white;
  color: white;
  animation: cheer-shake 0.4s ease-in-out infinite;
}
@keyframes cheer-shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* ============================================================
   MODAL — Cash Out
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}
.modal.show { display: flex; }
.modal-card {
  background: var(--paper);
  border: 4px solid var(--pitch-2);
  border-radius: 4px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: modal-pop 0.3s ease;
}
@keyframes modal-pop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-head {
  background: linear-gradient(135deg, var(--pitch-2) 0%, var(--pitch-4) 100%);
  color: var(--whistle);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--whistle);
}
.modal-head h3 { font-size: 18px; letter-spacing: 1.5px; color: var(--whistle); }
.modal-x {
  background: transparent;
  border: 2px solid var(--whistle);
  color: var(--whistle);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s ease;
}
.modal-x:hover { background: var(--whistle); color: #000; }
.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.co-bill {
  background: white;
  border: 2px solid var(--pitch-2);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 8px;
}
.co-bill small { font-size: 11px; color: var(--text-3); font-family: 'Oswald', 'Mitr', sans-serif; letter-spacing: 1px; }
.co-bill h4 { color: var(--pitch-2); margin-top: 4px; font-size: 16px; }
.co-bill p { font-size: 12px; margin-top: 4px; }
.co-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(11,51,11,0.1);
  font-size: 13px;
}
.co-row small { color: var(--text-2); font-family: 'Mitr', sans-serif; }
.co-row b { font-size: 16px; color: var(--text); }
.co-row.co-now {
  border: 2px dashed var(--whistle-3);
  background: rgba(255,214,10,0.12);
  padding: 12px 8px;
  border-radius: 4px;
  margin: 8px 0;
}
.co-row.co-now b { font-size: 24px; }
.co-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.hide-xs { display: inline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-h1 { font-size: 38px; }
  .hero-content { grid-template-columns: 1fr; }
  .stat-board { grid-template-columns: repeat(2, 1fr); }
  .league-grid { grid-template-columns: repeat(3, 1fr); }
  .row-2 { grid-template-columns: 1fr; }
  .stream-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .slot-mini { grid-template-columns: repeat(3, 1fr); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .form-2col { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-cols { grid-template-columns: repeat(2, 1fr); }
  .bank-wall { grid-template-columns: repeat(5, 1fr); }
  .bank-wall.lg { grid-template-columns: repeat(4, 1fr); }
  .banking-feat { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .mb-cell { width: 160px; height: 60px; }
  .mb-tag { font-size: 11px; letter-spacing: 4px; }
}
@media (max-width: 640px) {
  .hide-xs { display: none !important; }
  .hero-h1 { font-size: 28px; }
  .head-bal { display: none; }
  .stat-board { grid-template-columns: 1fr; }
  .league-grid { grid-template-columns: repeat(2, 1fr); }
  .stream-grid { grid-template-columns: 1fr; }
  .ip-stats { grid-template-columns: repeat(3, 1fr); }
  .ip-board { grid-template-columns: 1fr; }
  .ip-team { align-items: center !important; text-align: center !important; }
  .ip-odds-row { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .slot-mini { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .ft-cols { grid-template-columns: 1fr; }
  .bank-wall { grid-template-columns: repeat(3, 1fr); }
  .bank-wall.lg { grid-template-columns: repeat(3, 1fr); }
  .banking-feat { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .mb-cell { width: 140px; height: 56px; }
  .mb-front img { width: 32px; height: 32px; }
  .mb-name { font-size: 13px; letter-spacing: 1.5px; }
  .mb-head { gap: 8px; }
  .mb-tag { font-size: 10px; letter-spacing: 3px; }
  .mb-sub { font-size: 10px; letter-spacing: 2px; }
  .cashout-bar { flex-direction: column; align-items: flex-start; }
  .cashout-bar .btn-cashout { width: 100%; }
  .floats { right: 8px; bottom: 8px; }
  .float-btn { width: 48px; height: 48px; }
  .page-title { font-size: 22px; }
}
