/* =============================================================
   SPIN24S — #17 Modern Gaming Console (PS5 / Stake.com)
   Palette: deep console #0E1420 → #1B2735
            electric blue #3B82F6 · hot pink #EC4899
            win green #10B981 · star yellow #FACC15
            platinum #F8FAFC
   Type:    Sora 700-900 (heading) · IBM Plex Sans Thai (body) · Outfit (numerics)
   ============================================================= */

/* ---------- TOKENS ---------- */
:root {
  --bg-0:       #07090E;
  --bg-1:       #0E1420;
  --bg-2:       #131C2D;
  --bg-3:       #1B2735;
  --bg-4:       #243245;
  --bg-card:    #0F1726;
  --bg-card-2:  #15203A;

  --line:       rgba(255, 255, 255, 0.07);
  --line-2:     rgba(255, 255, 255, 0.12);
  --line-blue:  rgba(59, 130, 246, 0.32);
  --line-pink:  rgba(236, 72, 153, 0.32);

  --blue:       #3B82F6;
  --blue-2:     #60A5FA;
  --blue-deep:  #1D4ED8;
  --pink:       #EC4899;
  --pink-2:     #F472B6;
  --green:      #10B981;
  --green-2:    #34D399;
  --yellow:     #FACC15;
  --yellow-2:   #FDE047;
  --purple:     #A855F7;
  --cyan:       #22D3EE;
  --red:        #EF4444;

  --text:       #F8FAFC;
  --text-2:     #CBD5E1;
  --text-3:     #94A3B8;
  --text-4:     #64748B;

  --grad-bp:    linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%);
  --grad-text:  linear-gradient(120deg, #60A5FA 0%, #C084FC 45%, #F472B6 100%);
  --shadow-glow:0 12px 40px rgba(59,130,246,0.30), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-pink:0 12px 40px rgba(236,72,153,0.32);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
}

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

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1400px 700px at 80% -10%, rgba(59,130,246,0.18), transparent 60%),
    radial-gradient(1100px 600px at -10% 30%, rgba(236,72,153,0.12), transparent 65%),
    radial-gradient(900px 500px at 50% 110%, rgba(168,85,247,0.10), transparent 60%),
    linear-gradient(180deg, #0E1420 0%, #1B2735 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'IBM Plex Sans Thai', 'Sora', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--pink-2); }

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text);
}
h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: clamp(18px, 2.4vw, 24px); }
h4 { font-size: 15px; font-weight: 700; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.pink-text { color: var(--pink-2); font-weight: 800; }
.dim       { color: var(--text-3); }
.small     { font-size: 12px; }
.center    { text-align: center; }
.right     { text-align: right; }
.mono      { font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif; font-variant-numeric: tabular-nums; font-weight: 600; }
.mt-8      { margin-top: 8px; }
.mt-32     { margin-top: 32px; }
.row       { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.spread{ justify-content: space-between; }


/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hide on small screens helpers */
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
}
@media (max-width: 980px) {
  .hide-md { display: none !important; }
}


/* ---------- TOPBAR ---------- */
.topbar {
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}
.topbar .container {
  display: flex; align-items: center; gap: 14px;
  height: 36px;
}
.topbar-spacer { flex: 1; }
.topbar-link { color: var(--text-2); }
.topbar-link:hover { color: var(--blue-2); }
.topbar-sep { color: var(--text-4); }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.30);
  color: var(--green-2);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.8); }
}

.line-tag {
  display: inline-block;
  background: #06C755;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
}


/* ---------- HEADER ---------- */
.site-header {
  background: linear-gradient(180deg, rgba(14,20,32,0.95) 0%, rgba(14,20,32,0.7) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 90;
}
.site-header .container {
  display: flex; align-items: center; gap: 24px;
  height: 76px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 48px; height: 48px;
  background: var(--grad-bp);
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: white;
  box-shadow: 0 8px 24px rgba(59,130,246,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 50%);
  pointer-events: none;
}
.brand-mark-x { position: relative; z-index: 1; transform: skewX(-8deg); }

.brand-name {
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  display: block;
}
.brand-sub {
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--text-4);
  font-weight: 600;
  display: block;
}

.header-search {
  flex: 1;
  position: relative;
  max-width: 480px;
}
.header-search input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 18px 12px 44px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.35-4.35'/></svg>");
  background-repeat: no-repeat;
  background-position: 14px center;
}
.header-search input:focus {
  outline: none;
  border-color: var(--line-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.search-kbd {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Outfit', 'IBM Plex Sans Thai', monospace;
  font-size: 11px;
  color: var(--text-4);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
}

.header-meta { display: flex; align-items: center; gap: 12px; }

.lvl-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  padding: 7px 14px;
  border-radius: 100px;
  min-width: 200px;
}
.lvl-icon { font-size: 18px; }
.lvl-info { flex: 1; }
.lvl-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}
.lvl-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 3px;
}
.lvl-bar.large { height: 10px; margin-top: 8px; }
.lvl-bar-fill {
  height: 100%;
  background: var(--grad-bp);
  border-radius: 100px;
  box-shadow: 0 0 8px rgba(59,130,246,0.6);
  transition: width .4s ease;
}
.lvl-xp {
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-2);
  white-space: nowrap;
}


