﻿@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  color-scheme: dark;
  --ink: #07080c;
  --ink-soft: #0d1016;
  --panel: rgba(18, 21, 28, .76);
  --panel-solid: #11141b;
  --line: rgba(255, 255, 255, .09);
  --line-gold: rgba(139, 124, 255, .34);
  --gold: #8f7cff;
  --gold-bright: #d9e3ff;
  --gold-deep: #4b43c5;
  --ruby: #d9364f;
  --ruby-deep: #741525;
  --emerald: #19b883;
  --cyan: #58d9e5;
  --muted: #8d929d;
  --text: #f7f5ef;
  --radius: 24px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold-deep) var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(89, 63, 255, .2), transparent 36rem),
    radial-gradient(circle at 12% 35%, rgba(42, 113, 255, .12), transparent 28rem),
    linear-gradient(180deg, #070713 0%, #050612 72%, #090923 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.ambient, .noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  z-index: -1;
}

.noise {
  z-index: 100;
  opacity: .03;
  background:
    repeating-radial-gradient(circle at 17% 31%, rgba(255,255,255,.7) 0 .4px, transparent .6px 3px),
    repeating-radial-gradient(circle at 73% 67%, rgba(255,255,255,.45) 0 .35px, transparent .55px 4px);
  background-size: 5px 7px, 7px 5px;
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 82px;
  padding: 0 3.5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 12, .74);
  box-shadow: 0 8px 36px rgba(0, 0, 0, .24);
  backdrop-filter: blur(24px) saturate(140%);
}

.brand-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.discord-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(139, 124, 255, .32);
  border-radius: 12px;
  color: #c9c2ff;
  background: linear-gradient(135deg, rgba(88, 101, 242, .2), rgba(107, 76, 255, .08));
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 0 18px rgba(88, 101, 242, .08);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.discord-link:hover {
  border-color: rgba(157, 143, 255, .72);
  color: #fff;
  background: linear-gradient(135deg, rgba(88, 101, 242, .38), rgba(107, 76, 255, .18));
  box-shadow: 0 0 24px rgba(88, 101, 242, .24);
  transform: translateY(-1px);
}

.discord-link:focus-visible {
  outline: 2px solid #9b8cff;
  outline-offset: 3px;
}

.discord-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.discord-link span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(139, 124, 255, .22));
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  letter-spacing: .26em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.brand-copy small {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .3em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}

.nav-link {
  position: relative;
  height: 100%;
  padding: 0 2px;
  border: 0;
  color: #777d88;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: .25s ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 -3px 18px var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(.3);
  transition: .25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  opacity: 1;
  transform: none;
}

.nav-icon {
  margin-right: 6px;
  color: var(--gold);
}

.account-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.icon-button, .balance-pill, .profile-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}

.icon-button:hover, .balance-pill:hover, .profile-pill:hover {
  border-color: var(--line-gold);
  background: rgba(139, 124, 255, .06);
  transform: translateY(-1px);
}

.icon-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
}

.reward-button i {
  position: absolute;
  top: 4px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ruby);
  box-shadow: 0 0 10px var(--ruby);
}

.reward-button i.hidden {
  display: none;
}

.gift-icon {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  line-height: 1;
  filter: saturate(.85) hue-rotate(18deg) drop-shadow(0 0 8px rgba(139, 124, 255, .38));
}

.reward-button .gift-icon {
  font-size: 19px;
}

.balance-pill, .profile-pill {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-radius: 14px;
}

.balance-pill {
  gap: 10px;
  padding: 6px 12px;
}

.balance-pill > span:nth-child(2) {
  display: grid;
  min-width: 76px;
  text-align: left;
}

.balance-pill small, .profile-pill small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.balance-pill strong {
  margin-top: 1px;
  font-size: 15px;
}

.balance-pill > b {
  color: var(--gold);
  font-size: 20px;
  font-weight: 300;
}

.balance-pill.balance-credit {
  animation: balanceCredit .9s cubic-bezier(.2, .8, .2, 1);
}

.winnings-flight {
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow: hidden;
  pointer-events: none;
}

.flying-coin {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border: 3px dashed #fff1a8;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6bd 0 18%, #d5a84e 20% 46%, #79511a 48% 56%, #efca6d 58% 100%);
  box-shadow: 0 0 0 2px #9b6b26, 0 0 18px rgba(255, 215, 111, .75);
  transform: translate(calc(var(--from-x) - 12px), calc(var(--from-y) - 12px)) scale(.7) rotate(0);
  opacity: 0;
  animation: coinToBalance .82s cubic-bezier(.22, .72, .18, 1) var(--delay) forwards;
}

@keyframes coinToBalance {
  0% {
    opacity: 0;
    transform: translate(calc(var(--from-x) - 12px), calc(var(--from-y) - 12px)) scale(.55) rotate(0);
  }
  15% { opacity: 1; }
  48% {
    opacity: 1;
    transform: translate(calc(var(--mid-x) - 12px + var(--drift)), calc(var(--mid-y) - 70px)) scale(1.08) rotate(300deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--to-x) - 12px), calc(var(--to-y) - 12px)) scale(.35) rotate(680deg);
  }
}

@keyframes balanceCredit {
  0%, 100% { transform: scale(1); }
  38% {
    transform: scale(1.09);
    box-shadow: 0 0 0 2px rgba(132, 112, 255, .65), 0 0 28px rgba(94, 76, 255, .55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flying-coin { animation-duration: .18s; }
  .balance-pill.balance-credit { animation-duration: .25s; }
}

.chip-mini {
  display: inline-block;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  border: 3px dashed #5d4117;
  border-radius: 50%;
  background: radial-gradient(circle, #f7dd94 0 24%, #b88a3d 25% 42%, #ecd087 44% 63%, #4e3716 65% 70%, #d0aa5a 72%);
  box-shadow: 0 2px 5px #000, inset 0 0 0 1px rgba(255, 255, 255, .25);
  vertical-align: middle;
}

.profile-pill {
  gap: 10px;
  padding: 5px 9px 5px 5px;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(139, 124, 255, .5);
  border-radius: 50%;
  color: #0a0b0e;
  background: linear-gradient(145deg, var(--gold-bright), #8e672a);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .6), 0 0 14px rgba(139, 124, 255, .17);
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 800;
}

.profile-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.profile-copy strong {
  max-width: 110px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  color: var(--muted);
}

.app-shell {
  width: min(1460px, 94vw);
  margin: 0 auto;
  padding: 46px 0 70px;
}

.table-heading, .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .24em;
}

.eyebrow span {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 9px;
  background: var(--gold);
  vertical-align: middle;
}

.eyebrow.compact {
  margin-bottom: 5px;
  font-size: 8px;
}

.table-heading h1, .section-heading h2, .modal h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.table-heading h1 {
  font-size: clamp(31px, 3vw, 50px);
  letter-spacing: -.035em;
}

.live-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-badge, .table-id {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.live-badge i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #e64351;
  box-shadow: 0 0 9px #e64351;
  animation: livePulse 1.7s ease-in-out infinite;
}

.table-id strong {
  color: var(--gold);
}

@keyframes livePulse {
  50% { opacity: .35; box-shadow: 0 0 2px #e64351; }
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.wheel-card, .glass-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .055), transparent 30%),
    rgba(13, 16, 22, .7);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(24px) saturate(120%);
}

.wheel-card {
  min-height: 590px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(119, 22, 36, .22), transparent 44%),
    radial-gradient(ellipse at 50% 65%, rgba(199, 159, 71, .08), transparent 38%),
    linear-gradient(155deg, rgba(255, 255, 255, .04), transparent 24%),
    #0b0d12;
}

.wheel-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, .025) 50%, transparent 50.2%);
  content: "";
}

