:root {
  --bg: #080809;
  --bg-soft: #0e0e11;
  --panel: #131316;
  --panel-2: #1a1a1f;
  --line: rgba(212, 175, 55, 0.14);
  --line-strong: rgba(212, 175, 55, 0.32);
  --gold: #d4af37;
  --gold-2: #f0cc5a;
  --gold-dim: #9a7b28;
  --ruby: #9b1c31;
  --ruby-2: #c4283f;
  --text: #f7f3ea;
  --muted: #9d978a;
  --dim: #6f6a60;
  --ok: #3ecf8e;
  --bad: #ef5f5f;
  --r: 12px;
  --r-sm: 8px;
  --header: 64px;
  --mirror-bar-h: 40px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(155, 28, 49, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(212, 175, 55, 0.08), transparent),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; }
button:disabled, input:disabled { opacity: 0.55; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.35) var(--panel-2);
}
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: var(--panel-2); border-radius: 4px; }
*::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.32);
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.5); }
.scroll-area { scrollbar-gutter: stable; }

.icon, [data-icon] svg, .title-icon, .stage-icon {
  width: 18px; height: 18px; flex-shrink: 0;
}
.title-icon { width: 30px; height: 30px; }
.stage-icon { width: 42px; height: 42px; }

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 9, 0.88);
  backdrop-filter: blur(16px);
}

.header-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  grid-column: 2;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.menu-item {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.15s;
  border: 1px solid transparent;
}
.menu-item:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.menu-item.active {
  color: var(--gold-2);
  background: linear-gradient(180deg, rgba(212,175,55,0.18), rgba(212,175,55,0.06));
  border-color: rgba(212,175,55,0.22);
  box-shadow: 0 2px 14px rgba(212,175,55,0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: start;
}
.logo-mark {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(212,175,55,0.25));
}
.logo-type {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-type strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-type small {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-2);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: end;
  grid-column: 3;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(62,207,142,0.08);
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
  white-space: nowrap;
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.online-pill.online-up {
  background: rgba(62,207,142,0.18);
  border-color: rgba(62,207,142,0.45);
  color: #6ee7b7;
}
.online-pill.online-down {
  background: rgba(239,95,95,0.12);
  border-color: rgba(239,95,95,0.35);
  color: #ff9a9a;
}

.history-heading { flex-direction: column; align-items: flex-start !important; gap: 4px; }
.history-sub { font-size: 12px; color: var(--dim); font-weight: 500; margin-top: 2px; }
.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ok);
  background: rgba(62,207,142,0.12);
  vertical-align: middle;
}
.live-pulse::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(62,207,142,0.8);
  animation: livePulse 1.4s ease-in-out infinite;
}
.bet-row-you { background: rgba(212,175,55,0.06); }
.bet-row-new {
  animation: betRowIn 0.55s ease;
  background: rgba(212,175,55,0.1);
}
.bet-time { color: var(--dim); font-size: 12px; white-space: nowrap; }
.bet-payout-win { color: var(--ok); font-weight: 700; }
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
@keyframes betRowIn {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.you-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(212,175,55,0.2);
  color: var(--gold-2);
}

.wallet-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  min-width: 90px;
}
.wallet-badge-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.wallet-badge strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.15s;
}
.btn:active { transform: scale(0.98); }

.btn-gold {
  color: #1a1206;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); }
.btn-ghost.active { color: var(--gold-2); border-color: rgba(212,175,55,0.35); background: rgba(212,175,55,0.08); }

.btn-ruby {
  color: #fff;
  background: linear-gradient(180deg, var(--ruby-2), var(--ruby));
  box-shadow: 0 4px 20px rgba(155, 28, 49, 0.35);
}
.btn-ruby:hover { filter: brightness(1.06); }

/* ── TRUST (footer) ── */
.footer-trust {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 12px;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.trust-inner span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-ico {
  width: 14px;
  height: 14px;
  color: var(--gold-dim);
}

/* ── MAIN ── */
.main { padding: 34px 0 44px; position: relative; z-index: 1; }

.layout-shell {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr) 234px;
  align-items: start;
  gap: 0 36px;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 clamp(24px, 3vw, 48px);
}

.container {
  grid-column: 2;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 8px;
  justify-self: center;
  overflow-x: hidden;
}

.side-rail {
  display: none;
  position: sticky;
  top: calc(var(--header) + var(--mirror-bar-h) + 22px);
  height: calc(100vh - var(--header) - var(--mirror-bar-h) - 44px);
  min-height: 480px;
  overflow: hidden;
  padding-bottom: 6px;
}

.side-rail-left { grid-column: 1; }
.side-rail-right { grid-column: 3; }

.side-rail-stack {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 13px;
  min-height: 0;
  overflow: hidden;
}

.side-rail-right .side-rail-stack {
  gap: 11px;
}

.side-rail-panel-grow {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.side-rail-panel {
  padding: 16px 16px 17px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(14, 14, 17, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.side-rail-panel-gold {
  background:
    linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(14, 14, 17, 0.85));
  border-color: rgba(212, 175, 55, 0.22);
}

.side-rail-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.side-rail-head .icon { width: 14px; height: 14px; }

.side-bet-list {
  list-style: none;
  display: grid;
  gap: 7px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-content: start;
}

.side-bet-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 11px;
}

.side-bet-item.won { border-color: rgba(62, 207, 142, 0.18); }
.side-bet-item.you { background: rgba(212, 175, 55, 0.08); border-color: rgba(212, 175, 55, 0.2); }

.side-bet-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-2);
}

.side-bet-icon svg { width: 14px; height: 14px; }

.side-bet-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.side-bet-body strong {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-bet-body span {
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-bet-item.won .side-bet-body span { color: var(--ok); }

.side-rail-stat {
  display: grid;
  gap: 3px;
  padding: 4px 0;
}

.side-rail-stat + .side-rail-stat {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.side-rail-stat span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.side-rail-stat strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}

.side-promo-code {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-2);
  margin-bottom: 4px;
}

.side-promo-text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.side-rail-btn {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1206;
}

.side-quick-games {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.side-quick-games-full {
  padding-top: 2px;
}

.side-rail-panel-pulse {
  border-color: rgba(212, 175, 55, 0.24);
  background:
    linear-gradient(160deg, rgba(155, 28, 49, 0.12) 0%, rgba(14, 14, 17, 0.88) 55%);
}

.side-pulse-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.side-pulse-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.side-pulse-list span {
  color: var(--dim);
  font-weight: 600;
}

.side-pulse-list strong {
  color: var(--gold-2);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.side-game-pick {
  width: calc(33.333% - 5px);
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.side-game-pick:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.35);
}

.side-game-pick .game-symbol svg { width: 18px; height: 18px; }

.side-rail-panel-pulse-compact {
  flex-shrink: 0;
  padding: 12px 14px 13px;
}

.side-rail-panel-pulse-compact .side-rail-head {
  margin-bottom: 8px;
}

.side-pulse-list-compact {
  gap: 5px;
}

.side-pulse-list-compact li {
  padding: 6px 8px;
  font-size: 10px;
}

.side-rail-right .side-rail-foot {
  flex-shrink: 0;
  margin-top: auto;
}

.side-rail-right .side-rail-panel {
  padding: 14px 14px 15px;
}

.side-rail-right .side-game-pick {
  height: 38px;
}

.side-rail-foot {
  flex-shrink: 0;
  margin-top: auto;
  padding: 13px 12px 16px;
  margin-bottom: 2px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(212, 175, 55, 0.1);
  background: rgba(212, 175, 55, 0.04);
  text-align: center;
}

.side-rail-foot-l {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 24px;
  color: rgba(212, 175, 55, 0.35);
}

.side-rail-foot-r {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 14px 12px 15px;
}

.side-rail-foot-r img {
  opacity: 0.45;
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.2));
}

.mirror-bar {
  position: relative;
  z-index: 40;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, rgba(8, 8, 10, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mirror-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05) 50%, transparent);
  pointer-events: none;
}

.mirror-bar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-height: var(--mirror-bar-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 7px 16px;
}

.mirror-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.mirror-bar-label .icon {
  width: 13px;
  height: 13px;
  color: var(--gold-dim);
}

.mirror-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.mirror-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(14, 14, 17, 0.72);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mirror-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.42);
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.mirror-pill.active {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12), 0 8px 22px rgba(212, 175, 55, 0.12);
  cursor: default;
  pointer-events: none;
}

.mirror-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(62, 207, 142, 0.65);
  flex-shrink: 0;
}

.mirror-pill-domain {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.mirror-pill-domain-short { display: none; }

.mirror-pill-badge {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.12);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
}

body.no-mirror-bar { --mirror-bar-h: 0px; }

.mirror-bar.hidden { display: none; }

.side-trust-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  width: 100%;
}

.side-trust-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
}

.side-trust-tags .icon { width: 11px; height: 11px; color: var(--gold-dim); }

.side-rail,
.side-rail * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.side-rail *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (min-width: 1520px) {
  .side-rail { display: block; }
}

@media (max-width: 1519px) {
  .layout-shell {
    display: block;
    max-width: 1180px;
    padding: 0 clamp(20px, 3vw, 36px);
  }

  .container {
    max-width: none;
    padding: 0;
  }
}

