:root {
  --bg: #0e0f14;
  --panel: #171923;
  --panel-2: #1e2130;
  --text: #eef0f6;
  --muted: #8a8fa3;
  --accent: #6c5ce7;

  --c-common: #8a8fa3;
  --c-uncommon: #4cd964;
  --c-rare: #3b9dff;
  --c-epic: #b24bff;
  --c-legendary: #ffb020;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% -10%, #1b1e2b 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.1px;
}

.topbar {
  padding: 18px 24px;
  border-bottom: 1px solid #23263380;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.logo span { color: var(--accent); }

.topbar { justify-content: space-between; }

.balance-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

#app-root.hidden { display: none; }

.boot-loading {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--bg);
}
.boot-loading.hidden { display: none; }

/* ---------- subscribe gate ---------- */
.subscribe-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% -10%, #1b1e2b 0%, var(--bg) 60%);
}
.subscribe-gate.hidden { display: none; }

.subscribe-gate-card {
  max-width: 360px;
  width: 100%;
  text-align: center;
  background: var(--panel);
  border: 1px solid #2a2d3d;
  border-radius: 18px;
  padding: 32px 24px;
}
.subscribe-gate-icon {
  font-size: 48px;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 14px #6c5ce780);
}
.subscribe-gate-card h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.subscribe-gate-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.subscribe-gate-card strong { color: var(--text); }
.subscribe-gate-card .btn { width: 100%; margin-bottom: 10px; }
#subscribe-gate-note { color: #ff8080; margin-top: 4px; margin-bottom: 0; }

/* ---------- bottom navigation ---------- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  background: #14161fe6;
  backdrop-filter: blur(14px);
  border-top: 1px solid #2a2d3d;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.bottom-nav-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 6px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
}
.bottom-nav-btn .bn-icon { font-size: 20px; }
.bottom-nav-btn .bn-label {
  font-size: 11px;
  font-weight: 600;
}
.bottom-nav-btn.active { color: var(--text); }
.bottom-nav-btn.active .bn-icon { filter: drop-shadow(0 0 8px #6c5ce780); }
.bottom-nav-btn:hover { color: var(--text); }

.balance-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #262a3d, #1b1e2b);
  border: 1px solid #383d54;
  padding: 7px 16px 7px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: inset 0 1px 0 #ffffff0f, 0 4px 14px #00000040;
}
.balance-icon {
  color: #ffd166;
  filter: drop-shadow(0 0 6px #ffd16680);
}

.balance-add-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #6c5ce7, #8e7bff);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px #6c5ce766;
  transition: transform .15s ease;
}
.balance-add-btn:hover { transform: scale(1.08); }

.view {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 100px;
}
.view.hidden { display: none; }

h1 { font-size: 26px; margin-bottom: 24px; }
h2 { font-size: 22px; margin: 4px 0 20px; }

.section-title { margin-top: 0; }

/* ---------- hero banner ---------- */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 36px 30px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #1b1e2e 0%, #232744 55%, #2b2350 100%);
  border: 1px solid #383d5c80;
}
.banner-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(75px);
  pointer-events: none;
}
.glow-a { background: #6c5ce7; opacity: .55; top: -100px; right: -60px; }
.glow-b { background: #ff5c8a; opacity: .3; bottom: -120px; left: -60px; }

.banner-content { position: relative; z-index: 1; max-width: 540px; }

.banner-badge {
  display: inline-block;
  background: #ffffff14;
  border: 1px solid #ffffff26;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.banner-title {
  font-size: 32px;
  line-height: 1.16;
  margin: 0 0 12px;
  font-weight: 800;
}

.banner-sub {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 14px;
  max-width: 420px;
}

.banner-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.banner-stat { display: flex; flex-direction: column; }
.banner-stat span { font-size: 21px; font-weight: 800; }
.banner-stat small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}

/* ---------- case grid ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.case-card {
  background: var(--panel);
  border: 1px solid #2a2d3d;
  border-radius: 14px;
  padding: 18px 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.case-card .emoji {
  font-size: 48px;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 12px #00000060);
}

.case-card .name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.case-card .price {
  display: inline-block;
  background: #2a2d3d;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  color: #ffd166;
  font-weight: 700;
}

/* ---------- back button ---------- */
.back-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
  padding: 4px 0;
}
.back-btn:hover { color: var(--text); }

