/* =========================================
   BC-style structure + Bloxio identity
   Works with casino.html FINAL STRUCTURE
========================================= */
#casinoPage {
  --cx-bg: #111315;
  --cx-bg-2: #171a1d;
  --cx-bg-3: #1f2327;
  --cx-bg-4: #262b2f;
  --cx-surface: #232729;
  --cx-surface-2: #2a2f33;
  --cx-surface-3: #30363b;
  --cx-line: rgba(255, 255, 255, 0.06);
  --cx-line-2: rgba(255, 255, 255, 0.08);
  --cx-text: #f5f7fa;
  --cx-text-soft: #c8d0d8;
  --cx-text-dim: #8f9aa7;
  --cx-green: #2ee57f;
  --cx-green-2: #25d973;
  --cx-green-dark: #18a95a;
  --cx-orange: #ffad32;
  --cx-red: #ff5b67;
  --cx-blue: #4da7ff;
  --cx-radius-xs: 10px;
  --cx-radius-sm: 12px;
  --cx-radius-md: 14px;
  --cx-radius-lg: 18px;
  --cx-radius-xl: 22px;
  --cx-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
  --cx-shadow-card: 0 12px 30px rgba(0, 0, 0, 0.22);
  --cx-shadow-green: 0 0 0 1px rgba(46, 229, 127, 0.12), 0 8px 30px rgba(46, 229, 127, 0.16);
  --cx-maxw: 430px;
  --cx-side: 14px;
  --cx-gap: 12px;
  --cx-gap-lg: 16px;
  --cx-transition: 180ms ease;
  color: var(--cx-text);
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(46, 229, 127, 0.04), transparent 28%),
    radial-gradient(circle at top right, rgba(77, 167, 255, 0.035), transparent 24%),
    linear-gradient(180deg, #101214 0%, #141719 100%);
  box-sizing: border-box;
}

#casinoPage *,
#casinoPage *::before,
#casinoPage *::after {
  box-sizing: border-box;
}

#casinoPage button,
#casinoPage input {
  font: inherit;
}

#casinoPage img {
  display: block;
  max-width: 100%;
}

#casinoPage .hidden {
  display: none !important;
}

/* =========================
   PAGE WRAP
========================= */
#casinoPage .casino-lobby,
#casinoPage .casino-game-view {
  width: 100%;
  max-width: var(--cx-maxw);
  margin: 0 auto;
  padding: 14px var(--cx-side) 120px;
}

/* =========================
   TOPBAR
========================= */
#casinoPage .casino-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

#casinoPage .casino-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#casinoPage .casino-brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2c3136 0%, #21262a 100%);
  border: 1px solid var(--cx-line);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: var(--cx-shadow-soft);
  flex: 0 0 auto;
}

#casinoPage .casino-brand-copy {
  min-width: 0;
}

#casinoPage .casino-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

#casinoPage .casino-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--cx-text-dim);
  font-weight: 600;
}

#casinoPage .casino-icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--cx-surface-2);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--cx-shadow-soft);
  transition: transform var(--cx-transition), background var(--cx-transition);
}

#casinoPage .casino-icon-btn:active {
  transform: scale(0.96);
}

/* =========================
   MARKET STATS STRIP
========================= */
#casinoPage .market-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

#casinoPage .market-stat-card {
  background: linear-gradient(180deg, rgba(42, 47, 51, 0.98) 0%, rgba(34, 39, 43, 0.98) 100%);
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  padding: 12px 12px 11px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--cx-shadow-soft);
}

#casinoPage .market-stat-label {
  display: block;
  font-size: 11px;
  color: var(--cx-text-dim);
  margin-bottom: 6px;
  font-weight: 700;
}

#casinoPage .market-stat-card strong {
  font-size: 17px;
  line-height: 1.1;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
}

#casinoPage #casinoBalanceTop {
  color: var(--cx-green);
}

/* =========================
   TICKER PULSE
========================= */
#casinoPage .ticker-pulse-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(36, 40, 44, 0.92);
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  padding: 10px 12px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--cx-shadow-soft);
}

#casinoPage .ticker-pulse-label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  color: var(--cx-green);
  background: rgba(46, 229, 127, 0.12);
  border: 1px solid rgba(46, 229, 127, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
}

#casinoPage .ticker-pulse-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#casinoPage .ticker-pulse-track::-webkit-scrollbar {
  display: none;
}

#casinoPage .ticker-item {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #2a2f33;
  color: var(--cx-text-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

#casinoPage .ticker-item.win {
  border: 1px solid rgba(46, 229, 127, 0.12);
}

#casinoPage .ticker-item.loss {
  border: 1px solid rgba(255, 91, 103, 0.12);
}

/* =========================
   FILTER TABS
========================= */
#casinoPage .casino-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