@media (min-width: 1520px) {
  body.has-side-rails::before,
  body.has-side-rails::after {
    content: "";
    position: fixed;
    top: calc(var(--header) + var(--mirror-bar-h));
    bottom: 0;
    width: min(14vw, 240px);
    pointer-events: none;
    z-index: 0;
  }

  body.has-side-rails::before {
    left: 0;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.045), transparent 80%);
  }

  body.has-side-rails::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(155, 28, 49, 0.05), transparent 80%);
  }
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  padding: 40px 44px;
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(155,28,49,0.22) 0%, transparent 45%),
    linear-gradient(225deg, rgba(212,175,55,0.14) 0%, transparent 50%),
    linear-gradient(180deg, #151015 0%, #0d0d10 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-compact {
  grid-template-columns: 1fr auto;
  padding: 18px 24px;
  margin-bottom: 14px;
}
.hero-compact h1 {
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 6px;
}
.hero-compact p { font-size: 13px; margin-bottom: 12px; max-width: 42ch; }
.hero-compact .hero-perks { margin-top: 12px; padding-top: 12px; gap: 12px; }
.hero-compact .hero-eyebrow { margin-bottom: 8px; }
.hero-glow-sm { width: 120px; height: 120px; }
.hero-glow-sm img { width: 100px; height: 100px; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero-body, .hero-media { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212,175,55,0.08);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 20%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-glow {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(155,28,49,0.08) 40%, transparent 70%);
}
.hero-glow img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.hero-perk strong { color: var(--gold-2); font-weight: 800; }
.hero-perk-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px rgba(62,207,142,0.5);
}

.win-ticker {
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
}
.win-ticker-scroll {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.win-ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.win-ticker-track {
  display: flex;
  gap: 24px;
  padding: 10px 0;
  animation: ticker 90s linear infinite;
  width: max-content;
}
.win-ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.win-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
}
.win-item strong { color: var(--ok); font-weight: 700; }
.win-item span { color: var(--dim); }

.hero-emblem {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 65%);
}
.hero-emblem img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(212,175,55,0.28));
}

/* ── PAGE BANNERS (inner pages) ── */
.page-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 28px 32px;
  margin-bottom: 18px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(155,28,49,0.18) 0%, transparent 45%),
    linear-gradient(225deg, rgba(212,175,55,0.1) 0%, transparent 50%),
    linear-gradient(180deg, #151015 0%, #0d0d10 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.page-banner-body { position: relative; z-index: 1; }
.page-banner h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
  background: linear-gradient(135deg, #fff 20%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-banner p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.page-banner-mark {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  flex-shrink: 0;
}
.page-banner-mark img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(212,175,55,0.25));
}

.game-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.game-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.game-pick:hover { border-color: var(--line-strong); color: var(--gold-2); }
.game-pick.active {
  border-color: var(--gold);
  background: rgba(212,175,55,0.1);
  color: var(--gold-2);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.25);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.step-card {
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1206;
  font-size: 12px;
  font-weight: 800;
}
.step-card strong { display: block; font-size: 13px; margin-bottom: 4px; }
.step-card p { font-size: 12px; color: var(--muted); line-height: 1.45; }

.premium-card {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(212,175,55,0.04) 0%, transparent 40%),
    var(--panel);
}
.address-box {
  padding: 12px 14px;
  margin: 12px 0;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
}
.address-box code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--gold-2);
  word-break: break-all;
}

.promo-feature {
  padding: 24px 28px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(155,28,49,0.2) 0%, transparent 50%),
    linear-gradient(225deg, rgba(212,175,55,0.12) 0%, transparent 55%),
    var(--panel);
}
.promo-feature p { margin: 8px 0 16px; font-size: 14px; color: var(--muted); max-width: 48ch; }
.bonus-amount {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(62,207,142,0.12);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
}

.chat-panel { padding: 0; overflow: hidden; }
.chat-log {
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.empty-note {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.modal-brand img {
  border-radius: 50%;
  filter: drop-shadow(0 2px 8px rgba(212,175,55,0.3));
}

/* ── STATS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.stat-card {
  padding: 16px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
}
.stat-card .icon { color: var(--gold); margin-bottom: 6px; }
.stat-card span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim);
}
.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
}
#bankrollStat strong {
  font-size: clamp(15px, 1.5vw, 21px);
  letter-spacing: -0.02em;
}
.stat-card.bankroll-up {
  border-color: rgba(62,207,142,0.35);
  background: rgba(62,207,142,0.06);
  transition: background 0.35s, border-color 0.35s;
}
.stat-card.bankroll-down {
  border-color: rgba(239,95,95,0.3);
  background: rgba(239,95,95,0.05);
  transition: background 0.35s, border-color 0.35s;
}

.stats-compact { margin-bottom: 14px; gap: 8px; }
.stats-compact .stat-card { padding: 10px 14px; }
.stats-compact .stat-card strong { font-size: 17px; }
.stats-compact .stat-card span { font-size: 10px; }
.stats-compact .stat-card .icon { width: 14px; height: 14px; margin-bottom: 4px; }

/* game page toolbar */
.game-shell { margin-bottom: 16px; }
.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
}
.game-picker-compact { flex: 1; min-width: 0; }
.game-picker-compact .game-pick { padding: 8px 10px; }
.game-picker-compact .game-pick-label { font-size: 12px; }
.game-toolbar-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-2);
  white-space: nowrap;
}
.game-frame-play { margin-bottom: 0; }
.game-frame-play .game-body { padding: 14px; }

.mines-board, .keno-board {
  width: 100%;
  padding: 16px;
  border-radius: var(--r-sm);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,175,55,0.07), transparent 60%),
    linear-gradient(180deg, #0c0e16 0%, #0a0b10 100%);
  border: 1px solid rgba(212,175,55,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.mines-board-head, .keno-board-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-2);
}
.mines-board-head .icon { width: 16px; height: 16px; color: #6ee7b7; }
.mine-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.tile-button {
  aspect-ratio: 1;
  min-height: 54px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1c2030 0%, #11131c 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 4px 14px rgba(0,0,0,0.28);
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  overflow: hidden;
  position: relative;
}
.tile-button:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 8px 20px rgba(212,175,55,0.12);
}
.tile-button.hidden-active {
  background: linear-gradient(145deg, #222638 0%, #161926 100%);
  border-color: rgba(212,175,55,0.18);
}
.tile-button.hidden-active:not(:disabled):hover {
  background: linear-gradient(145deg, #2a3048 0%, #1a2030 100%);
}
.tile-button.tile-idle {
  opacity: 0.55;
  cursor: default;
}
.mine-idle {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.1);
}
.mine-hidden-mark {
  display: none;
}
.mine-cover {
  width: 70%;
  height: 70%;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(212,175,55,0.14) 0%, rgba(212,175,55,0.04) 100%);
  border: 1px solid rgba(212,175,55,0.2);
  position: relative;
  overflow: hidden;
}
.mine-cover-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  animation: mineCoverShine 2.4s ease infinite;
}
.mine-gem-css {
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #a7f3d0 0%, #10b981 42%, #047857 100%);
  clip-path: polygon(50% 0%, 92% 32%, 50% 100%, 8% 32%);
  filter: drop-shadow(0 0 10px rgba(52,211,153,0.55));
  position: relative;
  animation: gemPop 0.45s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.mine-gem-css .gem-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, transparent 45%);
  clip-path: polygon(50% 0%, 92% 32%, 50% 55%, 8% 32%);
}
.mine-bomb-css {
  width: 38px;
  height: 38px;
  position: relative;
  animation: gemPop 0.45s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.mine-bomb-css .bomb-body {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #6b7280, #374151 55%, #111827);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.45);
}
.mine-bomb-css .bomb-fuse {
  position: absolute;
  top: 2px;
  right: 6px;
  width: 3px;
  height: 14px;
  background: linear-gradient(#fde68a, #f59e0b);
  border-radius: 2px;
  transform: rotate(28deg);
}
.mine-bomb-css .bomb-spark {
  position: absolute;
  top: -2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef08a, #ef4444 70%);
  animation: sparkBlink 0.28s ease infinite;
}
.tile-button.mine-flip {
  animation: mineFlip 0.3s ease-in forwards;
  pointer-events: none;
}
.tile-button.exploded::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  border: 2px solid rgba(239,68,68,0.7);
  animation: mineExplode 0.55s ease-out forwards;
}
.mines-board.board-shake {
  animation: boardShake 0.45s ease;
}
@keyframes mineCoverShine {
  0%, 100% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
}
@keyframes gemPop {
  0% { transform: scale(0.2) rotate(-20deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes sparkBlink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}
@keyframes mineFlip {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(90deg) scale(0.92); }
  100% { transform: rotateY(0deg) scale(1); }
}
@keyframes mineExplode {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes boardShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.tile-button.revealed.safe {
  background: linear-gradient(145deg, #34d399 0%, #059669 50%, #047857 100%);
  color: #052e1f;
  border-color: rgba(110,231,183,0.45);
  box-shadow: 0 0 22px rgba(52,211,153,0.35), inset 0 2px 0 rgba(255,255,255,0.35);
}
.tile-button.revealed.bomb {
  background: linear-gradient(145deg, #f87171 0%, #dc2626 50%, #7f1d1d 100%);
  color: #fff;
  border-color: rgba(252,165,165,0.45);
  box-shadow: 0 0 28px rgba(239,68,68,0.45), inset 0 2px 0 rgba(255,255,255,0.2);
}
.mine-gem svg,
.mine-bomb svg {
  display: none;
}
.keno-stats { margin-top: 12px; }
.crash-classic {
  position: relative;
  width: 100%;
  min-height: 320px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #08090e;
  border: 1px solid rgba(212,175,55,0.14);
  --crash-speed: 1;
}
.crash-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 65%, rgba(212,175,55,0.22), transparent 65%),
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(212,175,55,0.08), transparent 60%);
  opacity: 0.12;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.crash-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.crash-hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  z-index: 2;
}
.crash-mult-big {
  font-size: clamp(52px, 12vw, 76px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 32px rgba(0,0,0,0.5);
  transition: color 0.2s ease, transform 0.15s ease;
}
.crash-mult-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.crash-classic.running .crash-mult-big {
  color: #ffe082;
  text-shadow: 0 0 48px rgba(212,175,55,0.45);
  animation: crashPulse calc(2.4s / var(--crash-speed)) ease-in-out infinite;
}
.crash-classic.crashed .crash-mult-big {
  color: #ef4444;
  text-shadow: 0 0 32px rgba(239,68,68,0.5);
  animation: crashCrashPop 0.45s ease;
}
.crash-classic.cashed .crash-mult-big {
  color: #34d399;
  text-shadow: 0 0 32px rgba(52,211,153,0.4);
}
@keyframes crashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes crashCrashPop {
  0% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
#crashDot {
  filter: drop-shadow(0 0 8px rgba(255,224,130,0.8));
  transition: fill 0.2s ease;
}
.crash-classic.running #crashDot {
  animation: crashDotPulse calc(1.1s / var(--crash-speed)) ease-in-out infinite;
}
@keyframes crashDotPulse {
  0%, 100% { r: 7; }
  50% { r: 9; }
}

.widget-note { font-size: 12px; color: var(--muted); margin: 8px 0 14px; line-height: 1.45; }
.widget-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.widget-promo .promo-code { margin-top: 4px; }

.game-card::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── SECTIONS ── */
.block { margin-bottom: 28px; }

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.block-head h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.block-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-2);
}
.block-link:hover { text-decoration: underline; }