/* ---------- roulette ---------- */
.roulette-wrap {
  position: relative;
  margin: 20px 0 28px;
}

.marker {
  position: absolute;
  left: 50%;
  top: -8px;
  bottom: -8px;
  width: 2px;
  background: #ff3b5c;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 0 10px #ff3b5c;
}
.marker::before, .marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
}
.marker::before {
  top: -8px;
  border-width: 8px 6px 0 6px;
  border-color: #ff3b5c transparent transparent transparent;
}
.marker::after {
  bottom: -8px;
  border-width: 0 6px 8px 6px;
  border-color: transparent transparent #ff3b5c transparent;
}

.roulette-teacher-img {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 110px;
  height: auto;
  transform: translateX(-38%);
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px #00000080);
}

.roulette-viewport {
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid #2a2d3d;
  height: 150px;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.roulette-strip {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
}

.roulette-item {
  flex: 0 0 130px;
  width: 130px;
  height: 118px;
  margin: 0 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  border: 1px solid #2a2d3d;
  border-top: 3px solid var(--rarity-color, var(--c-common));
}

.roulette-item .emoji { font-size: 34px; margin-bottom: 8px; }
.roulette-item .name {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 0 6px;
  line-height: 1.3;
}
.roulette-item .value {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--rarity-color, var(--c-common));
}

/* ---------- open button ---------- */
.open-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6c5ce7, #8e7bff);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s ease, transform .1s ease;
}
.open-btn:hover { transform: translateY(-1px); }
.open-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
.open-btn span { color: #ffd166; }

.open-hint {
  text-align: center;
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 10px;
}
.open-hint.hidden { display: none; }

.hint {
  color: var(--muted);
  font-size: 14px;
  margin-top: -12px;
  margin-bottom: 24px;
}
.hint.hidden { display: none; }
.upgrade-note { margin-top: 6px; font-size: 13px; }

/* ---------- top-up ---------- */
.topup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.topup-card {
  position: relative;
  background: var(--panel);
  border: 1px solid #2a2d3d;
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.topup-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.topup-card .amount {
  font-size: 20px;
  font-weight: 800;
  color: #ffd166;
}
.topup-card .amount .star { font-size: 16px; }

.topup-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff9a3c, #ff5c8a);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}

/* ---------- inventory ---------- */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.inventory-item {
  background: var(--panel);
  border: 1px solid #2a2d3d;
  border-top: 3px solid var(--rarity-color, var(--c-common));
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.inventory-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.inventory-item .emoji { font-size: 34px; }
.inventory-item .name {
  font-size: 12px;
  margin-top: 8px;
  min-height: 32px;
}
.inventory-item .value {
  margin-top: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--rarity-color, var(--c-common));
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-2);
  border: 1px solid #2a2d3d;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 30;
  box-shadow: 0 10px 30px #00000060;
}
.toast.hidden { display: none; }

/* ---------- items preview (odds) ---------- */
.items-preview {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.preview-item {
  background: var(--panel);
  border: 1px solid #2a2d3d;
  border-top: 3px solid var(--rarity-color, var(--c-common));
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
}
.preview-item .emoji { font-size: 26px; }
.preview-item .name {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  min-height: 28px;
}
.preview-item .chance {
  font-size: 11px;
  font-weight: 700;
  color: var(--rarity-color, var(--c-common));
  margin-top: 4px;
}
.preview-item .price {
  font-size: 11px;
  font-weight: 600;
  color: #ffd166;
  margin-top: 3px;
}

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: #000000b0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.modal.hidden { display: none; }

.modal-card {
  background: var(--panel);
  border: 1px solid #2a2d3d;
  border-radius: 18px;
  padding: 32px 28px 24px;
  text-align: center;
  width: 280px;
}

.modal-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.result-item .emoji { font-size: 56px; }
.result-item .name { font-weight: 700; margin-top: 10px; font-size: 16px; }
.result-item .value {
  margin-top: 6px;
  font-weight: 700;
  font-size: 14px;
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2a2d3d;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(135deg, #6c5ce7, #8e7bff);
  border: none;
  color: #fff;
}
.btn.text {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
}
.btn.text:hover { color: var(--text); }

.withdraw-check {
  font-size: 54px;
  margin-bottom: 10px;
}
.withdraw-text {
  font-weight: 700;
  font-size: 16px;
}

/* ---------- upgrade page ---------- */
.upgrade-section-title { margin-top: 40px; }
.upgrade-section-title span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.upgrade-wheel-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 8px auto 28px;
}

.upgrade-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#4cd964 0%, #2a2d3d 0%);
  box-shadow: inset 0 0 0 8px #171923, 0 10px 30px #00000060;
}

.upgrade-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 42%;
  background: #fff;
  border-radius: 4px;
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(0deg);
  box-shadow: 0 0 10px #ffffffaa;
}