/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  background: var(--bg-3);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s, box-shadow .25s, background .2s, filter .2s;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }

.btn-grad {
  background: var(--grad-bp);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 22px rgba(59,130,246,0.40), inset 0 1px 0 rgba(255,255,255,0.25);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.btn-grad::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
  transition: left 0.6s;
}
.btn-grad:hover::before { left: 100%; }
.btn-grad:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 30px rgba(236,72,153,0.50), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--line-blue); }

.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }


/* ---------- BADGES & PILLS ---------- */
.badge-new, .badge-live, .badge-hot {
  display: inline-block;
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.10em;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}
.badge-new  { background: rgba(168,85,247,0.18); color: var(--purple); border: 1px solid rgba(168,85,247,0.4); }
.badge-live { background: rgba(239,68,68,0.18);  color: var(--red);    border: 1px solid rgba(239,68,68,0.4); animation: blink-live 1.4s infinite; }
.badge-hot  { background: rgba(252,204,21,0.18); color: var(--yellow); border: 1px solid rgba(252,204,21,0.4); }
@keyframes blink-live {
  0%,80% { opacity: 1; }
  90%    { opacity: 0.5; }
}

.kbd {
  font-family: 'Outfit', 'IBM Plex Sans Thai', monospace;
  background: rgba(255,255,255,0.08);
  color: var(--blue-2);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-blue);
  font-weight: 600;
  font-size: 12px;
}


/* ---------- NAV ---------- */
.main-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 76px;
  z-index: 80;
}
.main-nav .container {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav .container::-webkit-scrollbar { display: none; }
.main-nav a {
  color: var(--text-2);
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 16px 18px;
  white-space: nowrap;
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a .nav-ico {
  color: var(--text-4);
  font-size: 14px;
  font-weight: 600;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover .nav-ico { color: var(--blue-2); }
.main-nav a.active {
  color: var(--text);
  border-bottom-color: var(--pink);
}
.main-nav a.active .nav-ico { color: var(--pink); }


/* ---------- RIBBON ---------- */
.ribbon {
  background: linear-gradient(90deg, rgba(59,130,246,0.14) 0%, rgba(236,72,153,0.14) 100%);
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  font-size: 13px;
  color: var(--text-2);
}
.ribbon strong { color: var(--text); font-weight: 700; }
.ribbon .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ribbon-icon { font-size: 18px; }
.ribbon-clock {
  font-family: 'Outfit', 'IBM Plex Sans Thai', monospace;
  color: var(--yellow);
  font-weight: 700;
}


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


/* ---------- HERO TILE (PS5-dashboard featured tile) ---------- */
.hero-tile {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card-2);
  border: 1px solid var(--line-2);
  margin-bottom: 32px;
  min-height: 400px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.hero-slide {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  min-height: 400px;
  position: relative;
}
.hero-slide.active { display: grid; animation: hero-fade .55s ease-out; }
@keyframes hero-fade {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-art {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 280px;
}
.hero-tag {
  position: absolute;
  top: 20px; left: 20px;
  background: rgba(59,130,246,0.85);
  color: white;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(59,130,246,0.35);
  backdrop-filter: blur(8px);
}
.hero-tag.tag-pink   { background: rgba(236,72,153,0.85); box-shadow: 0 8px 22px rgba(236,72,153,0.35); }
.hero-tag.tag-yellow { background: rgba(252,204,21,0.92); color: #1B2735; box-shadow: 0 8px 22px rgba(252,204,21,0.35); }
.hero-tag.tag-green  { background: rgba(16,185,129,0.85); box-shadow: 0 8px 22px rgba(16,185,129,0.35); }

.hero-body {
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.hero-eyebrow {
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--blue-2);
  font-weight: 700;
  margin: 0;
}
.hero-title {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0;
  line-height: 1.15;
}
.hero-desc {
  color: var(--text-2);
  font-size: 14px;
  margin: 4px 0 8px;
  max-width: 520px;
}
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.hero-chip {
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  padding: 6px 11px;
  border-radius: 100px;
  font-weight: 600;
}

.hero-controls {
  position: absolute;
  bottom: 18px; right: 24px;
  display: flex; gap: 12px; align-items: center;
  z-index: 5;
}
.hero-arrow {
  width: 36px; height: 36px;
  background: rgba(15,23,38,0.7);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  display: grid; place-items: center;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  line-height: 1;
  backdrop-filter: blur(6px);
  transition: background .2s;
}
.hero-arrow:hover { background: rgba(59,130,246,0.30); }

.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 28px; height: 5px;
  background: rgba(255,255,255,0.18);
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: background .25s, width .25s;
  padding: 0;
}
.hero-dot.active {
  background: var(--grad-bp);
  width: 44px;
}

@media (max-width: 880px) {
  .hero-slide.active { grid-template-columns: 1fr; }
  .hero-art { min-height: 200px; }
  .hero-body { padding: 28px 24px; }
}


/* ---------- TRUST ROW ---------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.trust-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex; gap: 12px; align-items: center;
  transition: border-color .2s, transform .2s;
}
.trust-item:hover {
  border-color: var(--line-blue);
  transform: translateY(-2px);
}
.trust-ico { font-size: 28px; }
.trust-item strong { display: block; font-size: 13.5px; color: var(--text); font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif; }
.trust-item small  { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
@media (max-width: 980px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-row { grid-template-columns: 1fr; } }


/* ---------- SECTION HEAD ---------- */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 36px 0 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h3 { margin: 0; }
.section-head .dim { font-size: 13px; }
.link-more {
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, transform .2s;
  display: inline-block;
}
.link-more:hover { color: var(--pink-2); transform: translateX(2px); }
.emoji-glow {
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(252,204,21,0.6));
  margin-right: 4px;
}

.missions-progress {
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-2);
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.30);
  padding: 5px 12px;
  border-radius: 100px;
}
.missions-progress span { color: var(--text); font-weight: 800; }


/* ---------- CAROUSEL (popular row) ---------- */
.carousel-wrap {
  position: relative;
  margin-bottom: 32px;
}
.carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--blue), var(--pink));
  border-radius: 100px;
}
.carousel .game-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
}