.section-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dim);
}

/* ── GAME GRID ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: 14px;
  overflow-x: hidden;
  padding-bottom: 6px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 156px;
  padding: 16px 16px 18px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  border-color: var(--line-strong);
}
.game-card:hover .game-play {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(212,175,55,0.35);
}

.game-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.game-mult {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-2);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
}
.game-play {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1206;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: 0.2s;
  pointer-events: none;
}
.game-play .icon,
.game-play svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.85;
  pointer-events: none;
}
.dice-card::before { background: linear-gradient(145deg, #1a1510, #3d2e0a); }
.mines-card::before { background: linear-gradient(145deg, #1a1012, #4a1220); }
.crash-card::before { background: linear-gradient(145deg, #1a0f0d, #5a2010); }
.roulette-card::before { background: linear-gradient(145deg, #0f1410, #123820); }
.keno-card::before { background: linear-gradient(145deg, #101018, #1a1850); }
.coin-card::before { background: linear-gradient(145deg, #1a1510, #4a3810); }
.slots-card::before { background: linear-gradient(145deg, #1a1018, #4a1040); }

.game-card > * { position: relative; z-index: 1; }

.game-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}
.game-symbol .icon,
.game-symbol .game-icon { width: 26px; height: 26px; }
.dice-card .game-symbol { color: #f0cc5a; border-color: rgba(212,175,55,0.28); background: rgba(212,175,55,0.1); }
.mines-card .game-symbol { color: #ff7a96; border-color: rgba(196,40,63,0.35); background: rgba(196,40,63,0.12); }
.crash-card .game-symbol { color: #ff9a5c; border-color: rgba(255,120,60,0.35); background: rgba(255,120,60,0.1); }
.roulette-card .game-symbol { color: #6ee7b7; border-color: rgba(62,207,142,0.3); background: rgba(62,207,142,0.1); }
.keno-card .game-symbol { color: #a5b4fc; border-color: rgba(165,180,252,0.3); background: rgba(99,102,241,0.12); }
.coin-card .game-symbol { color: #fcd34d; border-color: rgba(252,211,77,0.3); background: rgba(252,211,77,0.1); }
.slots-card .game-symbol { color: #e879f9; border-color: rgba(232,121,249,0.3); background: rgba(192,38,211,0.12); }
.game-pick .game-symbol {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.game-pick .game-symbol .icon,
.game-pick .game-symbol .game-icon { width: 18px; height: 18px; }

.game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
}

.game-card h3 { font-size: 17px; font-weight: 700; }
.game-card p { font-size: 12px; color: rgba(247,243,234,0.65); line-height: 1.45; max-width: 28ch; }

/* ── WIDGETS ── */
.widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.widget {
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.widget-support {
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.support-promo-strip {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.support-promo-strip .promo-code {
  margin-top: 0;
}

.support-promo-strip .widget-note {
  margin: 6px 0 0;
}

.support-chat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.support-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-2);
}

.support-chat-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.support-chat-head .icon { width: 14px; height: 14px; }

.support-online-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(62, 207, 142, 0.12);
  color: var(--ok);
  font-size: 10px;
  font-weight: 800;
}

.support-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 168px;
  max-height: 220px;
  overflow-y: auto;
  padding: 12px;
  margin-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.support-messages::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.support-messages.expanded { max-height: none; }

.support-bubble {
  width: fit-content;
  max-width: 92%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.support-bubble.agent {
  align-self: flex-start;
  border-color: rgba(212, 175, 55, 0.18);
  background: rgba(212, 175, 55, 0.06);
}

.support-bubble.user {
  align-self: flex-end;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: #1a1206;
  border-color: transparent;
}

.support-bubble.welcome {
  align-self: center;
  max-width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.support-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.support-form input {
  flex: 1;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
}

.support-form input::placeholder { color: var(--dim); }

.support-form button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1206;
}

.support-form button .icon,
.support-form button [data-icon] {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-form button svg {
  width: 22px;
  height: 22px;
  display: block;
}

.widget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.promo-pill {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(155,28,49,0.2);
  color: #ff8a9a;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.promo-code {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-strong);
  color: var(--gold-2);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding-bottom: 4px;
}
.feed-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-sm);
  background: var(--panel-2);
  border: 1px solid var(--line);
  min-width: 0;
  flex-shrink: 0;
}
.feed-item > div:last-child {
  min-width: 0;
  overflow: hidden;
}
.feed-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: linear-gradient(145deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
  color: var(--gold-2);
  flex-shrink: 0;
}
.feed-item span { font-size: 11px; color: var(--dim); }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(62,207,142,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.45} }

