/* ═══════════════════════════════════════════════════════
   Roulette Casino Mini App — style.css
   Тема: тёмная, glassmorphism, purple-pink gradient
═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --bg:          #09090f;
  --bg-card:     rgba(255,255,255,0.055);
  --bg-card-hov: rgba(255,255,255,0.09);
  --border:      rgba(255,255,255,0.09);
  --border-glow: rgba(139,92,246,0.45);

  --accent:   #8b5cf6;
  --accent2:  #ec4899;
  --gold:     #f59e0b;
  --teal:     #06b6d4;
  --green:    #10b981;
  --red:      #ef4444;

  --txt:      #f0f0f8;
  --txt2:     #9ca3af;
  --txt3:     #4b5563;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --ease: 0.22s cubic-bezier(.4,0,.2,1);
  --nav-h: 64px;
  --hdr-h: 56px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── Particles ──────────────────────────────────────── */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%; opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.25; }
  100% { transform: translateY(-10vh) scale(1.1); opacity: 0; }
}

/* ── Pages ──────────────────────────────────────────── */
.page {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--ease), transform var(--ease);
  z-index: 1;
}
.page.active {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}

.scroll-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px calc(var(--nav-h) + 12px);
  display: flex; flex-direction: column; gap: 12px;
}
.scroll-area::-webkit-scrollbar { width: 3px; }
.scroll-area::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 4px; }

/* ── Header ─────────────────────────────────────────── */
.header {
  flex-shrink: 0;
  height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: rgba(9,9,15,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-title { font-size: 17px; font-weight: 700; }

.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  border: 2px solid var(--border-glow);
  box-shadow: 0 0 14px rgba(139,92,246,0.3);
  overflow: hidden;
}
.avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.status-badge {
  position: absolute; bottom: 1px; right: 1px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--bg);
}
.status-badge.normal  { background: #6b7280; }
.status-badge.lucky   { background: var(--green); }
.status-badge.premium { background: var(--teal); }
.status-badge.vip     { background: var(--gold); }
.status-badge.main    { background: linear-gradient(135deg, #f97316, #22d3ee); }

.username { font-size: 14px; font-weight: 700; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-tag { font-size: 11px; color: var(--txt3); }

.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; transition: var(--ease);
}
.icon-btn:active { transform: scale(0.88); }

/* ── Balance Card ───────────────────────────────────── */
.balance-card {
  position: relative; overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #180a40 0%, #0d1a40 50%, #081428 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--r-xl); padding: 24px 20px 18px;
  box-shadow: 0 0 40px rgba(139,92,246,0.18), 0 6px 28px rgba(0,0,0,0.4);
}
.balance-glow {
  position: absolute; top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(139,92,246,0.45) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.balance-label { font-size: 12px; color: rgba(255,255,255,0.45); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.balance-amount { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.balance-number {
  display: inline-block;
  vertical-align: middle;
  font-size: 36px; font-weight: 900; letter-spacing: -1px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  transition: all .4s ease;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .balance-number {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #fff;
  }
}
.balance-currency { font-size: 14px; color: rgba(255,255,255,0.4); }
.balance-sub { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 18px; }

.balance-actions { display: flex; gap: 8px; }
.action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: rgba(255,255,255,0.07);
  color: var(--txt); font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--ease);
}
.action-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent; box-shadow: 0 4px 14px rgba(139,92,246,0.35);
}
.action-btn:active { transform: scale(0.95); }

/* ── Bonus card ─────────────────────────────────────── */
.bonus-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 13px 15px;
  transition: var(--ease);
}
.bonus-card.available { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.06); }
.bonus-icon { font-size: 22px; }
.bonus-info { flex: 1; }
.bonus-title { font-size: 12px; color: var(--txt2); margin-bottom: 1px; }
.bonus-timer { font-size: 14px; font-weight: 700; }
.bonus-timer.ok { color: var(--green); }
.bonus-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--txt3); flex-shrink: 0; transition: var(--ease);
}
.bonus-dot.on { background: var(--green); box-shadow: 0 0 7px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }

/* ── Sections ───────────────────────────────────────── */
.section {}
.section-title { font-size: 11px; font-weight: 700; color: var(--txt2); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }

/* ── Stats Grid ─────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 12px;
  display: flex; flex-direction: column; gap: 3px;
  transition: var(--ease);
}
.stat-card:active { transform: scale(0.97); }
.stat-card.win  { border-color: rgba(16,185,129,0.25); }
.stat-card.loss { border-color: rgba(239,68,68,0.25); }
.stat-card.record { border-color: rgba(245,158,11,0.25); }
.stat-card.rate-buy { border-color: rgba(76, 175, 80, 0.25); }
.stat-card.rate-sell { border-color: rgba(255, 152, 0, 0.25); }
.stat-icon { font-size: 18px; margin-bottom: 2px; }
.stat-val { font-size: 17px; font-weight: 800; }
.stat-card.win    .stat-val { color: var(--green); }
.stat-card.loss   .stat-val { color: var(--red); }
.stat-card.record .stat-val { color: var(--gold); }
.stat-card.rate-buy .stat-val { color: var(--green); }
.stat-card.rate-sell .stat-val { color: #ff9800; }
.stat-lbl { font-size: 11px; color: var(--txt3); }

/* ── Games list ─────────────────────────────────────── */
.games-list { display: flex; flex-direction: column; gap: 5px; }
.game-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 11px 13px;
  cursor: pointer; transition: var(--ease);
}
.game-item:active { transform: scale(0.98); background: var(--bg-card-hov); }
.gi-icon { font-size: 20px; flex-shrink: 0; }
.gi-info { flex: 1; }
.gi-name { font-size: 13px; font-weight: 600; }
.gi-cnt  { font-size: 11px; color: var(--txt3); }

/* ── Games Menu (Cards) ─────────────────────────────── */
.games-menu { padding: 0; }
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 14px;
  cursor: pointer;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(236,72,153,0.1));
  opacity: 0;
  transition: opacity var(--ease);
}
.game-card:hover::before,
.game-card:active::before {
  opacity: 1;
}
.game-card:active {
  transform: scale(0.96);
  border-color: var(--border-glow);
}
.game-card-icon {
  font-size: 42px;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.game-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
  position: relative;
  z-index: 1;
}
.game-card-desc {
  font-size: 11px;
  color: var(--txt3);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

/* ── Game Back Button ───────────────────────────────── */
.game-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.game-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--txt2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  flex: 1;
  justify-content: center;
}
.game-back-btn:hover {
  background: var(--bg-card-hov);
  color: var(--txt);
}
.game-back-btn:active {
  transform: scale(0.96);
}

.game-rules-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--r-md);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.game-rules-btn:hover {
  background: rgba(139,92,246,0.15);
}
.game-rules-btn:active {
  transform: scale(0.96);
}

.game-container {
  position: relative;
}

/* ── Partner ────────────────────────────────────────── */
.partner-card {
  display: flex; align-items: center; gap: 13px;
  background: linear-gradient(135deg, rgba(236,72,153,.09), rgba(139,92,246,.09));
  border: 1px solid rgba(236,72,153,.3); border-radius: var(--r-lg); padding: 14px;
}
.partner-icon { font-size: 26px; }
.partner-lbl  { font-size: 11px; color: var(--txt3); margin-bottom: 2px; }
.partner-name { font-size: 15px; font-weight: 700; }

/* ── Top list ───────────────────────────────────────── */
.top-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.top-tab {
  flex: 1; padding: 8px 4px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--txt2); font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: var(--ease);
}
.top-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent; color: #fff;
}
.top-loading { text-align: center; color: var(--txt3); padding: 32px 0; font-size: 14px; }
.top-list { display: flex; flex-direction: column; gap: 6px; }

