:root,
:root[data-theme="light"],
:root[data-theme="system"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --ink: #111827;
  --ink-strong: #050913;
  --muted: #667085;
  --line: #dbe1ec;
  --paper: #eef2f8;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --surface-3: #e4ebf6;
  --soft: #eaf0ff;
  --coal: #090e1c;
  --green: #1f5eff;
  --green-dark: #1646c9;
  --lime: #ffd76b;
  --amber: #e94560;
  --gold: #d6a528;
  --red: #d64545;
  --blue: #1f5eff;
  --portal-teal: #1f5eff;
  --portal-teal-dark: #1646c9;
  --portal-orange: #1f5eff;
  --portal-orange-dark: #1646c9;
  --portal-input: #f0f3f8;
  --primary: #090e1c;
  --primary-hover: #1f5eff;
  --primary-text: #ffffff;
  --accent: #1f5eff;
  --accent-strong: #1646c9;
  --accent-soft: #e8efff;
  --danger: #d64545;
  --field: #f1f4f9;
  --field-strong: #ffffff;
  --chip-bg: #e7ecf5;
  --chip-text: #1d2637;
  --chip-green-bg: #e8efff;
  --chip-green-text: #1646c9;
  --chip-blue-bg: #e3eef9;
  --chip-blue-text: #1646c9;
  --chip-red-bg: #ffe6ea;
  --chip-red-text: #a82738;
  --wallet-grad: linear-gradient(135deg, rgba(31, 94, 255, 0.1), rgba(214, 165, 40, 0.12)), var(--surface);
  --hero-grad: linear-gradient(135deg, rgba(7, 10, 19, 0.96), rgba(18, 28, 66, 0.88) 48%, rgba(214, 165, 40, 0.24));
  --hover-soft: #edf3ff;
  --shadow: 0 18px 46px rgba(15, 23, 42, 0.11);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a13;
  --ink: #f5f7fb;
  --ink-strong: #ffffff;
  --muted: #9aa6bd;
  --line: #273247;
  --paper: #0b1020;
  --surface: #101728;
  --surface-2: #151d31;
  --surface-3: #202b44;
  --soft: #151f36;
  --coal: #050913;
  --green: #78a7ff;
  --green-dark: #a8c2ff;
  --lime: #ffe39a;
  --amber: #ff6b82;
  --gold: #f2c75b;
  --red: #ff7a7a;
  --blue: #78a7ff;
  --portal-teal: #78a7ff;
  --portal-teal-dark: #a8c2ff;
  --portal-orange: #f2c75b;
  --portal-orange-dark: #ffe39a;
  --portal-input: #151d31;
  --primary: #f2c75b;
  --primary-hover: #ffe39a;
  --primary-text: #070a13;
  --accent: #78a7ff;
  --accent-strong: #f2c75b;
  --accent-soft: #17223d;
  --danger: #ff7a7a;
  --field: #171f33;
  --field-strong: #101728;
  --chip-bg: #232b3d;
  --chip-text: #f5f7fb;
  --chip-green-bg: #17264d;
  --chip-green-text: #a8c2ff;
  --chip-blue-bg: #17264d;
  --chip-blue-text: #a8c2ff;
  --chip-red-bg: #4b2028;
  --chip-red-text: #ffc2ca;
  --wallet-grad: linear-gradient(135deg, rgba(120, 167, 255, 0.15), rgba(242, 199, 91, 0.12)), var(--surface);
  --hero-grad: linear-gradient(135deg, rgba(3, 6, 16, 0.96), rgba(18, 28, 66, 0.9) 58%, rgba(233, 69, 96, 0.28));
  --hover-soft: #17223d;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --bg: #070a13;
    --ink: #f5f7fb;
    --ink-strong: #ffffff;
    --muted: #9aa6bd;
    --line: #273247;
    --paper: #0b1020;
    --surface: #101728;
    --surface-2: #151d31;
    --surface-3: #202b44;
    --soft: #151f36;
    --coal: #050913;
    --green: #78a7ff;
    --green-dark: #a8c2ff;
    --lime: #ffe39a;
    --amber: #ff6b82;
    --gold: #f2c75b;
    --red: #ff7a7a;
    --blue: #78a7ff;
    --portal-teal: #78a7ff;
    --portal-teal-dark: #a8c2ff;
    --portal-orange: #f2c75b;
    --portal-orange-dark: #ffe39a;
    --portal-input: #151d31;
    --primary: #f2c75b;
    --primary-hover: #ffe39a;
    --primary-text: #070a13;
    --accent: #78a7ff;
    --accent-strong: #f2c75b;
    --accent-soft: #17223d;
    --danger: #ff7a7a;
    --field: #171f33;
    --field-strong: #101728;
    --chip-bg: #232b3d;
    --chip-text: #f5f7fb;
    --chip-green-bg: #17264d;
    --chip-green-text: #a8c2ff;
    --chip-blue-bg: #17264d;
    --chip-blue-text: #a8c2ff;
    --chip-red-bg: #4b2028;
    --chip-red-text: #ffc2ca;
    --wallet-grad: linear-gradient(135deg, rgba(120, 167, 255, 0.15), rgba(242, 199, 91, 0.12)), var(--surface);
    --hero-grad: linear-gradient(135deg, rgba(3, 6, 16, 0.96), rgba(18, 28, 66, 0.9) 58%, rgba(233, 69, 96, 0.28));
    --hover-soft: #17223d;
    --shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  margin-top: 10px;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.app-shell {
  min-height: 100vh;
}

.hero {
  color: #fff;
  background:
    var(--hero-grad),
    url("assets/stadium-hero.png") center / cover;
}

.hero {
  min-height: 250px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-logo {
  position: relative;
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  place-items: center;
  filter: drop-shadow(0 10px 18px rgba(5, 9, 19, 0.24));
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.logo-shield,
.logo-ball,
.logo-star {
  position: absolute;
}

.logo-shield {
  inset: 3px 6px 4px;
  border: 2px solid rgba(255, 227, 154, 0.9);
  border-radius: 12px 12px 16px 16px;
  background: linear-gradient(140deg, #1f5eff 0 34%, #d6a528 35% 52%, #071022 53% 100%);
  clip-path: polygon(50% 0, 94% 16%, 88% 72%, 50% 100%, 12% 72%, 6% 16%);
}

.logo-shield::after {
  content: "";
  position: absolute;
  inset: 7px 9px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 48% 48%, #121a3a 0 49%, #d6a528 51% 59%, transparent 61%);
}

.logo-ball {
  width: 22px;
  height: 22px;
  border: 2px solid #ffe39a;
  border-radius: 999px;
}

.logo-ball::before,
.logo-ball::after {
  content: "";
  position: absolute;
  background: #ffe39a;
}

.logo-ball::before {
  top: 9px;
  right: 3px;
  left: 3px;
  height: 2px;
}

.logo-ball::after {
  top: 3px;
  bottom: 3px;
  left: 9px;
  width: 2px;
}

.logo-star {
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  background: #ffe39a;
  clip-path: polygon(50% 0, 62% 36%, 100% 36%, 69% 58%, 82% 100%, 50% 74%, 18% 100%, 31% 58%, 0 36%, 38% 36%);
}

.brand-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--lime);
  color: #10140d;
  font-weight: 900;
}

.star-player {
  pointer-events: none;
  user-select: none;
}

.star-player svg {
  display: block;
  width: 100%;
  height: auto;
}

.session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 750;
  white-space: nowrap;
}

button.balance-pill {
  border-color: rgba(255, 255, 255, 0.28);
}

button.balance-pill:hover {
  background: rgba(215, 255, 106, 0.22);
  color: var(--lime);
}

.panel .status-pill {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 18px 32px;
}

.eyebrow {
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 640px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.55;
}

.nav-band {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 245, 0.94);
  backdrop-filter: blur(14px);
}

.tabs {
  display: flex;
  gap: 6px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 18px;
  overflow-x: auto;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 780;
  white-space: nowrap;
}

.tab.active {
  background: var(--coal);
  color: #fff;
}

.content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 42px;
}

.content.content-enter {
  animation: pageEnter 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.panel,
.home-card,
.match-card,
.odd-button,
.market-button,
.funds-method-card,
.wallet-panel,
.wallet-stat-card,
.wallet-balance-card,
.player-card,
.selection-box {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.home-card:hover,
.wallet-panel:hover,
.wallet-stat-card:hover,
.wallet-balance-card:hover,
.funds-method-card:hover,
.match-card:hover,
.odd-button:hover,
.market-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.sportsbook-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.match-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.wallet-grid,
.kyc-grid,
.account-grid,
.bets-grid,
.message-admin-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.wide-panel {
  grid-column: 1 / -1;
}

.match-admin-grid {
  display: grid;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-size: 1.04rem;
  font-weight: 850;
}

.subtle {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.match-list,
.player-list {
  display: grid;
}

.match-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  outline: 0;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.match-card:last-child,
.player-card:last-child {
  border-bottom: 0;
}

.match-card:hover,
.match-card:focus-visible {
  background: #f7fbf7;
}

.match-meta,
.market-row,
.transaction-row,
.bet-row,
.player-main,
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teams {
  display: grid;
  gap: 7px;
  font-weight: 830;
}

.team-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flag-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.flag-dot.amber {
  background: var(--amber);
}

.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.match-footer {
  display: flex;
  align-items: center;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 820;
}

.match-footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.odd-button {
  display: grid;
  min-height: 62px;
  gap: 4px;
  padding: 8px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.odd-button:hover,
.odd-button.selected {
  border-color: var(--green);
  background: var(--accent-soft);
}

.odd-label {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odd-price {
  font-size: 1.18rem;
  font-weight: 880;
}

.betslip {
  position: sticky;
  top: 68px;
}

.mobile-slip-trigger,
.mobile-slip-layer {
  display: none;
}

.slip-body,
.form-stack,
.history-list,
.bet-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.detail-body {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.detail-title {
  margin-top: 8px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.match-headline {
  color: #24342a;
  font-size: 1.05rem;
  line-height: 1.55;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.stat-card strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.form-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.form-dot {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #e8eee9;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.form-dot.w {
  background: var(--chip-green-bg);
  color: var(--chip-green-text);
}

.form-dot.l {
  background: #ffe2de;
  color: #8f241e;
}

.form-dot.d {
  background: #e0eef8;
  color: #194a71;
}

.market-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.market-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: var(--ink);
  text-align: left;
}

.market-button:hover,
.market-button.selected {
  border-color: var(--green);
  background: var(--accent-soft);
}

.detail-odds {
  margin-top: 10px;
}

.score-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.score-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.score-column-title {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.score-column-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.result-summary {
  grid-column: 1 / -1;
}

.settled-list .match-card {
  background: #fbfcfb;
}

.form-stack.inset {
  padding: 0;
}

.selection-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.verification-workspace,
.account-workspace {
  display: grid;
  gap: 18px;
}

.verification-overview,
.account-overview,
.account-contact-panel {
  grid-column: 1 / -1;
}

.verification-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.verification-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.verification-step span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-weight: 900;
}

.verification-step.complete span {
  background: var(--chip-green-bg);
  color: var(--chip-green-text);
}

.verification-step strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.verification-form,
.account-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.verification-form {
  grid-column: 1 / -1;
}

.verification-section {
  height: 100%;
}

.verification-section:last-child,
.verification-review-panel {
  grid-column: 1 / -1;
}

.verification-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.account-summary-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.account-summary-item span,
.account-summary-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.account-summary-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-readonly-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0 16px 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wallet-grad);
}

.profile-readonly-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 12px 28px rgba(31, 94, 255, 0.2);
}

.profile-readonly-avatar i {
  width: 22px;
  height: 22px;
}

.profile-readonly-header strong,
.profile-readonly-header span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-readonly-header strong {
  color: var(--ink-strong);
  font-size: 1.1rem;
}

.profile-readonly-header span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.profile-detail-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.profile-detail-item.wide {
  grid-column: span 2;
}

.profile-detail-item span,
.profile-detail-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-detail-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-readonly-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 16px;
}

.account-hub {
  display: grid;
  gap: 18px;
}

.account-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-category-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.account-category-card:hover {
  border-color: var(--accent);
  background: var(--hover-soft);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

.account-category-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.account-category-card span:not(.account-category-icon) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.account-category-card strong {
  font-size: 1rem;
}

.account-category-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.account-category-card em {
  min-width: max-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
}

.account-detail-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-side-nav {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.account-side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  text-align: left;
}

.account-side-nav button:hover,
.account-side-nav button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.account-side-nav .account-back-button {
  margin-bottom: 4px;
  color: var(--ink);
}

.account-detail-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.account-page-panel {
  min-width: 0;
}

.account-form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
}

.account-section,
.account-appearance-panel .appearance-panel {
  height: 100%;
}

.contact-verification-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.contact-verification-list.single-page {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 14px;
  padding: 0;
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.contact-card.verified {
  border-color: color-mix(in srgb, var(--chip-green-text), transparent 72%);
  background: var(--chip-green-bg);
}

.contact-card.missing {
  background: var(--surface-2);
}

.contact-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.contact-card-head > div {
  min-width: 0;
  flex: 1;
}

.contact-card-head .chip {
  flex: 0 0 auto;
  justify-self: end;
}

.contact-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-card-actions {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.contact-card-actions .contact-send-form {
  grid-template-columns: 1fr;
}

.contact-card-actions .contact-send-form .secondary {
  width: 100%;
}

.contact-code-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.contact-inline-action {
  justify-self: start;
}

.contact-code-helper {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
}

.contact-code-helper strong {
  font-size: 0.88rem;
}

.contact-code-helper span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.contact-code-helper.muted {
  background: var(--soft);
}

.slip-list {
  display: grid;
  gap: 10px;
}

.slip-selection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.icon-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.field {
  display: grid;
  gap: 7px;
}

.two-col {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: end;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus {
  border-color: var(--green);
  outline: 3px solid rgba(21, 122, 74, 0.16);
}

.primary,
.secondary,
.danger,
.ghost,
.text-button,
.segment button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 850;
}

.primary {
  background: var(--green);
  color: #fff;
}

.primary:hover {
  background: var(--green-dark);
}

.secondary {
  border: 1px solid #cfd8d1;
  background: #fff;
  color: var(--ink);
}

.danger {
  background: var(--red);
  color: #fff;
}

.ghost {
  background: transparent;
  color: inherit;
}

.text-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--green);
}

.small {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 0.86rem;
}

.full,
.link-button {
  width: 100%;
}

.link-button {
  text-decoration: none;
}

.segment {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.segment.wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segment button {
  min-height: 34px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}

.segment button.active {
  background: var(--coal);
  color: #fff;
}

.summary-number {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8eee9;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 780;
  white-space: nowrap;
}

.chip.green {
  background: var(--chip-green-bg);
  color: var(--chip-green-text);
}

.chip.blue {
  background: #e0eef8;
  color: #194a71;
}

.chip.red {
  background: #ffe2de;
  color: #8f241e;
}

.amount-up {
  color: var(--green);
}

.amount-down {
  color: var(--red);
}

.align-right {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.divider {
  height: 1px;
  background: var(--line);
}

.empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.login-layout {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  background: #050913;
  color: var(--ink);
}

.login-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 42px clamp(22px, 6vw, 76px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(5, 9, 19, 0.18), rgba(5, 9, 19, 0.42) 36%, rgba(7, 10, 19, 0.96) 76%, #050913),
    radial-gradient(circle at 80% 58%, rgba(47, 107, 255, 0.5), transparent 30%),
    linear-gradient(120deg, rgba(233, 69, 96, 0.34), rgba(255, 255, 255, 0) 42%),
    url("assets/stadium-hero.png") center / cover;
}

.login-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 19, 0.82), rgba(5, 9, 19, 0.22) 62%, rgba(5, 9, 19, 0.12)),
    radial-gradient(circle at 76% 18%, rgba(255, 227, 154, 0.22), transparent 28%);
  pointer-events: none;
}

.campaign-copy {
  position: absolute;
  inset: 0;
  z-index: 0;
  align-items: stretch;
  justify-content: stretch;
  isolation: isolate;
  min-height: 100vh;
  padding: 0;
  background: #050913;
}

.campaign-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background:
    linear-gradient(90deg, rgba(5, 9, 19, 0.56) 0%, rgba(5, 9, 19, 0.2) 38%, rgba(5, 9, 19, 0.42) 68%, #050913 100%);
  pointer-events: none;
}

.campaign-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 227, 154, 0.16), transparent 28%),
    linear-gradient(180deg, transparent 0 54%, rgba(5, 9, 19, 0.64) 100%),
    linear-gradient(90deg, transparent 0 52%, rgba(5, 9, 19, 0.32) 72%, #050913 100%);
  pointer-events: none;
}

.campaign-hero-image {
  display: block;
  width: min(100%, 980px);
  height: auto;
  max-height: min(680px, calc(100vh - 36px));
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.18);
}

.campaign-copy .campaign-hero-image {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  max-height: none;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform-origin: 58% 50%;
  animation: loginSceneDrift 18s ease-in-out infinite alternate;
  border-radius: 0;
  box-shadow: none;
}

.campaign-overlay {
  position: absolute;
  z-index: 2;
  left: clamp(30px, 5.8vw, 94px);
  bottom: clamp(42px, 6vh, 78px);
  width: min(620px, 76%);
  color: #fff;
  pointer-events: none;
  animation: textFloatIn 0.72s ease both;
}

.login-campaign-overlay {
  left: clamp(32px, 5vw, 84px);
  right: min(34vw, 480px);
  top: clamp(30px, 5vh, 62px);
  bottom: clamp(44px, 7vh, 86px);
  width: auto;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: none;
}

.campaign-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 3vw, 34px);
  color: #fff;
  font-weight: 900;
  font-size: clamp(1.18rem, 1.8vw, 2rem);
  letter-spacing: 0;
}

.login-campaign-overlay .campaign-lockup {
  width: max-content;
  max-width: 100%;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-size: clamp(1.05rem, 1.35vw, 1.42rem);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
}

.campaign-logo.brand-logo {
  width: clamp(58px, 5.6vw, 94px);
  height: clamp(58px, 5.6vw, 94px);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.42));
}

.login-campaign-overlay .campaign-logo.brand-logo {
  width: clamp(42px, 3.4vw, 52px);
  height: clamp(42px, 3.4vw, 52px);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.9) 62%, rgba(213, 225, 245, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 24px rgba(0, 0, 0, 0.28);
  filter: none;
}

.login-campaign-overlay .campaign-logo.brand-logo img {
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.22));
}

.campaign-overlay h1 {
  max-width: 620px;
  font-size: clamp(2.25rem, 3.15vw, 3.45rem);
  line-height: 0.94;
  white-space: nowrap;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.44);
}

.campaign-overlay p {
  width: min(460px, 100%);
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.45;
}

.login-campaign-message {
  position: relative;
  top: auto;
  left: auto;
  align-self: flex-start;
  width: min(860px, 100%);
  max-width: 100%;
  margin: 0;
  text-align: left;
  transform: none;
}

.login-campaign-message .eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
}

.login-copy .brand {
  position: absolute;
  top: 34px;
  left: clamp(22px, 6vw, 76px);
  color: #fff;
  z-index: 2;
}

.login-message {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin-top: min(20vh, 180px);
}

.login-copy h1 {
  max-width: 620px;
  font-size: clamp(3rem, 7.5vw, 6.8rem);
  line-height: 0.92;
}

.campaign-copy .campaign-overlay h1 {
  max-width: none;
  font-size: clamp(3rem, 4.4vw, 4.85rem);
  line-height: 0.94;
  white-space: nowrap;
}

.login-star {
  position: absolute;
  right: clamp(10px, 5vw, 88px);
  bottom: -18px;
  z-index: 1;
  width: min(34vw, 430px);
  min-width: 280px;
  opacity: 0.98;
}

.login-card {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(430px, calc(100% - 36px));
  margin: 0;
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.login-panel-zone {
  position: relative;
  z-index: 2;
  grid-column: 2;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 100vh;
  padding: clamp(18px, 2.4vw, 34px);
  background:
    linear-gradient(90deg, rgba(5, 9, 19, 0), rgba(5, 9, 19, 0.58) 18%, rgba(8, 13, 27, 0.92) 62%, #050913);
  color: #fff;
  box-shadow: -70px 0 110px rgba(5, 9, 19, 0.66);
}

.login-top-actions {
  position: absolute;
  top: clamp(20px, 3vw, 34px);
  right: clamp(18px, 2.6vw, 34px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 36px);
}

.login-language {
  position: static;
  width: 136px;
  min-width: 118px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(16, 23, 40, 0.72);
  color: #fff;
  padding: 0 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  font-weight: 780;
}

.login-support {
  position: absolute;
  right: clamp(18px, 2.6vw, 34px);
  bottom: clamp(20px, 3vw, 34px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--portal-orange);
  color: #fff;
  box-shadow: 0 18px 36px rgba(255, 129, 56, 0.22);
  font-weight: 850;
}

.login-support:hover {
  background: var(--portal-orange-dark);
}

.login-panel-zone::before {
  display: none;
}

.login-panel-zone::after {
  display: none;
}

.login-live-strip {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100% - 44px));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(19, 29, 51, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.login-live-strip span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-live-strip strong {
  color: #fff;
  font-size: 1.05rem;
}

.login-live-strip {
  position: absolute;
  bottom: clamp(18px, 3vh, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  animation: textFloatIn 0.82s ease 0.14s both;
}

.login-live-strip em {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #050913 !important;
  font-style: normal;
  font-weight: 900;
}

.login-card .panel-header {
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 26px 42px 14px;
  border-bottom: 0;
  text-align: center;
}

.login-panel-zone .login-card {
  background: transparent;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
  animation: cardFloatIn 0.62s cubic-bezier(0.2, 0.9, 0.24, 1) both;
}

.login-card .panel-header::before {
  display: none;
}

.login-card .login-form-logo {
  width: 72px;
  height: 72px;
  padding: 7px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.92) 62%, rgba(213, 225, 245, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 36px rgba(0, 0, 0, 0.28);
  filter: none;
}

.login-card .panel-title {
  color: #fff;
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  font-weight: 850;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.login-card .form-stack {
  gap: 18px;
  padding: 0;
}

.login-card .segment {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: rgba(232, 236, 244, 0.94);
  padding: 4px;
}

.login-card .segment button {
  min-height: 48px;
  border-radius: 7px;
  font-size: 0.98rem;
  font-weight: 760;
}

.login-card .segment button.active {
  background: var(--portal-teal);
  color: #fff;
}

.login-card input,
.login-card select {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: rgba(245, 247, 252, 0.96);
  padding: 0 18px;
  color: #071026;
}

.login-card input:focus,
.login-card select:focus {
  outline: 3px solid rgba(31, 94, 255, 0.16);
}

.login-card .primary {
  min-height: 58px;
  border-radius: 999px;
  background: var(--portal-orange);
  box-shadow: 0 12px 24px rgba(31, 94, 255, 0.24);
  font-weight: 800;
}

.login-card .primary:hover {
  background: var(--portal-orange-dark);
}

.command-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--coal);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  gap: 18px;
  place-items: center;
  align-content: center;
  background: var(--paper);
}

.loader {
  width: 42px;
  height: 42px;
  border: 4px solid var(--line);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

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

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loginSceneDrift {
  from {
    transform: scale(1.02) translateX(-1.2%);
  }
  to {
    transform: scale(1.08) translateX(1.2%);
  }
}

@keyframes bannerImageDrift {
  from {
    transform: scale(1.02) translateX(-1%);
  }
  to {
    transform: scale(1.08) translateX(1%);
  }
}

@keyframes campaignSlide {
  0%,
  27% {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
  }
  33%,
  94% {
    opacity: 0;
    transform: scale(1.015);
    z-index: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
  }
}

@keyframes dotFill {
  0% {
    transform: translateX(-100%);
  }
  27% {
    transform: translateX(0);
  }
  33%,
  100% {
    transform: translateX(100%);
  }
}

.admin-hero {
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid #eef0f1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.admin-hero .brand-logo {
  filter: drop-shadow(0 8px 14px rgba(31, 94, 255, 0.14));
}

.admin-hero .ghost {
  color: var(--portal-teal);
}

.admin-hero + .nav-band .tab.active {
  background: var(--portal-teal);
}

.admin-grid .primary,
.match-admin-grid .primary,
.add-match-page .primary,
.message-admin-grid .primary,
.account-grid .primary,
.wallet-grid .primary,
.kyc-grid .primary {
  background: var(--portal-orange);
}

.admin-grid .primary:hover,
.match-admin-grid .primary:hover,
.add-match-page .primary:hover,
.message-admin-grid .primary:hover,
.account-grid .primary:hover,
.wallet-grid .primary:hover,
.kyc-grid .primary:hover {
  background: var(--portal-orange-dark);
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 18px;
}

.stat-box {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid #e7ecee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.stat-box span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.stat-box strong {
  color: var(--portal-teal);
  font-size: 1.8rem;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-metric small {
  color: var(--muted);
  font-weight: 750;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.casino-admin-grid {
  align-items: start;
}

.casino-control-panel {
  grid-column: span 2;
}

.casino-control-form {
  gap: 18px;
}

.casino-testing-box {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(11, 31, 51, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(11, 31, 51, 0.04), rgba(18, 129, 124, 0.07)),
    var(--surface, #fff);
}

.casino-testing-box > div:first-child strong {
  display: block;
  color: var(--ink-strong);
  font-size: 0.94rem;
}

.casino-keep-active {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(11, 31, 51, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-weight: 800;
}

.casino-keep-active input {
  width: 18px;
  height: 18px;
}

.casino-control-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.casino-audit-row .chip {
  white-space: nowrap;
}

.compact-list {
  max-height: 680px;
  overflow: auto;
}

.player-card {
  border-width: 0 0 1px;
  border-radius: 0;
}

.player-card.open-row {
  background: #f7fbf7;
}

.player-risk-row {
  justify-content: flex-start;
  margin-top: 10px;
}

.balance-history-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.balance-history-strip div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #e7ecee;
  border-radius: 8px;
  background: var(--panel-soft);
}

.balance-history-strip span,
.balance-history-strip small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 740;
}

.player-card > .admin-actions:last-child {
  margin-top: 12px;
}

.admin-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.match-edit-form {
  display: grid;
  gap: 10px;
}

.match-management-hero .panel-header {
  align-items: center;
}

.premium-action {
  min-width: 148px;
  box-shadow: 0 14px 26px rgba(214, 165, 40, 0.22);
}

.match-admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.add-match-page {
  overflow: visible;
}

.add-match-header .panel-title {
  margin-top: 12px;
  font-size: 1.36rem;
}

.admin-add-match-form {
  gap: 18px;
  padding: 16px;
}

.admin-form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.admin-section-heading > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--coal);
  color: var(--gold);
  font-weight: 900;
}

.admin-section-heading h3 {
  margin: 0 0 4px;
  color: var(--ink-strong);
  font-size: 1rem;
}

.score-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.correct-score-section {
  border-color: rgba(214, 165, 40, 0.26);
  background:
    linear-gradient(135deg, rgba(214, 165, 40, 0.08), rgba(120, 167, 255, 0.06)),
    var(--coal);
  color: #fff;
}

.correct-score-section .subtle,
.correct-score-section label {
  color: rgba(245, 247, 251, 0.72);
}

.correct-score-section .admin-section-heading h3 {
  color: #fff;
}

.correct-score-section .admin-section-heading > span {
  background: rgba(242, 199, 91, 0.13);
  color: var(--gold);
}

.add-match-actions {
  position: sticky;
  z-index: 3;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 0;
  background: linear-gradient(180deg, transparent, var(--surface) 26%);
}

.result-form {
  margin-top: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.admin-score-field {
  min-width: 0;
}

.admin-score-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.58fr) minmax(0, 1fr);
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding: 2px 6px 2px 2px;
}

.admin-score-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(242, 199, 91, 0.15);
  border-radius: 8px;
  background: rgba(5, 9, 19, 0.5);
}

.admin-score-column-title {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(242, 199, 91, 0.1);
}

.admin-score-column-title strong {
  color: #fff;
  font-size: 0.94rem;
}

.admin-score-column-title span {
  color: rgba(245, 247, 251, 0.66);
  font-size: 0.76rem;
  font-weight: 760;
}

.admin-score-grid {
  display: grid;
  gap: 8px;
}

.score-odd-card {
  display: grid;
  grid-template-columns: minmax(36px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(242, 199, 91, 0.18);
  border-radius: 8px;
  background: rgba(16, 23, 40, 0.92);
}

.score-odd-card span {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 850;
}

.score-odd-card input {
  min-height: 34px;
  border-color: rgba(120, 167, 255, 0.24);
  background: rgba(5, 9, 19, 0.92);
  color: #fff;
  text-align: right;
}

.score-odd-card input:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(242, 199, 91, 0.14);
}

.remove-match-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.user-message-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.user-message-row.active {
  border-color: var(--green);
  background: var(--accent-soft);
}

.user-message-row span:first-child {
  display: grid;
  gap: 4px;
}

.user-message-row small {
  color: var(--muted);
  font-weight: 700;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.95rem;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.assistant-panel {
  grid-column: 1 / -1;
}

.chat-list {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding: 16px;
}

.chat-bubble {
  display: grid;
  gap: 6px;
  max-width: 78%;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.chat-bubble span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.chat-bubble.user {
  justify-self: end;
  background: var(--coal);
  color: #fff;
}

.chat-bubble.user span {
  color: rgba(255, 255, 255, 0.75);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0 16px 16px;
}

.compact-empty {
  min-height: 90px;
}

.strong-line {
  font-weight: 850;
}

.home-page {
  display: grid;
  gap: 28px;
}

.home-promo {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
  min-height: 230px;
  margin: -18px calc(50% - 50vw) 16px;
  padding: 24px max(18px, calc(50vw - 590px));
  background:
    radial-gradient(circle at 18% 50%, rgba(214, 165, 40, 0.2), transparent 28%),
    radial-gradient(circle at 82% 35%, rgba(31, 94, 255, 0.22), transparent 32%),
    linear-gradient(90deg, #eef2f8, #fff);
}

.home-promo-art {
  position: relative;
  display: grid;
  width: 230px;
  height: 210px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(31, 94, 255, 0.22), rgba(233, 69, 96, 0.16));
  box-shadow: none;
  transform: none;
}

.home-promo-art::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 227, 154, 0.2), transparent 64%);
}