/* ---------- GAME CARD ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .25s, border-color .25s;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--line-blue);
  box-shadow: 0 16px 40px rgba(59,130,246,0.28);
}
.game-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
}
.game-thumb img.thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.game-card:hover img.thumb { transform: scale(1.06); }
.provider-tag {
  position: absolute;
  top: 8px; left: 8px;
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  padding: 3px 7px;
  background: rgba(15,23,38,0.85);
  color: var(--blue-2);
  border-radius: 4px;
  border: 1px solid var(--line-blue);
  backdrop-filter: blur(4px);
  z-index: 2;
}
.game-rank {
  position: absolute;
  top: 8px; right: 8px;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 13px;
  font-weight: 800;
  background: var(--grad-bp);
  color: white;
  padding: 4px 9px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(59,130,246,0.4);
  z-index: 2;
}
.game-thumb .badge-new, .game-thumb .badge-hot {
  position: absolute;
  top: 8px; right: 8px;
  margin: 0;
  z-index: 2;
}
.game-info {
  padding: 10px 12px 12px;
}
.game-info h4 {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.game-info .dim {
  font-size: 11.5px;
  color: var(--text-3);
}


/* ---------- CATEGORY GRID ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.cat-card {
  position: relative;
  display: flex; gap: 16px; align-items: center;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cat-bg, linear-gradient(135deg, transparent, transparent));
  opacity: 0.18;
  transition: opacity .3s;
  pointer-events: none;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card:hover::before { opacity: 0.32; }

.cat-blue   { --cat-bg: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.cat-blue:hover   { border-color: var(--blue);  box-shadow: 0 16px 40px rgba(59,130,246,0.30); }
.cat-pink   { --cat-bg: linear-gradient(135deg, #EC4899, #BE185D); }
.cat-pink:hover   { border-color: var(--pink);  box-shadow: 0 16px 40px rgba(236,72,153,0.30); }
.cat-green  { --cat-bg: linear-gradient(135deg, #10B981, #047857); }
.cat-green:hover  { border-color: var(--green); box-shadow: 0 16px 40px rgba(16,185,129,0.30); }
.cat-yellow { --cat-bg: linear-gradient(135deg, #FACC15, #CA8A04); }
.cat-yellow:hover { border-color: var(--yellow);box-shadow: 0 16px 40px rgba(252,204,21,0.28); }
.cat-cyan   { --cat-bg: linear-gradient(135deg, #22D3EE, #0891B2); }
.cat-cyan:hover   { border-color: var(--cyan);  box-shadow: 0 16px 40px rgba(34,211,238,0.28); }
.cat-purple { --cat-bg: linear-gradient(135deg, #A855F7, #6B21A8); }
.cat-purple:hover { border-color: var(--purple);box-shadow: 0 16px 40px rgba(168,85,247,0.30); }

.cat-art {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 32px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.cat-body {
  flex: 1;
  position: relative; z-index: 1;
}
.cat-body strong {
  display: block;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.cat-body small {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.cat-arrow {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 22px;
  color: var(--text-3);
  transition: transform .25s, color .25s;
}
.cat-card:hover .cat-arrow { color: var(--text); transform: translateY(-50%) translateX(4px); }

@media (max-width: 880px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }


/* ---------- TOURNAMENT CARD (big leaderboard) ---------- */
.tourney-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 36px;
  position: relative;
}
.tourney-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 30%, rgba(59,130,246,0.3) 50%, transparent 70%);
  background-size: 200% 100%;
  border-radius: var(--r-lg);
  z-index: 0;
  animation: tourney-shimmer 5s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}