.top-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 11px 13px;
}
.top-rank {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  color: var(--txt2);
}
.top-rank.gold   { background: rgba(245,158,11,.15); border-color: var(--gold); color: var(--gold); }
.top-rank.silver { background: rgba(156,163,175,.15); border-color: #9ca3af; color: #9ca3af; }
.top-rank.bronze { background: rgba(180,103,77,.15); border-color: #b4674d; color: #b4674d; }

.top-info { flex: 1; min-width: 0; }
.top-nick { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-status-ico { font-size: 11px; margin-right: 3px; }
.top-bal { font-size: 13px; font-weight: 700; color: var(--gold); white-space: nowrap; }

/* ── Shop ───────────────────────────────────────────── */
.shop-balance-banner {
  background: linear-gradient(135deg, #180a40, #0d1a40);
  border: 1px solid var(--border-glow); border-radius: var(--r-lg);
  padding: 16px 18px; text-align: center;
  box-shadow: 0 0 24px rgba(139,92,246,.15);
}
.shop-balance-lbl { font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: .07em; text-transform: uppercase; }
.shop-balance-val {
  display: inline-block;
  vertical-align: middle;
  font-size: 26px; font-weight: 900; margin-top: 4px;
  color: #fff;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .shop-balance-val {
    background: linear-gradient(90deg,#c4b5fd,#f472b6,#fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Инвентарь */
.inventory-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.inv-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center;
}
.inv-icon { font-size: 20px; }
.inv-lbl  { font-size: 10px; color: var(--txt3); }
.inv-cnt  { font-size: 14px; font-weight: 800; color: var(--txt); }
.inv-status.active-yes { color: var(--green); font-size: 11px; }
.inv-status.active-no  { color: var(--txt3); font-size: 11px; }

/* Товары */
.shop-items { display: flex; flex-direction: column; gap: 8px; }
.shop-loading { text-align: center; color: var(--txt3); padding: 24px 0; font-size: 14px; }

.shop-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 15px;
  display: flex; align-items: center; gap: 13px;
  transition: var(--ease); cursor: pointer;
}
.shop-item:active { transform: scale(0.98); background: var(--bg-card-hov); }
.shop-item.active-item { border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.05); }
.shop-item.poor       { opacity: 0.55; cursor: default; }

.si-icon { font-size: 28px; flex-shrink: 0; }
.si-body { flex: 1; min-width: 0; }
.si-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.si-desc { font-size: 11px; color: var(--txt2); }
.si-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; margin-top: 4px; display: inline-block;
  background: rgba(16,185,129,.2); color: var(--green);
}
.si-right { flex-shrink: 0; text-align: right; }
.si-price { font-size: 13px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.si-buy-btn {
  margin-top: 5px; padding: 5px 12px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; color: #fff; font-family: inherit; font-size: 12px;
  font-weight: 700; cursor: pointer; transition: var(--ease);
  white-space: nowrap;
}
.si-buy-btn:active { transform: scale(0.92); }
.si-buy-btn:disabled { opacity: 0.4; cursor: default; }
.si-buy-btn.active-btn {
  background: rgba(16,185,129,.2); color: var(--green);
}

/* ── Bottom Nav ─────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  display: flex;
  background: rgba(9,9,15,0.94); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  height: var(--nav-h);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; cursor: pointer;
  transition: var(--ease); padding-bottom: 4px;
  position: relative;
}
.nav-item::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 22px; height: 2px; background: var(--accent);
  border-radius: 2px; transition: var(--ease);
}
.nav-item.active::after { transform: translateX(-50%) scaleX(1); }
.nav-item:active { transform: scale(0.88); }
.nav-ico { font-size: 19px; filter: grayscale(1) opacity(.45); transition: var(--ease); }
.nav-item.active .nav-ico { filter: none; transform: translateY(-2px); }
.nav-lbl { font-size: 10px; color: var(--txt3); font-weight: 500; }
.nav-item.active .nav-lbl { color: var(--accent); }

/* ── Loader ─────────────────────────────────────────── */
.loader-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  transition: opacity .35s, visibility .35s;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; }
.loader-spinner {
  width: 42px; height: 42px;
  border: 3px solid rgba(139,92,246,.18);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-size: 13px; color: var(--txt2); }

/* ── Toast ──────────────────────────────────────────── */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 10px); left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(25,25,40,.96); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 9px 16px;
  max-width: min(420px, calc(100vw - 28px));
  font-size: 13px; color: var(--txt); white-space: normal;
  text-align: center;
  z-index: 500; opacity: 0; transition: all .28s ease;
  pointer-events: none; backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .28s ease;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box {
  background: #13131f; border: 1px solid var(--border);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 24px 20px 32px; width: 100%; max-width: 480px;
  text-align: center; transform: translateY(30px);
  transition: transform .28s ease;
}
.modal-overlay.show .modal-box { transform: translateY(0); }
.modal-icon  { font-size: 40px; margin-bottom: 10px; }
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.modal-desc  { font-size: 13px; color: var(--txt2); margin-bottom: 6px; }
.modal-price { font-size: 20px; font-weight: 900; color: var(--gold); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; }
.modal-btn {
  flex: 1; padding: 13px; border-radius: var(--r-md);
  border: 1px solid var(--border); font-family: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--ease);
}
.modal-btn.cancel  { background: var(--bg-card); color: var(--txt2); }
.modal-btn.confirm { background: linear-gradient(135deg,var(--accent),var(--accent2)); border-color: transparent; color: #fff; }
.modal-btn:active  { transform: scale(0.95); }

/* ── Rules Modal ───────────────────────────────────── */
.rules-modal-box {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
}
.rules-modal-header {
  flex-shrink: 0;
  margin-bottom: 12px;
}
.rules-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: left;
  padding: 0 4px 16px;
  max-height: 55vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.3) transparent;
}
.rules-modal-body::-webkit-scrollbar { width: 3px; }
.rules-modal-body::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 4px; }

.rules-section {
  margin-bottom: 16px;
}
.rules-section:last-child {
  margin-bottom: 0;
}
.rules-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rules-section-text {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.6;
}
.rules-section-text b {
  color: var(--txt);
  font-weight: 700;
}
.rules-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* РУЛЕТКА */
/* РУЛЕТКА */
.roulette-container {
  display: flex; flex-direction: column; gap: 15px; align-items: center; padding-bottom: 20px;
  position: relative;
}
.roulette-history-strip {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 20px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}
.roulette-history-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.roulette-history-dot.red { background: linear-gradient(135deg, #e63946, #b71c1c); }
.roulette-history-dot.black { background: linear-gradient(135deg, #2b2b2b, #111111); border: 1px solid #444; }
.roulette-history-dot.green { background: linear-gradient(135deg, #28a745, #1b5e20); }

.roulette-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 280px;
  position: relative;
  height: 32px;
}
.roulette-pointer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #ffc107;
  font-size: 28px;
  z-index: 25;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  animation: pointerWiggle 1s infinite alternate ease-in-out;
}
@keyframes pointerWiggle {
  from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-50%) translateY(2px); }
}
.roulette-audio-toggle {
  font-size: 18px;
  cursor: pointer;
  user-select: none;
  background: rgba(255,255,255,0.07);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
  margin-left: auto;
}
.roulette-audio-toggle:hover {
  background: rgba(255,255,255,0.15);
}
.roulette-wheel {
  width: 285px; height: 285px; border-radius: 50%;
  border: 8px solid #1a1a1a;
  /* Premium brass/wooden outer edge */
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.6),
    inset 0 0 15px rgba(0,0,0,0.8),
    0 0 0 2px #d4af37; /* Gold ring outer edge */
  background: conic-gradient(
    #28a745 0deg 27.69deg,
    #e63946 27.69deg 55.38deg,
    #111111 55.38deg 83.07deg,
    #e63946 83.07deg 110.76deg,
    #111111 110.76deg 138.46deg,
    #e63946 138.46deg 166.15deg,
    #111111 166.15deg 193.84deg,
    #e63946 193.84deg 221.53deg,
    #111111 221.53deg 249.23deg,
    #e63946 249.23deg 276.92deg,
    #111111 276.92deg 304.61deg,
    #e63946 304.61deg 332.30deg,
    #111111 332.30deg 360deg
  );
  position: relative;
  transition: transform 4.5s cubic-bezier(0.15, 0.85, 0.2, 1);
  margin: 0 auto;
  overflow: visible;
}
/* Inner metal separator lines between roulette slots */
.roulette-wheel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  /* Beautiful metal ridges and highlights */
  background: radial-gradient(circle, transparent 40%, rgba(212,175,55,0.2) 41%, transparent 43%, transparent 70%, rgba(255,255,255,0.05) 71%);
  pointer-events: none;
  z-index: 8;
}
.roulette-wheel::before {
  content: ''; position: absolute; width: 62px; height: 62px;
  /* Beautiful golden-brass center turret/hub */
  background: radial-gradient(circle, #f3e5ab 0%, #d4af37 40%, #aa7c11 75%, #5a4005 100%);
  border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 3px solid #1a1a1a;
  box-shadow: 
    0 4px 10px rgba(0,0,0,0.5), 
    inset 0 2px 4px rgba(255,255,255,0.5);
  z-index: 12;
}
.roulette-ball {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 4px 4px, #ffffff 0%, #e0e0e0 60%, #999999 100%);
  border-radius: 50%;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.6),
    0 0 8px rgba(255,255,255,0.8);
  z-index: 15;
  pointer-events: none;
  display: none; /* Controlled via JS coordinate mapping */
}
.game-result-banner {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.055);
  color: var(--txt);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
