@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/prompt-v12-thai-400.woff2") format("woff2");
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/prompt-v12-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/prompt-v12-thai-600.woff2") format("woff2");
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/prompt-v12-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --bg-obsidian: #121418;
  --bg-deep: #171b22;
  --bg-panel: #1e232c;
  --bg-panel-2: #262d38;
  --bg-input: #141820;
  --emerald: #1e40af;
  --emerald-bright: #60a5fa;
  --emerald-soft: rgba(30, 64, 175, 0.24);
  --gold: #f5b932;
  --gold-light: #fde047;
  --gold-dark: #c98a12;
  --text-main: #f3f4f6;
  --text-sub: #c8cdd6;
  --text-muted: #8f96a3;
  --border-gold: rgba(245, 185, 50, 0.48);
  --border-gold-strong: rgba(253, 224, 71, 0.82);
  --border-emerald: rgba(96, 165, 250, 0.34);
  --danger: #e55353;
  --success: #36d399;
  --header-h: 64px;
  --container-w: 1380px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: "Prompt", system-ui, -apple-system, sans-serif;
  background: var(--bg-obsidian);
  color: var(--text-main);
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: linear-gradient(180deg, #111317 0%, #161a22 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
img { max-width: 100%; display: block; }
svg.ico { flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
::selection { background: var(--gold); color: #161107; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 18px; }

/* Notice Ticker */
.notice-bar {
  background: linear-gradient(90deg, #14171d, #1b2438 50%, #14171d);
  border-bottom: 1px solid var(--border-gold);
  font-size: 12px;
  color: var(--emerald-bright);
  height: 30px;
  display: flex;
  align-items: center;
}
.notice-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.notice-badge {
  background: linear-gradient(120deg, #2563eb, #1e3a8a);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 99px;
  border: 1px solid var(--border-emerald);
  flex-shrink: 0;
}
.notice-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.notice-seq {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
.notice-text { overflow: hidden; text-overflow: ellipsis; color: var(--text-sub); }
.notice-dup { display: none; }
@media (max-width: 719px) {
  .notice-seq {
    max-width: none;
    width: max-content;
    gap: 36px;
    padding-right: 36px;
    animation: live-marquee 18s linear infinite;
  }
  .notice-bar:hover .notice-seq { animation-play-state: paused; }
  .notice-text { overflow: visible; text-overflow: clip; }
  .notice-dup { display: inline; }
}

/* Header */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: 100vw;
  height: var(--header-h);
  background: linear-gradient(110deg, rgba(20, 23, 29, 0.96), rgba(18, 22, 31, 0.97) 60%, rgba(28, 34, 46, 0.96));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}
.site-bar-inner {
  max-width: var(--container-w);
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.brand-link { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand-img { height: 42px; width: auto; max-width: 175px; object-fit: contain; }

.top-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-sub);
  border: 1px solid transparent;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.top-nav a:hover { color: var(--emerald-bright); background: rgba(30, 64, 175, 0.16); }
.top-nav a.active {
  color: #dbeafe;
  background: linear-gradient(120deg, rgba(30, 64, 175, 0.34), rgba(230, 188, 101, 0.12));
  border-color: var(--border-gold);
}

.member-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.16s var(--ease), filter 0.16s var(--ease), border-color 0.16s;
  white-space: nowrap;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-gold {
  color: #f4f8ff;
  background: linear-gradient(125deg, #2563eb, #1e3a8a);
  border: 1px solid rgba(230, 188, 101, 0.55);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 4px 14px rgba(30, 64, 175, 0.35);
}
.btn-gold:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }

.btn-emerald {
  color: #f4f8ff;
  background: linear-gradient(125deg, #2563eb, #1e3a8a);
  border: 1px solid rgba(96, 165, 250, 0.48);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22), 0 4px 14px rgba(30, 64, 175, 0.35);
}
.btn-emerald:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }

.btn-outline {
  color: var(--emerald-bright);
  background: rgba(28, 33, 43, 0.82);
  border: 1px solid var(--border-gold);
}
.btn-outline:hover:not(:disabled) { border-color: var(--gold-light); color: #dbeafe; background: rgba(30, 64, 175, 0.22); }

.btn-danger {
  color: #fff;
  background: linear-gradient(120deg, #d94343, #9f2626);
  border: 1px solid rgba(255, 130, 130, 0.45);
}
.btn-ghost {
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-ghost:hover:not(:disabled) { color: var(--emerald-bright); border-color: var(--border-gold); }

.btn-sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { min-height: 27px; padding: 0 8px; font-size: 11.5px; border-radius: 6px; gap: 4px; }

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1b2029, #1f2b42);
  border: 1px solid var(--border-gold);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.credit-pill > span { min-width: 0; }
.credit-pill small { display: block; font-size: 9.5px; color: var(--text-muted); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 14ch; }
.credit-pill b { display: block; font-size: 13.5px; color: var(--emerald-bright); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Main Content Shell */
.main-shell {
  max-width: var(--container-w);
  width: 100%;
  margin: 0 auto;
  padding: 14px 18px 28px;
  min-height: calc(100svh - 160px);
  min-width: 0;
}

/* Breadcrumb */
.crumb-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.crumb-trail a:hover { color: var(--emerald-bright); }
.crumb-sep { opacity: 0.45; }

/* Showcase: Hero + Studio Strip */
.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.hero-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: linear-gradient(125deg, #182235 0%, #14171e 56%, #242118 100%);
  min-height: 215px;
  display: flex;
  align-items: stretch;
  min-width: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 233, 173, 0.16);
}
.hero-slide {
  display: none;
  width: 100%;
  min-width: 0;
  position: relative;
  padding: 20px 22px;
  align-items: center;
}
.hero-slide.active { display: flex; }
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 62%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--emerald-bright);
  background: rgba(30, 58, 138, 0.55);
  border: 1px solid var(--border-emerald);
  padding: 2px 9px;
  border-radius: 99px;
}
.hero-title {
  font-size: clamp(21px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-title span {
  display: block;
  background: linear-gradient(110deg, #dbeafe 10%, #60a5fa 60%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  max-width: 44ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 19, 25, 0.92) 0%, rgba(16, 19, 25, 0.65) 38%, rgba(16, 19, 25, 0.1) 66%, transparent 100%);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  z-index: 4;
  display: flex;
  gap: 5px;
}
.hero-dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 99px;
  background: transparent;
  position: relative;
}
.hero-dots button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%);
  transition: width 0.2s, background 0.2s;
}
.hero-dots button.active::after { width: 22px; background: var(--gold); }

/* Homepage payment + promo rails */
.home-pay {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 12px;
  padding: 7px;
  border-radius: var(--radius-md);
  background: #171c26;
  border: 1px solid var(--border-gold);
  min-width: 0;
}
.home-pay-cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 11px;
  color: #f4f8ff;
  background: linear-gradient(125deg, #2563eb, #1e3a8a);
  border: 1px solid var(--gold);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(30, 64, 175, 0.35);
  transition: filter 0.16s, transform 0.16s var(--ease);
}
.home-pay-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.home-pay-cta strong {
  display: block;
  font-size: 12.5px;
  color: #fff;
  line-height: 1.2;
}
.home-pay-cta small {
  display: block;
  font-size: 10px;
  color: #dbeafe;
  margin-top: 2px;
}
.home-pay-cta .ico { color: #fde047; flex-shrink: 0; }
.home-pay-track {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1px 2px 1px 0;
}
.home-pay-track::-webkit-scrollbar { display: none; }
.home-pay-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 62px;
  max-width: 76px;
  padding: 6px 6px 5px;
  border-radius: 11px;
  background: #141820;
  border: 1px solid var(--border-gold);
  color: inherit;
}
@media (min-width: 900px) {
  .home-pay-chip {
    flex: 1 1 0;
    min-width: 62px;
    max-width: none;
  }
}
.home-pay-chip:hover { border-color: var(--gold-light); background: #1a2130; }
.home-pay-chip .pay-mark { width: 32px; height: 32px; border-radius: 9px; }
.home-pay-chip small {
  font-size: 10px;
  line-height: 1.15;
  color: var(--text-muted);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-pay-more .pay-mark-more {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(230, 188, 101, 0.3), rgba(30, 64, 175, 0.38));
  border: 1px solid rgba(230, 188, 101, 0.4);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
}
.home-promo-block { margin-bottom: 14px; }
.home-promo-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.home-promo-rail .home-promo {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 68px;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #121722;
  border: 1.5px solid var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(253, 224, 71, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.48);
  transition: border-color 0.18s, transform 0.18s var(--ease), box-shadow 0.18s;
}
.home-promo-rail .home-promo:hover {
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(253, 224, 71, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.55);
}
.home-promo-rail .home-promo .promo-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  flex: none;
  aspect-ratio: auto;
  min-height: 0;
  z-index: 0;
}
.home-promo-rail .home-promo .promo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}
.home-promo-rail .home-promo:hover .promo-banner img { transform: scale(1.06); }
.home-promo-rail .home-promo .promo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 11, 20, 0.86) 0%, rgba(8, 11, 20, 0.34) 52%, rgba(8, 11, 20, 0.72) 100%);
  pointer-events: none;
}
.home-promo-rail .home-promo .promo-body {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 11px;
}
.home-promo-rail .home-promo h2 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.22;
  margin: 0;
  flex: 1;
  min-width: 0;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-promo-rail .home-promo .btn {
  align-self: center;
  flex-shrink: 0;
  min-height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  border-color: var(--gold-light);
}

/* Full-Width Digital Gold Jackpot Strip + Winner Ticker */
.jp-strip {
  position: relative;
  margin: 0 0 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1322;
  border: 1px solid var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(254, 240, 138, 0.28),
    0 8px 22px rgba(0, 0, 0, 0.5);
}
.jp-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #14213d 0%, #0b1120 100%);
  overflow: hidden;
}
.jp-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 36%, rgba(254, 240, 138, 0.16) 49%, rgba(255, 255, 255, 0.22) 50%, rgba(254, 240, 138, 0.14) 51%, transparent 64%);
  transform: translateX(-100%);
  animation: jp-shimmer 4.8s ease-in-out infinite;
  pointer-events: none;
}
.jp-stage::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #fde047 50%, transparent);
  opacity: 0.9;
  pointer-events: none;
}
@keyframes jp-shimmer {
  0%, 15% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
.jp-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.jp-side-left { align-items: flex-start; }
.jp-side-left small { font-size: 11px; color: #94a3b8; }
.jp-side-right { align-items: flex-end; }
.jp-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fecaca;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.jp-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(253, 224, 71, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(37, 99, 235, 0.38);
  white-space: nowrap;
  transition: filter 0.16s, transform 0.16s var(--ease);
}
.jp-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

.jp-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.jp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fde047;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.55);
  line-height: 1;
}
.jp-crown { color: #fbbf24; filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.65)); }

.jp-digits {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  user-select: none;
}
.jp-sym {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
  margin-right: 3px;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.55);
}
.jp-sep {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
  width: 7px;
  text-align: center;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}