.tourney-card > * { position: relative; z-index: 1; }
@keyframes tourney-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.tourney-head {
  padding: 28px 30px;
  background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(236,72,153,0.12) 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.tourney-head .dim { font-size: 11.5px; letter-spacing: 0.18em; font-weight: 600; }
.prize-num {
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 4px 0 0;
  letter-spacing: -0.02em;
}
.tourney-meta {
  display: flex; gap: 28px;
}
.meta-item {
  display: flex; flex-direction: column; gap: 2px;
}
.meta-item .dim { font-size: 11px; color: var(--text-4); letter-spacing: 0.10em; text-transform: uppercase; }
.meta-item strong {
  font-family: 'Outfit', 'IBM Plex Sans Thai', monospace;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.leader-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.leader-table thead th {
  text-align: left;
  padding: 12px 30px;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.leader-table thead th.right { text-align: right; }
.leader-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.leader-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.leader-table tbody td {
  padding: 14px 30px;
  vertical-align: middle;
}
.leader-table tbody td.right { text-align: right; font-family: 'Outfit', 'IBM Plex Sans Thai', monospace; }
.leader-table tr.rank-1 { background: linear-gradient(90deg, rgba(252,204,21,0.10), transparent); }
.leader-table tr.rank-2 { background: linear-gradient(90deg, rgba(203,213,225,0.06), transparent); }
.leader-table tr.rank-3 { background: linear-gradient(90deg, rgba(180,83,9,0.08), transparent); }
.leader-table tr.my-rank {
  background: linear-gradient(90deg, rgba(59,130,246,0.10), transparent);
  border-top: 1px dashed var(--line-blue);
}
.leader-table tr.my-rank td:first-child {
  color: var(--blue-2);
  font-weight: 800;
}

.lvl-tag {
  display: inline-block;
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
}
.lvl-tag.legend { color: #FFD700; background: rgba(255,215,0,0.10); border-color: rgba(255,215,0,0.30); }
.lvl-tag.master { color: var(--purple); background: rgba(168,85,247,0.10); border-color: rgba(168,85,247,0.32); }
.lvl-tag.elite  { color: var(--cyan); background: rgba(34,211,238,0.10); border-color: rgba(34,211,238,0.32); }
.lvl-tag.pro    { color: var(--blue-2); background: rgba(59,130,246,0.10); border-color: rgba(59,130,246,0.32); }
.lvl-tag.rookie { color: var(--green-2); background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.32); }

.tourney-foot {
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .tourney-head { padding: 20px; }
  .tourney-meta { gap: 18px; }
  .leader-table thead th, .leader-table tbody td { padding: 10px 14px; }
}


/* ---------- LIVE TABLES ---------- */
.live-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.live-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.live-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-pink);
  box-shadow: 0 14px 36px rgba(236,72,153,0.22);
}
.live-art {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.live-art img { width: 100%; height: 100%; object-fit: cover; }
.live-pulse {
  position: absolute;
  top: 12px; left: 12px;
  font-family: 'Outfit', 'IBM Plex Sans Thai', monospace;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: var(--red);
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
  animation: blink-live 1.4s infinite;
}
.live-info {
  padding: 14px 16px;
}
.live-info strong {
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  display: block;
}
.live-info small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }
.live-stats {
  display: flex; gap: 14px;
  margin-top: 10px;
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 12px;
  color: var(--text-2);
}

@media (max-width: 880px) { .live-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .live-row { grid-template-columns: 1fr; } }


/* ---------- MISSION ROW ---------- */
.mission-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  transition: border-color .25s, transform .2s;
}
.mission-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-blue);
}
.mission-card.done {
  background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(16,185,129,0.04));
  border-color: rgba(16,185,129,0.32);
}
.mission-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(59,130,246,0.12);
  border: 1px solid var(--line-blue);
  color: var(--blue-2);
  display: grid; place-items: center;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.mission-card.done .mission-icon {
  background: rgba(16,185,129,0.16);
  color: var(--green);
  border-color: rgba(16,185,129,0.40);
}
.mission-body { min-width: 0; }
.mission-body strong {
  display: block;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.mission-body small {
  font-size: 11.5px;
  color: var(--text-3);
}
.mission-bar {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 7px;
}
.mission-fill {
  height: 100%;
  background: var(--grad-bp);
  border-radius: 100px;
  transition: width .4s ease;
}
.mission-card.done .mission-fill {
  background: linear-gradient(90deg, var(--green), var(--green-2));
}
.mission-reward {
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(252,204,21,0.10);
  border: 1px solid rgba(252,204,21,0.30);
  padding: 5px 11px;
  border-radius: 100px;
  white-space: nowrap;
}
.done-tag {
  color: var(--green-2);
  background: rgba(16,185,129,0.16);
  border-color: rgba(16,185,129,0.40);
}

@media (max-width: 880px) { .mission-row { grid-template-columns: 1fr; } }


/* ---------- BADGE GRID ---------- */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.badge-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 12px;
  text-align: center;
  opacity: 0.45;
  filter: grayscale(0.7);
  transition: opacity .25s, transform .25s, border-color .25s;
}
.badge-card.unlocked {
  opacity: 1;
  filter: none;
  border-color: rgba(252,204,21,0.30);
  background: linear-gradient(155deg, rgba(252,204,21,0.06), var(--bg-card) 60%);
}
.badge-card:hover { transform: translateY(-3px) scale(1.02); }
.badge-card.unlocked:hover { border-color: var(--yellow); box-shadow: 0 12px 28px rgba(252,204,21,0.20); }
.badge-emoji {
  font-size: 32px;
  margin-bottom: 6px;
}
.badge-card strong {
  display: block;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
}
.badge-card small {
  display: block;
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 2px;
}
@media (max-width: 880px) { .badge-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .badge-grid { grid-template-columns: repeat(3, 1fr); } }