.home-promo-art .brand-logo {
  width: 94px;
  height: 94px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.2));
  transform: rotate(4deg);
}

.promo-star {
  position: relative;
  z-index: 1;
  width: 255px;
  transform: translateY(18px);
}

.home-promo h1 {
  max-width: none;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 0.98;
}

.home-promo .eyebrow {
  color: var(--portal-orange);
}

.home-promo p:last-child {
  max-width: 680px;
  margin-top: 12px;
  color: #60646a;
  font-size: 1.02rem;
  line-height: 1.5;
}

.campaign-banner {
  display: block;
  position: relative;
  overflow: hidden;
  height: clamp(360px, 42vw, 620px);
  min-height: 0;
  margin: -22px calc(50% - 50vw) 22px;
  padding: 0;
  border-radius: 0;
  background: #050913;
}

.campaign-slider {
  isolation: isolate;
  box-shadow: 0 22px 64px rgba(5, 9, 19, 0.24);
}

.campaign-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  animation: campaignSlide 18s ease-in-out infinite;
}

.campaign-slide > .campaign-overlay,
.campaign-slide > .campaign-odds-strip,
.campaign-slide > .campaign-live-board,
.campaign-slide > .campaign-ticket-stack {
  position: absolute;
  z-index: 3;
}

.campaign-slide.slide-2 {
  animation-delay: 6s;
}

.campaign-slide.slide-3 {
  animation-delay: 12s;
}

.campaign-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 56%, rgba(214, 165, 40, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(5, 9, 19, 0.96) 0%, rgba(5, 9, 19, 0.78) 34%, rgba(5, 9, 19, 0.28) 62%, rgba(5, 9, 19, 0.06) 100%);
  pointer-events: none;
}

.campaign-slide.visual-markets::after {
  background:
    linear-gradient(90deg, rgba(4, 7, 16, 0.92) 0%, rgba(4, 7, 16, 0.74) 46%, rgba(4, 7, 16, 0.46) 100%),
    radial-gradient(circle at 74% 32%, rgba(255, 205, 86, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(255, 87, 135, 0.24), transparent 38%);
}

.campaign-slide.visual-wallet {
  background:
    radial-gradient(circle at 72% 44%, rgba(255, 205, 86, 0.28), transparent 25%),
    radial-gradient(circle at 84% 82%, rgba(255, 87, 135, 0.26), transparent 30%),
    linear-gradient(135deg, #060a17 0%, #101a34 56%, #090912 100%);
}

.campaign-slide.visual-wallet::after {
  background:
    linear-gradient(90deg, rgba(5, 9, 19, 0.94) 0%, rgba(5, 9, 19, 0.7) 48%, rgba(5, 9, 19, 0.18) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px);
}

.campaign-banner .campaign-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 66% center;
  border-radius: 0;
  box-shadow: none;
  transform-origin: 58% 50%;
  animation: bannerImageDrift 18s ease-in-out infinite alternate;
}

.campaign-bg-image,
.campaign-ghost-player {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.campaign-bg-image {
  opacity: 0.68;
  filter: saturate(1.16) contrast(1.05);
  transform-origin: center;
  animation: bannerImageDrift 20s ease-in-out infinite alternate;
}

.campaign-ghost-player {
  width: 64%;
  left: auto;
  right: 0;
  object-position: right center;
  opacity: 0.72;
  filter: saturate(1.12) contrast(1.08);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
}

.campaign-banner .campaign-overlay {
  left: max(24px, calc(50vw - 570px));
  bottom: clamp(38px, 6vw, 82px);
  width: min(680px, 52vw);
}

.campaign-banner .home-campaign-overlay {
  top: clamp(32px, 4.2vw, 58px);
  bottom: clamp(42px, 6.8vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(600px, 46vw);
  animation: none;
}

.campaign-message {
  width: min(560px, 100%);
}

.campaign-banner .campaign-lockup {
  width: max-content;
  max-width: 100%;
  margin-bottom: 0;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(6, 10, 22, 0.36);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  font-size: clamp(1rem, 1.25vw, 1.32rem);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
}

.campaign-banner .campaign-logo.brand-logo {
  width: clamp(40px, 3.3vw, 56px);
  height: clamp(40px, 3.3vw, 56px);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.9) 62%, rgba(213, 225, 245, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 24px rgba(0, 0, 0, 0.28);
  filter: none;
}

.campaign-banner .campaign-logo.brand-logo img {
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.22));
}

.campaign-banner .campaign-overlay h1 {
  max-width: 9ch;
  font-size: clamp(3rem, 5.8vw, 6.2rem);
  line-height: 0.92;
  white-space: normal;
}

.campaign-banner .campaign-overlay p {
  margin-top: 12px;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.campaign-banner .campaign-message .eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  letter-spacing: 0.08em;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.campaign-odds-strip {
  right: max(24px, calc(50vw - 570px));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(11, 17, 34, 0.74);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.campaign-odds-strip span,
.campaign-live-board span,
.campaign-mini-ticket span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campaign-odds-strip strong {
  color: #fff;
}

.campaign-odds-strip em,
.campaign-board-row strong {
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #050913;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.campaign-live-board {
  top: 50%;
  right: max(24px, calc(50vw - 570px));
  width: min(470px, 34vw);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(10, 16, 32, 0.78);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  transform: translateY(-50%);
}

.campaign-board-head,
.campaign-board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.campaign-board-head {
  padding-bottom: 12px;
  color: #fff;
}

.campaign-board-head strong {
  color: var(--gold);
}

.campaign-board-row {
  min-height: 58px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.campaign-board-row > span {
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}

.campaign-board-row div {
  display: flex;
  gap: 8px;
}

.campaign-board-row strong {
  min-width: 48px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.campaign-ticket-stack {
  right: max(24px, calc(50vw - 555px));
  bottom: clamp(44px, 7vw, 94px);
  display: grid;
  gap: 12px;
  width: min(360px, 30vw);
}

.campaign-mini-ticket {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(10, 16, 32, 0.78);
  color: #fff;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  transform: translateX(8px);
}

.campaign-mini-ticket.main-ticket {
  transform: translateX(-26px) rotate(-1.5deg);
}

.campaign-mini-ticket.win-ticket {
  transform: translateX(-6px) rotate(1deg);
}

.campaign-mini-ticket strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}

.campaign-mini-ticket em {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.campaign-dots {
  position: absolute;
  z-index: 4;
  left: max(24px, calc(50vw - 570px));
  bottom: 24px;
  display: flex;
  gap: 9px;
}

.campaign-dots span {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.campaign-dots span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: translateX(-100%);
  animation: dotFill 18s linear infinite;
}

.campaign-dots span:nth-child(2)::after {
  animation-delay: 6s;
}

.campaign-dots span:nth-child(3)::after {
  animation-delay: 12s;
}

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

.home-card {
  padding: 26px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}

.home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.home-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.home-eye {
  color: #9b9b9b;
}

.home-balance-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.home-balance-line strong {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
}

.home-quick-actions,
.home-market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-quick-actions button,
.home-market-tabs span {
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #e8e8e8;
  color: #1f1f1f;
  font-weight: 760;
}

.home-quick-actions button:first-child,
.home-market-tabs span.active {
  background: #1f1f1f;
  color: #fff;
}

.home-account-rows {
  display: grid;
  gap: 18px;
}

.home-account-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(70px, auto) minmax(130px, auto);
  align-items: center;
  gap: 12px;
  color: #5f6468;
}

.home-account-row strong {
  color: #1f1f1f;
  font-size: 1.05rem;
}

.home-account-row em {
  color: #1f1f1f;
  font-style: normal;
  text-align: right;
}

.markets-card {
  display: grid;
  gap: 10px;
}

.home-market-tabs {
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e5e5;
}

.home-market-list {
  display: grid;
}

.home-market-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #ededed;
  outline: 0;
}

.home-market-row:last-child {
  border-bottom: 0;
}

.home-market-row:hover,
.home-market-row:focus-visible {
  background: #fafafa;
}

.home-market-row p {
  margin-top: 5px;
  color: #74797d;
}

.home-market-prices {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  gap: 8px;
}

.home-market-prices span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 8px;
  background: #f1f1f2;
  font-weight: 850;
}

.casino-page {
  display: grid;
  gap: 24px;
}

.casino-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  overflow: hidden;
  min-height: 340px;
  padding: 38px;
  border: 1px solid rgba(242, 199, 91, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 26%, rgba(242, 199, 91, 0.28), transparent 34%),
    radial-gradient(circle at 14% 82%, rgba(233, 69, 96, 0.2), transparent 35%),
    linear-gradient(135deg, #030712 0%, #08122b 54%, #1a0711 100%);
  color: #fff;
  box-shadow:
    0 24px 70px rgba(5, 9, 19, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.casino-hero::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(242, 199, 91, 0.14), transparent 24%, transparent 74%, rgba(233, 69, 96, 0.16)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 78px);
}

.casino-hero::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 26px;
  left: 34px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(242, 199, 91, 0.58), transparent);
}

.casino-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 620px;
  gap: 16px;
}

.casino-hero h2 {
  max-width: 10ch;
  color: #fff;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

.casino-hero p:not(.eyebrow) {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.5;
}

.casino-hero-art {
  position: relative;
  z-index: 1;
  min-height: 250px;
}

.casino-hero-art::before {
  content: "";
  position: absolute;
  inset: 70px 4px 26px 30px;
  border: 1px solid rgba(242, 199, 91, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(4, 41, 31, 0.74), rgba(92, 8, 22, 0.68)),
    linear-gradient(135deg, rgba(242, 199, 91, 0.12), transparent);
  box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.34);
  transform: rotate(-8deg);
}

.casino-orbit-ring {
  position: absolute;
  inset: 20px 34px 18px 28px;
  border: 1px solid rgba(242, 199, 91, 0.32);
  border-radius: 999px;
  box-shadow:
    0 0 32px rgba(242, 199, 91, 0.12),
    inset 0 0 34px rgba(242, 199, 91, 0.08);
  transform: rotate(-14deg);
}

.casino-coin-field {
  position: absolute;
  inset: 0;
}

.casino-coin-field span {
  position: absolute;
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(120, 78, 14, 0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 30%, #fff0a9 0 12%, transparent 13%),
    radial-gradient(circle, #f2c75b 0 42%, #b87917 43% 66%, #f5d778 67% 100%);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(242, 199, 91, 0.2);
}

.casino-coin-field span:nth-child(1) {
  top: 28px;
  right: 50px;
}

.casino-coin-field span:nth-child(2) {
  top: 74px;
  right: 14px;
  width: 26px;
  height: 26px;
}

.casino-coin-field span:nth-child(3) {
  right: 172px;
  bottom: 34px;
  width: 28px;
  height: 28px;
}

.casino-coin-field span:nth-child(4) {
  right: 104px;
  bottom: 82px;
  width: 22px;
  height: 22px;
}

.hero-chip-stack {
  position: absolute;
  right: 48px;
  bottom: 24px;
}

.casino-hero-cards {
  position: absolute;
  top: 20px;
  right: 118px;
  display: flex;
}

.casino-hero-cards .casino-playing-card {
  width: 92px;
  height: 128px;
}

.casino-hero-cards .casino-playing-card + .casino-playing-card {
  margin-left: -30px;
  transform: rotate(10deg) translateY(16px);
}

.casino-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.casino-game-card {
  position: relative;
  display: grid;
  align-content: start;
  overflow: hidden;
  min-height: 438px;
  padding: 0;
  border: 1px solid rgba(242, 199, 91, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0)),
    #0b1020;
  color: #fff;
  text-align: left;
  box-shadow: 0 18px 48px rgba(5, 9, 19, 0.24);
  cursor: pointer;
  isolation: isolate;
  transform: translateY(0);
}

.casino-game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 199, 91, 0.22), transparent 28%, transparent 68%, rgba(233, 69, 96, 0.16)),
    radial-gradient(circle at 26% 8%, rgba(242, 199, 91, 0.12), transparent 32%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.casino-game-card:hover,
.casino-game-card:focus-visible {
  border-color: rgba(242, 199, 91, 0.74);
  box-shadow:
    0 24px 62px rgba(5, 9, 19, 0.32),
    0 0 0 1px rgba(242, 199, 91, 0.26),
    0 0 36px rgba(242, 199, 91, 0.2);
  transform: translateY(-5px);
}

.casino-game-card:hover::after,
.casino-game-card:focus-visible::after {
  opacity: 1;
}

.casino-game-card strong,
.casino-game-card small {
  display: block;
}

.casino-game-card strong {
  color: #fff;
  font-size: 1.28rem;
  letter-spacing: 0;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.44);
}

.casino-game-card small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.38;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
  overflow-wrap: anywhere;
}

.casino-poster {
  position: relative;
  display: grid;
  min-height: 300px;
  aspect-ratio: 16 / 10.6;
  place-items: center;
  border-radius: 8px 8px 0 0;
  background:
    radial-gradient(circle at 24% 24%, rgba(242, 199, 91, 0.22), transparent 32%),
    linear-gradient(135deg, #101728, #050913);
  overflow: hidden;
  box-shadow: inset 0 -64px 90px rgba(0, 0, 0, 0.5);
}

.casino-poster-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.34s ease, filter 0.34s ease;
}

.casino-poster-image[hidden] {
  display: none;
}

.casino-poster-fallback {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  place-items: center;
  transition: transform 0.34s ease;
}

.casino-game-card:hover .casino-poster-image,
.casino-game-card:focus-visible .casino-poster-image,
.casino-game-card:hover .casino-poster-fallback,
.casino-game-card:focus-visible .casino-poster-fallback {
  transform: scale(1.035);
}

.casino-poster-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: grid;
  gap: 12px;
  padding: 74px 18px 18px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(5, 9, 19, 0.66) 38%, rgba(5, 9, 19, 0.96) 100%);
  pointer-events: none;
}

.casino-card-copy {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.casino-card-copy > div {
  min-width: 0;
}

.casino-game-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(242, 199, 91, 0.14);
  color: #f2c75b;
  box-shadow: inset 0 0 0 1px rgba(242, 199, 91, 0.2);
}

.casino-card-body {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    #0b1020;
}

.casino-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.casino-tag-row span {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(242, 199, 91, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 820;
}

.casino-game-card .casino-play-button {
  width: 100%;
  justify-self: stretch;
  margin-top: auto;
  border: 1px solid rgba(255, 240, 169, 0.38);
  background: linear-gradient(135deg, #fff0a9 0%, #f2c75b 36%, #b87917 100%);
  color: #070a13;
  box-shadow:
    0 14px 28px rgba(214, 165, 40, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.casino-game-card:hover .casino-play-button,
.casino-game-card:focus-visible .casino-play-button {
  box-shadow:
    0 16px 32px rgba(214, 165, 40, 0.28),
    0 0 20px rgba(242, 199, 91, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.casino-placeholder-panel {
  min-height: 220px;
}

.casino-poster-scene {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 210px;
  place-items: center;
}

.casino-poster-scene::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(242, 199, 91, 0.16);
  border-radius: 8px;
}

.slot-poster {
  background:
    radial-gradient(circle at 50% 18%, rgba(242, 199, 91, 0.18), transparent 35%),
    linear-gradient(150deg, rgba(233, 69, 96, 0.12), transparent 42%);
}

.blackjack-poster {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(242, 199, 91, 0.13), rgba(5, 9, 19, 0));
}

.baccarat-poster {
  background:
    radial-gradient(circle at 70% 34%, rgba(233, 69, 96, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(242, 199, 91, 0.12), rgba(5, 9, 19, 0));
}

.slot-cabinet {
  position: relative;
  display: grid;
  width: min(86%, 250px);
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(242, 199, 91, 0.36);
  border-radius: 8px;
  background: linear-gradient(180deg, #151d31, #080d1d);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.26);
}

.slot-cabinet-top {
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #d6a528, #f2c75b);
  color: #080d1d;
  font-size: 0.8rem;
  font-weight: 950;
}

.slot-cabinet .casino-reel-window.mini {
  width: 100%;
}

.slot-cabinet .casino-reel-window.mini span {
  min-height: 58px;
  font-size: 0.92rem;
}

.slot-cabinet-base {
  min-height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(233, 69, 96, 0.8), rgba(242, 199, 91, 0.9));
}

.casino-chip-selector {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(242, 199, 91, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(242, 199, 91, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(3, 7, 18, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 30px rgba(0, 0, 0, 0.18);
}

.casino-chip-selector.is-locked {
  opacity: 0.78;
}

.casino-chip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.casino-chip-head > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.casino-chip-head span,
.casino-chip-current span {
  color: rgba(255, 240, 169, 0.78);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.casino-chip-head small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
}

.casino-chip-current {
  display: grid;
  justify-items: end;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid rgba(242, 199, 91, 0.22);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.54);
}

.casino-chip-current strong {
  color: #fff0a9;
  font-size: 1.02rem;
}

.casino-chip-stake-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(242, 199, 91, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    #050913;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
  text-align: center;
}

.casino-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.casino-bet-chip,
.casino-bet-chip-clear {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  min-width: 0;
  border: 0;
  font-weight: 950;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.casino-bet-chip {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.58);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.34),
    inset 0 2px 0 rgba(255, 255, 255, 0.34),
    inset 0 -8px 14px rgba(0, 0, 0, 0.28);
}

.casino-bet-chip::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -1;
  border: 4px dashed rgba(255, 255, 255, 0.82);
  border-radius: inherit;
  opacity: 0.9;
}

.casino-bet-chip::after {
  content: "";
  position: absolute;
  inset: 15px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.casino-bet-chip span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(3, 7, 18, 0.28);
  font-size: 0.76rem;
  line-height: 1;
}

.casino-bet-chip-navy {
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.36), transparent 30%),
    #123a78;
}

.casino-bet-chip-red {
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.34), transparent 30%),
    #b9152b;
}

.casino-bet-chip-white {
  color: #071126;
  text-shadow: none;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.78), transparent 32%),
    #edf2fb;
}

.casino-bet-chip-white::before {
  border-color: rgba(185, 21, 43, 0.72);
}

.casino-bet-chip-white span {
  background: rgba(242, 199, 91, 0.26);
}

.casino-bet-chip-gold,
.casino-bet-chip-max {
  color: #071126;
  text-shadow: none;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.52), transparent 32%),
    linear-gradient(145deg, #fff0a9, #f2c75b 48%, #a86d15);
}

.casino-bet-chip-black {
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.32), transparent 30%),
    #071126;
}

.casino-bet-chip:hover:not(:disabled),
.casino-bet-chip:focus-visible:not(:disabled),
.casino-bet-chip-clear:hover:not(:disabled),
.casino-bet-chip-clear:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(242, 199, 91, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.34),
    inset 0 -8px 14px rgba(0, 0, 0, 0.28);
  outline: none;
}

.casino-bet-chip:active:not(:disabled),
.casino-bet-chip-clear:active:not(:disabled) {
  transform: translateY(1px) scale(0.97);
}

.casino-bet-chip.is-pulsing,
.casino-bet-chip-clear.is-pulsing {
  animation: casinoBetChipPulse 0.38s ease both;
}

.casino-bet-chip.is-selected {
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(242, 199, 91, 0.32),
    0 0 24px rgba(242, 199, 91, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.34),
    inset 0 -8px 14px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.casino-bet-chip:disabled,
.casino-bet-chip-clear:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.52;
}

.casino-bet-chip-clear {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 240, 169, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    #071126;
  color: #fff0a9;
}

.casino-chip-warning {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 154, 174, 0.34);
  border-radius: 8px;
  background: rgba(80, 10, 25, 0.42);
  color: #ffb4c1;
  font-size: 0.78rem;
  font-weight: 850;
}

.baccarat-chip-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(242, 199, 91, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(242, 199, 91, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(3, 7, 18, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 30px rgba(0, 0, 0, 0.18);
}

.baccarat-chip-panel.is-locked {
  opacity: 0.78;
}

.baccarat-chip-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.baccarat-chip-panel-head > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.baccarat-chip-panel-head span,
.baccarat-chip-summary span,
.baccarat-bet-breakdown span {
  color: rgba(255, 240, 169, 0.78);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.baccarat-chip-panel-head small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
}

.baccarat-chip-summary {
  display: grid;
  justify-items: end;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid rgba(242, 199, 91, 0.22);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.54);
}

.baccarat-chip-summary strong {
  color: #fff0a9;
  font-size: 1.02rem;
}

.baccarat-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.baccarat-bet-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.baccarat-bet-breakdown div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 240, 169, 0.16);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.34);
}

.baccarat-bet-breakdown strong {
  color: #fff;
  font-size: 0.9rem;
}

.casino-chip-warning[hidden] {
  display: none;
}

.poster-cards .casino-playing-card {
  width: 78px;
  height: 110px;
}

.poster-cards .casino-playing-card + .casino-playing-card {
  margin-left: -28px;
}

.poster-cards .casino-playing-card:nth-child(2) {
  transform: rotate(6deg) translateY(7px);
}

.poster-cards .casino-playing-card:nth-child(3) {
  transform: rotate(12deg) translateY(18px);
}

.poster-table-line {
  position: absolute;
  right: 34px;
  bottom: 34px;
  left: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 199, 91, 0.58), transparent);
}

.baccarat-poster-labels {
  position: absolute;
  top: 28px;
  right: 28px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  font-weight: 900;
}

.poster-chip-row {
  position: absolute;
  right: 34px;
  bottom: 28px;
  display: flex;
}

.poster-chip-row span {
  width: 34px;
  height: 34px;
  border: 5px dashed rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: #e94560;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
}

.poster-chip-row span + span {
  margin-left: -12px;
}

.poster-chip-row span:nth-child(2) {
  background: #d6a528;
}

.poster-chip-row span:nth-child(3) {
  background: #1f5eff;
}

.casino-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.casino-play-panel {
  overflow: hidden;
}

.slot-page-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, auto);
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(242, 199, 91, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 18%, rgba(242, 199, 91, 0.24), transparent 30%),
    radial-gradient(circle at 16% 88%, rgba(233, 69, 96, 0.18), transparent 34%),
    linear-gradient(135deg, #030712, #071126 58%, #1b0710);
  color: #fff;
  box-shadow: 0 22px 58px rgba(5, 9, 19, 0.3);
}

.slot-page-header::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(242, 199, 91, 0.12), transparent 30%, rgba(233, 69, 96, 0.12)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 72px);
}

.slot-page-header > * {
  position: relative;
  z-index: 1;
}