.jp-cell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 36px;
  border-radius: 7px;
  background: linear-gradient(180deg, #0b1121 0%, #17233d 48%, #0a0f1d 52%, #111b31 100%);
  border: 1px solid rgba(251, 191, 36, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(254, 240, 138, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    0 3px 8px rgba(0, 0, 0, 0.55);
  font-size: 22px;
  font-weight: 800;
  color: #fef08a;
  text-shadow: 0 1px 2px #000;
}
.jp-cell::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.48);
  pointer-events: none;
}
.jp-cell.is-dec {
  width: 21px;
  height: 30px;
  font-size: 16px;
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.55), 0 1px 1px #000;
}

.jp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 80% 100% at 50% 30%, rgba(37, 99, 235, 0.28), transparent 72%),
    linear-gradient(180deg, #121c34 0%, #0b1120 100%);
  border: 1px solid rgba(251, 191, 36, 0.58);
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.3), 0 6px 18px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.jp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 36%, rgba(254, 240, 138, 0.14) 50%, transparent 64%);
  transform: translateX(-100%);
  animation: jp-shimmer 5.4s ease-in-out infinite;
  pointer-events: none;
}
.jp-digits-sm { gap: 2px; }
.jp-digits-sm .jp-sym { font-size: 14px; margin-right: 2px; }
.jp-digits-sm .jp-sep { font-size: 14px; width: 5px; }
.jp-digits-sm .jp-cell { width: 17px; height: 25px; font-size: 14px; border-radius: 5px; }
.jp-digits-sm .jp-cell.is-dec { width: 14px; height: 21px; font-size: 11.5px; }