.wheel-num {
  position: absolute;
  top: 0; left: 50%;
  width: 35px; height: 135px;
  margin-left: -17.5px;
  transform-origin: bottom center;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8);
  z-index: 5;
}
.bet-controls {
  display: flex; flex-direction: column; gap: 10px; width: 100%;
}
.bet-input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border-glow);
  color: #fff; font-size: 16px; padding: 12px; border-radius: 12px; text-align: center;
}
.bet-quick-btns {
  display: flex; gap: 5px;
}
.bet-quick-btns button {
  flex: 1; font-size: 12px; padding: 8px 4px; border-radius: 8px;
}
.bet-opt {
  background: var(--bg3); border: 2px solid rgba(255,255,255,0.1);
  color: #fff; padding: 10px 5px; border-radius: 8px; font-weight: 600;
  cursor: pointer; font-size: 14px; text-align: center; transition: 0.2s;
}
.bet-opt.red { background: rgba(220,53,69,0.2); border-color: #dc3545; color: #dc3545; }
.bet-opt.black { background: rgba(0,0,0,0.5); border-color: #555; color: #ccc; }
.bet-opt.green { background: rgba(40,167,69,0.2); border-color: #28a745; color: #28a745; }
.bet-opt.selected {
  box-shadow: 0 0 10px var(--accent), inset 0 0 10px var(--accent);
  border-color: var(--accent);
  color: #fff; background: var(--accent);
}
.bet-grid-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-bottom: 10px;
}
.bet-grid-numbers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; margin-bottom: 15px;
}
.bet-actions {
  display: grid; grid-template-columns: 1fr 2fr; gap: 10px; width: 100%;
}
.bet-opt:active { transform: scale(0.95); }

/* БАККАРА */
.baccarat-container { display: flex; flex-direction: column; gap: 15px; align-items: center; padding-bottom: 20px; width: 100%; }
.baccarat-table {
  background: radial-gradient(circle at top, #14532d, #064e3b);
  border: 4px solid #b45309; border-radius: 100px 100px 20px 20px;
  width: 100%; padding: 25px 15px; position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.5);
}
.baccarat-table::before {
  content: ''; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 90px 90px 15px 15px; pointer-events: none;
}
.baccarat-hands {
  display: flex; justify-content: space-between; gap: 10px; margin-bottom: 20px;
}
.hand-area { flex: 1; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.hand-title {
  font-size: 13px; font-weight: 800; color: rgba(255,255,255,0.8);
  margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  letter-spacing: 1px;
}
.bac-score {
  display: inline-block; background: rgba(0,0,0,0.5); padding: 2px 8px; border-radius: 12px; margin-left: 5px; color: #fbbf24;
}
.cards-container {
  display: flex; min-height: 85px; justify-content: center; align-items: center; width: 100%;
}
.bac-card {
  width: 54px; height: 80px; background: #fff; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: bold; color: #000;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.4); border: 1px solid #ccc;
  margin-left: -15px;
  opacity: 0;
  transform: translateY(-50px) scale(0.8);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bac-card:first-child { margin-left: 0; }
.bac-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: cardFlip 0.8s ease-out;
}
@keyframes cardFlip {
  0% {
    transform: translateY(-50px) scale(0.8) rotateY(90deg);
    opacity: 0;
  }
  50% {
    transform: translateY(-10px) scale(1.05) rotateY(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1) rotateY(0deg);
    opacity: 1;
  }
}
.bac-card.red-suit { color: #dc3545; }
.bac-card.black-suit { color: #212529; }

.bac-result-banner {
  text-align: center; font-size: 14px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,0.6); padding: 8px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 2;
}
.bac-bet-options {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; width: 100%;
}
.bac-opt {
  background: var(--bg3); border: 2px solid rgba(255,255,255,0.1);
  color: #fff; padding: 12px 5px; border-radius: 8px; font-weight: 700;
  cursor: pointer; font-size: 12px; text-align: center; transition: 0.2s;
}
.bac-opt.player-btn { border-color: #3b82f6; background: rgba(59,130,246,0.15); color: #60a5fa; }
.bac-opt.banker-btn { border-color: #ef4444; background: rgba(239,68,68,0.15); color: #f87171; }
.bac-opt.tie-btn { border-color: #10b981; background: rgba(16,185,129,0.15); color: #34d399; }
.bac-opt.selected { background: #fff; color: #000; box-shadow: 0 0 15px rgba(255,255,255,0.4); border-color: #fff; }

.chip-text {
  font-size: 12px; font-weight: 900; letter-spacing: 0.5px;
}

/* Baccarat result overlay */
.bac-result-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  animation: bacOverlayIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bac-result-overlay-inner {
  text-align: center;
  padding: 24px;
}
.bac-result-icon {
  font-size: 48px;
  margin-bottom: 8px;
  animation: bounceIn 0.6s ease;
}
.bac-result-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.bac-result-scores {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.bac-result-payout {
  font-size: 20px;
  font-weight: 800;
  animation: pulseGlow 1.5s infinite alternate;
}
@keyframes bacOverlayIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes pulseGlow {
  from { text-shadow: 0 0 5px currentColor; }
  to { text-shadow: 0 0 20px currentColor; }
}

/* Win/Loss/Tie classes for result banners */
.blackjack-result-banner.win, .poker-result-banner.win, .durak-result-banner.win {
  background: linear-gradient(135deg, rgba(34,197,94,0.25), rgba(16,185,129,0.15));
  border-color: rgba(34,197,94,0.5);
  color: #22c55e;
}
.blackjack-result-banner.loss, .poker-result-banner.loss, .durak-result-banner.loss {
  background: linear-gradient(135deg, rgba(239,68,68,0.25), rgba(220,38,38,0.15));
  border-color: rgba(239,68,68,0.5);
  color: #ef4444;
}
.blackjack-result-banner.tie, .poker-result-banner.tie {
  background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(217,119,6,0.15));
  border-color: rgba(245,158,11,0.5);
  color: #f59e0b;
}

/* СЛОТЫ GATES OF OLYMPUS */
.slots-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  padding-bottom: 20px;
  width: 100%;
}
.slots-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 10px;
}
.slots-jackpot-banner {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 8px 12px;
  border-radius: 12px;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}
.slots-multiplier-panel {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}
.slots-olympus-arena {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  width: 100%;
  align-items: center;
}
.slots-zeus-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 250px;
}
.slots-zeus-graphic {
  font-size: 40px;
  animation: zeusFloat 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.8), 0 0 30px rgba(139, 92, 246, 0.5);
  cursor: default;
  user-select: none;
}
.slots-zeus-graphic.strike {
  animation: zeusStrike 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
.slots-zeus-speech {
  position: absolute;
  top: 10px;
  left: 90px;
  background: #1e1b4b;
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  color: #fff;
  z-index: 10;
  width: max-content;
  max-width: 120px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.slots-zeus-speech::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #1e1b4b;
  border-left: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}
.slots-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 6px;
  background: radial-gradient(circle at center, #0d0e25 0%, #03040c 100%);
  border: 3px solid #d97706;
  border-radius: 16px;
  padding: 8px;
  aspect-ratio: 6/5;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), inset 0 0 20px rgba(217, 119, 6, 0.35);
  overflow: hidden;
  position: relative;
}
.slot-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.olympus-symbol {
  width: 88%;
  height: 88%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  user-select: none;
  transition: transform 0.2s ease;
}
.olympus-symbol.fall {
  animation: symbolFall 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}
.olympus-symbol.pop {
  animation: symbolPop 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Символы стили */
.sym-gem_blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(29, 78, 216, 0.1) 80%);
  border: 1.5px solid rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}
.sym-gem_green {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(6, 95, 70, 0.1) 80%);
  border: 1.5px solid rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}
.sym-gem_yellow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(180, 83, 9, 0.1) 80%);
  border: 1.5px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}
.sym-gem_purple {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(91, 33, 182, 0.1) 80%);
  border: 1.5px solid rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}
.sym-gem_red {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, rgba(153, 27, 27, 0.1) 80%);
  border: 1.5px solid rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}
.sym-cup {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, rgba(146, 64, 14, 0.1) 80%);
  border: 2px solid #d97706;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}
.sym-ring {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(21, 94, 117, 0.1) 80%);
  border: 2px solid #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}
.sym-hourglass {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(107, 33, 168, 0.1) 80%);
  border: 2px solid #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}
.sym-crown {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.5) 0%, rgba(146, 64, 14, 0.15) 80%);
  border: 2px solid #fbbf24;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}
.sym-scatter {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, rgba(157, 23, 77, 0.15) 80%);
  border: 2.5px solid #ec4899;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
  animation: scatterPulse 1.5s infinite alternate;
}
.sym-multiplier {
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.sym-mult-green {
  background: radial-gradient(circle, #34d399 0%, #059669 80%);
  border: 2px solid #10b981;
  box-shadow: 0 0 10px #10b981;
}
.sym-mult-blue {
  background: radial-gradient(circle, #60a5fa 0%, #2563eb 80%);
  border: 2px solid #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
}
.sym-mult-pink {
  background: radial-gradient(circle, #f472b6 0%, #db2777 80%);
  border: 2px solid #ec4899;
  box-shadow: 0 0 10px #ec4899;
}
.sym-mult-red {
  background: radial-gradient(circle, #f87171 0%, #dc2626 80%);
  border: 2px solid #ef4444;
  box-shadow: 0 0 15px #ef4444;
  animation: multGlow 1s infinite alternate;
}

@keyframes zeusFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}
@keyframes zeusStrike {
  10%, 90% { transform: translate3d(-2px, 0, 0) scale(1.1); }
  20%, 80% { transform: translate3d(4px, -4px, 0) scale(1.1); }
  30%, 50%, 70% { transform: translate3d(-6px, 6px, 0) scale(1.2); text-shadow: 0 0 40px #ef4444, 0 0 50px #3b82f6; }
  40%, 60% { transform: translate3d(6px, 0, 0) scale(1.2); }
}
@keyframes scatterPulse {
  from { transform: scale(1); box-shadow: 0 0 10px rgba(236, 72, 153, 0.4); }
  to { transform: scale(1.06); box-shadow: 0 0 20px rgba(236, 72, 153, 0.8); }
}
@keyframes multGlow {
  from { box-shadow: 0 0 10px #ef4444; }
  to { box-shadow: 0 0 25px #ef4444; }
}
@keyframes symbolFall {
  0% { transform: translateY(-120%); opacity: 0; }
  75% { transform: translateY(5%); }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes symbolPop {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); background: rgba(255, 255, 255, 0.4); }
  100% { transform: scale(0); opacity: 0; }
}
.slots-result-banner {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
}

/* ══════════════════════════════════════════════
   TYCOON — Империя Казино
══════════════════════════════════════════════ */

/* ── Setup card (when no casino yet) ────────── */
.tycoon-setup-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: linear-gradient(145deg, rgba(139,92,246,0.12), rgba(245,158,11,0.08));
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--r-xl);
  padding: 32px 20px;
}
.setup-icon { font-size: 56px; line-height: 1; }
.tycoon-setup-card h3 {
  font-size: 20px; font-weight: 800;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tycoon-setup-card p { color: var(--txt2); font-size: 14px; line-height: 1.6; }
.setup-input-wrap { width: 100%; }
.setup-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--r-md);
  color: var(--txt);
  font-size: 16px;
  font-family: inherit;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--ease);
}
.setup-input:focus { border-color: var(--gold); }
.setup-input::placeholder { color: var(--txt3); }

/* ── Main Casino card ────────────────────────── */
.tycoon-main-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 22px 18px 18px;
  background: linear-gradient(145deg,
    rgba(139,92,246,0.18) 0%,
    rgba(245,158,11,0.10) 50%,
    rgba(15,10,30,0.92) 100%);
  border: 1px solid rgba(245,158,11,0.28);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tycoon-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse at 30% 10%, rgba(245,158,11,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(139,92,246,0.18) 0%, transparent 55%);
  pointer-events: none;
}

/* Badge row */
.tycoon-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tycoon-badge-level {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(245,158,11,0.18);
  border: 1px solid rgba(245,158,11,0.4);
  color: #fbbf24;
}
.tycoon-badge-vip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(245,158,11,0.3), rgba(251,191,36,0.2));
  border: 1px solid rgba(245,158,11,0.55);
  color: #fde68a;
  box-shadow: 0 0 10px rgba(245,158,11,0.3);
}

/* Casino name */
.tycoon-name {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #fde68a, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin: 0;
}

/* Income rate */
.tycoon-income-rate {
  font-size: 13px;
  font-weight: 600;
  color: #a3e635;
  letter-spacing: 0.3px;
}

/* Treasury block */
.tycoon-treasury-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.treasury-lbl {
  font-size: 12px;
  color: var(--txt2);
  font-weight: 500;
}
.treasury-val {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}
.treasury-val .currency-lbl {
  font-size: 14px;
  font-weight: 600;
  background: none;
  -webkit-text-fill-color: var(--txt2);
}

/* Treasury progress bar */
.treasury-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}
.treasury-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #fde68a);
  transition: width 0.8s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(245,158,11,0.6);
}
.treasury-capacity {
  font-size: 11px;
  color: var(--txt3);
  text-align: right;
}