.slot-page-header .secondary {
  border-color: rgba(242, 199, 91, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.slot-title-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.slot-title-copy h2 {
  color: #fff;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.slot-title-copy p:not(.eyebrow) {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.slot-balance-card {
  display: grid;
  gap: 7px;
  min-width: 210px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 199, 91, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.slot-balance-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.slot-balance-card strong {
  color: #f2c75b;
  font-size: 1.42rem;
  line-height: 1;
}

.slot-play-panel,
.slot-history-panel {
  border-color: rgba(242, 199, 91, 0.2);
  background:
    radial-gradient(circle at 18% 4%, rgba(242, 199, 91, 0.1), transparent 32%),
    linear-gradient(180deg, #0b1020, #050913);
  color: #fff;
  box-shadow: 0 22px 54px rgba(5, 9, 19, 0.28);
}

.slot-play-panel .panel-header,
.slot-history-panel .panel-header {
  border-color: rgba(255, 255, 255, 0.1);
}

.slot-play-panel .panel-title,
.slot-history-panel .panel-title,
.slot-history-panel .slot-spin-row strong {
  color: #fff;
}

.slot-play-panel .subtle,
.slot-history-panel .subtle {
  color: rgba(255, 255, 255, 0.66);
}

.slot-play-panel .casino-machine {
  gap: 18px;
  padding: 20px;
}

.slot-machine-frame {
  position: relative;
  display: grid;
  justify-self: center;
  width: min(100%, 720px);
  gap: 16px;
  padding: 18px 24px 28px;
  border: 1px solid rgba(242, 199, 91, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 28%),
    linear-gradient(180deg, #17213a 0%, #081024 46%, #030712 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -22px 50px rgba(0, 0, 0, 0.38),
    0 30px 58px rgba(0, 0, 0, 0.34);
}

.slot-machine-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(255, 240, 169, 0.18);
  border-radius: 8px;
  box-shadow:
    0 0 28px rgba(242, 199, 91, 0.12),
    inset 0 0 32px rgba(242, 199, 91, 0.08);
}

.slot-light-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 7px;
}

.slot-light-row span {
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, #fff0a9 0 26%, #f2c75b 27% 58%, rgba(242, 199, 91, 0.15) 59% 100%);
  box-shadow: 0 0 14px rgba(242, 199, 91, 0.48);
  animation: slotLightPulse 1.2s ease-in-out infinite;
}

.slot-light-row span:nth-child(even) {
  background: radial-gradient(circle, #fff 0 24%, #e94560 25% 56%, rgba(233, 69, 96, 0.16) 57% 100%);
  box-shadow: 0 0 14px rgba(233, 69, 96, 0.42);
  animation-delay: 0.36s;
}

.slot-machine-marquee {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 240, 169, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(92, 8, 22, 0.86), rgba(10, 17, 38, 0.92)),
    #0b1020;
  box-shadow: inset 0 0 22px rgba(242, 199, 91, 0.1);
}

.slot-machine-marquee strong {
  color: #f2c75b;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.slot-machine-marquee small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 850;
}

.slot-reel-window {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(242, 199, 91, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    #050913;
  box-shadow:
    inset 0 0 46px rgba(0, 0, 0, 0.54),
    0 18px 30px rgba(0, 0, 0, 0.26);
}

.slot-reel-window::after {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 28%, transparent 70%, rgba(255, 255, 255, 0.08));
  mix-blend-mode: screen;
}

.slot-reel {
  position: relative;
  display: grid;
  --slot-symbol-size: 178px;
  min-height: 178px;
  max-height: var(--slot-symbol-size);
  overflow: hidden;
  border: 1px solid rgba(255, 240, 169, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffaf0, #dfe7f3 48%, #fff7e8);
  box-shadow:
    inset 0 0 22px rgba(0, 0, 0, 0.18),
    0 12px 20px rgba(0, 0, 0, 0.24);
}

.slot-reel-strip {
  display: grid;
  grid-auto-rows: var(--slot-symbol-size);
  min-height: auto;
  transition: transform 0.22s ease;
  will-change: transform, filter;
}

.slot-symbol {
  display: grid;
  min-height: var(--slot-symbol-size);
  height: var(--slot-symbol-size);
  place-items: center;
  padding: 16px 10px;
  border-radius: 8px;
  color: #071026;
  text-align: center;
}

.slot-symbol b {
  max-width: 100%;
  font-size: 1.16rem;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.slot-symbol-vip b,
.slot-symbol-seven b,
.slot-symbol-bar b {
  font-size: 2.45rem;
}

.slot-symbol-seven {
  color: #b3122f;
  text-shadow: 0 0 16px rgba(233, 69, 96, 0.28);
}

.slot-symbol-vip {
  background: radial-gradient(circle at 50% 34%, rgba(242, 199, 91, 0.28), transparent 42%);
  color: #8a5b0a;
}

.slot-symbol-bar {
  background: linear-gradient(180deg, #111827, #030712);
  color: #fff0a9;
}

.slot-symbol-diamond {
  color: #1859c9;
}

.slot-symbol-cherry {
  color: #c72f46;
}

.slot-symbol-coin {
  color: #9a640b;
  background: radial-gradient(circle at 50% 50%, rgba(242, 199, 91, 0.24), transparent 42%);
}

.slot-machine-frame.rolling .slot-reel-strip {
  animation: slotReelRoll 0.42s linear infinite;
  animation-delay: var(--slot-delay);
  filter: blur(1.2px);
}

.slot-machine-frame.stopping .slot-reel-strip {
  animation: slotReelStop var(--slot-stop-duration) cubic-bezier(0.12, 0.82, 0.16, 1) both;
  animation-delay: var(--slot-stop-delay);
}

.slot-machine-frame.rolling .slot-light-row span,
.slot-machine-frame.stopping .slot-light-row span {
  animation-duration: 0.56s;
  box-shadow:
    0 0 18px rgba(242, 199, 91, 0.72),
    0 0 30px rgba(233, 69, 96, 0.2);
}

.slot-machine-frame.win-pulse {
  animation: slotWinPulse 1s ease both;
}

.slot-machine-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.slot-machine-footer span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 199, 91, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
}

.casino-form.slot-control-form {
  grid-template-columns: minmax(160px, 1fr) minmax(150px, auto);
  padding: 16px;
  border: 1px solid rgba(242, 199, 91, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.slot-control-form label {
  color: rgba(255, 255, 255, 0.78);
}

.slot-control-form input {
  border-color: rgba(242, 199, 91, 0.28);
  background: #050913;
  color: #fff;
}

.slot-stake-warning {
  min-height: 22px;
  margin: -2px 0 0;
  color: #ffb4c1;
  font-size: 0.82rem;
  font-weight: 850;
}

.slot-stake-warning[hidden] {
  display: none;
}

.slot-spin-button {
  min-width: 150px;
  border: 1px solid rgba(255, 240, 169, 0.38);
  background: linear-gradient(135deg, #fff0a9, #f2c75b 40%, #b87917);
  color: #071026;
  box-shadow:
    0 14px 28px rgba(214, 165, 40, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.slot-result-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(242, 199, 91, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.slot-result-board.win {
  border-color: rgba(242, 199, 91, 0.36);
  background: rgba(242, 199, 91, 0.1);
}

.slot-result-board.active {
  border-color: rgba(242, 199, 91, 0.34);
  background:
    radial-gradient(circle at 20% 16%, rgba(242, 199, 91, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.05);
}

.slot-result-board.loss {
  border-color: rgba(233, 69, 96, 0.34);
  background: rgba(233, 69, 96, 0.09);
}

.slot-result-message {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.slot-result-message span,
.slot-win-card span,
.slot-paytable-head span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 840;
}

.slot-result-message strong {
  color: #fff;
  font-size: 1.18rem;
}

.slot-result-message p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.slot-win-card {
  display: grid;
  gap: 4px;
  justify-items: end;
  align-content: center;
  min-width: 150px;
}

.slot-win-card strong {
  color: #f2c75b;
  font-size: 1.48rem;
  line-height: 1;
}

.slot-win-card small {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 760;
}

.slot-paytable {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(242, 199, 91, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.slot-paytable-head,
.slot-paytable-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px;
}

.slot-paytable-head {
  background: rgba(242, 199, 91, 0.08);
}

.slot-paytable-head strong,
.slot-paytable-row strong {
  color: #f2c75b;
}

.slot-paytable-row + .slot-paytable-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.slot-paytable-row span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.slot-spin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.casino-slot-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(242, 199, 91, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.82), rgba(3, 7, 18, 0.96)),
    radial-gradient(circle at 18% 8%, rgba(242, 199, 91, 0.14), transparent 32%),
    radial-gradient(circle at 88% 42%, rgba(233, 69, 96, 0.12), transparent 34%),
    url("/assets/casino/slot-poster.png") center / cover no-repeat,
    #030712;
}

.casino-slot-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(242, 199, 91, 0.08), transparent 20%, transparent 78%, rgba(233, 69, 96, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 84px);
}

.casino-slot-page .slot-stage {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.casino-slot-page .slot-page-header {
  min-height: 154px;
  border-color: rgba(242, 199, 91, 0.38);
  background:
    radial-gradient(circle at 82% 22%, rgba(242, 199, 91, 0.28), transparent 34%),
    radial-gradient(circle at 14% 86%, rgba(233, 69, 96, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(3, 7, 18, 0.96), rgba(7, 17, 38, 0.94) 54%, rgba(50, 7, 18, 0.95));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.casino-slot-page .slot-page-header .secondary {
  min-height: 44px;
  border-color: rgba(242, 199, 91, 0.34);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.casino-slot-page .slot-title-copy h2 {
  color: #fff;
  font-size: 2.72rem;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.48);
}

.casino-slot-page .slot-balance-card {
  border-color: rgba(242, 199, 91, 0.34);
  background:
    linear-gradient(135deg, rgba(242, 199, 91, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(5, 9, 19, 0.64);
}

.casino-slot-page .slot-play-panel,
.casino-slot-page .slot-history-panel {
  border-color: rgba(242, 199, 91, 0.24);
  background:
    radial-gradient(circle at 26% 0%, rgba(242, 199, 91, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(9, 17, 39, 0.96), rgba(3, 7, 18, 0.98));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.casino-slot-page .slot-play-panel {
  overflow: visible;
}

.casino-slot-page .slot-play-panel .panel-header {
  padding: 18px 20px;
  background: linear-gradient(90deg, rgba(242, 199, 91, 0.08), rgba(233, 69, 96, 0.055));
}

.casino-slot-page .slot-play-panel .casino-machine {
  gap: 0;
  padding: 22px;
}

.casino-slot-page .slot-machine-frame {
  width: min(100%, 780px);
  min-width: 0;
  gap: 18px;
  padding: 22px 30px 30px;
  overflow: visible;
  border: 1px solid rgba(255, 240, 169, 0.46);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.13), transparent 18%, rgba(255, 255, 255, 0.035) 58%, transparent 78%),
    linear-gradient(180deg, #23304f 0%, #0a1430 28%, #050914 70%, #03050d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 24px 36px rgba(255, 255, 255, 0.055),
    inset 0 -28px 58px rgba(0, 0, 0, 0.55),
    0 36px 70px rgba(0, 0, 0, 0.46),
    0 0 46px rgba(242, 199, 91, 0.13);
}

.casino-slot-page .slot-machine-frame::before {
  inset: 10px;
  border-color: rgba(255, 240, 169, 0.2);
  background:
    linear-gradient(90deg, rgba(242, 199, 91, 0.12), transparent 12%, transparent 88%, rgba(242, 199, 91, 0.12));
}

.casino-slot-page .slot-machine-frame::after {
  content: "";
  position: absolute;
  right: 58px;
  bottom: -16px;
  left: 28px;
  height: 34px;
  border: 1px solid rgba(242, 199, 91, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #101a33, #03050d);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.casino-slot-page .slot-light-row {
  grid-template-columns: repeat(18, minmax(0, 1fr));
  gap: 6px;
  padding: 0 4px;
}

.casino-slot-page .slot-light-row span {
  box-shadow:
    0 0 16px rgba(242, 199, 91, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.casino-slot-page .slot-machine-marquee {
  min-height: 72px;
  padding: 14px 18px;
  border-color: rgba(255, 240, 169, 0.38);
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 199, 91, 0.22), transparent 42%),
    linear-gradient(90deg, #430715, #101931 44%, #430715);
  box-shadow:
    inset 0 0 28px rgba(242, 199, 91, 0.16),
    0 16px 26px rgba(0, 0, 0, 0.26);
}

.casino-slot-page .slot-machine-marquee strong {
  color: #fff0a9;
  font-size: 1.24rem;
  text-shadow: 0 0 18px rgba(242, 199, 91, 0.36);
}

.casino-slot-page .slot-machine-marquee small {
  color: rgba(255, 255, 255, 0.76);
  text-transform: uppercase;
}

.casino-slot-page .slot-reel-window {
  min-width: 0;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 240, 169, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 18%, rgba(0, 0, 0, 0.2)),
    radial-gradient(circle at 50% 50%, rgba(242, 199, 91, 0.08), transparent 62%),
    #030712;
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.72),
    inset 0 0 0 8px rgba(242, 199, 91, 0.08),
    0 18px 32px rgba(0, 0, 0, 0.32);
}

.casino-slot-page .slot-reel-window::before {
  content: "";
  position: absolute;
  right: 20px;
  left: 20px;
  top: 50%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(242, 199, 91, 0.72), transparent);
  box-shadow: 0 0 18px rgba(242, 199, 91, 0.22);
  opacity: 0.62;
  transform: translateY(-50%);
}

.casino-slot-page .slot-reel-window::after {
  inset: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 20%, transparent 74%, rgba(255, 255, 255, 0.055)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.055));
  opacity: 0.5;
}

.casino-slot-page .slot-reel {
  --slot-symbol-size: clamp(132px, 15vw, 220px);
  min-height: var(--slot-symbol-size);
  max-height: var(--slot-symbol-size);
  border-color: rgba(255, 240, 169, 0.34);
  background:
    radial-gradient(circle at 50% 48%, rgba(242, 199, 91, 0.2), transparent 42%),
    linear-gradient(180deg, #121b34, #080d1d 42%, #050913 58%, #131c34 100%);
  box-shadow:
    inset 0 18px 30px rgba(255, 255, 255, 0.1),
    inset 0 -22px 34px rgba(0, 0, 0, 0.44),
    0 18px 28px rgba(0, 0, 0, 0.32);
}

.casino-slot-page .slot-reel::before,
.casino-slot-page .slot-reel::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 34%;
  z-index: 2;
  pointer-events: none;
}

.casino-slot-page .slot-reel::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent);
}

.casino-slot-page .slot-reel::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.16), transparent);
}

.casino-slot-page .slot-symbol {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  min-height: var(--slot-symbol-size);
  height: var(--slot-symbol-size);
  padding: clamp(16px, 2.2vw, 24px);
  color: #fff;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.casino-slot-page .slot-symbol-vip {
  color: #fff0a9;
  background: radial-gradient(circle at 50% 44%, rgba(242, 199, 91, 0.28), transparent 48%);
}

.casino-slot-page .slot-symbol-seven {
  color: #ff3157;
}

.casino-slot-page .slot-symbol-bar {
  color: #fff0a9;
  background: linear-gradient(180deg, rgba(255, 240, 169, 0.08), rgba(3, 7, 18, 0.22));
}

.casino-slot-page .slot-symbol-diamond {
  color: #7bb0ff;
}

.casino-slot-page .slot-symbol-cherry {
  color: #ff6b85;
}

.casino-slot-page .slot-symbol-coin {
  color: #f2c75b;
}

.casino-slot-page .slot-symbol b {
  font-size: 1.16rem;
}

.casino-slot-page .slot-symbol-vip b,
.casino-slot-page .slot-symbol-seven b,
.casino-slot-page .slot-symbol-bar b {
  font-size: 2.95rem;
}

.casino-slot-page .slot-symbol-diamond b::before,
.casino-slot-page .slot-symbol-cherry b::before,
.casino-slot-page .slot-symbol-coin b::before {
  display: block;
  margin-bottom: 8px;
  font-size: 2.2rem;
  line-height: 1;
}

.casino-slot-page .slot-symbol-diamond b::before {
  content: "DIAMOND";
}

.casino-slot-page .slot-symbol-cherry b::before {
  content: "CHERRY";
}

.casino-slot-page .slot-symbol-coin b::before {
  content: "COIN";
}

.casino-slot-page .slot-symbol-diamond b,
.casino-slot-page .slot-symbol-cherry b,
.casino-slot-page .slot-symbol-coin b {
  font-size: 0;
}

.casino-slot-page .slot-symbol {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(242, 199, 91, 0.24), transparent 46%),
    radial-gradient(circle at 50% 74%, rgba(233, 69, 96, 0.16), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
}

.casino-slot-page .slot-symbol::before {
  content: "";
  position: absolute;
  inset: 11px;
  z-index: -1;
  border: 1px solid rgba(255, 240, 169, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.08)),
    rgba(3, 7, 18, 0.22);
  box-shadow:
    inset 0 14px 24px rgba(255, 255, 255, 0.08),
    inset 0 -18px 30px rgba(0, 0, 0, 0.4);
}

.casino-slot-page .slot-symbol::after {
  content: "";
  position: absolute;
  inset: 12px 16px auto;
  height: 34%;
  pointer-events: none;
  z-index: 2;
  border-radius: 8px 8px 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0.28;
  mix-blend-mode: screen;
}

.casino-slot-page .slot-symbol-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  place-self: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  filter:
    drop-shadow(0 16px 14px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 18px rgba(242, 199, 91, 0.2));
}

.casino-slot-page .slot-symbol-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: var(--slot-icon-max-width, 72%);
  max-height: var(--slot-icon-max-height, 72%);
  object-fit: contain;
  object-position: center;
  transform: translate3d(var(--slot-icon-x, 0), var(--slot-icon-y, 0), 0) scale(var(--slot-icon-scale, 1));
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}

.casino-slot-page .slot-symbol-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  color: currentColor;
  font-size: clamp(1.25rem, 3vw, 2.7rem);
  font-weight: 950;
  line-height: 0.95;
  text-align: center;
  text-shadow:
    0 3px 8px rgba(0, 0, 0, 0.56),
    0 0 16px rgba(242, 199, 91, 0.18);
  overflow-wrap: anywhere;
}

.casino-slot-page .slot-symbol-art.has-fallback .slot-symbol-fallback {
  display: flex;
}

.casino-slot-page .slot-symbol-art.has-image .slot-symbol-fallback {
  display: none;
}

.casino-slot-page .slot-symbol-vip .slot-symbol-art {
  --slot-icon-max-width: 72%;
  --slot-icon-max-height: 72%;
}

.casino-slot-page .slot-symbol-seven .slot-symbol-art {
  --slot-icon-max-width: 68%;
  --slot-icon-max-height: 82%;
  --slot-icon-y: 2px;
}

.casino-slot-page .slot-symbol-bar .slot-symbol-art {
  --slot-icon-max-width: 84%;
  --slot-icon-max-height: 55%;
}

.casino-slot-page .slot-symbol-diamond .slot-symbol-art {
  --slot-icon-max-width: 70%;
  --slot-icon-max-height: 68%;
  --slot-icon-y: 4px;
}

.casino-slot-page .slot-symbol-cherry .slot-symbol-art {
  --slot-icon-max-width: 72%;
  --slot-icon-max-height: 72%;
  --slot-icon-x: -3px;
  --slot-icon-y: -6px;
}

.casino-slot-page .slot-symbol-coin .slot-symbol-art {
  --slot-icon-max-width: 68%;
  --slot-icon-max-height: 68%;
}

.casino-slot-page .slot-machine-frame.rolling .slot-reel-strip {
  filter: blur(0.45px);
}

.casino-slot-page .slot-console {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 240, 169, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #081024;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 28px rgba(0, 0, 0, 0.24);
}

.casino-slot-page .casino-form.slot-control-form {
  grid-template-columns: 1fr;
  align-content: end;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.casino-slot-page .slot-control-form input {
  min-height: 52px;
  border-color: rgba(242, 199, 91, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    #050913;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 850;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(242, 199, 91, 0.08);
}

.casino-slot-page .slot-control-form input:focus {
  border-color: rgba(242, 199, 91, 0.78);
  outline: 3px solid rgba(242, 199, 91, 0.16);
}

.casino-slot-page .slot-spin-button {
  min-height: 54px;
  min-width: 0;
  width: 100%;
  background: linear-gradient(135deg, #fff0a9 0%, #f2c75b 34%, #c4841a 70%, #7a4810 100%);
  font-size: 1rem;
}

.casino-slot-page .slot-spin-button:disabled {
  opacity: 0.78;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.casino-slot-page .slot-result-board {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-height: 150px;
  padding: 14px;
  border-color: rgba(242, 199, 91, 0.24);
  background:
    radial-gradient(circle at 16% 18%, rgba(242, 199, 91, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(5, 9, 19, 0.92), rgba(9, 17, 39, 0.94)),
    #050913;
  box-shadow:
    inset 0 0 26px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.casino-slot-page .slot-result-board.win {
  border-color: rgba(242, 199, 91, 0.5);
  box-shadow:
    inset 0 0 30px rgba(242, 199, 91, 0.1),
    0 0 24px rgba(242, 199, 91, 0.14);
}

.casino-slot-page .slot-result-board.active {
  border-color: rgba(242, 199, 91, 0.4);
  box-shadow:
    inset 0 0 28px rgba(242, 199, 91, 0.08),
    0 0 22px rgba(242, 199, 91, 0.1);
}

.casino-slot-page .slot-result-board.loss {
  border-color: rgba(233, 69, 96, 0.46);
  box-shadow: inset 0 0 28px rgba(233, 69, 96, 0.08);
}

.casino-slot-page .slot-result-message strong {
  color: #fff;
  font-size: 1.3rem;
}

.casino-slot-page .slot-result-message p {
  color: rgba(255, 255, 255, 0.72);
}

.slot-mini-symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slot-mini-symbols span {
  display: inline-grid;
  min-width: 42px;
  min-height: 30px;
  place-items: center;
  padding: 4px 7px;
  border: 1px solid rgba(242, 199, 91, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff0a9;
  font-size: 0.72rem;
  font-weight: 920;
}

.slot-result-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.slot-result-metrics div {
  display: grid;
  gap: 4px;
  min-height: 62px;
  align-content: center;
  padding: 8px;
  border: 1px solid rgba(242, 199, 91, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(3, 7, 18, 0.6);
}

.slot-result-metrics span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 820;
}

.slot-result-metrics strong {
  color: #f2c75b;
  font-size: 0.98rem;
  line-height: 1.1;
}

.casino-slot-page .slot-paytable {
  position: relative;
  z-index: 1;
  border-color: rgba(242, 199, 91, 0.28);
  background:
    linear-gradient(180deg, rgba(242, 199, 91, 0.065), rgba(255, 255, 255, 0.015)),
    #050913;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.28);
}

.casino-slot-page .slot-paytable-head,
.casino-slot-page .slot-paytable-row {
  min-height: 42px;
  padding: 10px 14px;
}

.casino-slot-page .slot-paytable-head {
  background:
    linear-gradient(90deg, rgba(242, 199, 91, 0.14), rgba(233, 69, 96, 0.08));
}

.casino-slot-page .slot-paytable-head strong {
  color: #fff;
}

.casino-slot-page .slot-paytable-head span,
.casino-slot-page .slot-paytable-row span {
  color: rgba(255, 255, 255, 0.82);
}

.casino-slot-page .slot-paytable-row strong {
  color: #fff0a9;
  min-width: 48px;
  padding: 4px 8px;
  border: 1px solid rgba(242, 199, 91, 0.22);
  border-radius: 8px;
  background: rgba(242, 199, 91, 0.08);
  font-size: 0.95rem;
  text-align: center;
}

.casino-slot-page .slot-machine-base {
  position: relative;
  z-index: 1;
  height: 22px;
  border: 1px solid rgba(242, 199, 91, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(233, 69, 96, 0.4), rgba(242, 199, 91, 0.48), rgba(233, 69, 96, 0.4)),
    #030712;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.38);
}

.casino-slot-page .slot-history-panel {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.casino-slot-page .slot-history-panel .panel-header {
  align-items: flex-start;
  background: linear-gradient(90deg, rgba(242, 199, 91, 0.08), transparent);
}

.casino-slot-page .slot-history-panel .secondary {
  border-color: rgba(242, 199, 91, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.casino-slot-page .slot-history-panel .empty {
  min-height: 120px;
  border: 1px solid rgba(242, 199, 91, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 199, 91, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.74);
}

.casino-slot-page .slot-spin-row {
  padding: 13px;
  border-color: rgba(242, 199, 91, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    #071126;
}

.slot-spin-stats {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 118px;
}

.slot-spin-stats p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
}

.slot-spin-stats p span {
  color: rgba(255, 255, 255, 0.58);
}

.slot-spin-stats p strong {
  color: #fff0a9;
  font-size: 0.78rem;
}

body:has(.casino-blackjack-page),
body:has(.casino-blackjack-page) .funds-shell {
  background:
    radial-gradient(circle at 20% 10%, rgba(20, 116, 76, 0.24), transparent 34%),
    radial-gradient(circle at 78% 0%, rgba(242, 199, 91, 0.16), transparent 30%),
    radial-gradient(circle at 52% 86%, rgba(130, 20, 30, 0.22), transparent 42%),
    linear-gradient(180deg, #061022 0%, #030712 54%, #050914 100%);
  color: #fff;
}

body:has(.casino-blackjack-page) .funds-shell .hero,
body:has(.casino-blackjack-page) .funds-shell .nav-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(3, 7, 18, 0.72);
  border-color: rgba(242, 199, 91, 0.16);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

body:has(.casino-blackjack-page) .funds-shell .brand,
body:has(.casino-blackjack-page) .funds-shell .ghost,
body:has(.casino-blackjack-page) .funds-shell .tab {
  color: rgba(255, 255, 255, 0.82);
}

body:has(.casino-blackjack-page) .funds-shell .status-pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

body:has(.casino-blackjack-page) .funds-shell .balance-pill {
  border: 1px solid rgba(242, 199, 91, 0.28);
  background: rgba(242, 199, 91, 0.12);
  color: #fff0a9;
}

body:has(.casino-blackjack-page) .funds-shell .tab.active {
  background: rgba(242, 199, 91, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(242, 199, 91, 0.22);
}

body:has(.casino-blackjack-page) .funds-shell .content {
  background: transparent;
}

.casino-blackjack-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  padding: 34px 24px 24px;
  border: 1px solid rgba(242, 199, 91, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.4), rgba(3, 7, 18, 0.92)),
    radial-gradient(circle at 18% 8%, rgba(242, 199, 91, 0.16), transparent 30%),
    #030712;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.34);
}

.casino-blackjack-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.62), rgba(3, 7, 18, 0.94)),
    url("/assets/casino/blackjack-poster.png") center / cover no-repeat;
  opacity: 0.44;
  filter: saturate(0.92);
}

.casino-blackjack-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(242, 199, 91, 0.2), transparent 25%),
    radial-gradient(circle at 50% 72%, rgba(20, 116, 76, 0.32), transparent 38%),
    linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.78));
}

.blackjack-page-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, auto);
  gap: 18px;
  align-items: center;
  margin: 4px 0 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(242, 199, 91, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(5, 9, 19, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.blackjack-page-header .secondary {
  border-color: rgba(242, 199, 91, 0.36);
  background: rgba(3, 7, 18, 0.6);
  color: #fff0a9;
}

.blackjack-title-copy {
  display: grid;
  gap: 5px;
}

.blackjack-title-copy h2 {
  margin: 0;
  padding-top: 4px;
  color: #fff;
  font-size: clamp(2.05rem, 3.7vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.blackjack-title-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.blackjack-balance-card {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 199, 91, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(242, 199, 91, 0.12), rgba(255, 255, 255, 0.025)),
    #071126;
  box-shadow: inset 0 0 24px rgba(242, 199, 91, 0.08);
}

.blackjack-balance-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.blackjack-balance-card strong {
  color: #fff0a9;
  font-size: 1.35rem;
}

.casino-blackjack-page .blackjack-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.casino-blackjack-page .blackjack-play-panel,
.casino-blackjack-page .blackjack-history-panel {
  min-width: 0;
  overflow: hidden;
  border-color: rgba(242, 199, 91, 0.24);
  background:
    radial-gradient(circle at 18% 0%, rgba(242, 199, 91, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(9, 17, 39, 0.96), rgba(3, 7, 18, 0.98));
  color: #fff;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
}

.casino-blackjack-page .blackjack-play-panel .panel-header,
.casino-blackjack-page .blackjack-history-panel .panel-header {
  align-items: flex-start;
  gap: 14px;
}

.casino-blackjack-page .blackjack-play-panel .panel-title,
.casino-blackjack-page .blackjack-history-panel .panel-title {
  color: #fff;
}

.casino-blackjack-page .blackjack-play-panel .subtle,
.casino-blackjack-page .blackjack-history-panel .subtle {
  color: rgba(255, 255, 255, 0.64);
}

.blackjack-table-shell {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: visible;
  padding-top: clamp(78px, 8vw, 96px);
}

.blackjack-dealer-scene {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: min(370px, 62vw);
  height: clamp(148px, 17vw, 210px);
  transform: translateX(-50%);
  pointer-events: none;
}

.blackjack-dealer-light {
  position: absolute;
  right: 6%;
  bottom: 2px;
  left: 6%;
  height: 76px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 48%, rgba(242, 199, 91, 0.38), transparent 62%),
    radial-gradient(circle at 50% 76%, rgba(8, 31, 70, 0.72), transparent 74%);
  filter: blur(3px);
}

.blackjack-dealer-frame {
  position: absolute;
  left: 50%;
  bottom: -58px;
  width: clamp(166px, 16vw, 210px);
  height: clamp(184px, 18vw, 246px);
  overflow: visible;
  border-radius: 44% 44% 18px 18px / 18% 18% 18px 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(242, 199, 91, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(7, 17, 38, 0.34), rgba(3, 7, 18, 0.06) 70%, transparent);
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.46));
  transform: translateX(-50%);
  transform-origin: bottom center;
  animation: blackjackDealerBreathe 4.8s ease-in-out infinite;
}

.blackjack-dealer-image {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  height: 100%;
  max-width: none;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  filter:
    saturate(1.04)
    contrast(1.04)
    drop-shadow(0 14px 18px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 14px rgba(242, 199, 91, 0.18));
  mix-blend-mode: normal;
  user-select: none;
}

.blackjack-table-shell.is-blackjack-deal .blackjack-dealer-image,
.blackjack-table-shell.is-blackjack-hit .blackjack-dealer-image,
.blackjack-table-shell.is-blackjack-stand .blackjack-dealer-image,
.blackjack-table-shell.is-blackjack-double .blackjack-dealer-image,
.blackjack-table-shell.is-blackjack-split .blackjack-dealer-image {
  animation: blackjackDealerLean 0.7s cubic-bezier(0.2, 0.9, 0.22, 1) both;
}

.blackjack-table-shell.is-blackjack-stand .blackjack-dealer-image,
.blackjack-table-shell.is-blackjack-double .blackjack-dealer-image {
  animation-duration: 0.86s;
}

.blackjack-dealer-shadow {
  position: absolute;
  right: 18%;
  bottom: -24px;
  left: 18%;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.48), transparent 68%);
  filter: blur(3px);
}

.blackjack-felt {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-height: 318px;
  padding: 22px 24px 18px;
  overflow: hidden;
  border: 8px solid rgba(212, 161, 61, 0.88);
  border-radius: 42% 42% 30px 30px / 24% 24% 30px 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.15), transparent 34%),
    radial-gradient(circle at 50% 58%, rgba(24, 152, 96, 0.34), transparent 52%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px),
    linear-gradient(160deg, #0d6d45 0%, #07402d 48%, #06271f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 169, 0.34),
    inset 0 36px 70px rgba(255, 255, 255, 0.08),
    inset 0 -58px 90px rgba(0, 0, 0, 0.34),
    0 28px 64px rgba(0, 0, 0, 0.42);
}

.blackjack-table-rail {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 240, 169, 0.24);
  border-radius: inherit;
  pointer-events: none;
}

.blackjack-zone {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.blackjack-dealer-zone {
  align-self: start;
  z-index: 5;
}

.blackjack-player-zone {
  align-self: end;
}

.casino-blackjack-page .blackjack-hand {
  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 240, 169, 0.2);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.22);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.2);
}

.casino-blackjack-page .blackjack-dealer-zone .blackjack-hand {
  z-index: 5;
  gap: 14px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.54), rgba(3, 7, 18, 0.26)),
    rgba(3, 7, 18, 0.28);
  box-shadow:
    inset 0 0 22px rgba(0, 0, 0, 0.26),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.blackjack-split-hands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.casino-blackjack-page .blackjack-hand.is-active {
  border-color: rgba(242, 199, 91, 0.68);
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 199, 91, 0.2), transparent 46%),
    rgba(3, 7, 18, 0.34);
  box-shadow:
    inset 0 0 28px rgba(242, 199, 91, 0.18),
    0 0 0 2px rgba(242, 199, 91, 0.2),
    0 0 38px rgba(242, 199, 91, 0.4);
  transform: translateY(-2px);
}