.live-jp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
  animation: live-dot 1.2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.jp-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(9, 13, 24, 0.92);
  border-top: 1px solid rgba(251, 191, 36, 0.24);
  min-width: 0;
}
.jp-ticker-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #86efac;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.jp-ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.live-win-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.live-win-seq {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: live-marquee 46s linear infinite;
}
.jp-ticker:hover .live-win-seq { animation-play-state: paused; }
.live-win-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  color: #d1d5db;
}
.live-win-thumb {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: #0f131c;
}
.live-win-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.live-win-item .ico { color: #fbbf24; flex-shrink: 0; }
.live-win-item b { color: #38bdf8; font-weight: 600; }
.live-win-item em {
  color: #4ade80;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.live-win-game { color: #e5e7eb; }
@keyframes live-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.win-chip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 16px 6px 5px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 16, 0.92) 58%);
  color: #ffe9a8;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  pointer-events: none;
}
.win-chip .ico {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--gold);
  filter: drop-shadow(0 1px 1px #000);
}
.win-chip-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.win-chip-amt {
  margin-left: auto;
  font-style: normal;
  color: #86efac;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px #000;
  flex-shrink: 0;
}
.win-chip-pop { animation: win-chip-pop 0.45s ease; }
@keyframes win-chip-pop {
  0% { filter: brightness(1.6); }
  100% { filter: none; }
}
.game-thumb:has(.win-chip) .play-tag { bottom: 24px; }

.game-live-panel {
  display: grid;
  grid-template-columns: minmax(215px, 248px) minmax(0, 1fr);
  gap: 10px;
  margin: 10px 0 14px;
  align-items: start;
}
.game-live-jp { min-width: 0; }
.win-board {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  overflow: hidden;
}
.win-board th,
.win-board td {
  padding: 5px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(230, 188, 101, 0.12);
}
.win-board th {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(230, 188, 101, 0.08);
}
.win-board td:last-child,
.win-board th:last-child {
  text-align: right;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.win-board tbody tr:last-child td { border-bottom: 0; }
.win-board tbody tr:nth-child(1) td:first-child { color: var(--emerald-bright); }
.win-board td:first-child,
.win-chip-name,
.live-win-item b { font-variant-numeric: tabular-nums; }

.win-toast-stack {
  position: fixed;
  bottom: 16px;
  right: 12px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  max-width: min(264px, calc(100vw - 16px));
  pointer-events: none;
  transition: opacity 0.25s ease;
}
body:has(#member-overlay:not([hidden])) .win-toast-stack {
  opacity: 0;
  pointer-events: none;
}
.win-toast {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 10px 5px 5px;
  border-radius: 11px;
  background: rgba(10, 14, 24, 0.54);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(251, 191, 36, 0.42);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
  color: var(--text-main);
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(18px, 0, 0) scale(0.96);
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease), border-color 0.2s, background 0.2s;
}
.win-toast:hover { border-color: #fde047; background: rgba(13, 18, 29, 0.86); }
.win-toast.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.win-toast.is-leaving {
  opacity: 0;
  max-height: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: -5px;
  border-width: 0;
  transform: translate3d(18px, -4px, 0) scale(0.94);
  transition: opacity 0.65s ease, transform 0.65s ease, max-height 0.55s ease 0.15s, padding 0.55s ease 0.15s, margin 0.55s ease 0.15s;
  pointer-events: none;
}
.win-toast-big {
  border-color: rgba(253, 224, 71, 0.72);
  background: linear-gradient(125deg, rgba(30, 38, 56, 0.72), rgba(10, 14, 24, 0.62) 68%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
}
.win-toast-thumb {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #0f131c;
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fbbf24;
}
.win-toast-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.win-toast-body {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}
.win-toast-top {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.win-toast-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  flex-shrink: 0;
}
.win-toast-big .win-toast-dot {
  background: #facc15;
  box-shadow: 0 0 8px #facc15;
}
.win-toast-phone {
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}
.win-toast-tag { display: none; }
.win-toast-game {
  font-size: 10px;
  color: #cbd5e1;
  max-width: 68px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-toast-amt {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 800;
  color: #4ade80;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  flex-shrink: 0;
}
.win-toast-big .win-toast-amt {
  color: #fde047;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.45);
}
.win-toast-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #fbbf24, #4ade80);
  transform-origin: left center;
  animation: win-toast-bar var(--win-life, 7800ms) linear forwards;
}
@keyframes win-toast-bar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 1023px) {
  .win-toast-stack {
    bottom: calc(68px + env(safe-area-inset-bottom));
    right: 8px;
    gap: 4px;
    max-width: calc(100vw - 16px);
  }
  .win-toast { padding: 3px 8px 4px 4px; gap: 6px; border-radius: 10px; }
  .win-toast-thumb { width: 26px; height: 26px; border-radius: 6px; }
  .win-toast-game { display: none; }
  .win-toast-phone { font-size: 10.5px; }
  .win-toast-amt { font-size: 11px; }
  .win-toast.is-leaving { margin-top: -4px; }
}

/* Studio Strip */
.studio-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-content: stretch;
}
.studio-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--border-gold);
  transition: transform 0.18s var(--ease), border-color 0.18s;
  min-width: 0;
}
.studio-tile:hover { transform: translateY(-2px); border-color: var(--gold); }
.studio-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #141820;
  border: 1px solid var(--border-gold);
  padding: 4px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.studio-thumb img { width: 100%; height: 100%; object-fit: contain; }