.upgrade-wheel-center {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px #2a2d3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.upgrade-chance { font-size: 28px; font-weight: 800; }
.upgrade-chance-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}

.upgrade-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.upgrade-summary-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.upgrade-summary-row span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.upgrade-summary-row strong { font-size: 16px; color: #ffd166; }
.upgrade-summary-arrow { color: var(--muted); font-size: 18px; }

.upgrade-search {
  width: 100%;
  margin: 14px 0 16px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #2a2d3d;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.upgrade-search:focus { outline: none; border-color: var(--accent); }

.selectable-grid .inventory-item { position: relative; }
.selectable-grid .inventory-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #6c5ce766;
}
.selectable-grid .inventory-item.selected::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.selectable-grid .inventory-item.disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

.upgrade-locked .selectable-grid,
.upgrade-locked .upgrade-search {
  opacity: .5;
  pointer-events: none;
}
.upgrade-locked .open-btn { opacity: .5; }

/* ---------- minigames hub ---------- */
.case-card .tagline {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- minigame list ---------- */
.minigame-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.minigame-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid #2a2d3d;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.minigame-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.minigame-card .emoji {
  font-size: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px #00000060);
}

.minigame-card .info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.minigame-card .name {
  font-weight: 700;
  font-size: 16px;
}

.minigame-card .tagline {
  font-size: 13px;
  color: var(--muted);
  margin-top: 0;
}

.minigame-card .arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 24px;
  flex-shrink: 0;
}