/* ---------- TIER LADDER (5 cards) ---------- */
.tier-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 18px;
  text-align: center;
  position: relative;
  transition: transform .25s, border-color .25s;
}
.tier-card:hover { transform: translateY(-3px); }
.tier-icon { font-size: 32px; margin-bottom: 8px; display: block; }
.tier-card strong {
  display: block;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.tier-card small {
  display: block;
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  color: var(--text-3);
  margin: 2px 0 12px;
  font-weight: 600;
}
.tier-perk {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.t-rookie { border-top: 3px solid var(--green); }
.t-pro    { border-top: 3px solid var(--blue); }
.t-elite  { border-top: 3px solid var(--cyan); }
.t-master { border-top: 3px solid var(--purple); }
.t-legend { border-top: 3px solid var(--yellow); }
.tier-card.current {
  background: linear-gradient(155deg, rgba(59,130,246,0.16), var(--bg-card) 65%);
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(59,130,246,0.28);
}
.tier-now {
  position: absolute;
  top: -10px; right: 14px;
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  background: var(--grad-bp);
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(59,130,246,0.4);
}
@media (max-width: 880px) { .tier-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tier-row { grid-template-columns: 1fr; } }


/* ---------- PROVIDER GRID ---------- */
.prov-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.prov-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none;
  color: var(--text-3);
  transition: transform .2s, border-color .25s, color .25s;
}
.prov-card img {
  width: 44px; height: 44px;
  object-fit: contain;
  filter: grayscale(0.5) brightness(0.92);
  transition: filter .25s;
}
.prov-card span {
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.prov-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-blue);
  color: var(--text);
}
.prov-card:hover img { filter: none; }
@media (max-width: 880px) { .prov-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .prov-grid { grid-template-columns: repeat(3, 1fr); } }