/* Boosts row */
.tycoon-boosts-row {
  display: flex;
  gap: 8px;
}
.tycoon-boost-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 8px 4px;
  transition: border-color var(--ease), background var(--ease);
}
.tycoon-boost-item.active {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.35);
}
.boost-icon { font-size: 18px; line-height: 1; }
.boost-lbl { font-size: 10px; font-weight: 700; color: var(--txt2); text-align: center; }
.boost-time {
  font-size: 9px;
  color: var(--txt3);
  text-align: center;
}
.tycoon-boost-item.active .boost-time { color: #6ee7b7; }

/* Action buttons */
.tycoon-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.collect-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border-color: #f59e0b !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 20px rgba(245,158,11,0.35) !important;
}
.collect-btn:active { transform: scale(0.96) !important; }

/* ── Facility upgrade cards ──────────────────── */
.facility-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.facility-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  transition: border-color var(--ease), background var(--ease);
}
.facility-card:hover { background: var(--bg-card-hov); border-color: rgba(245,158,11,0.3); }
.facility-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.facility-info { flex: 1; min-width: 0; }
.facility-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
}
.facility-level-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.facility-lv-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(139,92,246,0.2);
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
}
.facility-desc { font-size: 11px; color: var(--txt3); margin-top: 2px; }
.facility-upgrade-btn {
  flex-shrink: 0;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--r-sm);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
  white-space: nowrap;
  line-height: 1.3;
  text-align: center;
}
.facility-upgrade-btn:hover { background: rgba(245,158,11,0.28); }
.facility-upgrade-btn:active { transform: scale(0.94); }
.facility-upgrade-btn.can-afford {
  background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(251,191,36,0.2));
  border-color: rgba(245,158,11,0.6);
  box-shadow: 0 0 12px rgba(245,158,11,0.2);
}

/* ── Stars VIP shop ──────────────────────────── */
.tycoon-stars-section { overflow: hidden; }
.stars-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stars-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 18px 16px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--ease);
}
.stars-card:hover { border-color: rgba(255,255,255,0.18); }
.stars-card-glow {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}
.stars-card-glow.purple {
  background: radial-gradient(circle at 10% 50%, rgba(139,92,246,0.2) 0%, transparent 65%);
}
.stars-card-glow.gold {
  background: radial-gradient(circle at 10% 50%, rgba(245,158,11,0.22) 0%, transparent 65%);
}
.stars-card-glow.blue {
  background: radial-gradient(circle at 10% 50%, rgba(6,182,212,0.18) 0%, transparent 65%);
}
.stars-icon { font-size: 32px; flex-shrink: 0; line-height: 1; position: relative; }
.stars-card-body { flex: 1; min-width: 0; position: relative; }
.stars-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--txt);
  margin: 0 0 4px;
}
.stars-card-desc {
  font-size: 12px;
  color: var(--txt2);
  line-height: 1.5;
  margin: 0;
}
.stars-buy-btn {
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: var(--r-md);
  color: #1a0a00;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
  white-space: nowrap;
}
.stars-buy-btn:hover { box-shadow: 0 4px 22px rgba(245,158,11,0.5); }
.stars-buy-btn:active { transform: scale(0.93); }

/* ── Chrono Console (Time Machine) Styles ────── */
.stars-card-glow.cyan {
  background: radial-gradient(circle at 10% 50%, rgba(6,182,212,0.22) 0%, transparent 65%);
}

.chrono-console-section {
  position: relative;
  overflow: hidden;
  background: rgba(8, 12, 28, 0.5) !important;
  border: 1px solid rgba(6, 182, 212, 0.15) !important;
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.05);
}

.chrono-locked-promo {
  padding: 30px 20px;
  text-align: center;
  border-radius: var(--r-lg);
  background: rgba(6, 182, 212, 0.02);
  border: 1px dashed rgba(6, 182, 212, 0.2);
}

.chrono-lock-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  animation: pulse-lock 2s infinite ease-in-out;
}

@keyframes pulse-lock {
  0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.4)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0)); }
}

.chrono-locked-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--txt);
  margin: 0 0 8px;
}

.chrono-locked-content p {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.5;
  margin: 0 0 20px;
}

.chrono-promo-buy-btn {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border: none;
  border-radius: var(--r-md);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.4);
  transition: transform var(--ease), box-shadow var(--ease);
}

.chrono-promo-buy-btn:active { transform: scale(0.95); }
.chrono-promo-buy-btn:hover { box-shadow: 0 4px 26px rgba(6, 182, 212, 0.6); }

.chrono-console-subtitle {
  font-size: 12px;
  color: var(--txt2);
  margin: -10px 0 16px 0;
  text-align: center;
}

.chrono-status-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.chrono-status-item {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 6px 12px;
  border-radius: 50px;
  display: flex;
  gap: 6px;
  font-size: 11px;
}

.chrono-status-label {
  color: var(--txt2);
}

.chrono-status-val.active {
  color: #22d3ee;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

.chrono-console-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chrono-console-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.chrono-console-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
}

.chrono-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chrono-card-icon {
  font-size: 20px;
  line-height: 1;
}

.chrono-card-title {
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  color: var(--txt);
}

.chrono-card-desc {
  font-size: 12px;
  color: var(--txt2);
  line-height: 1.5;
  margin: 0;
}

.chrono-lost-game-preview {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chrono-lost-game-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.lost-game-name {
  font-size: 12px;
  font-weight: 800;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lost-game-amount {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}

.lost-game-opt {
  font-size: 11px;
  color: var(--txt2);
}

.chrono-preview-placeholder {
  font-size: 11px;
  color: var(--txt2);
  font-style: italic;
}

.chrono-action-btn {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border: none;
  border-radius: var(--r-sm);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform var(--ease), opacity var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.chrono-action-btn:active { transform: scale(0.97); }

.chrono-action-btn:disabled {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.25);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.chrono-cooldown {
  font-size: 11px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.chrono-cooldown.ready {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.chrono-cooldown.waiting {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.chrono-cooldown.inactive {
  color: var(--txt2);
  background: rgba(255,255,255,0.03);
}

.chrono-cooldown.active-boost {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.3);
  animation: pulse-glow-chrono 1.5s infinite alternate ease-in-out;
}

@keyframes pulse-glow-chrono {
  from { box-shadow: 0 0 4px rgba(34, 211, 238, 0.2); }
  to { box-shadow: 0 0 12px rgba(34, 211, 238, 0.5); }
}

.chrono-premium-card .stars-buy-btn {
  background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4) !important;
}

.chrono-premium-card .stars-buy-btn:hover {
  box-shadow: 0 4px 22px rgba(6, 182, 212, 0.65) !important;
}

/* ── ИГРА РАКЕТА (CRASH) ─────────────────────────────────── */
.rocket-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  animation: fadeIn 0.22s ease-in-out;
}

.rocket-history-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  scrollbar-width: none;
}
.rocket-history-strip::-webkit-scrollbar {
  display: none;
}

.crash-badge {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--txt);
  transition: transform 0.2s ease;
}
.crash-badge:active {
  transform: scale(0.92);
}
.crash-badge.low {
  color: var(--red);
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}
.crash-badge.medium {
  color: var(--green);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
.crash-badge.high {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}
.crash-badge.legendary {
  color: var(--gold);
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.rocket-canvas-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #07070c;
  box-shadow: inset 0 0 24px rgba(0,0,0,0.9), 0 8px 24px rgba(0,0,0,0.5);
}

.rocket-status-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(7, 7, 12, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: opacity 0.3s ease;
}

#rocketCountdownText {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(245,158,11,0.6);
  letter-spacing: 0.5px;
  animation: countdownPulse 1s infinite alternate ease-in-out;
}
@keyframes countdownPulse {
  from { transform: scale(0.97); opacity: 0.88; }
  to { transform: scale(1.03); opacity: 1; }
}

.rocket-event-banner {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(236, 72, 153, 0.4);
  background: linear-gradient(90deg, rgba(236,72,153,0.15), rgba(139,92,246,0.15));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
  animation: slideDownIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideDownIn {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.rocket-bet-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.auto-cashout-control {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auto-cashout-label {
  font-size: 13px;
  color: var(--txt2);
  font-weight: 600;
}

.rocket-leaderboard-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
}
.leaderboard-hdr {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--txt2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 8px;
}

.rocket-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}
.rocket-leaderboard-list::-webkit-scrollbar {
  width: 3px;
}
.rocket-leaderboard-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.rocket-player-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  transition: all 0.25s ease;
}
.rocket-player-card.flying {
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.04);
}
.rocket-player-card.cashed {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}
.rocket-player-card.crashed {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.04);
  opacity: 0.6;
}

.p-name {
  font-weight: 600;
  color: var(--txt);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-bet {
  font-size: 11px;
  color: var(--gold);
  margin-top: 1px;
}
.p-status {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}
.p-status.flying {
  color: #a78bfa;
}
.p-status.cashed {
  color: var(--green);
}
.p-status.crashed {
  color: var(--red);
}

/* ── ИГРА БАККАРА (АВТОМАТИЧЕСКАЯ) ────────────────────────── */
.baccarat-history-strip {
  overflow-x: auto;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--r-md);
  margin: 0 auto 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 80px;
  max-width: 100%;
  scrollbar-width: none;
  display: flex;
  justify-content: center;
}
.baccarat-history-strip::-webkit-scrollbar {
  display: none;
}

/* Big Road Grid - Live Casino Style */
.bac-road-grid {
  display: grid;
  grid-template-columns: repeat(12, 18px);
  grid-template-rows: repeat(6, 18px);
  gap: 3px;
  width: fit-content;
  margin: 0 auto;
}

.bac-road-cell {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.bac-road-cell.player {
  background: transparent;
  border-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5), inset 0 0 8px rgba(59, 130, 246, 0.2);
}

.bac-road-cell.banker {
  background: #ef4444;
  border-color: #dc2626;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6), inset 0 0 8px rgba(220, 38, 38, 0.4);
}

/* Индикатор ничьи - зеленая линия через круг */
.bac-tie-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #10b981;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.8);
  border-radius: 1px;
}

.bac-tie-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 14px;
  background: #10b981;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.8);
  border-radius: 1px;
}
  border-radius: 1px;
}

.baccarat-leaderboard-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-top: 14px;
}
.baccarat-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}
.baccarat-leaderboard-list::-webkit-scrollbar {
  width: 3px;
}
.baccarat-leaderboard-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.baccarat-player-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  transition: all 0.25s ease;
}
.baccarat-player-card.player-type {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.04);
}
.baccarat-player-card.banker-type {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.04);
}
.baccarat-player-card.tie-type {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.04);
}
.baccarat-opt.selected {
  border-color: var(--gold) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3) !important;
}