.casino-blackjack-page .blackjack-hand.is-complete {
  border-color: rgba(255, 255, 255, 0.18);
  opacity: 0.9;
}

.blackjack-split-hands .blackjack-hand:not(.is-active):not(.is-complete) {
  opacity: 0.68;
}

.casino-blackjack-page .blackjack-hand.is-busted {
  border-color: rgba(233, 69, 96, 0.48);
  box-shadow: inset 0 0 18px rgba(233, 69, 96, 0.08);
}

.blackjack-hand-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.blackjack-hand-title,
.casino-blackjack-page .blackjack-hand-label strong {
  color: #fff;
}

.blackjack-hand-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.casino-blackjack-page .blackjack-dealer-zone .blackjack-hand-header {
  grid-template-columns: minmax(90px, 1fr) auto;
  padding: 6px 8px;
  border: 1px solid rgba(255, 240, 169, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(3, 7, 18, 0.72);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    inset 0 0 16px rgba(242, 199, 91, 0.06);
}

.casino-blackjack-page .blackjack-dealer-zone .blackjack-hand-title {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.blackjack-hand-tag {
  display: inline-grid;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid rgba(242, 199, 91, 0.36);
  border-radius: 999px;
  color: #fff0a9;
  font-size: 0.64rem;
  vertical-align: middle;
}

.blackjack-hand-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: -4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
}

.blackjack-hand-meta strong {
  color: #fff0a9;
}

.blackjack-turn-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(242, 199, 91, 0.5);
  border-radius: 999px;
  background: rgba(242, 199, 91, 0.16);
  color: #fff0a9;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(242, 199, 91, 0.14);
}

.blackjack-hand-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 58px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.blackjack-hand-result.green {
  border-color: rgba(67, 196, 143, 0.42);
  color: #b8ffe3;
}

.blackjack-hand-result.red {
  border-color: rgba(233, 69, 96, 0.44);
  color: #ffd1da;
}

.blackjack-hand-result.blue {
  border-color: rgba(242, 199, 91, 0.38);
  color: #fff0a9;
}

.blackjack-total-pill {
  min-width: 108px;
  padding: 5px 9px;
  border: 1px solid rgba(242, 199, 91, 0.22);
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.34);
  color: #fff0a9;
  font-size: 0.74rem;
  font-weight: 850;
  text-align: center;
}

.casino-blackjack-page .blackjack-dealer-zone .blackjack-total-pill {
  min-width: 136px;
  margin-left: auto;
  border-color: rgba(242, 199, 91, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 240, 169, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(3, 7, 18, 0.76);
  color: #fff0a9;
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.32),
    inset 0 0 14px rgba(242, 199, 91, 0.08);
  white-space: nowrap;
}

.casino-blackjack-page .blackjack-card-row {
  min-width: 0;
  min-height: 84px;
  flex-wrap: wrap;
}

.casino-blackjack-page .blackjack-dealer-zone .blackjack-card-row {
  position: relative;
  z-index: 2;
  align-items: flex-start;
  min-height: 96px;
  padding-top: 2px;
}

.blackjack-playing-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  --deal-x: 0px;
  --deal-y: -120px;
  width: clamp(52px, 5.4vw, 66px);
  aspect-ratio: 5 / 7;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 237, 247, 0.98));
  color: #111827;
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(242, 199, 91, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.78);
  transform-origin: center top;
  will-change: transform, opacity;
}

.blackjack-card-dealer {
  --deal-y: -72px;
}

.blackjack-card-player {
  --deal-y: -210px;
}

.blackjack-playing-card.is-card-dealt {
  animation: blackjackCardFlyFromDealer 0.54s cubic-bezier(0.18, 0.84, 0.24, 1) both;
  animation-delay: var(--card-delay);
}

.blackjack-playing-card.is-card-revealed {
  animation: blackjackCardReveal 0.44s cubic-bezier(0.2, 0.84, 0.24, 1) both;
  animation-delay: var(--card-delay);
}

.blackjack-playing-card.red {
  color: #b9152b;
}

.blackjack-playing-card.black {
  color: #050913;
}

.blackjack-playing-card .card-corner {
  display: grid;
  justify-items: start;
  line-height: 1;
}

.blackjack-playing-card .card-corner b {
  font-size: clamp(0.92rem, 1.4vw, 1.12rem);
  font-weight: 950;
}

.blackjack-playing-card .card-corner small {
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  font-weight: 950;
}

.blackjack-playing-card .card-corner.bottom {
  justify-self: end;
  transform: rotate(180deg);
}

.blackjack-playing-card .card-suit {
  place-self: center;
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  line-height: 1;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.12));
}

.blackjack-card-back {
  place-items: center;
  align-content: center;
  gap: 0;
  border-color: rgba(255, 240, 169, 0.72);
  background:
    radial-gradient(circle at 50% 42%, rgba(242, 199, 91, 0.36), transparent 31%),
    linear-gradient(135deg, transparent 0 43%, rgba(255, 240, 169, 0.28) 44% 46%, transparent 47% 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 4px, transparent 4px 8px),
    linear-gradient(135deg, #091738, #050913 55%, #6e0d1c);
  color: #fff0a9;
  text-align: center;
}

.blackjack-card-back span {
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0;
}

.blackjack-card-back strong {
  color: #fff;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  line-height: 1;
}

.blackjack-table-markings {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  align-self: center;
  color: rgba(255, 240, 169, 0.9);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.blackjack-table-markings strong {
  font-size: clamp(0.92rem, 1.8vw, 1.3rem);
  font-weight: 950;
}

.blackjack-table-markings span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blackjack-chip-bank {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.blackjack-chip {
  width: 42px;
  height: 42px;
  margin-left: -12px;
  border: 5px dashed rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 18%, transparent 19%),
    #0a2f80;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
}

.blackjack-chip.red {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 18%, transparent 19%),
    #b9152b;
}

.blackjack-chip.white {
  background:
    radial-gradient(circle, #f2c75b 0 18%, transparent 19%),
    #f4f6fb;
}

.blackjack-chip-motion {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.blackjack-chip-motion span {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 4px dashed rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 17%, transparent 18%),
    #b9152b;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.36),
    0 0 18px rgba(242, 199, 91, 0.2);
}

.blackjack-chip-motion span:nth-child(2) {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 17%, transparent 18%),
    #0a2f80;
  animation-delay: 0.08s;
}

.blackjack-chip-motion span:nth-child(3) {
  background:
    radial-gradient(circle, #f2c75b 0 17%, transparent 18%),
    #f4f6fb;
  animation-delay: 0.16s;
}

.blackjack-chip-motion.is-chip-win span {
  animation: blackjackChipToPlayer 0.88s cubic-bezier(0.2, 0.8, 0.18, 1) both;
}

.blackjack-chip-motion.is-chip-loss span {
  animation: blackjackChipToDealer 0.82s cubic-bezier(0.2, 0.8, 0.18, 1) both;
}

.blackjack-chip-motion.is-chip-push span {
  animation: blackjackChipPush 0.82s ease both;
}

.blackjack-result-board {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(242, 199, 91, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    #050913;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.3);
}

.blackjack-result-board.win {
  border-color: rgba(242, 199, 91, 0.5);
  box-shadow:
    inset 0 0 24px rgba(242, 199, 91, 0.08),
    0 0 28px rgba(242, 199, 91, 0.12);
}

.blackjack-result-board.loss {
  border-color: rgba(233, 69, 96, 0.4);
}

.blackjack-result-board.push,
.blackjack-result-board.active {
  border-color: rgba(83, 139, 255, 0.34);
}

.blackjack-result-board span {
  color: rgba(255, 240, 169, 0.72);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.blackjack-result-board strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 1.18rem;
}

.blackjack-result-board p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.blackjack-result-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
}

.blackjack-result-metrics div {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 62px;
  padding: 8px;
  border: 1px solid rgba(242, 199, 91, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.blackjack-result-metrics strong {
  color: #fff0a9;
  font-size: 0.92rem;
}

.blackjack-control-form {
  position: relative;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
  margin-top: 12px;
  padding: 14px 14px 32px;
  border: 1px solid rgba(242, 199, 91, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    #071126;
}

.casino-blackjack-page .blackjack-control-form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.blackjack-control-top {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(154px, 0.72fr);
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.blackjack-action-helper {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
}

.blackjack-action-row {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.blackjack-main-actions,
.blackjack-secondary-actions {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.blackjack-main-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blackjack-secondary-actions {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.blackjack-control-form label {
  color: rgba(255, 255, 255, 0.74);
}

.blackjack-control-form input {
  min-height: 52px;
  border-color: rgba(242, 199, 91, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    #050913;
  color: #fff;
  font-weight: 850;
}

.blackjack-control-form input:focus {
  border-color: rgba(242, 199, 91, 0.8);
  outline: 3px solid rgba(242, 199, 91, 0.16);
}

.blackjack-seat-field {
  min-width: 0;
}

.blackjack-seat-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 52px;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(242, 199, 91, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    #050913;
}

.blackjack-seat-options button {
  min-width: 0;
  border: 1px solid rgba(255, 240, 169, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.68);
  font-weight: 950;
  cursor: pointer;
}

.blackjack-seat-options button.selected {
  border-color: rgba(242, 199, 91, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 240, 169, 0.34), transparent 56%),
    linear-gradient(135deg, #fff0a9, #c99532);
  color: #071126;
  box-shadow: 0 0 18px rgba(242, 199, 91, 0.22);
}

.blackjack-seat-options button:not(.selected):hover,
.blackjack-seat-options button:not(.selected):focus-visible {
  border-color: rgba(242, 199, 91, 0.5);
  color: #fff0a9;
  outline: none;
}

.blackjack-control-form .casino-play-button {
  min-width: 0;
  width: 100%;
  min-height: 50px;
}

.blackjack-control-form button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.18);
  opacity: 1;
  border-color: rgba(255, 240, 169, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    #070d1d;
  color: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.24);
}

.blackjack-control-form .blackjack-deal-button:not(:disabled),
.blackjack-control-form .blackjack-hit-button:not(:disabled) {
  border-color: rgba(255, 240, 169, 0.52);
  background:
    linear-gradient(135deg, #fff0a9, #f2c75b 48%, #b57b1e);
  color: #071126;
  box-shadow:
    0 12px 24px rgba(242, 199, 91, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.blackjack-control-form .blackjack-stand-button:not(:disabled) {
  border-color: rgba(233, 69, 96, 0.42);
  background:
    linear-gradient(180deg, rgba(233, 69, 96, 0.18), rgba(255, 255, 255, 0.02)),
    #071126;
  color: #ffd1da;
}

.blackjack-control-form .blackjack-double-button:not(:disabled),
.blackjack-control-form .blackjack-split-button:not(:disabled) {
  border-color: rgba(242, 199, 91, 0.42);
  background:
    linear-gradient(180deg, rgba(242, 199, 91, 0.12), rgba(255, 255, 255, 0.02)),
    #071126;
  color: #fff0a9;
}

.blackjack-stake-warning {
  position: absolute;
  left: 16px;
  bottom: 9px;
  margin: 0;
  color: #ff9aae;
  font-size: 0.78rem;
  font-weight: 850;
}

.blackjack-stake-warning[hidden] {
  display: none;
}

.blackjack-history-panel {
  position: sticky;
  top: 18px;
}

.blackjack-history-list {
  display: grid;
  gap: 10px;
  max-height: min(640px, calc(100svh - 180px));
  overflow: auto;
}

.blackjack-history-panel .empty {
  padding: 16px;
  border: 1px solid rgba(242, 199, 91, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.62);
}

.blackjack-history-row {
  display: grid;
  gap: 12px;
  border-color: rgba(242, 199, 91, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(3, 7, 18, 0.5);
}

.blackjack-history-row strong {
  color: #fff;
}

.blackjack-history-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.blackjack-history-stats p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
}

.blackjack-history-stats p strong {
  color: #fff0a9;
  font-size: 0.78rem;
}

body:has(.casino-baccarat-page),
body:has(.casino-baccarat-page) .funds-shell {
  background:
    radial-gradient(circle at 18% 10%, rgba(242, 199, 91, 0.12), transparent 32%),
    radial-gradient(circle at 82% 4%, rgba(150, 18, 38, 0.18), transparent 34%),
    radial-gradient(circle at 50% 82%, rgba(12, 100, 67, 0.2), transparent 42%),
    linear-gradient(180deg, #030712 0%, #061022 52%, #08030a 100%);
  color: #fff;
}

body:has(.casino-baccarat-page) .funds-shell .hero,
body:has(.casino-baccarat-page) .funds-shell .nav-band {
  border-color: rgba(242, 199, 91, 0.16);
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.96), rgba(5, 9, 19, 0.92)),
    #030712;
}

body:has(.casino-baccarat-page) .funds-shell .brand,
body:has(.casino-baccarat-page) .funds-shell .ghost,
body:has(.casino-baccarat-page) .funds-shell .tab {
  color: rgba(255, 255, 255, 0.84);
}

body:has(.casino-baccarat-page) .funds-shell .status-pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

body:has(.casino-baccarat-page) .funds-shell .balance-pill {
  border: 1px solid rgba(242, 199, 91, 0.28);
  background: rgba(242, 199, 91, 0.12);
  color: #fff0a9;
}

body:has(.casino-baccarat-page) .funds-shell .tab.active {
  background: rgba(242, 199, 91, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(242, 199, 91, 0.22);
}

body:has(.casino-baccarat-page) .funds-shell .content {
  max-width: 1280px;
  padding: 30px 18px 70px;
  background: transparent;
}

.casino-baccarat-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  padding: 30px 24px 24px;
  border: 1px solid rgba(242, 199, 91, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0%, rgba(242, 199, 91, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.7), rgba(3, 7, 18, 0.96)),
    #030712;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.34);
}

.casino-baccarat-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.66), rgba(3, 7, 18, 0.94)),
    url("/assets/casino/baccarat-poster.png") center / cover no-repeat;
  opacity: 0.42;
  filter: saturate(0.95);
}

.casino-baccarat-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(242, 199, 91, 0.22), transparent 24%),
    radial-gradient(circle at 34% 64%, rgba(13, 112, 73, 0.24), transparent 36%),
    radial-gradient(circle at 72% 70%, rgba(145, 18, 38, 0.22), transparent 36%),
    linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.78));
}

.baccarat-page-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, auto);
  gap: 18px;
  align-items: center;
  margin: 4px 0 18px;
  padding: 18px;
  border: 1px solid rgba(242, 199, 91, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(5, 9, 19, 0.8);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.baccarat-page-header .secondary {
  border-color: rgba(242, 199, 91, 0.36);
  background: rgba(3, 7, 18, 0.62);
  color: #fff0a9;
}

.baccarat-title-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.baccarat-title-copy h2 {
  margin: 0;
  padding-top: 4px;
  color: #fff;
  font-size: clamp(2.05rem, 3.7vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.baccarat-title-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.baccarat-balance-card {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 199, 91, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(242, 199, 91, 0.12), rgba(255, 255, 255, 0.025)),
    #071126;
  box-shadow: inset 0 0 24px rgba(242, 199, 91, 0.08);
}

.baccarat-balance-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.baccarat-balance-card strong {
  color: #fff0a9;
  font-size: 1.35rem;
}

.casino-baccarat-page .baccarat-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.casino-baccarat-page .baccarat-play-panel,
.casino-baccarat-page .baccarat-road-panel,
.casino-baccarat-page .baccarat-history-panel {
  min-width: 0;
  overflow: hidden;
  border-color: rgba(242, 199, 91, 0.24);
  background:
    radial-gradient(circle at 18% 0%, rgba(242, 199, 91, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(9, 17, 39, 0.96), rgba(3, 7, 18, 0.98));
  color: #fff;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
}

.casino-baccarat-page .baccarat-rail {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.casino-baccarat-page .panel-title,
.casino-baccarat-page .baccarat-history-row strong {
  color: #fff;
}

.casino-baccarat-page .subtle,
.casino-baccarat-page .baccarat-history-panel .empty {
  color: rgba(255, 255, 255, 0.64);
}

.baccarat-table-shell {
  position: relative;
  min-width: 0;
}

.baccarat-felt {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: center;
  min-height: 382px;
  padding: 24px;
  overflow: hidden;
  border: 10px solid rgba(212, 161, 61, 0.94);
  border-radius: 44% 44% 30px 30px / 18% 18% 30px 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 32%),
    radial-gradient(circle at 25% 62%, rgba(67, 196, 143, 0.16), transparent 36%),
    radial-gradient(circle at 76% 62%, rgba(233, 69, 96, 0.18), transparent 36%),
    linear-gradient(90deg, rgba(7, 91, 60, 0.97) 0 46%, rgba(126, 15, 32, 0.96) 46% 54%, rgba(82, 10, 23, 0.97) 54% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 5px);
  box-shadow:
    inset 0 0 0 2px rgba(255, 240, 169, 0.34),
    inset 0 0 0 7px rgba(80, 45, 10, 0.28),
    inset 0 42px 72px rgba(255, 255, 255, 0.08),
    inset 0 -60px 90px rgba(0, 0, 0, 0.36),
    0 28px 64px rgba(0, 0, 0, 0.46),
    0 0 42px rgba(242, 199, 91, 0.08);
}

.baccarat-felt::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 50% 55%, transparent 0 58%, rgba(255, 240, 169, 0.11) 59% 60%, transparent 61%);
  opacity: 0.72;
  pointer-events: none;
}

.baccarat-table-rail {
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 2px solid rgba(255, 240, 169, 0.32);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.46),
    inset 0 0 34px rgba(0, 0, 0, 0.26);
  pointer-events: none;
}

.baccarat-table-shell.is-clearing .baccarat-card-board,
.baccarat-table-shell.is-clearing .baccarat-bet-layout {
  animation: baccaratTableCollect 0.34s ease-in both;
}

.baccarat-bet-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 0.62fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 2px;
}

.baccarat-bet-spot {
  position: relative;
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 12px 12px 48px;
  cursor: pointer;
  border: 1px solid rgba(255, 240, 169, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(3, 7, 18, 0.34);
  color: #fff;
  text-align: center;
  box-shadow:
    inset 0 0 22px rgba(0, 0, 0, 0.34),
    0 10px 22px rgba(0, 0, 0, 0.16);
}

.baccarat-bet-spot:disabled {
  cursor: not-allowed;
  opacity: 0.76;
}

.baccarat-bet-spot:hover:not(:disabled),
.baccarat-bet-spot:focus-visible {
  outline: none;
  border-color: rgba(255, 240, 169, 0.68);
  box-shadow:
    inset 0 0 22px rgba(242, 199, 91, 0.14),
    0 0 24px rgba(242, 199, 91, 0.14);
}

.baccarat-bet-spot .baccarat-bet-label {
  color: #fff8d4;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 950;
  text-transform: uppercase;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.72),
    0 0 16px rgba(242, 199, 91, 0.26);
}

.baccarat-bet-spot strong {
  padding: 3px 8px;
  border: 1px solid rgba(242, 199, 91, 0.22);
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.38);
  color: #ffe7a1;
  font-size: 0.82rem;
  box-shadow: inset 0 0 10px rgba(242, 199, 91, 0.08);
}

.baccarat-bet-spot.player {
  border-color: rgba(67, 196, 143, 0.38);
}

.baccarat-bet-spot.banker {
  border-color: rgba(233, 69, 96, 0.4);
}

.baccarat-bet-spot.tie {
  border-color: rgba(242, 199, 91, 0.48);
}

.baccarat-bet-spot.selected {
  border-color: rgba(242, 199, 91, 0.72);
  box-shadow:
    inset 0 0 24px rgba(242, 199, 91, 0.12),
    0 0 24px rgba(242, 199, 91, 0.16);
}

.baccarat-table-chip-stack {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: inline-flex;
  align-items: flex-end;
  transform: translateX(-50%);
}

.baccarat-table-chip-stack.is-placing {
  animation: baccaratChipPlace 0.34s ease-out both;
}

.baccarat-table-chip-stack i {
  width: 30px;
  height: 30px;
  margin-left: -9px;
  border: 4px dashed rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
    #0a2f80;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.1),
    0 8px 14px rgba(0, 0, 0, 0.28);
}

.baccarat-table-chip-stack i:first-child {
  margin-left: 0;
}

.baccarat-table-chip-stack i:nth-child(2) {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
    #b9152b;
}

.baccarat-table-chip-stack i:nth-child(3) {
  background:
    radial-gradient(circle, #f2c75b 0 18%, transparent 19%),
    #f4f6fb;
}

.baccarat-table-chip-stack em {
  position: absolute;
  left: 50%;
  top: 100%;
  min-width: max-content;
  margin-top: 4px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 240, 169, 0.28);
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.78);
  color: #fff0a9;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  transform: translateX(-50%);
}

.baccarat-table-chip-stack.is-winning {
  filter: drop-shadow(0 0 10px rgba(242, 199, 91, 0.42));
}

.baccarat-table-chip-stack.is-losing {
  opacity: 0.58;
}

.baccarat-table-chip-stack.is-push {
  filter: drop-shadow(0 0 8px rgba(111, 156, 255, 0.24));
}

.baccarat-table-chip-stack.is-settling.is-winning {
  animation: baccaratChipWin 0.9s ease-out both;
}

.baccarat-table-chip-stack.is-settling.is-losing {
  animation: baccaratChipLose 0.9s ease-in both;
}

.baccarat-table-chip-stack.is-settling.is-push {
  animation: baccaratChipPush 0.7s ease-out both;
}

.baccarat-card-board {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.casino-baccarat-page .baccarat-hand {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 240, 169, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(3, 7, 18, 0.34);
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.28),
    0 14px 24px rgba(0, 0, 0, 0.18);
}

.baccarat-hand.player {
  background:
    radial-gradient(circle at 18% 10%, rgba(67, 196, 143, 0.16), transparent 36%),
    rgba(3, 7, 18, 0.28);
}