.recent-orbit {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.recent-numbers {
  display: flex;
  gap: 5px;
}

.result-number {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  color: white;
  background: #17191f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  font-size: 8px;
  letter-spacing: 0;
}

.result-number.red { background: #8c2031; }
.result-number.green { background: #107455; }

.wheel-stage {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.stage-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 67%;
  aspect-ratio: 1.4;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(92, 80, 255, .18), rgba(139, 124, 255, .04) 46%, transparent 70%);
  filter: blur(22px);
  transform: translate(-50%, -48%);
  animation: auraBreath 4s ease-in-out infinite;
}

@keyframes auraBreath {
  50% { opacity: .62; transform: translate(-50%, -48%) scale(1.08); }
}

#roulette {
  position: absolute;
  inset: 34px 0 18px;
  width: 100%;
  height: calc(100% - 52px);
  background: transparent;
  transform: translateZ(0);
}

.wheel-reflection {
  position: absolute;
  z-index: 3;
  top: 90px;
  left: 22%;
  width: 28%;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(105deg, rgba(255, 255, 255, .13), transparent 36%);
  filter: blur(14px);
  opacity: .34;
  pointer-events: none;
  transform: rotate(-21deg);
}

.pointer {
  position: absolute;
  z-index: 8;
  top: 49px;
  left: 50%;
  width: 34px;
  height: 48px;
  filter: drop-shadow(0 9px 10px #000);
  transform: translateX(-50%);
}

.pointer::before {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 100%, 5% 8%, 26% 0, 74% 0, 95% 8%);
  background: linear-gradient(90deg, #8a672d, #fff0b0 48%, #73501e);
  content: "";
}

.pointer span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b210f;
  box-shadow: inset 0 1px 2px #000;
  transform: translateX(-50%);
}

.fair-badge {
  position: absolute;
  z-index: 6;
  right: 24px;
  bottom: 63px;
  padding: 7px 10px;
  border: 1px solid rgba(53, 208, 158, .19);
  border-radius: 8px;
  color: #70d9b4;
  background: rgba(14, 82, 60, .12);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.fair-badge span {
  margin-right: 5px;
}

.spin-status {
  position: absolute;
  z-index: 7;
  bottom: 55px;
  left: 50%;
  display: grid;
  min-width: 210px;
  padding: 10px 18px;
  border: 1px solid rgba(139, 124, 255, .2);
  border-radius: 12px;
  background: rgba(7, 8, 12, .7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(12px);
  text-align: center;
  transform: translateX(-50%);
}

.spin-status small {
  color: var(--gold);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .22em;
}

.spin-status strong {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: .12em;
}

.spin-status.spinning {
  border-color: rgba(92, 80, 255, .35);
}

.spin-status.spinning small {
  color: #f36b7f;
}

.table-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 8%;
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}

.table-meta > div {
  display: grid;
  gap: 4px;
}

.table-meta small {
  color: #555a64;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .15em;
}

.table-meta strong {
  color: #aaaeb6;
  font-size: 9px;
  font-weight: 650;
}

.secure-copy i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.bet-slip {
  display: flex;
  min-height: 590px;
  flex-direction: column;
  padding: 24px;
}

.slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.slip-head h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.text-button {
  padding: 6px;
  border: 0;
  color: var(--muted);
  background: none;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.text-button:hover {
  color: var(--gold);
}

.empty-slip {
  display: grid;
  flex: 1;
  place-items: center;
  align-content: center;
  padding: 30px 20px;
  text-align: center;
}

.empty-glyph {
  display: grid;
  width: 57px;
  height: 57px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid rgba(139, 124, 255, .18);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle, rgba(139, 124, 255, .08), transparent 68%);
  font-size: 26px;
}

.empty-slip strong {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.empty-slip p {
  max-width: 230px;
  margin: 8px 0;
  color: #686d77;
  font-size: 10px;
  line-height: 1.6;
}

.bet-items {
  display: none;
  max-height: 324px;
  flex: 1;
  gap: 8px;
  padding: 14px 0;
  overflow: auto;
}

.bet-items.active {
  display: grid;
  align-content: start;
}

.bet-item {
  display: grid;
  grid-template-columns: 34px 1fr auto 20px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
  animation: betIn .22s ease-out;
}

@keyframes betIn {
  from { opacity: 0; transform: translateY(8px); }
}

.bet-item .mini-chip {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 3px dashed rgba(255, 255, 255, .65);
  border-radius: 50%;
  color: var(--placed-chip-color, #0a0a0a);
  background: var(--placed-chip-bg, var(--gold));
  font-size: 8px;
  font-weight: 900;
}

.bet-item-copy {
  display: grid;
  gap: 2px;
}

.bet-item-copy strong {
  font-size: 10px;
}

.bet-item-copy small {
  color: var(--muted);
  font-size: 8px;
}

.bet-item > strong {
  color: var(--gold-bright);
  font-size: 12px;
}

.remove-bet {
  border: 0;
  color: #656a73;
  background: none;
  cursor: pointer;
}

.slip-footer {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.slip-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.slip-total > span {
  color: var(--muted);
  font-size: 10px;
}

.slip-total > strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slip-total b {
  font-size: 20px;
}

.spin-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #b9c5ff;
  border-radius: 15px;
  color: #151008;
  background:
    linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, .35) 30%, transparent 43%),
    linear-gradient(135deg, #3f2aa7, #9b8cff 46%, #2874d9);
  background-size: 220% 100%, auto;
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 9px 30px rgba(91, 100, 255, .17);
  cursor: pointer;
  transition: transform .18s, filter .18s, opacity .18s;
}

.spin-button:not(:disabled):hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.spin-button:not(:disabled):active {
  transform: translateY(1px) scale(.99);
}

.spin-button:disabled {
  border-color: #4c4c4e;
  background: #24262b;
  box-shadow: none;
  color: #777b84;
  cursor: not-allowed;
  opacity: .65;
}

.spin-button:not(:disabled) .button-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .42), transparent 60%);
  transform: translateX(-100%);
  animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
  45%, 100% { transform: translateX(100%); }
}

.spin-copy {
  display: grid;
  z-index: 1;
  text-align: left;
}

.spin-copy small {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .17em;
}

.spin-copy strong {
  font-size: 12px;
  letter-spacing: .09em;
}

.spin-arrow {
  position: absolute;
  right: 19px;
  font-size: 28px;
  font-weight: 200;
}

.spin-hint {
  margin: 11px 0 0;
  color: #4e535d;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

kbd {
  padding: 2px 5px;
  border: 1px solid #393d45;
  border-radius: 3px;
  font: inherit;
}

.betting-section {
  padding-top: 58px;
}

.section-heading h2 {
  font-size: clamp(28px, 2.4vw, 40px);
}

.selected-chip-label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.selected-chip-label strong {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px dashed rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: var(--placed-chip-color, #111);
  background: var(--placed-chip-bg, var(--gold));
  box-shadow: 0 2px 8px #000;
  font-size: 9px;
}

.betting-surface {
  padding: 20px;
}

.roulette-grid {
  display: grid;
  grid-template-columns: 58px minmax(600px, 1fr) 48px;
  gap: 3px;
  padding: 16px;
  border: 1px solid rgba(139, 124, 255, .11);
  border-radius: 17px;
  background:
    linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(10, 107, 81, .22), transparent 65%),
    #071b18;
  background-size: 26px 26px, 26px 26px, auto, auto;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .7), 0 8px 35px rgba(0, 0, 0, .3);
}

.roulette-grid button {
  position: relative;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #eee;
  background: rgba(255, 255, 255, .016);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  transition: .16s ease;
}

.roulette-grid button:hover {
  z-index: 2;
  border-color: var(--gold);
  background: rgba(139, 124, 255, .1);
  box-shadow: 0 0 20px rgba(139, 124, 255, .14);
  transform: translateY(-1px);
}

.roulette-grid button.has-bet::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 3px dashed rgba(255, 255, 255, .8);
  border-radius: 50%;
  color: var(--placed-chip-color, #111);
  background: var(--placed-chip-bg, var(--gold));
  box-shadow: 0 3px 8px #000;
  content: attr(data-amount);
  font-size: 6px;
  transform: translate(-50%, -50%);
}

.number-rows {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}

.number-cell {
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 15px !important;
}

.number-cell > span {
  position: relative;
  z-index: 1;
}

.number-cell.red {
  background: linear-gradient(140deg, rgba(151, 28, 45, .65), rgba(67, 11, 20, .6));
}

.number-cell.black {
  background: linear-gradient(140deg, rgba(25, 28, 34, .8), rgba(5, 6, 8, .8));
}

.number-cell.zero {
  grid-row: 1;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(145deg, #117757, #09372b);
  font-size: 18px !important;
}

.column-bets {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}

.column-bets button:first-child { border-radius: 0 9px 0 0; }
.column-bets button:last-child { border-radius: 0 0 9px 0; }

.outside-bets {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin-top: 5px;
}

.outside-bets button:nth-child(-n+3) {
  grid-column: span 2;
}

.outside-bets button:nth-child(n+4) {
  grid-column: span 1;
}

.outside-bets sup {
  font-size: 6px;
}

.diamond {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  transform: rotate(45deg);
}

.red-diamond { background: var(--ruby); box-shadow: 0 0 8px var(--ruby); }
.black-diamond { background: #0a0b0e; border: 1px solid #6f747e; }

.chip-rack {
  display: flex;
  min-height: 91px;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.5vw, 19px);
  padding-top: 17px;
}

.rack-label {
  margin-right: 5px;
  color: #5f646e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
}

.chip {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 4px dashed rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: #111;
  background: #ddd;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .55), inset 0 0 0 3px rgba(255, 255, 255, .26), inset 0 0 0 6px rgba(0, 0, 0, .17);
  cursor: pointer;
  transition: transform .2s, filter .2s;
}

.chip::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(0, 0, 0, .28);
  border-radius: 50%;
  content: "";
}

.chip span {
  position: relative;
  z-index: 1;
  font-size: 9px;
  font-weight: 950;
}

.chip:hover {
  filter: brightness(1.12);
  transform: translateY(-5px) rotate(4deg);
}

.chip.selected {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .7), 0 0 0 2px var(--gold-bright), 0 0 24px rgba(139, 124, 255, .36), inset 0 0 0 3px rgba(255, 255, 255, .24), inset 0 0 0 6px rgba(0, 0, 0, .18);
  transform: translateY(-7px) scale(1.06);
}

