:root {
  --bg: #060911;
  --bg-soft: #0a101d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2ff;
  --muted: #94a3bd;
  --mint: #6ef3c5;
  --mint-deep: #2dcaa0;
  --violet: #a78bfa;
  --gold: #ffd166;
  --danger: #fb7185;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font: "Prompt", "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

::selection {
  background: rgba(110, 243, 197, 0.3);
  color: #ffffff;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.blob-one {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(110, 243, 197, 0.28), transparent 70%);
}

.blob-two {
  width: 620px;
  height: 620px;
  top: 20%;
  right: -260px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.22), transparent 70%);
}

.blob-three {
  width: 480px;
  height: 480px;
  bottom: -220px;
  left: 30%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 70%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 9, 17, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 76px;
}

.lobby-menu-toggle {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lobby-menu-hit-area {
  position: absolute;
  inset: -8px;
  display: block;
}

.lobby-menu-toggle:hover {
  border-color: rgba(110, 243, 197, 0.4);
  background: rgba(110, 243, 197, 0.08);
}

html.is-referral-landing .lobby-menu-toggle {
  display: none;
}

.lobby-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.26s;
}

.lobby-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}

.lobby-drawer:focus,
.lobby-drawer:focus-visible {
  outline: none;
}

.lobby-drawer-backdrop {
  position: absolute;
  inset: 0;
  touch-action: none;
  opacity: 0;
  pointer-events: none;
  background: rgba(2, 5, 10, 0.82);
  transition: opacity 0.2s ease;
}

.lobby-drawer.is-open .lobby-drawer-backdrop {
  pointer-events: auto;
  opacity: 1;
}

.lobby-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(360px, 88vw);
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(13, 20, 33, 0.995), rgba(6, 10, 18, 0.998));
  box-shadow: 30px 0 80px -30px #000;
  transform: translateX(-102%);
  transition: transform 0.26s cubic-bezier(0.22, 0.8, 0.28, 1);
}

.lobby-drawer.is-animating .lobby-drawer-panel {
  will-change: transform;
}

.lobby-drawer.is-open .lobby-drawer-panel {
  pointer-events: auto;
  transform: none;
}

html.is-ios .site-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(6, 9, 17, 0.94);
}

html.is-ios .ambient-blob {
  filter: none;
  opacity: 0.4;
}

html.is-ios .ambient-grid {
  display: none;
}

html.is-ios .lobby-drawer,
html.is-ios .lobby-drawer-panel,
html.is-ios .lobby-drawer-backdrop {
  transition: none;
}

html.is-ios .lobby-drawer {
  visibility: visible;
}

html.is-ios .lobby-drawer-backdrop {
  background: #02050a;
}