/* ── ПОКЕР (TEXAS HOLD'EM) ────────────────────────── */
.poker-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding-bottom: 20px;
}

.poker-table {
  background: radial-gradient(ellipse at center, #1a472a, #0f2818);
  border: 4px solid #b45309;
  border-radius: 120px;
  padding: 30px 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 0 30px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.poker-table::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 110px;
  pointer-events: none;
}

.poker-community-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.community-label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.poker-community-cards {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 90px;
  align-items: center;
}

.poker-card-slot {
  width: 56px;
  height: 82px;
  background: rgba(0,0,0,0.3);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,0.3);
}

.poker-card {
  width: 56px;
  height: 82px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: #000;
  box-shadow: -2px 3px 10px rgba(0,0,0,0.5);
  border: 2px solid #ddd;
  position: relative;
  opacity: 0;
  transform: translateY(-30px) rotateY(180deg) rotateX(15deg);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.poker-card.show {
  opacity: 1;
  transform: translateY(0) rotateY(0deg) rotateX(0deg);
  animation: cardLandPoker 0.3s ease-out 0.6s;
}

@keyframes cardLandPoker {
  0% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
  50% { transform: translateY(5px) rotateY(0deg) rotateX(-5deg); }
  100% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
}

.poker-card.back {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  font-size: 32px;
  border-color: #6d28d9;
  opacity: 1;
  transform: none;
}

.poker-card.red-suit {
  color: #dc3545;
}

.poker-card.black-suit {
  color: #212529;
}

.poker-pot-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.5);
  padding: 12px 24px;
  border-radius: 16px;
  border: 2px solid rgba(251,191,36,0.4);
  box-shadow: 0 0 20px rgba(251,191,36,0.2);
}

.pot-label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1.5px;
}

.pot-amount {
  font-size: 26px;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251,191,36,0.6);
  line-height: 1;
}

.poker-hand-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.hand-label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.poker-hand-cards {
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 90px;
  align-items: center;
}

.poker-hand-name {
  font-size: 13px;
  font-weight: 700;
  color: #a3e635;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  min-height: 20px;
  text-align: center;
}

.dealer-hand .poker-hand-name {
  color: #f87171;
}

.poker-result-banner {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.7);
  padding: 14px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: slideDownIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.poker-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.poker-actions button {
  flex: 1;
  height: 52px;
  font-size: 16px;
  font-weight: 800;
}

.poker-game-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.poker-game-actions button {
  height: 50px;
  font-size: 14px;
  font-weight: 700;
}

.poker-info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-top: 10px;
}

.info-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 10px;
}

.info-text {
  font-size: 12px;
  color: var(--txt2);
  line-height: 1.7;
}

/* ── DURAK (Дурак) ──────────────────────────────────── */
.durak-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.durak-game-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  min-height: 400px;
}

.durak-deck-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.durak-deck-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.deck-icon {
  font-size: 24px;
}

.deck-count {
  font-size: 18px;
  font-weight: 800;
  color: var(--txt);
}

.durak-trump-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.15));
  border: 2px solid rgba(251,191,36,0.4);
  border-radius: var(--r-md);
  padding: 10px 16px;
}

.trump-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trump-card-display {
  font-size: 28px;
  font-weight: 900;
  color: var(--txt);
}

.durak-hand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.durak-hand .hand-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt2);
  text-align: center;
}

.durak-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 60px;
}

.durak-card {
  width: 50px;
  height: 70px;
  background: linear-gradient(135deg, #fff, #f0f0f0);
  border: 2px solid rgba(0,0,0,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
}

.durak-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(139,92,246,0.4);
}

.durak-card.selected {
  transform: translateY(-12px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(139,92,246,0.6);
}

.durak-card.back {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 28px;
  cursor: default;
}

.durak-card.back:hover {
  transform: none;
}

.durak-card.red-suit {
  color: #dc3545;
}

.durak-card.black-suit {
  color: #212529;
}

.durak-table {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.2);
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  min-height: 120px;
}

.table-empty-msg {
  font-size: 13px;
  color: var(--txt3);
  font-style: italic;
}

.durak-card-pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.durak-status-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
}

.durak-result-banner {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(236,72,153,0.2));
  border: 2px solid var(--border-glow);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
  animation: fadeIn 0.3s ease;
}

.durak-result-banner.win {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(5,150,105,0.2));
  border-color: rgba(16,185,129,0.5);
  color: var(--green);
}

.durak-result-banner.loss {
  background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(220,38,38,0.2));
  border-color: rgba(239,68,68,0.5);
  color: var(--red);
}

.durak-actions,
.durak-game-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.durak-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════
   MINES (Мины)
═══════════════════════════════════════════════════════ */

.mines-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.mines-game-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  min-height: 400px;
}

.mines-info-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.mines-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
}

.mines-stat-label {
  font-size: 12px;
  color: var(--txt2);
  margin-bottom: 4px;
}

.mines-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--txt);
}

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
}

.mines-cell {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}

.mines-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(236,72,153,0.1));
  opacity: 0;
  transition: opacity var(--ease);
}

.mines-cell:hover::before {
  opacity: 1;
}

.mines-cell:active {
  transform: scale(0.95);
}

.mines-cell.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.mines-cell.opened {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(5,150,105,0.2));
  border-color: rgba(16,185,129,0.5);
  cursor: default;
  animation: mineReveal 0.3s ease;
}

.mines-cell.mine {
  background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(220,38,38,0.3));
  border-color: rgba(239,68,68,0.6);
  animation: mineExplode 0.5s ease;
}

.mines-cell.revealed {
  opacity: 0.6;
  cursor: default;
}

@keyframes mineReveal {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes mineExplode {
  0% { transform: scale(1); }
  25% { transform: scale(1.2) rotate(5deg); }
  50% { transform: scale(0.9) rotate(-5deg); }
  75% { transform: scale(1.1) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.mines-result-banner {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(236,72,153,0.2));
  border: 2px solid var(--border-glow);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
  animation: fadeIn 0.3s ease;
  margin-top: 10px;
}

.mines-result-banner.win {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(5,150,105,0.2));
  border-color: rgba(16,185,129,0.5);
  color: var(--green);
}

.mines-result-banner.loss {
  background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(220,38,38,0.2));
  border-color: rgba(239,68,68,0.5);
  color: var(--red);
}

.mines-count-selector {
  margin-top: 10px;
}

.mines-actions,
.mines-game-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mines-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-top: 10px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   НАСТРОЙКИ
══════════════════════════════════════════════════════════════════════════════ */

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  transition: background var(--ease);
}

.setting-item:first-child {
  border-radius: var(--r-md) var(--r-md) 0 0;
}

.setting-item:last-child {
  border-radius: 0 0 var(--r-md) var(--r-md);
  border-bottom: 1px solid var(--border);
}

.setting-item:only-child {
  border-radius: var(--r-md);
  border-bottom: 1px solid var(--border);
}

.setting-item.clickable {
  cursor: pointer;
}

.setting-item.clickable:active {
  background: var(--bg-card-hov);
}

.setting-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setting-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
}

.setting-desc {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.4;
}

.setting-arrow {
  font-size: 20px;
  color: var(--txt3);
  margin-left: 12px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  border-radius: 28px;
  transition: all 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Setting Input */
.setting-value-input {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.setting-input {
  width: 120px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--txt);
  font-size: 14px;
  text-align: right;
  transition: all var(--ease);
}

.setting-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(139,92,246,0.1);
}

.setting-input::placeholder {
  color: var(--txt3);
}

.bet-quick-btns.hidden {
  display: none !important;
}

.win-confetti {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
  animation: confetti-fall 1.2s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(120px) rotate(360deg) scale(0.4);
  }
}

body.no-animations .particle,
body.no-animations .loader-spinner,
body.no-animations .slots-reel.spinning,
body.no-animations .roulette-wheel {
  animation: none !important;
  transition: none !important;
}

body.no-animations * {
  transition-duration: 0.01ms !important;
}

.nickname-modal-input {
  width: 100%;
  margin: 12px 0 4px;
  padding: 12px 14px;
  font-size: 16px;
  text-align: center;
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}

.tx-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.tx-item-main {
  flex: 1;
  min-width: 0;
}

.tx-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
}

.tx-item-desc {
  font-size: 12px;
  color: var(--txt2);
  margin-top: 4px;
  word-break: break-word;
}

.tx-item-time {
  font-size: 11px;
  color: var(--txt3);
  margin-top: 6px;
}

.tx-item-amount {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.tx-item-amount.positive { color: #34d399; }
.tx-item-amount.negative { color: #f87171; }
.tx-item-amount.neutral  { color: var(--txt2); }

.tx-empty {
  text-align: center;
  color: var(--txt2);
  padding: 40px 16px;
  font-size: 14px;
}

.setting-select {
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--txt);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--ease);
  min-width: 120px;
}

.setting-select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(139,92,246,0.1);
}

.setting-select option {
  background: var(--bg);
  color: var(--txt);
}

/* ── БЛЭКДЖЕК ── */
.blackjack-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding-bottom: 20px;
  align-items: center;
}

.blackjack-table {
  background: radial-gradient(ellipse at center, #0f4c3a, #072a20);
  border: 4px solid #b45309;
  border-radius: 120px;
  padding: 30px 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 0 30px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.blackjack-table::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 110px;
  pointer-events: none;
}

.blackjack-hand-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.bj-score {
  display: inline-block;
  background: rgba(0,0,0,0.5);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 5px;
  color: #fbbf24;
}

.blackjack-hand-cards {
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 90px;
  align-items: center;
}

.blackjack-card-slot {
  width: 56px;
  height: 82px;
  background: rgba(0,0,0,0.3);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,0.3);
}