.baccarat-hand.banker {
  background:
    radial-gradient(circle at 82% 10%, rgba(233, 69, 96, 0.18), transparent 36%),
    rgba(3, 7, 18, 0.28);
}

.casino-baccarat-page .baccarat-hand-label strong {
  color: #fff8d4;
  font-size: 0.95rem;
  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.78),
    0 0 16px rgba(242, 199, 91, 0.22);
}

.baccarat-total-pill {
  min-width: 78px;
  padding: 5px 9px;
  border: 1px solid rgba(242, 199, 91, 0.24);
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.38);
  color: #fff0a9;
  font-size: 0.74rem;
  font-weight: 850;
  text-align: center;
}

.casino-baccarat-page .baccarat-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  min-width: 0;
  min-height: 102px;
  justify-content: center;
  justify-items: center;
  gap: 10px;
}

.baccarat-dashboard-panel {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  border-color: rgba(242, 199, 91, 0.26);
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 199, 91, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(19, 8, 52, 0.96), rgba(9, 8, 28, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 24px 54px rgba(0, 0, 0, 0.28);
}

.baccarat-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.baccarat-dashboard-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.baccarat-dashboard-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 850;
}

.baccarat-dashboard-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 3px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.baccarat-dashboard-legend .is-player {
  color: #8fa3ff;
}

.baccarat-dashboard-legend .is-banker {
  color: #ff9aaa;
}

.baccarat-dashboard-legend .is-tie {
  color: #fff0a9;
}

.baccarat-dashboard-shell {
  overflow-x: auto;
  padding: 10px;
  border: 1px solid rgba(255, 240, 169, 0.16);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07), transparent 62%),
    #2a1155;
}

.baccarat-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(var(--road-cols), minmax(34px, 1fr));
  grid-auto-rows: 34px;
  gap: 4px;
  min-width: 720px;
}

.baccarat-dashboard-cell {
  position: relative;
  display: grid;
  place-items: center;
  border: 2px solid rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(236, 229, 241, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.36);
}

.baccarat-dashboard-cell i {
  display: grid;
  width: 72%;
  aspect-ratio: 1;
  place-items: center;
  border: 5px solid currentColor;
  border-radius: 999px;
  color: transparent;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0;
}

.baccarat-dashboard-cell.is-player i {
  border-color: #1f43df;
  box-shadow: 0 0 6px rgba(31, 67, 223, 0.22);
}

.baccarat-dashboard-cell.is-banker i {
  border-color: #9c1731;
  box-shadow: 0 0 6px rgba(156, 23, 49, 0.2);
}

.baccarat-dashboard-cell.is-tie i {
  border-color: #c9962d;
  color: #5f3f08;
  background: #fff0a9;
  font-size: 0.74rem;
  font-weight: 950;
}

.baccarat-dashboard-cell b {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  min-width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid rgba(61, 42, 4, 0.22);
  border-radius: 999px;
  background: #fff0a9;
  color: #5f3f08;
  font-size: 0.58rem;
  font-weight: 950;
}

.baccarat-dashboard-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.baccarat-dashboard-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(242, 199, 91, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 850;
}

.baccarat-dashboard-summary strong {
  color: #fff0a9;
}

.baccarat-card-placeholder {
  position: relative;
  display: grid;
  width: clamp(58px, 6.4vw, 76px);
  aspect-ratio: 5 / 7;
  place-items: center;
  border: 1px dashed rgba(255, 240, 169, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 240, 169, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(3, 7, 18, 0.28);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.34),
    0 10px 18px rgba(0, 0, 0, 0.18);
}

.baccarat-card-placeholder span {
  width: 44%;
  height: 58%;
  border: 1px solid rgba(255, 240, 169, 0.36);
  border-radius: 6px;
  background: rgba(255, 240, 169, 0.05);
  box-shadow: 0 0 18px rgba(242, 199, 91, 0.08);
}

.baccarat-playing-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: clamp(58px, 6.4vw, 76px);
  aspect-ratio: 5 / 7;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 237, 247, 0.98));
  color: #111827;
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(242, 199, 91, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.baccarat-playing-card.is-card-new {
  animation: baccaratCardDeal 0.5s cubic-bezier(0.16, 0.82, 0.22, 1) both;
  animation-delay: 0s;
}

.baccarat-playing-card.is-card-revealed {
  animation: baccaratCardReveal 0.38s cubic-bezier(0.2, 0.78, 0.24, 1) both;
}

.baccarat-playing-card.red {
  color: #b9152b;
}

.baccarat-playing-card.black {
  color: #050913;
}

.baccarat-playing-card .card-corner {
  display: grid;
  justify-items: start;
  line-height: 1;
}

.baccarat-playing-card .card-corner b {
  font-size: clamp(0.92rem, 1.4vw, 1.12rem);
  font-weight: 950;
}

.baccarat-playing-card .card-corner small {
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  font-weight: 950;
}

.baccarat-playing-card .card-corner.bottom {
  justify-self: end;
  transform: rotate(180deg);
}

.baccarat-playing-card .card-suit {
  place-self: center;
  font-size: clamp(1.65rem, 2.7vw, 2.2rem);
  line-height: 1;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.12));
}

.baccarat-card-back {
  place-items: center;
  align-content: center;
  gap: 0;
  border-color: rgba(255, 240, 169, 0.72);
  background:
    radial-gradient(circle at 50% 42%, rgba(242, 199, 91, 0.36), transparent 31%),
    linear-gradient(135deg, transparent 0 43%, rgba(255, 240, 169, 0.28) 44% 46%, transparent 47% 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 4px, transparent 4px 8px),
    linear-gradient(135deg, #091738, #050913 55%, #6e0d1c);
  color: #fff0a9;
  text-align: center;
}

.baccarat-card-back span {
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0;
}

.baccarat-card-back strong {
  color: #fff;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  line-height: 1;
}

.baccarat-chip-scene {
  position: absolute;
  right: 42px;
  bottom: 32px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.22);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.2),
    0 12px 24px rgba(0, 0, 0, 0.2);
  transform: rotate(-4deg);
}

.baccarat-chip-scene span {
  width: 38px;
  height: 38px;
  margin-left: -11px;
  border: 5px dashed rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 18%, transparent 19%),
    #b9152b;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.1),
    0 10px 18px rgba(0, 0, 0, 0.34);
}

.baccarat-chip-scene span:nth-child(2) {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 18%, transparent 19%),
    #0a2f80;
}

.baccarat-chip-scene span:nth-child(3) {
  background:
    radial-gradient(circle, #f2c75b 0 18%, transparent 19%),
    #f4f6fb;
}

.baccarat-card-shoe {
  position: absolute;
  left: 50%;
  top: 26px;
  z-index: 1;
  width: 88px;
  height: 52px;
  border: 1px solid rgba(242, 199, 91, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    #050913;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%) skewX(-10deg);
  opacity: 0.78;
}

.baccarat-result-board {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(242, 199, 91, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0% 0%, rgba(242, 199, 91, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    #050913;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.34),
    0 16px 32px rgba(0, 0, 0, 0.18);
}

.baccarat-result-board.win {
  border-color: rgba(242, 199, 91, 0.5);
  box-shadow:
    inset 0 0 24px rgba(242, 199, 91, 0.08),
    0 0 28px rgba(242, 199, 91, 0.12);
}

.baccarat-result-board.loss {
  border-color: rgba(233, 69, 96, 0.4);
}

.baccarat-result-board.push,
.baccarat-result-board.idle,
.baccarat-result-board.active {
  border-color: rgba(83, 139, 255, 0.34);
}

.baccarat-result-board span {
  color: rgba(255, 240, 169, 0.82);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.baccarat-result-board strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 1.15rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.baccarat-result-board p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.baccarat-result-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.baccarat-result-metrics div {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(242, 199, 91, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(3, 7, 18, 0.42);
}

.baccarat-result-metrics strong {
  color: #fff0a9;
  font-size: 0.9rem;
}

.blackjack-result-metrics.simple,
.baccarat-result-metrics.simple {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.baccarat-control-form {
  position: relative;
  grid-template-columns: 1fr;
  min-width: 0;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(242, 199, 91, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 0%, rgba(242, 199, 91, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    #071126;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.24);
}

.casino-baccarat-page .baccarat-control-form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.baccarat-control-form label,
.baccarat-choice-field > span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  font-weight: 850;
}

.baccarat-control-form input {
  min-height: 52px;
  border-color: rgba(242, 199, 91, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    #050913;
  color: #fff;
  font-weight: 850;
}

.baccarat-control-form input:focus {
  border-color: rgba(242, 199, 91, 0.8);
  outline: 3px solid rgba(242, 199, 91, 0.16);
}

.baccarat-action-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.baccarat-repeat-button {
  min-height: 52px;
  border-color: rgba(242, 199, 91, 0.3);
  background:
    linear-gradient(180deg, rgba(242, 199, 91, 0.1), rgba(255, 255, 255, 0.02)),
    #071126;
  color: #fff0a9;
}

.baccarat-choice-field {
  display: grid;
  gap: 8px;
}

.baccarat-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.baccarat-choice-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 52px;
  min-width: 0;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid rgba(242, 199, 91, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(3, 7, 18, 0.66);
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.22);
}

.baccarat-choice-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.baccarat-choice-chip {
  width: 30px;
  height: 30px;
  border: 4px dashed rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
    #0c6b48;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.25);
}

.baccarat-choice-button.banker .baccarat-choice-chip {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
    #b9152b;
}

.baccarat-choice-button.tie .baccarat-choice-chip {
  background:
    radial-gradient(circle, #fff0a9 0 18%, transparent 19%),
    #102861;
}

.baccarat-choice-button strong {
  color: #fff;
  font-size: 0.88rem;
}

.baccarat-choice-button small {
  color: rgba(255, 240, 169, 0.78);
  font-weight: 850;
}

.baccarat-choice-button.selected {
  border-color: rgba(242, 199, 91, 0.72);
  background:
    radial-gradient(circle at 12% 50%, rgba(242, 199, 91, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(242, 199, 91, 0.18), rgba(255, 255, 255, 0.04)),
    #071126;
  box-shadow:
    inset 0 0 20px rgba(242, 199, 91, 0.12),
    0 0 24px rgba(242, 199, 91, 0.22);
}

.baccarat-choice-button:hover,
.baccarat-choice-button:focus-visible {
  border-color: rgba(242, 199, 91, 0.55);
  outline: none;
  box-shadow:
    inset 0 0 20px rgba(242, 199, 91, 0.08),
    0 0 18px rgba(242, 199, 91, 0.14);
}

.baccarat-choice-button.selected .baccarat-choice-chip {
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.1),
    0 0 0 2px rgba(242, 199, 91, 0.28),
    0 0 20px rgba(242, 199, 91, 0.32);
}

.baccarat-control-form .baccarat-deal-button {
  width: 100%;
  min-height: 52px;
  border-color: rgba(255, 240, 169, 0.52);
  background:
    linear-gradient(135deg, #fff0a9, #f2c75b 48%, #b57b1e);
  color: #071126;
  box-shadow:
    0 12px 24px rgba(242, 199, 91, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.baccarat-control-form .baccarat-deal-button:disabled {
  cursor: not-allowed;
  border-color: rgba(255, 240, 169, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #070d1d;
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.24);
}

.baccarat-stake-warning {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 154, 174, 0.36);
  border-radius: 8px;
  background: rgba(80, 10, 25, 0.48);
  color: #ffd0da;
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.18);
}

.baccarat-stake-warning[hidden] {
  display: none;
}

.baccarat-road-scroll {
  overflow: hidden;
  padding: 9px;
  border: 1px solid rgba(242, 199, 91, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 199, 91, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    #040916;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 -18px 32px rgba(0, 0, 0, 0.24);
}

.baccarat-road-grid {
  display: grid;
  grid-template-columns: repeat(var(--road-cols), minmax(0, 1fr));
  grid-auto-rows: 30px;
  gap: 3px;
  width: 100%;
  min-width: 0;
}

.baccarat-road-cell {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 30px;
  place-items: center;
  border: 1px solid rgba(214, 219, 230, 0.12);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(6, 13, 30, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.58);
}

.baccarat-road-cell::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.baccarat-road-cell.empty::before {
  display: none;
}

.baccarat-road-cell.empty {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.006)),
    rgba(6, 13, 30, 0.38);
}

.baccarat-road-cell.is-player {
  color: #69a1ff;
}

.baccarat-road-cell.is-banker {
  color: #ff5e73;
}

.baccarat-road-cell.is-tie {
  color: #5ff0a2;
}

.baccarat-road-cell.is-natural {
  box-shadow:
    inset 0 0 0 1px rgba(242, 199, 91, 0.42),
    0 0 14px rgba(242, 199, 91, 0.26);
}

.baccarat-road-cell.is-natural::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 2px solid #f2c75b;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(242, 199, 91, 0.34);
  pointer-events: none;
}

.baccarat-road-empty,
.baccarat-history-panel .empty {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid rgba(242, 199, 91, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(3, 7, 18, 0.38);
  color: rgba(255, 255, 255, 0.68);
}

.baccarat-history-list {
  display: grid;
  gap: 10px;
  max-height: min(540px, calc(100svh - 260px));
  overflow: auto;
}

.baccarat-history-row {
  display: grid;
  gap: 12px;
  border-color: rgba(242, 199, 91, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(3, 7, 18, 0.5);
}

.baccarat-history-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.baccarat-history-stats p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
}

.baccarat-history-stats p strong {
  color: #fff0a9;
  font-size: 0.78rem;
}

.casino-outcome-toast {
  position: fixed;
  left: 50%;
  top: 22%;
  z-index: 80;
  display: grid;
  min-width: min(300px, calc(100vw - 36px));
  gap: 5px;
  justify-items: center;
  padding: 18px 24px;
  border: 1px solid rgba(242, 199, 91, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 199, 91, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(12, 22, 48, 0.96), rgba(3, 7, 18, 0.98));
  color: #fff;
  text-align: center;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.48),
    0 0 38px rgba(242, 199, 91, 0.18);
  transform: translateX(-50%);
  pointer-events: none;
  animation: casinoOutcomeToast 1.6s ease both;
}

.casino-outcome-toast strong {
  color: #fff0a9;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  font-weight: 950;
  letter-spacing: 0;
}

.casino-outcome-toast span {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
}

.casino-outcome-toast.win {
  border-color: rgba(242, 199, 91, 0.64);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.48),
    0 0 46px rgba(242, 199, 91, 0.36);
}

.casino-outcome-toast.loss {
  border-color: rgba(233, 69, 96, 0.58);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(233, 69, 96, 0.28);
}

.casino-outcome-toast.loss strong {
  color: #ffd1da;
}

.casino-outcome-toast.push {
  border-color: rgba(83, 139, 255, 0.48);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.48),
    0 0 38px rgba(83, 139, 255, 0.24);
}

.casino-slot-page .slot-history-panel .bet-list,
.casino-blackjack-page .blackjack-history-list,
.casino-baccarat-page .baccarat-history-list {
  scrollbar-color: rgba(242, 199, 91, 0.34) rgba(3, 7, 18, 0.76);
  scrollbar-width: thin;
}

.casino-slot-page .slot-history-panel .bet-list::-webkit-scrollbar,
.casino-blackjack-page .blackjack-history-list::-webkit-scrollbar,
.casino-baccarat-page .baccarat-history-list::-webkit-scrollbar {
  width: 8px;
}

.casino-slot-page .slot-history-panel .bet-list::-webkit-scrollbar-track,
.casino-blackjack-page .blackjack-history-list::-webkit-scrollbar-track,
.casino-baccarat-page .baccarat-history-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.76);
}

.casino-slot-page .slot-history-panel .bet-list::-webkit-scrollbar-thumb,
.casino-blackjack-page .blackjack-history-list::-webkit-scrollbar-thumb,
.casino-baccarat-page .baccarat-history-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(242, 199, 91, 0.62), rgba(116, 76, 18, 0.82));
}

.casino-slot-page .slot-spin-row.selection-box,
.casino-blackjack-page .blackjack-history-row.selection-box,
.casino-baccarat-page .baccarat-history-row.selection-box {
  border: 1px solid rgba(242, 199, 91, 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 199, 91, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(12, 22, 48, 0.96), rgba(3, 7, 18, 0.98));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.22);
}

.casino-slot-page .slot-spin-row strong,
.casino-blackjack-page .blackjack-history-row strong,
.casino-baccarat-page .baccarat-history-row strong {
  color: #fff;
}

.casino-slot-page .slot-spin-row .subtle,
.casino-blackjack-page .blackjack-history-row .subtle,
.casino-baccarat-page .baccarat-history-row .subtle {
  color: rgba(214, 219, 230, 0.68);
}

.casino-slot-page .slot-spin-stats,
.casino-blackjack-page .blackjack-history-stats,
.casino-baccarat-page .baccarat-history-stats {
  min-width: 0;
}

.casino-slot-page .slot-spin-stats p,
.casino-blackjack-page .blackjack-history-stats p,
.casino-baccarat-page .baccarat-history-stats p {
  align-items: center;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 240, 169, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(214, 219, 230, 0.7);
}

.casino-slot-page .slot-spin-stats p span,
.casino-blackjack-page .blackjack-history-stats p span,
.casino-baccarat-page .baccarat-history-stats p span {
  color: rgba(214, 219, 230, 0.62);
}

.casino-slot-page .slot-spin-stats p strong,
.casino-blackjack-page .blackjack-history-stats p strong,
.casino-baccarat-page .baccarat-history-stats p strong {
  color: #fff0a9;
}

.casino-slot-page .slot-spin-stats .chip,
.casino-blackjack-page .blackjack-history-stats .chip,
.casino-baccarat-page .baccarat-history-stats .chip {
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 950;
}

.casino-slot-page .slot-spin-stats .chip.green,
.casino-blackjack-page .blackjack-history-stats .chip.green,
.casino-baccarat-page .baccarat-history-stats .chip.green {
  border-color: rgba(67, 196, 143, 0.42);
  background: rgba(19, 120, 82, 0.2);
  color: #b8ffe3;
}

.casino-slot-page .slot-spin-stats .chip.red,
.casino-blackjack-page .blackjack-history-stats .chip.red,
.casino-baccarat-page .baccarat-history-stats .chip.red {
  border-color: rgba(233, 69, 96, 0.44);
  background: rgba(116, 17, 38, 0.28);
  color: #ffd1da;
}

.casino-slot-page .slot-spin-stats .chip.blue,
.casino-blackjack-page .blackjack-history-stats .chip.blue,
.casino-baccarat-page .baccarat-history-stats .chip.blue {
  border-color: rgba(242, 199, 91, 0.38);
  background: rgba(242, 199, 91, 0.12);
  color: #fff0a9;
}

.casino-slot-page .slot-history-panel .empty,
.casino-blackjack-page .blackjack-history-panel .empty,
.casino-baccarat-page .baccarat-history-panel .empty {
  border: 1px solid rgba(242, 199, 91, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 199, 91, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(12, 22, 48, 0.88), rgba(3, 7, 18, 0.94));
  color: rgba(214, 219, 230, 0.72);
}

.casino-machine,
.casino-table,
.blackjack-board {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.casino-reel-window {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--coal), #151b2b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.casino-reel-window span {
  display: grid;
  min-height: 94px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0, #e7edf8);
  color: #101728;
  font-size: 1.7rem;
  font-weight: 950;
}

.casino-reel-window.mini {
  width: 116px;
  padding: 7px;
  gap: 5px;
}

.casino-reel-window.mini span {
  min-height: 42px;
  font-size: 0.72rem;
}

.casino-reel-window.spinning span {
  animation: casinoReelTick 0.42s ease-in-out infinite;
}

.casino-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) repeat(3, auto);
  gap: 12px;
  align-items: end;
}

.casino-form .field {
  margin: 0;
}

.casino-play-button {
  min-height: 44px;
  white-space: nowrap;
}

.casino-baccarat-page .baccarat-control-form {
  grid-template-columns: 1fr;
}

.casino-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.casino-result.win {
  border-color: rgba(31, 94, 255, 0.28);
  background: var(--chip-green-bg);
  color: var(--chip-green-text);
}

.casino-result.loss {
  border-color: rgba(214, 69, 69, 0.26);
  background: var(--chip-red-bg);
  color: var(--chip-red-text);
}

.baccarat-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.baccarat-hand,
.blackjack-hand {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.blackjack-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.casino-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.casino-meta-row strong {
  color: var(--ink);
}

.casino-card-row,
.casino-card-stack,
.casino-baccarat-mini {
  display: flex;
  align-items: center;
  min-height: 112px;
}

.casino-card-row {
  gap: 10px;
  flex-wrap: wrap;
}

.casino-card-stack.mini,
.casino-baccarat-mini {
  justify-content: flex-end;
  min-height: 74px;
  min-width: 106px;
}

.casino-playing-card {
  display: grid;
  align-content: space-between;
  width: 74px;
  height: 104px;
  padding: 10px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 22px rgba(5, 9, 19, 0.16);
}

.casino-playing-card b {
  font-size: 1.3rem;
}

.casino-playing-card small {
  justify-self: end;
  font-weight: 900;
}

.casino-playing-card.red {
  color: #c72f46;
}

.casino-playing-card.hidden {
  place-items: center;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(242, 199, 91, 0.18), rgba(31, 94, 255, 0.22)),
    #111827;
  color: #fff;
}

.casino-card-stack.mini .casino-playing-card,
.casino-baccarat-mini .casino-playing-card {
  width: 48px;
  height: 68px;
  padding: 7px;
}

.casino-card-stack.mini .casino-playing-card + .casino-playing-card,
.casino-baccarat-mini .casino-playing-card + .casino-playing-card {
  margin-left: -18px;
  transform: rotate(8deg);
}

.poster-cards.casino-baccarat-mini .casino-playing-card {
  width: 78px;
  height: 110px;
  padding: 10px;
}

.poster-cards.casino-baccarat-mini .casino-playing-card + .casino-playing-card {
  margin-left: -28px;
  transform: rotate(8deg) translateY(10px);
}

.casino-chip-stack {
  position: relative;
  width: 148px;
  height: 110px;
  flex: 0 0 auto;
}

.casino-chip {
  position: absolute;
  right: 22px;
  bottom: 12px;
  width: 68px;
  height: 68px;
  border: 10px dashed rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 18px 30px rgba(5, 9, 19, 0.2);
  animation: casinoChipPulse 2.8s ease-in-out infinite;
}

.casino-chip.blue {
  right: 70px;
  bottom: 30px;
  background: var(--accent);
  animation-delay: 0.45s;
}

.casino-chip.gold {
  right: 2px;
  bottom: 42px;
  background: var(--gold);
  animation-delay: 0.9s;
}

.casino-history .bet-list {
  max-height: 620px;
  overflow: auto;
}

@keyframes casinoReelTick {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes casinoBetChipPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.93);
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.34),
      0 0 0 5px rgba(242, 199, 91, 0.16),
      inset 0 2px 0 rgba(255, 255, 255, 0.34),
      inset 0 -8px 14px rgba(0, 0, 0, 0.28);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slotReelRoll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-100% + var(--slot-symbol-size)));
  }
}

@keyframes slotReelStop {
  0% {
    filter: blur(1.2px);
    transform: translateY(calc(-2 * var(--slot-symbol-size)));
  }
  78% {
    filter: blur(0.35px);
    transform: translateY(calc(-100% + var(--slot-symbol-size) - 12px));
  }
  92% {
    transform: translateY(calc(-100% + var(--slot-symbol-size) + 5px));
  }
  100% {
    filter: blur(0);
    transform: translateY(calc(-100% + var(--slot-symbol-size)));
  }
}

@keyframes slotWinPulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      inset 0 -22px 50px rgba(0, 0, 0, 0.38),
      0 30px 58px rgba(0, 0, 0, 0.34);
  }
  45% {
    box-shadow:
      inset 0 0 28px rgba(242, 199, 91, 0.18),
      inset 0 -22px 50px rgba(0, 0, 0, 0.38),
      0 0 44px rgba(242, 199, 91, 0.42),
      0 30px 58px rgba(0, 0, 0, 0.34);
  }
}

@keyframes slotLightPulse {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blackjackDealerBreathe {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-4px) scale(1.012);
  }
}