html.is-ios .lobby-drawer-panel {
  visibility: visible;
  box-shadow: none;
  contain: layout paint;
  will-change: transform;
  transform: translate3d(-102%, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

html.is-ios .lobby-drawer.is-open .lobby-drawer-panel {
  transform: translate3d(0, 0, 0);
}

html.is-ios .lobby-drawer.is-animating .lobby-drawer-panel {
  will-change: transform;
}

html.is-ios .drawer-wallet .wallet-card {
  box-shadow: none;
}

@media (max-width: 700px) {
  .lobby-drawer-panel {
    box-shadow: none;
  }
}

.lobby-drawer-head {
  position: relative;
  padding: 22px 20px 16px;
  touch-action: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lobby-drawer-head h2 {
  margin: 4px 0 0;
  padding-right: 34px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.lobby-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.lobby-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lobby-menu-toggle:focus-visible,
.lobby-drawer-close:focus-visible,
.lobby-drawer-tab:focus-visible,
.lobby-provider-btn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.lobby-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  touch-action: pan-y;
  padding: 16px 14px calc(22px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.lobby-drawer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 4px 12px;
}

.lobby-drawer-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.lobby-drawer-tab span {
  font-size: 10px;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}

.lobby-drawer-tab.is-active {
  border-color: rgba(110, 243, 197, 0.35);
  background: rgba(110, 243, 197, 0.09);
  color: var(--mint);
}

.lobby-drawer-hint {
  margin: 0 6px 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.lobby-provider-list {
  display: grid;
  gap: 5px;
}

.lobby-sport-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.lobby-sport-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.lobby-sport-card-media {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 104px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background: #0b1220;
}

.lobby-sport-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lobby-sport-card-media.is-fallback {
  color: var(--mint);
  font-size: 14px;
  font-weight: 800;
}

.lobby-sport-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lobby-sport-card-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lobby-sport-card-provider {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-provider-list.is-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.lobby-provider-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.lobby-provider-card-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #0b1220;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lobby-provider-card-media.is-dark {
  background: #0b1220;
  border-color: rgba(255, 255, 255, 0.14);
}

.lobby-provider-card-media.is-fallback {
  padding: 10px;
  background: color-mix(in srgb, var(--dot, var(--mint)) 18%, #0b1220);
  border-color: color-mix(in srgb, var(--dot, var(--mint)) 32%, transparent);
}

.lobby-provider-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lobby-provider-card-initials {
  color: var(--dot, var(--mint));
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
}

.lobby-provider-card-name {
  display: block;
  min-height: 2.6em;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.lobby-provider-card:hover .lobby-provider-card-media {
  border-color: rgba(255, 255, 255, 0.23);
  transform: translateY(-2px);
}

.lobby-provider-card.is-active .lobby-provider-card-media {
  border-color: rgba(110, 243, 197, 0.6);
  box-shadow: 0 0 0 2px rgba(110, 243, 197, 0.12);
}

.lobby-provider-card.is-active .lobby-provider-card-name {
  color: var(--mint);
}

.lobby-provider-card:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 20px;
}

.lobby-provider-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.lobby-provider-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.lobby-provider-btn.is-active {
  border-color: rgba(110, 243, 197, 0.24);
  background: rgba(110, 243, 197, 0.08);
  color: var(--mint);
}

.lobby-provider-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--mint));
  box-shadow: 0 0 12px -2px var(--dot, var(--mint));
}

.lobby-provider-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  background: color-mix(in srgb, var(--dot, var(--mint)) 18%, #0b1220);
  border-color: color-mix(in srgb, var(--dot, var(--mint)) 30%, transparent);
  color: var(--dot, var(--mint));
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.lobby-provider-mark.has-logo {
  padding: 2px;
  background: #eef2f8;
  border-color: rgba(255, 255, 255, 0.14);
}

.lobby-provider-mark.has-logo.is-dark {
  background: #0b1220;
  border-color: rgba(255, 255, 255, 0.16);
}

.lobby-provider-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lobby-provider-btn span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-provider-count {
  margin-left: auto;
  color: inherit;
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.lobby-provider-btn.is-all {
  margin-bottom: 4px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.lobby-drawer-empty {
  margin: 12px 8px;
  color: var(--muted);
  font-size: 12px;
}

body.lobby-drawer-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--mint), #58c7ff 55%, var(--violet));
  transform: rotate(45deg);
  box-shadow: 0 10px 26px -10px rgba(110, 243, 197, 0.75);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 3px;
  background: #071019;
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand-text em {
  font-style: normal;
  background: linear-gradient(120deg, var(--mint), #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-auth,
.customer-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 210px;
  min-height: 34px;
}

.session-skeleton {
  width: 100%;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.085),
    rgba(255, 255, 255, 0.035)
  );
  background-size: 220% 100%;
}

.session-slot.is-ready .session-skeleton {
  display: none;
}

.customer-auth[hidden],
.customer-menu[hidden] {
  display: none !important;
}

.header-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.header-auth-link:hover {
  border-color: rgba(110, 243, 197, 0.45);
}

.header-auth-link.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--mint), #58c7ff);
  color: #06110d;
}

.customer-name {
  max-width: 140px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

span.status-pill {
  pointer-events: none;
}

.status-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.14);
  flex-shrink: 0;
}

.status-pill.is-live .status-dot,
.hero-chip.is-live .status-dot {
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(110, 243, 197, 0.16);
}

.status-pill.is-error .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.16);
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 48px;
  padding: 74px 0 54px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.eyebrow-dot.wallet-binding-dot {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.8);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.eyebrow-dot.wallet-binding-dot.is-bound {
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.5rem, 5.1vw, 4.25rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.gradient-text {
  background: linear-gradient(100deg, var(--mint) 0%, #8ee7ff 46%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mint), #43e0b0);
  color: #04140f;
  box-shadow: 0 16px 34px -16px rgba(110, 243, 197, 0.75);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -18px rgba(110, 243, 197, 0.85);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn:focus-visible,
.status-pill:focus-visible,
.nav-link:focus-visible,
.filter-chip:focus-visible,
.game-card:focus-visible,
.modal-close:focus-visible,
.search-clear:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn-block {
  width: 100%;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin: 44px 0 0;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats div + div {
  padding-left: 34px;
  border-left: 1px solid var(--border);
}

.hero-stats dt {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-stage {
  position: relative;
  height: 470px;
  display: grid;
  place-items: center;
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-stage::before {
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stage::after {
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(255, 255, 255, 0.07);
}

.hero-glow {
  position: absolute;
  width: min(430px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 243, 197, 0.18), rgba(167, 139, 250, 0.12) 42%, transparent 68%);
  filter: blur(30px);
}

.hero-stack {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 206px;
  margin: -150px 0 0 -103px;
  padding: 9px;
  border-radius: 22px;
  background: rgba(12, 18, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 34px 70px -26px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: floaty 6.5s ease-in-out infinite;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-card:nth-child(1) {
  transform: rotate(-9deg) translate(-146px, 30px);
  z-index: 1;
}

.hero-card:nth-child(2) {
  transform: translateY(-30px) scale(1.06);
  z-index: 3;
  animation-delay: -2.2s;
}

.hero-card:nth-child(3) {
  transform: rotate(9deg) translate(148px, 34px);
  z-index: 2;
  animation-delay: -4.4s;
}

.hero-card:hover {
  box-shadow: 0 40px 80px -22px rgba(0, 0, 0, 0.95);
  z-index: 5;
}

.hero-card .game-art {
  aspect-ratio: 1 / 1.08;
}

.hero-card .art-symbol {
  font-size: 58px;
}

.hero-card-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 11px 7px 6px;
}

.hero-card-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-card-meta {
  color: var(--muted);
  font-size: 10.5px;
}

.hero-chip {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(8, 13, 24, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-chip.is-live {
  color: var(--mint);
  border-color: rgba(110, 243, 197, 0.32);
}

/* ── Wallet ─────────────────────────────────────────────── */

.wallet-section {
  padding: 8px 0 8px;
}

.wallet-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: 300px;
  padding: 30px 32px;
  overflow: hidden;
  border: 1px solid rgba(110, 243, 197, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 15%, rgba(167, 139, 250, 0.2), transparent 38%),
    radial-gradient(circle at 8% 100%, rgba(110, 243, 197, 0.13), transparent 44%),
    linear-gradient(135deg, rgba(16, 26, 43, 0.97), rgba(8, 13, 24, 0.98));
  box-shadow: 0 30px 80px -44px #000;
}

.wallet-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -170px;
  right: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.wallet-main,
.wallet-side {
  position: relative;
  z-index: 1;
}

.wallet-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.wallet-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wallet-currency {
  padding: 4px 9px;
  border: 1px solid rgba(110, 243, 197, 0.25);
  border-radius: 999px;
  background: rgba(110, 243, 197, 0.07);
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.wallet-sub {
  max-width: 560px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.wallet-sub-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 7px;
}

.wallet-sub-row .wallet-sub {
  margin: 0;
}

.wallet-bank-info {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
}

.wallet-bank-details {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wallet-account-name {
  color: var(--mint);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wallet-bank-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wallet-bank-number {
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.wallet-balance-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-balance-row > span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.wallet-balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wallet-balance strong {
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  background: linear-gradient(110deg, #f3fff9, var(--mint) 55%, #58c7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wallet-balance em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.wallet-game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 13px;
  background: rgba(167, 139, 250, 0.06);
}

.wallet-game-info {
  display: grid;
  gap: 1px;
}

.wallet-game-info > span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.wallet-game-info strong {
  color: #c4b5fd;
  font-size: 17px;
  line-height: 1.35;
}

.wallet-game-info small {
  color: rgba(148, 163, 189, 0.75);
  font-size: 9.5px;
  line-height: 1.45;
}

.wallet-game-recall {
  flex-shrink: 0;
  padding: 7px 11px;
  border: 1px solid rgba(167, 139, 250, 0.32);
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.09);
  color: #c4b5fd;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wallet-game-recall:hover {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.15);
}

.wallet-game-recall:disabled {
  opacity: 0.5;
  cursor: wait;
}

.wallet-guest,
.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.wallet-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.wallet-action:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 243, 197, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.wallet-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(110, 243, 197, 0.11);
  color: var(--mint);
  font-size: 17px;
  font-weight: 800;
}

.wallet-action b,
.wallet-action small {
  display: block;
  line-height: 1.35;
}

.wallet-action b {
  font-size: 12.5px;
  font-weight: 700;
}

.wallet-action small {
  color: var(--muted);
  font-size: 10.5px;
}

.wallet-action.is-withdraw .wallet-action-icon {
  background: rgba(167, 139, 250, 0.12);
  color: var(--violet);
}

.wallet-action.is-history .wallet-action-icon {
  background: rgba(255, 209, 102, 0.1);
  color: var(--gold);
}

.wallet-action:disabled {
  opacity: 0.55;
  cursor: wait;
}

.wallet-action.is-refresh {
  flex-shrink: 0;
  margin-left: auto;
  justify-content: space-between;
  gap: 12px;
  border-color: rgba(110, 243, 197, 0.24);
  background: linear-gradient(135deg, rgba(110, 243, 197, 0.12), rgba(88, 199, 255, 0.06));
}

.wallet-action.is-refresh:hover {
  border-color: rgba(110, 243, 197, 0.45);
  background: linear-gradient(135deg, rgba(110, 243, 197, 0.18), rgba(88, 199, 255, 0.1));
}

.wallet-action.is-refresh b {
  color: var(--mint);
}

.wallet-refresh-icon {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--mint);
  transform-origin: center;
}

.wallet-refresh-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.wallet-action.is-refresh.is-loading {
  opacity: 0.72;
}

.wallet-action.is-refresh.is-loading .wallet-refresh-icon {
  animation: wallet-refresh-spin 0.8s linear infinite;
}

@keyframes wallet-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.wallet-side {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-side-icon {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(110, 243, 197, 0.25);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(110, 243, 197, 0.16), rgba(167, 139, 250, 0.1));
  color: var(--mint);
  font-size: 24px;
  font-weight: 800;
}

.wallet-side h3 {
  margin: 0 0 3px;
  font-size: 13px;
}

.wallet-side p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.wallet-modal-panel {
  width: min(560px, 100%);
  max-height: min(92vh, 920px);
}

.deposit-binding-notice-panel {
  width: min(520px, 100%);
}

.wallet-modal-panel .modal-body {
  padding: 32px;
}

.wallet-modal-panel .modal-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.wallet-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.deposit-payment-scroll {
  display: contents;
}

.deposit-qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(110, 243, 197, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(110, 243, 197, 0.09), transparent 55%),
    rgba(255, 255, 255, 0.025);
}

.deposit-qr-channel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.deposit-qr-image {
  width: min(230px, 72vw);
  height: auto;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 34px -24px rgba(0, 0, 0, 0.9);
}

.wallet-hint {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.deposit-qr-meta {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.deposit-qr-meta > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.deposit-qr-meta strong {
  color: var(--mint);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.deposit-qr-meta small {
  max-width: 100%;
  color: var(--muted);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.deposit-qr-save {
  min-height: 32px;
  margin-top: 2px;
  padding: 7px 14px;
  border: 1px solid rgba(110, 243, 197, 0.35);
  border-radius: 999px;
  background: rgba(110, 243, 197, 0.08);
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.deposit-qr-save:active {
  transform: scale(0.98);
}

.deposit-qr-save:disabled {
  opacity: 0.65;
  cursor: wait;
}

.deposit-methods {
  display: grid;
  gap: 8px;
}

.deposit-method {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.deposit-method:hover {
  border-color: rgba(110, 243, 197, 0.28);
}

.deposit-method input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--mint);
}

.deposit-method span {
  display: grid;
  gap: 2px;
}

.deposit-method .deposit-method-logo {
  display: flex;
  flex: 0 0 auto;
  align-self: center;
}

.deposit-method strong {
  font-size: 12.5px;
}

.deposit-method small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.deposit-method:has(input:checked) {
  border-color: rgba(110, 243, 197, 0.45);
  background: rgba(110, 243, 197, 0.06);
}

.deposit-countdown-row {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

#depositBankCard {
  margin-top: 18px;
}

.deposit-countdown {
  padding: 5px 12px;
  border: 1px solid rgba(110, 243, 197, 0.25);
  border-radius: 999px;
  background: rgba(110, 243, 197, 0.08);
  color: var(--mint);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.deposit-countdown.is-expired {
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.08);
  color: var(--danger);
}

.deposit-actions {
  margin-top: 14px;
}

.deposit-actions .btn {
  flex: 1;
}

.wallet-field {
  display: grid;
  gap: 6px;
}

.wallet-field > span {
  color: #d8e0f0;
  font-size: 12px;
  font-weight: 600;
}

.wallet-field-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.wallet-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wallet-amount-field {
  position: relative;
}

.wallet-amount-field input {
  padding-right: 92px;
}

.wallet-amount-all {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(110, 243, 197, 0.28);
  border-radius: 9px;
  background: rgba(110, 243, 197, 0.1);
  color: var(--mint);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wallet-amount-all:hover {
  background: rgba(110, 243, 197, 0.18);
  border-color: rgba(110, 243, 197, 0.45);
}

.wallet-amount-all:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wallet-field input:focus {
  border-color: rgba(110, 243, 197, 0.55);
  background: rgba(255, 255, 255, 0.065);
}

.wallet-account-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
}

.wallet-account-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}

.wallet-account-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(110, 243, 197, 0.1);
  color: var(--mint);
  font-size: 17px;
}

.wallet-account-icon svg {
  display: block;
}

.wallet-account-head h3 {
  margin: 0;
  font-size: 13px;
}

.wallet-account-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.wallet-account-list {
  display: grid;
  gap: 6px;
  margin: 0;
}

.wallet-account-list div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.wallet-account-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.wallet-account-list dt {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.wallet-account-list dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.wallet-account-list .is-strong {
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.wallet-account-list .is-warning {
  color: var(--danger);
}

.wallet-account-list dd.wallet-account-copy {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(110, 243, 197, 0.35);
  border-radius: 999px;
  background: rgba(110, 243, 197, 0.08);
  color: var(--mint);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.wallet-copy-btn.is-copied {
  border-color: rgba(110, 243, 197, 0.65);
  background: rgba(110, 243, 197, 0.18);
}

.wallet-copy-btn:active {
  transform: scale(0.97);
}

.wallet-slip-upload {
  display: block;
  cursor: pointer;
}

.wallet-slip-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px dashed rgba(110, 243, 197, 0.32);
  border-radius: 15px;
  background: rgba(110, 243, 197, 0.035);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wallet-slip-upload:hover .wallet-slip-box {
  border-color: rgba(110, 243, 197, 0.6);
  background: rgba(110, 243, 197, 0.06);
}

.wallet-slip-placeholder b,
.wallet-slip-placeholder small {
  display: block;
}

.wallet-slip-placeholder b {
  color: var(--text);
  font-size: 13px;
}

.wallet-slip-placeholder small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.wallet-slip-box img {
  max-width: 100%;
  max-height: 132px;
  border-radius: 10px;
  object-fit: contain;
}

.wallet-slip-name {
  position: absolute;
  right: 10px;
  bottom: 8px;
  max-width: calc(100% - 20px);
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(6, 9, 17, 0.82);
  color: var(--mint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-available {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(110, 243, 197, 0.18);
  border-radius: 13px;
  background: rgba(110, 243, 197, 0.055);
  color: var(--muted);
  font-size: 11.5px;
}

.wallet-available strong {
  color: var(--mint);
  font-size: 15px;
}

.wallet-alert {
  padding: 10px 12px;
  border: 1px solid rgba(251, 113, 133, 0.3);
  border-radius: 11px;
  background: rgba(251, 113, 133, 0.08);
  color: #fecdd3;
  font-size: 12px;
  line-height: 1.6;
}

.wallet-alert.is-ok {
  border-color: rgba(110, 243, 197, 0.3);
  background: rgba(110, 243, 197, 0.08);
  color: #a7f3d0;
}

.history-modal-panel {
  width: min(620px, 100%);
  overflow-x: hidden;
}

.wallet-history-list {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 460px);
  margin-top: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wallet-history-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
}

.wallet-history-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(110, 243, 197, 0.1);
  color: var(--mint);
  font-size: 18px;
  font-weight: 800;
}

.wallet-history-item.is-withdraw .wallet-history-icon {
  background: rgba(167, 139, 250, 0.12);
  color: var(--violet);
}

.wallet-history-main {
  min-width: 0;
  overflow: hidden;
}

.wallet-history-main b {
  display: block;
  font-size: 12.5px;
}

.wallet-history-main span {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
}

.wallet-history-side {
  min-width: 0;
  text-align: right;
}

.wallet-history-side strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
}

.wallet-history-item.is-deposit .wallet-history-side strong {
  color: var(--mint);
}

.wallet-history-item.is-withdraw .wallet-history-side strong {
  color: var(--violet);
}

.history-status {
  display: inline-flex;
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.1);
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.history-status.is-approved {
  background: rgba(110, 243, 197, 0.1);
  color: var(--mint);
}

.history-status.is-rejected {
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
}

.wallet-history-empty {
  margin: 0;
  padding: 30px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ── Catalog ────────────────────────────────────────────── */

.section {
  padding: 34px 0 72px;
}

#games {
  scroll-margin-top: 96px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-head h2.is-heading-pending {
  visibility: hidden;
}

.section-head h2.is-measuring,
.section-head h2.is-measuring * {
  transition: none !important;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 10px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(110, 243, 197, 0.1);
  border: 1px solid rgba(110, 243, 197, 0.22);
  color: var(--mint);
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  max-width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-field:focus-within {
  border-color: rgba(110, 243, 197, 0.45);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(110, 243, 197, 0.08);
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.search-field input::placeholder {
  color: rgba(148, 163, 189, 0.75);
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.search-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.16);
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 22px 1px 6px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--mint), #58e3b8);
  border-color: transparent;
  color: #04140f;
  font-weight: 700;
  box-shadow: 0 10px 24px -14px rgba(110, 243, 197, 0.8);
}

.chip-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
}

.filter-chip.is-active .chip-count {
  background: rgba(4, 20, 15, 0.14);
}

.provider-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 1px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.provider-filter-label {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.provider-row {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.provider-row::-webkit-scrollbar {
  height: 4px;
}

.provider-row::-webkit-scrollbar-track {
  background: transparent;
}

.provider-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.provider-row-tail {
  flex: 0 0 auto;
  width: 0;
  height: 1px;
  pointer-events: none;
  transition: none !important;
}

.provider-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.provider-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.provider-chip.is-active {
  background: linear-gradient(135deg, #c4b5fd, #93c5fd);
  border-color: transparent;
  color: #160b33;
  font-weight: 700;
  box-shadow: 0 10px 24px -14px rgba(167, 139, 250, 0.8);
}

.provider-chip.is-active::after {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(22, 11, 51, 0.16);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.provider-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--dot, var(--mint));
  box-shadow: 0 0 8px color-mix(in srgb, var(--dot, var(--mint)) 65%, transparent);
}

.provider-chip-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: #0b1220;
}

.provider-chip-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-chip-logo.is-fallback {
  background: color-mix(in srgb, var(--dot, var(--mint)) 18%, #0b1220);
  color: var(--dot, var(--mint));
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.provider-chip .chip-count {
  background: rgba(255, 255, 255, 0.07);
}

.provider-chip.is-active .chip-count {
  background: rgba(22, 11, 51, 0.14);
  color: #160b33;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
}

.result-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.source-badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.08);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.source-badge.is-live {
  border-color: rgba(110, 243, 197, 0.3);
  background: rgba(110, 243, 197, 0.1);
  color: var(--mint);
}

.source-badge.is-error {
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.09);
  color: #fda4af;
}

.notice-banner {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.07);
  color: #fde68a;
  font-size: 13px;
  line-height: 1.6;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 20px;
  overflow-anchor: none;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  animation: cardIn 0.5s both;
  animation-delay: calc(var(--i, 0) * 28ms);
}

.game-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(110, 243, 197, 0.32);
  box-shadow: 0 28px 54px -28px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(110, 243, 197, 0.08);
}

.game-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 540 / 330;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--from, #122033), var(--to, #1e3a5f));
  isolation: isolate;
}

.game-art::before {
  content: "";
  position: absolute;
  inset: -35% 15% 35% -15%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.32), transparent 62%);
  filter: blur(14px);
  z-index: 0;
}

.game-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 78%);
  z-index: 1;
}

.game-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
}

.game-art img.art-backdrop {
  z-index: 2;
  object-fit: cover;
  filter: blur(20px) saturate(1.25);
  transform: scale(1.18);
  opacity: 0.62;
}

.game-art img.is-contain {
  z-index: 3;
  object-fit: contain;
  object-position: center 45%;
}

.game-art img.is-icon {
  z-index: 3;
  object-fit: contain;
  padding: 11% 7% 19%;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}

.game-art img.is-logo {
  z-index: 3;
  object-fit: contain;
  padding: 24% 4% 26%;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}

.game-art.has-image .art-symbol,
.game-art.has-image .art-ring {
  display: none;
}

.game-art.is-r88-art {
  background: radial-gradient(circle at 50% 35%, #1b2436 0%, #0a0e18 72%);
}

.game-art.is-r88-art img.art-backdrop {
  display: none;
}

.game-art.is-r88-art img.is-contain {
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
}

.game-art img.is-broken {
  display: none;
}

.art-symbol {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 62px;
  line-height: 1;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
  transition: transform 0.35s ease;
}

.game-card:hover .art-symbol {
  transform: scale(1.12) rotate(-4deg);
}

.art-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 55%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in srgb, var(--accent, #fff) 45%, transparent);
  border-radius: 50%;
  z-index: 1;
}

.art-ring::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed color-mix(in srgb, var(--accent, #fff) 32%, transparent);
  border-radius: 50%;
}

.card-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(6, 9, 17, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-hot {
  background: rgba(251, 113, 133, 0.94);
  border-color: transparent;
  color: #2b0505;
}

.badge-new {
  background: rgba(110, 243, 197, 0.94);
  border-color: transparent;
  color: #04140f;
}

.badge-featured {
  background: rgba(167, 139, 250, 0.92);
  border-color: transparent;
  color: #170b33;
}

.card-play {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  aspect-ratio: 540 / 330;
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(to top, rgba(4, 8, 16, 0.62), rgba(4, 8, 16, 0.06) 55%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.card-play span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--mint);
  color: #04140f;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(8px);
  transition: transform 0.25s ease;
}

.game-card:hover .card-play {
  opacity: 1;
}

.game-card:hover .card-play span {
  transform: translateY(0);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px 7px;
}

.card-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Full-bleed game cards: cover fills the entire block, title overlays */
.game-card {
  display: block;
  padding: 0;
  aspect-ratio: 2 / 3;
}

.game-card .game-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.game-card .game-art img {
  object-position: center 32%;
}

.game-art img.art-character {
  inset: auto;
  top: 6%;
  left: 7%;
  width: 86%;
  height: 76%;
  object-fit: contain;
  object-position: center;
  z-index: 4;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}

.game-card .card-badges {
  top: 10px;
  left: 10px;
  right: 10px;
}

.game-card .card-play {
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.game-card .card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 34px 12px 11px;
  background: linear-gradient(
    to top,
    rgba(4, 8, 16, 0.95) 0%,
    rgba(4, 8, 16, 0.78) 40%,
    rgba(4, 8, 16, 0) 100%
  );
  pointer-events: none;
}

.game-card .card-title {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.game-card .card-meta {
  color: rgba(238, 242, 255, 0.74);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* FC covers are 466x580; match the card so the cover fills it without top/bottom bands */
.game-card.is-fc-card,
.game-card.is-ftg-card {
  aspect-ratio: 466 / 580;
  align-self: start;
}

.game-card.is-fc-card .game-art,
.game-card.is-ftg-card .game-art {
  background: #0a0e18;
}

.game-card.is-fc-card .game-art img.art-backdrop,
.game-card.is-ftg-card .game-art img.art-backdrop {
  display: none;
}

/* Pragmatic Play: square cover with the name/provider below the card */
.game-card.is-square-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  align-self: start;
}

.game-card.is-square-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.game-card.is-square-card .game-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--card-media-ratio, 1 / 1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.game-card.is-square-card:hover .game-card-media {
  border-color: rgba(110, 243, 197, 0.32);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(110, 243, 197, 0.08);
}

.game-card.is-square-card .game-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.game-card.is-square-card .game-art img {
  object-position: center center;
}

.game-card.is-square-card .game-art img.art-backdrop {
  display: none;
}

.game-card.is-square-card .card-badges {
  top: 10px;
  left: 10px;
  right: 10px;
}

.game-card.is-square-card .card-play {
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.game-card.is-square-card .card-body {
  position: static;
  padding: 10px 2px 0;
  background: none;
  pointer-events: none;
}

.game-card.is-square-card .card-title {
  color: #f8fafc;
  font-size: 14px;
  text-shadow: none;
}

.game-card.is-square-card .card-meta {
  color: rgba(238, 242, 255, 0.62);
  font-size: 11.5px;
  text-shadow: none;
}

.game-grid.is-pragmatic-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.game-grid.is-pragmatic-grid > .game-card {
  min-width: 0;
}

.game-grid.is-three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-grid.is-three-grid > .game-card {
  min-width: 0;
}

.game-grid.is-landscape-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-grid.is-landscape-grid > .game-card {
  min-width: 0;
}

.game-grid.is-meganodes-slot-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.game-grid.is-meganodes-slot-grid > .game-card {
  min-width: 0;
}

@media (max-width: 900px) {
  .game-grid.is-meganodes-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .game-grid.is-meganodes-slot-grid .game-card.is-square-card .game-card-media {
    border-radius: 10px;
  }

  .game-grid.is-meganodes-slot-grid .game-card.is-square-card .card-body {
    padding: 5px 1px 0;
  }

  .game-grid.is-meganodes-slot-grid .game-card.is-square-card .card-title {
    font-size: 10px;
    line-height: 1.3;
  }

  .game-grid.is-meganodes-slot-grid .game-card.is-square-card .card-meta {
    font-size: 8px;
    line-height: 1.3;
  }
}

@media (max-width: 380px) {
  .game-grid.is-meganodes-slot-grid {
    gap: 6px;
  }

  .game-grid.is-meganodes-slot-grid .game-card.is-square-card .card-title {
    font-size: 9px;
  }

  .game-grid.is-meganodes-slot-grid .game-card.is-square-card .card-meta {
    font-size: 7.5px;
  }
}

.game-grid.is-meganodes-wide-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.game-grid.is-meganodes-wide-grid > .game-card {
  min-width: 0;
}

@media (max-width: 900px) {
  .game-grid.is-meganodes-wide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .game-grid.is-meganodes-wide-grid {
    gap: 7px;
  }

  .game-grid.is-meganodes-wide-grid .game-card.is-square-card .card-title {
    font-size: 11px;
  }

  .game-grid.is-meganodes-wide-grid .game-card.is-square-card .card-meta {
    font-size: 9px;
  }
}

@media (max-width: 700px) {
  .game-grid.is-pragmatic-grid {
    gap: 6px;
  }

  .game-card.is-square-card .game-card-media {
    border-radius: 10px;
  }

  .game-card.is-square-card .card-badges {
    top: 4px;
    left: 4px;
    right: 4px;
  }

  .game-card.is-square-card .badge {
    padding: 2px 5px;
    font-size: 7px;
  }

  .game-card.is-square-card .card-play span {
    padding: 4px 7px;
    font-size: 8px;
  }

  .game-card.is-square-card .card-body {
    padding: 5px 1px 0;
  }

  .game-card.is-square-card .card-title {
    font-size: 9px;
    line-height: 1.3;
  }

  .game-card.is-square-card .card-meta {
    font-size: 8px;
    line-height: 1.3;
  }
}

@media (max-width: 380px) {
  .game-grid.is-pragmatic-grid {
    gap: 4px;
  }

  .game-card.is-square-card .card-title {
    font-size: 8px;
  }

  .game-card.is-square-card .card-meta {
    font-size: 7px;
  }
}

@media (max-width: 700px) {
  .game-grid.is-three-grid,
  .game-grid.is-featured-grid {
    gap: 10px;
  }

  .game-grid.is-featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-grid.is-featured-grid .game-card:not(.is-square-card) .card-body {
    padding: 26px 8px 8px;
  }

  .game-grid.is-featured-grid .game-card:not(.is-square-card) .card-title {
    font-size: 10px;
  }

  .game-grid.is-featured-grid .game-card:not(.is-square-card) .card-meta {
    font-size: 8px;
  }

  .game-grid.is-three-grid .game-card.is-square-card .game-card-media,
  .game-grid.is-featured-grid .game-card.is-square-card .game-card-media {
    border-radius: 12px;
  }

  .game-grid.is-three-grid .game-card.is-square-card .card-title,
  .game-grid.is-featured-grid .game-card.is-square-card .card-title {
    font-size: 11px;
  }

  .game-grid.is-three-grid .game-card.is-square-card .card-meta,
  .game-grid.is-featured-grid .game-card.is-square-card .card-meta {
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .game-grid.is-three-grid,
  .game-grid.is-featured-grid {
    gap: 7px;
  }

  .game-grid.is-three-grid .game-card.is-square-card .card-title,
  .game-grid.is-featured-grid .game-card.is-square-card .card-title {
    font-size: 10px;
  }

  .game-grid.is-three-grid .game-card.is-square-card .card-meta,
  .game-grid.is-featured-grid .game-card.is-square-card .card-meta {
    font-size: 8px;
  }
}

@media (max-width: 700px) {
  .game-grid.is-landscape-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-grid.is-landscape-grid .game-card.is-square-card .game-card-media {
    border-radius: 12px;
  }

  .game-grid.is-landscape-grid .game-card.is-square-card .card-title {
    font-size: 13px;
  }

  .game-grid.is-landscape-grid .game-card.is-square-card .card-meta {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .game-grid.is-landscape-grid {
    gap: 8px;
  }

  .game-grid.is-landscape-grid .game-card.is-square-card .card-title {
    font-size: 12px;
  }

  .game-grid.is-landscape-grid .game-card.is-square-card .card-meta {
    font-size: 9px;
  }
}

.skeleton-card {
  position: relative;
  aspect-ratio: 2 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.skeleton-art {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
}

.skeleton-line {
  display: none;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 64px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 34px;
  filter: grayscale(0.4);
}

.empty-icon svg {
  display: block;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  overflow-anchor: none;
}

.empty-state h3 {
  margin: 0;
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ── Features ───────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 8px;
  padding-bottom: 86px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid rgba(110, 243, 197, 0.22);
  border-radius: 13px;
  background: rgba(110, 243, 197, 0.08);
  color: var(--mint);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 7, 14, 0.55);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 0 26px;
}

.footer-brand p {
  max-width: 430px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 360px;
}

.footer-note p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 50%;
  background: rgba(251, 113, 133, 0.08);
  color: #fda4af;
  font-size: 12px;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(148, 163, 189, 0.75);
  font-size: 11.5px;
}

/* ── Modal ──────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(88vh, 780px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(16, 23, 40, 0.985), rgba(8, 12, 22, 0.995));
  box-shadow: 0 44px 110px -32px #000;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s ease;
}

.modal.is-open .modal-panel {
  transform: none;
}

.game-modal-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(6, 9, 17, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.modal.is-payment-step .modal-close {
  display: none;
}

.modal-art {
  display: flex;
  aspect-ratio: 2 / 3;
  align-self: start;
  min-height: 0;
}

.modal-art > .game-art {
  flex: 1;
  aspect-ratio: auto;
  border-radius: 26px 0 0 26px;
}

.modal-art img {
  object-position: center 32%;
}

.game-modal-panel .modal-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-art .art-symbol {
  font-size: 104px;
}

.modal-art .art-ring {
  width: 48%;
}

.modal-body {
  padding: 34px 32px 30px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.modal-body h2 {
  margin: 0 0 4px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  padding-right: 34px;
}

.modal-subtitle {
  margin: 0 0 16px;
  color: var(--mint);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.modal-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.launch-notice {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(110, 243, 197, 0.28);
  border-radius: 12px;
  background: rgba(110, 243, 197, 0.07);
  color: #c8ffee;
  font-size: 13px;
  line-height: 1.65;
}

.launch-notice.is-error {
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.08);
  color: #fecdd3;
}

.modal-actions {
  margin-top: 22px;
}

.modal-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-hint {
  margin: 10px 0 0;
  color: rgba(148, 163, 189, 0.8);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

.modal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.modal-brand-mark {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--mint), #58c7ff 55%, var(--violet));
  transform: rotate(45deg);
  box-shadow: 0 4px 12px -6px rgba(110, 243, 197, 0.8);
}

.modal-brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 2px;
  background: #071019;
}

.modal-brand-text {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
}

.modal-brand-text em {
  font-style: normal;
  background: linear-gradient(120deg, var(--mint), #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status-modal-panel {
  width: min(620px, 100%);
}

.status-modal-panel .modal-body {
  padding: 34px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.status-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.status-item.is-wide {
  grid-column: 1 / -1;
}

.status-item dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-item dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.status-ok {
  color: var(--mint);
}

.status-warn {
  color: var(--gold);
}

.status-bad {
  color: var(--danger);
}

.status-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ── Deposit action overlay ─────────────────────────────── */

.action-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 5, 10, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.action-overlay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(340px, 100%);
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(16, 23, 40, 0.99), rgba(8, 12, 22, 0.995));
  box-shadow: 0 40px 100px -30px #000;
  text-align: center;
  animation: actionOverlayIn 0.22s ease-out both;
}

.action-overlay-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 2px;
  color: var(--mint);
}

.action-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(110, 243, 197, 0.2);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: actionSpin 0.8s linear infinite;
}

.action-result-icon {
  display: none;
  width: 48px;
  height: 48px;
}

.action-overlay.is-approved .action-spinner,
.action-overlay.is-pending .action-spinner {
  display: none;
}

.action-overlay.is-approved .action-result-approved {
  display: block;
  color: var(--mint);
}

.action-overlay.is-pending .action-result-pending {
  display: block;
  color: #fbbf24;
}

.action-overlay-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.action-overlay-detail {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.action-overlay-amount {
  color: var(--mint);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.action-overlay.is-pending .action-overlay-amount {
  color: #fbbf24;
}

@keyframes actionSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes actionOverlayIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .action-overlay {
    padding: 18px;
  }

  .action-overlay-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action-overlay-card {
    animation: none;
  }

  .action-spinner {
    animation-duration: 2s;
  }
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(10, 16, 29, 0.96);
  box-shadow: 0 24px 50px -20px #000;
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Animations ─────────────────────────────────────────── */

@keyframes cardIn {
  from {
    opacity: 0;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

@keyframes floaty {
  50% {
    translate: 0 -11px;
  }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  .hero {
    gap: 28px;
  }

  .hero-stage {
    height: 430px;
  }

  .hero-card {
    width: 186px;
    margin-left: -93px;
  }

  .hero-card:nth-child(1) {
    transform: rotate(-8deg) translate(-122px, 26px);
  }

  .hero-card:nth-child(3) {
    transform: rotate(8deg) translate(124px, 32px);
  }
}

@media (max-width: 900px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 54px 0 30px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-stage {
    height: 400px;
    margin-top: 6px;
  }

  .wallet-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .wallet-side {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    display: none;
  }

  .wallet-section {
    padding-top: 18px;
  }

  .header-inner {
    height: 68px;
    gap: 16px;
  }

  .brand-text {
    font-size: 17px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .status-pill {
    min-width: 0;
    padding: 7px 11px;
    font-size: 11px;
  }

  .session-slot {
    min-width: 150px;
  }

  .customer-auth,
  .customer-menu {
    gap: 5px;
  }

  .header-auth-link {
    padding: 7px 9px;
    font-size: 10.5px;
  }

  .customer-name {
    display: none;
  }

  .status-pill #statusText {
    display: none;
  }

  .wallet-card {
    min-height: 280px;
    padding: 22px;
  }

  .wallet-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wallet-action.is-refresh {
    min-width: 132px;
  }

  .wallet-action {
    min-width: 0;
    padding: 10px;
  }

  .wallet-action-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .wallet-action b {
    font-size: 11.5px;
  }

  .wallet-action small {
    display: none;
  }

  .wallet-modal-panel .modal-body {
    padding: 28px 22px 24px;
  }

  .section-head {
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .section-head > div:first-child {
    min-width: 0;
  }

  .section-head h2 {
    font-size: clamp(1.3rem, 5.8vw, 1.7rem);
    white-space: nowrap;
  }

  .count-badge {
    min-width: 30px;
    padding: 3px 8px;
    font-size: 0.68em;
  }

  .section-tools {
    flex: 0 0 auto;
    width: auto;
  }

  .search-field {
    width: clamp(132px, 42vw, 190px);
    max-width: none;
    height: 42px;
    padding: 0 10px;
    gap: 7px;
  }

  .search-field input {
    font-size: 12.5px;
  }

  .game-grid {
    gap: 14px;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal {
    padding: 12px;
  }

  .game-modal-panel {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 18px;
  }

  .modal-art {
    justify-self: center;
    min-height: 220px;
    max-height: 260px;
  }

  .modal-art > .game-art {
    border-radius: 20px;
  }

  .modal-art .art-symbol {
    font-size: 74px;
  }

  .modal-body {
    padding: 26px 22px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-wrap: nowrap;
  }

  .filter-row {
    flex-wrap: wrap;
    overflow: visible;
  }

  .provider-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .provider-row {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
  }

  .wallet-card {
    padding: 19px;
    border-radius: 21px;
  }

  .wallet-balance-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .wallet-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 14px;
  }

  .wallet-action.is-refresh {
    min-width: 140px;
    padding: 9px 12px;
    justify-content: space-between;
  }

  .wallet-action.is-refresh b {
    font-size: 11.5px;
  }

  .wallet-action.is-refresh small {
    display: block;
    font-size: 10px;
  }

  .wallet-bank-name {
    font-size: 12px;
  }

  .wallet-account-name {
    font-size: 12.5px;
  }

  .wallet-bank-number {
    font-size: 10.5px;
  }

  .wallet-refresh-icon {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .wallet-refresh-icon svg {
    width: 18px;
    height: 18px;
  }

  .wallet-action {
    justify-content: center;
    min-width: 0;
    padding: 9px 7px;
  }

  .wallet-action-icon {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .wallet-action b {
    font-size: 11px;
  }

  .wallet-action small {
    display: none;
  }

  .deposit-qr-card {
    margin-top: 10px;
    padding: 10px;
    gap: 6px;
  }

  .deposit-qr-image {
    width: min(140px, 40vw);
  }

  .deposit-actions {
    flex-direction: row !important;
  }

  .deposit-actions .btn {
    width: auto !important;
  }

  .modal.is-payment-step {
    padding: 0;
  }

  .modal.is-payment-step .wallet-modal-panel {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    transform: none;
  }

  .modal.is-payment-step .wallet-modal-panel .modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    padding: calc(18px + env(safe-area-inset-top)) 18px
      calc(18px + env(safe-area-inset-bottom));
  }

  .modal.is-payment-step #depositPaymentStep:not([hidden]) {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .modal.is-payment-step .deposit-payment-scroll {
    display: block;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 6px;
  }

  .modal.is-payment-step .deposit-actions {
    position: static;
    z-index: 5;
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    gap: 8px;
    margin-top: 0;
    padding: 10px 0 calc(4px + env(safe-area-inset-bottom));
    background: linear-gradient(
      to top,
      rgba(8, 12, 22, 0.99),
      rgba(8, 12, 22, 0.92) 68%,
      transparent
    );
  }

  .modal.is-payment-step .deposit-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding-left: 10px;
    padding-right: 10px;
    white-space: normal;
  }

  .deposit-qr-save {
    min-height: 28px;
    padding: 5px 12px;
    font-size: 11px;
  }

  .modal.is-payment-step #depositSlipAlert:not([hidden]) {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 7;
    max-height: 40vh;
    margin: 0;
    overflow-y: auto;
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
  }

  .wallet-modal-panel .modal-body {
    padding: 28px 18px 22px;
  }

  .wallet-slip-box {
    min-height: 72px;
    padding: 8px 10px;
  }

  .wallet-slip-box img {
    max-height: 82px;
  }

  .wallet-slip-box.has-file {
    min-height: 54px;
    padding: 6px 8px;
  }

  .wallet-slip-box.has-file img {
    max-height: 50px;
  }

  .wallet-account-list dd.wallet-account-copy {
    justify-content: flex-start;
  }

  .wallet-account-list div {
    flex-direction: column;
    gap: 2px;
  }

  .wallet-account-list dd {
    text-align: left;
  }

  .hero-stats {
    gap: 20px;
    margin-top: 32px;
  }

  .hero-stats div + div {
    padding-left: 20px;
  }

  .hero-stats dt {
    font-size: 22px;
  }

  .hero-stage {
    height: 340px;
  }

  .hero-stage::before {
    width: 300px;
    height: 300px;
  }

  .hero-stage::after {
    width: 220px;
    height: 220px;
  }

  .hero-card {
    width: 142px;
    margin: -108px 0 0 -71px;
    padding: 7px;
    border-radius: 18px;
  }

  .hero-card:nth-child(1) {
    transform: rotate(-8deg) translate(-74px, 22px);
  }

  .hero-card:nth-child(2) {
    transform: translateY(-16px) scale(1.05);
  }

  .hero-card:nth-child(3) {
    transform: rotate(8deg) translate(76px, 26px);
  }

  .hero-card .art-symbol {
    font-size: 42px;
  }

  .hero-card-body {
    padding: 8px 5px 4px;
  }

  .hero-card-title {
    font-size: 11.5px;
  }

  .hero-card-meta {
    font-size: 9.5px;
  }

  .hero-chip {
    bottom: 0;
    font-size: 9px;
    padding: 6px 12px;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .game-card {
    padding: 0;
    border-radius: 16px;
  }

  .game-art {
    border-radius: 11px;
  }

  .art-symbol {
    font-size: 46px;
  }

  .card-badges {
    top: 11px;
    left: 11px;
    right: 11px;
  }

  .badge {
    padding: 3px 7px;
    font-size: 9px;
  }

  .card-play {
    top: 6px;
    left: 6px;
    right: 6px;
    border-radius: 11px;
  }

  .card-body {
    padding: 9px 5px 5px;
  }

  .card-title {
    font-size: 13.5px;
  }

  .card-meta {
    font-size: 11px;
  }

  .status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-actions-row {
    flex-direction: column-reverse;
  }

  .modal-actions-row .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 560px) and (max-height: 720px) {
  .modal.is-payment-step .deposit-payment-scroll {
    overflow-y: auto;
  }

  .modal.is-payment-step .deposit-actions {
    margin-top: 0;
  }
}

@media (max-width: 440px) {
  .brand-text {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-auth-link {
    padding: 7px;
    font-size: 10px;
  }

  .status-pill {
    padding: 7px 8px;
  }
}

@media (max-width: 385px) {
  .header-inner {
    flex-wrap: nowrap;
    height: 60px;
    padding: 0;
    gap: 6px;
  }

  .brand {
    gap: 8px;
  }

  .brand-text {
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .header-actions {
    width: auto;
    margin-left: auto;
    gap: 5px;
    justify-content: flex-end;
  }

  .session-slot {
    min-width: 0;
  }

  .header-auth-link {
    padding: 6px 7px;
    font-size: 9.5px;
  }

  .header-wallet {
    padding: 5px 7px;
    font-size: 9.5px;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .provider-filter {
    position: sticky;
    top: var(--header-offset, 68px);
    z-index: 35;
    margin: 12px -16px 0;
    padding: 8px 16px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(6, 9, 17, 0.94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 28px -26px rgba(0, 0, 0, 0.95);
  }

  .provider-row {
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .provider-row::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 560px) {
  .provider-filter {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .provider-filter-label {
    display: none;
  }

  .provider-row {
    width: auto;
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .wallet-action.is-refresh.is-loading .wallet-refresh-icon {
    animation-duration: 1.2s !important;
    animation-iteration-count: infinite !important;
  }
}

.wallet-history-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10.5px;
}

.wallet-history-pager > div {
  display: flex;
  gap: 6px;
}

.wallet-history-pager .btn {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10.5px;
}

@media (max-width: 460px) {
  .wallet-history-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .wallet-history-pager > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wallet-history-pager .btn:disabled {
  cursor: default;
}

@media (max-width: 560px) {
  .lobby-menu-toggle {
    width: 42px;
    height: 42px;
  }
}

/* ── Home account sidebar and header wallet ─────────────── */

.header-wallet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(110, 243, 197, 0.22);
  border-radius: 999px;
  background: rgba(110, 243, 197, 0.07);
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.header-wallet-currency {
  color: rgba(110, 243, 197, 0.65);
  font-size: 10px;
}

.header-icon-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.header-icon-btn:hover {
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.08);
  color: #fecdd3;
}

.header-icon-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.home-category-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 1px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.home-category-row .filter-row {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 1px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-category-row .filter-row::-webkit-scrollbar {
  display: none;
}

.drawer-account-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px calc(22px + env(safe-area-inset-bottom));
}

.drawer-wallet .wallet-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  min-height: 0;
  padding: 10px 14px;
  border-radius: 18px;
}

.drawer-wallet .wallet-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}

.drawer-wallet .wallet-heading h2 {
  font-size: 16px;
}

.drawer-wallet .wallet-sub {
  font-size: 12px;
  line-height: 1.55;
}

.drawer-wallet .wallet-sub-row {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.drawer-wallet .wallet-bank-info {
  flex-wrap: wrap;
}

.drawer-wallet .wallet-account-name {
  font-size: 12px;
}

.drawer-wallet .wallet-bank-name,
.drawer-wallet .wallet-bank-number {
  font-size: 10.5px;
}

.drawer-wallet .wallet-balance-row {
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  padding-top: 6px;
}

.drawer-wallet .wallet-balance strong {
  font-size: 30px;
}

.drawer-wallet .wallet-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.drawer-wallet .wallet-action {
  min-width: 0;
  padding: 9px 6px;
  justify-content: center;
  text-align: center;
}

.drawer-wallet .wallet-action b {
  font-size: 11px;
}

.drawer-wallet .wallet-action small {
  font-size: 9px;
}

.drawer-wallet .wallet-action.is-refresh {
  min-width: 0;
}

.drawer-security-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.drawer-security-btn:hover {
  border-color: rgba(110, 243, 197, 0.3);
  background: rgba(110, 243, 197, 0.07);
}

.drawer-security-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(110, 243, 197, 0.1);
  color: var(--mint);
}

.drawer-referral-btn .drawer-security-icon {
  background: rgba(167, 139, 250, 0.13);
  color: #c4b5fd;
}

.drawer-security-btn b,
.drawer-security-btn small {
  display: block;
}

.drawer-security-btn b {
  font-size: 12.5px;
}

.drawer-security-btn small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

@media (max-width: 760px) {
  .header-inner {
    gap: 8px;
  }


  .header-wallet {
    padding: 6px 8px;
    font-size: 10px;
  }

  .header-icon-btn {
    width: 36px;
    height: 36px;
  }

  .session-slot {
    min-width: 0;
  }
}

.provider-picker {
  margin-top: 18px;
}

.provider-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.provider-picker-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.provider-picker-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.provider-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.provider-picker-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.provider-picker-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: #0b1220;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.provider-picker-media.is-dark {
  border-color: rgba(255, 255, 255, 0.16);
}

.provider-picker-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-picker-media.is-fallback {
  background: color-mix(in srgb, var(--dot, var(--mint)) 18%, #0b1220);
  border-color: color-mix(in srgb, var(--dot, var(--mint)) 32%, transparent);
  color: var(--dot, var(--mint));
  font-size: 24px;
  font-weight: 800;
}

.provider-picker-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.provider-picker-count {
  color: var(--muted);
  font-size: 10px;
}

.provider-picker-card:hover .provider-picker-media {
  border-color: rgba(110, 243, 197, 0.45);
  transform: translateY(-2px);
}

@media (max-width: 380px) {
  .provider-picker-grid {
    gap: 8px;
  }

  .provider-picker-media {
    border-radius: 16px;
  }

  .provider-picker-name {
    font-size: 10px;
  }

  .provider-picker-count {
    font-size: 9px;
  }
}

@media (max-width: 700px) {
  .game-grid.is-pg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .game-grid.is-pg-grid .game-card .card-body {
    padding: 26px 8px 8px;
  }

  .game-grid.is-pg-grid .card-title {
    font-size: 10px;
  }

  .game-grid.is-pg-grid .card-meta {
    font-size: 8px;
  }
}

@media (max-width: 380px) {
  .game-grid.is-pg-grid {
    gap: 6px;
  }
}

@media (min-width: 1000px) {
  .provider-picker-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

  .provider-picker-media {
    border-radius: 15%;
  }

  .provider-picker-name {
    font-size: 11px;
  }

  .provider-picker-count {
    font-size: 9.5px;
  }
}

@media (min-width: 1100px) {
  .lobby-menu-toggle {
    display: none !important;
  }

  html:not(.is-referral-landing) body.lobby-home .site-header,
  html:not(.is-referral-landing) body.lobby-home main,
  html:not(.is-referral-landing) body.lobby-home .site-footer {
    margin-left: 300px;
  }

  html:not(.is-referral-landing) body.lobby-home .lobby-drawer {
    visibility: visible;
    pointer-events: none;
    transition: none;
    z-index: 130;
  }

  html:not(.is-referral-landing) body.lobby-home .lobby-drawer-backdrop {
    display: none;
  }

  html:not(.is-referral-landing) body.lobby-home .lobby-drawer-panel {
    width: 300px;
    max-width: 300px;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    border-right: 1px solid var(--border);
    background: rgba(8, 12, 21, 0.985);
    box-shadow: none;
  }

  html:not(.is-referral-landing) body.lobby-home .lobby-drawer-close {
    display: none;
  }

  html:not(.is-referral-landing) body.lobby-home .lobby-drawer-head {
    padding: 22px 18px 14px;
  }

  html:not(.is-referral-landing) body.lobby-home .lobby-drawer-body {
    padding: 14px 12px 24px;
  }
}