#casinoPage .casino-filter-tab {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--cx-surface-2);
  color: var(--cx-text-soft);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--cx-transition);
}

#casinoPage .casino-filter-tab.active {
  background: #343a3f;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(46, 229, 127, 0.7);
}

/* =========================
   GAMES GRID
========================= */
#casinoPage .casino-games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

#casinoPage .casino-game-card {
  background: linear-gradient(180deg, rgba(35, 39, 41, 0.98) 0%, rgba(29, 33, 36, 0.98) 100%);
  border: 1px solid var(--cx-line);
  border-radius: 18px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition: transform var(--cx-transition), border-color var(--cx-transition), box-shadow var(--cx-transition);
  box-shadow: var(--cx-shadow-soft);
  min-width: 0;
}

#casinoPage .casino-game-card:hover,
#casinoPage .casino-game-card:active {
  transform: translateY(-1px);
  border-color: rgba(46, 229, 127, 0.22);
  box-shadow: var(--cx-shadow-green);
}

#casinoPage .casino-game-thumb {
  width: 100%;
  aspect-ratio: 0.74 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #191d20;
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 9px;
}

#casinoPage .casino-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#casinoPage .casino-game-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#casinoPage .casino-game-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#casinoPage .casino-game-type {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--cx-text-dim);
}

/* =========================
   SECTION CARD
========================= */
#casinoPage .casino-section-card,
#casinoPage .game-shell-card,
#casinoPage .players-card,
#casinoPage .fairness-card,
#casinoPage .settings-card,
#casinoPage .bet-panel {
  background: linear-gradient(180deg, rgba(35, 39, 41, 0.98) 0%, rgba(30, 34, 37, 0.98) 100%);
  border: 1px solid var(--cx-line);
  border-radius: 20px;
  box-shadow: var(--cx-shadow-card);
}

#casinoPage .casino-section-card {
  padding: 14px;
}

#casinoPage .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

#casinoPage .section-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

#casinoPage .section-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(46, 229, 127, 0.12);
  color: var(--cx-green);
  font-size: 11px;
  font-weight: 800;
}

#casinoPage .big-wins-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#casinoPage .big-win-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--cx-line);
  border-radius: 14px;
  padding: 12px 12px;
}

#casinoPage .big-win-row .player {
  font-weight: 800;
  color: #fff;
}

#casinoPage .big-win-row .game {
  color: var(--cx-text-soft);
  font-weight: 700;
}

#casinoPage .big-win-row .amount {
  color: var(--cx-green);
  font-weight: 900;
}

/* =========================
   GAME VIEW TOPBAR
========================= */
#casinoPage .game-shell-topbar {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

#casinoPage .game-back-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: #3b4348;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--cx-shadow-soft);
}

#casinoPage .game-login-btn {
  min-width: 124px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--cx-green) 0%, var(--cx-green-2) 100%);
  color: #08130d;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(46, 229, 127, 0.18);
}

#casinoPage .game-topbar-center {
  min-width: 0;
}

#casinoPage .game-header-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 4px;
  border-radius: 16px;
  border: 1px solid var(--cx-line);
}

#casinoPage .game-header-tab {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--cx-text-dim);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

#casinoPage .game-header-tab.active {
  background: #3a4044;
  color: #fff;
}

/* =========================
   GAME SHELL
========================= */
#casinoPage .game-shell-card {
  padding: 12px;
}

/* =========================
   PULSE STRIP
========================= */
#casinoPage .game-pulse-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cx-line);
  margin-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#casinoPage .game-pulse-strip::-webkit-scrollbar {
  display: none;
}

#casinoPage .pulse-pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

#casinoPage .pulse-pill.green {
  background: rgba(46, 229, 127, 0.12);
  color: var(--cx-green);
}

#casinoPage .pulse-pill.orange {
  background: rgba(255, 173, 50, 0.12);
  color: var(--cx-orange);
}

#casinoPage .pulse-mini-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #3a4044;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

/* =========================
   ENGINE STAGE
========================= */
#casinoPage .game-engine-stage {
  background: linear-gradient(180deg, #3a413f 0%, #2f3533 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
}

#casinoPage .game-engine-caption {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  background: rgba(0, 0, 0, 0.08);
}

#casinoPage .game-engine-multiplier {
  padding: 18px 14px 6px;
  text-align: center;
  font-size: clamp(48px, 13vw, 72px);
  line-height: 0.95;
  font-weight: 900;
  color: var(--cx-green);
  letter-spacing: -0.04em;
}

#casinoPage .game-engine-body {
  min-height: 360px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

/* =========================
   BET PANEL
========================= */
#casinoPage .bet-panel {
  padding: 14px;
  margin-bottom: 14px;
}