.chip-10 { background: linear-gradient(135deg, #f0f0e8, #9c9c98); }
.chip-25 { background: linear-gradient(135deg, #62e1b4, #137a59); }
.chip-50 { background: linear-gradient(135deg, #8cdcf0, #287d9d); }
.chip-100 { background: linear-gradient(135deg, #f4dc91, #a87429); }
.chip-500 { color: white; background: linear-gradient(135deg, #e45365, #80152a); }
.chip-1000 { color: white; background: linear-gradient(135deg, #9e78e5, #492b87); }

[data-placed-chip="10"] {
  --placed-chip-bg: linear-gradient(135deg, #f0f0e8, #9c9c98);
  --placed-chip-color: #111;
}

[data-placed-chip="25"] {
  --placed-chip-bg: linear-gradient(135deg, #62e1b4, #137a59);
  --placed-chip-color: #111;
}

[data-placed-chip="50"] {
  --placed-chip-bg: linear-gradient(135deg, #8cdcf0, #287d9d);
  --placed-chip-color: #111;
}

[data-placed-chip="100"] {
  --placed-chip-bg: linear-gradient(135deg, #f4dc91, #a87429);
  --placed-chip-color: #111;
}

[data-placed-chip="500"] {
  --placed-chip-bg: linear-gradient(135deg, #e45365, #80152a);
  --placed-chip-color: #fff;
}

[data-placed-chip="1000"] {
  --placed-chip-bg: linear-gradient(135deg, #9e78e5, #492b87);
  --placed-chip-color: #fff;
}

.rack-divider {
  width: 1px;
  height: 36px;
  margin: 0 4px;
  background: var(--line);
}

.repeat-button {
  display: grid;
  min-width: 52px;
  gap: 4px;
  border: 0;
  color: #6a6f79;
  background: none;
  cursor: pointer;
}

.repeat-button:hover {
  color: var(--gold);
}

.repeat-button span {
  font-size: 17px;
  font-weight: 300;
}

.repeat-button small {
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .11em;
}

.lounge-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.lounge-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .025);
}

.lounge-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(139, 124, 255, .2);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(139, 124, 255, .05);
}

.lounge-card > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.lounge-card small {
  color: #5f646e;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .15em;
}

.lounge-card strong {
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 400;
}

.xp-track {
  position: absolute;
  right: 16px;
  bottom: 11px;
  left: 69px;
  height: 2px;
  overflow: hidden;
  border-radius: 3px;
  background: #292c33;
}

.xp-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 8px var(--gold);
  transition: width .6s ease;
}

.lounge-card {
  position: relative;
}

.lounge-card > b, .trend {
  color: var(--gold);
  font-size: 8px;
}

.reward-card {
  grid-template-columns: 40px 1fr auto;
}

.streak-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 69px;
  display: flex;
  gap: 6px;
}

.streak-dots i {
  width: 6px;
  height: 6px;
  border: 1px solid #4c5058;
  border-radius: 50%;
}

.streak-dots i.on {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 7px var(--gold);
}

.reward-card button {
  padding: 7px 9px;
  border: 1px solid var(--line-gold);
  border-radius: 7px;
  color: var(--gold);
  background: rgba(139, 124, 255, .05);
  cursor: pointer;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
}

.reward-card button:disabled {
  border-color: var(--line);
  color: #545861;
  cursor: default;
}

footer {
  display: flex;
  width: min(1460px, 94vw);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: #454a53;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .13em;
  text-align: center;
}

footer p {
  margin: 0;
  font-weight: 500;
  letter-spacing: .06em;
}

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

.footer-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.leaderboard-section {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) 1.5fr;
  align-items: center;
  gap: 48px;
  margin: 22px 0 54px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(circle at 78% 50%, rgba(107,88,255,.13), transparent 42%), rgba(255,255,255,.02);
}
.leaderboard-copy h2 { margin: 8px 0 12px; font: 400 clamp(30px,4vw,48px)/1 Georgia,serif; }
.leaderboard-copy > p:last-child { color: var(--muted); font-size: 10px; line-height: 1.7; }
.leaderboard-podium { display: grid; grid-template-columns: repeat(3,1fr); align-items: end; gap: 9px; }
.leaderboard-podium article { display:grid; min-height:135px; place-content:center; justify-items:center; gap:7px; padding:16px 8px; border:1px solid var(--line); border-radius:16px; background:rgba(8,9,28,.78); text-align:center; }
.leaderboard-podium .podium-1 { min-height:175px; border-color:rgba(151,137,255,.52); background:linear-gradient(160deg,rgba(114,92,255,.22),rgba(8,9,28,.82)); box-shadow:0 0 35px rgba(106,86,255,.13); }
.leaderboard-podium b { color:#aaa0ff; font:400 25px Georgia,serif; }
.leaderboard-podium strong { max-width:130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:400 16px Georgia,serif; }
.leaderboard-podium small { color:#727995; font-size:7px; font-weight:900; letter-spacing:.09em; }

.footer-links { display:flex; gap:8px; }
.footer-links button, .profile-links button { border:0; color:#8f95ad; background:none; cursor:pointer; font-size:7px; font-weight:900; letter-spacing:.1em; }
.footer-links button:hover, .profile-links button:hover { color:var(--gold-bright); }
.profile-links { display:flex; justify-content:center; gap:16px; margin-top:16px; }

.admin-intro { color:var(--muted); font-size:10px; line-height:1.65; }
.admin-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:22px 0 12px; padding:5px; border:1px solid var(--line); border-radius:13px; background:rgba(0,0,0,.22); }
.admin-tabs button { min-height:44px; border:0; border-radius:9px; color:#777d92; background:transparent; cursor:pointer; font-size:9px; font-weight:900; letter-spacing:.09em; }
.admin-tabs button.active { color:#f2f1ff; background:linear-gradient(135deg,rgba(79,59,190,.75),rgba(111,94,241,.42)); box-shadow:0 7px 20px rgba(0,0,0,.2); }
.admin-tabs b { display:inline-grid; min-width:22px; margin-left:7px; padding:3px 5px; place-items:center; border-radius:99px; color:#d8d4ff; background:rgba(255,255,255,.09); font-size:8px; }
.admin-summary { display:grid; width:140px; margin:22px 0; padding:14px; border:1px solid var(--line-gold); border-radius:14px; background:rgba(116,95,255,.08); }
.admin-summary strong { font:400 28px Georgia,serif; }
.admin-summary small { color:var(--muted); font-size:7px; letter-spacing:.1em; }
.admin-table-wrap { overflow:auto; border:1px solid var(--line); border-radius:14px; }
.admin-table { width:100%; border-collapse:collapse; min-width:680px; font-size:9px; }
.admin-table th, .admin-table td { padding:13px 14px; border-bottom:1px solid var(--line); text-align:left; }
.admin-table th { color:#858ba7; font-size:7px; letter-spacing:.12em; }
.admin-table td strong, .admin-table td small { display:block; }
.admin-table td small { margin-top:3px; color:var(--muted); font-size:7px; }
.admin-table input { width:92px; min-height:36px; padding:7px 8px; border:1px solid var(--line); border-radius:8px; color:#f2f3ff; background:#090b18; }
.admin-table input[type="email"] { width:190px; }
.admin-table input[type="text"] { width:130px; }
.admin-table input:disabled { color:#74798b; cursor:not-allowed; opacity:.7; }
.account-type { color:#c8c3ff; font-size:10px; text-transform:uppercase; }
.account-type.guest { color:#75dcb8; }
.admin-save { min-height:36px; padding:7px 10px; border:1px solid var(--line-gold); border-radius:8px; color:#dcd8ff; background:rgba(105,87,255,.13); cursor:pointer; font-size:7px; font-weight:900; letter-spacing:.07em; }
.admin-save:hover { border-color:#a99fff; background:rgba(105,87,255,.24); }
.admin-save:disabled { cursor:wait; opacity:.55; }
.legal-content { display:grid; gap:18px; }
.legal-content section { padding-bottom:16px; border-bottom:1px solid var(--line); }
.legal-content h3 { margin:0 0 7px; color:#dfe3ff; font:400 18px Georgia,serif; }
.legal-content p { margin:0; color:#9da2b5; font-size:10px; line-height:1.75; }
.legal-content a { color:#ada4ff; }
.legal-updated { font-size:8px !important; }

.game-lobby {
  padding: 28px 0 38px;
  scroll-margin-top: 92px;
}

.lobby-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.lobby-heading h1 {
  margin: 8px 0 0;
  font: 400 clamp(32px, 4vw, 54px)/1 Georgia, serif;
}

.lobby-heading > p {
  max-width: 430px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: right;
}

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

.game-choice {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  min-height: 150px;
  align-items: center;
  gap: 17px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 50%, rgba(111, 91, 255, .18), transparent 34%),
    rgba(255,255,255,.025);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  cursor: pointer;
  text-align: left;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.game-choice:hover, .game-choice.active {
  border-color: rgba(148, 132, 255, .52);
  background:
    radial-gradient(circle at 12% 50%, rgba(111, 91, 255, .27), transparent 38%),
    rgba(105, 87, 255, .07);
  transform: translateY(-3px);
}

.game-choice.active::after {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fefbe;
  box-shadow: 0 0 12px #4fd7a7;
  content: "";
}

.game-choice-art {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 8px double rgba(188, 179, 255, .7);
  border-radius: 50%;
  background: radial-gradient(circle, #171542 0 34%, #090a20 36%);
  box-shadow: 0 0 34px rgba(106, 91, 255, .2), inset 0 0 24px #000;
}

.game-choice-art i {
  position: absolute;
  color: #e8e5ff;
  font: 700 13px Georgia, serif;
  font-style: normal;
}
.game-choice-art i:nth-child(1) { top: 8px; }
.game-choice-art i:nth-child(2) { right: 8px; }
.game-choice-art i:nth-child(3) { bottom: 8px; }

.cards-art {
  border: 0;
  border-radius: 18px;
  background: none;
  box-shadow: none;
}
.cards-art i {
  display: grid;
  width: 57px;
  height: 82px;
  place-items: start;
  padding: 10px;
  border-radius: 9px;
  color: #11142a;
  background: #f1f2fb;
  box-shadow: 0 12px 24px rgba(0,0,0,.42);
  font-size: 19px;
}
.cards-art i:first-child { top: 4px; left: 7px; transform: rotate(-9deg); }
.cards-art i:last-child { right: 5px; bottom: 2px; color: #bd253d; transform: rotate(8deg); }

.aviator-art {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(102, 76, 255, .72), rgba(26, 20, 76, .88)),
    #101225;
  box-shadow: 0 0 34px rgba(98, 76, 255, .25), inset 0 1px rgba(255,255,255,.18);
}

.aviator-art::after {
  position: absolute;
  right: -15px;
  bottom: 12px;
  left: 13px;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #cfc8ff);
  box-shadow: 0 -8px 18px #8c78ff;
  content: "";
  transform: rotate(-18deg);
}

.aviator-art i:first-child {
  top: 22px;
  left: 22px;
  z-index: 2;
  color: #fff;
  font: 400 31px/1 sans-serif;
  filter: drop-shadow(0 7px 12px rgba(0,0,0,.45));
  transform: rotate(-18deg);
}

.aviator-art i:last-child {
  right: 8px;
  bottom: 7px;
  color: #82f2c8;
  font: 800 10px/1 sans-serif;
}

.game-choice-copy { display: grid; gap: 5px; }
.game-choice-copy small { color: #9d9fc0; font-size: 7px; font-weight: 900; letter-spacing: .17em; }
.game-choice-copy strong { font: 400 27px Georgia, serif; }
.game-choice-copy em { color: var(--muted); font-size: 9px; font-style: normal; }
.game-choice > b { color: #bdb6ff; font-size: 8px; letter-spacing: .14em; white-space: nowrap; }
.game-choice > b span { margin-left: 6px; font-size: 16px; }

.plinko-art, .mines-art {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 20%, rgba(112,239,209,.26), transparent 45%), #10112f;
}
.plinko-art i:first-child { color:#8cf5d3; font-size:20px; animation:miniDrop 1.7s ease-in-out infinite; }
.plinko-art i:nth-child(2) { top:38px; right:18px; color:#8b7cff; letter-spacing:5px; }
.plinko-art i:last-child, .mines-art i:last-child { color:#7ce8ba; font-size:10px; }
.mines-art { background:radial-gradient(circle at 30% 30%,rgba(139,124,255,.35),transparent 35%),#11122e; }
.mines-art i:first-child { top:18px; left:18px; color:#7ef0c5; font-size:22px; filter:drop-shadow(0 0 10px #56d8ab); }
.mines-art i:nth-child(2) { top:18px; right:18px; color:#ff617a; font-size:20px; }
@keyframes miniDrop { 50% { transform:translateY(30px); } }

.instant-game-section { padding:16px 0 58px; }
.instant-heading { display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:24px; }
.instant-heading h1 { margin:8px 0 10px; font:400 clamp(34px,5vw,68px)/1 Georgia,serif; }
.instant-heading > div > p:last-child { max-width:680px; color:var(--muted); line-height:1.7; }
.instant-live { padding:10px 14px; border:1px solid rgba(113,239,200,.28); border-radius:99px; color:#9af2d4; background:rgba(60,210,158,.07); font-size:8px; font-weight:900; letter-spacing:.12em; white-space:nowrap; }
.instant-live i { display:inline-block; width:6px; height:6px; margin-right:7px; border-radius:50%; background:#70e8bd; box-shadow:0 0 12px #70e8bd; }
.instant-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; min-height:650px; }
.instant-controls { display:flex; flex-direction:column; gap:15px; padding:30px; border-left:1px solid var(--line); border-radius:0 var(--radius) var(--radius) 0; background:rgba(8,9,24,.94); }
.instant-controls label { display:flex; align-items:center; justify-content:space-between; color:#858ba7; font-size:9px; font-weight:900; letter-spacing:.1em; }
.instant-controls label strong { color:#fff; font:400 16px Georgia,serif; letter-spacing:0; }
.instant-controls input { width:100%; accent-color:#7965ff; }
.instant-controls select { min-height:46px; padding:0 13px; border:1px solid var(--line); border-radius:11px; color:#f4f2ff; background:#111329; font-weight:800; }
.instant-quick { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }
.instant-quick button { min-height:38px; border:1px solid var(--line); border-radius:9px; background:rgba(255,255,255,.035); cursor:pointer; font-size:8px; font-weight:900; }
.instant-primary, .mines-cashout { display:grid; min-height:68px; place-content:center; gap:5px; border:1px solid #aaa1ff; border-radius:15px; color:#fff; background:linear-gradient(135deg,#4e36b8,#927bff 48%,#3174e6); box-shadow:0 14px 35px rgba(73,56,202,.28); cursor:pointer; }
.instant-primary small, .mines-cashout small { font-size:7px; font-weight:900; letter-spacing:.18em; opacity:.72; }
.instant-primary strong, .mines-cashout strong { font-size:12px; letter-spacing:.1em; }
.mines-cashout { border-color:#78ebc1; color:#071b15; background:linear-gradient(135deg,#45c996,#91f3cf); }
.instant-primary:disabled, .mines-cashout:disabled { opacity:.45; cursor:wait; }
.instant-rule { margin-top:auto; color:#646b87; font-size:8px; line-height:1.65; }

.plinko-stage { position:relative; min-height:650px; overflow:hidden; border-radius:var(--radius) 0 0 var(--radius); background:radial-gradient(circle at 50% 20%,rgba(113,92,255,.28),transparent 40%),linear-gradient(180deg,#111132,#07091e); }
.plinko-board { position:absolute; inset:55px 55px 105px; }
.plinko-peg { position:absolute; width:8px; height:8px; border-radius:50%; background:#dad7ff; box-shadow:0 0 10px rgba(154,139,255,.85); transform:translate(-50%,-50%); }
.plinko-slots { position:absolute; right:24px; bottom:22px; left:24px; display:grid; gap:4px; }
.plinko-slot { display:grid; min-width:0; min-height:48px; place-items:center; border-radius:7px; color:#0b0d1a; background:linear-gradient(180deg,#8174ff,#b3aaff); font-size:8px; font-weight:950; box-shadow:0 0 12px rgba(116,100,255,.18); }
.plinko-slot.edge { color:#15100a; background:linear-gradient(180deg,#ffbd62,#ff704f); box-shadow:0 0 20px rgba(255,118,75,.35); }
.plinko-slot.hit { animation:slotHit .65s ease both; }
.plinko-ball { position:absolute; top:35px; left:50%; z-index:5; width:17px; height:17px; border:3px solid #fff; border-radius:50%; background:#72efc0; box-shadow:0 0 22px #60e9b6; opacity:0; transform:translate(-50%,-50%); }
.plinko-result { position:absolute; top:20px; right:24px; display:grid; text-align:right; }
.plinko-result small { color:#858ba7; font-size:7px; font-weight:900; letter-spacing:.15em; }
.plinko-result strong { color:#fff; font:400 27px Georgia,serif; }
@keyframes slotHit { 35% { transform:translateY(-12px) scale(1.12); filter:brightness(1.5); } }

.mines-stage { display:flex; flex-direction:column; gap:22px; min-height:650px; padding:34px; border-radius:var(--radius) 0 0 var(--radius); background:radial-gradient(circle at 50% 45%,rgba(69,205,157,.11),transparent 50%),#090b22; }
.mines-topline { display:flex; justify-content:space-between; gap:15px; }
.mines-topline span { display:grid; gap:5px; }
.mines-topline span:last-child { text-align:right; }
.mines-topline small { color:#7e849f; font-size:7px; font-weight:900; letter-spacing:.15em; }
.mines-topline strong { color:#fff; font:400 24px Georgia,serif; }
.mines-board { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:11px; width:min(580px,100%); margin:auto; }
.mine-cell { position:relative; aspect-ratio:1; border:1px solid rgba(147,135,255,.24); border-radius:15px; color:#aaa5e6; background:linear-gradient(145deg,rgba(49,45,108,.86),rgba(19,20,55,.96)); box-shadow:inset 0 1px rgba(255,255,255,.08),0 9px 20px rgba(0,0,0,.28); cursor:pointer; font-size:0; transition:.18s ease; }
.mine-cell:not(:disabled):hover { border-color:#8c7cff; transform:translateY(-3px); filter:brightness(1.15); }
.mine-cell.revealed { border-color:rgba(92,234,182,.55); color:#73efc0; background:radial-gradient(circle,rgba(78,232,176,.25),rgba(13,51,45,.88)); font-size:27px; animation:mineReveal .42s cubic-bezier(.2,1.6,.4,1) both; }
.mine-cell.mine { border-color:rgba(255,91,117,.6); color:#ff6b81; background:radial-gradient(circle,rgba(255,75,104,.28),rgba(58,12,25,.92)); font-size:26px; animation:mineBlast .5s ease both; }
.mines-message { min-height:22px; color:#8b91ab; font-size:10px; text-align:center; }
@keyframes mineReveal { from { transform:scale(.55) rotate(-12deg); opacity:.2; } }
@keyframes mineBlast { 35% { transform:scale(1.17); box-shadow:0 0 35px rgba(255,77,107,.5); } }

.blackjack-section {
  padding: 16px 0 58px;
}

.blackjack-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.blackjack-heading h1 {
  margin: 8px 0 10px;
  font: 400 clamp(34px, 5vw, 68px)/1 Georgia, serif;
}

.blackjack-heading > div > p:last-child {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.7;
}

.bj-live {
  padding: 10px 14px;
  border: 1px solid rgba(122, 105, 255, .35);
  border-radius: 99px;
  color: #b9c7ff;
  background: rgba(90, 71, 255, .08);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}

.bj-live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #6e8dff;
  box-shadow: 0 0 12px #6e8dff;
}

.blackjack-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 650px;
  overflow: hidden;
}

.bj-felt {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: space-between;
  gap: 15px;
  padding: 38px 44px 30px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(80, 57, 194, .34), transparent 57%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 85px, rgba(139,124,255,.08) 86px 87px),
    linear-gradient(145deg, #111038, #080a24 58%, #10133d);
  box-shadow: inset 0 0 120px rgba(0,0,0,.64);
  isolation: isolate;
  transition: box-shadow .35s ease, filter .35s ease;
}

.bj-felt::before {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(167, 154, 255, .23);
  border-radius: 48% 48% 18px 18px;
  content: "";
  pointer-events: none;
}

.bj-hand { position: relative; z-index: 2; display: grid; gap: 14px; justify-items: center; }
.bj-label { color: #a9acc4; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.bj-label b { margin-left: 8px; color: var(--gold-bright); font-size: 15px; }
.playing-cards { display: flex; min-height: 142px; align-items: center; justify-content: center; gap: 22px; }

.playing-card, .card-placeholder {
  display: grid;
  width: 92px;
  height: 132px;
  margin-left: -14px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 11px;
  color: #11142a;
  background: linear-gradient(145deg, #fff, #e7e9f6);
  box-shadow: 0 12px 28px rgba(0,0,0,.42);
  font: 700 23px/1 Georgia, serif;
  animation: dealCard .28s ease-out both;
}

.playing-card:first-child { margin-left: 0; }
.playing-card.red { color: #c6253d; }
.playing-card small { align-self: end; justify-self: end; font-size: 28px; }
.playing-card.hidden-card, .card-placeholder {
  place-items: center;
  color: #aeb9ff;
  background: repeating-linear-gradient(45deg, #22205b 0 7px, #363390 7px 14px);
  font-size: 11px;
  letter-spacing: .1em;
}

.dealing-card {
  animation: dealCardFast .28s cubic-bezier(.18, .78, .24, 1) both;
}

.bj-felt.bj-pending .bj-message {
  border-color: rgba(139, 124, 255, .48);
  box-shadow: 0 0 26px rgba(92, 80, 255, .16);
}

@keyframes dealCardFast {
  from {
    opacity: .2;
    transform: translate(34px, -22px) rotate(9deg) scale(.88);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
}

@keyframes dealCard { from { opacity: 0; transform: translateY(-22px) rotate(-5deg); } }

.bj-message {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(390px, calc(100% - 30px));
  min-height: 60px;
  place-content: center;
  justify-self: center;
  gap: 7px;
  padding: 12px 24px;
  border: 1px solid rgba(153, 141, 255, .18);
  border-radius: 14px;
  text-align: center;
  background: rgba(8, 9, 31, .72);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  backdrop-filter: blur(14px);
  transition: .28s ease;
}
.bj-message small { color: #8a8faf; font-size: 7px; letter-spacing: .18em; }
.bj-message strong { color: #e6e9ff; font: 400 20px Georgia, serif; }

.bj-celebration {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bj-celebration i {
  position: absolute;
  top: -12%;
  left: calc(7% + var(--piece, 0) * 7%);
  width: 8px;
  height: 18px;
  border-radius: 2px;
  background: var(--gold-bright);
  opacity: 0;
}

.bj-celebration i:nth-child(2n) { background: #5fa9ff; }
.bj-celebration i:nth-child(3n) { background: #9b7cff; }
.bj-celebration i:nth-child(4n) { background: #55e1b5; }
.bj-celebration i:nth-child(1) { --piece: 0; --drift: 35px; }
.bj-celebration i:nth-child(2) { --piece: 1; --drift: -42px; }
.bj-celebration i:nth-child(3) { --piece: 2; --drift: 56px; }
.bj-celebration i:nth-child(4) { --piece: 3; --drift: -18px; }
.bj-celebration i:nth-child(5) { --piece: 4; --drift: 46px; }
.bj-celebration i:nth-child(6) { --piece: 5; --drift: -52px; }
.bj-celebration i:nth-child(7) { --piece: 6; --drift: 24px; }
.bj-celebration i:nth-child(8) { --piece: 7; --drift: -34px; }
.bj-celebration i:nth-child(9) { --piece: 8; --drift: 62px; }
.bj-celebration i:nth-child(10) { --piece: 9; --drift: -48px; }
.bj-celebration i:nth-child(11) { --piece: 10; --drift: 28px; }
.bj-celebration i:nth-child(12) { --piece: 11; --drift: -22px; }

.bj-outcome-win {
  box-shadow: inset 0 0 120px rgba(0,0,0,.5), inset 0 0 90px rgba(45, 221, 158, .16), 0 0 45px rgba(91, 108, 255, .18);
}

.bj-outcome-win .bj-message {
  border-color: rgba(96, 237, 185, .48);
  color: #dffff2;
  background: rgba(5, 39, 31, .82);
  box-shadow: 0 0 42px rgba(54, 224, 161, .25);
}

.bj-outcome-win .bj-message small { color: #74e9c0; }
.bj-outcome-win .bj-message strong { color: #f2fff9; font-size: 28px; }
.bj-outcome-loss .bj-message { border-color: rgba(217, 54, 79, .32); background: rgba(58, 10, 20, .72); }
.bj-outcome-loss .bj-message small { color: #e57c8d; }
.bj-outcome-push .bj-message { border-color: rgba(122, 136, 160, .35); background: rgba(20, 25, 40, .78); }
.bj-outcome-play .player-hand .playing-cards { animation: handReady 1.8s ease-in-out infinite; }

.bj-result-pop .bj-message { animation: resultPop .65s cubic-bezier(.18,1.5,.35,1) both; }
.bj-result-pop.bj-outcome-win .bj-celebration i {
  animation: confettiFall 1.8s cubic-bezier(.15,.7,.35,1) both;
  animation-delay: calc(var(--piece) * 55ms);
}
.bj-result-pop.bj-outcome-loss { animation: tableLoss .45s ease both; }

@keyframes resultPop {
  0% { opacity: 0; transform: scale(.62); }
  70% { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes confettiFall {
  0% { opacity: 0; transform: translate3d(0,-30px,0) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift),680px,0) rotate(620deg); }
}

@keyframes tableLoss {
  25% { filter: brightness(.72) saturate(.8); transform: translateX(-3px); }
  55% { transform: translateX(3px); }
}

@keyframes handReady {
  50% { filter: drop-shadow(0 8px 14px rgba(120, 105, 255, .25)); transform: translateY(-3px); }
}
.bj-controls { display: flex; flex-direction: column; gap: 18px; padding: 30px; border-left: 1px solid var(--line); background: rgba(8,9,24,.92); }
.bj-bet-display { display: flex; align-items: center; gap: 16px; }
.bj-bet-display .chip { width: 56px; height: 56px; background: linear-gradient(135deg,#a990ff,#3955df); }
.bj-bet-display strong { font: 400 18px Georgia,serif; }
#blackjackBet { width: 100%; accent-color: #7b6cff; }
.bj-quick-bets { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.bj-quick-bets button { min-height: 38px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.035); cursor: pointer; font-size: 8px; font-weight: 900; }
.bj-quick-bets button:hover { border-color: var(--gold); background: rgba(118,97,255,.14); }
.bj-deal { min-height: 56px; background: linear-gradient(135deg,#4e36b8,#927bff 48%,#3174e6); color:#fff; border-color:#aeb8ff; }
.bj-rules { display:flex; gap:11px; margin-top:auto; color:#676d8b; font-size:8px; line-height:1.6; }
.bj-rules span { color:var(--gold); font-size:18px; }

.bj-table-actions {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  width: min(620px, 100%);
  margin: 6px auto 0;
}

.bj-table-actions button {
  display: grid;
  min-height: 62px;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(153, 141, 255, .28);
  border-radius: 13px;
  color: #e9e8ff;
  background: rgba(10, 10, 35, .78);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .11em;
  backdrop-filter: blur(12px);
  transition: .18s ease;
}

.bj-table-actions button span { color: #a99fff; font-size: 17px; font-weight: 500; }
.bj-table-actions button:not(:disabled):hover { border-color: #a69bff; background: rgba(105, 88, 255, .25); transform: translateY(-2px); }
.bj-table-actions button:disabled { opacity: .28; cursor: not-allowed; }
.bj-table-actions button:not(:disabled):first-child { background: linear-gradient(145deg, rgba(99,80,230,.8), rgba(55,48,153,.82)); }

.bj-split-hand {
  position: relative;
  display: grid;
  min-width: 175px;
  justify-items: center;
  gap: 5px;
  padding: 9px 15px 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  transition: .2s ease;
}
.bj-split-hand.active { border-color: rgba(105, 230, 185, .55); background: rgba(33, 111, 90, .13); box-shadow: 0 0 26px rgba(63, 213, 160, .12); }
.bj-split-hand > small { color: #9298b8; font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.bj-split-hand > span { display: flex; }
.bj-split-hand > b { color: #dfe3ff; font: 400 16px Georgia, serif; }

.aviator-section {
  padding: 16px 0 58px;
}

.aviator-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.aviator-heading h1 {
  max-width: 850px;
  margin: 8px 0 10px;
  font: 400 clamp(34px, 5vw, 68px)/1 Georgia, serif;
}

.aviator-heading > div > p:last-child {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.7;
}

.aviator-live {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(113, 94, 255, .4);
  border-radius: 99px;
  color: #c6c0ff;
  background: rgba(89, 66, 255, .09);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}

.aviator-live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #69eab9;
  box-shadow: 0 0 12px #69eab9;
  animation: livePulse 1.5s ease-in-out infinite;
}

.aviator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius);
}

.aviator-board {
  overflow: hidden;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #08091a;
}

.aviator-history {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(139,124,255,.14);
  background: rgba(5,6,17,.88);
}

.aviator-history > span:first-child {
  margin-right: 5px;
  color: #737995;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
  white-space: nowrap;
}

.aviator-history b {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 99px;
  color: #8f97b5;
  background: rgba(255,255,255,.035);
  font-size: 9px;
}

.aviator-history b.medium { color: #a99cff; border-color: rgba(138,119,255,.25); background: rgba(104,83,255,.09); }
.aviator-history b.high { color: #62e9b6; border-color: rgba(74,224,169,.27); background: rgba(37,153,112,.1); }

.aviator-sky {
  position: relative;
  min-height: 565px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 16%, rgba(135, 112, 255, .22), transparent 32%),
    radial-gradient(circle at 18% 78%, rgba(57, 116, 226, .15), transparent 34%),
    linear-gradient(160deg, #090b25, #060713 66%, #0b0c22);
  isolation: isolate;
}

.aviator-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(151,140,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151,140,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to top, #000, transparent 82%);
  transform: perspective(520px) rotateX(58deg) scale(1.55) translateY(28%);
  transform-origin: bottom;
}

.aviator-stars {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .6;
  background-image:
    radial-gradient(circle at 12% 23%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 31% 41%, #9a8dff 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 18%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 42%, #7368ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 54% 67%, #fff 0 1px, transparent 1.5px);
  background-size: 220px 190px;
}

.aviator-flight {
  --flight-x: 10%;
  --flight-y: 12%;
  position: absolute;
  z-index: 2;
  bottom: var(--flight-y);
  left: var(--flight-x);
  width: 80px;
  height: 60px;
  opacity: 0;
  transition: opacity .25s ease;
}

.aviator-sky.flying .aviator-flight { opacity: 1; }

.aviator-plane {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  color: #f8f7ff;
  font: 400 clamp(38px, 5vw, 68px)/1 "Segoe UI Symbol", sans-serif;
  filter: drop-shadow(0 10px 15px #000) drop-shadow(0 0 18px rgba(139,124,255,.48));
  transform: rotate(-21deg);
}

.aviator-trail {
  position: absolute;
  right: 47px;
  bottom: 10px;
  width: clamp(120px, 22vw, 290px);
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(100,85,255,.15), #a99cff);
  box-shadow: 0 0 15px #7864ff;
  transform: rotate(-19deg);
  transform-origin: right;
}

.aviator-readout {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(520px, calc(100% - 30px));
  justify-items: center;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -50%);
}

.aviator-readout small {
  color: #8d93b1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .22em;
}

.aviator-readout strong {
  margin: 10px 0 4px;
  color: #f5f2ff;
  font: 400 clamp(64px, 10vw, 122px)/.9 Georgia, serif;
  letter-spacing: -.05em;
  text-shadow: 0 12px 42px rgba(0,0,0,.78), 0 0 32px rgba(120,98,255,.24);
}

.aviator-readout p {
  color: #8c92ab;
  font-size: 10px;
}

.aviator-sky.crashed .aviator-readout strong { color: #ff617a; animation: aviatorCrash .5s ease both; }
.aviator-sky.cashed .aviator-readout strong { color: #69eab9; text-shadow: 0 0 38px rgba(83,231,174,.38); }
.aviator-sky.cashing .aviator-readout strong { color: #84efc7; text-shadow: 0 0 38px rgba(83,231,174,.3); }
.aviator-sky.cashing .aviator-flight { filter: brightness(1.18); }
.aviator-sky.crashed .aviator-flight { opacity: 0; transform: translate(120px,-90px) scale(.6); transition: .42s ease; }

@keyframes aviatorCrash {
  35% { transform: scale(1.12); filter: blur(0); }
  55% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.aviator-secure {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: #66708f;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.aviator-secure span { color: #66deb3; }

.aviator-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border-left: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(8,9,24,.94);
}

.aviator-bet-value {
  display: flex;
  align-items: center;
  gap: 16px;
}

.aviator-bet-value .chip {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg,#a990ff,#3955df);
}

.aviator-bet-value strong { font: 400 18px Georgia, serif; }
#aviatorBet { width: 100%; accent-color: #7965ff; }
.aviator-quick-bets { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.aviator-quick-bets button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
}
.aviator-quick-bets button:hover { border-color: var(--gold); background: rgba(118,97,255,.14); }

.aviator-potential {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #7c829c;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.aviator-potential strong { display: flex; align-items: center; gap: 8px; color: #fff; font: 400 18px Georgia,serif; letter-spacing: 0; }
.aviator-potential .chip-mini { width: 20px; height: 20px; }

.aviator-action {
  display: grid;
  min-height: 70px;
  place-content: center;
  gap: 5px;
  border: 1px solid #a99fff;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg,#4e36b8,#927bff 48%,#3174e6);
  box-shadow: 0 14px 35px rgba(73,56,202,.28), inset 0 1px rgba(255,255,255,.22);
  cursor: pointer;
  transition: .18s ease;
}

.aviator-action small { font-size: 7px; font-weight: 900; letter-spacing: .18em; opacity: .72; }
.aviator-action strong { font-size: 12px; letter-spacing: .1em; }
.aviator-action:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(83,63,221,.4); }
.aviator-action.cashout { border-color: #7df0c5; color: #071b15; background: linear-gradient(135deg,#4bd29e,#91f3cf); box-shadow: 0 14px 38px rgba(64,215,161,.25); }
.aviator-action:disabled { opacity: .48; cursor: wait; }

.aviator-rule {
  margin-top: auto;
  color: #646b87;
  font-size: 8px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .leaderboard-section { grid-template-columns:1fr; gap:22px; padding:24px 18px; }
  .lobby-heading { align-items: start; flex-direction: column; gap: 12px; }
  .lobby-heading > p { text-align: left; }
  .game-selector { grid-template-columns: 1fr; }
  .blackjack-table { grid-template-columns: 1fr; }
  .bj-controls { border-top: 1px solid var(--line); border-left: 0; }
  .bj-felt { min-height: 620px; gap: 12px; padding: 24px 14px 18px; }
  .bj-message { width: calc(100% - 12px); min-height: 58px; padding: 10px 14px; }
  .bj-message strong { font-size: 18px; }
  .bj-outcome-win .bj-message strong { font-size: 23px; }
  .blackjack-heading { align-items: start; flex-direction: column; }
  .playing-card, .card-placeholder { width: 74px; height: 108px; }
  .bj-table-actions { position: sticky; bottom: 8px; gap: 6px; width: 100%; }
  .bj-table-actions button { min-height: 57px; border-radius: 11px; font-size: 7px; }
  .bj-table-actions button span { font-size: 15px; }
  .bj-split-hand { min-width: 135px; padding-inline: 7px; }
  .bj-split-hand .playing-card { width: 60px; height: 88px; }
  .playing-cards:has(.bj-split-hand) { width: 100%; gap: 3px; }
  .aviator-heading { align-items: start; flex-direction: column; }
  .aviator-layout { grid-template-columns: 1fr; }
  .aviator-board { border-radius: var(--radius) var(--radius) 0 0; }
  .aviator-sky { min-height: 500px; }
  .aviator-controls { border-top: 1px solid var(--line); border-left: 0; border-radius: 0 0 var(--radius) var(--radius); }
  .instant-heading { align-items:start; flex-direction:column; }
  .instant-layout { grid-template-columns:1fr; }
  .instant-controls { border-top:1px solid var(--line); border-left:0; border-radius:0 0 var(--radius) var(--radius); }
  .plinko-stage, .mines-stage { min-height:560px; border-radius:var(--radius) var(--radius) 0 0; }
}

.mobile-nav {
  display: none;
}

button {
  touch-action: manipulation;
}

button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #a99cff;
  outline-offset: 3px;
}

button.is-processing {
  position: relative;
  overflow: hidden;
  filter: saturate(1.2) brightness(1.08);
}

button.is-processing::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.22) 48%, transparent 76%);
  content: "";
  pointer-events: none;
  transform: translateX(-110%);
  animation: instantSweep .75s linear infinite;
}

.bj-pending .playing-cards {
  filter: drop-shadow(0 10px 20px rgba(122, 105, 255, .2));
}

@keyframes instantSweep {
  to { transform: translateX(110%); }
}

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

.modal {
  width: min(610px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 34px));
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(139, 124, 255, .22);
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0, rgba(161, 36, 53, .17), transparent 45%),
    rgba(12, 14, 19, .97);
  box-shadow: 0 50px 140px #000, inset 0 1px rgba(255, 255, 255, .06);
}

.modal::backdrop {
  background: rgba(2, 3, 5, .78);
  backdrop-filter: blur(16px);
}

.modal[open] {
  animation: modalIn .3s cubic-bezier(.2, .8, .2, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
}

.modal-wide {
  width: min(880px, calc(100vw - 32px));
}

.modal-close {
  position: sticky;
  z-index: 4;
  top: 0;
  float: right;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #12151b;
  cursor: pointer;
  font-size: 19px;
}

.modal-hero > p:last-child {
  max-width: 530px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.modal h2 {
  font-size: clamp(29px, 4vw, 43px);
}

.shop-packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.pack-card {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
  text-align: center;
}

.pack-card.featured {
  border-color: rgba(139, 124, 255, .44);
  background: linear-gradient(145deg, rgba(139, 124, 255, .1), rgba(151, 32, 49, .08));
}

.pack-card .tag {
  position: absolute;
  top: 10px;
  padding: 4px 8px;
  border-radius: 20px;
  color: #151008;
  background: var(--gold);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}

.pack-coins {
  position: relative;
  width: 83px;
  height: 72px;
  margin-bottom: 6px;
}

.pack-coins i {
  position: absolute;
  top: 12px;
  left: 19px;
  width: 50px;
  height: 50px;
  border: 6px dashed #78541e;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe6a0, #ae7726);
  box-shadow: 0 8px 20px #000, inset 0 0 0 5px #dab75d;
}

.pack-coins i:nth-child(2) { transform: translate(-16px, 8px) rotate(-18deg); }
.pack-coins i:nth-child(3) { transform: translate(18px, 10px) rotate(15deg); }

.pack-card h3 {
  margin: 7px 0 2px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.pack-card p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 9px;
}

.pack-card button, .gold-button {
  width: 100%;
  padding: 12px;
  border: 1px solid #e9ce86;
  border-radius: 10px;
  color: #141006;
  background: linear-gradient(135deg, #8e6524, #edd28a);
  box-shadow: inset 0 1px rgba(255, 255, 255, .6);
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
}

.shop-security {
  margin-top: 18px;
  color: #676c76;
  font-size: 9px;
  text-align: center;
}

.shop-security span { color: var(--emerald); }

.shop-auth-notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(139, 124, 255, .24);
  border-radius: 14px;
  background: rgba(139, 124, 255, .055);
}

.shop-auth-notice[hidden] {
  display: none;
}

.shop-auth-notice > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--gold);
}

.shop-auth-notice div {
  display: grid;
  gap: 3px;
}

.shop-auth-notice strong {
  font-size: 10px;
}

.shop-auth-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.shop-auth-notice button {
  padding: 9px 12px;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 25px;
}

.stats-grid > div {
  display: grid;
  min-height: 90px;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
}

.stats-grid small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .14em;
}

.stats-grid strong {
  margin-top: 5px;
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.history-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .022);
}

.history-row .result-number {
  width: 32px;
  height: 32px;
}

.history-row div {
  display: grid;
  gap: 2px;
}

.history-row strong { font-size: 10px; }
.history-row small { color: var(--muted); font-size: 8px; }
.history-row > b { font-size: 12px; }
.history-row > b.win { color: #63dab2; }
.history-row > b.loss { color: #7b808a; }

.profile-hero {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 25px;
}

.avatar.large {
  width: 68px;
  height: 68px;
  font-size: 19px;
}

.profile-hero small {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.profile-hero h2 {
  margin-top: 3px;
  font-size: 28px;
}

.profile-hero p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.profile-balance {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  background: rgba(139, 124, 255, .06);
}

.profile-balance > div {
  display: grid;
  gap: 3px;
  margin-right: auto;
}

.profile-balance small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .12em;
}

.profile-balance strong {
  font-size: 22px;
}

.profile-balance button {
  padding: 9px 12px;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.profile-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.account-sync {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}

.account-sync > div {
  display: grid;
  gap: 3px;
}

.account-sync small {
  color: var(--gold);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .14em;
}

.account-sync strong {
  font-size: 11px;
}

.account-sync p {
  max-width: 315px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.account-action {
  padding: 10px 12px;
  border: 1px solid var(--line-gold);
  border-radius: 9px;
  color: #151008;
  background: linear-gradient(135deg, #4933ba, #a99cff);
  cursor: pointer;
  text-decoration: none;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.account-action.subtle {
  color: var(--muted);
  background: transparent;
}

.auth-modal {
  width: min(540px, calc(100vw - 32px));
  text-align: center;
}

.auth-seal {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 0 20px rgba(139, 124, 255, .2));
}

.auth-seal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-modal h2 {
  margin: 4px 0 8px;
}

.auth-intro {
  max-width: 420px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 24px 0 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, .26);
}

.auth-tabs button {
  padding: 11px 8px;
  border: 0;
  border-radius: 8px;
  color: #686d77;
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
}

.auth-tabs button.active {
  color: #171107;
  background: linear-gradient(135deg, #9d722e, #ecd28d);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .28);
}

.auth-form {
  display: grid;
  gap: 13px;
  text-align: left;
}

.auth-form[hidden] {
  display: none;
}

.auth-form > label:not(.auth-consent) {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  color: #8e939c;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .13em;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  font-size: 11px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-form input:not([type="checkbox"]):focus {
  border-color: rgba(139, 124, 255, .55);
  background: rgba(139, 124, 255, .045);
  box-shadow: 0 0 0 3px rgba(139, 124, 255, .07);
}

.auth-form input::placeholder {
  color: #4f545d;
}

.auth-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  padding: 3px 2px;
  cursor: pointer;
}

.auth-consent input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--gold);
}

.auth-consent span {
  color: var(--muted) !important;
  font-size: 8px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.5;
}

.auth-message {
  min-height: 14px;
  margin: -2px 0;
  color: #f07586;
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.auth-submit {
  min-height: 45px;
}

.auth-submit:disabled {
  cursor: wait;
  filter: grayscale(.3);
  opacity: .65;
}

.auth-switch-copy {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.auth-switch-copy button {
  padding: 0;
  border: 0;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.auth-security {
  margin-top: 19px;
  color: #5e636d;
  font-size: 8px;
  line-height: 1.5;
}

.auth-security span {
  color: var(--emerald);
}

@media (max-width: 520px) {
  .account-sync {
    grid-template-columns: 1fr;
  }
  .account-action {
    text-align: center;
  }
  .shop-auth-notice {
    grid-template-columns: auto 1fr;
  }
  .shop-auth-notice button {
    grid-column: 1 / -1;
  }
}

.daily-modal {
  overflow: hidden;
  text-align: center;
}

.age-modal {
  width: min(520px, calc(100vw - 32px));
  text-align: center;
}

.age-modal::backdrop {
  background:
    radial-gradient(circle at 50% 42%, rgba(125, 26, 41, .26), transparent 42%),
    rgba(2, 3, 5, .96);
  backdrop-filter: blur(22px);
}

.age-seal {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 3px auto 20px;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(231,199,125,.2), rgba(231,199,125,.03) 62%);
  box-shadow: 0 0 45px rgba(231,199,125,.13), inset 0 0 0 7px rgba(0,0,0,.24);
  font-family: Georgia, serif;
  font-size: 29px;
}

.age-modal > p:not(.eyebrow) {
  margin: 15px auto 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.age-modal .gold-button {
  max-width: 330px;
  margin: 0 auto;
}

.age-leave {
  display: block;
  margin: 15px auto;
  border: 0;
  color: #6c717a;
  background: none;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.age-modal > small {
  display: block;
  margin-top: 20px;
  color: #565b64;
  font-size: 8px;
}

.daily-sunburst {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 440px;
  height: 440px;
  background: repeating-conic-gradient(from 0deg, rgba(139, 124, 255, .08) 0deg 4deg, transparent 4deg 14deg);
  mask-image: radial-gradient(circle, #000, transparent 65%);
  animation: slowSpin 30s linear infinite;
  transform: translateX(-50%);
}

@keyframes slowSpin { to { transform: translateX(-50%) rotate(360deg); } }

.daily-gift {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  margin: 15px auto 20px;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, #9a6e28, #241a0d 63%);
  box-shadow: 0 0 46px rgba(139, 124, 255, .25), inset 0 0 20px rgba(255, 255, 255, .18);
  font-size: 29px;
}

.centered { text-align: center; }

.daily-modal > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 11px;
}

.daily-prize {
  display: grid;
  justify-items: center;
  margin: 22px 0;
}

.daily-prize .chip {
  width: 60px;
  height: 60px;
}

.daily-prize > strong {
  margin-top: 10px;
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 400;
}

.daily-prize > small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .17em;
}

.result-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  visibility: hidden;
  background: rgba(4, 5, 8, .57);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity .35s, visibility .35s;
  backdrop-filter: blur(7px);
}

.result-overlay.show {
  visibility: visible;
  opacity: 1;
}

.result-aura {
  position: absolute;
  width: min(680px, 90vw);
  aspect-ratio: 1;
  background: repeating-conic-gradient(from var(--glow-angle), transparent 0 12deg, rgba(139, 124, 255, .11) 13deg 16deg, transparent 17deg 25deg);
  mask-image: radial-gradient(circle, #000 0, transparent 65%);
  animation: auraSpin 7s linear infinite;
}

@keyframes auraSpin { to { --glow-angle: 360deg; } }

.winning-token {
  position: relative;
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 4px solid var(--gold);
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle at 35% 30%, #df495e, #751524 65%);
  box-shadow: 0 0 0 8px rgba(139, 124, 255, .12), 0 0 65px rgba(92, 80, 255, .5), inset 0 0 30px #310810;
  font-family: Georgia, serif;
  font-size: 49px;
  animation: tokenLand .55s cubic-bezier(.2, 1.5, .4, 1);
}

.winning-token.black { background: radial-gradient(circle at 35% 30%, #3a3e48, #090a0d 67%); }
.winning-token.green { background: radial-gradient(circle at 35% 30%, #23b886, #07523c 67%); }

@keyframes tokenLand {
  from { opacity: 0; transform: scale(.2) rotate(-160deg); }
}

.result-overlay p {
  position: relative;
  margin: 22px 0 7px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .24em;
}

.result-overlay h2 {
  position: relative;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 400;
}

.result-overlay > strong {
  position: relative;
  margin-top: 10px;
  color: #72e0ba;
  font-size: 18px;
  letter-spacing: .08em;
}

.toast-region {
  position: fixed;
  z-index: 110;
  inset: auto 22px 22px auto;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  color: var(--text);
  background: transparent;
  pointer-events: none;
}

.toast-region::backdrop { background: transparent; backdrop-filter: none; }

.toast {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid var(--line-gold);
  border-radius: 13px;
  background: #111522;
  box-shadow: 0 18px 55px #000, 0 0 0 1px rgba(143,124,255,.14);
  animation: toastIn .3s ease;
}

.toast > div { min-width: 0; }

.toast i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(139, 124, 255, .09);
  font-style: normal;
}

.toast strong { color:#fff; font-size: 12px; }
.toast p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #c1c5d2;
  font-size: 11px;
  line-height: 1.5;
}

/* A stable branded loading surface prevents account and leaderboard placeholders
   from flashing before the server has restored the current session. */
.app-loader {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 9px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 42%, rgba(104, 83, 255, .19), transparent 28%),
    #070810;
  transition: opacity .22s ease, visibility .22s ease;
}

.app-loader[hidden] {
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-loader img {
  width: 66px;
  height: 66px;
  margin-bottom: 5px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(139, 124, 255, .35));
  animation: loaderPulse 1.2s ease-in-out infinite alternate;
}

.app-loader strong { font-size: 17px; letter-spacing: .25em; }
.app-loader span { color: #a9acc4; font-size: 12px; }

@keyframes loaderPulse {
  to { transform: translateY(-4px) scale(1.035); filter: drop-shadow(0 0 34px rgba(139, 124, 255, .52)); }
}

.profile-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.profile-shortcuts button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 9px;
  min-height: 62px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  text-align: left;
}

.profile-shortcuts button:hover { border-color: var(--line-gold); background: rgba(139,124,255,.07); }
.profile-shortcuts button > span { grid-row: 1 / 3; color: var(--gold); font-size: 20px; }
.profile-shortcuts strong { font-size: 11px; letter-spacing: .08em; }
.profile-shortcuts small { color: var(--muted); font-size: 10px; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(25px); }
}

@media (min-width: 1101px) {
  .brand-copy small,
  .balance-pill small,
  .profile-pill small,
  .eyebrow.compact,
  .recent-orbit,
  .fair-badge,
  .table-meta small,
  .spin-copy small,
  .rack-label,
  .lounge-card small,
  .lounge-card > b,
  .trend,
  .reward-card button,
  .game-choice-copy small,
  .game-choice > b,
  .bj-label,
  .bj-message small,
  .bj-quick-bets button,
  .bj-rules,
  .bj-table-actions button,
  .bj-split-hand > small,
  .pack-card .tag,
  .stats-grid small,
  .profile-hero small,
  .profile-balance small,
  .profile-balance button,
  .account-sync small,
  .auth-tabs button,
  .auth-form label > span,
  .auth-security,
  .age-leave,
  .daily-prize > small,
  .footer-links button,
  .profile-links button,
  .admin-summary small,
  .admin-table th,
  .admin-table td small,
  .leaderboard-podium small {
    font-size: 11px;
  }

  footer,
  footer p,
  .footer-brand,
  .recent-orbit .result-number,
  .chip b,
  .rack-action small {
    font-size: 11px;
  }

  .eyebrow,
  .live-badge,
  .table-id,
  .spin-status strong,
  .table-meta strong,
  .text-button,
  .empty-slip p,
  .slip-total > span,
  .spin-hint,
  .selected-chip-label,
  .game-choice-copy em,
  .pack-card p,
  .shop-auth-notice strong,
  .history-row strong,
  .history-row small,
  .profile-note,
  .account-sync p,
  .auth-consent span,
  .auth-message,
  .auth-switch-copy,
  .result-overlay p,
  .toast strong,
  .toast p {
    font-size: 12px !important;
  }

  .roulette-grid button { font-size: 12px; }
  .chip span, .bet-item .mini-chip { font-size: 11px; }
  .leaderboard-copy > p:last-child,
  .admin-intro,
  .legal-content p { font-size: 13px; }
  .admin-table { font-size: 12px; }
  .bj-table-actions button { min-height: 70px; }
  .bj-quick-bets button { min-height: 43px; }
}

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .game-layout { grid-template-columns: 1fr; }
  .bet-slip { min-height: auto; }
  .empty-slip { min-height: 180px; }
  .bet-items { max-height: 220px; }
  .roulette-grid { overflow-x: auto; }
  .lounge-strip { grid-template-columns: 1fr 1fr; }
  .lounge-strip article:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1101px) and (max-width: 1380px) {
  .topbar { padding-inline: 24px; }
  .discord-link {
    width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
  }
  .discord-link span,
  .profile-copy,
  .profile-pill .chevron { display: none; }
  .profile-pill {
    width: 46px;
    min-width: 46px;
    padding: 5px;
  }
}

@media (max-width: 720px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar {
    position: relative;
    height: 67px;
    padding: 0 15px;
  }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-zone { gap: 8px; }
  .discord-link {
    width: 36px;
    min-height: 36px;
    justify-content: center;
    padding: 0;
    border-radius: 11px;
  }
  .discord-link span { display: none; }
  .discord-link svg { width: 19px; height: 19px; }
  .profile-pill, .reward-button { display: none; }
  .balance-pill { min-height: 41px; padding: 4px 9px; }
  .balance-pill > span:nth-child(2) { min-width: 62px; }
  .balance-pill small { font-size: 10px; }
  .balance-pill strong { font-size: 12px; }
  .app-shell { width: 100%; padding: 25px 12px 48px; }
  .game-lobby { padding: 4px 0 28px; scroll-margin-top: 14px; }
  .lobby-heading { margin-bottom: 16px; }
  .lobby-heading h1 { font-size: 34px; }
  .lobby-heading > p { font-size: 10px; }
  .game-selector { gap: 10px; }
  .game-choice {
    grid-template-columns: 78px 1fr auto;
    min-height: 112px;
    gap: 14px;
    padding: 14px;
    border-radius: 17px;
  }
  .game-choice-art { width: 70px; height: 70px; border-width: 5px; }
  .game-choice-art i { font-size: 10px; }
  .cards-art i { width: 45px; height: 64px; padding: 7px; font-size: 12px; }
  .game-choice-copy strong { font-size: 22px; }
  .game-choice-copy em { display: none; }
  .game-choice > b { font-size: 0; }
  .game-choice > b span { font-size: 20px; }
  .table-heading { align-items: flex-start; }
  .table-heading h1 { font-size: 32px; max-width: 270px; }
  .live-cluster { display: none; }
  .wheel-card { min-height: 470px; border-radius: 20px; }
  .recent-orbit { top: 17px; left: 16px; flex-direction: column; align-items: flex-start; gap: 7px; }
  .wheel-stage { min-height: 420px; }
  #roulette { inset: 47px -14px 15px; width: calc(100% + 28px); height: calc(100% - 62px); }
  .pointer { top: 58px; }
  .wheel-reflection { display: none; }
  .fair-badge { right: 14px; bottom: 51px; }
  .spin-status { bottom: 49px; min-width: 185px; padding: 8px 12px; }
  .table-meta { gap: 20px; padding: 13px 15px; overflow: hidden; }
  .table-meta > div:nth-child(2) { display: none; }
  .table-meta strong { white-space: nowrap; }
  .bet-slip { padding: 19px; }
  .betting-section { padding-top: 42px; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 28px; }
  .selected-chip-label { font-size: 0; }
  .betting-surface { padding: 9px; border-radius: 18px; overflow: hidden; }
  .roulette-grid {
    grid-template-columns: 38px 640px 38px;
    padding: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .roulette-grid button { min-height: 42px; }
  .number-cell.zero { position: sticky; z-index: 6; left: 0; }
  .column-bets { position: sticky; right: 0; z-index: 6; }
  .outside-bets { min-width: 640px; }
  .chip-rack {
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding: 19px 8px 7px;
  }
  .rack-label { display: none; }
  .chip { width: 46px; height: 46px; }
  .rack-divider { flex: 0 0 auto; }
  .lounge-strip { grid-template-columns: 1fr; }
  .leaderboard-podium { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  .leaderboard-podium article, .leaderboard-podium .podium-1 { min-height:120px; padding:10px 4px; }
  .leaderboard-podium strong { max-width:85px; font-size:13px; }
  .leaderboard-podium small { font-size:10px; }
  .lounge-strip article:last-child { grid-column: auto; }
  footer { display: none; }
  .mobile-nav {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(8, 9, 13, .92);
    box-shadow: 0 -12px 45px #000;
    backdrop-filter: blur(20px);
  }
  .mobile-nav button {
    display: grid;
    gap: 3px;
    place-items: center;
    min-width: 0;
    min-height: 47px;
    padding: 0;
    border: 0;
    color: #696e77;
    background: none;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
  }
  .mobile-nav button span {
    font-size: 17px;
  }
  .mobile-nav button.active { color: var(--gold); }
  .mobile-nav .mobile-shop span {
    display: grid;
    width: 34px;
    height: 34px;
    margin: -25px auto 0;
    place-items: center;
    border: 3px solid #101116;
    border-radius: 50%;
    color: #171006;
    background: var(--gold);
    box-shadow: 0 0 20px rgba(139, 124, 255, .27);
    transform: translateX(0);
  }
  .modal { padding: 27px 20px; }
  .shop-packs { grid-template-columns: 1fr; }
  .pack-card { min-height: 205px; }
  .toast-region {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 12px;
    align-content: end;
    width: auto;
    max-width: none;
    height: auto;
    max-height: min(34vh, 220px);
    gap: 6px;
    overflow: visible;
  }
  .toast {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    justify-self: end;
    width: fit-content;
    min-width: 0;
    max-width: calc(100vw - 24px);
    gap: 7px;
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .82), 0 0 0 1px rgba(143,124,255,.1);
  }
  .toast i {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .toast strong {
    display: block;
    font-size: 10px;
    line-height: 1.2;
  }
  .toast p {
    display: -webkit-box;
    margin-top: 2px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .profile-shortcuts { grid-template-columns: 1fr; }
  .profile-shortcuts button { min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
