:root {
  --bg: #080b12;
  --bg-2: #0d1322;
  --text: #e8eaef;
  --muted: #9da7bf;
  --panel: rgba(20, 26, 40, 0.8);
  --panel-border: rgba(255, 255, 255, 0.14);
  --accent: #8e6bff;
  --danger: #ff6b8e;
  --ok: #00d26a;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 82% -12%, rgba(142, 107, 255, 0.22), transparent 62%),
    radial-gradient(1000px 620px at 15% 120%, rgba(255, 79, 163, 0.18), transparent 58%),
    radial-gradient(ellipse at top, #1b2440 0%, var(--bg) 52%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.hidden { display: none !important; }
.dev-ribbon {
  position: fixed;
  top: 10px;
  right: -48px;
  z-index: 1100;
  transform: rotate(32deg);
  padding: 6px 52px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1028;
  background: linear-gradient(90deg, #ffd76f, #ff8fcc);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.site-shell {
  width: min(1680px, 98vw);
  margin: 0 auto;
  padding: 16px 20px 28px;
  min-height: 100vh;
}
.screen { animation: fadeIn 180ms ease-out; }
.player-screen { text-align: center; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: translateY(0);} }

.auth-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 34px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}

.auth-card {
  width: min(500px, 100%);
  margin: 22px auto 0;
  padding: 20px;
}

h1, h2, h3 { margin: 0 0 10px; }
h1 {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #ffd76f 0%, #ff8fcc 46%, #9f87ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle { margin: 0 0 12px; color: var(--muted); }
.auth-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #dce2f8;
  background: rgba(142, 107, 255, 0.18);
  border: 1px solid rgba(198, 176, 255, 0.35);
  text-align: left;
}
.auth-hint-dev {
  display: block;
  margin-top: 6px;
  color: #ffd76f;
  font-weight: 700;
}
.role-buttons { display: grid; gap: 8px; margin-bottom: 12px; }
.role-btn {
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text);
  background: linear-gradient(135deg, rgba(142, 107, 255, 0.25), rgba(255, 79, 163, 0.18));
  border-radius: 12px;
  cursor: pointer;
  padding: 11px;
}
.role-player { font-size: 1.28rem; font-weight: 800; }
.role-admin { font-size: .84rem; font-weight: 700; opacity: .86; }
.role-btn.active { border-color: rgba(198, 176, 255, .95); box-shadow: 0 0 0 3px rgba(142,107,255,.25); }

.auth-form, .field { display: grid; gap: 6px; }
.auth-form { gap: 10px; }
.field span { font-size: .82rem; color: var(--muted); }
input {
  width: 100%;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.26));
  padding: .67rem .8rem;
  outline: none;
}
input:focus {
  border-color: rgba(181,157,255,.95);
  box-shadow: 0 0 0 3px rgba(142,107,255,.25);
}

.main-btn, .mini-btn, .link-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
}
.main-btn {
  padding: .74rem 1.22rem;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #a685ff 0%, #7a5af8 38%, #ff5eaf 100%);
}
.main-btn:hover { filter: saturate(1.08); transform: translateY(-1px); }
.main-btn.danger { background: linear-gradient(135deg, #ff8ca8, #ff4e77); }
.main-btn.spin { min-width: 210px; font-size: 1.03rem; }
.mini-btn {
  padding: .62rem .86rem;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.26);
  background: linear-gradient(135deg, rgba(142,107,255,.4), rgba(255,79,163,.22));
}
.link-btn {
  border-radius: 10px;
  padding: 8px 10px;
  color: #c8cff0;
  background: transparent;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.player-topbar { align-items: center; margin-bottom: 8px; }
.player-topbar strong { font-size: 1.35rem; }
.topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  max-width: min(100%, 520px);
}
.top-spin-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: flex-end;
}
.top-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.top-user { display: grid; gap: 2px; }
.top-user span { color: var(--muted); font-size: .82rem; }
.top-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 220, 140, 0.42);
  background: linear-gradient(135deg, rgba(142, 107, 255, 0.55), rgba(255, 79, 163, 0.32));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(142, 107, 255, 0.22);
  color: #f4f6ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-pill-btn:hover:not(:disabled) {
  border-color: rgba(255, 230, 160, 0.65);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2) inset,
    0 6px 18px rgba(0, 0, 0, 0.4),
    0 0 26px rgba(255, 79, 163, 0.28);
  transform: translateY(-1px);
}
.profile-pill-btn:active:not(:disabled) {
  transform: translateY(0);
}
.profile-pill-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}
.profile-pill-btn:focus-visible {
  outline: 2px solid rgba(255, 216, 74, 0.9);
  outline-offset: 3px;
}
.profile-pill-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  font-size: 0.95em;
  line-height: 1;
  background: rgba(0, 0, 0, 0.22);
  color: #ffe8a8;
}
.profile-pill-text {
  line-height: 1;
}