#casinoPage .bet-block {
  margin-bottom: 14px;
}

#casinoPage .bet-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#casinoPage .bet-label-row label {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}

#casinoPage .bet-help {
  font-size: 14px;
  color: var(--cx-green);
  font-weight: 800;
}

#casinoPage .bet-input-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

#casinoPage .bet-amount-box {
  min-height: 56px;
  border-radius: 14px;
  background: #202529;
  border: 1px solid var(--cx-line-2);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

#casinoPage .bet-currency {
  flex: 0 0 auto;
  color: var(--cx-green);
  font-size: 13px;
  font-weight: 900;
}

#casinoPage #betAmountInput {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  padding: 0;
}

#casinoPage .bet-side-actions {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  gap: 8px;
}

#casinoPage .bet-side-btn {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: #3b4247;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

#casinoPage .bet-side-btn.icon {
  font-size: 18px;
}

/* =========================
   DYNAMIC CONTROLS
========================= */
#casinoPage .dynamic-bet-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

#casinoPage .dynamic-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--cx-line);
  border-radius: 18px;
  padding: 12px;
}

#casinoPage .dynamic-card-title {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

#casinoPage .segmented-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

#casinoPage .segmented-row.three {
  grid-template-columns: repeat(3, 1fr);
}

#casinoPage .seg-btn {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: #252a2f;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: all var(--cx-transition);
}

#casinoPage .seg-btn.active {
  background: linear-gradient(180deg, var(--cx-green) 0%, var(--cx-green-2) 100%);
  color: #09130d;
  box-shadow: 0 10px 28px rgba(46, 229, 127, 0.16);
}

#casinoPage .inline-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

#casinoPage .inline-value-row span {
  font-size: 14px;
  font-weight: 800;
  color: var(--cx-text-soft);
}

#casinoPage .inline-value-row strong {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
}

#casinoPage .mini-input {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--cx-line-2);
  background: #202529;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  padding: 0 14px;
  outline: none;
}

#casinoPage input[type="range"] {
  width: 100%;
  accent-color: var(--cx-green);
}

/* =========================
   PLAY BUTTON
========================= */
#casinoPage .play-main-btn {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--cx-green) 0%, var(--cx-green-2) 100%);
  color: #08130d;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(46, 229, 127, 0.18);
}

/* =========================
   SETTINGS CARD
========================= */
#casinoPage .settings-card {
  position: relative;
  padding: 12px;
}

#casinoPage .settings-card-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: linear-gradient(180deg, #4af291 0%, #2fdc79 100%);
  color: #0b130f;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(46, 229, 127, 0.16);
}

#casinoPage .settings-main-btn {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: #3a4044;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  margin-bottom: 12px;
}

#casinoPage .settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--cx-line);
  margin: 0 -12px;
  padding: 0 12px;
}

#casinoPage .settings-tab {
  min-height: 54px;
  border: 0;
  background: transparent;
  color: var(--cx-text-dim);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  position: relative;
}

#casinoPage .settings-tab.active {
  color: #fff;
}

#casinoPage .settings-tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: var(--cx-green);
}

#casinoPage .settings-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}

#casinoPage .settings-tool-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--cx-text-soft);
  font-size: 22px;
  cursor: pointer;
}

#casinoPage .settings-tool-btn.active {
  color: #fff;
}

/* =========================
   FAIRNESS
========================= */
#casinoPage .fairness-card {
  padding: 14px;
  margin-bottom: 14px;
}

#casinoPage .fairness-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

#casinoPage .fairness-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 4px;
}

#casinoPage .fairness-row span {
  font-size: 12px;
  color: var(--cx-text-dim);
  font-weight: 700;
}

#casinoPage .fairness-row strong {
  font-size: 15px;
  color: #fff;
  font-weight: 900;
  word-break: break-word;
}

#casinoPage .seed-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: #2f353a;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

/* =========================
   PLAYERS CARD
========================= */
#casinoPage .players-card {
  padding: 12px;
}

#casinoPage .players-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cx-line);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

#casinoPage .players-live,
#casinoPage .players-total {
  display: flex;
  align-items: center;
  gap: 8px;
}

#casinoPage .dot-live {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cx-green);
  box-shadow: 0 0 0 6px rgba(46, 229, 127, 0.08);
}

#casinoPage .players-head strong {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

#casinoPage .players-table-head {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 10px;
  padding: 0 8px 10px;
  color: var(--cx-text-dim);
  font-size: 12px;
  font-weight: 800;
}

#casinoPage .players-table-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#casinoPage .player-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 8px;
  border-radius: 12px;
}

#casinoPage .player-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.015);
}

#casinoPage .player-row .name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#casinoPage .player-row .cashout {
  font-size: 14px;
  font-weight: 800;
  color: var(--cx-text-soft);
}