/* ---------- BANK GRID ---------- */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}
.bank-chip {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  display: flex; gap: 10px; align-items: center;
  font-size: 12.5px;
  color: var(--text-2);
  transition: border-color .2s, transform .2s;
}
.bank-chip:hover { border-color: var(--line-blue); transform: translateY(-1px); }
.bank-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: white;
  flex-shrink: 0;
}
.b-scb   { background: #4E2E7F; }
.b-kbank { background: #138F2D; }
.b-bbl   { background: #1B3D9E; }
.b-ktb   { background: #1BA3DD; }
.b-bay   { background: #FFCC00; color: #000; }
.b-ttb   { background: #1F4FA0; }
.b-gsb   { background: #E9408C; }
.b-kkp   { background: #003B71; }
.b-cimb  { background: #BE0F34; }
.b-true  { background: #FF6900; }
.b-qr    { background: #0F47B0; }
.b-usdt  { background: linear-gradient(135deg, #26A17B, #138666); }
@media (max-width: 880px) { .bank-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .bank-grid { grid-template-columns: repeat(2, 1fr); } }


/* ---------- WHY GRID ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 22px;
  transition: transform .2s, border-color .25s;
}
.why-card:hover { transform: translateY(-3px); border-color: var(--line-blue); }
.why-ico {
  display: inline-block;
  width: 48px; height: 48px;
  background: var(--grad-bp);
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(59,130,246,0.30);
}
.why-card strong {
  display: block;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.why-card p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .why-grid { grid-template-columns: 1fr; } }


/* ---------- PAGE HEAD ---------- */
.page-head {
  margin: 12px 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: 6px; }
.page-head .dim { font-size: 14px; }


/* ---------- FILTER ROW ---------- */
.filter-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.chip {
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.chip.active {
  background: var(--grad-bp);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(59,130,246,0.30);
}


/* ---------- TOURNAMENT MINI (featured page) ---------- */
.tourney-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.tourney-mini {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.tourney-mini:hover { transform: translateY(-3px); border-color: var(--line-blue); }
.tm-banner {
  padding: 24px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tm-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 50%);
  pointer-events: none;
}
.tm-grad-blue  { background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%); }
.tm-grad-pink  { background: linear-gradient(135deg, #BE185D 0%, #EC4899 100%); }
.tm-grad-green { background: linear-gradient(135deg, #047857 0%, #10B981 100%); }
.tm-tag {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  color: white;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.tm-banner h2 {
  font-size: 26px;
  margin: 0 0 4px;
  position: relative; z-index: 1;
}
.tm-banner p {
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  position: relative; z-index: 1;
  margin: 0;
}
.tm-body {
  padding: 18px 22px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.tm-body strong { font-family: 'Outfit', 'IBM Plex Sans Thai', monospace; font-weight: 700; color: var(--text); }
@media (max-width: 880px) { .tourney-grid { grid-template-columns: 1fr; } }


/* ---------- MATCH (sports) ---------- */
.match-head {
  margin: 24px 0 12px;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
}
.match-list {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.match {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  transition: border-color .25s;
}
.match:hover { border-color: var(--line-blue); }
.match-info { display: flex; gap: 14px; align-items: center; }
.match-time {
  font-family: 'Outfit', 'IBM Plex Sans Thai', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-2);
  padding: 6px 12px;
  background: rgba(59,130,246,0.10);
  border: 1px solid var(--line-blue);
  border-radius: 8px;
}
.match-info strong { font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif; font-size: 14.5px; }
.match-info small { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 2px; }

.odds-row { display: flex; gap: 6px; flex-wrap: wrap; }
.odds-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  display: flex; flex-direction: column;
  text-align: center;
  min-width: 64px;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  transition: background .2s, border-color .2s, transform .15s;
}
.odds-btn small { font-size: 10px; color: var(--text-3); display: block; }
.odds-btn strong {
  font-family: 'Outfit', 'IBM Plex Sans Thai', monospace;
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
  margin-top: 2px;
}
.odds-btn:hover { background: rgba(59,130,246,0.10); border-color: var(--line-blue); transform: translateY(-1px); }
.odds-btn.selected {
  background: var(--grad-bp);
  border-color: transparent;
}
.odds-btn.selected small,
.odds-btn.selected strong { color: white; }

@media (max-width: 720px) {
  .match { grid-template-columns: 1fr; }
}


/* ---------- LOTTO GRID ---------- */
.lotto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.lotto-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  transition: border-color .25s, transform .25s;
}
.lotto-card:hover { transform: translateY(-2px); border-color: var(--line-blue); }
.lotto-tag {
  display: inline-block;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  background: rgba(59,130,246,0.18);
  color: var(--blue-2);
  border: 1px solid var(--line-blue);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.lotto-tag.tag-purple { background: rgba(168,85,247,0.16); color: var(--purple); border-color: rgba(168,85,247,0.32); }
.lotto-tag.tag-pink   { background: rgba(236,72,153,0.16); color: var(--pink-2); border-color: rgba(236,72,153,0.32); }
.lotto-tag.tag-yellow { background: rgba(252,204,21,0.16); color: var(--yellow-2); border-color: rgba(252,204,21,0.32); }
.lotto-tag.tag-green  { background: rgba(16,185,129,0.16); color: var(--green-2); border-color: rgba(16,185,129,0.32); }
.lotto-tag.tag-cyan   { background: rgba(34,211,238,0.16); color: var(--cyan); border-color: rgba(34,211,238,0.32); }
.lotto-card h4 { font-size: 16px; margin-bottom: 4px; }
.lotto-card .dim { display: block; font-size: 12px; margin-bottom: 14px; }
.lotto-card .btn { margin-top: 14px; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}
.countdown .unit {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}
.countdown .num {
  display: block;
  font-family: 'Outfit', 'IBM Plex Sans Thai', monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.countdown .lbl {
  display: block;
  font-size: 9.5px;
  color: var(--text-4);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-top: 4px;
}
@media (max-width: 720px) { .lotto-grid { grid-template-columns: 1fr; } }


/* ---------- WALLET & BANKING TABS (Bank page) ---------- */
.wb-head { margin-top: 44px; margin-bottom: 14px; }

.wb-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wb-tabs::-webkit-scrollbar { display: none; }
.wb-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 14px 22px;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  position: relative;
}
.wb-tab:hover { color: var(--text); }
.wb-tab.active {
  color: var(--text);
  border-bottom-color: var(--blue);
  box-shadow: 0 4px 16px -4px rgba(59, 130, 246, 0.45);
}
.wb-tab-ico {
  font-size: 17px;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.30));
}
.wb-tab-label {
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.wb-tab-count {
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  border: 1px solid var(--line-2);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  transition: background .2s, color .2s, border-color .2s;
}
.wb-tab.active .wb-tab-count {
  background: var(--grad-bp);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}
.wb-tab:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; border-radius: 6px; }

/* Panes — smooth fade transition */
.wb-pane { display: none; }
.wb-pane.active {
  display: block;
  animation: wb-fade .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes wb-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Grid layouts per tab */
.wb-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.wb-grid-banks   { grid-template-columns: repeat(6, 1fr); }
.wb-grid-ewallet { grid-template-columns: repeat(2, 1fr); }
.wb-grid-crypto  { grid-template-columns: repeat(4, 1fr); }

/* Card — base (Thai bank style) */
.wb-card {
  position: relative;
  background: var(--bg-card);
  border: none;
  border-radius: 16px;
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1.4), box-shadow .25s ease, background .25s;
  isolation: isolate;
}
/* Gradient blue→pink border (mask compositing) */
.wb-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: background .3s ease;
}
.wb-card:hover {
  transform: scale(1.04);
  background: var(--bg-card-2);
  box-shadow: 0 18px 44px rgba(59, 130, 246, 0.22), 0 8px 18px rgba(236, 72, 153, 0.16);
}
.wb-card:hover::before {
  background: var(--grad-bp);
}
.wb-card:active { transform: scale(1.02); }
.wb-card:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.wb-card.wb-just-fired { animation: wb-flash .65s ease-out; }
.wb-card.wb-just-fired::before { background: var(--grad-bp); }
@keyframes wb-flash {
  0%   { box-shadow: 0 0 0 0 rgba(252, 204, 21, 0.55); }
  40%  { box-shadow: 0 0 0 14px rgba(252, 204, 21, 0.10); transform: scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(252, 204, 21, 0); transform: scale(1.04); }
}

/* Logo container — clean white plate (fintech feel) */
.wb-logo {
  width: 60px;
  height: 60px;
  background: #FFFFFF;
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 8px;
  margin-bottom: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 6px 14px rgba(0, 0, 0, 0.22);
  transition: transform .25s, box-shadow .25s;
}
.wb-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}
.wb-card:hover .wb-logo {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 22px rgba(0, 0, 0, 0.30);
}

.wb-name {
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-top: 2px;
}
.wb-code {
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--text-3);
  text-transform: uppercase;
}
.wb-terms {
  font-family: 'IBM Plex Sans Thai', 'Sora', sans-serif;
  font-size: 10.5px;
  color: var(--text-4);
  line-height: 1.4;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-2);
  width: 100%;
  letter-spacing: 0.005em;
}

/* Large card variant (E-Wallet · row of 2) */
.wb-card-lg {
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 22px 24px;
  gap: 18px;
}
.wb-card-lg .wb-logo {
  margin-bottom: 0;
  flex-shrink: 0;
}
.wb-logo-lg {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  padding: 10px;
}
.wb-card-lg .wb-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wb-card-lg .wb-name { font-size: 17px; margin-top: 0; }
.wb-card-lg .wb-code { font-size: 12px; }
.wb-card-lg .wb-terms {
  margin-top: 6px;
  padding-top: 6px;
  font-size: 11.5px;
}
.wb-arrow {
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform .25s, color .25s;
}
.wb-card-lg:hover .wb-arrow {
  color: var(--pink-2);
  transform: translateX(4px);
}

/* Crypto card variant — slightly larger logo, network info */
.wb-card-crypto .wb-logo { width: 64px; height: 64px; padding: 6px; }
.wb-card-crypto .wb-name { font-size: 15px; }

@media (max-width: 1080px) {
  .wb-grid-banks { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 880px) {
  .wb-grid-banks   { grid-template-columns: repeat(3, 1fr); }
  .wb-grid-crypto  { grid-template-columns: repeat(2, 1fr); }
  .wb-grid-ewallet { grid-template-columns: 1fr; }
  .wb-card-lg { padding: 18px 18px; }
  .wb-tab { padding: 12px 16px; font-size: 13px; }
  .wb-tab-ico { font-size: 15px; }
}
@media (max-width: 520px) {
  .wb-grid-banks   { grid-template-columns: repeat(2, 1fr); }
  .wb-tab-label { font-size: 12.5px; }
  .wb-tab { gap: 6px; padding: 11px 12px; }
}


/* ---------- BANK / DEPOSIT FORM ---------- */
.bank-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.bank-tab {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
.bank-tab h3 { font-size: 20px; margin-bottom: 4px; }
.bank-tab > .dim { font-size: 13px; margin-bottom: 18px; }
.form-row {
  display: block;
  margin-bottom: 14px;
}
.form-row span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.form-input:focus {
  outline: none;
  border-color: var(--line-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-input:disabled {
  color: var(--text-3);
  background: rgba(255,255,255,0.02);
}
.quick-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.quick-btns .chip { font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif; font-weight: 700; }

.hint {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  margin-top: 8px;
}

@media (max-width: 720px) { .bank-cards { grid-template-columns: 1fr; } }


/* ---------- ACCOUNT ---------- */
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  margin-bottom: 24px;
}
.auth-card, .profile-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: -8px -26px 18px;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.auth-tab.active {
  color: var(--text);
  border-bottom-color: var(--pink);
}
.auth-pane { display: none; }
.auth-pane.active { display: block; }

.profile-head {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 22px;
}
.profile-avatar {
  width: 56px; height: 56px;
  background: var(--grad-bp);
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 26px;
  box-shadow: 0 8px 22px rgba(59,130,246,0.40);
}
.profile-head strong { font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif; font-size: 18px; display: block; }

.xp-block {
  background: rgba(59,130,246,0.06);
  border: 1px solid var(--line-blue);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.xp-block .dim { font-size: 12px; }
.xp-block strong { font-family: 'Outfit', 'IBM Plex Sans Thai', monospace; }
.xp-block small { display: block; margin-top: 4px; font-size: 11px; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.profile-stats .stat {
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.profile-stats strong {
  font-family: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.profile-stats small { font-size: 11px; color: var(--text-3); display: block; margin-top: 2px; }

@media (max-width: 880px) { .account-grid { grid-template-columns: 1fr; } }


/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 22px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-3px); }
.cc-line:hover { border-color: #06C755; box-shadow: 0 12px 28px rgba(6,199,85,0.20); }
.cc-tg:hover   { border-color: #0088CC; box-shadow: 0 12px 28px rgba(0,136,204,0.22); }
.cc-call:hover { border-color: var(--blue); box-shadow: 0 12px 28px rgba(59,130,246,0.22); }
.cc-mail:hover { border-color: var(--pink); box-shadow: 0 12px 28px rgba(236,72,153,0.22); }

.cc-ico {
  display: block;
  font-size: 32px;
  margin-bottom: 8px;
}
.contact-card strong { display: block; font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif; font-size: 14.5px; }
.contact-card small  { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 4px; }

@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .contact-grid { grid-template-columns: 1fr; } }


/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 20px;
  cursor: pointer;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  position: relative;
  padding-right: 44px;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 22px;
  color: var(--blue-2);
  transition: transform .25s, color .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--pink-2); }
.faq-item p {
  padding: 0 20px 16px;
  font-size: 13.5px;
  line-height: 1.6;
}


/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer h4 { font-size: 22px; margin-bottom: 8px; }
.site-footer h5 {
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.link-list { list-style: none; }
.link-list li { margin-bottom: 6px; }
.link-list a {
  color: var(--text-3);
  font-size: 13px;
  transition: color .2s;
}
.link-list a:hover { color: var(--blue-2); }

@media (max-width: 880px) {
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .footer-compliance { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid       { grid-template-columns: 1fr; }
  .footer-compliance { grid-template-columns: 1fr; }
}


/* ---------- FLOATING ---------- */
.floating {
  position: fixed;
  right: 18px; bottom: 18px;
  display: flex; flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px;
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
  cursor: pointer;
  border: none;
  transition: transform .25s, box-shadow .25s;
  font-family: inherit;
}
.float-btn:hover { transform: translateY(-3px) scale(1.05); }
.float-line { background: linear-gradient(135deg, #06C755 0%, #03A040 100%); }
.float-tg   { background: linear-gradient(135deg, #29B6F6 0%, #0088CC 100%); }
.float-top  {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--text);
}


/* ---------- ACHIEVEMENT TOAST ---------- */
.ach-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, rgba(15,23,38,0.95) 0%, rgba(36,50,69,0.95) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid var(--yellow);
  border-radius: 16px;
  padding: 14px 20px 14px 16px;
  box-shadow: 0 18px 50px rgba(252,204,21,0.30), 0 0 0 1px rgba(252,204,21,0.20);
  display: flex; gap: 14px; align-items: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.4), opacity .25s;
  min-width: 280px;
  max-width: 90%;
}
.ach-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.ach-toast .ach-icon {
  width: 44px; height: 44px;
  background: var(--grad-bp);
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(59,130,246,0.4);
}
.ach-toast .ach-body strong {
  display: block;
  font-family: 'Sora', 'IBM Plex Sans Thai', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
}
.ach-toast .ach-body small {
  display: block;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-top: 1px;
}


/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 720px) {
  .site-header .container { gap: 12px; height: 64px; }
  .brand-mark { width: 40px; height: 40px; font-size: 22px; }
  .brand-name { font-size: 16px; }
  .main-nav { top: 64px; }
  main { padding: 16px 0 60px; }
  .container { padding: 0 14px; }
  .hero-controls { right: 14px; bottom: 14px; }
  .hero-arrow { width: 30px; height: 30px; font-size: 18px; }
  .lvl-chip { display: none; }
}