.wheel-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(280px, 520px) minmax(200px, 280px);
  gap: 16px 24px;
  align-items: center;
  justify-content: center;
  justify-items: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto 12px;
}
.wheel-flank {
  text-align: left;
  padding: 16px 18px;
  width: 100%;
  max-width: 280px;
  align-self: center;
  margin-top: 52px;
  margin-bottom: 0;
}
.wheel-flank .field span,
.panel-head-title {
  font-size: 0.95rem;
}
.wheel-flank input {
  font-size: 1.15rem;
  padding: 0.85rem 1rem;
}
.stat-box {
  display: flex;
  align-items: center;
  min-height: 3.1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0, 0, 0, .28);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  user-select: text;
  pointer-events: none;
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.field--readonly { cursor: default; }
.wheel-flank .qb {
  font-size: 0.95rem;
  padding: 0.72rem 0.5rem;
  min-height: 44px;
}
.panel--chance {
  position: relative;
}
.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.panel-head-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
}
.gear-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, rgba(142, 107, 255, 0.35), rgba(20, 24, 40, 0.95));
  color: #f0e8ff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.gear-btn:hover {
  border-color: rgba(255, 216, 74, 0.55);
  color: #ffe9a8;
}
.gear-btn--ghost {
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  background: transparent;
  box-shadow: none;
}
body.settings-open {
  overflow: hidden;
}
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
}
.settings-overlay.hidden {
  display: none;
}
.settings-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(4, 6, 16, 0.82);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.settings-popover-card {
  position: relative;
  z-index: 1;
  width: min(920px, 92vw);
  max-height: min(88vh, 860px);
  overflow: auto;
  padding: clamp(16px, 2.5vw, 28px);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(28, 32, 52, 0.99), rgba(10, 12, 22, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}
.settings-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.settings-popover-head h4 {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}
.settings-qb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 16px;
  margin-bottom: 16px;
}
.settings-qb-grid--single {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.settings-qb-grid .field input {
  font-size: 1rem;
  padding: 10px 12px;
}
.settings-bonus-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 16px;
  margin-bottom: 16px;
}
.settings-save-btn {
  width: 100%;
  margin-top: 4px;
  padding: 14px;
  font-size: 1rem;
}
.wheel-flank .quick-bets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel--bet .quick-bets,
.panel--chance .quick-bets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wheel-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  grid-column: 2;
}
.wheel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.wheel-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  margin: 0 auto;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.56));
  transition: filter 0.35s ease;
}
.wheel-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.wheel-flank--left {
  grid-column: 1;
  grid-row: 1;
}
.wheel-flank--right {
  grid-column: 3;
  grid-row: 1;
}
.wheel-wrap.bonus-revealing--x2 {
  animation: wheelBonusRevealGlowX2 1.1s ease-out;
}
.wheel-wrap.bonus-revealing--x3 {
  animation: wheelBonusRevealGlowX3 1.5s ease-out;
}
.wheel-wrap.bonus-revealing--x4 {
  animation: wheelBonusRevealGlowX4 2.6s ease-out;
}
.wheel-wrap.bonus-revealing--x5 {
  animation: wheelBonusRevealGlowX5 4.2s ease-out;
}
.wheel-wrap.wheel-shake-x5 {
  animation: wheelBonusRevealGlowX5 4.2s ease-out, wheelShakeX5 0.42s ease-in-out infinite;
}
.wheel-wrap.wheel-shake-x4 {
  animation: wheelBonusRevealGlowX4 2.6s ease-out, wheelShakeX4 0.55s ease-in-out infinite;
}
.wheel-wrap.wheel-spin-x5 {
  animation: wheelShakeX5 0.38s ease-in-out infinite;
}
.wheel-wrap.wheel-spin-x4 {
  animation: wheelShakeX4 0.58s ease-in-out infinite;
}
.wheel-wrap.wheel-spin-kick--x5 {
  animation: wheelShakeX5 0.38s ease-in-out infinite, wheelSpinKickX5 0.52s cubic-bezier(0.12, 0.92, 0.22, 1) forwards;
}
.wheel-wrap.wheel-spin-kick--x4 {
  animation: wheelShakeX4 0.58s ease-in-out infinite, wheelSpinKickX4 0.42s cubic-bezier(0.15, 0.88, 0.25, 1) forwards;
}
.site-fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1050;
}
body.x5-spin-storm .site-fx-canvas {
  z-index: 1065;
}
body.x5-spin-storm::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1060;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, rgba(60, 20, 100, 0.12), transparent 65%);
  animation: x5StormVignette 0.6s ease-in-out infinite alternate;
}
@keyframes x5StormVignette {
  0% { opacity: 0.55; }
  100% { opacity: 0.9; }
}
.celebrate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  pointer-events: none;
  overflow: hidden;
}
.celebrate-overlay.hidden {
  display: none;
}
.celebrate-piece {
  position: absolute;
  top: -12vh;
  left: var(--cp-left, 50%);
  width: 10px;
  height: 16px;
  border-radius: 2px;
  background: hsl(var(--cp-hue, 270), 85%, 68%);
  opacity: 0.85;
  animation: celebratePieceFall var(--cp-dur, 3.5s) var(--cp-delay, 0s) linear infinite;
}
@keyframes celebratePieceFall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.9; }
  100% { transform: translate3d(-30px, 115vh, 0) rotate(720deg); opacity: 0.2; }
}
body.celebrate-x5 .site-shell {
  animation: siteCelebrateShell 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  box-shadow:
    inset 0 0 100px rgba(45, 21, 120, 0.35),
    0 0 60px rgba(90, 55, 180, 0.25);
}
body.celebrate-x5::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1035;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(90, 55, 180, 0.22), transparent 70%),
    radial-gradient(circle at 0% 0%, rgba(157, 122, 255, 0.15), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(90, 55, 180, 0.15), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(45, 21, 120, 0.2), transparent 45%);
  animation: siteCelebrateVignette 3.2s ease-in-out infinite;
}
body.celebrate-x5::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1036;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 3px rgba(157, 122, 255, 0.35),
    inset 0 0 80px rgba(90, 55, 180, 0.2);
  animation: siteCelebrateBorder 1.6s ease-in-out infinite;
}
body.celebrate-x5 .panel,
body.celebrate-x5 .main-btn,
body.celebrate-x5 .topbar {
  animation: siteCelebrateBounce 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
body.celebrate-x5 .wheel-wrap:not(.bonus-revealing--x5) {
  animation: siteCelebrateBounce 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
body.celebrate-x5-win .wheel-wrap {
  animation: wheelX5WinPulse 1.1s ease-in-out infinite;
}
body.bonus-screen-flash::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: radial-gradient(circle at 50% 72%, rgba(100, 40, 150, 0.42), rgba(26, 10, 48, 0.2) 45%, transparent 70%);
  animation: bonusScreenFlash 0.32s ease-out;
}
@keyframes bonusScreenFlash {
  0% { opacity: 0; }
  35% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes wheelX5WinPulse {
  0%, 100% { filter: drop-shadow(0 18px 34px rgba(0,0,0,.56)) drop-shadow(0 0 28px rgba(90, 55, 180, 0.5)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 56px rgba(142, 107, 255, 0.9)) drop-shadow(0 0 90px rgba(45, 21, 120, 0.55)); transform: scale(1.04); }
}
@keyframes siteCelebrateShell {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.08) saturate(1.12); }
}
@keyframes siteCelebrateVignette {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
@keyframes siteCelebrateBorder {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes siteCelebrateBounce {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -3px, 0); }
}
@keyframes wheelShakeX5 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-4px, 3px) rotate(-0.75deg); }
  40% { transform: translate(4px, -3px) rotate(0.75deg); }
  60% { transform: translate(-3px, -4px) rotate(-0.5deg); }
  80% { transform: translate(3px, 4px) rotate(0.5deg); }
}
@keyframes wheelShakeX4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-2px, 1px) rotate(-0.35deg); }
  50% { transform: translate(2px, -1px) rotate(0.35deg); }
  75% { transform: translate(-1px, -2px) rotate(-0.25deg); }
}
@keyframes wheelSpinKickX5 {
  0% {
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.56));
    transform: scale(1) rotate(0deg);
  }
  18% {
    filter: drop-shadow(0 0 56px rgba(122, 45, 184, 0.95)) drop-shadow(0 0 88px rgba(61, 21, 105, 0.55));
    transform: scale(1.08) rotate(0deg);
  }
  100% {
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.56));
    transform: scale(1) rotate(0deg);
  }
}
@keyframes wheelSpinKickX4 {
  0% {
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.56));
    transform: scale(1);
  }
  20% {
    filter: drop-shadow(0 0 36px rgba(155, 122, 255, 0.7)) drop-shadow(0 0 52px rgba(107, 79, 212, 0.35));
    transform: scale(1.05);
  }
  100% {
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.56));
    transform: scale(1);
  }
}
@keyframes wheelBonusRevealGlowX2 {
  0% { filter: drop-shadow(0 18px 34px rgba(0,0,0,.56)); }
  35% { filter: drop-shadow(0 0 36px rgba(255, 79, 163, 0.65)) drop-shadow(0 18px 34px rgba(0,0,0,.4)); }
  100% { filter: drop-shadow(0 18px 34px rgba(0,0,0,.56)); }
}
@keyframes wheelBonusRevealGlowX3 {
  0% { filter: drop-shadow(0 18px 34px rgba(0,0,0,.56)); }
  35% { filter: drop-shadow(0 0 38px rgba(255, 143, 31, 0.7)) drop-shadow(0 18px 34px rgba(0,0,0,.4)); }
  70% { filter: drop-shadow(0 0 24px rgba(255, 209, 102, 0.45)) drop-shadow(0 18px 34px rgba(0,0,0,.5)); }
  100% { filter: drop-shadow(0 18px 34px rgba(0,0,0,.56)); }
}
@keyframes wheelBonusRevealGlowX4 {
  0% { filter: drop-shadow(0 18px 34px rgba(0,0,0,.56)); transform: scale(1); }
  20% { filter: drop-shadow(0 0 52px rgba(142, 107, 255, 0.95)) drop-shadow(0 0 80px rgba(255, 79, 163, 0.45)); transform: scale(1.03); }
  45% { filter: drop-shadow(0 0 64px rgba(200, 160, 255, 0.9)) drop-shadow(0 0 100px rgba(90, 63, 212, 0.55)); transform: scale(1.05); }
  100% { filter: drop-shadow(0 18px 34px rgba(0,0,0,.56)); transform: scale(1); }
}
@keyframes wheelBonusRevealGlowX5 {
  0% { filter: drop-shadow(0 18px 34px rgba(0,0,0,.56)); transform: scale(1); }
  12% { filter: drop-shadow(0 0 40px rgba(45, 21, 120, 0.9)) drop-shadow(0 0 60px rgba(90, 55, 180, 0.5)); transform: scale(1.02); }
  28% { filter: drop-shadow(0 0 72px rgba(90, 55, 180, 1)) drop-shadow(0 0 110px rgba(45, 21, 120, 0.75)) drop-shadow(0 0 140px rgba(14, 6, 32, 0.5)); transform: scale(1.08); }
  48% { filter: drop-shadow(0 0 88px rgba(74, 40, 153, 0.95)) drop-shadow(0 0 120px rgba(157, 122, 255, 0.55)); transform: scale(1.1); }
  68% { filter: drop-shadow(0 0 52px rgba(45, 21, 120, 0.8)) drop-shadow(0 18px 34px rgba(0,0,0,.45)); transform: scale(1.04); }
  100% { filter: drop-shadow(0 18px 34px rgba(0,0,0,.56)); transform: scale(1); }
}
.pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 28px solid #ff4fa3;
  filter: drop-shadow(0 0 10px rgba(255,79,163,.72)) drop-shadow(0 3px 5px rgba(0,0,0,.5));
  z-index: 4;
}
#wheel {
  z-index: 1;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255,220,132,.48),
    0 0 50px rgba(142,107,255,.25),
    0 0 90px rgba(255,79,163,.12),
    inset 0 0 34px rgba(0,0,0,.38);
}
#fxCanvas {
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
}

