:root {
  --bg: #07121b;
  --bg-deep: #04090f;
  --panel: rgba(8, 22, 33, 0.78);
  --felt: linear-gradient(145deg, rgba(17, 96, 72, 0.95), rgba(6, 53, 42, 0.98));
  --gold: #f0bf67;
  --gold-soft: #ffe5b4;
  --text: #f8f3e8;
  --muted: #b4c5cf;
  --line: rgba(255, 255, 255, 0.1);
  --danger: #ff6c61;
  --success: #93f1a3;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top, rgba(240, 191, 103, 0.18), transparent 25%),
    radial-gradient(circle at bottom right, rgba(20, 150, 110, 0.16), transparent 20%),
    linear-gradient(180deg, #122536 0%, var(--bg) 58%, var(--bg-deep) 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 32%, rgba(255, 255, 255, 0.025) 32% 35%, transparent 35% 100%),
    linear-gradient(310deg, transparent 0 68%, rgba(255, 255, 255, 0.03) 68% 71%, transparent 71% 100%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.glass-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.eyebrow {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--gold-soft);
}
h1, h2, h3 {
  margin: 0;
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  line-height: 1.02;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 12ch;
}
h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.body-copy, .helper-text, .hub-copy, .game-card p, .status-copy {
  color: var(--muted);
  line-height: 1.6;
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.action:hover:enabled { transform: translateY(-2px); background: rgba(255, 255, 255, 0.14); }
.action:disabled { opacity: 0.45; cursor: not-allowed; }
.action--primary { color: #11161d; background: linear-gradient(135deg, var(--gold), #ffe19b); }
.action--ghost { border: 1px solid rgba(255, 255, 255, 0.1); }

.auth-layout, .hub-shell, .table-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 1.2rem 0;
}
.auth-layout--single { max-width: 760px; }
.auth-panel { padding: 2rem; }
.auth-panel__head { margin-bottom: 1.2rem; }
.auth-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}
.auth-tab.is-active {
  background: linear-gradient(135deg, rgba(240, 191, 103, 0.3), rgba(255, 225, 155, 0.12));
  border-color: rgba(240, 191, 103, 0.45);
}
.stack-form { display: grid; gap: 1rem; margin-top: 1rem; }
.field { display: grid; gap: 0.45rem; }
.field span { color: var(--gold-soft); font-size: 0.95rem; }
.field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.field input:focus {
  border-color: rgba(240, 191, 103, 0.65);
  box-shadow: 0 0 0 3px rgba(240, 191, 103, 0.12);
}
.auth-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.helper-text { margin: 1rem 0 0; min-height: 1.5rem; }
.helper-text.is-error { color: var(--danger); }
.helper-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.helper-links a {
  color: var(--gold-soft);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
}
.brand-mark { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark__coin {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #fff0cb);
  color: #10161d;
  font-weight: 700;
}
.brand-mark strong { display: block; font-size: 1rem; }
.brand-mark span, .topbar-meta { color: var(--muted); }
.hub-shell, .table-shell { padding-bottom: 2.5rem; }
.hub-hero {
  margin-top: 1.5rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}
.hero-stats, .game-grid { display: grid; gap: 1rem; }
.stat-box, .game-card, .table-card, .chip-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.stat-box { padding: 1.25rem; }
.stat-box strong { display: block; font-size: 2.8rem; color: var(--gold); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.6rem 0 1rem;
}
.game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-card { padding: 1.35rem; display: grid; gap: 1rem; min-height: 220px; }
.game-card__tag {
  justify-self: start;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.game-card--live {
  background:
    radial-gradient(circle at top right, rgba(240, 191, 103, 0.18), transparent 30%),
    var(--panel);
}
.game-card--roulette {
  background:
    radial-gradient(circle at top right, rgba(191, 55, 55, 0.2), transparent 30%),
    radial-gradient(circle at bottom left, rgba(17, 96, 72, 0.16), transparent 25%),
    var(--panel);
}
.game-card--crash {
  background:
    radial-gradient(circle at top right, rgba(255, 120, 77, 0.22), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 214, 102, 0.12), transparent 26%),
    var(--panel);
}
.game-card__actions { margin-top: auto; display: flex; gap: 0.7rem; flex-wrap: wrap; }
.profile-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  margin-top: 1.4rem;
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.leaderboard-row--me {
  background: rgba(240, 191, 103, 0.08);
}

.table-hero {
  margin-top: 1.5rem;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
}
.table-copy, .table-card { padding: 1.35rem; }
.table-card--coming {
  display: grid;
  align-content: center;
  min-height: 240px;
}
.roulette-layout,
.crash-board {
  display: grid;
  gap: 1.25rem;
}
.roulette-layout {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}
.roulette-wheel-shell {
  display: grid;
  place-items: center;
}
.roulette-wheel {
  aspect-ratio: 1;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(6, 11, 18, 0.96) 0 22%, rgba(6, 11, 18, 0.7) 22% 25%, transparent 25% 100%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0 30%, transparent 31% 100%),
    conic-gradient(
      from -6deg,
      #146046 0deg 10deg,
      #531a21 10deg 20deg,
      #151923 20deg 30deg,
      #531a21 30deg 40deg,
      #151923 40deg 50deg,
      #531a21 50deg 60deg,
      #151923 60deg 70deg,
      #531a21 70deg 80deg,
      #151923 80deg 90deg,
      #531a21 90deg 100deg,
      #151923 100deg 110deg,
      #531a21 110deg 120deg,
      #151923 120deg 130deg,
      #531a21 130deg 140deg,
      #151923 140deg 150deg,
      #531a21 150deg 160deg,
      #151923 160deg 170deg,
      #531a21 170deg 180deg,
      #151923 180deg 190deg,
      #531a21 190deg 200deg,
      #151923 200deg 210deg,
      #531a21 210deg 220deg,
      #151923 220deg 230deg,
      #531a21 230deg 240deg,
      #151923 240deg 250deg,
      #531a21 250deg 260deg,
      #151923 260deg 270deg,
      #531a21 270deg 280deg,
      #151923 280deg 290deg,
      #531a21 290deg 300deg,
      #151923 300deg 310deg,
      #531a21 310deg 320deg,
      #151923 320deg 330deg,
      #531a21 330deg 340deg,
      #151923 340deg 350deg,
      #531a21 350deg 360deg
    );
  border: 12px solid rgba(242, 198, 114, 0.58);
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.04),
    inset 0 0 38px rgba(0, 0, 0, 0.4),
    0 24px 50px rgba(0, 0, 0, 0.38);
}
.roulette-wheel::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.05);
}
.roulette-wheel::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.2), transparent 0 35%),
    linear-gradient(180deg, #141b24, #090d13);
  border: 8px solid rgba(242, 198, 114, 0.38);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    0 10px 18px rgba(0, 0, 0, 0.28);
}
.roulette-ball {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 14px;
  left: calc(50% - 10px);
  background:
    radial-gradient(circle at 35% 35%, #ffffff, #ebe1d0 42%, #c1b39c 75%, #8d806c 100%);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.28);
  transform-origin: 10px 170px;
  z-index: 3;
}
.roulette-wheel__ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.12);
}
.roulette-wheel__number {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.08), transparent 0 28%),
    rgba(7, 18, 27, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.04);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.roulette-wheel__number[data-color="red"] { color: #ff8c8c; }
.roulette-wheel__number[data-color="black"] { color: #f8f3e8; }
.roulette-wheel__number[data-color="green"] { color: #93f1a3; }
.roulette-controls {
  display: grid;
  gap: 1rem;
}
.roulette-table {
  display: grid;
  gap: 0.75rem;
}
.roulette-table__main {
  display: grid;
  grid-template-columns: 82px 1fr 90px;
  gap: 0.45rem;
}
.roulette-zero {
  min-height: 166px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #19835a, #116048);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.roulette-numbers {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.45rem;
}
.roulette-columns {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.roulette-cell {
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.roulette-cell:hover {
  transform: translateY(-2px);
}
.roulette-cell.is-active,
.roulette-zero.is-active,
.roulette-outside.is-active {
  border-color: rgba(240, 191, 103, 0.75);
  box-shadow: 0 0 0 3px rgba(240, 191, 103, 0.16);
}
.roulette-cell--green {
  background: linear-gradient(180deg, #19835a, #116048);
}
.roulette-cell--red {
  background: linear-gradient(180deg, #a52b2b, #7d1f1f);
}
.roulette-cell--black {
  background: linear-gradient(180deg, #20262d, #0f1318);
}
.roulette-dozens,
.roulette-outside-row {
  display: grid;
  gap: 0.45rem;
}
.roulette-dozens {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.roulette-outside-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.roulette-outside {
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 46, 35, 0.96), rgba(10, 30, 22, 0.98));
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.roulette-outside:hover,
.roulette-zero:hover {
  transform: translateY(-2px);
}
.roulette-outside--red {
  background: linear-gradient(180deg, #a52b2b, #7d1f1f);
}
.roulette-outside--black {
  background: linear-gradient(180deg, #20262d, #0f1318);
}
.roulette-picked {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.roulette-picked strong {
  font-size: 1.35rem;
  color: var(--gold);
}
.crash-board {
  margin-top: 1rem;
}
.crash-multiplier {
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  font-family: "Abril Fatface", serif;
  color: var(--gold);
  text-align: center;
}
.crash-bar {
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.crash-bar__fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f0bf67, #ff7d4d);
  transition: width 120ms linear;
}
.table-header, .hand-head, .controls, .chip-bar, .bet-inline, .table-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bet-inline { align-items: stretch; flex-direction: column; }
.bet-summary h2 { max-width: none; line-height: 0.95; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.bet-box { display: grid; width: 100%; }
.bet-box__field {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bet-box__field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 1.1rem;
  font-weight: 700;
}
.table-surface {
  margin-top: 1.3rem;
  padding: 1.2rem;
  border-radius: 30px;
  background: var(--felt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.insurance-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.insurance-panel[hidden] {
  display: none;
}
.insurance-panel__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hand-zone { min-height: 182px; }
.cards { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1rem; min-height: 122px; }
.player-hands {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.player-hand {
  padding: 1rem;
  border-radius: 24px;
  background: rgba(4, 18, 12, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.player-hand.is-active {
  border-color: rgba(240, 191, 103, 0.7);
  box-shadow: 0 0 0 3px rgba(240, 191, 103, 0.14);
  transform: translateY(-2px);
}
.card {
  width: 84px;
  aspect-ratio: 5 / 7;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf7, #ece4d7);
  color: #10151c;
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.25);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform, opacity;
  transform: translate3d(0, -26px, 0) scale(0.88);
  opacity: 0;
}
.card__corner, .card__center { font-weight: 700; }
.card__center { font-size: 1.8rem; text-align: center; }
.card--red { color: #a12323; }
.card--back {
  background:
    radial-gradient(circle at center, rgba(240, 191, 103, 0.45), transparent 38%),
    linear-gradient(145deg, #183247, #0d1e2c);
  color: var(--gold-soft);
}
.card.is-dealing { animation: card-deal 360ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards; }
.card.is-revealing { animation: card-flip 540ms ease forwards; transform-style: preserve-3d; }
.controls { justify-content: center; padding: 1.5rem 0; flex-wrap: wrap; }
.chip-bar { margin-top: 1.1rem; flex-wrap: wrap; padding: 1rem; }
.chip {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.chip.is-win { color: var(--success); }
.chip.is-loss { color: var(--danger); }
.chip.is-push { color: var(--gold-soft); }

.admin-shell {
  padding-bottom: 4rem;
}
.dashboard-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.admin-panels {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}
.admin-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.admin-grant-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 1rem;
  align-items: end;
}
.admin-grant-form select,
.admin-grant-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.admin-grant-form select:focus,
.admin-grant-form input:focus {
  border-color: rgba(240, 191, 103, 0.65);
  box-shadow: 0 0 0 3px rgba(240, 191, 103, 0.12);
}
.admin-split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.admin-profit-positive {
  color: var(--success);
}
.admin-profit-negative {
  color: var(--danger);
}
.crash-shell {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 2.5rem;
}
.crash-layout {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 1rem;
}
.crash-sidebar,
.crash-stage {
  background: linear-gradient(180deg, rgba(8, 24, 36, 0.97), rgba(5, 14, 24, 0.98));
  border-color: rgba(83, 167, 190, 0.2);
  border-radius: 28px;
}
.crash-sidebar {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}
.crash-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  background: rgba(3, 11, 19, 0.7);
  padding: 0.35rem;
  border-radius: 18px;
}
.crash-tab {
  border: 0;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: #8fb8ca;
  background: transparent;
}
.crash-tab.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(240, 191, 103, 0.28), rgba(56, 134, 153, 0.15));
  box-shadow: inset 0 -3px 0 rgba(240, 191, 103, 0.9);
}
.crash-form-block {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(4, 14, 24, 0.76);
  border: 1px solid rgba(83, 167, 190, 0.18);
}
.crash-form-block .field span:first-child {
  color: #d9ecf2;
}
.crash-form-block .bet-box__field {
  background: rgba(3, 11, 19, 0.96);
  border-color: rgba(83, 167, 190, 0.24);
  border-radius: 22px;
  padding: 1rem 1.05rem;
}
.crash-form-block .bet-box__field input,
.crash-form-block .bet-box__field span {
  color: #f0bf67;
}
.crash-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.crash-quick-actions .action {
  border-radius: 16px;
  min-height: 56px;
  background: rgba(18, 55, 73, 0.92);
  color: #ffffff;
}
.crash-play-button,
.crash-cashout-button {
  min-height: 78px;
  border: 0;
  border-radius: 24px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fffdf8;
  cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.14), 0 10px 0 rgba(8, 8, 23, 0.55);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.crash-play-button {
  background: linear-gradient(135deg, #ffd623, #ffb400 52%, #f59d00 100%);
  color: #4a2200;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5);
}
.crash-cashout-button {
  background: linear-gradient(135deg, #0e9f8d, #158f7d 52%, #0d7365 100%);
}
.crash-play-button:hover:enabled,
.crash-cashout-button:hover:enabled {
  transform: translateY(-2px);
}
.crash-play-button:disabled,
.crash-cashout-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.crash-sidebar-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.crash-sidebar-stats > div {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(3, 11, 19, 0.82);
  border: 1px solid rgba(83, 167, 190, 0.18);
}
.crash-sidebar-stats strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
}
.crash-players {
  padding: 0;
  overflow: hidden;
  background: rgba(3, 11, 19, 0.9);
}
.crash-players__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(83, 167, 190, 0.16);
}
.crash-player-feed {
  max-height: 420px;
  overflow-y: auto;
}
.crash-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid rgba(83, 167, 190, 0.08);
}
.crash-player-row span {
  color: #f8f3e8;
  font-weight: 700;
}
.crash-player-row strong {
  color: #95c6d4;
}
.crash-stage {
  min-height: 860px;
  padding: 1rem 1.15rem 1.15rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  overflow: hidden;
}
.crash-history {
  padding: 0.45rem 0.35rem 0;
}
.crash-history-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}
.crash-history-pill {
  min-width: 92px;
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 55, 76, 0.95), rgba(7, 28, 42, 0.98));
  color: #95c6d4;
  font-size: 1.15rem;
  font-weight: 800;
}
.crash-history-pill.is-win {
  background: linear-gradient(180deg, rgba(240, 191, 103, 0.98), rgba(211, 151, 38, 0.98));
  color: #1d1610;
}
.crash-history-pill.is-loss {
  background: linear-gradient(180deg, rgba(20, 78, 100, 0.94), rgba(7, 35, 50, 0.98));
  color: #d6eef4;
}
.crash-chart {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 1rem;
  min-height: 620px;
}
.crash-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0 1.2rem;
  color: rgba(149, 198, 212, 0.45);
  font-size: 1.2rem;
  font-weight: 700;
}
.crash-canvas {
  position: relative;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 50%, rgba(18, 90, 110, 0.16), transparent 0 42%),
    linear-gradient(180deg, rgba(4, 10, 18, 0.98), rgba(5, 12, 22, 0.98));
  overflow: hidden;
}
.crash-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 95%, rgba(255, 255, 255, 0.03) 95% 100%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 40px);
  pointer-events: none;
}
.crash-big-multiplier {
  position: absolute;
  inset: 18% 0 auto;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4.5rem, 10vw, 8.6rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  z-index: 2;
}
.crash-subtitle {
  position: absolute;
  inset: 38% 0 auto;
  text-align: center;
  color: #95c6d4;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  z-index: 2;
}
.crash-track {
  position: absolute;
  inset: 0;
}
.crash-line {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 100%;
}
.crash-line path {
  fill: none;
  stroke: #f0bf67;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(240, 191, 103, 0.28));
}
.crash-rocket {
  position: absolute;
  left: 4%;
  bottom: 10%;
  font-size: clamp(3.3rem, 6vw, 5.2rem);
  transform: translate(-50%, 50%) rotate(16deg);
  transition: left 140ms linear, bottom 140ms linear, transform 140ms linear;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
  z-index: 2;
}
.table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.admin-table th,
.admin-table td {
  padding: 0.9rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-table th {
  color: var(--gold-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes card-deal {
  0% { transform: translate3d(0, -26px, 0) scale(0.88); opacity: 0; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}
@keyframes card-flip {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(90deg); }
  100% { transform: rotateY(0deg); }
}

@media (max-width: 960px) {
  .hub-hero, .table-hero, .game-grid, .dashboard-grid, .profile-grid, .profile-stats-grid, .admin-split-panels, .crash-layout, .crash-sidebar-stats, .admin-grant-form { grid-template-columns: 1fr; }
  .roulette-layout { grid-template-columns: 1fr; }
  .roulette-table__main { grid-template-columns: 1fr; }
  .roulette-zero { min-height: 64px; }
  .roulette-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
  .roulette-dozens { grid-template-columns: 1fr; }
  .roulette-outside-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roulette-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .crash-chart { grid-template-columns: 1fr; min-height: 520px; }
  .crash-scale { display: none; }
  .crash-stage { min-height: 680px; }
  .table-header, .hand-head, .bet-inline, .section-head, .topbar, .insurance-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .auth-layout, .hub-shell, .table-shell, .crash-shell { width: min(100% - 1rem, 1440px); }
  .auth-panel, .hub-hero, .table-copy, .table-card { padding: 1.1rem; }
  .card { width: 68px; border-radius: 14px; }
  h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .crash-stage { min-height: 560px; }
  .crash-big-multiplier { inset: 23% 0 auto; }
  .crash-subtitle { inset: 41% 0 auto; }
  .crash-history-pill { min-width: 72px; min-height: 72px; border-radius: 18px; }
}