@keyframes blackjackDealerLean {
  0% {
    transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
  }
  42% {
    transform: translateX(-50%) translateY(9px) rotate(-1.2deg) scale(1.035);
  }
  100% {
    transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes blackjackCardDeal {
  from {
    opacity: 0;
    transform: translateY(-12px) rotate(-2deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes baccaratCardDeal {
  from {
    opacity: 0;
    transform: translate3d(42px, -88px, 0) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes baccaratCardReveal {
  from {
    opacity: 0.84;
    transform: perspective(720px) rotateY(82deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: perspective(720px) rotateY(0deg) scale(1);
  }
}

@keyframes baccaratTableCollect {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -12px, 0) scale(0.985);
  }
}

@keyframes baccaratChipPlace {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes baccaratChipWin {
  0%,
  100% {
    transform: translate(-50%, 0) scale(1);
    filter: drop-shadow(0 0 0 rgba(242, 199, 91, 0));
  }
  45% {
    transform: translate(-50%, -2px) scale(1.08);
    filter: drop-shadow(0 0 14px rgba(242, 199, 91, 0.55));
  }
}

@keyframes baccaratChipLose {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0.42;
    transform: translate(36px, -18px) scale(0.86);
  }
}

@keyframes baccaratChipPush {
  0%,
  100% {
    transform: translate(-50%, 0) scale(1);
  }
  45% {
    transform: translate(-50%, 0) scale(1.04);
  }
}

@keyframes casinoOutcomeToast {
  0% {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.96);
  }
  14%,
  76% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.98);
  }
}

@keyframes blackjackCardFlyFromDealer {
  from {
    opacity: 0;
    transform: translate(var(--deal-x), var(--deal-y)) rotate(-9deg) scale(0.64);
    filter: blur(1px);
  }
  70% {
    opacity: 1;
    transform: translate(0, 3px) rotate(1deg) scale(1.02);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes blackjackCardReveal {
  from {
    opacity: 0.72;
    transform: rotateY(88deg) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: rotateY(-8deg) scale(1.02);
  }
  to {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
}

@keyframes blackjackChipToPlayer {
  from {
    opacity: 0;
    transform: translate(-42px, -88px) scale(0.8);
  }
  24% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(-112px, 102px) scale(1.1);
  }
}

@keyframes blackjackChipToDealer {
  from {
    opacity: 0;
    transform: translate(-80px, 92px) scale(0.88);
  }
  26% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(78px, -110px) scale(0.72);
  }
}

@keyframes blackjackChipPush {
  0% {
    opacity: 0;
    transform: translate(-10px, 0) scale(0.85);
  }
  34% {
    opacity: 1;
    transform: translate(0, 0) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes casinoChipPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.funds-shell {
  background: #fff;
}

.funds-shell .hero {
  min-height: 76px;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid #edf0f1;
}

.funds-shell .topbar {
  max-width: 1500px;
  padding: 18px 28px;
}

.funds-shell .hero-inner {
  display: none;
}

.funds-shell .brand-logo {
  filter: none;
}

.funds-shell .status-pill {
  border: 0;
  background: #f5f5f6;
  color: var(--ink);
}

.funds-shell .balance-pill {
  border: 0;
  background: #1f1f1f;
  color: #fff;
}

.funds-shell .ghost {
  color: var(--ink);
}

.funds-shell .nav-band {
  position: static;
  border-bottom: 0;
  background: #fff;
  backdrop-filter: none;
}

.funds-shell .tabs {
  max-width: 1500px;
  padding: 0 28px 16px;
}

.funds-shell .tab {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #1f1f1f;
  font-size: 1rem;
}

.funds-shell .tab.active {
  background: #f3f3f4;
  color: #111;
}

.funds-shell .content {
  max-width: 1180px;
  padding: 46px 18px 70px;
}

body:has(.casino-slot-page),
body:has(.casino-slot-page) .funds-shell {
  background:
    radial-gradient(circle at 20% 8%, rgba(242, 199, 91, 0.1), transparent 32%),
    radial-gradient(circle at 86% 38%, rgba(233, 69, 96, 0.1), transparent 36%),
    linear-gradient(180deg, #030712, #050913 54%, #08030a);
  color: #fff;
}

body:has(.casino-slot-page) .funds-shell .hero,
body:has(.casino-slot-page) .funds-shell .nav-band {
  border-color: rgba(242, 199, 91, 0.16);
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.96), rgba(5, 9, 19, 0.92)),
    #030712;
}

body:has(.casino-slot-page) .funds-shell .brand,
body:has(.casino-slot-page) .funds-shell .ghost,
body:has(.casino-slot-page) .funds-shell .tab {
  color: rgba(255, 255, 255, 0.82);
}

body:has(.casino-slot-page) .funds-shell .status-pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

body:has(.casino-slot-page) .funds-shell .balance-pill {
  border: 1px solid rgba(242, 199, 91, 0.28);
  background: rgba(242, 199, 91, 0.12);
  color: #fff0a9;
}

body:has(.casino-slot-page) .funds-shell .tab.active {
  background: rgba(242, 199, 91, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(242, 199, 91, 0.22);
}

body:has(.casino-slot-page) .funds-shell .content {
  max-width: 1280px;
  padding: 30px 18px 70px;
}

body:has(.casino-page:not(.casino-slot-page):not(.casino-blackjack-page):not(.casino-baccarat-page)),
body:has(.casino-page:not(.casino-slot-page):not(.casino-blackjack-page):not(.casino-baccarat-page)) .funds-shell {
  background:
    radial-gradient(circle at 18% 8%, rgba(242, 199, 91, 0.12), transparent 32%),
    radial-gradient(circle at 86% 22%, rgba(150, 18, 38, 0.18), transparent 38%),
    radial-gradient(circle at 50% 88%, rgba(12, 100, 67, 0.12), transparent 42%),
    linear-gradient(180deg, #030712, #050913 56%, #08030a);
  color: #fff;
}

body:has(.casino-page:not(.casino-slot-page):not(.casino-blackjack-page):not(.casino-baccarat-page)) .funds-shell .hero,
body:has(.casino-page:not(.casino-slot-page):not(.casino-blackjack-page):not(.casino-baccarat-page)) .funds-shell .nav-band {
  border-color: rgba(242, 199, 91, 0.16);
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.96), rgba(5, 9, 19, 0.92)),
    #030712;
}

body:has(.casino-page:not(.casino-slot-page):not(.casino-blackjack-page):not(.casino-baccarat-page)) .funds-shell .brand,
body:has(.casino-page:not(.casino-slot-page):not(.casino-blackjack-page):not(.casino-baccarat-page)) .funds-shell .ghost,
body:has(.casino-page:not(.casino-slot-page):not(.casino-blackjack-page):not(.casino-baccarat-page)) .funds-shell .tab {
  color: rgba(255, 255, 255, 0.82);
}

body:has(.casino-page:not(.casino-slot-page):not(.casino-blackjack-page):not(.casino-baccarat-page)) .funds-shell .status-pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

body:has(.casino-page:not(.casino-slot-page):not(.casino-blackjack-page):not(.casino-baccarat-page)) .funds-shell .balance-pill {
  border: 1px solid rgba(242, 199, 91, 0.28);
  background: rgba(242, 199, 91, 0.12);
  color: #fff0a9;
}

body:has(.casino-page:not(.casino-slot-page):not(.casino-blackjack-page):not(.casino-baccarat-page)) .funds-shell .tab.active {
  background: rgba(242, 199, 91, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(242, 199, 91, 0.22);
}

body:has(.casino-page:not(.casino-slot-page):not(.casino-blackjack-page):not(.casino-baccarat-page)) .funds-shell .content {
  max-width: 1280px;
  padding: 30px 18px 70px;
  background: transparent;
}

.funds-page {
  display: grid;
  gap: 34px;
}

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

.wallet-balance-card,
.wallet-panel,
.wallet-stat-card {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
}

.wallet-balance-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  gap: 28px;
  align-items: end;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(31, 94, 255, 0.1), rgba(214, 165, 40, 0.12)),
    #fff;
}

.wallet-balance-card h2 {
  margin-top: 8px;
  color: #111;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1;
}

.wallet-balance-card p:last-child {
  max-width: 540px;
  margin-top: 12px;
  color: #70727a;
}

.wallet-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wallet-action-grid button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-weight: 820;
}

.wallet-action-grid button:nth-child(even) {
  background: #f1f1f2;
  color: #1f1f1f;
}

.wallet-stat-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wallet-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.wallet-stat-card span,
.wallet-stat-card small {
  color: #777;
}

.wallet-stat-card strong {
  color: #111;
  font-size: 1.22rem;
}

.wallet-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.wallet-panel-head,
.wallet-list-row,
.wallet-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wallet-panel-head h2 {
  font-size: 1.12rem;
}

.wallet-list,
.wallet-method-grid {
  display: grid;
  gap: 12px;
}

.wallet-list-row,
.wallet-method-card {
  padding: 14px;
  border-radius: 10px;
  background: #f6f6f7;
}

.wallet-method-card {
  justify-content: flex-start;
}

.wallet-method-card > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--portal-teal);
}

.funds-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.funds-title-row h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.funds-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #e3e3e3;
  overflow-x: auto;
}

.funds-tab {
  position: relative;
  min-height: 44px;
  padding: 0 2px 16px;
  background: transparent;
  color: #777;
  font-size: 1.02rem;
  font-weight: 760;
  white-space: nowrap;
}

.funds-tab.active {
  color: #111;
}

.funds-tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #1f1f1f;
}

.funds-workflow {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(300px, 1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.funds-form,
.funds-withdraw-stack {
  display: grid;
  gap: 28px;
}

.funds-select-box,
.funds-amount-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 10px;
  background: #f4f4f5;
  color: #1f1f1f;
}

.funds-select-box.muted {
  color: #999;
}

.funds-select-box svg {
  margin-left: auto;
}

.funds-flag {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--portal-teal);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

.funds-helper,
.funds-note {
  color: #1f1f1f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.funds-amount-input {
  border: 1px solid #1f1f1f;
  background: #fff;
}

.funds-amount-input.muted {
  border-color: transparent;
  background: #f4f4f5;
}

.funds-amount-input input {
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 760;
}

.funds-amount-input input:focus {
  outline: 0;
}

.funds-amount-input span {
  color: #777;
  font-weight: 760;
}

.funds-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.funds-filter {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f1f1f2;
  color: #333;
  font-weight: 740;
  white-space: nowrap;
}

.funds-filter.active {
  background: #1f1f1f;
  color: #fff;
}

.funds-method-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.compact-method-list {
  max-height: 440px;
  overflow: auto;
  padding-right: 8px;
}

.funds-method-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f4f4f5;
  color: #1f1f1f;
  text-align: left;
}

.funds-method-card:hover,
.funds-method-card.selected {
  border-color: #18caa8;
  background: #fbfffd;
}

.funds-method-card strong,
.funds-method-card small {
  display: block;
}

.funds-method-card small {
  margin-top: 4px;
  color: #777;
  font-size: 0.9rem;
  font-weight: 650;
}

.funds-method-card em {
  padding: 5px 10px;
  border: 1px solid #18caa8;
  border-radius: 999px;
  color: #11a98d;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.funds-method-icon,
.funds-radio {
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.funds-method-icon {
  width: 38px;
  height: 38px;
  background: #fff;
  color: var(--portal-teal);
}

.funds-radio {
  width: 20px;
  height: 20px;
  border: 1px solid #bfc4c8;
  color: #fff;
}

.funds-method-card.selected .funds-radio,
.funds-method-card.saved .funds-radio {
  border-color: #18caa8;
  background: #18caa8;
}

.funds-continue {
  min-height: 58px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 850;
}

.funds-continue:hover {
  background: #000;
}

.funds-continue:disabled {
  background: #b8b8b8;
}

.funds-back {
  justify-self: start;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: #1f1f1f;
  font-weight: 760;
}

.voucher-icon {
  display: inline-flex;
  color: #18caa8;
}

.funds-process {
  display: grid;
  gap: 0;
  padding-top: 30px;
}

.funds-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  min-height: 112px;
  color: #9a9ca2;
}

.funds-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 10px;
  left: 18px;
  width: 1px;
  background: #d8dadd;
}

.funds-step.active {
  color: #1f1f1f;
}

.funds-step-icon {
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #e2e4e6;
  color: #9a9ca2;
}

.funds-step.active .funds-step-icon {
  background: #1f1f1f;
  color: #fff;
}

.funds-step strong {
  display: block;
  margin-top: 3px;
  font-size: 1.04rem;
}

.funds-step p {
  max-width: 420px;
  margin-top: 10px;
  color: #9a9ca2;
  line-height: 1.45;
}

.funds-method-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
}

.funds-method-form h3 {
  font-size: 1rem;
}

.crypto-detail-form {
  gap: 22px;
}

.crypto-method-title {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e6e6;
}

.crypto-method-title strong {
  font-size: 1.25rem;
}

.crypto-important {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 10px;
  background: #fde9e2;
  color: #1f1f1f;
}

.crypto-important ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.crypto-section {
  display: grid;
  gap: 12px;
}

.crypto-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.crypto-section h3 span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-size: 0.76rem;
}

.crypto-section p {
  color: #555;
  line-height: 1.45;
}

.crypto-qr {
  display: grid;
  grid-template-columns: repeat(8, 10px);
  gap: 3px;
  width: max-content;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
}

.crypto-qr span {
  width: 10px;
  height: 10px;
  background: #fff;
}

.crypto-qr span.dark {
  background: #1f1f1f;
}

.crypto-copy-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  background: #f4f4f5;
  color: #6c7177;
  overflow-wrap: anywhere;
}

.copy-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  background: #2f6bff;
}

.copy-button i {
  width: 15px;
  height: 15px;
}

.bank-important {
  background: #eaf6f4;
}

.bank-detail-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e4e6e7;
  border-radius: 10px;
  background: #fff;
}

.bank-detail-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  border-bottom: 1px solid #f0f1f2;
}

.bank-detail-card .bank-detail-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.35fr) auto;
  align-items: center;
}

.bank-detail-card div:last-child {
  border-bottom: 0;
}

.bank-detail-card span {
  color: #777;
  font-size: 0.92rem;
}

.bank-detail-card strong {
  color: #1f1f1f;
  text-align: left;
  overflow-wrap: anywhere;
}

.payment-details {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #e5e5e5;
}

.payment-details h3 {
  font-size: 1rem;
}

.payment-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #777;
}

.payment-details strong {
  color: #1f1f1f;
}

.funds-empty-line,
.funds-empty-cell {
  color: #777;
  text-align: center;
}

.funds-empty-line {
  padding: 22px;
  border-radius: 10px;
  background: #f4f4f5;
}

.funds-history {
  display: grid;
  gap: 26px;
}

.funds-history-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.funds-table-wrap {
  overflow-x: auto;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
}

.funds-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.funds-table th,
.funds-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #ebebeb;
  text-align: left;
  white-space: nowrap;
}

.funds-table th {
  color: #8b8b8b;
  font-weight: 740;
}

.funds-table tr:last-child td {
  border-bottom: 0;
}

.funds-order {
  border-bottom: 1px dotted #1f1f1f;
  font-weight: 760;
}

.funds-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ececec;
  color: #555;
  font-size: 0.8rem;
  font-weight: 800;
}

.funds-status.green {
  background: var(--chip-green-bg);
  color: var(--chip-green-text);
}

.funds-status.blue {
  background: #e7f0ff;
  color: #2470d6;
}

.funds-status.red {
  background: #ffe6e1;
  color: #b23529;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(380px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--coal);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 760;
}

/* Theme normalization */
.app-shell,
.funds-shell,
.login-layout,
.loading-screen {
  background: var(--bg);
  color: var(--ink);
}

.login-layout {
  background: #050913;
}

.panel,
.login-card,
.selection-box,
.stat-card,
.stat-box,
.wallet-balance-card,
.wallet-panel,
.wallet-stat-card,
.home-card,
.funds-method-form,
.bank-detail-card,
.funds-table-wrap {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.panel-header,
.crypto-method-title,
.payment-details,
.funds-tabs,
.home-market-tabs,
.home-market-row,
.bank-detail-card div,
.funds-table th,
.funds-table td {
  border-color: var(--line);
}

.match-card:hover,
.match-card:focus-visible,
.player-card.open-row,
.user-message-row.active {
  background: var(--hover-soft);
}

.match-headline,
.funds-helper,
.funds-note,
.crypto-important,
.bank-detail-card strong,
.payment-details strong,
.wallet-balance-card h2,
.wallet-stat-card strong,
.home-account-row strong,
.home-account-row em {
  color: var(--ink);
}

.subtle,
.odd-label,
.funds-tab,
.funds-method-card small,
.funds-amount-input span,
.funds-step,
.funds-step p,
.crypto-section p,
.crypto-copy-line,
.bank-detail-card span,
.payment-details div,
.funds-empty-line,
.funds-empty-cell,
.funds-table th,
.wallet-balance-card p:last-child,
.wallet-stat-card span,
.wallet-stat-card small,
.home-account-row,
.home-market-row p,
.home-promo p:last-child,
.home-eye {
  color: var(--muted);
}

.hero .eyebrow,
.login-copy .eyebrow {
  color: var(--lime);
}

.funds-shell .eyebrow,
.wallet-balance-card .eyebrow,
.wallet-panel .eyebrow,
.home-card .eyebrow {
  color: var(--accent-strong);
}

.home-promo .eyebrow {
  color: var(--gold);
}

input,
select,
.odd-button,
.market-button,
.icon-button,
.secondary,
.user-message-row,
.funds-amount-input,
.crypto-copy-line {
  border-color: var(--line);
  background: var(--field-strong);
  color: var(--ink);
}

.login-card input,
.login-card select,
.funds-select-box,
.funds-amount-input.muted,
.funds-filter,
.funds-method-card,
.funds-empty-line,
.wallet-list-row,
.wallet-method-card,
.home-quick-actions button,
.home-market-tabs span,
.home-market-prices span,
.form-dot,
.score-column-title {
  background: var(--field);
  color: var(--ink);
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline-color: rgba(10, 122, 92, 0.18);
}

.score-odd-card input {
  border-color: rgba(120, 167, 255, 0.24);
  background: rgba(5, 9, 19, 0.92);
  color: #fff;
}

.score-odd-card input:focus {
  border-color: var(--gold);
  outline-color: rgba(242, 199, 91, 0.14);
}

/* Admin Step 2 shell and visual polish */
.admin-shell {
  --admin-sidebar-open: 272px;
  --admin-sidebar-closed: 84px;
  --admin-card-radius: 8px;
  --admin-card-border: rgba(15, 23, 42, 0.1);
  --admin-card-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: var(--admin-sidebar-open) minmax(0, 1fr);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 94, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #f3f6fb, #eef2f8);
}

.admin-shell.sidebar-collapsed {
  grid-template-columns: var(--admin-sidebar-closed) minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  padding: 16px 12px;
  background:
    linear-gradient(180deg, #071026, #0b1020 58%, #050913);
  color: #fff;
  box-shadow: 18px 0 36px rgba(5, 9, 19, 0.22);
}

.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 4px 4px 16px;
  border-bottom: 1px solid rgba(242, 199, 91, 0.16);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.admin-sidebar-brand .brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.admin-sidebar-brand span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small,
.admin-nav-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-brand strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
}

.admin-sidebar-brand small {
  color: rgba(242, 199, 91, 0.82);
  font-weight: 780;
}

.admin-sidebar-toggle,
.admin-mobile-menu {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(242, 199, 91, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-mobile-menu {
  display: none;
  background: #0b1020;
}

.admin-sidebar-nav {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-top: 16px;
}

.admin-sidebar .admin-nav-item {
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(245, 247, 251, 0.76);
}

.admin-sidebar .admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.admin-sidebar .admin-nav-item.active {
  background:
    linear-gradient(135deg, rgba(242, 199, 91, 0.26), rgba(31, 94, 255, 0.18));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gold);
}

.admin-shell.sidebar-collapsed .admin-sidebar {
  align-items: center;
  padding-inline: 10px;
}

.admin-shell.sidebar-collapsed .admin-sidebar-brand span,
.admin-shell.sidebar-collapsed .admin-nav-item span {
  display: none;
}

.admin-shell.sidebar-collapsed .admin-sidebar-head {
  flex-direction: column;
}

.admin-shell.sidebar-collapsed .admin-sidebar .admin-nav-item {
  justify-content: center;
  padding-inline: 0;
}

.admin-workspace {
  min-width: 0;
}

.admin-page-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(16px);
}

.admin-page-title {
  min-width: 0;
}

.admin-page-title .eyebrow {
  color: var(--portal-teal);
  letter-spacing: 0.06em;
}

.admin-page-title h1 {
  margin: 2px 0 4px;
  color: #071026;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  line-height: 1.08;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 10px;
}

.admin-shell .content {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 22px 24px 46px;
}

.admin-dashboard-layout {
  display: grid;
  gap: 18px;
}

.admin-shell .admin-summary {
  max-width: none;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-shell .panel {
  min-width: 0;
  border: 1px solid var(--admin-card-border);
  border-radius: var(--admin-card-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96));
  box-shadow: var(--admin-card-shadow);
}

.admin-shell .panel-header {
  min-height: 76px;
  padding: 16px 18px;
}

.admin-shell .panel-title {
  color: #0b1020;
  font-size: 1.02rem;
}

.admin-shell .history-list,
.admin-shell .bet-list,
.admin-shell .player-list,
.admin-shell .form-stack {
  padding: 16px;
}

.admin-shell .selection-box,
.admin-shell .player-card,
.admin-shell .admin-row {
  min-width: 0;
  border-color: rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-shell .admin-row,
.admin-shell .player-main,
.admin-shell .market-row {
  min-width: 0;
}

.admin-shell .admin-row > div,
.admin-shell .player-main > div,
.admin-shell .market-row > div {
  min-width: 0;
}

.admin-shell .stat-box {
  min-width: 0;
  min-height: 92px;
  padding: 14px;
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 94, 255, 0.045), rgba(214, 165, 40, 0.055)),
    #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.admin-shell .stat-box strong,
.admin-shell .admin-row strong,
.admin-shell .player-main strong,
.admin-shell .balance-history-strip strong,
.admin-shell .market-row strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-shell .stat-box strong {
  color: #1646c9;
  font-size: clamp(1.05rem, 1.6vw, 1.65rem);
  line-height: 1.08;
}

.admin-shell .stat-box span,
.admin-shell .stat-box small {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.admin-shell .admin-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px;
}

.dashboard-panel .admin-metric-grid {
  align-items: stretch;
}

.admin-shell .compact-list {
  max-height: 520px;
  scrollbar-color: rgba(31, 94, 255, 0.35) transparent;
}

.admin-shell .empty {
  min-height: 118px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
}

.admin-shell input,
.admin-shell select {
  min-height: 44px;
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
}

.admin-shell .secondary {
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
}

.admin-shell .ghost {
  color: #1646c9;
}

.casino-admin-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
}

.casino-control-panel {
  grid-column: 1 / 2;
}

.casino-stats-panel,
.casino-audit-panel {
  grid-column: 2 / 3;
}

.casino-audit-panel {
  align-self: start;
}

.casino-control-form {
  padding: 16px;
}

.casino-testing-box {
  border-color: rgba(214, 165, 40, 0.28);
  background:
    linear-gradient(135deg, rgba(214, 165, 40, 0.13), rgba(255, 255, 255, 0.86)),
    #fff;
}

.casino-session-layout {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.casino-session-group {
  display: grid;
  gap: 10px;
}

.casino-session-group.primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.casino-session-group.secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.casino-session-group.secondary .stat-box {
  min-height: 82px;
}

.casino-session-group.secondary .stat-box strong {
  font-size: clamp(0.98rem, 1.2vw, 1.3rem);
}

.admin-sidebar-scrim {
  display: none;
}

.primary,
.funds-continue,
.wallet-action-grid button,
.home-quick-actions button:first-child,
.home-market-tabs span.active,
.funds-filter.active,
.funds-step.active .funds-step-icon,
.crypto-section h3 span {
  background: var(--primary);
  color: var(--primary-text);
}

.primary:hover,
.funds-continue:hover {
  background: var(--primary-hover);
}

.secondary:hover,
.funds-filter:hover,
.home-quick-actions button:hover,
.home-market-tabs span:hover {
  background: var(--surface-3);
}

.text-button,
.match-footer,
.funds-back,
.admin-hero .ghost,
.admin-hero + .nav-band .tab:not(.active),
.wallet-panel-head .text-button,
.home-card .text-button {
  color: var(--accent-strong);
}

.danger {
  background: var(--danger);
  color: #fff;
}

.segment,
.login-card .segment,
.theme-switch {
  border-color: var(--line);
  background: var(--surface-2);
}

.segment button {
  color: var(--muted);
}

.segment button.active,
.tab.active,
.funds-shell .tab.active {
  background: var(--primary);
  color: var(--primary-text);
}

.nav-band,
.funds-shell .nav-band,
.admin-hero,
.funds-shell .hero {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.admin-hero {
  box-shadow: var(--shadow);
}

.admin-hero + .nav-band .tab.active,
.admin-grid .primary,
.match-admin-grid .primary,
.add-match-page .primary,
.message-admin-grid .primary,
.account-grid .primary,
.wallet-grid .primary,
.kyc-grid .primary {
  background: var(--portal-orange);
  color: #fff;
}

.admin-hero + .nav-band .tab.active:hover,
.admin-grid .primary:hover,
.match-admin-grid .primary:hover,
.add-match-page .primary:hover,
.message-admin-grid .primary:hover,
.account-grid .primary:hover,
.wallet-grid .primary:hover,
.kyc-grid .primary:hover,
.login-card .primary:hover {
  background: var(--portal-orange-dark);
}

.login-card .panel-header::before,
.wallet-method-card > span,
.funds-method-icon,
.crypto-qr,
.crypto-qr span {
  background-color: var(--surface);
}

.crypto-qr span.dark {
  background: var(--ink);
}

.wallet-balance-card {
  background: var(--wallet-grad);
}

.wallet-action-grid button:nth-child(even) {
  background: var(--field);
  color: var(--ink);
}

.wallet-list-row,
.wallet-method-card {
  background: var(--field);
}

.funds-shell .status-pill {
  background: var(--field);
  color: var(--ink);
}

.funds-shell .balance-pill {
  background: var(--primary);
  color: var(--primary-text);
}

.funds-shell .ghost,
.funds-shell .tab {
  color: var(--ink);
}

.funds-tab.active {
  color: var(--ink);
}

.funds-tab.active::after {
  background: var(--ink);
}

.funds-order {
  border-bottom-color: var(--ink);
  background: transparent;
}

.funds-method-card:hover,
.funds-method-card.selected,
.market-button:hover,
.market-button.selected,
.odd-button:hover,
.odd-button.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.funds-method-card em {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.funds-method-card.selected .funds-radio,
.funds-method-card.saved .funds-radio {
  border-color: var(--accent);
  background: var(--accent);
}

.funds-radio {
  border-color: var(--line);
}

.funds-step:not(:last-child)::after {
  background: var(--line);
}

.funds-step.active {
  color: var(--ink);
}

.funds-step-icon {
  background: var(--surface-3);
  color: var(--muted);
}

.crypto-important {
  background: rgba(214, 165, 40, 0.14);
}

.bank-important {
  background: var(--accent-soft);
}

.funds-status,
.chip {
  background: var(--chip-bg);
  color: var(--chip-text);
}

.funds-status.green,
.chip.green,
.form-dot.w {
  background: var(--chip-green-bg);
  color: var(--chip-green-text);
}

.funds-status.blue,
.chip.blue,
.form-dot.d {
  background: var(--chip-blue-bg);
  color: var(--chip-blue-text);
}

.funds-status.red,
.chip.red,
.form-dot.l {
  background: var(--chip-red-bg);
  color: var(--chip-red-text);
}

.amount-up,
.voucher-icon {
  color: var(--accent-strong);
}

.amount-down {
  color: var(--red);
}

.home-promo {
  background:
    radial-gradient(circle at 20% 50%, rgba(214, 165, 40, 0.24), transparent 31%),
    radial-gradient(circle at 82% 28%, rgba(31, 94, 255, 0.34), transparent 36%),
    linear-gradient(95deg, rgba(5, 9, 19, 0.98), rgba(18, 28, 66, 0.94) 58%, rgba(5, 9, 19, 0.34)),
    url("assets/stadium-hero.png") center / cover;
  color: #fff;
}

.home-promo.campaign-banner {
  background: #050913;
}

.home-promo-art {
  background: linear-gradient(135deg, rgba(31, 94, 255, 0.24), rgba(233, 69, 96, 0.18));
}

.home-promo p:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.toast {
  background: var(--coal);
  color: #fff;
}

.panel-tools {
  display: grid;
  width: min(100%, 360px);
  gap: 10px;
}

.theme-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font-weight: 820;
  white-space: nowrap;
}

.theme-switch button.active {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 8px 18px rgba(10, 18, 14, 0.12);
}

.funds-shell .theme-switch,
.admin-hero .theme-switch,
.login-card .theme-switch {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.funds-shell .theme-switch button.active,
.admin-hero .theme-switch button.active,
.login-card .theme-switch button.active {
  background: var(--surface);
  color: var(--ink);
}

:root[data-theme="dark"] .login-copy {
  background:
    linear-gradient(180deg, rgba(5, 9, 19, 0.24), rgba(5, 9, 19, 0.42) 35%, rgba(7, 10, 19, 0.96) 74%, #050913),
    radial-gradient(circle at 78% 58%, rgba(120, 167, 255, 0.4), transparent 31%),
    linear-gradient(120deg, rgba(233, 69, 96, 0.28), rgba(255, 255, 255, 0) 42%),
    url("assets/stadium-hero.png") center / cover;
}

:root[data-theme="dark"] .login-copy .brand {
  color: #fff;
}

:root[data-theme="dark"] .funds-shell .brand-logo,
:root[data-theme="dark"] .admin-hero .brand-logo {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.login-form-panel {
  background: transparent !important;
  color: #fff;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.login-form-panel .panel-header {
  padding: 0 0 24px;
}

.login-form-panel .segment {
  background: rgba(232, 236, 244, 0.94);
}

.login-form-panel input,
.login-form-panel select {
  background: rgba(245, 247, 252, 0.96);
  color: #071026;
}

.login-form-panel label {
  color: rgba(255, 255, 255, 0.78);
}

.login-top-actions .theme-switch {
  width: 260px;
  min-height: 42px;
  padding: 4px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(16, 23, 40, 0.72);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.login-top-actions .theme-switch button {
  min-height: 34px;
  padding: 6px 8px;
  color: inherit;
  font-size: 0.82rem;
}

.login-top-actions .theme-switch button.active {
  background: var(--portal-orange);
  color: #071026;
  box-shadow: 0 10px 20px rgba(255, 202, 83, 0.18);
}

.login-form-panel .auth-contact-tabs.segment {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: rgba(232, 236, 244, 0.94);
  padding: 4px;
}

.login-form-panel .auth-contact-tabs button {
  min-width: 0;
  min-height: 42px;
  border-radius: 6px;
  color: #657085;
  font-size: 0.94rem;
  font-weight: 820;
  white-space: normal;
}

.login-form-panel .auth-contact-tabs button.active {
  background: var(--portal-teal);
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 94, 255, 0.2);
}

.login-form-panel label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.login-form-panel input::placeholder {
  color: #667085;
  opacity: 1;
}

.login-form-panel .auth-phone-field {
  gap: 0;
}

.login-form-panel .auth-phone-control {
  display: grid;
  grid-template-columns: minmax(98px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
}

.login-form-panel .auth-phone-control .auth-country-code,
.login-form-panel .auth-phone-control input {
  min-height: 56px;
}

.login-form-panel .auth-phone-control .auth-country-code {
  padding-right: 10px;
  font-weight: 850;
}

.login-form-panel .auth-submit.primary {
  margin-top: 12px;
}

.login-form-panel .auth-submit.primary:disabled {
  opacity: 0.86;
  transform: none;
}

.login-form-panel .auth-button-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 2px solid rgba(7, 16, 38, 0.28);
  border-top-color: #071026;
  border-radius: 999px;
  vertical-align: -3px;
  animation: authSpin 0.78s linear infinite;
}

.login-form-panel .auth-loading-notice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 999px;
  background: rgba(245, 247, 252, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 780;
}

.login-form-panel .auth-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--portal-orange);
  border-radius: 999px;
  animation: authSpin 0.78s linear infinite;
}

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

.login-form-panel .auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
}

.login-form-panel .auth-divider::before,
.login-form-panel .auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.login-form-panel .auth-alt-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 58px;
  width: 100%;
  border-radius: 999px;
  background: rgba(245, 247, 252, 0.92);
  color: #071026;
  font-size: 0.98rem;
  font-weight: 820;
}

.login-form-panel .auth-alt-login i {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  stroke-width: 3;
}

.login-form-panel .auth-box-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--portal-orange);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: underline;
}