.spin-row { display: grid; justify-items: center; gap: 14px; margin-top: 8px; }
.main-btn.spin {
  min-width: min(320px, 80vw);
  padding: 18px 48px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.result {
  font-size: 1.1rem;
}
.script-btn {
  border-color: rgba(255, 200, 120, 0.45);
  background: linear-gradient(135deg, rgba(255, 160, 60, 0.35), rgba(142, 107, 255, 0.25));
}
.script-btn--on:not(:disabled) {
  border-color: rgba(0, 210, 106, 0.65);
}
.script-btn--off:not(:disabled) {
  border-color: rgba(255, 107, 142, 0.65);
}
.script-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.script-state {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9da7bf;
}
.script-state.on { color: var(--ok); }
.mode-switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(26, 30, 48, 0.96), rgba(10, 12, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mode-switch-row--compact {
  padding: 5px 8px;
  gap: 6px;
}
.mode-switch-row--compact .mode-switch {
  width: 64px;
  height: 30px;
  padding-right: 8px;
}
.mode-switch-row--compact .mode-switch-knob {
  width: 24px;
  height: 24px;
  margin-top: -12px;
}
.mode-switch-row--compact .mode-switch.is-on .mode-switch-knob {
  transform: translateX(34px);
}
.mode-switch-state-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
  z-index: 1;
  padding-left: 6px;
}
.mode-switch.is-on .mode-switch-state-label {
  padding-left: 0;
  padding-right: 22px;
}
.mode-switch-label {
  min-width: 3.2em;
  font-weight: 800;
  font-size: 0.72rem;
  color: #d8def5;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mode-switch {
  position: relative;
  width: 88px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, #2a3048, #151a2a);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.58);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.mode-switch-knob {
  position: absolute;
  z-index: 2;
  width: 30px;
  height: 30px;
  left: 4px;
  top: 50%;
  margin-top: -15px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #c8d0e8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.22s ease, background 0.22s ease;
  pointer-events: none;
}
.mode-switch:focus-visible {
  outline: 2px solid rgba(255, 216, 74, 0.85);
  outline-offset: 3px;
}
.mode-switch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mode-switch.is-on .mode-switch-knob {
  transform: translateX(50px);
  background: linear-gradient(180deg, #ffffff, #e8ecff);
}
.mode-switch--gamble.is-on {
  border-color: rgba(255, 180, 90, 0.65);
  background: linear-gradient(135deg, rgba(255, 140, 60, 0.55), rgba(255, 60, 120, 0.45));
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.35), 0 0 22px rgba(255, 120, 80, 0.35);
}
.mode-switch--fast.is-on {
  border-color: rgba(120, 230, 200, 0.65);
  background: linear-gradient(135deg, rgba(60, 200, 180, 0.45), rgba(100, 160, 255, 0.4));
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.35), 0 0 22px rgba(100, 210, 200, 0.3);
}
.admin-grid {
  margin-top: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
.field-hint {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.field-subtitle {
  margin: 8px 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}
.field--compact { gap: 4px; }
.bonus-player-settings {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.qb-label {
  display: inline-block;
  min-width: 1.5em;
  pointer-events: none;
}
.admin-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.panel { padding: 12px; }

.bet-amount-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.bet-currency-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.6rem;
  padding: 0 0.55rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: var(--text);
  pointer-events: none;
  user-select: none;
}
.bet-currency-tag--bonus {
  border-color: rgba(255, 196, 86, .45);
  background: rgba(255, 170, 40, .16);
  color: #ffd27a;
}
.bet-currency-tag--fc {
  border-color: rgba(140, 190, 255, .4);
  background: rgba(80, 140, 255, .14);
  color: #b7d4ff;
}
.bet-row { display: grid; gap: 8px; }
.quick-bets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.qb {
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(142,107,255,.3), rgba(255,79,163,.16));
  padding: 8px 6px;
  position: relative;
  overflow: visible;
}

/* Редкий 5x-спин: лёгкая подсветка UI (молнии — на canvas по всему экрану) */
body.x5-spin-storm .quick-bets .qb,
body.x5-spin-storm #maxBetBtn,
body.x5-spin-storm #betAmount,
body.x5-spin-storm #betPercent,
body.x5-spin-storm .gear-btn,
body.x5-spin-storm .main-btn,
body.x5-spin-storm .mini-btn,
body.x5-spin-storm .panel {
  border-color: rgba(200, 160, 255, 0.55) !important;
  box-shadow: 0 0 12px rgba(122, 45, 184, 0.35);
}

.status { display: grid; gap: 3px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(0,0,0,.23);}
.status-bet--over strong {
  color: #ff9eb5;
}
.status-bet--over {
  color: #ffb8c9;
}
.result { min-height: 1.55rem; font-weight: 800; text-align: center; max-width: 26rem; }
.result.win { color: var(--ok); }
.result.win.mega { color: #e8c4ff; text-shadow: 0 0 12px rgba(180, 120, 255, 0.8); }
.result.win.mega--x2 { color: #ffc4e8; text-shadow: 0 0 10px rgba(255, 79, 163, 0.7); }
.result.win.mega--x3 { color: #ffe9a8; text-shadow: 0 0 12px rgba(255, 143, 31, 0.85); }
.result.win.mega--x4 {
  color: #f0e6ff;
  font-size: 1.04em;
  text-shadow: 0 0 18px rgba(142, 107, 255, 1), 0 0 36px rgba(200, 160, 255, 0.85);
  animation: megaResultPulse 1.8s ease-in-out infinite;
}
.result.win.mega--x5 {
  color: #e8dcff;
  font-size: 1.12em;
  text-shadow:
    0 0 22px rgba(90, 55, 180, 1),
    0 0 44px rgba(45, 21, 120, 0.9),
    0 0 66px rgba(157, 122, 255, 0.65);
  animation: x5ResultPulse 1.2s ease-in-out infinite;
}
@keyframes megaResultPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes x5ResultPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.07); filter: brightness(1.15); }
}
.result.lose { color: var(--danger); }

.win-burst {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.win-burst-glow {
  position: absolute;
  width: min(92vw, 720px);
  height: min(42vh, 280px);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(90, 55, 180, 0.55), rgba(45, 21, 120, 0.2) 45%, transparent 72%);
  opacity: 0;
  transform: scale(0.9);
  will-change: transform, opacity;
}
.win-burst-inner {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 8vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.92) translate3d(0, 10px, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.win-burst.is-pink .win-burst-inner {
  color: #ff8fcc;
  text-shadow:
    0 0 24px rgba(255, 79, 163, 0.95),
    0 0 48px rgba(255, 120, 180, 0.6);
}
.win-burst.is-purple .win-burst-inner {
  color: #d4b8ff;
  text-shadow:
    0 0 28px rgba(142, 107, 255, 1),
    0 0 56px rgba(180, 120, 255, 0.75);
}
.win-burst.is-x3 .win-burst-inner {
  color: #ffe9a8;
  text-shadow: 0 0 24px rgba(255, 143, 31, 0.95), 0 0 48px rgba(255, 209, 102, 0.6);
}
.win-burst.is-ultra .win-burst-inner,
.win-burst.is-x4 .win-burst-inner {
  color: #f5ecff;
  font-size: clamp(2.4rem, 10vw, 5.2rem);
  text-shadow:
    0 0 36px rgba(142, 107, 255, 1),
    0 0 72px rgba(200, 160, 255, 0.95),
    0 0 110px rgba(90, 63, 212, 0.65);
}
.win-burst.is-x5 .win-burst-inner {
  color: #e8dcff;
  font-size: clamp(2.6rem, 11vw, 5.8rem);
  text-shadow:
    0 0 40px rgba(45, 21, 120, 1),
    0 0 80px rgba(90, 55, 180, 0.95),
    0 0 120px rgba(157, 122, 255, 0.75),
    0 0 160px rgba(14, 6, 32, 0.5);
}
.win-burst.show .win-burst-inner {
  animation: megaWinPop 1.4s ease-out forwards;
}
.win-burst.is-ultra.show .win-burst-inner,
.win-burst.is-x4.show .win-burst-inner {
  animation: ultraWinPop 2.8s ease-out forwards;
}
.win-burst.is-x5.show .win-burst-inner {
  animation: x5WinPop 4s ease-out forwards;
}
.win-burst.is-x5.show .win-burst-glow {
  animation: x5GlowPop 4s ease-out forwards;
}
@keyframes ultraWinPop {
  0% { opacity: 0; transform: scale(0.2) rotate(-12deg); }
  12% { opacity: 1; transform: scale(1.35) rotate(4deg); }
  28% { opacity: 1; transform: scale(1.08) rotate(-2deg); }
  45% { opacity: 1; transform: scale(1.22) rotate(2deg); }
  62% { opacity: 1; transform: scale(1.05) rotate(0deg); }
  100% { opacity: 0; transform: scale(1.55) rotate(6deg); }
}
@keyframes x5GlowPop {
  0% { opacity: 0; transform: scale(0.5); }
  12% { opacity: 1; transform: scale(1.15); }
  35% { opacity: 0.85; transform: scale(1.25); }
  55% { opacity: 0.75; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.45); }
}
@keyframes x5WinPop {
  0% { opacity: 0; transform: scale(0.1) rotate(-16deg); filter: blur(8px); }
  8% { opacity: 1; transform: scale(1.5) rotate(6deg); filter: blur(0); }
  20% { opacity: 1; transform: scale(1.15) rotate(-4deg); }
  35% { opacity: 1; transform: scale(1.4) rotate(5deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(-2deg); }
  65% { opacity: 1; transform: scale(1.35) rotate(3deg); }
  80% { opacity: 1; transform: scale(1.1) rotate(0deg); }
  100% { opacity: 0; transform: scale(1.7) rotate(8deg); filter: blur(2px); }
}
@keyframes megaWinPop {
  0% { opacity: 0; transform: scale(0.35) rotate(-8deg); }
  18% { opacity: 1; transform: scale(1.15) rotate(2deg); }
  45% { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(1.35) rotate(4deg); }
}

.cheat-modal-card { width: min(480px, 94vw); }
.cheat-current-state {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.cheat-section-label {
  margin: 10px 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cheat-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cheat-toggle {
  flex: 1 1 auto;
  min-width: 3rem;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}
.cheat-toggle.active {
  border-color: rgba(198, 176, 255, 0.9);
  background: linear-gradient(135deg, rgba(142, 107, 255, 0.45), rgba(255, 79, 163, 0.28));
  box-shadow: 0 0 12px rgba(142, 107, 255, 0.35);
}
.cheat-toggle--win.active { border-color: rgba(0, 210, 106, 0.7); background: rgba(0, 210, 106, 0.2); }
.cheat-toggle--lose.active { border-color: rgba(255, 107, 142, 0.7); background: rgba(255, 107, 142, 0.2); }
.cheat-toggle--bonus.epic.active {
  border-color: rgba(180, 140, 255, 0.85);
  box-shadow: 0 0 14px rgba(142, 107, 255, 0.45);
}
.cheat-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 4px;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
}
.cheat-check-row input { width: auto; margin-top: 2px; }
.cheat-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.panel-players { grid-column: 1 / -1; }
.player-item {
  flex-direction: column;
  align-items: stretch;
}
.player-item .cheat-actions {
  justify-content: flex-start;
}
.cheat-bonus-btn--epic {
  border-color: rgba(180, 120, 255, 0.55);
  background: linear-gradient(135deg, rgba(142, 107, 255, 0.5), rgba(90, 50, 180, 0.45));
}
.cheat-bonus-state {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 6px;
  color: #ffc8e8;
  background: rgba(255, 79, 163, 0.2);
  border: 1px solid rgba(255, 120, 180, 0.4);
}
.cheat-bonus-state.epic {
  color: #e0ccff;
  background: rgba(142, 107, 255, 0.25);
  border-color: rgba(180, 140, 255, 0.5);
}

.players-list { display: grid; gap: 7px; max-height: 420px; overflow: auto; }
.player-id-hint {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.player-item { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; padding: 7px 8px; border-radius: 8px; background: rgba(0,0,0,.22); }
.player-main { display: grid; gap: 2px; align-content: center; }
.cheat-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cheat-state {
  font-size: .74rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  color: #dbe2ff;
  background: rgba(255,255,255,.06);
}
.block-state {
  font-size: .74rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
}
.block-state.active {
  color: #9ef7bb;
  background: rgba(0, 210, 106, 0.16);
  border-color: rgba(0, 210, 106, 0.5);
}
.block-state.blocked {
  color: #ffc4cf;
  background: rgba(255, 107, 142, 0.16);
  border-color: rgba(255, 107, 142, 0.5);
}
.block-btn {
  border-color: rgba(255, 255, 255, 0.34);
}
.cheat-btn {
  padding: 6px 10px;
  font-size: .73rem;
  border-radius: 999px;
}
.delete-btn {
  padding: 6px 10px;
  font-size: .73rem;
  border-radius: 999px;
  color: #ffe7ee;
  border: 1px solid rgba(255, 112, 147, 0.6);
  background: linear-gradient(135deg, rgba(255, 92, 132, 0.85), rgba(199, 31, 75, 0.9));
}
.delete-btn:hover {
  filter: brightness(1.05);
}
.hint { margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
kbd { border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.08); border-radius: 6px; padding: 2px 6px; }

.message { margin-top: 10px; min-height: 1.2rem; font-weight: 700; }
.message.ok { color: #81f2ac; }
.message.error { color: #ff8ea8; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, .68);
  display: grid;
  place-items: center;
  z-index: 999;
}
.modal-card {
  width: min(420px, 92vw);
  background: rgba(23, 28, 44, .95);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 14px;
}
.profile-modal-card {
  width: min(640px, 96vw);
  max-height: min(90vh, 760px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 520px) {
  .profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.profile-stat {
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-stat-value {
  font-size: 1.12rem;
  font-weight: 900;
  color: #ffd84a;
  line-height: 1.2;
}
.profile-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 700;
}
.profile-history-title {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 800;
}
.profile-history-wrap {
  overflow: auto;
  max-height: 40vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.profile-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.profile-history-table th,
.profile-history-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-history-table th {
  color: var(--muted);
  font-weight: 800;
  position: sticky;
  top: 0;
  background: rgba(23, 28, 44, 0.98);
  z-index: 1;
}
.profile-history-table td.win-cell {
  color: #81f2ac;
  font-weight: 800;
}
.profile-history-table td.lose-cell {
  color: #ff9eb5;
  font-weight: 800;
}
.profile-empty {
  text-align: center;
  color: var(--muted);
  margin: 0;
  font-weight: 700;
  font-size: 0.86rem;
}
.profile-error {
  color: #ff8ea8;
  margin: 0;
  font-weight: 700;
}
.modal-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 10px 0; }
.admin-balance-actions {
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .wheel-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    max-width: 720px;
  }
  .wheel-column {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 100%;
  }
  .wheel-flank--left {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    margin-top: 0;
  }
  .wheel-flank--right {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    margin-top: 0;
  }
}
@media (max-width: 720px) {
  .player-topbar { flex-direction: column; align-items: stretch; }
  .topbar-right { max-width: 100%; justify-content: space-between; }
  .top-spin-modes { justify-content: flex-start; }
  .wheel-layout {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .wheel-column {
    grid-column: 1;
    grid-row: 1;
  }
  .wheel-flank--left,
  .wheel-flank--right {
    grid-column: 1;
    max-width: 100%;
    margin-top: 0;
  }
  .wheel-flank--left { grid-row: 2; }
  .wheel-flank--right { grid-row: 3; }
  .wheel-wrap { max-width: min(100%, 420px); }
}

/* ===== TG Auth ===== */
.tg-hint { font-size: 0.9rem; color: #888; margin: 12px 0 8px; text-align: center; }
.tg-login-btn { width: 100%; font-size: 1.1rem; padding: 14px; background: linear-gradient(135deg, #4ae, #298); color: #fff; }
.tg-login-btn:hover { background: linear-gradient(135deg, #5be, #3a9); }
.local-login-link { margin-top: 8px; font-size: 0.85rem; color: #666; }
.local-login-link:hover { color: #aaa; }

/* ===== Bonus / Currency ===== */
.bonus-row { display: flex; gap: 6px; }
.bonus-row input { flex: 1; }
.sync-btn { width: 40px; padding: 6px; }
.mode-switch--bonus .mode-switch-knob::before { content: "FC"; font-size: 0.75rem; font-weight: bold; }
.mode-switch--bonus.is-on .mode-switch-knob::before { content: "🎁"; font-size: 1rem; }
.currency-indicator { text-align: center; padding: 4px 0; font-size: 0.85rem; color: #aaa; }
.currency-indicator strong { color: #fff; }

/* ===== Withdraw ===== */
.withdraw-modal-card { max-width: 360px; }
.withdraw-info { font-size: 0.9rem; color: #aaa; margin: 8px 0; }
.withdraw-info strong { color: #fff; }
.modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.modal-actions .main-btn { flex: 1; }
.withdraw-btn { background: #2a2a2a; color: #4ae; border: 1px solid #4ae; min-width: 80px; }
.withdraw-btn:hover { background: #3a3a3a; }

/* ===== Bet 2-col grid ===== */
.bet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}

.panel-foot-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.panel-foot-row .gear-btn {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  padding: 5px 8px;
}

@media (max-width: 720px) {
  .spin-row { flex-wrap: wrap; gap: 4px; }
  .withdraw-btn { min-width: 60px; }
}