#casinoPage .player-row .amount {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  text-align: right;
}

/* =========================
   GAME ENGINE HELPERS
   (used by JS injected engines)
========================= */
#casinoPage .engine-center {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#casinoPage .engine-column {
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

#casinoPage .engine-muted {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 700;
}

#casinoPage .engine-card {
  width: 100%;
  max-width: 320px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.12);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

/* =========================
   LIMBO / AIRBOSS ROCKET VISUAL
========================= */
#casinoPage .rocket-scene {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06), transparent 16%),
    radial-gradient(circle at 85% 18%, rgba(255,255,255,0.05), transparent 12%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.06) 100%);
}

#casinoPage .rocket-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.14) 100%);
}

#casinoPage .rocket-ship {
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  font-size: 94px;
  line-height: 1;
  filter: drop-shadow(0 10px 24px rgba(46, 229, 127, 0.12));
}

#casinoPage .rocket-smoke {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-size: 54px;
  opacity: 0.95;
}

/* =========================
   CRASH GRAPH
========================= */
#casinoPage .crash-chart-wrap {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.08));
  background-size: 42px 42px, 42px 42px, cover;
  position: relative;
  overflow: hidden;
}

#casinoPage .crash-chart-svg {
  width: 100%;
  height: 100%;
}

#casinoPage .crash-line {
  fill: none;
  stroke: #d8fff0;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#casinoPage .crash-dot {
  fill: var(--cx-green);
  filter: drop-shadow(0 0 10px rgba(46, 229, 127, 0.5));
}

/* =========================
   SLOT / REELS
========================= */
#casinoPage .slot-reels {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

#casinoPage .slot-reel {
  aspect-ratio: 1 / 1.28;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.08));
  border: 1px solid rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  font-size: 54px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* =========================
   BIRDS / PICK GAME
========================= */
#casinoPage .pick-grid {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

#casinoPage .pick-card {
  aspect-ratio: 1 / 1.15;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.08));
  border: 1px solid rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  font-size: 46px;
  color: #fff;
  cursor: pointer;
  transition: transform var(--cx-transition), border-color var(--cx-transition), box-shadow var(--cx-transition);
}

#casinoPage .pick-card:active,
#casinoPage .pick-card.active {
  transform: scale(0.98);
  border-color: rgba(46, 229, 127, 0.22);
  box-shadow: var(--cx-shadow-green);
}

/* =========================
   BLACKJACK
========================= */
#casinoPage .blackjack-board {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#casinoPage .bj-hand {
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 16px;
}

#casinoPage .bj-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  margin-bottom: 10px;
}

#casinoPage .bj-score {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

#casinoPage .bj-cards {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

#casinoPage .bj-card {
  width: 58px;
  height: 80px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #dbe4ea 100%);
  color: #0d1418;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
}

/* =========================
   PLINKO
========================= */
#casinoPage .plinko-board {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 1 / 1.18;
  border-radius: 18px;
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

#casinoPage .plinko-peg {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
}

#casinoPage .plinko-ball {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--cx-green);
  box-shadow: 0 0 18px rgba(46, 229, 127, 0.45);
}

/* =========================
   DICE
========================= */
#casinoPage .dice-stage {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#casinoPage .dice-number {
  text-align: center;
  font-size: 62px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
}

#casinoPage .dice-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

#casinoPage .dice-fill {
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cx-green), #8af5bc);
}

/* =========================
   HILO
========================= */
#casinoPage .hilo-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#casinoPage .hilo-card {
  width: 120px;
  height: 168px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fafc 0%, #dce4ea 100%);
  color: #0f1418;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* =========================
   RESPONSIVE TUNING
========================= */
@media (max-width: 380px) {
  #casinoPage {
    --cx-side: 12px;
  }

  #casinoPage .market-stat-card strong {
    font-size: 15px;
  }

  #casinoPage .casino-games-grid {
    gap: 10px;
  }

  #casinoPage .casino-game-card {
    padding: 8px;
    border-radius: 16px;
  }

  #casinoPage .casino-game-name {
    font-size: 13px;
  }

  #casinoPage .bet-side-actions {
    grid-template-columns: repeat(3, 56px);
  }

  #casinoPage .game-login-btn {
    min-width: 110px;
    padding: 0 14px;
    font-size: 14px;
  }

  #casinoPage .game-engine-body {
    min-height: 320px;
  }
}

/* =========================
   SAFE SPACING FOR BOTTOM NAV
========================= */
@supports (padding: max(0px)) {
  #casinoPage .casino-lobby,
  #casinoPage .casino-game-view {
    padding-bottom: max(120px, env(safe-area-inset-bottom) + 96px);
  }
}