.blackjack-card {
  width: 56px;
  height: 82px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: #000;
  box-shadow: -2px 3px 10px rgba(0,0,0,0.5);
  border: 2px solid #ddd;
  position: relative;
  opacity: 0;
  transform: translateY(-30px) rotateY(180deg) rotateX(15deg);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.blackjack-card.show {
  opacity: 1;
  transform: translateY(0) rotateY(0deg) rotateX(0deg);
  animation: cardLandBJ 0.3s ease-out 0.2s;
}

@keyframes cardLandBJ {
  0% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
  50% { transform: translateY(5px) rotateY(0deg) rotateX(-5deg); }
  100% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
}

.blackjack-card.back {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 32px;
  border-color: #047857;
  opacity: 1;
  transform: none;
}

.blackjack-card.red-suit {
  color: #dc3545;
}

.blackjack-card.black-suit {
  color: #212529;
}

.blackjack-result-banner {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.7);
  padding: 14px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: slideDownIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
}

.blackjack-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.blackjack-actions button {
  flex: 1;
  height: 52px;
  font-size: 16px;
  font-weight: 800;
}

.blackjack-game-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.blackjack-game-actions button {
  height: 50px;
  font-size: 14px;
  font-weight: 700;
}

/* ── MULTIPLAYER LOBBY (Многопользовательские лобби) ── */
.game-mode-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 20px;
  text-align: center;
  margin: 20px 0;
}

.game-mode-selector h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.game-mode-selector button {
  width: 100%;
  max-width: 280px;
  height: 48px;
}

.lobby-rooms-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.room-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
}

.room-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-creator {
  font-size: 14px;
  font-weight: 700;
}

.room-bet {
  font-size: 12px;
  color: var(--gold);
}

.create-room-panel {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-top: 15px;
}

.create-room-panel h3 {
  margin-top: 0;
  font-size: 15px;
  margin-bottom: 12px;
}

.joined-players-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
}

.player-lobby-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
}

.lobby-status-pill {
  font-size: 11px;
  background: var(--green);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── CASINO CHIPS STYLING ── */
.casino-chips-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  padding: 10px 0;
}

.chip {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px dashed #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  outline: none;
  flex-shrink: 0;
}

.chip::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.chip:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.chip:active {
  transform: scale(0.9) rotate(-10deg);
}