.studio-meta { min-width: 0; flex: 1; }
.studio-meta strong { display: block; font-size: 13.5px; color: var(--emerald-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-meta small { display: block; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Category Rail */
.cat-rail {
  display: flex;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 191, 111, 0.25) transparent;
  padding-bottom: 4px;
  margin-bottom: 16px;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 39px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-sub);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s;
}
.cat-pill svg { color: var(--emerald-bright); }
.cat-pill:hover { border-color: var(--gold); color: var(--emerald-bright); }
.cat-pill.active {
  color: #f4f8ff;
  background: linear-gradient(125deg, #2563eb, #1e3a8a);
  border-color: var(--gold);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(30, 64, 175, 0.35);
  font-weight: 600;
}
.cat-pill.active svg { color: #dbeafe; }

/* Section Blocks */
.lobby-block { margin-bottom: 20px; min-width: 0; max-width: 100%; }
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.block-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.block-accent {
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--emerald-bright), var(--gold));
  flex-shrink: 0;
}
.provider-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, #212836, #141820);
  border: 1px solid rgba(230, 188, 101, 0.4);
  box-shadow: inset 0 1px rgba(255, 233, 173, 0.14), 0 4px 10px rgba(0, 0, 0, 0.35);
  padding: 4px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.provider-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.provider-head-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-width: 0;
}
.provider-count-pill {
  font-size: 11px;
  color: var(--emerald-bright);
  background: rgba(30, 64, 175, 0.22);
  border: 1px solid var(--border-emerald);
  padding: 1px 7px;
  border-radius: 99px;
  white-space: nowrap;
}
.provider-mini-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #141820;
  border: 1px solid var(--border-gold);
  padding: 3px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.provider-mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.live-brand-logo {
  height: 26px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  object-position: left center;
  margin: 3px 0 2px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
}
.block-head h2, .block-head h1 {
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(110deg, #dbeafe, #60a5fa 65%, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.block-sub { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--emerald-bright);
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(30, 64, 175, 0.14);
  border: 1px solid var(--border-gold);
  white-space: nowrap;
}
.more-link:hover { border-color: var(--gold); color: #dbeafe; }

/* Grids */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Game Card */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(155deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--border-gold);
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5), 0 0 16px rgba(30, 64, 175, 0.32);
}
.game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 35%, #242c3b, #14171e);
  overflow: hidden;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.game-card:hover .game-thumb img { transform: scale(1.05); }
.thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--emerald-bright);
  font-size: 24px;
  font-weight: 600;
}
.rtp-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  background: none;
  border: 0;
  color: #ffe9a8;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  padding: 0;
  text-shadow: 0 0 4px #1a1408, 0 1px 2px #000, 0 0 10px rgba(230, 188, 101, 0.85);
}
.play-tag {
  position: absolute;
  left: 5px;
  bottom: 5px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: 0;
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  padding: 0;
  text-shadow: 0 0 4px #052e16, 0 1px 2px #000, 0 0 10px rgba(74, 222, 128, 0.9);
  animation: tag-pulse-live 1.15s ease-in-out infinite;
}
.play-tag .ico {
  width: 12px;
  height: 12px;
  filter: drop-shadow(0 1px 1px #000) drop-shadow(0 0 4px rgba(74, 222, 128, 0.85));
}
@keyframes tag-pulse-live {
  0%, 100% { color: #86efac; text-shadow: 0 0 4px #052e16, 0 1px 2px #000, 0 0 8px rgba(74, 222, 128, 0.55); }
  50% { color: #bbf7d0; text-shadow: 0 0 6px #052e16, 0 1px 2px #000, 0 0 14px rgba(74, 222, 128, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .play-tag { animation: none; }
}
.fav-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(17, 20, 27, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-sub);
  display: grid;
  place-items: center;
}
.fav-toggle.active, .fav-toggle:hover { color: #ff6b81; border-color: #ff6b81; }
.fav-toggle.active svg { fill: currentColor; }

.game-body {
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.game-provider-label, .game-name {
  display: flex;
  align-items: center;
  min-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-provider-label { font-size: 12px; color: var(--emerald-bright); gap: 5px; }
.game-provider-label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-prov-ico {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
  background: rgba(10, 14, 24, 0.78);
  border: 1px solid rgba(245, 185, 50, 0.35);
  padding: 1px;
  flex-shrink: 0;
  display: block;
}
.game-name { font-size: 12.5px; font-weight: 400; color: var(--text-main); }
.game-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  min-width: 0;
}
.game-play-btn {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 6px;
  border-radius: 7px;
  background: linear-gradient(120deg, rgba(23, 45, 108, 0.72), rgba(30, 64, 175, 0.35));
  border: 1px solid rgba(230, 188, 101, 0.45);
  color: #93c5fd;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.game-card:hover .game-play-btn {
  background: linear-gradient(125deg, #2563eb, #1e3a8a);
  border-color: var(--gold);
  color: #dbeafe;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.game-info-link {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.game-info-link:hover { color: var(--emerald-bright); border-color: var(--gold); }

/* Provider Card */
.provider-card {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(140deg, #212733, #151921);
  border: 1px solid var(--border-gold);
  transition: transform 0.2s var(--ease), border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.provider-card:hover { transform: translateY(-3px); border-color: var(--gold-light); }
.provider-card.is-current { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(230, 191, 111, 0.35); }

.home-cat-continue {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(230, 191, 111, 0.18);
}
.home-cat-continue .block-head { margin-bottom: 8px; }
.cat-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
@media (min-width: 720px) {
  .cat-entry-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
}
.cat-entry {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1b2232 0%, #131824 100%);
  border: 1px solid var(--border-gold);
  text-align: left;
  transition: transform 0.16s var(--ease), border-color 0.16s, box-shadow 0.16s;
}
.cat-entry:hover {
  transform: translateY(-1px);
  border-color: #fde047;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.cat-entry.is-current {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #fde047;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 18px rgba(37, 99, 235, 0.42);
}
.cat-entry-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(37, 99, 235, 0.22));
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fde047;
}
.cat-entry-ico .ico {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}
.cat-entry.is-current .cat-entry-ico {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  border-color: #fef08a;
  color: #1c0a00;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}
.cat-entry-copy {
  min-width: 0;
  flex: 1;
}
.cat-entry-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-entry-copy small {
  display: block;
  font-size: 10.5px;
  line-height: 1.2;
  margin-top: 2px;
  color: #fbbf24;
  font-weight: 600;
}
.cat-entry.is-current .cat-entry-copy small { color: #fef08a; }
.cat-entry-arrow {
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.16s var(--ease), color 0.16s;
}
.cat-entry:hover .cat-entry-arrow { color: #fde047; transform: translateX(2px); }
.cat-entry.is-current .cat-entry-arrow { color: #fde047; }
.provider-visual {
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 40%, #242e42, #13171f);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.provider-visual img { width: 100%; height: 100%; object-fit: cover; }
.provider-foot {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.provider-foot strong { font-size: 13.5px; color: var(--emerald-bright); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-foot small { font-size: 11px; color: var(--text-muted); }

/* Live Casino Studio Card */
.live-card {
  position: relative;
  min-width: 0;
  min-height: 148px;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 14px;
  background: radial-gradient(circle at 82% 30%, rgba(30, 64, 175, 0.36), transparent 62%), linear-gradient(130deg, #1d2330, #13171e);
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.live-card:hover { transform: translateY(-3px); border-color: var(--gold-light); }
.live-portrait {
  position: absolute;
  inset: 0 -6% -6% 38%;
  pointer-events: none;
  opacity: 0.92;
}
.live-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: bottom right; }
.live-info { position: relative; z-index: 2; max-width: 65%; }
.live-tag { font-size: 10px; letter-spacing: 1px; color: var(--emerald-bright); font-weight: 600; }
.live-info h3 { font-size: 16px; color: #dbeafe; margin-top: 3px; }
.live-enter {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--emerald-bright);
  margin-top: 10px;
}

/* Filter & Search Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
}
.search-field {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-gold);
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 13.5px;
}
.filter-select {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--bg-input);
  border: 1px solid var(--border-gold);
  font-size: 13px;
  text-overflow: ellipsis;
}
.sort-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}
.sort-pills [data-cat-sort] {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  height: 32px;
  padding: 0 4px;
  justify-content: center;
  gap: 3px;
  font-size: 11.5px;
}
.sort-pills [data-cat-sort] span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 720px) {
  .search-field { flex: 1 1 240px; }
  .sort-pills { flex: 1 1 320px; width: auto; max-width: 420px; }
}
.provider-chip-rail {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 191, 111, 0.25) transparent;
  padding-bottom: 5px;
  margin-bottom: 10px;
}
.prov-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 99px;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}
.prov-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}
.prov-chip small {
  font-size: 10px;
  color: var(--emerald-bright);
  background: rgba(30, 64, 175, 0.22);
  padding: 0 5px;
  border-radius: 99px;
}
.prov-chip:hover { border-color: var(--gold); color: var(--emerald-bright); }
.prov-chip.active {
  background: linear-gradient(120deg, rgba(30, 64, 175, 0.38), rgba(230, 188, 101, 0.14));
  border-color: var(--gold-light);
  color: #dbeafe;
  font-weight: 600;
}

/* Home All-Providers Directory (Grouped & Fast Render) */
.all-cat-directory {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cat-studio-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(28, 33, 43, 0.9), rgba(19, 22, 29, 0.95));
  border: 1px solid rgba(230, 188, 101, 0.2);
  min-width: 0;
}
.cat-studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(230, 191, 111, 0.12);
}
.cat-studio-head h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--emerald-bright);
}
.compact-studio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.compact-studio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #171b22;
  border: 1px solid rgba(230, 188, 101, 0.18);
  min-width: 0;
  transition: border-color 0.16s, background 0.16s, transform 0.16s var(--ease);
}
.compact-studio-card[hidden] { display: none; }
.compact-studio-card:hover {
  border-color: var(--gold);
  background: rgba(30, 64, 175, 0.2);
  transform: translateY(-1px);
}
.cs-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #101318;
  border: 1px solid var(--border-gold);
  padding: 3px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.cs-logo img { width: 100%; height: 100%; object-fit: contain; }
.cs-logo b { font-size: 10px; color: var(--emerald-bright); }
.cs-info { min-width: 0; flex: 1; }
.cs-info strong {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-info small {
  display: block;
  font-size: 9.5px;
  color: var(--emerald-bright);
  line-height: 1.1;
}
.cat-expand-row {
  margin-top: 10px;
  text-align: center;
}

/* Page Summary / Rich Content Panel */
.page-summary {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(28, 33, 43, 0.92), rgba(18, 22, 29, 0.96));
  border: 1px solid var(--border-gold);
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.75;
}
.page-summary h2 { color: var(--emerald-bright); font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.page-summary h3 { color: #93c5fd; font-size: 14.5px; font-weight: 600; margin: 14px 0 6px; }
.page-summary p + p, .page-summary ul + p { margin-top: 9px; }
.page-summary p + h2, .page-summary ul + h2 { margin-top: 16px; }
.page-summary ul { margin: 8px 0 0; padding-left: 20px; }
.page-summary li + li { margin-top: 5px; }
.page-summary strong, .page-summary b { color: #93c5fd; font-weight: 600; }
.page-summary a { color: var(--emerald-bright); text-decoration: underline; text-underline-offset: 3px; }
.page-summary a:hover { color: #dbeafe; }

/* Game Detail Page */
.game-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--border-gold);
  margin-bottom: 20px;
}
.game-detail-poster {
  max-width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: #141820;
}
.game-detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.game-meta-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.meta-chip {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(30, 64, 175, 0.22);
  border: 1px solid var(--border-emerald);
  color: var(--text-sub);
}
.meta-chip b { color: #dbeafe; }

/* Promotions & Articles Grid */
.promo-grid, .article-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}
.promo-card, .article-card {
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
}
.promo-banner { background: #141820; overflow: hidden; }
.promo-banner img { width: 100%; height: auto; display: block; }
.article-cover { aspect-ratio: 16 / 8; background: #141820; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-body, .article-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.promo-body h2, .article-body h2 { font-size: 15.5px; color: var(--emerald-bright); }
.promo-desc, .article-excerpt { font-size: 12.5px; color: var(--text-sub); flex: 1; }
.home-article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.home-article-card {
  border-radius: 10px;
  transition: border-color 0.16s, transform 0.16s var(--ease);
}
.home-article-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-1px);
}
.home-article-card .article-cover {
  aspect-ratio: 16 / 10;
}
.home-article-card .article-body {
  padding: 6px 7px 7px;
  gap: 3px;
}
.home-article-card h2 {
  font-size: 11px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-article-card .article-excerpt { display: none; }
.home-article-read {
  display: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-light);
}
@media (min-width: 720px) {
  .home-article-grid { gap: 10px; }
  .home-article-card {
    flex-direction: row;
    align-items: stretch;
    height: 82px;
  }
  .home-article-card .article-cover {
    flex: 0 0 116px;
    width: 116px;
    height: 100%;
    aspect-ratio: auto;
  }
  .home-article-card .article-body {
    padding: 8px 10px;
    justify-content: space-between;
    gap: 4px;
  }
  .home-article-card h2 { font-size: 12.5px; line-height: 1.3; }
  .home-article-read { display: inline-block; }
}
#category-showcase-root .cat-provider-group:nth-child(n+2),
.home-cat-continue,
.page-summary {
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}

/* Unified DataTable (Member & Admin) */
.table-panel {
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  overflow: hidden;
}
.bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.26), rgba(230, 188, 101, 0.12));
  border-bottom: 1px solid var(--border-gold);
  font-size: 12.5px;
}
.bulk-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.data-grid-wrap { width: 100%; overflow-x: auto; }
.data-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}
.data-grid th {
  background: #151921;
  color: var(--emerald-bright);
  font-weight: 600;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-gold);
  white-space: nowrap;
}
.data-grid td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(230, 188, 101, 0.11);
  vertical-align: middle;
  color: var(--text-sub);
}
.data-grid tbody tr:hover { background: rgba(30, 64, 175, 0.12); }
.data-grid tbody tr.row-selected { background: rgba(230, 188, 101, 0.11); }
.col-check { width: 34px; text-align: center; }
.data-grid input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--emerald); cursor: pointer; }
.row-actions { display: flex; flex-wrap: nowrap; gap: 5px; align-items: center; }
.row-thumb { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; background: #141820; border: 1px solid rgba(230, 188, 101, 0.25); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.status-ok { background: rgba(50, 213, 150, 0.16); color: #53f0b5; border: 1px solid rgba(50, 213, 150, 0.38); }
.status-warn { background: rgba(30, 64, 175, 0.22); color: var(--emerald-bright); border: 1px solid rgba(230, 188, 101, 0.45); }
.status-off { background: rgba(229, 83, 83, 0.15); color: #ff8e8e; border: 1px solid rgba(229, 83, 83, 0.35); }

/* Member Overlay Modal */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.overlay-backdrop[hidden] { display: none; }
body.is-member-page { overflow: hidden; }
body.is-member-page .site-footer { display: none; }
.member-stage { min-height: 28vh; }
.member-stage-copy { display: none; }
.overlay-sheet {
  width: min(100%, 880px);
  max-height: calc(100dvh - 28px);
  background: linear-gradient(155deg, #212733, #151921);
  border: 1px solid var(--border-gold-strong);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.overlay-sheet.sheet-narrow { width: min(100%, 430px); }
.overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #171b23;
  border-bottom: 1px solid var(--border-gold);
  flex-shrink: 0;
}
.overlay-head h2 { font-size: 17px; color: var(--emerald-bright); display: flex; align-items: center; gap: 8px; }
.overlay-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 8px 14px;
  background: #141820;
  border-bottom: 1px solid rgba(230, 188, 101, 0.16);
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 188, 101, 0.25) transparent;
  flex-shrink: 0;
}
.overlay-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--text-sub);
  border: 1px solid transparent;
  flex-shrink: 0;
}
.overlay-nav a.active {
  background: linear-gradient(120deg, #2563eb, #1e3a8a);
  color: #fff;
  border-color: var(--border-emerald);
}
.overlay-body {
  padding: 14px 16px 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Forms */
.form-grid { display: grid; gap: 11px; }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--bg-input);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  font-size: 14px;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-light); outline: none; }

/* Wallet & Member Cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 11px;
}
.stat-box {
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(22, 26, 34, 0.9);
  border: 1px solid var(--border-gold);
}
.stat-box small { display: block; font-size: 10.5px; color: var(--text-muted); }
.stat-box strong { display: block; font-size: 15.5px; color: var(--emerald-bright); margin-top: 1px; font-variant-numeric: tabular-nums; }

.channel-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.channel-btn {
  padding: 10px;
  border-radius: 10px;
  background: #171b23;
  border: 1px solid var(--border-gold);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.channel-btn.active {
  background: linear-gradient(125deg, rgba(30, 64, 175, 0.34), rgba(230, 188, 101, 0.14));
  border-color: var(--gold-light);
  color: #dbeafe;
}

.pay-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.pay-logo { display: block; flex-shrink: 0; }
.pay-mark-usdt,
.pay-mark-truewallet,
.pay-mark-promptpay,
.pay-mark-banklogo { background: transparent; border-radius: 8px; }
.pay-mark-banklogo .pay-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pay-mark-bank,
.pay-mark-qrcode,
.pay-mark-coins,
.pay-mark-upload {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.35), rgba(230, 188, 101, 0.16));
  border: 1px solid var(--border-gold);
  color: var(--emerald-bright);
}
.channel-btn .pay-mark { width: 26px; height: 26px; }

.pay-svc-list {
  display: grid;
  gap: 6px;
}
.pay-svc {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  min-height: 48px;
  border-radius: 10px;
  background: #171b23;
  border: 1px solid var(--border-gold);
  color: inherit;
}
.pay-svc.is-on {
  border-color: var(--gold-light);
  background: linear-gradient(125deg, rgba(30, 64, 175, 0.34), rgba(38, 161, 123, 0.14));
}
.pay-svc-txt { min-width: 0; flex: 1; }
.pay-svc-txt strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-main);
  line-height: 1.25;
}
.pay-svc-txt small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.pay-svc-banks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 220px;
  overflow: auto;
}
.pay-svc-banks .pay-svc { min-height: 40px; padding: 6px 8px; }
.pay-svc-banks .pay-svc-txt strong { font-size: 12px; font-weight: 400; }

.crypto-net {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.crypto-net .pay-svc { min-height: 42px; padding: 7px 8px; }
.crypto-net .pay-svc-txt strong { font-size: 12.5px; }
.crypto-addr-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.crypto-addr-row input {
  flex: 1;
  min-width: 0;
  width: auto;
}
.crypto-addr-row .btn {
  flex-shrink: 0;
  min-height: 40px;
}
.crypto-rate {
  margin-top: 6px;
  font-size: 12px;
  color: var(--emerald-bright);
  font-variant-numeric: tabular-nums;
}
.crypto-rate[hidden] { display: none; }
.crypto-result { margin-top: 12px; }
.pay-result {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(22, 26, 34, 0.92);
  border: 1px solid var(--border-gold);
}
.pay-result.is-ok { border-color: var(--emerald-bright); }
.crypto-pay { text-align: left; }
.btn .pay-mark { width: 18px; height: 18px; border-radius: 4px; }
.crypto-pay .crypto-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 8px 0 10px;
  font-size: 12.5px;
}
.crypto-pay .crypto-meta small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 1px;
}
.crypto-pay .crypto-dest {
  display: block;
  word-break: break-all;
  font-size: 12.5px;
  color: var(--gold-light);
  line-height: 1.35;
  margin: 4px 0 8px;
}
.crypto-pay .crypto-qr {
  display: block;
  max-width: 180px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}
.crypto-pay .crypto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 420px) {
  .crypto-addr-row { flex-wrap: wrap; }
  .crypto-addr-row .btn { width: 100%; }
}

.row-with-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.field label.row-with-mark,
.stat-box strong.row-with-mark {
  display: flex;
}
.row-with-mark .pay-mark { width: 22px; height: 22px; border-radius: 6px; }

.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}
.code-chip .pay-mark { width: 16px; height: 16px; border-radius: 4px; }
.code-chip .pay-logo { width: 16px; height: 16px; }

.quick-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 8px;
}
.quick-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #171b23;
  border: 1px solid rgba(230, 188, 101, 0.18);
  font-size: 12.5px;
  transition: border-color 0.16s, background 0.16s, transform 0.16s var(--ease);
  min-width: 0;
}
.quick-menu-item:hover {
  border-color: var(--gold);
  background: rgba(30, 64, 175, 0.2);
  transform: translateY(-1px);
}
.qm-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.32), rgba(230, 188, 101, 0.14));
  border: 1px solid var(--border-gold);
  color: var(--emerald-bright);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.qm-text { min-width: 0; flex: 1; }
.qm-text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qm-text small {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qm-arrow { color: rgba(96, 165, 250, 0.55); flex-shrink: 0; }
.quick-menu-item:hover .qm-arrow { color: var(--emerald-bright); }

.menu-groups-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
}
.menu-group-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(20, 24, 32, 0.78);
  border: 1px solid rgba(230, 188, 101, 0.18);
  min-width: 0;
}
.menu-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(230, 188, 101, 0.12);
  min-width: 0;
}
.menu-group-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(30, 64, 175, 0.28);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-bright);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.menu-group-head h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-bright);
  letter-spacing: 0.2px;
}
.menu-group-head span {
  font-size: 11px;
  color: var(--text-muted);
}
.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}
.account-id { min-width: 0; }
.account-rank {
  display: block;
  font-size: 11px;
  color: var(--emerald-bright);
  line-height: 1.2;
}
.account-id strong {
  display: block;
  font-size: 16px;
  color: var(--gold-light);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-bank {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-bank .pay-mark { width: 16px; height: 16px; border-radius: 4px; }
.account-tools { display: flex; gap: 6px; flex-shrink: 0; }
.account-cta-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.account-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

/* Toast & Confirm Dialog */
.toast-stack {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(390px, calc(100vw - 24px));
  pointer-events: none;
}
.overlay-sheet > .toast-stack,
.toast-stack.toast-in-sheet {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  margin: 0;
  padding: 10px 16px 0;
  z-index: 2;
}
.toast-item {
  pointer-events: auto;
  padding: 11px 14px;
  border-radius: 11px;
  background: #1a1f28;
  border: 1px solid var(--border-gold-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.toast-item.toast-error { border-color: rgba(229, 83, 83, 0.7); color: #ffd7d7; }
.toast-item.toast-success { border-color: rgba(58, 224, 163, 0.7); color: #dcfff2; }

.form-feedback {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.45;
}
.form-feedback[hidden] { display: none; }
.form-feedback.is-error {
  background: rgba(229, 83, 83, 0.12);
  border: 1px solid rgba(229, 83, 83, 0.65);
  color: #ffd2d2;
}
.form-feedback.is-ok {
  background: rgba(54, 211, 153, 0.1);
  border: 1px solid rgba(54, 211, 153, 0.55);
  color: #dcfff2;
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 12, 16, 0.8);
  display: grid;
  place-items: center;
  padding: 16px;
}
.confirm-box {
  width: min(100%, 380px);
  padding: 18px;
  border-radius: 15px;
  background: #1b2029;
  border: 1px solid var(--border-gold-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
}
.confirm-box h3 { font-size: 16px; color: var(--emerald-bright); margin-bottom: 6px; }
.confirm-box p { font-size: 13px; color: var(--text-sub); margin-bottom: 14px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Footer & Mobile Bottom Nav */
.site-foot {
  border-top: 1px solid var(--border-gold);
  background: #0e1014;
  padding: 20px 18px 92px;
  margin-top: 24px;
}
.foot-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 12px; }
.foot-links a:hover { color: var(--emerald-bright); }

.mobile-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: linear-gradient(180deg, #1b2029, #121419);
  border-top: 1px solid var(--border-gold);
  padding: 5px 6px max(5px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.55);
}
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 50px;
  font-size: 10.5px;
  color: var(--text-sub);
  border-radius: 10px;
}
.dock-item.active { color: var(--emerald-bright); }
.dock-item.dock-featured {
  background: linear-gradient(125deg, #2563eb, #1e3a8a);
  color: #f4f8ff;
  border: 1px solid rgba(96, 165, 250, 0.48);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(30, 64, 175, 0.4);
  font-weight: 600;
  margin: 0 3px;
}

.empty-box {
  padding: 28px 16px;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(24, 28, 36, 0.78);
  border: 1px dashed rgba(230, 188, 101, 0.28);
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive Breakpoints */
@media (min-width: 720px) {
  .stat-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu-groups-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .menu-groups-stack > .menu-group-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .compact-studio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
  .provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .promo-grid, .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-detail-card { grid-template-columns: 240px minmax(0, 1fr); align-items: center; }
}

@media (min-width: 1024px) {
  .top-nav { display: flex; }
  .mobile-dock { display: none; }
  .site-foot { padding-bottom: 24px; }
  .showcase-row { grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); }
  .hero-stage { min-height: 248px; }
  .compact-studio-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
  .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .provider-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .home-promo-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .jp-stage { grid-template-columns: 1fr; padding: 10px 12px; gap: 0; }
  .jp-side { display: none; }
  .game-live-panel { grid-template-columns: 1fr; }
  #category-showcase-root:not([data-filtered="1"]) .cat-provider-group .game-grid > .game-card:nth-child(n+4) {
    display: none;
  }
}

@media (max-width: 599px) {
  :root { --header-h: 54px; }
  .container, .site-bar-inner, .main-shell { padding-left: 10px; padding-right: 10px; }
  .site-bar-inner { gap: 6px; }
  .brand-img { height: clamp(25px, 7.2vw, 32px); max-width: 118px; }
  .member-actions { gap: 5px; min-width: 0; }
  .member-actions .btn { min-height: 32px; padding: 0 9px; font-size: 11.5px; gap: 4px; border-radius: 8px; }
  .credit-pill { height: 32px; padding: 0 8px; gap: 5px; max-width: 124px; border-radius: 8px; }
  .credit-pill > svg { display: none; }
  .credit-pill small { font-size: 9px; max-width: 11ch; }
  .credit-pill b { font-size: 12px; }
  .btn { min-height: 34px; padding: 0 11px; font-size: 12px; }
  .hero-stage { min-height: 185px; }
  .hero-slide { padding: 14px 14px; }
  .hero-copy { max-width: 76%; gap: 5px; }
  .hero-kicker { font-size: 9.5px; padding: 2px 7px; }
  .hero-title { font-size: clamp(18px, 5.2vw, 24px); }
  .hero-desc { display: none; }
  .home-pay-cta small { display: none; }
  .home-pay-cta { padding: 8px 10px; }
  .home-pay-cta strong { font-size: 12px; }
  .home-promo-rail {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 7px;
    scroll-snap-type: x proximity;
  }
  .home-promo-rail::-webkit-scrollbar { display: none; }
  .home-promo-rail .home-promo {
    flex: 0 0 212px;
    height: 62px;
    scroll-snap-align: start;
  }
  .home-promo-rail .home-promo .promo-body { padding: 6px 9px; gap: 6px; }
  .home-promo-rail .home-promo h2 { font-size: 12.5px; }
  .home-promo-rail .home-promo .btn { min-height: 26px; padding: 0 9px; font-size: 11px; }
  .jp-stage { grid-template-columns: 1fr; padding: 9px 10px; gap: 0; }
  .jp-side { display: none; }
  .jp-kicker { font-size: 10px; letter-spacing: 0.12em; }
  .jp-digits { gap: 2px; }
  .jp-sym { font-size: 16px; margin-right: 2px; }
  .jp-sep { font-size: 16px; width: 5px; }
  .jp-cell { width: 21px; height: 30px; font-size: 17px; border-radius: 6px; }
  .jp-cell.is-dec { width: 17px; height: 25px; font-size: 13px; }
  .jp-ticker { padding: 5px 8px; gap: 7px; }
  .jp-ticker-label { font-size: 9.5px; padding: 2px 6px; }
  .live-win-item { font-size: 11px; gap: 5px; }
  .game-live-panel { grid-template-columns: 1fr; }
  .game-thumb:has(.win-chip) .play-tag { bottom: 22px; }
  .studio-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .studio-tile { padding: 8px 9px; gap: 8px; }
  .studio-thumb { width: 34px; height: 34px; }
  .studio-meta strong { font-size: 12.5px; }
  .cat-pill { height: 35px; padding: 0 11px; font-size: 12px; gap: 5px; }
  .block-head { gap: 6px; }
  .block-head h2, .block-head h1 { font-size: 15.5px; }
  .block-sub { display: none; }
  .provider-logo-box { width: 34px; height: 34px; border-radius: 8px; padding: 3px; }
  .provider-count-pill { font-size: 10px; padding: 1px 6px; }
  .live-brand-logo { height: 21px; max-width: 78px; }
  .more-link { font-size: 11.5px; padding: 3px 8px; }
  .game-grid { gap: 7px; }
  .game-body { padding: 6px 7px; }
  .game-name { font-size: 12px; }
  .game-provider-label { font-size: 12px; }
  .game-play-btn { height: 25px; font-size: 11px; padding: 0 4px; }
  .game-info-link { display: none; }
  .fav-toggle { width: 24px; height: 24px; top: 4px; right: 4px; }
  .rtp-tag { font-size: 9px; padding: 0; top: 4px; left: 4px; }
  .play-tag { font-size: 9px; padding: 0; left: 4px; bottom: 4px; }
  .game-thumb:has(.win-chip) .play-tag { bottom: 22px; }
  .win-chip { font-size: 9px; padding: 14px 5px 4px; }
  .live-grid, .provider-grid { gap: 8px; }
  .live-card { min-height: 124px; padding: 10px; }
  .live-info h3 { font-size: 14px; }
  .overlay-backdrop { padding: 8px; }
  .overlay-head { padding: 10px 12px; }
  .overlay-head h2 { font-size: 15px; }
  .overlay-nav { padding: 6px 10px; }
  .overlay-nav a { min-height: 28px; padding: 0 10px; font-size: 12px; }
  .overlay-body { padding: 10px 12px 12px; overflow-x: hidden; }
  .account-hero { margin-bottom: 8px; }
  .account-id strong { font-size: 15px; }
  .menu-group-head span { display: none; }
  .quick-menu-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 374px) {
  .brand-img { max-width: 98px; }
  .member-actions .btn svg { display: none; }
  .member-actions .btn { padding: 0 7px; font-size: 11px; }
  .credit-pill { max-width: 104px; padding: 0 6px; }
}