/* ---------- featured crash card (bigger, image poking out) ---------- */
.crash-featured-card {
  position: relative;
  overflow: visible;
  min-height: 140px;
  padding: 20px 76px 20px 20px;
  background:
    radial-gradient(circle at 20% 120%, #6c5ce74a 0%, transparent 60%),
    radial-gradient(circle at 100% -20%, #ff5c8a3d 0%, transparent 55%),
    linear-gradient(135deg, #221a35 0%, #171225 100%);
  border: 1px solid #3d2f5c;
  box-shadow: 0 14px 30px -14px #6c5ce780;
}
.crash-featured-card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: #8e7bff;
}

.crash-featured-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 40px #6c5ce730;
  pointer-events: none;
}

.crash-featured-img {
  position: absolute;
  right: 5px;
  bottom: -10px;
  width: 190px;
  height: auto;
  filter: drop-shadow(0 14px 18px #00000090);
  pointer-events: none;
  z-index: 2;
}

.crash-featured-name {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #ffd166, #ff5c8a 60%, #8e7bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px #ff5c8a40;
}

.crash-featured-card .info {
  max-width: 76%;
}

.crash-featured-card .tagline {
  font-size: 15px;
  line-height: 1.4;
}

.crash-featured-card .arrow { display: none; }

@media (max-width: 480px) {
  .crash-featured-img { width: 135px; right: 12px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .crash-featured-card { padding-right: 100px; }
}

/* ---------- featured mines card (bigger, image poking out) ---------- */
.mines-featured-card {
  position: relative;
  overflow: visible;
  min-height: 140px;
  padding: 20px 76px 20px 20px;
  background:
    radial-gradient(circle at 20% 120%, #ef46464a 0%, transparent 60%),
    radial-gradient(circle at 100% -20%, #7bd88f3d 0%, transparent 55%),
    linear-gradient(135deg, #1c2820 0%, #171f19 100%);
  border: 1px solid #2f5c3d;
  box-shadow: 0 14px 30px -14px #ef464680;
}
.mines-featured-card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: #7bd88f;
}

.mines-featured-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 40px #ef464630;
  pointer-events: none;
}

.mines-featured-img {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 225px;
  height: auto;
  filter: drop-shadow(0 14px 18px #00000090);
  pointer-events: none;
  z-index: 2;
}

.mines-featured-name {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #7bd88f, #ffd166 60%, #ef4646);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px #ef464640;
}

.mines-featured-card .info {
  max-width: 76%;
}

.mines-featured-card .tagline {
  font-size: 15px;
  line-height: 1.4;
}

.mines-featured-card .arrow { display: none; }

@media (max-width: 480px) {
  .mines-featured-img { width: 160px; right: -9px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .mines-featured-card { padding-right: 100px; }
}

/* ---------- featured plinko card (bigger, image poking out) ---------- */
.plinko-featured-card {
  position: relative;
  overflow: visible;
  min-height: 140px;
  padding: 20px 76px 20px 20px;
  background:
    radial-gradient(circle at 20% 120%, #ffd1664a 0%, transparent 60%),
    radial-gradient(circle at 100% -20%, #6c5ce73d 0%, transparent 55%),
    linear-gradient(135deg, #221a35 0%, #171225 100%);
  border: 1px solid #3d2f5c;
  box-shadow: 0 14px 30px -14px #ffd16680;
}
.plinko-featured-card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: #ffd166;
}

.plinko-featured-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 40px #ffd16630;
  pointer-events: none;
}

.plinko-featured-img {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 240px;
  height: auto;
  filter: drop-shadow(0 14px 18px #00000090);
  pointer-events: none;
  z-index: 2;
}

.plinko-featured-name {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #ffd166, #8e7bff 60%, #6c5ce7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px #ffd16640;
}

.plinko-featured-card .info {
  max-width: 76%;
}

.plinko-featured-card .tagline {
  font-size: 15px;
  line-height: 1.4;
}

.plinko-featured-card .arrow { display: none; }

@media (max-width: 480px) {
  .plinko-featured-img { width: 170px; right: -9px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .plinko-featured-card { padding-right: 100px; }
}

/* ---------- featured coin card (bigger, image poking out) ---------- */
.coin-featured-card {
  position: relative;
  overflow: visible;
  min-height: 140px;
  padding: 20px 76px 20px 20px;
  background:
    radial-gradient(circle at 20% 120%, #ff6b354a 0%, transparent 60%),
    radial-gradient(circle at 100% -20%, #ffd1663d 0%, transparent 55%),
    linear-gradient(135deg, #2a1a1a 0%, #1f1515 100%);
  border: 1px solid #5c342f;
  box-shadow: 0 14px 30px -14px #ff6b3580;
}
.coin-featured-card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: #ff6b35;
}

.coin-featured-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 40px #ff6b3530;
  pointer-events: none;
}

.coin-featured-img {
  position: absolute;
  right: -20px;
  bottom: 8px;
  width: 245px;
  height: auto;
  filter: drop-shadow(0 14px 18px #00000090);
  pointer-events: none;
  z-index: 2;
}

.coin-featured-name {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #ffd166, #ff6b35 60%, #ff5c8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px #ff6b3540;
}

.coin-featured-card .info {
  max-width: 76%;
}

.coin-featured-card .tagline {
  font-size: 15px;
  line-height: 1.4;
}

.coin-featured-card .arrow { display: none; }

@media (max-width: 480px) {
  .coin-featured-img { width: 175px; right: -9px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .coin-featured-card { padding-right: 100px; }
}

/* ---------- featured roulette card (bigger, image poking out) ---------- */
.roulette-featured-card {
  position: relative;
  overflow: visible;
  min-height: 140px;
  padding: 20px 76px 20px 20px;
  background:
    radial-gradient(circle at 20% 120%, #2a9d8f4a 0%, transparent 60%),
    radial-gradient(circle at 100% -20%, #6c5ce73d 0%, transparent 55%),
    linear-gradient(135deg, #16241f 0%, #131c19 100%);
  border: 1px solid #2f5c4f;
  box-shadow: 0 14px 30px -14px #2a9d8f80;
}
.roulette-featured-card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: #2a9d8f;
}

.roulette-featured-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 40px #2a9d8f30;
  pointer-events: none;
}

.roulette-featured-img {
  position: absolute;
  right: 25px;
  bottom: -10px;
  width: 125px;
  height: auto;
  filter: drop-shadow(0 14px 18px #00000090);
  pointer-events: none;
  z-index: 2;
}

.roulette-featured-name {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #2a9d8f, #ffd166 60%, #6c5ce7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px #2a9d8f40;
}

.roulette-featured-card .info {
  max-width: 76%;
}

.roulette-featured-card .tagline {
  font-size: 15px;
  line-height: 1.4;
}

.roulette-featured-card .arrow { display: none; }

@media (max-width: 480px) {
  .roulette-featured-img { width: 95px; right: 26px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .roulette-featured-card { padding-right: 100px; }
}

/* ---------- featured blackjack card (bigger, image poking out) ---------- */
.blackjack-featured-card {
  position: relative;
  overflow: visible;
  min-height: 140px;
  padding: 20px 76px 20px 20px;
  background:
    radial-gradient(circle at 20% 120%, #ff3b3b4a 0%, transparent 60%),
    radial-gradient(circle at 100% -20%, #3b5cff3d 0%, transparent 55%),
    linear-gradient(135deg, #1a1f2e 0%, #141821 100%);
  border: 1px solid #2f3d5c;
  box-shadow: 0 14px 30px -14px #ff3b3b80;
}
.blackjack-featured-card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: #ff3b3b;
}

.blackjack-featured-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 40px #ff3b3b30;
  pointer-events: none;
}

.blackjack-featured-img {
  position: absolute;
  right: -20px;
  bottom: 10px;
  width: 245px;
  height: auto;
  filter: drop-shadow(0 14px 18px #00000090);
  pointer-events: none;
  z-index: 2;
}

.blackjack-featured-name {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #ff3b3b, #3b5cff 60%, #ffd166);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px #ff3b3b40;
}

.blackjack-featured-card .info {
  max-width: 76%;
}

.blackjack-featured-card .tagline {
  font-size: 15px;
  line-height: 1.4;
}

.blackjack-featured-card .arrow { display: none; }

@media (max-width: 480px) {
  .blackjack-featured-img { width: 175px; right: -9px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .blackjack-featured-card { padding-right: 100px; }
}

/* ---------- ratushnyak banner ---------- */
.ratushnyak-banner {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  min-height: 260px;
  margin-bottom: 28px;
  padding: 22px 260px 22px 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 130%, #ffd16640 0%, transparent 60%),
    radial-gradient(circle at 100% -30%, #1fae7a4a 0%, transparent 55%),
    linear-gradient(135deg, #0d2a20 0%, #0f1c2e 60%, #0e0f14 100%);
  border: 1px solid #1f6b4f;
  box-shadow: 0 16px 34px -16px #1fae7a80;
}

.ratushnyak-banner-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 50px #1fae7a40;
  pointer-events: none;
}

.ratushnyak-banner-img {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 360px;
  height: auto;
  filter: drop-shadow(0 14px 20px #00000090);
  pointer-events: none;
  z-index: 2;
}

.ratushnyak-banner-content {
  position: relative;
  z-index: 1;
}

.ratushnyak-banner-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
}

.ratushnyak-banner-title-accent {
  background: linear-gradient(135deg, #ffd166, #1fae7a 60%, #4cd9a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ratushnyak-banner-sub {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 16px;
}

.ratushnyak-depnut-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #171225;
  background: linear-gradient(135deg, #ffd166, #ffb020);
  box-shadow: 0 8px 20px -6px #ffd16690;
  cursor: pointer;
  transition: transform .15s ease;
}
.ratushnyak-depnut-btn:hover { transform: translateY(-2px) scale(1.03); }

@media (max-width: 480px) {
  .ratushnyak-banner { padding: 20px 175px 20px 18px; min-height: 200px; }
  .ratushnyak-banner-img { width: 210px; }
  .ratushnyak-banner-title { font-size: 15px; }
}

/* ---------- crash game ---------- */
.crash-history {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.crash-hist-chip {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  background: #ffffff0d;
}
.crash-hist-chip.hist-low { color: #ff6b6b; }
.crash-hist-chip.hist-mid { color: #ffb020; }
.crash-hist-chip.hist-high { color: #4cd964; }

.crash-stage {
  position: relative;
  height: 260px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 110%, #6c5ce74a 0%, transparent 55%),
    radial-gradient(circle at 85% -10%, #ff5c8a33 0%, transparent 50%),
    linear-gradient(180deg, #1b1e2e 0%, #101219 100%);
  border: 1px solid #2f3350;
  box-shadow: inset 0 0 40px #00000050, 0 20px 40px -20px #00000080;
  overflow: hidden;
  margin: 0 0 24px;
}

.crash-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff0a 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%);
}

.crash-multiplier {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-size: 46px;
  font-weight: 800;
  color: #4cd964;
  letter-spacing: -0.5px;
  transition: color .2s ease;
  text-shadow: 0 0 30px #4cd96470;
}
.crash-multiplier.crash-flying-pulse { animation: crash-pulse 0.6s ease-in-out infinite; }
.crash-multiplier.crash-lost { color: #ff5c5c; text-shadow: 0 0 30px #ff5c5c70; }

@keyframes crash-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.crash-sky { position: absolute; inset: 0; }

.crash-path-svg { width: 100%; height: 100%; overflow: visible; }
#crash-path {
  stroke: url(#crash-line-gradient);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px #6c5ce7a0);
}

.crash-rocket {
  position: absolute;
  width: 64px;
  height: auto;
  transform: translate(-50%, -50%);
  left: 3.3%;
  top: 95%;
  filter: drop-shadow(0 4px 10px #00000070) drop-shadow(0 0 14px #ff9f4380);
}
.crash-rocket.crash-rocket-flying { animation: crash-wobble 0.5s ease-in-out infinite; }

@keyframes crash-wobble {
  0%, 100% { transform: translate(-50%, -50%) rotate(-4deg); }
  50% { transform: translate(-50%, -50%) rotate(4deg); }
}

.crash-result {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}
.crash-result.hidden { display: none; }
.crash-result.crash-result-win { color: #4cd964; }
.crash-result.crash-result-lose { color: #ff5c5c; }

.crash-bet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.crash-bet-row > span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.crash-bet-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.crash-bet-input-wrap input {
  width: 110px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #2a2d3d;
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
}
.crash-bet-input-wrap input:focus { outline: none; border-color: var(--accent); }

.crash-bet-btn {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #2a2d3d;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s ease, transform .1s ease;
}
.crash-bet-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

#crash-action-btn { max-width: none; }

.open-btn.cashout {
  background: linear-gradient(135deg, #2ecc71, #21d07a);
  box-shadow: 0 6px 24px #2ecc7166;
  animation: crash-cashout-glow 1s ease-in-out infinite;
}

@keyframes crash-cashout-glow {
  0%, 100% { box-shadow: 0 6px 24px #2ecc7166; transform: translateY(0); }
  50% { box-shadow: 0 8px 34px #2ecc71b0; transform: translateY(-1px); }
}

.crash-flying #crash-back-btn,
.crash-flying .crash-bet-input-wrap {
  opacity: .5;
  pointer-events: none;
}

/* ---------- plinko game ---------- */
.plinko-board {
  position: relative;
  height: 260px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 110%, #6c5ce74a 0%, transparent 55%),
    radial-gradient(circle at 85% -10%, #ff5c8a33 0%, transparent 50%),
    linear-gradient(180deg, #1b1e2e 0%, #101219 100%);
  border: 1px solid #2f3350;
  box-shadow: inset 0 0 40px #00000050, 0 20px 40px -20px #00000080;
  overflow: hidden;
  margin: 18px 0 10px;
}

.plinko-door-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}
.plinko-door-bg svg { width: 100%; height: 100%; }

.plinko-pegs { position: absolute; inset: 0; z-index: 1; }

.plinko-peg {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a4f6b;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px #00000070;
}

.plinko-balls { position: absolute; inset: 0; z-index: 1; }

.plinko-ball {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffd166 55%, #ff9f43);
  box-shadow: 0 0 14px #ffd16690;
  left: 50%;
  top: 4%;
  transform: translate(-50%, -50%);
  transition: left 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), top 0.28s ease-in;
}

.plinko-slots {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}

.plinko-slot {
  flex: 1;
  text-align: center;
  padding: 10px 2px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: var(--panel-2);
  border: 1px solid #2a2d3d;
  color: var(--muted);
  transition: transform .2s ease, box-shadow .2s ease;
}
.plinko-slot.tier-common { color: var(--c-common); }
.plinko-slot.tier-uncommon { color: var(--c-uncommon); }
.plinko-slot.tier-rare { color: var(--c-rare); }
.plinko-slot.tier-epic { color: var(--c-epic); }
.plinko-slot.tier-legendary { color: var(--c-legendary); }
.plinko-slot.landed {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 24px #00000070;
  border-color: currentColor;
}

.plinko-result {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.plinko-result.hidden { display: none; }
.plinko-result.plinko-result-up { color: #4cd964; }
.plinko-result.plinko-result-down { color: #ff9f43; }

.plinko-slot-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
  min-height: 12px;
}

.plinko-count-group {
  display: flex;
  gap: 6px;
}

.plinko-count-btn {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #2a2d3d;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.plinko-count-btn:hover { border-color: var(--accent); }
.plinko-count-btn.active {
  background: linear-gradient(135deg, #6c5ce7, #8e7bff);
  border-color: transparent;
  color: #fff;
}

#plinko-drop-btn { max-width: none; }

.plinko-dropping #plinko-back-btn,
.plinko-dropping .crash-bet-input-wrap,
.plinko-dropping .plinko-count-group {
  opacity: .5;
  pointer-events: none;
}

/* ---------- mines game ---------- */
.mines-multiplier {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #4cd964;
  margin: 4px 0 16px;
  text-shadow: 0 0 20px #4cd96460;
  transition: color .2s ease;
}
.mines-multiplier.mines-lost { color: #ff5c5c; text-shadow: 0 0 20px #ff5c5c60; }

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.mines-tile {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid #2a2d3d;
  background: url("img/natalia-crate-tile.png") center / cover no-repeat;
  font-size: 22px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.mines-tile:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--accent); }
.mines-tile:disabled { cursor: default; }
.mines-tile.safe {
  background: linear-gradient(145deg, #1f3a2a, #16281e);
  border-color: #2f6b45;
}
.mines-tile.mine {
  background: linear-gradient(145deg, #3a1f28, #281620);
  border-color: #6b2f3f;
}
.mines-tile.mine-hit {
  animation: mines-shake .4s ease;
  box-shadow: 0 0 20px #ff5c5c80;
}

@keyframes mines-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

#mines-action-btn { max-width: none; }

.mines-playing .crash-bet-input-wrap,
.mines-playing .plinko-count-group {
  opacity: .5;
  pointer-events: none;
}
.mines-playing #mines-back-btn {
  opacity: .5;
  pointer-events: none;
}

/* ---------- coin flip game ---------- */
.coin-stage {
  display: flex;
  justify-content: center;
  margin: 10px 0 18px;
}

.coin-3d {
  width: 260px;
  height: 260px;
  perspective: 900px;
  filter: drop-shadow(0 10px 20px #00000060);
  transition: filter .3s ease;
}
.coin-3d.coin-win { filter: drop-shadow(0 0 16px #4cd964); }
.coin-3d.coin-lose { filter: drop-shadow(0 0 16px #ff5c5c); }

.coin-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
}

.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 800;
  color: #4a2f0a;
  background: radial-gradient(circle at 35% 30%, #fff8dc, #ffd166 45%, #e8a33d 75%, #b9791f 100%);
  box-shadow: inset 0 0 0 4px #b9791f80;
  backface-visibility: hidden;
}
.coin-face-back { transform: rotateY(180deg); }

.coin-face-img {
  width: 95%;
  height: 95%;
  object-fit: contain;
  pointer-events: none;
}

.coin-payout-hint {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.coin-payout-hint strong { color: #ffd166; }

.coin-choice-group {
  display: flex;
  gap: 10px;
  flex: 1;
}
.coin-choice-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2a2d3d;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.coin-choice-btn:hover { border-color: var(--accent); }
.coin-choice-btn.active {
  background: linear-gradient(135deg, #6c5ce7, #8e7bff);
  border-color: transparent;
  color: #fff;
}

#coin-flip-btn { max-width: none; }

.coin-flipping #coin-back-btn,
.coin-flipping .crash-bet-input-wrap,
.coin-flipping .coin-choice-group {
  opacity: .5;
  pointer-events: none;
}

/* ---------- roulette game ---------- */
.rl-strip-item {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  margin: 0 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}
.rl-strip-item.rl-color-red { background: linear-gradient(145deg, #b8324a, #7a1f30); }
.rl-strip-item.rl-color-black { background: linear-gradient(145deg, #33374e, #1c1e2b); }
.rl-strip-item.rl-color-green { background: linear-gradient(145deg, #2f9155, #175630); }

.rl-outside-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.rl-outside-btn {
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid #2a2d3d;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: border-color .15s ease;
}
.rl-outside-btn:hover { border-color: var(--accent); }
.rl-outside-btn .rl-payout { font-size: 11px; color: #ffd166; font-weight: 800; }
.rl-outside-btn.active {
  background: linear-gradient(135deg, #6c5ce7, #8e7bff);
  border-color: transparent;
  color: #fff;
}
.rl-outside-btn.active .rl-payout { color: #fff; }

.rl-number-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 22px;
}
.rl-number-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid #2a2d3d;
  font-weight: 800;
  font-size: 13px;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.rl-number-cell.rl-color-red { background: linear-gradient(145deg, #b8324a, #7a1f30); }
.rl-number-cell.rl-color-black { background: linear-gradient(145deg, #33374e, #1c1e2b); }
.rl-number-cell.rl-color-green { background: linear-gradient(145deg, #2f9155, #175630); }
.rl-number-cell:hover { transform: translateY(-2px); }
.rl-number-cell.active {
  box-shadow: 0 0 0 2px #fff, 0 0 14px #ffffff90;
  transform: translateY(-2px);
}

#rl-spin-btn { max-width: none; }

.rl-spinning #roulette-back-btn,
.rl-spinning .crash-bet-input-wrap,
.rl-spinning .rl-outside-group,
.rl-spinning .rl-number-grid {
  opacity: .5;
  pointer-events: none;
}

/* ---------- blackjack game ---------- */
.bj-lose-img {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 260px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px #00000090);
  animation: bj-lose-pop .35s ease;
}

@keyframes bj-lose-pop {
  0% { transform: scale(0.7) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.bj-table {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 10px 0 18px;
  padding: 20px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, #1f3a2a 0%, #101b14 70%);
  border: 1px solid #2a2d3d;
}

.bj-seat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.bj-seat-label span {
  color: #ffd166;
  font-weight: 800;
  font-size: 16px;
  margin-left: 8px;
  text-transform: none;
  letter-spacing: normal;
}

.bj-hand {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 76px;
}

.bj-card {
  width: 52px;
  height: 74px;
  border-radius: 8px;
  background: #f4f1ea;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
  box-shadow: 0 4px 10px #00000050;
}
.bj-card.red { color: #c0293c; }
.bj-card.hidden {
  background: repeating-linear-gradient(135deg, #4b3fa8, #4b3fa8 6px, #6c5ce7 6px, #6c5ce7 12px);
}

#bj-deal-btn { max-width: none; }
#bj-deal-btn.hidden { display: none; }

.bj-action-group {
  display: flex;
  gap: 8px;
}
.bj-action-group.hidden { display: none; }
.bj-action-group .btn {
  flex: 1;
  padding: 14px;
  font-size: 14px;
}
.bj-action-group .btn:disabled { opacity: .4; cursor: default; }

.bj-playing #bj-back-btn,
.bj-playing .crash-bet-input-wrap {
  opacity: .5;
  pointer-events: none;
}