.chip-red {
  background: radial-gradient(circle, #dc2626 60%, #991b1b);
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.chip-blue {
  background: radial-gradient(circle, #2563eb 60%, #1e40af);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.chip-green {
  background: radial-gradient(circle, #16a34a 60%, #166534);
  border-color: #22c55e;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.chip-purple {
  background: radial-gradient(circle, #7c3aed 60%, #5b21b6);
  border-color: #8b5cf6;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.chip-gold {
  background: radial-gradient(circle, #d97706 60%, #78350f);
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
  animation: pulse-gold-chip 2s infinite alternate ease-in-out;
}

.chip-black {
  background: radial-gradient(circle, #1f2937 60%, #111827);
  border-color: #d97706;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.chip.selected {
  transform: scale(1.15) rotate(10deg) !important;
  box-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 40px rgba(255,255,255,0.3) !important;
  border-color: #fff !important;
}

@keyframes pulse-gold-chip {
  from { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); }
  to { box-shadow: 0 4px 22px rgba(245, 158, 11, 0.7); }
}

/* ── P2P MARKETPLACE STYLES ─────────────────────────────────── */
.market-listings-list, .my-market-listings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-md);
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  transition: all 0.2s ease-in-out;
}

.market-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.market-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.market-item-coins {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.market-item-seller {
  font-size: 11px;
  color: var(--text-muted);
}

.market-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.market-item-price {
  font-size: 16px;
  font-weight: 900;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.market-btn-group {
  display: flex;
  gap: 6px;
}

.market-action-btn {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  color: #fff;
  transition: opacity 0.2s;
}

.market-action-btn:hover {
  opacity: 0.9;
}

.market-action-btn.buy-stars {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.market-action-btn.buy-virtual {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.market-action-btn.cancel {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.market-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 30px;
}

/* P2P Currency Exchange Specific Styles */
.market-subtabs .subtab-btn {
  transition: all 0.2s ease;
}
.market-subtabs .subtab-btn:hover {
  filter: brightness(1.1);
}
.p2p-cabinet-box {
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════════════════
   Lootboxes / Cases & Customization System Styles
   ═══════════════════════════════════════════════════════ */

/* Custom CSS Theme Skins */
body.theme-bronze {
  --bg: #140d07;
  --bg-card: rgba(201, 115, 62, 0.08);
  --border: rgba(201, 115, 62, 0.2);
  --border-glow: rgba(201, 115, 62, 0.5);
  --accent: #c9733e;
  --accent2: #f97316;
}

body.theme-silver {
  --bg: #0f172a;
  --bg-card: rgba(148, 163, 184, 0.08);
  --border: rgba(148, 163, 184, 0.2);
  --border-glow: rgba(148, 163, 184, 0.5);
  --accent: #94a3b8;
  --accent2: #cbd5e1;
}

body.theme-gold {
  --bg: #130f00;
  --bg-card: rgba(245, 158, 11, 0.08);
  --border: rgba(245, 158, 11, 0.2);
  --border-glow: rgba(245, 158, 11, 0.5);
  --accent: #f59e0b;
  --accent2: #fbbf24;
}

body.theme-legendary {
  --bg: #0d001a;
  --bg-card: rgba(168, 85, 247, 0.08);
  --border: rgba(168, 85, 247, 0.2);
  --border-glow: rgba(168, 85, 247, 0.6);
  --accent: #d946ef;
  --accent2: #06b6d4;
}

/* Cases Page */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.case-card:active {
  transform: scale(0.98);
}

.case-card.bronze { border-color: rgba(201,115,62,0.3); }
.case-card.silver { border-color: rgba(148,163,184,0.3); }
.case-card.gold { border-color: rgba(245,158,11,0.3); }
.case-card.legendary { border-color: rgba(168,85,247,0.3); }
.case-card.diamond { border-color: rgba(6,182,212,0.3); }
.case-card.cosmic { border-color: rgba(236,72,153,0.3); }

.case-card.bronze:active { box-shadow: 0 0 15px rgba(201,115,62,0.3); }
.case-card.silver:active { box-shadow: 0 0 15px rgba(148,163,184,0.3); }
.case-card.gold:active { box-shadow: 0 0 15px rgba(245,158,11,0.3); }
.case-card.legendary:active { box-shadow: 0 0 20px rgba(168,85,247,0.4); }
.case-card.diamond:active { box-shadow: 0 0 20px rgba(6,182,212,0.4); }
.case-card.cosmic:active { box-shadow: 0 0 20px rgba(236,72,153,0.4); }

.case-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.case-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.case-info {
  flex: 1;
}

.case-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
}

.case-rarity {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.bronze .case-rarity { color: #c9733e; }
.silver .case-rarity { color: #94a3b8; }
.gold .case-rarity { color: #f59e0b; }
.legendary .case-rarity { color: #a855f7; animation: legendaryGlow 2s infinite alternate; }
.diamond .case-rarity { color: #06b6d4; text-shadow: 0 0 6px rgba(6,182,212,0.4); }
.cosmic .case-rarity { color: #ec4899; text-shadow: 0 0 6px rgba(236,72,153,0.4); }

@keyframes legendaryGlow {
  from { text-shadow: 0 0 2px rgba(168,85,247,0.2); }
  to { text-shadow: 0 0 8px rgba(168,85,247,0.7); }
}

.case-purchase-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.case-buy-btn {
  flex: 1;
  border: none;
  border-radius: var(--r-sm);
  padding: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.case-buy-btn:active {
  opacity: 0.8;
}

.case-buy-btn.coins {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.case-buy-btn.stars {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
}

/* Drops Showcase */
.case-drops-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt2);
  margin-bottom: 6px;
}

.case-drops-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.case-drop-badge {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 10px;
  color: var(--txt2);
}

/* Customization Panel (Profile) */
.customization-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  margin: 16px;
}

.cust-sec-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cust-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cust-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cust-label {
  font-size: 11px;
  color: var(--txt2);
  font-weight: 600;
}

.cust-select {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px;
  color: var(--txt);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

/* Opening Modal & Spin Animation */
.case-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5,5,10,0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.case-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.case-modal {
  width: 90%;
  max-width: 380px;
  background: #0d0d16;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 30px rgba(139,92,246,0.2);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s var(--ease);
}

.case-modal-overlay.active .case-modal {
  transform: scale(1);
}

.case-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 20px;
}

/* The Roulette Reel */
.case-reel-container {
  height: 80px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: 15px 0;
  overflow: hidden;
  position: relative;
}

.case-reel-container::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  z-index: 10;
  transform: translateX(-50%);
}

.case-reel {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  transition: transform 5s cubic-bezier(0.1, 0.8, 0.1, 1);
  will-change: transform;
}

.reel-item {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--txt2);
}

.reel-item-icon {
  font-size: 24px;
}

/* Winner Dialog */
.case-winner-info {
  display: none;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.winner-glow {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, rgba(139,92,246,0) 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 40px;
  animation: floatReward 2s infinite alternate;
}

@keyframes floatReward {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.winner-text {
  font-size: 13px;
  color: var(--txt2);
  margin-bottom: 4px;
}

.winner-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.case-modal-close-btn {
  margin-top: 20px;
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: var(--r-sm);
  padding: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}

.case-modal-close-btn:active {
  transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════
   Racing Game (Гонки) Styles
   ═══════════════════════════════════════════════════════ */
.race-car-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 15px;
}

.car-opt {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--txt2);
}

.car-opt.selected {
  border-color: var(--accent);
  background: rgba(139,92,246,0.1);
  color: #fff;
  box-shadow: 0 0 12px rgba(139,92,246,0.3);
  transform: translateY(-2px);
}

.car-opt-icon {
  font-size: 32px;
}

.car-opt-name {
  font-size: 12px;
  font-weight: 700;
}

.car-opt-mult {
  font-size: 10px;
  color: var(--gold);
  font-weight: 600;
}

/* The Track */
.race-arena {
  background: #111118;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin: 15px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.racetrack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  background: linear-gradient(90deg, #1f1f2e 0%, #151520 100%);
  padding: 10px 0;
  border-radius: var(--r-md);
}

.racetrack-lane {
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  padding-right: 40px; /* Space for finish line */
}

.racetrack-lane:last-child {
  border-bottom: none;
}

.racetrack-car {
  position: absolute;
  left: 0;
  font-size: 26px;
  transition: left 0.1s linear;
  will-change: left;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.racetrack-car.red { filter: drop-shadow(0 0 8px #ef4444); }
.racetrack-car.blue { filter: drop-shadow(0 0 8px #3b82f6); }
.racetrack-car.green { filter: drop-shadow(0 0 8px #10b981); }
.racetrack-car.yellow { filter: drop-shadow(0 0 8px #eab308); }

.racetrack-finish {
  position: absolute;
  top: 0; bottom: 0; right: 20px;
  width: 10px;
  background: repeating-linear-gradient(
    0deg,
    #fff,
    #fff 5px,
    #000 5px,
    #000 10px
  );
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
  z-index: 2;
}

.race-results-banner {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 10px;
  color: var(--txt2);
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════
   Hi-Lo Dice Game (Больше/Меньше) Styles
   ═══════════════════════════════════════════════════════ */
.hilo-bet-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 15px;
}

.hilo-opt {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--txt2);
}

.hilo-opt.selected {
  border-color: var(--accent);
  background: rgba(139,92,246,0.1);
  color: #fff;
  box-shadow: 0 0 12px rgba(139,92,246,0.3);
  transform: translateY(-2px);
}

.hilo-opt-name {
  font-size: 13px;
  font-weight: 800;
}

.hilo-opt-mult {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
}

.dice-arena {
  background: #111118;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin: 15px;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
  min-height: 120px;
}

.die {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at top left, #2e2e3e, #1a1a26);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 0 8px rgba(255,255,255,0.1);
  transition: transform 0.1s ease;
  will-change: transform;
}

.die.rolling {
  animation: dieShake 0.15s infinite alternate;
}

@keyframes dieShake {
  0% { transform: translate(2px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(0px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(2px, 1px) rotate(-2deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(2px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.hilo-results-banner {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 10px;
  color: var(--txt2);
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════
   Apple of Fortune (Яблоко Фортуны) Styles
   ═══════════════════════════════════════════════════════ */
.apple-game-layout {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 10px;
  max-width: 100%;
}

.apple-board {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px;
}

.apple-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: var(--r-sm);
  transition: all 0.25s ease;
  position: relative;
  opacity: 0.35;
  pointer-events: none;
}

.apple-row.active {
  opacity: 1;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
  pointer-events: auto;
}

.apple-row.completed {
  opacity: 0.6;
  pointer-events: none;
}

.apple-cell {
  aspect-ratio: 1.1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apple-row.active .apple-cell:hover {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
  transform: scale(1.05);
}

.apple-cell.good {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--green);
}

.apple-cell.bad {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--red);
}

.apple-sidebar {
  width: 75px;
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 10px 0;
}

.apple-mult-badge {
  height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--txt3);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--r-sm);
  transition: all 0.25s ease;
}

.apple-mult-badge.active {
  color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

/* ── The Dog House Slot Machine ── */

.doghouse-container {
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at center, #6b4028 0%, #3e1b0c 100%);
  border: 4px solid #b87b46;
  border-radius: var(--r-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 8px 24px rgba(0,0,0,0.6);
  transition: all 0.5s ease;
}

/* Фриспин ночной режим */
.doghouse-container.free-spins-active {
  background: radial-gradient(circle at center, #1a1b41 0%, #0d0e1e 100%);
  border-color: #3b82f6;
  box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.4), 0 8px 32px rgba(0, 0, 0, 0.8);
}

.doghouse-container.free-spins-active::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px);
  background-size: 80px 80px;
  opacity: 0.15;
}

.doghouse-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.doghouse-jackpot-banner {
  background: rgba(184, 123, 70, 0.2);
  border: 1px solid #b87b46;
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fcd34d;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.doghouse-container.free-spins-active .doghouse-jackpot-banner {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

.doghouse-free-spins-badge {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border: 1px solid #f87171;
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  animation: pulse-fs 1.5s infinite;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes pulse-fs {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(239, 68, 68, 0.8); }
  100% { transform: scale(1); }
}

.doghouse-arena {
  position: relative;
  background: #2a1208;
  border: 6px solid #8f532a;
  border-radius: var(--r-md);
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.9);
  padding: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.doghouse-container.free-spins-active .doghouse-arena {
  background: #090a14;
  border-color: #1e3a8a;
}

.doghouse-reels-window {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  height: 220px;
  position: relative;
}

.doghouse-reel {
  background: #3b1b0f;
  border-radius: var(--r-sm);
  height: 100%;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(143, 83, 42, 0.3);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}

.doghouse-container.free-spins-active .doghouse-reel {
  background: #111322;
  border-color: rgba(59, 130, 246, 0.2);
}

.doghouse-reel-inner {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.1s linear;
}

.doghouse-cell {
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: 26px;
  user-select: none;
  background: radial-gradient(circle at center, rgba(255,255,255,0.02) 0%, transparent 80%);
  border-bottom: 1px solid rgba(0,0,0,0.25);
  box-sizing: border-box;
}

.doghouse-cell-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  transition: transform 0.2s ease;
}

.doghouse-cell-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--txt3);
  margin-top: 2px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.8);
}

/* Стилизация символов */
.doghouse-cell[data-symbol^="dog_"] {
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
}
.doghouse-cell[data-symbol="dog_rottweiler"] .doghouse-cell-icon {
  animation: dog-wiggle 3s infinite ease-in-out;
}

@keyframes dog-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg) scale(1.05); }
  75% { transform: rotate(3deg) scale(1.05); }
}

/* Wild House */
.doghouse-cell[data-symbol^="wild_"] {
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.15) 0%, transparent 80%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 10px rgba(239,68,68,0.2);
}

.doghouse-container.free-spins-active .doghouse-cell[data-symbol^="wild_"] {
  border-color: #3b82f6;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 0%, transparent 80%);
  box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.4);
}

.doghouse-wild-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 2;
}

.doghouse-cell[data-symbol="scatter"] {
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
}

.doghouse-cell.winning {
  animation: win-flash 0.5s ease infinite alternate;
  z-index: 1;
}

@keyframes win-flash {
  0% { transform: scale(1); filter: brightness(1); border-color: rgba(245, 158, 11, 0.2); }
  100% { transform: scale(1.06); filter: brightness(1.3) drop-shadow(0 0 8px rgba(245, 158, 11, 0.8)); border-color: #f59e0b; }
}

/* Липкий вайлд анимация */
.wild-sticky-pop {
  animation: wild-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes wild-pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* Класс прокрутки барабанов */
.doghouse-reel-inner.spinning-loop {
  animation: doghouse-reel-spin 0.18s linear infinite;
  filter: blur(2px);
  will-change: transform;
}

@keyframes doghouse-reel-spin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-210px); } /* Смещение на 3 ячейки */
}

/* Результаты */
.doghouse-result-banner {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt2);
  min-height: 24px;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.doghouse-result-banner.win {
  color: #10b981;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.doghouse-result-banner.bonus {
  color: #ec4899;
  font-weight: 900;
  font-size: 15px;
  animation: text-pulse 1s infinite alternate;
}

@keyframes text-pulse {
  0% { transform: scale(1); text-shadow: 0 0 4px rgba(236, 72, 153, 0.4); }
  100% { transform: scale(1.03); text-shadow: 0 0 12px rgba(236, 72, 153, 0.8); }
}

/* Overlay для 3x3 бочек */
.doghouse-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(8px);
  animation: fade-in 0.3s ease;
}

.doghouse-overlay-content {
  background: linear-gradient(135deg, #3a1c0d 0%, #1e0b04 100%);
  border: 3px solid #b87b46;
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
  width: 90%;
  max-width: 340px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.doghouse-overlay-content h2 {
  color: #f59e0b;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.doghouse-overlay-content p {
  font-size: 12px;
  color: var(--txt3);
  margin-bottom: 16px;
}

.doghouse-barrels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.doghouse-barrel {
  background: radial-gradient(circle at center, #6e3d23 0%, #3d1b0b 100%);
  border: 2px solid #8f532a;
  border-radius: var(--r-md);
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 900;
  color: #fcd34d;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5), 0 4px 6px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.doghouse-barrel.rolling {
  animation: barrel-shake 0.15s infinite alternate;
}

@keyframes barrel-shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  100% { transform: translate(-1px, -1px) rotate(1deg); }
}

.doghouse-barrel.revealed {
  background: radial-gradient(circle at center, #22c55e 0%, #15803d 100%);
  border-color: #4ade80;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.doghouse-barrels-total {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-top: 10px;
}

/* Payline overlay drawing */
.doghouse-payline-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* ── The Dog House Slot Machine ── */
.doghouse-payline-path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-line 1.5s ease-out forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

/* ── Premium Zeus SVG & Animation ── */
.slots-zeus-svg {
  width: 100%;
  height: 100%;
  max-height: 170px;
  animation: zeus-float 4s ease-in-out infinite;
  transform-origin: bottom center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

@keyframes zeus-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.slots-zeus-graphic {
  font-size: 0 !important; /* Hide old text emoji space */
}

/* Zeus Strike Pose */
.slots-zeus-graphic.striking .zeus-arm-right {
  animation: zeus-arm-raise 0.4s ease-out forwards;
}

@keyframes zeus-arm-raise {
  0% { transform: rotate(0) translate(0, 0); }
  100% { transform: rotate(-50deg) translate(-25px, -15px); }
}

.slots-zeus-graphic.striking .slots-zeus-svg {
  animation: zeus-shake 0.1s infinite alternate;
}

@keyframes zeus-shake {
  0% { transform: translate(1px, 1px) rotate(0deg) translateY(-8px); }
  100% { transform: translate(-1px, -1px) rotate(1deg) translateY(-8px); }
}

/* Lightning Bolt Glowing effect */
.zeus-lightning-bolt {
  animation: lightning-glow-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes lightning-glow-pulse {
  0% { opacity: 0.8; filter: drop-shadow(0 0 2px #38bdf8); }
  100% { opacity: 1; filter: drop-shadow(0 0 8px #0284c7); }
}

/* Dynamic Lightning Overlay Path */
.olympus-lightning-path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px #38bdf8) drop-shadow(0 0 6px #0284c7);
  animation: lightning-strike-flash 0.5s ease-out forwards;
}

@keyframes lightning-strike-flash {
  0% { stroke-width: 0; opacity: 0; }
  15% { stroke-width: 6; opacity: 1; }
  30% { stroke-width: 2; opacity: 0.85; }
  45% { stroke-width: 5; opacity: 1; }
  100% { stroke-width: 0; opacity: 0; }
}

/* Gold Sweep shine overlay for cells */
.slots-board .slot-cell,
.doghouse-reels-window .doghouse-cell {
  position: relative;
  overflow: hidden;
}

.slots-board .slot-cell::after,
.doghouse-reels-window .doghouse-cell::after {
  content: "";
  position: absolute;
  top: 0; left: -150%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

.slots-board .slot-cell.winning::after,
.doghouse-reels-window .doghouse-cell.winning::after {
  animation: shine-sweep 1.2s ease-in-out infinite;
}

@keyframes shine-sweep {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* ── Вкладки в магазине ── */
.shop-tabs .tab-btn.active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

/* ── Витрина подарков (Shelf) ── */
.gifts-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 15px 15px 15px;
}
.gift-shelf-card {
  border-radius: var(--r-md);
  padding: 16px 8px;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background-clip: padding-box;
}
.gift-shelf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.gift-shelf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}
.gift-shelf-icon {
  font-size: 38px;
  margin-bottom: 8px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
}
.gift-shelf-card:hover .gift-shelf-icon {
  transform: scale(1.18) rotate(3deg);
}
.gift-shelf-name {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.gift-shelf-serial {
  font-size: 9px;
  font-weight: 900;
  margin-top: 5px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 2px 6px;
  border-radius: 8px;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ── Стили бэкграундов и градиентов для подарков ── */
.backdrop-gift_heart {
  background: linear-gradient(135deg, #500724, #9d174d, #f43f5e);
  border-color: rgba(244, 63, 94, 0.45) !important;
}
.backdrop-gift_champagne {
  background: linear-gradient(135deg, #451a03, #92400e, #d97706);
  border-color: rgba(245, 158, 11, 0.45) !important;
}
.backdrop-gift_ring {
  background: linear-gradient(135deg, #083344, #0369a1, #0ea5e9);
  border-color: rgba(14, 165, 233, 0.45) !important;
}
.backdrop-gift_car {
  background: linear-gradient(135deg, #2e1065, #5b21b6, #8b5cf6);
  border-color: rgba(139, 92, 246, 0.45) !important;
}
.backdrop-gift_crown {
  background: linear-gradient(135deg, #78350f, #b45309, #f59e0b);
  border-color: rgba(245, 158, 11, 0.7) !important;
}
.backdrop-gift_star {
  background: linear-gradient(135deg, #1e1b4b, #3730a3, #6366f1);
  border-color: rgba(99, 102, 241, 0.7) !important;
}

/* Улучшенные подарки: эффекты */
.gift-level-2 {
  position: relative;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.15), 0 4px 15px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.gift-level-2::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  background-size: 200% 100%;
  animation: shine-sweep 3s infinite linear;
}

@keyframes shine-sweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.gift-level-3 {
  position: relative;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, #2e0854, #4a0072, #0d001a) !important;
  border-color: #d4af37 !important;
  animation: gift-glow-pulse 2s infinite alternate, holographic-shift 5s infinite linear;
  background-size: 400% 400% !important;
}

.gift-level-3::before {
  content: '✨';
  position: absolute;
  top: 4px; right: 6px;
  font-size: 10px;
  color: #ffd700;
  pointer-events: none;
  animation: sparkle-rotate 1.5s infinite linear;
}

.gift-level-3::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  border: 1.5px dashed #ffd700;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
}

@keyframes sparkle-rotate {
  0% { transform: rotate(0deg) scale(0.8); opacity: 0.5; }
  50% { transform: rotate(180deg) scale(1.2); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.8); opacity: 0.5; }
}

@keyframes holographic-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gift-glow-pulse {
  0% { filter: brightness(1) drop-shadow(0 0 2px rgba(139,92,246,0.3)); }
  100% { filter: brightness(1.15) drop-shadow(0 0 10px rgba(139,92,246,0.7)); }
}

/* ── Карточки в списке минта (Mint List) ── */
.gift-mint-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-md);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.gift-mint-card:hover {
  border-color: rgba(255,255,255,0.12);
}
.gift-mint-icon {
  font-size: 38px;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.gift-mint-body {
  flex: 1;
  min-width: 0;
}
.gift-mint-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.gift-mint-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}
.gift-mint-progress {
  margin-top: 8px;
}
.gift-mint-stats {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.gift-mint-bar-bg {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.gift-mint-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #fbbf24);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}
.gift-mint-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.gift-mint-price {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.gift-mint-btn {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #151221;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.gift-mint-btn:hover:not(:disabled) {
  background: #fbbf24;
  border-color: #fbbf24;
  box-shadow: 0 4px 10px rgba(245,158,11,0.25);
}
.gift-mint-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.gift-mint-btn.sold-out {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.04);
  color: var(--text-muted);
}

/* ── СЛОТЫ GOD OF OLYMPUS ───────────────────────────── */

.godofolympus-container {
  padding: 15px;
  background: #0f172a;
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.godofolympus-container.free-spins-active {
  background: radial-gradient(circle, #1e1b4b 0%, #0f172a 100%);
  border: 2px solid #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.godofolympus-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.godofolympus-jackpot-banner {
  font-size: 14px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.godofolympus-free-spins-badge {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #6b21a8);
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  animation: pulse-glow 1.5s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(1); box-shadow: 0 0 5px rgba(168, 85, 247, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 0 15px rgba(168, 85, 247, 0.8); }
}

.godofolympus-arena {
  width: 100%;
  aspect-ratio: 5 / 3;
  background: #020617;
  border: 4px solid #475569;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: inset 0 4px 20px rgba(0,0,0,0.8);
}

.godofolympus-container.free-spins-active .godofolympus-arena {
  border-color: #a855f7;
  box-shadow: inset 0 4px 20px rgba(0,0,0,0.8), 0 0 10px rgba(168, 85, 247, 0.3);
}

.godofolympus-reels-window {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
  width: 100%;
}

.godofolympus-reel {
  border-right: 1px solid rgba(71, 85, 105, 0.3);
  height: 100%;
  overflow: hidden;
  position: relative;
}

.godofolympus-reel:last-child {
  border-right: none;
}

.godofolympus-reel-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.godofolympus-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(71, 85, 105, 0.2);
  position: relative;
  background: #090d16;
  transition: background-color 0.3s;
}

.godofolympus-cell:last-child {
  border-bottom: none;
}

.godofolympus-cell-icon {
  font-size: 26px;
  margin-bottom: 2px;
  z-index: 2;
}

.godofolympus-cell-label {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  z-index: 2;
}

.godofolympus-cell.winning {
  background: rgba(168, 85, 247, 0.15);
  animation: win-cell-flash 0.5s infinite alternate;
}

@keyframes win-cell-flash {
  0% { background: rgba(168, 85, 247, 0.15); }
  100% { background: rgba(168, 85, 247, 0.35); }
}

.godofolympus-cell[data-symbol="wild"] {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
}

.godofolympus-cell[data-symbol="wild"]::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid #a855f7;
  border-radius: 6px;
  box-shadow: 0 0 10px #a855f7;
  pointer-events: none;
}

.godofolympus-cell[data-symbol="bonus"] {
  background: linear-gradient(135deg, #451a03, #78350f);
}

.godofolympus-cell[data-symbol="bonus"]::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid #fbbf24;
  border-radius: 6px;
  box-shadow: 0 0 10px #fbbf24;
  pointer-events: none;
}

.godofolympus-cell[data-symbol^="zeus_"] .godofolympus-cell-icon {
  animation: zeus-float 2s ease-in-out infinite alternate;
}

@keyframes zeus-float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}

.godofolympus-reel-inner.spinning-loop {
  animation: reel-spin-anim 0.12s linear infinite;
}

@keyframes reel-spin-anim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-33.33%); }
}

.godofolympus-result-banner {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  padding: 10px;
  background: #1e293b;
  border-radius: var(--r-sm);
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,0.05);
}

.godofolympus-result-banner.win {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.2);
}

.godofolympus-result-banner.bonus {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
}

.godofolympus-shield:hover {
  transform: scale(1.15) rotate(5deg);
  border-color: #fbbf24 !important;
  box-shadow: 0 0 15px #fbbf24 !important;
}

/* ── Улучшенные подарки: Детали ── */
#giftDetailIcon {
  width: 80px;
  height: 80px;
  border-radius: var(--r-md);
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Эффекты свечения для превью в P2P бирже */
.market-gift-icon-wrap.gift-level-2 {
  position: relative;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.25) !important;
}
.market-gift-icon-wrap.gift-level-2::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  background-size: 200% 100%;
  animation: shine-sweep 3s infinite linear;
}

.market-gift-icon-wrap.gift-level-3 {
  position: relative;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, #2e0854, #4a0072, #0d001a) !important;
  border-color: #d4af37 !important;
  animation: gift-glow-pulse 2s infinite alternate, holographic-shift 5s infinite linear;
  background-size: 400% 400% !important;
}
.market-gift-icon-wrap.gift-level-3::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  border: 1px solid #ffd700;
  pointer-events: none;
  box-shadow: 0 0 5px rgba(255,215,0,0.4);
}

/* ── Plinko Game Styles ── */
.plinko-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.plinko-board-wrapper {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: 10px;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 4px 20px rgba(0,0,0,0.4);
}

#plinkoCanvas {
  max-width: 100%;
  border-radius: var(--r-sm);
  display: block;
}

.plinko-risk-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin-top: 5px;
}

.plinko-risk-tab[data-risk="low"] {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  border-radius: 20px;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.plinko-risk-tab[data-risk="low"]:hover,
.plinko-risk-tab.active[data-risk="low"] {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}

.plinko-risk-tab[data-risk="medium"] {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fde047;
  border-radius: 20px;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.plinko-risk-tab[data-risk="medium"]:hover,
.plinko-risk-tab.active[data-risk="medium"] {
  background: rgba(245, 158, 11, 0.25);
  border-color: #eab308;
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.plinko-risk-tab[data-risk="high"] {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 20px;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.plinko-risk-tab[data-risk="high"]:hover,
.plinko-risk-tab.active[data-risk="high"] {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

.plinko-bet-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
  width: 100%;
}

.plinko-bet-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 10px 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.plinko-bet-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.plinko-bet-btn.clear {
  color: var(--txt3);
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
}

.plinko-bet-btn.clear:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