.login-form-panel .auth-box-link-center {
  justify-self: center;
}

@media (max-width: 420px) {
  .login-form-panel .auth-phone-control {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 1080px) {
  .casino-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .grid,
  .sportsbook-grid,
  .match-detail-grid,
  .wallet-grid,
  .kyc-grid,
  .account-grid,
  .verification-form,
  .account-workspace,
  .account-detail-layout,
  .account-category-grid,
  .bets-grid,
  .message-admin-grid,
  .admin-grid,
  .login-layout {
    grid-template-columns: 1fr;
  }

  .casino-control-panel {
    grid-column: auto;
  }

  .betslip {
    position: static;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .session-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .login-card {
    align-self: start;
    width: auto;
  }

  .login-panel-zone {
    grid-column: 1;
    min-height: auto;
    padding: 22px 14px 32px;
    background:
      radial-gradient(circle at 70% 12%, rgba(255, 210, 91, 0.1), transparent 28%),
      linear-gradient(180deg, #050913, #0b1020);
    box-shadow: none;
  }

  .login-panel-zone .login-card,
  .login-live-strip {
    width: min(520px, 100%);
  }

  .login-copy {
    min-height: auto;
    padding: 14px;
  }

  .campaign-copy {
    position: relative;
    inset: auto;
    min-height: 46vh;
  }

  .login-campaign-overlay {
    inset: 18px 18px 22px;
    width: auto;
    max-width: none;
  }

  .login-campaign-message {
    position: relative;
    top: auto;
    left: auto;
    align-self: flex-start;
    width: 100%;
    transform: none;
  }

  .campaign-copy .campaign-hero-image {
    width: 100%;
    height: 46vh;
    min-height: 46vh;
    max-height: none;
    object-fit: cover;
    object-position: center left;
    box-shadow: none;
  }

  .campaign-overlay {
    left: 22px;
    bottom: 24px;
    width: min(82%, 430px);
  }

  .login-campaign-overlay {
    inset: 18px 18px 22px;
    width: auto;
    max-width: none;
  }

  .campaign-lockup {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.02rem;
  }

  .campaign-logo.brand-logo {
    width: 54px;
    height: 54px;
  }

  .campaign-overlay h1 {
    font-size: clamp(1.35rem, 5.7vw, 1.6rem);
    white-space: nowrap;
  }

  .campaign-copy .login-campaign-overlay h1 {
    font-size: clamp(1.35rem, 5.7vw, 1.6rem);
    white-space: nowrap;
  }

  .campaign-overlay p {
    margin-top: 10px;
    font-size: 0.94rem;
  }

  .login-live-strip {
    position: relative;
    bottom: auto;
  }

  .login-copy .brand {
    top: 24px;
    left: 22px;
  }

  .login-message {
    width: min(100%, 340px);
    margin-top: 70px;
  }

  .login-copy h1 {
    font-size: clamp(2.45rem, 11vw, 3rem);
    line-height: 0.98;
  }

  .login-star {
    right: -48px;
    bottom: -42px;
    min-width: 230px;
    width: 260px;
    opacity: 0.58;
  }

  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funds-shell .topbar,
  .funds-shell .tabs {
    padding-right: 18px;
    padding-left: 18px;
  }

  .funds-workflow {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wallet-balance-card,
  .wallet-overview,
  .wallet-stat-grid,
  .verification-progress,
  .account-summary-grid,
  .profile-detail-grid,
  .account-category-grid,
  .contact-verification-list {
    grid-template-columns: 1fr;
  }

  .profile-readonly-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-readonly-header .chip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .profile-detail-item.wide {
    grid-column: auto;
  }

  .account-side-nav {
    position: static;
  }

  .funds-process {
    order: -1;
    padding-top: 0;
  }

  .home-card-grid {
    grid-template-columns: 1fr;
  }

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

  .casino-stage {
    grid-template-columns: 1fr;
  }

  .casino-slot-page .slot-stage {
    grid-template-columns: 1fr;
  }

  .casino-slot-page .slot-history-panel {
    position: static;
  }

  .casino-blackjack-page .blackjack-stage {
    grid-template-columns: 1fr;
  }

  .casino-blackjack-page .blackjack-history-panel {
    position: static;
  }

  .casino-blackjack-page .blackjack-history-list {
    max-height: none;
  }

  .casino-baccarat-page .baccarat-stage {
    grid-template-columns: 1fr;
  }

  .casino-baccarat-page .baccarat-rail {
    position: static;
  }

  .casino-baccarat-page .baccarat-history-list {
    max-height: none;
  }

  .blackjack-result-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slot-page-header {
    grid-template-columns: 1fr;
  }

  .slot-balance-card {
    width: min(100%, 320px);
  }

  .casino-hero {
    grid-template-columns: 1fr;
  }

  .casino-history .bet-list {
    max-height: none;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 620px) {
  .hero-inner {
    padding-top: 36px;
  }

  .panel-header,
  .match-meta,
  .market-row,
  .transaction-row,
  .bet-row,
  .player-main,
  .admin-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .align-right,
  .admin-actions {
    justify-items: start;
    justify-content: flex-start;
    text-align: left;
  }

  .two-col,
  .three-col,
  .verification-two-col,
  .contact-code-form,
  .account-category-card,
  .detail-stats,
  .form-panels,
  .admin-control-grid,
  .admin-metric-grid,
  .match-admin-summary,
  .balance-history-strip,
  .inline-form,
  .result-form,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .admin-score-board {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }

  .add-match-actions {
    flex-direction: column-reverse;
  }

  .score-board {
    gap: 6px;
  }

  .account-category-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .account-category-card em {
    grid-column: 2 / 3;
    width: max-content;
  }

  .score-column-options {
    grid-template-columns: 1fr;
  }

  .session-actions .balance-pill,
  .session-actions .status-pill {
    white-space: normal;
  }

  .login-card {
    margin: 14px;
  }

  .login-panel-zone .login-card,
  .login-live-strip {
    width: calc(100% - 28px);
  }

  .login-card .panel-header {
    padding: 28px 22px 14px;
  }

  .login-card .form-stack {
    padding: 0 22px 28px;
  }

  .funds-shell .content {
    padding-top: 28px;
  }

  .funds-title-row,
  .funds-history-actions,
  .wallet-panel-head,
  .wallet-list-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .wallet-action-grid {
    grid-template-columns: 1fr;
  }

  .bank-detail-card div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .bank-detail-card .bank-detail-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bank-detail-card .copy-button {
    justify-self: start;
  }

  .bank-detail-card strong {
    text-align: left;
  }

  .funds-tabs {
    gap: 22px;
  }

  .funds-method-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .funds-method-card em {
    grid-column: 2;
    justify-self: start;
  }

  .funds-radio {
    grid-row: 1;
    grid-column: 3;
  }

  .funds-step {
    min-height: 98px;
  }

  .home-promo {
    grid-template-columns: 1fr;
    margin-top: -10px;
  }

  .home-promo.campaign-banner {
    height: clamp(260px, 68vw, 420px);
    margin: -10px calc(50% - 50vw) 16px;
  }

  .campaign-banner .campaign-overlay {
    left: 18px;
    top: 22px;
    bottom: 28px;
    width: min(82%, 420px);
  }

  .campaign-banner .home-campaign-overlay {
    width: min(420px, calc(100% - 36px));
  }

  .campaign-banner .campaign-lockup {
    margin-bottom: 8px;
    font-size: 0.9rem;
  }

  .campaign-banner .campaign-logo.brand-logo {
    width: 40px;
    height: 40px;
  }

  .campaign-banner .campaign-overlay h1 {
    font-size: clamp(1.95rem, 8vw, 3rem);
    max-width: 10ch;
  }

  .campaign-banner .campaign-overlay p {
    display: block;
    font-size: 0.9rem;
  }

  .campaign-slide.visual-markets .campaign-overlay,
  .campaign-slide.visual-wallet .campaign-overlay {
    top: 22px;
    bottom: auto;
  }

  .campaign-slide.visual-markets .campaign-overlay p,
  .campaign-slide.visual-wallet .campaign-overlay p {
    display: none;
  }

  .campaign-odds-strip,
  .campaign-live-board,
  .campaign-ticket-stack {
    right: 18px;
    left: 18px;
    width: auto;
  }

  .campaign-odds-strip {
    bottom: 42px;
    justify-content: space-between;
    gap: 6px;
    padding: 8px;
  }

  .campaign-odds-strip span,
  .campaign-odds-strip strong {
    display: none;
  }

  .campaign-odds-strip em {
    min-width: 0;
    flex: 1;
  }

  .campaign-live-board {
    top: auto;
    bottom: 42px;
    padding: 12px;
    transform: none;
  }

  .campaign-board-row {
    min-height: 46px;
    padding: 8px 0;
  }

  .campaign-board-row:nth-child(n + 4) {
    display: none;
  }

  .campaign-board-row div {
    gap: 5px;
  }

  .campaign-board-row strong {
    min-width: 42px;
    padding: 6px;
  }

  .campaign-ticket-stack {
    bottom: 40px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .campaign-mini-ticket {
    padding: 10px 12px;
  }

  .campaign-mini-ticket:nth-child(n + 3) {
    display: none;
  }

  .campaign-mini-ticket.main-ticket,
  .campaign-mini-ticket.win-ticket,
  .campaign-mini-ticket {
    transform: none;
  }

  .campaign-ghost-player {
    width: 88%;
    opacity: 0.46;
  }

  .campaign-dots {
    left: 18px;
    bottom: 14px;
  }

  .home-promo-art {
    width: 150px;
    height: 140px;
  }

  .home-promo-art .brand-logo {
    width: 76px;
    height: 76px;
  }

  .promo-star {
    width: 175px;
    transform: translateY(12px);
  }

  .home-card {
    padding: 18px;
  }

  .home-account-row,
  .home-market-row {
    grid-template-columns: 1fr;
  }

  .home-account-row em {
    text-align: left;
  }

  .home-market-prices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .casino-hero {
    display: grid;
    min-height: auto;
    padding: 22px;
  }

  .casino-hero h2 {
    font-size: 2.35rem;
  }

  .casino-hero-art {
    min-height: 170px;
  }

  .casino-game-grid {
    grid-template-columns: 1fr;
  }

  .casino-game-card {
    min-height: auto;
  }

  .casino-poster {
    min-height: 270px;
  }

  .slot-title-copy h2 {
    font-size: 2rem;
  }

  .casino-slot-page {
    padding: 14px;
  }

  .casino-slot-page .slot-title-copy h2 {
    font-size: 2rem;
  }

  .slot-play-panel .casino-machine {
    padding: 14px;
  }

  .slot-machine-frame {
    padding: 14px;
  }

  .casino-slot-page .slot-machine-frame {
    width: 100%;
    padding: 16px;
  }

  .slot-light-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .casino-slot-page .slot-light-row {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }

  .slot-reel-window {
    gap: 8px;
    padding: 10px;
  }

  .casino-slot-page .slot-reel-window {
    gap: 8px;
    padding: 10px;
  }

  .slot-reel {
    --slot-symbol-size: 132px;
    min-height: var(--slot-symbol-size);
    max-height: var(--slot-symbol-size);
  }

  .casino-slot-page .slot-reel {
    --slot-symbol-size: 132px;
    min-height: var(--slot-symbol-size);
    max-height: var(--slot-symbol-size);
  }

  .slot-symbol b {
    font-size: 0.92rem;
  }

  .slot-symbol-vip b,
  .slot-symbol-seven b,
  .slot-symbol-bar b {
    font-size: 1.65rem;
  }

  .casino-slot-page .slot-symbol-vip b,
  .casino-slot-page .slot-symbol-seven b,
  .casino-slot-page .slot-symbol-bar b {
    font-size: 1.58rem;
  }

  .casino-slot-page .slot-symbol-diamond b::before,
  .casino-slot-page .slot-symbol-cherry b::before,
  .casino-slot-page .slot-symbol-coin b::before {
    font-size: 1.15rem;
  }

  .casino-slot-page .slot-console {
    grid-template-columns: 1fr;
  }

  .casino-blackjack-page {
    padding: 20px 14px 14px;
  }

  .casino-baccarat-page {
    padding: 20px 14px 14px;
  }

  .blackjack-page-header {
    grid-template-columns: 1fr;
  }

  .baccarat-page-header {
    grid-template-columns: 1fr;
  }

  .baccarat-dashboard-head {
    display: grid;
  }

  .baccarat-dashboard-legend {
    justify-content: flex-start;
  }

  .baccarat-dashboard-grid {
    grid-template-columns: repeat(var(--road-cols), 30px);
    grid-auto-rows: 30px;
    min-width: 608px;
  }

  .blackjack-balance-card {
    justify-items: start;
    min-width: 0;
    width: min(100%, 320px);
  }

  .baccarat-balance-card {
    justify-items: start;
    min-width: 0;
    width: min(100%, 320px);
  }

  .blackjack-table-shell {
    padding-top: clamp(76px, 24vw, 96px);
  }

  .blackjack-dealer-scene {
    width: min(300px, 78vw);
    height: clamp(128px, 36vw, 164px);
  }

  .blackjack-dealer-frame {
    bottom: -48px;
    width: clamp(138px, 40vw, 170px);
    height: clamp(154px, 46vw, 204px);
  }

  .blackjack-felt {
    min-height: 318px;
    padding: 22px 12px 16px;
    border-width: 7px;
    border-radius: 36px;
  }

  .casino-blackjack-page .blackjack-card-row {
    min-height: 88px;
  }

  .blackjack-playing-card {
    width: clamp(48px, 17vw, 60px);
    padding: 6px;
  }

  .blackjack-result-board,
  .blackjack-control-form {
    grid-template-columns: 1fr;
  }

  .blackjack-control-top,
  .blackjack-main-actions,
  .blackjack-secondary-actions {
    grid-template-columns: 1fr;
  }

  .blackjack-hand-header,
  .casino-blackjack-page .blackjack-dealer-zone .blackjack-hand-header {
    grid-template-columns: 1fr;
  }

  .blackjack-hand-header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .blackjack-split-hands {
    grid-template-columns: 1fr;
  }

  .baccarat-card-board,
  .baccarat-control-form,
  .baccarat-result-board {
    grid-template-columns: 1fr;
  }

  .baccarat-felt {
    min-height: 364px;
    padding: 18px 12px 16px;
    border-width: 7px;
    border-radius: 36px;
  }

  .baccarat-bet-layout {
    grid-template-columns: 1fr;
  }

  .casino-baccarat-page .baccarat-card-row {
    min-height: 94px;
  }

  .baccarat-playing-card {
    width: clamp(48px, 17vw, 62px);
    padding: 6px;
  }

  .baccarat-card-placeholder {
    width: clamp(48px, 17vw, 62px);
  }

  .baccarat-result-metrics,
  .baccarat-choice-grid {
    grid-template-columns: 1fr;
  }

  .baccarat-control-form {
    padding-bottom: 14px;
  }

  .baccarat-action-strip {
    grid-template-columns: 1fr;
  }

  .baccarat-chip-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .baccarat-chip-summary {
    justify-items: start;
  }

  .baccarat-bet-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baccarat-choice-button {
    min-height: 58px;
  }

  .baccarat-road-grid {
    grid-template-columns: repeat(var(--road-cols), minmax(0, 1fr));
    grid-auto-rows: 28px;
  }

  .baccarat-chip-scene {
    right: 18px;
    bottom: 18px;
    transform: scale(0.82) rotate(-4deg);
    transform-origin: right bottom;
  }

  .blackjack-result-metrics {
    grid-template-columns: 1fr;
  }

  .blackjack-control-form {
    padding-bottom: 42px;
  }

  .slot-control-form,
  .slot-result-board,
  .slot-spin-row {
    grid-template-columns: 1fr;
  }

  .casino-slot-page .slot-result-metrics {
    grid-template-columns: 1fr;
  }

  .slot-spin-stats {
    justify-items: start;
    min-width: 0;
    width: 100%;
  }

  .slot-spin-button {
    width: 100%;
  }

  .slot-win-card {
    justify-items: start;
  }

  .casino-game-card,
  .casino-form,
  .baccarat-board,
  .blackjack-board {
    grid-template-columns: 1fr;
  }

  .casino-chip-stack {
    display: none;
  }

  .casino-coin-field {
    opacity: 0.7;
  }

  .casino-hero-cards {
    top: 20px;
    right: 50%;
    transform: translateX(50%);
  }

  .casino-orbit-ring {
    inset: 26px 28px;
  }

  .casino-result {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 420px) {
  .content,
  .tabs,
  .topbar,
  .hero-inner,
  .admin-summary {
    padding-left: 12px;
    padding-right: 12px;
  }

  .odds-grid {
    gap: 6px;
  }

  .odd-button {
    min-height: 58px;
    padding: 7px;
  }

  .odd-price {
    font-size: 1.05rem;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  button:hover,
  .home-card:hover,
  .wallet-panel:hover,
  .wallet-stat-card:hover,
  .wallet-balance-card:hover,
  .funds-method-card:hover,
  .match-card:hover,
  .odd-button:hover,
  .market-button:hover {
    transform: none;
  }

  .app-shell {
    background: var(--bg);
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(5, 9, 19, 0.96), rgba(12, 19, 38, 0.92)),
      url("assets/stadium-hero.png") center / cover;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px 10px;
  }

  .brand {
    gap: 10px;
    font-size: 0.98rem;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .session-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .session-actions > * {
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 8px 9px;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .session-actions i,
  .tab i {
    width: 17px;
    height: 17px;
  }

  .hero-inner {
    padding: 18px 14px 20px;
  }

  .hero-inner h1 {
    font-size: 1.78rem;
    line-height: 1.05;
  }

  .hero-copy {
    max-width: 32rem;
    margin-top: 8px;
    font-size: 0.92rem;
  }

  .nav-band {
    top: 0;
    overflow: visible;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    max-width: none;
    padding: 8px 12px 10px;
    overflow: visible;
  }

  .tab {
    display: inline-flex;
    min-width: 0;
    min-height: 54px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px;
    border-radius: 10px;
    font-size: 0.68rem;
    line-height: 1.08;
    text-align: center;
    white-space: nowrap;
  }

  .content {
    width: 100%;
    padding: 14px 12px calc(96px + env(safe-area-inset-bottom));
  }

  .panel,
  .home-card,
  .wallet-balance-card,
  .wallet-panel,
  .wallet-stat-card,
  .selection-box {
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .panel-header {
    gap: 10px;
    padding: 14px;
  }

  .panel-title {
    font-size: 1rem;
  }

  .subtle {
    font-size: 0.84rem;
  }

  .slip-body,
  .form-stack,
  .history-list,
  .bet-list,
  .detail-body {
    padding: 14px;
  }

  input,
  select {
    min-height: 48px;
    font-size: 16px;
  }

  .primary,
  .secondary,
  .danger,
  .ghost,
  .segment button,
  .link-button {
    min-height: 46px;
  }

  .login-layout {
    min-height: 100svh;
    overflow-y: auto;
    background: #050913;
  }

  .campaign-copy {
    min-height: 36svh;
  }

  .campaign-copy::before {
    background:
      linear-gradient(180deg, rgba(5, 9, 19, 0.18) 0%, rgba(5, 9, 19, 0.28) 42%, rgba(5, 9, 19, 0.9) 100%),
      linear-gradient(90deg, rgba(5, 9, 19, 0.56), rgba(5, 9, 19, 0.08));
  }

  .campaign-copy::after {
    background: linear-gradient(180deg, transparent 0 44%, #050913 100%);
  }

  .campaign-copy .campaign-hero-image {
    height: 36svh;
    min-height: 36svh;
    object-position: 35% center;
    animation: none;
  }

  .login-campaign-overlay {
    inset: 16px 16px 18px;
  }

  .login-campaign-overlay .campaign-lockup {
    font-size: 0.95rem;
  }

  .login-campaign-overlay .campaign-logo.brand-logo {
    width: 42px;
    height: 42px;
  }

  .campaign-copy .login-campaign-overlay h1,
  .campaign-overlay h1 {
    max-width: 100%;
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    line-height: 1;
    white-space: normal;
  }

  .login-campaign-message .eyebrow {
    margin-bottom: 6px;
    font-size: 0.72rem;
  }

  .login-campaign-message p:not(.eyebrow) {
    display: none;
  }

  .login-panel-zone {
    min-height: 64svh;
    padding: 14px 14px calc(88px + env(safe-area-inset-bottom));
    align-content: start;
    background: linear-gradient(180deg, #050913, #0b1020);
  }

  .login-top-actions {
    top: 12px;
    right: 12px;
  }

  .login-language {
    width: 116px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.85rem;
  }

  .login-card,
  .login-panel-zone .login-card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
  }

  .login-panel-zone .login-card {
    opacity: 1;
    animation: none;
  }

  .login-card .panel-header {
    padding: 8px 0 16px;
  }

  .login-card .login-form-logo {
    width: 58px;
    height: 58px;
  }

  .login-card .panel-title {
    font-size: 1.65rem;
  }

  .login-card .form-stack {
    gap: 14px;
    padding: 0;
  }

  .login-form-panel .auth-contact-tabs.segment {
    min-height: 46px;
  }

  .login-form-panel .auth-contact-tabs button {
    min-height: 38px;
    font-size: 0.82rem;
  }

  .login-form-panel input,
  .login-form-panel select,
  .login-form-panel .auth-alt-login,
  .login-form-panel .auth-submit.primary {
    min-height: 52px;
  }

  .login-form-panel .auth-divider {
    gap: 12px;
    font-size: 0.78rem;
  }

  .login-support {
    position: static;
    justify-self: end;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .home-promo.campaign-banner {
    height: clamp(260px, 72vw, 360px);
    margin: -2px -12px 14px;
    border-radius: 0;
  }

  .campaign-banner .campaign-hero-image {
    object-position: 63% center;
  }

  .campaign-banner .campaign-overlay {
    inset: 18px 16px 26px;
    width: auto;
  }

  .campaign-banner .campaign-overlay h1 {
    max-width: 9ch;
    font-size: clamp(2rem, 9vw, 3.1rem);
  }

  .campaign-banner .campaign-overlay p {
    max-width: 260px;
    font-size: 0.86rem;
  }

  .campaign-banner .campaign-lockup {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-card {
    padding: 18px;
  }

  .home-account-rows {
    gap: 0;
  }

  .home-account-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .home-account-row:last-child {
    border-bottom: 0;
  }

  .home-account-row strong {
    justify-self: end;
  }

  .home-account-row em {
    grid-column: 1 / -1;
    text-align: left;
  }

  .home-card-head {
    margin-bottom: 18px;
  }

  .home-balance-line strong {
    font-size: clamp(2rem, 11vw, 2.8rem);
    overflow-wrap: anywhere;
  }

  .home-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-quick-actions button,
  .home-market-tabs span {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 0.86rem;
  }

  .home-market-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
  }

  .home-market-tabs::-webkit-scrollbar {
    display: none;
  }

  .home-market-tabs span {
    flex: 0 0 auto;
  }

  .home-market-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .home-market-prices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sportsbook-grid,
  .match-detail-grid,
  .bets-grid {
    gap: 14px;
  }

  .match-card {
    gap: 12px;
    padding: 14px;
  }

  .match-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .teams {
    font-size: 0.96rem;
  }

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

  .odd-button {
    min-height: 58px;
    padding: 8px 6px;
    text-align: center;
  }

  .odd-label {
    font-size: 0.7rem;
  }

  .odd-price {
    font-size: 1.03rem;
  }

  .sportsbook-grid > .betslip,
  .match-detail-grid > .betslip {
    display: none;
  }

  .mobile-slip-trigger {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 28;
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 13px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-text);
    box-shadow: 0 18px 38px rgba(5, 9, 19, 0.24);
    font-size: 0.9rem;
    font-weight: 860;
  }

  .mobile-slip-trigger i {
    width: 19px;
    height: 19px;
  }

  .mobile-slip-trigger strong {
    display: inline-grid;
    min-width: 26px;
    min-height: 26px;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.82rem;
  }

  body:has(.casino-page) .mobile-slip-trigger {
    display: none;
  }

  .mobile-slip-layer {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
  }

  .mobile-slip-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    border-radius: 0;
    background: rgba(5, 9, 19, 0.52);
  }

  .mobile-slip-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(82svh, 640px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    background: var(--surface);
    box-shadow: 0 -24px 56px rgba(5, 9, 19, 0.28);
  }

  .mobile-slip-sheet-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .mobile-slip-sheet-head strong {
    font-size: 1rem;
  }

  .mobile-slip-sheet .betslip {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mobile-slip-sheet .betslip > .panel-header {
    display: none;
  }

  .mobile-slip-sheet .slip-body {
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .mobile-slip-sheet .betslip.is-empty .empty {
    min-height: 70px;
    border-radius: 8px;
    background: var(--field);
  }

  .slip-selection-head {
    align-items: flex-start;
    gap: 8px;
  }

  .score-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: visible;
    padding-bottom: 0;
  }

  .score-column {
    min-width: 0;
  }

  .score-column-title {
    min-height: 34px;
    font-size: 0.9rem;
  }

  .score-column-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-button,
  .selection-box,
  .bet-row,
  .wallet-list-row,
  .wallet-method-card {
    min-width: 0;
  }

  .bets-grid > .panel:last-child {
    order: -1;
  }

  .bet-row.selection-box {
    gap: 12px;
  }

  .align-right {
    width: 100%;
  }

  .wallet-overview,
  .wallet-stat-grid,
  .wallet-method-grid {
    grid-template-columns: 1fr;
  }

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

  .wallet-action-grid button {
    min-height: 48px;
    padding: 8px 10px;
    font-size: 0.86rem;
    line-height: 1.12;
  }

  .wallet-balance-card {
    gap: 18px;
    padding: 18px;
  }

  .wallet-balance-card h2 {
    font-size: clamp(2rem, 11vw, 2.8rem);
    overflow-wrap: anywhere;
  }

  .wallet-panel {
    padding: 14px;
  }

  .wallet-panel-head {
    gap: 8px;
  }

  .wallet-list-row {
    gap: 10px;
  }

  .funds-shell .hero {
    min-height: auto;
  }

  .funds-shell .topbar {
    padding: 12px 14px 10px;
  }

  .funds-shell .tabs {
    padding: 8px 12px 12px;
  }

  .funds-shell .content {
    padding: 16px 12px 34px;
  }

  .funds-page {
    gap: 20px;
  }

  .funds-title-row {
    gap: 12px;
  }

  .funds-title-row h1 {
    font-size: 2rem;
  }

  .funds-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 12px;
  }

  .funds-tab {
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--field);
    font-size: 0.84rem;
    line-height: 1.12;
    text-align: center;
    white-space: normal;
  }

  .funds-tab.active::after {
    display: none;
  }

  .funds-workflow {
    gap: 18px;
  }

  .funds-form,
  .funds-withdraw-stack {
    gap: 18px;
  }

  .funds-select-box,
  .funds-amount-input {
    min-height: 58px;
    padding: 12px 14px;
  }

  .funds-method-card {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 10px;
    padding: 12px;
  }

  .funds-method-card em {
    grid-column: 2 / 4;
    justify-self: start;
    font-size: 0.75rem;
  }

  .funds-radio {
    grid-column: 3;
  }

  .funds-process {
    display: none;
  }

  .funds-table-wrap {
    margin: 0 -12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .funds-table {
    min-width: 680px;
    font-size: 0.84rem;
  }

  .funds-table th,
  .funds-table td {
    padding: 13px 14px;
  }

  .crypto-copy-line,
  .crypto-method-title,
  .payment-details,
  .bank-detail-card div {
    align-items: flex-start;
    flex-direction: column;
  }

  .crypto-copy-line .copy-button,
  .bank-detail-card .copy-button {
    width: 100%;
    justify-content: center;
  }

  .account-category-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .account-category-card em {
    grid-column: 2;
  }

  .toast {
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    justify-content: center;
    text-align: center;
  }
}

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

  .session-actions .status-pill {
    grid-column: 1 / -1;
  }

  .hero-copy {
    display: none;
  }

  .tab {
    gap: 6px;
    padding: 7px 3px;
  }

  .tab i {
    width: 16px;
    height: 16px;
  }

  .campaign-copy {
    min-height: 32svh;
  }

  .campaign-copy .campaign-hero-image {
    height: 32svh;
    min-height: 32svh;
  }

  .login-panel-zone {
    min-height: 68svh;
    padding-top: 10px;
  }

  .campaign-copy .login-campaign-overlay h1,
  .campaign-overlay h1 {
    font-size: clamp(1.38rem, 7.8vw, 1.9rem);
  }

  .login-card .panel-title {
    font-size: 1.46rem;
  }

  .login-form-panel .auth-phone-control {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .home-promo.campaign-banner {
    height: 260px;
  }

  .campaign-banner .campaign-overlay h1 {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .campaign-banner .campaign-overlay p {
    display: none;
  }

  .panel-header,
  .match-meta,
  .market-row,
  .transaction-row,
  .bet-row,
  .player-main,
  .admin-row {
    align-items: stretch;
  }

  .home-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-market-prices,
  .odds-grid {
    gap: 6px;
  }

  .odd-button {
    min-height: 54px;
  }

  .score-column {
    min-width: 0;
  }

  .score-column-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-action-grid {
    gap: 8px;
  }

  .funds-title-row .secondary,
  .wallet-panel-head .text-button,
  .home-card-head .text-button {
    width: 100%;
    justify-content: flex-start;
  }
}

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

  .campaign-slide:first-child {
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .admin-shell .admin-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-shell .admin-metric-grid,
  .casino-session-group.primary,
  .casino-session-group.secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .casino-admin-grid {
    grid-template-columns: 1fr;
  }

  .casino-control-panel,
  .casino-stats-panel,
  .casino-audit-panel {
    grid-column: auto;
  }
}

@media (max-width: 880px) {
  .admin-shell,
  .admin-shell.sidebar-collapsed {
    display: block;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(288px, 86vw);
    transform: translateX(-104%);
    transition: transform 0.24s ease;
  }

  .admin-shell.sidebar-mobile-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 19;
    display: none;
    background: rgba(5, 9, 19, 0.46);
  }

  .admin-shell.sidebar-mobile-open .admin-sidebar-scrim {
    display: block;
  }

  .admin-shell.sidebar-collapsed .admin-sidebar {
    align-items: stretch;
    padding-inline: 12px;
  }

  .admin-shell.sidebar-collapsed .admin-sidebar-head {
    flex-direction: row;
  }

  .admin-shell.sidebar-collapsed .admin-sidebar-brand span,
  .admin-shell.sidebar-collapsed .admin-nav-item span {
    display: grid;
  }

  .admin-shell.sidebar-collapsed .admin-sidebar .admin-nav-item {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .admin-mobile-menu {
    display: inline-grid;
  }

  .admin-page-header {
    align-items: flex-start;
    padding: 14px;
  }

  .admin-header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-shell .content {
    padding: 16px 14px 34px;
  }

  .admin-shell .admin-summary,
  .admin-shell .admin-metric-grid,
  .casino-session-group.primary,
  .casino-session-group.secondary {
    grid-template-columns: 1fr;
  }
}

/* Admin UI Recovery: restore VIPBET88 dark navy / gold backoffice theme. */
.admin-shell {
  --admin-card-border: rgba(242, 199, 91, 0.16);
  --admin-card-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  background:
    radial-gradient(circle at 16% -4%, rgba(31, 94, 255, 0.2), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(214, 165, 40, 0.12), transparent 26%),
    linear-gradient(180deg, #050913, #070d1f 48%, #050913);
  color: #f5f7fb;
}

.admin-shell .admin-sidebar {
  background:
    radial-gradient(circle at 10% 0%, rgba(242, 199, 91, 0.16), transparent 28%),
    linear-gradient(180deg, #050913, #090f22 52%, #030711);
  border-right: 1px solid rgba(242, 199, 91, 0.14);
  box-shadow: 18px 0 42px rgba(0, 0, 0, 0.42);
}

.admin-shell .admin-sidebar-head {
  border-bottom-color: rgba(242, 199, 91, 0.22);
}

.admin-shell .admin-sidebar-brand strong,
.admin-shell .admin-page-title h1,
.admin-shell .panel-title,
.admin-shell .admin-row strong,
.admin-shell .selection-box strong,
.admin-shell .player-main strong,
.admin-shell .market-row strong,
.admin-shell .casino-testing-box > div:first-child strong,
.admin-shell label {
  color: #fff;
}

.admin-shell .admin-sidebar-brand small,
.admin-shell .admin-page-title .eyebrow,
.admin-shell .eyebrow {
  color: #f2c75b;
}

.admin-shell .admin-sidebar-toggle,
.admin-shell .admin-mobile-menu {
  border-color: rgba(242, 199, 91, 0.32);
  background: rgba(242, 199, 91, 0.08);
  color: #fff;
}

.admin-shell .admin-sidebar .admin-nav-item {
  color: rgba(245, 247, 251, 0.78);
}

.admin-shell .admin-sidebar .admin-nav-item:hover {
  background: rgba(242, 199, 91, 0.1);
  color: #fff;
}

.admin-shell .admin-sidebar .admin-nav-item.active {
  background:
    linear-gradient(135deg, rgba(242, 199, 91, 0.24), rgba(31, 94, 255, 0.22));
  color: #fff;
  border: 1px solid rgba(242, 199, 91, 0.28);
  box-shadow:
    inset 3px 0 0 #f2c75b,
    0 12px 24px rgba(0, 0, 0, 0.2);
}

.admin-shell .admin-page-header {
  border-bottom-color: rgba(242, 199, 91, 0.12);
  background: rgba(7, 13, 31, 0.86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.admin-shell .subtle,
.admin-shell .stat-box span,
.admin-shell .stat-box small,
.admin-shell .admin-row p,
.admin-shell .selection-box p,
.admin-shell .player-card p {
  color: rgba(220, 228, 244, 0.72);
}

.admin-shell .panel {
  border-color: rgba(242, 199, 91, 0.16);
  background:
    linear-gradient(180deg, rgba(18, 27, 52, 0.98), rgba(10, 16, 34, 0.98));
  box-shadow: var(--admin-card-shadow);
}

.admin-shell .panel-header {
  border-bottom-color: rgba(242, 199, 91, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.admin-shell .selection-box,
.admin-shell .player-card,
.admin-shell .admin-row,
.admin-shell .user-message-row,
.admin-shell .balance-history-strip div {
  border-color: rgba(242, 199, 91, 0.12);
  background: rgba(6, 11, 26, 0.64);
  color: #f5f7fb;
}

.admin-shell .player-card.open-row,
.admin-shell .user-message-row.active {
  background: rgba(31, 94, 255, 0.16);
  border-color: rgba(120, 167, 255, 0.35);
}

.admin-shell .stat-box {
  border-color: rgba(242, 199, 91, 0.16);
  background:
    linear-gradient(135deg, rgba(31, 94, 255, 0.13), rgba(242, 199, 91, 0.08)),
    rgba(7, 13, 31, 0.82);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.admin-shell .stat-box strong {
  color: #f2c75b;
  text-shadow: 0 8px 22px rgba(242, 199, 91, 0.08);
}

.admin-shell .dashboard-panel .stat-box strong,
.admin-shell .casino-session-group.primary .stat-box strong {
  color: #78a7ff;
}

.admin-shell .chip {
  border: 1px solid rgba(242, 199, 91, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7fb;
}

.admin-shell .chip.blue {
  border-color: rgba(120, 167, 255, 0.3);
  background: rgba(31, 94, 255, 0.2);
  color: #cfe0ff;
}

.admin-shell .chip.green {
  border-color: rgba(242, 199, 91, 0.32);
  background: rgba(242, 199, 91, 0.16);
  color: #ffe39a;
}

.admin-shell .chip.red {
  border-color: rgba(255, 122, 122, 0.32);
  background: rgba(255, 122, 122, 0.13);
  color: #ffc2ca;
}

.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  border-color: rgba(120, 167, 255, 0.22);
  background: rgba(3, 7, 17, 0.78);
  color: #f5f7fb;
}

.admin-shell input::placeholder,
.admin-shell textarea::placeholder {
  color: rgba(220, 228, 244, 0.42);
}

.admin-shell input:focus,
.admin-shell select:focus,
.admin-shell textarea:focus {
  border-color: #f2c75b;
  outline: 3px solid rgba(242, 199, 91, 0.14);
}

.admin-shell .primary,
.admin-shell .admin-grid .primary,
.admin-shell .match-admin-grid .primary,
.admin-shell .add-match-page .primary,
.admin-shell .message-admin-grid .primary {
  background: #f2c75b;
  color: #071026;
  box-shadow: 0 12px 24px rgba(242, 199, 91, 0.16);
}

.admin-shell .primary:hover,
.admin-shell .admin-grid .primary:hover,
.admin-shell .match-admin-grid .primary:hover,
.admin-shell .add-match-page .primary:hover,
.admin-shell .message-admin-grid .primary:hover {
  background: #ffe39a;
}

.admin-shell .secondary {
  border-color: rgba(120, 167, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7fb;
}

.admin-shell .secondary:hover {
  background: rgba(120, 167, 255, 0.12);
}

.admin-shell .ghost,
.admin-shell .text-button {
  color: #f2c75b;
}

.admin-shell .danger {
  background: #d64545;
  color: #fff;
}

.admin-shell button:disabled,
.admin-shell input:disabled,
.admin-shell select:disabled {
  opacity: 0.52;
}

.admin-shell .empty {
  border-color: rgba(242, 199, 91, 0.16);
  background: rgba(3, 7, 17, 0.38);
  color: rgba(220, 228, 244, 0.72);
}

.admin-shell .casino-testing-box {
  border-color: rgba(242, 199, 91, 0.26);
  background:
    linear-gradient(135deg, rgba(242, 199, 91, 0.12), rgba(120, 167, 255, 0.08)),
    rgba(3, 7, 17, 0.5);
}

.admin-shell .casino-keep-active {
  border-color: rgba(242, 199, 91, 0.18);
  background: rgba(3, 7, 17, 0.48);
  color: #f5f7fb;
}

.admin-shell .correct-score-section {
  background:
    linear-gradient(135deg, rgba(214, 165, 40, 0.08), rgba(120, 167, 255, 0.08)),
    rgba(5, 9, 19, 0.96);
}

.admin-shell .score-odd-card {
  background: rgba(3, 7, 17, 0.86);
}

.admin-shell .score-odd-card input {
  background: rgba(3, 7, 17, 0.92);
}

.admin-shell .admin-sidebar-scrim {
  background: rgba(0, 0, 0, 0.58);
}

/* Admin theme balance: keep a proper light version while dark stays VIPBET88 premium. */
:root[data-theme="light"] .admin-shell,
:root[data-theme="system"] .admin-shell {
  --admin-card-border: rgba(15, 23, 42, 0.11);
  --admin-card-shadow: 0 18px 42px rgba(15, 23, 42, 0.11);
  background:
    radial-gradient(circle at 14% -6%, rgba(31, 94, 255, 0.14), transparent 30%),
    radial-gradient(circle at 92% 2%, rgba(214, 165, 40, 0.12), transparent 24%),
    linear-gradient(180deg, #eef3fb, #f7f9fd 45%, #eef2f8);
  color: #111827;
}

:root[data-theme="light"] .admin-shell .admin-page-header,
:root[data-theme="system"] .admin-shell .admin-page-header {
  border-bottom-color: rgba(15, 23, 42, 0.1);
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .admin-shell .admin-page-title h1,
:root[data-theme="system"] .admin-shell .admin-page-title h1,
:root[data-theme="light"] .admin-shell .panel-title,
:root[data-theme="system"] .admin-shell .panel-title,
:root[data-theme="light"] .admin-shell .admin-row strong,
:root[data-theme="system"] .admin-shell .admin-row strong,
:root[data-theme="light"] .admin-shell .selection-box strong,
:root[data-theme="system"] .admin-shell .selection-box strong,
:root[data-theme="light"] .admin-shell .player-main strong,
:root[data-theme="system"] .admin-shell .player-main strong,
:root[data-theme="light"] .admin-shell .market-row strong,
:root[data-theme="system"] .admin-shell .market-row strong,
:root[data-theme="light"] .admin-shell label,
:root[data-theme="system"] .admin-shell label {
  color: #0b1020;
}

:root[data-theme="light"] .admin-shell .admin-page-title .eyebrow,
:root[data-theme="system"] .admin-shell .admin-page-title .eyebrow,
:root[data-theme="light"] .admin-shell .eyebrow,
:root[data-theme="system"] .admin-shell .eyebrow {
  color: #1646c9;
}

:root[data-theme="light"] .admin-shell .subtle,
:root[data-theme="system"] .admin-shell .subtle,
:root[data-theme="light"] .admin-shell .stat-box span,
:root[data-theme="system"] .admin-shell .stat-box span,
:root[data-theme="light"] .admin-shell .stat-box small,
:root[data-theme="system"] .admin-shell .stat-box small,
:root[data-theme="light"] .admin-shell .admin-row p,
:root[data-theme="system"] .admin-shell .admin-row p,
:root[data-theme="light"] .admin-shell .selection-box p,
:root[data-theme="system"] .admin-shell .selection-box p,
:root[data-theme="light"] .admin-shell .player-card p,
:root[data-theme="system"] .admin-shell .player-card p {
  color: #667085;
}

:root[data-theme="light"] .admin-shell .panel,
:root[data-theme="system"] .admin-shell .panel {
  border-color: rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.97));
  box-shadow: var(--admin-card-shadow);
}

:root[data-theme="light"] .admin-shell .panel-header,
:root[data-theme="system"] .admin-shell .panel-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(31, 94, 255, 0.035), transparent);
}

:root[data-theme="light"] .admin-shell .selection-box,
:root[data-theme="system"] .admin-shell .selection-box,
:root[data-theme="light"] .admin-shell .player-card,
:root[data-theme="system"] .admin-shell .player-card,
:root[data-theme="light"] .admin-shell .admin-row,
:root[data-theme="system"] .admin-shell .admin-row,
:root[data-theme="light"] .admin-shell .user-message-row,
:root[data-theme="system"] .admin-shell .user-message-row,
:root[data-theme="light"] .admin-shell .balance-history-strip div,
:root[data-theme="system"] .admin-shell .balance-history-strip div {
  border-color: rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.84);
  color: #111827;
}

:root[data-theme="light"] .admin-shell .stat-box,
:root[data-theme="system"] .admin-shell .stat-box {
  border-color: rgba(15, 23, 42, 0.09);
  background:
    linear-gradient(135deg, rgba(31, 94, 255, 0.07), rgba(214, 165, 40, 0.08)),
    #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .admin-shell .stat-box strong,
:root[data-theme="system"] .admin-shell .stat-box strong {
  color: #1646c9;
  text-shadow: none;
}

:root[data-theme="light"] .admin-shell .admin-summary .stat-box:nth-child(2n) strong,
:root[data-theme="system"] .admin-shell .admin-summary .stat-box:nth-child(2n) strong {
  color: #b7791f;
}

:root[data-theme="light"] .admin-shell input,
:root[data-theme="system"] .admin-shell input,
:root[data-theme="light"] .admin-shell select,
:root[data-theme="system"] .admin-shell select,
:root[data-theme="light"] .admin-shell textarea,
:root[data-theme="system"] .admin-shell textarea {
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #111827;
}

:root[data-theme="light"] .admin-shell .secondary,
:root[data-theme="system"] .admin-shell .secondary {
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #111827;
}

:root[data-theme="light"] .admin-shell .ghost,
:root[data-theme="system"] .admin-shell .ghost,
:root[data-theme="light"] .admin-shell .text-button,
:root[data-theme="system"] .admin-shell .text-button {
  color: #1646c9;
}

:root[data-theme="light"] .admin-shell .empty,
:root[data-theme="system"] .admin-shell .empty {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.72);
  color: #667085;
}

:root[data-theme="light"] .admin-shell .casino-testing-box,
:root[data-theme="system"] .admin-shell .casino-testing-box {
  border-color: rgba(214, 165, 40, 0.22);
  background:
    linear-gradient(135deg, rgba(214, 165, 40, 0.1), rgba(31, 94, 255, 0.055)),
    #fff;
}

:root[data-theme="light"] .admin-shell .casino-keep-active,
:root[data-theme="system"] .admin-shell .casino-keep-active {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(248, 250, 252, 0.9);
  color: #111827;
}

:root[data-theme="light"] .admin-shell .chip,
:root[data-theme="system"] .admin-shell .chip {
  border-color: rgba(15, 23, 42, 0.1);
  background: #e7ecf5;
  color: #1d2637;
}

:root[data-theme="light"] .admin-shell .chip.blue,
:root[data-theme="system"] .admin-shell .chip.blue {
  border-color: rgba(31, 94, 255, 0.16);
  background: #e3eef9;
  color: #1646c9;
}

:root[data-theme="light"] .admin-shell .chip.green,
:root[data-theme="system"] .admin-shell .chip.green {
  border-color: rgba(214, 165, 40, 0.22);
  background: #fff4ce;
  color: #926b12;
}

:root[data-theme="dark"] .admin-shell .admin-summary .stat-box:nth-child(1),
:root[data-theme="dark"] .admin-shell .casino-session-group.primary .stat-box:nth-child(1),
:root[data-theme="dark"] .admin-shell .dashboard-panel .stat-box:nth-child(1),
:root[data-theme="system"] .admin-shell .admin-summary .stat-box:nth-child(1),
:root[data-theme="system"] .admin-shell .casino-session-group.primary .stat-box:nth-child(1),
:root[data-theme="system"] .admin-shell .dashboard-panel .stat-box:nth-child(1) {
  border-top: 2px solid rgba(120, 167, 255, 0.58);
}

:root[data-theme="dark"] .admin-shell .admin-summary .stat-box:nth-child(2),
:root[data-theme="dark"] .admin-shell .casino-session-group.primary .stat-box:nth-child(2),
:root[data-theme="dark"] .admin-shell .dashboard-panel .stat-box:nth-child(2),
:root[data-theme="system"] .admin-shell .admin-summary .stat-box:nth-child(2),
:root[data-theme="system"] .admin-shell .casino-session-group.primary .stat-box:nth-child(2),
:root[data-theme="system"] .admin-shell .dashboard-panel .stat-box:nth-child(2) {
  border-top: 2px solid rgba(242, 199, 91, 0.64);
}

:root[data-theme="dark"] .admin-shell .admin-summary .stat-box:nth-child(3),
:root[data-theme="dark"] .admin-shell .casino-session-group.primary .stat-box:nth-child(3),
:root[data-theme="dark"] .admin-shell .dashboard-panel .stat-box:nth-child(3),
:root[data-theme="system"] .admin-shell .admin-summary .stat-box:nth-child(3),
:root[data-theme="system"] .admin-shell .casino-session-group.primary .stat-box:nth-child(3),
:root[data-theme="system"] .admin-shell .dashboard-panel .stat-box:nth-child(3) {
  border-top: 2px solid rgba(255, 122, 122, 0.46);
}

:root[data-theme="dark"] .admin-shell .admin-summary .stat-box:nth-child(4),
:root[data-theme="dark"] .admin-shell .casino-session-group.primary .stat-box:nth-child(4),
:root[data-theme="dark"] .admin-shell .dashboard-panel .stat-box:nth-child(4),
:root[data-theme="system"] .admin-shell .admin-summary .stat-box:nth-child(4),
:root[data-theme="system"] .admin-shell .casino-session-group.primary .stat-box:nth-child(4),
:root[data-theme="system"] .admin-shell .dashboard-panel .stat-box:nth-child(4) {
  border-top: 2px solid rgba(168, 194, 255, 0.48);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .admin-shell {
    --admin-card-border: rgba(242, 199, 91, 0.16);
    --admin-card-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
    background:
      radial-gradient(circle at 16% -4%, rgba(31, 94, 255, 0.2), transparent 30%),
      radial-gradient(circle at 88% 10%, rgba(214, 165, 40, 0.12), transparent 26%),
      linear-gradient(180deg, #050913, #070d1f 48%, #050913);
    color: #f5f7fb;
  }

  :root[data-theme="system"] .admin-shell .admin-page-header {
    border-bottom-color: rgba(242, 199, 91, 0.12);
    background: rgba(7, 13, 31, 0.86);
  }

  :root[data-theme="system"] .admin-shell .admin-page-title h1,
  :root[data-theme="system"] .admin-shell .panel-title,
  :root[data-theme="system"] .admin-shell .admin-row strong,
  :root[data-theme="system"] .admin-shell .selection-box strong,
  :root[data-theme="system"] .admin-shell .player-main strong,
  :root[data-theme="system"] .admin-shell .market-row strong,
  :root[data-theme="system"] .admin-shell label {
    color: #fff;
  }

  :root[data-theme="system"] .admin-shell .subtle,
  :root[data-theme="system"] .admin-shell .stat-box span,
  :root[data-theme="system"] .admin-shell .stat-box small,
  :root[data-theme="system"] .admin-shell .admin-row p,
  :root[data-theme="system"] .admin-shell .selection-box p,
  :root[data-theme="system"] .admin-shell .player-card p {
    color: rgba(220, 228, 244, 0.72);
  }

  :root[data-theme="system"] .admin-shell .panel {
    border-color: rgba(242, 199, 91, 0.16);
    background:
      linear-gradient(180deg, rgba(18, 27, 52, 0.98), rgba(10, 16, 34, 0.98));
  }

  :root[data-theme="system"] .admin-shell .selection-box,
  :root[data-theme="system"] .admin-shell .player-card,
  :root[data-theme="system"] .admin-shell .admin-row,
  :root[data-theme="system"] .admin-shell .user-message-row,
  :root[data-theme="system"] .admin-shell .balance-history-strip div {
    border-color: rgba(242, 199, 91, 0.12);
    background: rgba(6, 11, 26, 0.64);
    color: #f5f7fb;
  }

  :root[data-theme="system"] .admin-shell .stat-box {
    border-color: rgba(242, 199, 91, 0.16);
    background:
      linear-gradient(135deg, rgba(31, 94, 255, 0.13), rgba(242, 199, 91, 0.08)),
      rgba(7, 13, 31, 0.82);
  }

  :root[data-theme="system"] .admin-shell .stat-box strong {
    color: #f2c75b;
  }

  :root[data-theme="system"] .admin-shell .dashboard-panel .stat-box strong,
  :root[data-theme="system"] .admin-shell .casino-session-group.primary .stat-box strong {
    color: #78a7ff;
  }

  :root[data-theme="system"] .admin-shell input,
  :root[data-theme="system"] .admin-shell select,
  :root[data-theme="system"] .admin-shell textarea {
    border-color: rgba(120, 167, 255, 0.22);
    background: rgba(3, 7, 17, 0.78);
    color: #f5f7fb;
  }
}