/* ── SHARED UI (games, wallet, admin…) ── */
.primary-button, .ghost-button, .mini-button, .chip, .game-tab, .admin-button, .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
}
.primary-button {
  color: #1a1206;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.primary-button:hover { filter: brightness(1.06); }
.ghost-button {
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.ghost-button:hover { background: rgba(255,255,255,0.04); }
.wide { width: 100%; }
.mini-button {
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: var(--r-sm);
}
.chip, .game-tab {
  height: 34px; padding: 0 12px; font-size: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: var(--r-sm);
}
.game-tab.active, .chip:hover { color: var(--gold-2); border-color: var(--line-strong); }
.admin-button { height: 30px; padding: 0 10px; font-size: 11px; background: var(--gold); color: #1a1206; border-radius: 6px; }
.danger-button { height: 30px; padding: 0 10px; font-size: 11px; background: var(--bad); color: #fff; border-radius: 6px; }

.game-frame, .history-card, .view-title, .plain-panel, .admin-card, .bonus-card,
.support-page-card, .wallet-card, .bonus-claim, .widget-card {
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 16px;
}

.game-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.game-title h1 { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; margin-top: 4px; }
.game-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.game-body { padding: 16px; }
.game-layout { display: grid; grid-template-columns: minmax(220px,0.85fr) minmax(280px,1.15fr); gap: 12px; }
.control-panel, .result-panel {
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.control-panel { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.result-panel { min-height: 280px; padding: 14px; position: relative; overflow: hidden; }

.field-label {
  display: block; margin-bottom: 5px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dim);
}
.input-row, .segmented, .chip-row, .wallet-actions, .admin-actions { display: flex; gap: 6px; }
.input-row input, .control-panel input, .auth-form input, .deposit-form input,
.support-form input, .admin-inline input, .bonus-form input {
  width: 100%; height: 40px; padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
}
.input-row input:focus, .control-panel input:focus, .auth-form input:focus,
.deposit-form input:focus, .admin-inline input:focus, .bonus-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}
.input-row button, .chip { height: 40px; padding: 0 12px; }
.segmented { padding: 3px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-soft); }
.segmented button {
  flex: 1; height: 34px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.segmented button.active { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1206; }
.range-wrap { display: grid; gap: 4px; }
.range-wrap input[type="range"] { width: 100%; accent-color: var(--gold); }
.range-meta, .result-stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.result-stats strong { color: var(--gold-2); }

/* game stages */
.dice-stage, .coin-stage, .slots-stage, .roulette-stage, .crash-stage {
  display: grid; place-items: center; align-content: center; gap: 10px;
  min-height: 250px; border-radius: var(--r-sm);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.dice-stage strong, .roulette-stage strong {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}
.dice-stage span, .coin-stage span { font-size: 12px; font-weight: 600; color: var(--dim); letter-spacing: 0.04em; }
.dice-cube, .coin-token, .roulette-wheel, .slot-reel {
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: #1a1206; border-radius: 10px;
}
.dice-cube { width: 72px; height: 72px; }
.coin-token, .roulette-wheel { width: 120px; height: 120px; border-radius: 50%; }
.coin-token.tails { background: linear-gradient(145deg, #6ee7b7, var(--ok)); }
.roulette-stage.red .roulette-wheel { background: linear-gradient(145deg, #fca5a5, var(--bad)); color: #fff; }
.roulette-stage.black .roulette-wheel { background: linear-gradient(145deg, #374151, #111); color: var(--text); }
.roulette-stage.green .roulette-wheel { background: linear-gradient(145deg, #6ee7b7, var(--ok)); }
.keno-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 5px; }
.keno-number {
  aspect-ratio: 1; min-height: 34px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel); font-size: 12px; font-weight: 700; color: var(--muted);
}
.keno-number.selected { background: var(--gold); color: #1a1206; border-color: transparent; }
.keno-number.drawn { background: #6366f1; color: #fff; }
.keno-number.hit { background: var(--ok); color: #0a1a12; }
.slot-reels { display: grid; grid-template-columns: repeat(3,minmax(70px,1fr)); gap: 8px; }
.slot-reel { min-height: 100px; }
.crash-stage { position: relative; }
.dice-stage.win { border-color: rgba(62,207,142,0.4); }
.dice-stage.win strong { color: var(--ok); }
.dice-stage.loss { border-color: rgba(239,95,95,0.35); }
.dice-stage.loss strong { color: var(--bad); }
.dice-stage.rolling strong { color: var(--gold-2); }
@keyframes diceNumFlash {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

/* tables */
.history-card { overflow: hidden; }
.history-heading, .panel-heading {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.history-heading h2, .panel-heading h2 {
  display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700;
}
.history-table-wrap { overflow-x: auto; }
.history-table, .admin-table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td, .admin-table th, .admin-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  text-align: left; font-size: 13px; white-space: nowrap;
}
.history-table th, .admin-table th {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dim);
}
.history-table td, .admin-table td { color: var(--muted); font-weight: 500; }
.table-game { display: inline-flex; align-items: center; gap: 6px; }
.tag {
  display: inline-flex; padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
  background: rgba(62,207,142,0.15); color: var(--ok);
}
.tag.loss { background: rgba(239,95,95,0.15); color: var(--bad); }
.tag.pending { background: rgba(212,175,55,0.15); color: var(--gold-2); }

.view-title { padding: 22px 24px; }
.view-title h1 { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; margin: 6px 0 8px; }
.view-title p, .bonus-card p, .plain-panel p, .support-page-card p, .wallet-card p {
  color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 60ch;
}
.stat-strip, .admin-grid, .bonus-grid, .wallet-grid-page {
  display: grid; gap: 10px; margin-bottom: 16px;
}
.stat-strip, .admin-grid { grid-template-columns: repeat(4,1fr); }
.bonus-grid, .wallet-grid-page { grid-template-columns: repeat(2,1fr); }

.wallet-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.wallet-card-head { display: flex; align-items: center; gap: 10px; }
.wallet-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
  color: var(--gold-2);
}
.wallet-card h2 { font-size: 16px; font-weight: 700; }
.wallet-card code, .deposit-address code, .tx-cell {
  font-family: ui-monospace, monospace; font-size: 12px; color: var(--gold-2); word-break: break-all;
}
.wallet-actions { margin-top: auto; }
.bonus-claim { padding: 16px; }
.bonus-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.bonus-card { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bonus-card strong { font-size: 20px; color: var(--gold-2); }
.admin-card, .plain-panel, .support-page-card { padding: 16px; }
.admin-card h2, .plain-panel h2, .support-page-card h2 {
  display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; margin-bottom: 10px;
}
.admin-inline {
  display: grid; grid-template-columns: minmax(100px,1fr) minmax(120px,1.5fr) 90px auto;
  gap: 8px; align-items: center; margin-top: 10px;
}
.admin-user-form {
  grid-template-columns: minmax(90px, 1fr) minmax(140px, 1.5fr) minmax(110px, 1fr) 90px auto;
  margin-bottom: 12px;
}
.admin-users-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(212, 175, 55, 0.06);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.admin-users-note strong { color: var(--gold-2); }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-tab {
  padding: 7px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted);
}
.admin-tab.active { color: var(--gold-2); border-color: var(--line-strong); background: rgba(212,175,55,0.08); }

.panel-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.panel-heading-row h2 { margin-bottom: 0; }

/* deposit modal */
.deposit-steps { display: grid; gap: 8px; }
.deposit-step {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px; border-radius: var(--r-sm);
  background: var(--panel-2); border: 1px solid var(--line);
}
.deposit-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: #1a1206;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.deposit-step-body strong { display: block; font-size: 12px; }
.deposit-step-body span { font-size: 11px; color: var(--muted); }
.wallet-grid { display: grid; gap: 6px; }
.wallet-option {
  display: grid; grid-template-columns: 40px 1fr; gap: 2px 10px;
  padding: 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--panel-2); text-align: left;
}
.wallet-option.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.wallet-title { font-weight: 700; font-size: 13px; }
.wallet-title small { color: var(--dim); font-weight: 500; margin-left: 4px; }
.wallet-address { grid-column: 2; font-family: monospace; font-size: 11px; color: var(--dim); word-break: break-all; }
.deposit-address {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--bg-soft); border: 1px solid var(--line-strong);
}
.network-warning {
  padding: 10px 12px; border-radius: var(--r-sm);
  background: rgba(239,95,95,0.08); border: 1px solid rgba(239,95,95,0.22);
  font-size: 12px; color: #ff9a9a; line-height: 1.5;
}
.amount-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.amount-preset {
  padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted);
}
.amount-preset:hover { border-color: var(--gold); color: var(--gold-2); }

/* modals */
.overlay, .modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
}
.modal-card {
  width: min(100%, 440px); max-height: 90vh; overflow: auto;
  border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--panel); box-shadow: var(--shadow);
}
.modal-card.wide-modal { width: min(100%, 520px); }
.modal-header {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 18px 18px 0;
}
.modal-header h2 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.modal-header p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.close-button {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--panel-2); color: var(--muted); flex-shrink: 0;
}
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 14px 18px 0;
}
.auth-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.auth-tabs button.active {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: transparent; color: #1a1206;
}
.auth-form, .deposit-form { display: grid; gap: 10px; padding: 14px 18px 18px; }
.form-error {
  padding: 8px 10px; border-radius: var(--r-sm);
  background: rgba(239,95,95,0.1); border: 1px solid rgba(239,95,95,0.25);
  color: #ff9a9a; font-size: 12px; font-weight: 600;
}
.checkbox-line {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.checkbox-line input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }

.toasts, .toast-stack {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(300px, calc(100vw - 40px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(16, 16, 22, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.42);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  cursor: pointer;
}
.toast-visible {
  transform: translateX(0);
  opacity: 1;
}
.toast-leaving {
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  transition:
    transform 0.28s ease-in,
    opacity 0.22s ease;
}
.toast-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold-2);
}
.toast-success .toast-dot {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(62, 207, 142, 0.45);
}
.toast-error .toast-dot {
  background: var(--bad);
  box-shadow: 0 0 10px rgba(239, 95, 95, 0.4);
}
.toast-info .toast-dot {
  background: var(--gold-2);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}
.toast-text { flex: 1; min-width: 0; }

/* mobile bar */
.mob-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  height: 62px; padding: 0 6px;
  border-top: 1px solid var(--line);
  background: rgba(8,8,9,0.95);
  backdrop-filter: blur(12px);
  align-items: center; justify-content: space-around;
}
.mob-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 8px; font-size: 10px; font-weight: 600; color: var(--dim);
}
.mob-item.active { color: var(--gold-2); }
.mob-item-main {
  margin-top: -4px;
  padding-top: 4px;
}
.mob-item-main.active {
  color: var(--gold-2);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
}
.mob-item-main [data-icon] svg { width: 22px; height: 22px; }
.mob-item [data-icon] svg { width: 20px; height: 20px; }

/* ── FOOTER ── */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(155,28,49,0.08) 0%, transparent 40%),
    var(--bg-soft);
  padding: 28px clamp(16px, 3vw, 40px) 16px;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 160px;
  background: radial-gradient(ellipse, rgba(212,175,55,0.12), transparent 70%);
  pointer-events: none;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 20px;
  max-width: none;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
}
.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer-brand img {
  flex-shrink: 0;
  border-radius: 12px;
  filter: drop-shadow(0 4px 12px rgba(212,175,55,0.2));
}
.footer-brand strong { display: block; font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.footer-brand p { font-size: 12px; color: var(--muted); line-height: 1.5; max-width: 34ch; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.footer-badge {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-2);
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-2);
  margin-bottom: 12px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-links button {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-links button:hover { color: var(--gold-2); }
.footer-pay { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-copy {
  text-align: center;
  font-size: 11px;
  color: var(--dim);
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}
.pay-chip {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-2);
  background: rgba(212,175,55,0.06);
}

/* live wins sizes */
.win-item.win-mid strong { color: #ffd86b; }
.win-item.win-big strong { color: #fff; text-shadow: 0 0 12px rgba(212,175,55,0.5); }
.feed-item.feed-big { border-color: rgba(212,175,55,0.35); background: rgba(212,175,55,0.06); }

.widget-hall {
  background:
    linear-gradient(160deg, rgba(212, 175, 55, 0.06) 0%, transparent 42%),
    var(--panel);
}

.hot-game-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hall-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.hall-stat {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.hall-stat span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim);
  margin-bottom: 3px;
}

.hall-stat strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}

.top-wins-board {
  display: grid;
  gap: 8px;
}

.top-win-row {
  display: grid;
  grid-template-columns: 28px 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.top-win-row.rank-1 {
  border-color: rgba(212, 175, 55, 0.35);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.02));
}

.top-win-rank {
  font-size: 12px;
  font-weight: 800;
  color: var(--dim);
  text-align: center;
}

.top-win-row.rank-1 .top-win-rank { color: var(--gold-2); }

.top-win-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-2);
}

.top-win-icon svg { width: 16px; height: 16px; }

.top-win-body {
  min-width: 0;
}

.top-win-body strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-win-body span {
  font-size: 11px;
  color: var(--dim);
}

.top-win-amt {
  font-size: 13px;
  font-weight: 800;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.top-win-row.rank-1 .top-win-amt { color: var(--gold-2); }

/* account cabinet */
.account-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: #1a1206;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}
.account-info { display: flex; flex-direction: column; gap: 2px; }
.account-info strong { font-size: 18px; font-weight: 800; }
.account-info span { font-size: 13px; color: var(--muted); }
.account-balance { font-size: 22px !important; font-weight: 800 !important; color: var(--gold-2) !important; margin-top: 4px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.account-tab {
  padding: 9px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.account-tab.active { color: var(--gold-2); border-color: var(--line-strong); background: rgba(212,175,55,0.08); }
.account-note { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.account-guest { padding: 24px; }
.account-guest p { color: var(--muted); }
.withdraw-form { display: grid; gap: 12px; padding: 20px; }
.withdraw-form select {
  width: 100%; height: 40px; padding: 0 12px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text);
}

/* support */
.bubble-meta { display: block; font-size: 10px; font-weight: 700; opacity: 0.7; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-support-layout { display: grid; grid-template-columns: 220px 1fr; gap: 12px; min-height: 320px; }
.support-thread-list { display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); padding-right: 12px; }
.support-thread {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-align: left;
}
.support-thread.active { border-color: var(--gold); background: rgba(212,175,55,0.08); }
.support-thread strong { display: block; font-size: 12px; margin-bottom: 2px; }
.support-thread span { font-size: 11px; color: var(--dim); }
.support-thread-view { display: flex; flex-direction: column; gap: 10px; }

/* roulette reel */
.roulette-panel { padding: 10px 6px 6px; }
.roulette-show {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.roulette-hero {
  text-align: center;
  padding: 18px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(0,0,0,0.28));
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.roulette-show.spinning .roulette-hero { border-color: rgba(212, 175, 55, 0.35); }
.roulette-hero.red { border-color: rgba(239, 74, 95, 0.45); background: linear-gradient(165deg, rgba(239,74,95,0.14), rgba(0,0,0,0.3)); }
.roulette-hero.black { border-color: rgba(130, 130, 140, 0.4); }
.roulette-hero.green { border-color: rgba(45, 212, 132, 0.45); background: linear-gradient(165deg, rgba(45,212,132,0.12), rgba(0,0,0,0.3)); }
.roulette-show.won .roulette-hero { box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.35), 0 8px 28px rgba(62, 207, 142, 0.1); }
.roulette-show.lost .roulette-hero { box-shadow: 0 0 0 1px rgba(239, 74, 95, 0.25); }
.roulette-hero-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.roulette-hero-num {
  display: block;
  font-size: clamp(3rem, 12vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.roulette-hero-chip {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.roulette-hero-chip.red { background: #ef4a5f; color: #fff; }
.roulette-hero-chip.black { background: #1a1a22; color: #fff; border: 1px solid rgba(255,255,255,0.12); }
.roulette-hero-chip.green { background: #2dd484; color: #0a1a12; }

.roulette-reel-frame {
  position: relative;
  padding: 14px 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.2));
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.roulette-reel-marker {
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fef08a, #d4af37);
  border-radius: 2px;
  z-index: 3;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.55);
  pointer-events: none;
}
.roulette-reel-marker::before,
.roulette-reel-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
}
.roulette-reel-marker::before { top: -2px; border-bottom: 11px solid #f0c84a; }
.roulette-reel-marker::after { bottom: -2px; border-top: 11px solid #f0c84a; }
.roulette-reel-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.roulette-reel-track {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  will-change: transform;
}
.roulette-reel-track.no-transition { transition: none; }
.roulette-reel-track.is-spinning .roulette-reel-cell {
  opacity: 0.96;
  filter: saturate(1.05);
}
.roulette-reel-cell {
  flex: 0 0 56px;
  height: 68px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.22);
}
.roulette-reel-cell.red { background: linear-gradient(180deg, #f05266, #b91c3c); }
.roulette-reel-cell.black { background: linear-gradient(180deg, #40404c, #14141a); }
.roulette-reel-cell.green { background: linear-gradient(180deg, #34d399, #12865a); }

.roulette-match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.roulette-match-box {
  padding: 12px 10px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.roulette-match-box span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.roulette-match-box strong {
  font-size: 1.05rem;
  font-weight: 800;
}
.roulette-match-box.pick.red strong { color: #f87171; }
.roulette-match-box.pick.black strong { color: #e5e7eb; }
.roulette-match-box.pick.green strong { color: #6ee7b7; }
.roulette-match-box.result.red { border-color: rgba(239,74,95,0.4); background: rgba(239,74,95,0.08); }
.roulette-match-box.result.black { border-color: rgba(120,120,130,0.35); }
.roulette-match-box.result.green { border-color: rgba(45,212,132,0.4); background: rgba(45,212,132,0.08); }
.roulette-match-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.roulette-match-icon.win { background: rgba(62,207,142,0.18); color: #6ee7b7; }
.roulette-match-icon.lose { background: rgba(239,74,95,0.18); color: #fca5a5; }
.roulette-footnote {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.roulette-picks .pick-red.active { background: linear-gradient(180deg, #fca5a5, var(--bad)); color: #fff; }
.roulette-picks .pick-black.active { background: linear-gradient(180deg, #374151, #111); color: #fff; }
.roulette-picks .pick-green.active { background: linear-gradient(180deg, #6ee7b7, var(--ok)); color: #0a1a12; }

/* legacy roulette wheel (removed) */
.roulette-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.roulette-wheel-shell {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.roulette-pointer-v2 {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #f0c84a;
  z-index: 5;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.55));
}
.roulette-pointer-v2::after {
  content: "";
  position: absolute;
  top: -20px;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6cc, #d4af37);
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.roulette-wheel-rotor {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 3.2s cubic-bezier(0.12, 0.78, 0.14, 1);
  will-change: transform;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.45));
}
.roulette-wheel-rotor.no-transition { transition: none; }
.roulette-wheel-rotor.is-spinning { filter: drop-shadow(0 10px 28px rgba(0,0,0,0.45)) brightness(1.05); }
.roulette-svg { width: 100%; height: 100%; display: block; }
.roulette-wheel-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.55);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
  pointer-events: none;
}
.roulette-result-card {
  width: min(100%, 340px);
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(0,0,0,0.25));
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.roulette-result-card.spinning {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12);
}
.roulette-result-card.red { border-color: rgba(214, 52, 71, 0.45); background: linear-gradient(165deg, rgba(214,52,71,0.12), rgba(0,0,0,0.28)); }
.roulette-result-card.black { border-color: rgba(120, 120, 130, 0.45); background: linear-gradient(165deg, rgba(80,80,90,0.16), rgba(0,0,0,0.28)); }
.roulette-result-card.green { border-color: rgba(24, 160, 107, 0.45); background: linear-gradient(165deg, rgba(24,160,107,0.14), rgba(0,0,0,0.28)); }
.roulette-result-card.won { box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.35), 0 8px 24px rgba(62, 207, 142, 0.12); }
.roulette-result-card.lost { box-shadow: 0 0 0 1px rgba(214, 52, 71, 0.25); }
.roulette-result-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.roulette-result-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.roulette-result-num {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.roulette-result-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.roulette-result-chip.red { background: #d63447; color: #fff; }
.roulette-result-chip.black { background: #16161c; color: #fff; border: 1px solid rgba(255,255,255,0.12); }
.roulette-result-chip.green { background: #18a06b; color: #fff; }
.roulette-result-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.roulette-picks .pick-red.active { background: linear-gradient(180deg, #fca5a5, var(--bad)); color: #fff; }
.roulette-picks .pick-black.active { background: linear-gradient(180deg, #374151, #111); color: #fff; }
.roulette-picks .pick-green.active { background: linear-gradient(180deg, #6ee7b7, var(--ok)); color: #0a1a12; }

/* legacy roulette (unused) */
.roulette-machine {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}
.roulette-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid var(--gold-2);
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.roulette-wheel-disk {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 2.9s cubic-bezier(0.12, 0.75, 0.18, 1);
  will-change: transform;
}
.roulette-wheel-disk.no-transition { transition: none; }
.roulette-wheel-disk.is-spinning {
  filter: brightness(1.06);
}
.roulette-center-badge {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--panel);
  border: 3px solid var(--gold);
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.roulette-center-badge strong { font-size: 22px; font-weight: 800; line-height: 1; }
.roulette-center-badge span { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.roulette-stage { min-height: 280px; display: grid; place-items: center; }
.roulette-picks .pick-red.active { background: linear-gradient(180deg, #fca5a5, var(--bad)); color: #fff; }
.roulette-picks .pick-black.active { background: linear-gradient(180deg, #374151, #111); color: #fff; }
.roulette-picks .pick-green.active { background: linear-gradient(180deg, #6ee7b7, var(--ok)); color: #0a1a12; }

/* slot machine */
.slot-machine {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 16px;
  border-radius: 16px;
  border: 3px solid var(--gold);
  background: linear-gradient(180deg, #221a28 0%, #0d0d10 100%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(212,175,55,0.2);
}
.slot-machine-top {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold-2);
  margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(212,175,55,0.4);
}
.slot-window {
  padding: 10px;
  border-radius: 10px;
  background: #0a0a0e;
  border: 2px inset rgba(212,175,55,0.35);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.8);
}
.slot-machine .slot-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-reel-window {
  overflow: hidden;
  height: 96px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2a2a35 0%, #14141a 100%);
  border: 1px solid rgba(212,175,55,0.25);
  box-shadow: inset 0 4px 16px rgba(0,0,0,0.55);
}
.slot-reel-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.slot-reel-strip.no-transition { transition: none !important; }
.slot-symbol {
  height: 96px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.slot-symbol-bg {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 0 22px var(--slot-glow, rgba(212,175,55,0.35)),
    inset 0 0 14px rgba(255,255,255,0.08);
}
.slot-symbol .slot-icon {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.slot-symbol-crown { --slot-glow: rgba(240,204,90,0.55); }
.slot-symbol-crown .slot-icon { color: #ffe082; }
.slot-symbol-gem { --slot-glow: rgba(255,107,138,0.55); }
.slot-symbol-gem .slot-icon { color: #ff8fab; }
.slot-symbol-seven { --slot-glow: rgba(252,165,165,0.55); }
.slot-symbol-seven .slot-icon { color: #ff6b6b; stroke-width: 3; }
.slot-symbol-bolt { --slot-glow: rgba(125,249,255,0.6); }
.slot-symbol-bolt .slot-icon { color: #7df9ff; fill: rgba(125,249,255,0.25); }
.slot-symbol-cherry { --slot-glow: rgba(248,113,113,0.55); }
.slot-symbol-cherry .slot-icon { color: #ff8787; }
.slot-machine.spinning .slot-lights span {
  animation: pulse 0.45s infinite;
}
.slot-lights { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.slot-lights span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.2s infinite;
}
.slot-lights span:nth-child(2) { animation-delay: 0.2s; }
.slot-lights span:nth-child(3) { animation-delay: 0.4s; }

/* admin panel */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
}
.admin-sidebar {
  position: sticky;
  top: calc(var(--header) + 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--panel);
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.admin-sidebar-brand .icon { color: var(--gold-2); width: 22px; height: 22px; }
.admin-sidebar-brand strong { display: block; font-size: 14px; font-weight: 800; }
.admin-sidebar-brand span { font-size: 11px; color: var(--dim); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  transition: 0.15s;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.admin-nav-item.active {
  color: var(--gold-2);
  background: rgba(212,175,55,0.1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.admin-nav-item .icon { width: 16px; height: 16px; }
.admin-badge {
  margin-left: auto;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  background: var(--ruby);
  color: #fff;
}
.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: var(--dim);
}
.admin-main { min-width: 0; }
.admin-main .stats { margin-bottom: 16px; }
.admin-page-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--dim);
  text-align: center;
}

.admin-mob-list { display: none; }

.admin-mob-toolbar { display: none; }

.admin-mob-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.admin-mob-summary strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-2);
}

.admin-mob-summary span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

.admin-mob-card {
  padding: 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  max-width: 100%;
  box-sizing: border-box;
}

.admin-mob-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}

.admin-mob-head strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mob-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 5px 0;
  font-size: 12px;
}

.admin-mob-row span {
  flex-shrink: 0;
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-mob-row strong {
  text-align: left;
  color: var(--text);
  font-weight: 700;
  word-break: break-word;
  min-width: 0;
}

.admin-mob-hash {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.admin-mob-hash span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.admin-mob-hash code {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.45;
  color: var(--gold-2);
  word-break: break-all;
}

.admin-mob-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

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

.admin-mob-actions .admin-button,
.admin-mob-actions .danger-button {
  width: 100%;
  height: 36px;
  font-size: 11px;
}

.admin-mob-empty {
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}

.admin-promo-form {
  margin: 0 12px 10px;
}

.admin-promo-table {
  margin-top: 0;
}
body.admin-view .toasts,
body.admin-view .toast-stack {
  bottom: 24px;
}
body.admin-view .main {
  min-height: calc(100vh - var(--header));
  padding-bottom: 24px;
}
body.admin-view .admin-shell {
  min-height: calc(100vh - var(--header) - 72px);
}
.admin-denied { padding: 16px 0; color: var(--muted); margin-bottom: 14px; }

/* dice 3D cube */
.dice-stage {
  overflow: visible;
  padding: 14px 8px 8px;
}

.dice-scene {
  --dice-size: 76px;
  --dice-half: calc(var(--dice-size) / 2);
  --dice-tilt: 16deg;
  width: 152px;
  height: 152px;
  perspective: 820px;
  perspective-origin: 50% 45%;
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  overflow: visible;
  flex-shrink: 0;
}

.dice-cube-3d {
  width: var(--dice-size);
  height: var(--dice-size);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transform: rotateX(var(--dice-tilt)) rotateY(0deg);
  transform-origin: center center;
}

.dice-cube-3d.tumbling {
  animation: diceTumble var(--dice-roll-ms, 1.85s) cubic-bezier(0.32, 0.72, 0.28, 1) forwards;
}

@keyframes diceTumble {
  0% { transform: rotateX(var(--dice-tilt)) rotateY(0deg); }
  100% { transform: rotateX(var(--dice-tilt)) rotateY(720deg); }
}

.dice-side {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--dice-size);
  height: var(--dice-size);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.dice-front  { transform: rotateY(0deg) translateZ(var(--dice-half)); }
.dice-back   { transform: rotateY(180deg) translateZ(var(--dice-half)); }
.dice-right  { transform: rotateY(90deg) translateZ(var(--dice-half)); }
.dice-left   { transform: rotateY(-90deg) translateZ(var(--dice-half)); }
.dice-top    { transform: rotateX(90deg) translateZ(var(--dice-half)); }
.dice-bottom { transform: rotateX(-90deg) translateZ(var(--dice-half)); }

.dice-face {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: var(--dice-size);
  height: var(--dice-size);
  box-sizing: border-box;
  padding: 13px;
  border-radius: 4px;
  background: linear-gradient(160deg, #ffffff 0%, #ececec 50%, #d6d6d6 100%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -3px 6px rgba(0, 0, 0, 0.06);
}

.dice-pip {
  width: 11px;
  height: 11px;
  margin: auto;
  justify-self: center;
  align-self: center;
  border-radius: 50%;
  background: transparent;
  transition: opacity 0.15s ease;
}

.dice-pip.on {
  background: radial-gradient(circle at 35% 35%, #3d2912, #1a1206);
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.35);
}

.dice-stage.rolling #diceRollValue,
.dice-stage.rolling .dice-roll-label,
.dice-stage.rolling .dice-target-hint {
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.dice-stage.rolling #diceStatus {
  margin-top: 4px;
}

.dice-roll-label {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.dice-target-hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* coin flip */
.coin-flipper {
  width: 128px;
  height: 128px;
  perspective: 900px;
}
.coin-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 3px solid rgba(255,255,255,0.22);
  box-shadow:
    inset 0 0 28px rgba(255,255,255,0.12),
    inset 0 -8px 16px rgba(0,0,0,0.18),
    0 10px 28px rgba(0,0,0,0.4);
}
.coin-heads {
  background: linear-gradient(145deg, #ffe082, #d4af37 55%, #a67c00);
  color: #2a1a04;
  transform: rotateY(0deg);
}
.coin-tails {
  background: linear-gradient(145deg, #6ee7b7, #10b981 55%, #047857);
  color: #052e1f;
  transform: rotateY(180deg);
}
.coin-face-icon {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.coin-face-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.coin-stage strong { font-size: 22px; font-weight: 700; }

/* mobile-only lobby strip (shown ≤960px) */
.mobile-strip {
  display: none;
  margin-bottom: 8px;
  padding: 10px 0 6px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(212, 175, 55, 0.05) 0%, transparent 45%),
    var(--panel);
  overflow: visible;
}

.mobile-pulse-grid,
.mobile-live-head {
  padding-left: 14px;
  padding-right: 14px;
}

.mobile-pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-pulse-card {
  padding: 10px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-align: center;
}

.mobile-pulse-card.gold {
  border-color: rgba(212, 175, 55, 0.25);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.1), rgba(14, 14, 17, 0.9));
}

.mobile-pulse-card span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 4px;
}

.mobile-pulse-card strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.mobile-live-section { margin-bottom: 0; }

.mobile-live-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-2);
}

.mobile-live-ticker {
  overflow: hidden;
  margin-left: -14px;
  margin-right: -14px;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.mobile-live-runner {
  display: flex;
  width: max-content;
  animation: mobLiveTicker 58s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.mobile-live-runner:hover { animation-play-state: paused; }

.mobile-live-set {
  display: flex;
  gap: 8px;
  padding: 2px 14px 6px;
  flex-shrink: 0;
}

@keyframes mobLiveTicker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.mobile-bet-chip {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  max-width: 118px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  white-space: nowrap;
}

.mobile-bet-chip.won { border-color: rgba(62, 207, 142, 0.22); }

.mobile-bet-chip strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-bet-chip span {
  font-size: 9px;
  color: var(--dim);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-bet-chip.won span { color: var(--ok); }

.mobile-quick-play {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mobile-quick-play::-webkit-scrollbar { display: none; }

.mobile-game-chip {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold-2);
  transition: transform 0.15s, border-color 0.15s;
}

.mobile-game-chip:active { transform: scale(0.94); }
.mobile-game-chip .game-icon,
.mobile-game-chip svg { width: 19px; height: 19px; }

@media (min-width: 961px) {
  .header-end #depositBtn,
  .header-end #headerWallet {
    display: none !important;
  }
}

@media (max-width: 960px) {
  :root {
    --header: 56px;
    --mob-bar-h: calc(62px + env(safe-area-inset-bottom, 0px));
  }

  html { -webkit-text-size-adjust: 100%; }

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

  button, .btn, .mob-item, .game-card, .chip, .game-pick, .mobile-game-chip {
    touch-action: manipulation;
  }

  .header-wrap {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 0 12px;
  }

  .logo-mark { width: 38px; height: 38px; }
  .logo-type { display: none; }
  .menu { display: none; }

  .header-end {
    grid-column: auto;
    gap: 6px;
  }

  .online-pill { display: none; }

  #signInBtn:not(.hidden),
  #registerBtn:not(.hidden) {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  body.is-auth #signInBtn,
  body.is-auth #registerBtn {
    display: none !important;
  }

  body.is-guest #depositBtn,
  body.is-guest #headerWallet {
    display: none !important;
  }

  .header-end .wallet-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    max-width: 108px;
    padding: 5px 10px;
  }

  .header-end .wallet-badge-label {
    font-size: 9px;
  }

  .header-end .wallet-badge strong {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  #depositBtn:not(.hidden) {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    gap: 4px;
  }

  #depositBtn .deposit-btn-label {
    display: inline;
  }

  #accountBtn {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  #accountBtn #accountText { display: none; }

  #adminBtn:not(.hidden) {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  #adminBtn .admin-btn-label { display: none; }

  .stats-lobby .stat-skip-mob,
  .stats-lobby #bankrollStat {
    display: none;
  }

  .stats-lobby {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card { padding: 12px 14px; }

  .main {
    padding: 14px 0 calc(var(--mob-bar-h) + 12px);
  }

  html, body { overflow-x: clip; overflow-y: auto; }

  .layout-shell {
    padding: 0 12px;
    max-width: 100%;
  }

  .container { padding: 0; max-width: 100%; min-width: 0; }

  .mobile-strip {
    display: block;
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .win-ticker { margin-bottom: 8px; }
  .win-ticker-label { padding: 8px 12px; font-size: 10px; }
  .win-item { font-size: 11px; padding: 5px 12px; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 10px 18px 18px;
    margin-bottom: 14px;
    margin-top: -2px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    margin-bottom: 16px;
  }

  .hero-btns {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btns .btn { width: 100%; height: 44px; }
  .hero-media { order: -1; }
  .hero-glow { width: 160px; height: 160px; margin-bottom: -4px; }
  .hero-glow img { width: 132px; height: 132px; }
  .hero-perks { justify-content: center; gap: 10px; margin-top: 14px; padding-top: 14px; }
  .hero-perk { font-size: 12px; }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
  }
  .stat-card strong { font-size: 18px; }
  #bankrollStat strong { font-size: 14px; }

  .block { margin-bottom: 20px; }
  .block-head { margin-bottom: 10px; }
  .block-head h2 { font-size: 16px; }

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

  .game-card {
    min-height: 148px;
    padding: 14px;
    gap: 8px;
  }

  .game-card h3 { font-size: 15px; }
  .game-card p { font-size: 11px; line-height: 1.4; }
  .game-symbol { width: 44px; height: 44px; border-radius: 12px; }
  .game-play { padding: 8px 14px; font-size: 12px; }

  .widgets {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .widget { padding: 14px; }
  .widget-support { min-height: 0; }

  .support-messages {
    min-height: 140px;
    max-height: 200px;
  }

  .top-win-row {
    grid-template-columns: 24px 30px 1fr auto;
    gap: 8px;
    padding: 9px 10px;
  }

  .hall-stat strong { font-size: 14px; }

  .game-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .game-layout .result-panel {
    order: 1;
    min-height: 220px;
    padding: 12px;
  }

  .game-layout .control-panel {
    order: 2;
    position: sticky;
    bottom: calc(var(--mob-bar-h) + 6px);
    z-index: 25;
    padding: 12px;
    box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.55);
    border-color: var(--line-strong);
    background: rgba(19, 19, 22, 0.96);
    backdrop-filter: blur(14px);
  }

  .game-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 8px;
  }

  .game-picker-compact {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 92%, transparent);
  }

  .game-picker-compact::-webkit-scrollbar { display: none; }
  .game-picker-compact .game-pick { flex: 0 0 auto; }

  .game-toolbar-meta { justify-content: flex-start; }

  .game-frame-play .game-body { padding: 10px; }

  .crash-classic { min-height: 240px; }
  .crash-mult-big { font-size: clamp(40px, 14vw, 56px); }

  .dice-stage strong, .roulette-stage strong { font-size: 40px; }
  .dice-stage, .coin-stage, .slots-stage, .roulette-stage, .crash-stage { min-height: 200px; gap: 8px; }

  .coin-token, .roulette-wheel { width: 100px; height: 100px; }

  .roulette-hero-num { font-size: 2.6rem; }
  .roulette-reel-cell { flex-basis: 48px; height: 58px; font-size: 20px; }
  .roulette-match-box strong { font-size: 0.95rem; }

  .mine-grid { gap: 6px; }
  .tile-button { min-height: 48px; border-radius: 8px; }
  .mines-board, .keno-board { padding: 12px; }

  .keno-grid { gap: 4px; }
  .keno-number { min-height: 32px; font-size: 11px; }

  .slot-reels { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .slot-reel { min-height: 80px; }

  .page-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 16px;
    margin-bottom: 14px;
  }

  .page-banner p { margin-left: auto; margin-right: auto; font-size: 13px; }
  .page-banner-mark { margin: 0 auto; order: -1; width: 80px; height: 80px; }
  .page-banner-mark img { width: 68px; height: 68px; }

  .view-title { padding: 16px; }
  .view-title h1 { font-size: 22px; }

  .stat-strip, .admin-grid, .bonus-grid, .wallet-grid-page { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }

  .history-heading { padding: 12px 14px; }
  .history-heading h2 { font-size: 13px; flex-wrap: wrap; }
  .history-sub { font-size: 11px; line-height: 1.45; }

  .history-table th, .history-table td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .history-table th:nth-child(1),
  .history-table td:nth-child(1),
  .history-table th:nth-child(5),
  .history-table td:nth-child(5) {
    display: none;
  }

  .live-bets-table { display: block; width: 100%; }
  .live-bets-table thead { display: none; }
  .live-bets-table tbody { display: flex; flex-direction: column; }
  .live-bets-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 2px 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }
  .live-bets-table tbody tr.bet-row-you {
    background: rgba(212, 175, 55, 0.06);
  }
  .live-bets-table td {
    display: block;
    padding: 0;
    border: none;
    white-space: normal;
    font-size: 12px;
  }
  .live-bets-table td:nth-child(1),
  .live-bets-table td:nth-child(5) { display: none; }
  .live-bets-table td:nth-child(2) { grid-column: 1; grid-row: 1; font-weight: 700; }
  .live-bets-table td:nth-child(7) { grid-column: 2; grid-row: 1; text-align: right; align-self: start; }
  .live-bets-table td:nth-child(3) { grid-column: 1; grid-row: 2; color: var(--dim); font-size: 11px; }
  .live-bets-table td:nth-child(6) { grid-column: 2; grid-row: 2; text-align: right; font-weight: 700; }
  .live-bets-table td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; font-size: 11px; color: var(--muted); }
  .live-bets-table .table-game { font-size: 12px; }
  .history-table-wrap { overflow: visible; }

  .account-profile {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    padding: 14px;
    gap: 10px 12px;
  }

  .account-avatar { width: 48px; height: 48px; font-size: 16px; }
  .account-info strong { font-size: 16px; }
  .account-balance { font-size: 18px !important; }

  .account-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .account-actions .btn {
    width: 100%;
    height: 40px;
    padding: 0 6px;
    font-size: 11px;
    justify-content: center;
    white-space: nowrap;
  }

  .account-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 2px;
  }

  .account-tabs::-webkit-scrollbar { display: none; }
  .account-tab { flex: 0 0 auto; padding: 8px 12px; font-size: 11px; }

  .admin-shell {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
    width: 100%;
  }

  .admin-sidebar {
    display: flex;
    position: static;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
  }

  .admin-sidebar-brand .icon { width: 18px; height: 18px; }
  .admin-sidebar-brand strong { font-size: 13px; }
  .admin-sidebar-brand span { font-size: 10px; }

  .admin-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 3px;
    padding-bottom: 0;
  }

  .admin-nav-item {
    width: 100%;
    flex: none;
    white-space: nowrap;
    padding: 7px 10px;
    font-size: 12px;
  }

  .admin-nav-item .icon { width: 14px; height: 14px; }

  .admin-sidebar-foot {
    padding-top: 8px;
    margin-top: 2px;
    gap: 6px;
  }

  .admin-sidebar-foot span {
    display: block;
    font-size: 10px;
    line-height: 1.3;
  }

  .admin-sidebar-foot .ghost-button {
    width: 100%;
    height: 32px;
    font-size: 11px;
    padding: 0 10px;
  }

  .admin-mob-toolbar { display: none !important; }

  .admin-main { max-width: 100%; min-width: 0; overflow: visible; }

  .admin-main .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }

  .admin-main .stat-card { padding: 8px 10px; min-width: 0; }
  .admin-main .stat-card span {
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: 0.02em;
  }
  .admin-main .stat-card strong {
    font-size: 12px;
    word-break: break-all;
  }

  .admin-card {
    padding: 0;
    max-width: 100%;
    overflow: visible;
  }

  .admin-card .panel-heading {
    padding: 8px 12px;
    font-size: 13px;
  }

  .admin-card .panel-heading h2 { font-size: 13px; }

  .admin-table-desktop { display: none; }

  .admin-mob-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .admin-mob-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .admin-mob-actions .admin-button,
  .admin-mob-actions .danger-button {
    height: 38px;
    font-size: 11px;
    white-space: nowrap;
  }

  .admin-promo-form,
  .admin-user-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 12px 8px;
  }

  .admin-users-note {
    margin: 0 12px 10px;
    font-size: 11px;
  }

  .admin-promo-form .admin-button,
  .admin-user-form .admin-button {
    width: 100%;
    height: 40px;
  }

  .admin-mob-actions-grid {
    grid-template-columns: 1fr;
  }

  .admin-page-foot {
    margin-top: 4px;
    padding-top: 6px;
    font-size: 10px;
  }

  body.admin-view .main {
    padding: 10px 0 12px;
    overflow-x: hidden;
  }

  body.admin-view .layout-shell {
    padding: 0 10px;
    overflow-x: hidden;
    max-width: 100%;
  }

  body.admin-view .container {
    overflow-x: hidden;
    max-width: 100%;
  }

  body.admin-view .admin-shell {
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .admin-support-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .support-thread-list {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 8px 10px;
    gap: 6px;
  }

  .support-thread {
    flex: 0 0 auto;
    min-width: 120px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    text-align: left;
    margin-bottom: 4px;
  }

  .footer-glow { display: none; }

  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .footer-brand strong { font-size: 14px; margin-bottom: 0; }
  .footer-brand p { display: none; }
  .footer-badges { margin-top: 0; gap: 4px; }
  .footer-badge { padding: 3px 8px; font-size: 9px; }

  .footer-col h4 {
    font-size: 9px;
    margin-bottom: 4px;
    letter-spacing: 0.08em;
  }

  .footer-links {
    gap: 5px;
    align-items: flex-start;
  }

  .footer-links button { font-size: 11px; }

  .footer-pay {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    align-items: flex-start;
  }

  .pay-chip {
    padding: 4px 8px;
    font-size: 10px;
  }

  .footer-trust { display: none; }

  .site-footer {
    margin-bottom: var(--mob-bar-h);
    padding: 12px 12px 6px;
  }

  .footer-copy {
    padding-top: 6px;
    margin-top: 6px;
    font-size: 10px;
  }

  .mob-bar {
    display: flex;
    height: var(--mob-bar-h);
    padding: 0 max(6px, env(safe-area-inset-left, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-right, 0px));
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    border-top-color: var(--line-strong);
  }

  .mob-item {
    flex: 1;
    justify-content: center;
    min-height: 46px;
    min-width: 0;
    padding: 5px 1px;
    border-radius: 8px;
    font-size: 9px;
  }

  .mob-item-main {
    flex: 1.08;
    min-height: 50px;
    margin-top: -6px;
    padding-top: 6px;
    border-radius: 10px 10px 8px 8px;
  }

  .mob-item-main [data-icon] svg { width: 20px; height: 20px; }

  .mob-item.active {
    color: var(--gold-2);
    background: rgba(212, 175, 55, 0.1);
  }

  .mob-item [data-icon] svg { width: 18px; height: 18px; }

  .toasts, .toast-stack {
    bottom: calc(var(--mob-bar-h) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
  }

  .site-footer {
    margin-bottom: var(--mob-bar-h);
  }

  .trust-inner { gap: 10px 16px; font-size: 10px; }
  .trust-inner span:nth-child(n+3) { display: none; }

  .overlay, .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: min(92vh, 720px);
    border-radius: 16px 16px 0 0;
    border-bottom: none;
  }

  .modal-card.wide-modal { width: 100%; }

  .admin-shell { grid-template-columns: 1fr; gap: 12px; }

  .promo-feature { padding: 18px 16px; }
  .game-header { padding: 12px; }
  .game-title h1 { font-size: 18px; }
  .game-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .game-tabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 520px) {
  .header-wrap { padding: 0 10px; }
  .layout-shell { padding: 0 10px; }

  .mirror-bar-inner {
    gap: 8px 10px;
    padding: 6px 10px;
  }

  .mirror-bar-label span { display: none; }

  .mirror-pill-domain-full { display: none; }
  .mirror-pill-domain-short { display: inline; }

  .mirror-pill {
    min-height: 26px;
    padding: 4px 10px;
    font-size: 10px;
  }

  .mobile-strip {
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
  }

  .header-end .wallet-badge {
    max-width: 82px;
    padding: 4px 8px;
  }

  .header-end .wallet-badge strong { font-size: 11px; }

  #depositBtn:not(.hidden) {
    width: 38px;
    padding: 0;
  }

  #depositBtn .deposit-btn-label { display: none; }

  #signInBtn { padding: 0 10px; font-size: 11px; }

  .mobile-pulse-card strong { font-size: 12px; }

  .hero { padding: 18px 14px; }
  .hero h1 { font-size: clamp(26px, 8vw, 34px); }
  .hero-glow { width: 140px; height: 140px; }
  .hero-glow img { width: 120px; height: 120px; }

  .stats { gap: 6px; }
  .stat-card { padding: 10px 12px; }
  .stat-card strong { font-size: 16px; }

  .game-grid { gap: 8px; }
  .game-card { min-height: 136px; padding: 12px; }
  .game-card p { display: none; }
  .game-play .icon, .game-play svg { width: 18px; height: 18px; }

  .bonus-form, .admin-inline, .deposit-address { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .stat-strip, .admin-grid, .bonus-grid, .wallet-grid-page { grid-template-columns: 1fr; }

  .game-picker { gap: 6px; }
  .game-pick { flex: 1 1 calc(50% - 6px); justify-content: center; font-size: 12px; padding: 9px 10px; }

  .crash-classic { min-height: 210px; }

  .tile-button { min-height: 42px; }
  .keno-number { min-height: 28px; font-size: 10px; }

  .dice-scene {
    --dice-size: 68px;
    width: 136px;
    height: 136px;
  }

  .dice-stage strong { font-size: 36px; }

  .account-actions .btn {
    height: 44px;
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
    line-height: 1.1;
  }

  .account-actions .btn .icon,
  .account-actions .btn svg {
    width: 16px;
    height: 16px;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 8px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-pay { justify-content: center; }

  .history-table th:nth-child(3),
  .history-table td:nth-child(3) {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-win-row {
    grid-template-columns: 22px 1fr auto;
  }

  .top-win-icon { display: none; }

  .segmented button { font-size: 11px; padding: 0 4px; }
  .primary-button, .ghost-button { height: 44px; }

  .footer-trust { display: none; }
}

@media (max-width: 380px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
  .mobile-pulse-grid { grid-template-columns: 1fr 1fr; }
  .mobile-pulse-card:last-child { grid-column: 1 / -1; }
  .mob-item { font-size: 9px; }
  .mob-item [data-icon] svg { width: 18px; height: 18px; }
}

/* Blocked account screen */
body.blocked-view {
  overflow: hidden;
}

body.blocked-view .right-panel,
body.blocked-view .side-rail,
body.blocked-view #sideRailLeft,
body.blocked-view #sideRailRight {
  display: none !important;
}

body.blocked-view .header .menu.hidden {
  display: none !important;
}

.blocked-screen {
  max-width: 560px;
  margin: 48px auto 64px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: linear-gradient(165deg, rgba(239, 68, 68, 0.08), rgba(8, 8, 9, 0.95));
}

.blocked-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.blocked-icon svg {
  width: 34px;
  height: 34px;
}

.blocked-screen h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 12px 0 16px;
}

.blocked-lead {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.blocked-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}

.blocked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

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