@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(226, 191, 116, .28);
  --gold: #e7c77d;
  --gold-bright: #fff0b6;
  --gold-deep: #8f672b;
  --ruby: #d02f47;
  --ruby-deep: #691523;
  --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(185, 53, 67, .11), transparent 34rem),
    radial-gradient(circle at 14% 28%, rgba(202, 167, 91, .06), transparent 26rem),
    linear-gradient(180deg, #08090d 0%, #06070a 75%, #090a0e 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 {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(231, 199, 125, .38);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle, #262113, #0b0c10 67%);
  box-shadow: inset 0 0 0 4px #0c0d11, inset 0 0 0 5px rgba(231, 199, 125, .22), 0 0 26px rgba(231, 199, 125, .12);
}

.brand-mark::before, .brand-mark::after, .brand-mark i::before, .brand-mark i::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.brand-mark::before { top: 4px; left: 18px; }
.brand-mark::after { bottom: 4px; left: 18px; }
.brand-mark i::before { left: 4px; top: 18px; }
.brand-mark i::after { right: 4px; top: 18px; }
.brand-mark b { font-family: Georgia, serif; font-size: 17px; }

.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(231, 199, 125, .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;
}

.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;
}

.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(231, 199, 125, .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(231, 199, 125, .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(208, 47, 71, .18), rgba(231, 199, 125, .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);
  filter: drop-shadow(0 40px 28px rgba(0, 0, 0, .62));
}

.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(231, 199, 125, .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(208, 47, 71, .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(231, 199, 125, .18);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle, rgba(231, 199, 125, .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: #0a0a0a;
  background: 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 #f4d98e;
  border-radius: 15px;
  color: #151008;
  background:
    linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, .35) 30%, transparent 43%),
    linear-gradient(135deg, #8b6427, #f2d791 46%, #b07f32);
  background-size: 220% 100%, auto;
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 9px 30px rgba(209, 164, 69, .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: #111;
  background: 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(231, 199, 125, .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(231, 199, 125, .1);
  box-shadow: 0 0 20px rgba(231, 199, 125, .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: #111;
  background: 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(231, 199, 125, .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); }

.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(231, 199, 125, .2);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(231, 199, 125, .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(231, 199, 125, .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;
}

.mobile-nav {
  display: none;
}

.modal {
  width: min(610px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 34px));
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(231, 199, 125, .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(231, 199, 125, .44);
  background: linear-gradient(145deg, rgba(231, 199, 125, .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(231, 199, 125, .24);
  border-radius: 14px;
  background: rgba(231, 199, 125, .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(231, 199, 125, .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, #9a702c, #ead08a);
  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 {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid rgba(231, 199, 125, .42);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, #352b16, #0b0c10 68%);
  box-shadow: inset 0 0 0 5px #0d0e12, inset 0 0 0 6px rgba(231, 199, 125, .2), 0 0 32px rgba(231, 199, 125, .12);
  font-family: Georgia, serif;
  font-size: 23px;
}

.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(231, 199, 125, .55);
  background: rgba(231, 199, 125, .045);
  box-shadow: 0 0 0 3px rgba(231, 199, 125, .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(231, 199, 125, .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(231, 199, 125, .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(231, 199, 125, .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(231, 199, 125, .12), 0 0 65px rgba(208, 47, 71, .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;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-gold);
  border-radius: 13px;
  background: rgba(14, 16, 21, .96);
  box-shadow: 0 18px 55px #000;
  animation: toastIn .3s ease;
}

.toast i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(231, 199, 125, .09);
  font-style: normal;
}

.toast strong { font-size: 10px; }
.toast p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

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

@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 (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: 6px; }
  .brand-mark { width: 36px; height: 36px; }
  .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: 6px; }
  .balance-pill strong { font-size: 12px; }
  .app-shell { width: 100%; padding: 25px 12px 48px; }
  .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; }
  .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(5, 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;
    border: 0;
    color: #696e77;
    background: none;
    font-size: 7px;
    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-top: -25px;
    place-items: center;
    border: 3px solid #101116;
    border-radius: 50%;
    color: #171006;
    background: var(--gold);
    box-shadow: 0 0 20px rgba(231, 199, 125, .27);
  }
  .modal { padding: 27px 20px; }
  .shop-packs { grid-template-columns: 1fr; }
  .pack-card { min-height: 205px; }
  .toast-region { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); }
}

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