/* Base Resets and Variables */
:root {
  --color-bg-dark: #0a0b16;
  --color-indigo-clay: #312e81;
  --color-gold-light: #fef08a;
  --color-gold-mid: #eab308;
  --color-gold-deep: #ca8a04;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  padding: 0;
  width: 100% !important;
  min-height: calc(100vh + 45px);
  min-height: calc(100svh + 45px);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-bg-dark);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #ffffff;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  padding-bottom: 50px;
  box-sizing: border-box;
}

/* Cosmic Ambient Background */
#cosmic_canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  z-index: 1;
}

.app-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

/* Core Game Viewport Housing */
.game-viewport {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  max-width: 380px;
  max-height: 740px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 12px 10px;
  box-sizing: border-box;
}

/* Decorative ambient glow nodes behind interface */
.glow-node-top {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(109, 40, 217, 0.2);
  filter: blur(120px);
  pointer-events: none;
  z-index: 2;
}

.glow-node-bottom {
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background-color: rgba(79, 70, 229, 0.25);
  filter: blur(130px);
  pointer-events: none;
  z-index: 2;
}

/* Header Area Styling */
.clay-header-card {
  width: 100%;
  background: linear-gradient(135deg, #131438 0%, #1c1042 100%);
  border: 2.5px solid #3c33ab;
  box-shadow: 
    inset 0 3px 8px rgba(255, 255, 255, 0.25),
    inset 0 -3px 8px rgba(0, 0, 0, 0.7),
    0 6px 15px rgba(0, 0, 0, 0.55);
  border-radius: 16px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 11;
}

.balance-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gold-inventory-emblem {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.balance-info {
  display: flex;
  flex-direction: column;
}

.balance-lbl {
  font-size: 8px;
  font-weight: 800;
  color: #818cf8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}

.balance-num {
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Header controllers */
.header-actions {
  display: flex;
  gap: 8px;
}

/* Premium Rounded Button */
.clay-round-btn {
  width: 32px;
  height: 32px;
  background: linear-gradient(180deg, #312e81 0%, #12103a 100%);
  border: 2.5px solid #4338ca;
  box-shadow: 
    inset 0 3px 6px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.6),
    0 6px 12px rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7d2fe;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.clay-round-btn:hover {
  border-color: #4f46e5;
  background: linear-gradient(180deg, #3730a3 0%, #151245 100%);
  box-shadow: 
    inset 0 4px 8px rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.6),
    0 8px 16px rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
}

.clay-round-btn:active {
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.12),
    0 3px 6px rgba(0, 0, 0, 0.4);
  transform: translateY(0.5px);
}

.clay-round-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Center Space (Slot Box Frame) */
.board-wrapper {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 10;
  margin: 6px 0;
}

.beveled-slot-container {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #050511 0%, #120e28 100%);
  border: 3.5px solid #1f1d56;
  box-shadow: 
    inset 0 10px 20px rgba(0, 0, 0, 0.95),
    inset 0 -5px 12px rgba(255, 255, 255, 0.04),
    0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 15px 35px rgba(0, 0, 0, 0.85);
  border-radius: 24px;
  padding: 6px;
}

/* Golden Inner Fillet Boundary layer */
.gold-inner-bound {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border-radius: 20px;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  pointer-events: none;
  z-index: 20;
}

/* WebGL 3D Elements Canvas Area */
#canvas_container {
  position: relative;
  width: 100%;
  height: 220px;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* Blueprint vertical slot columns lines */
.blueprint-line-left, .blueprint-line-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(99, 102, 241, 0) 0%, rgba(34, 211, 238, 0.12) 50%, rgba(99, 102, 241, 0) 100%);
  pointer-events: none;
  z-index: 2;
}
.blueprint-line-left { left: 33.3%; }
.blueprint-line-right { left: 66.6%; }

/* Visual Grid cell highlighters for Winning symbols mapping */
#grid_highlights_container {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  pointer-events: none;
  z-index: 15;
}

.grid-highlight-cell {
  border: 3px solid transparent;
  border-radius: 16px;
  transition: all 0.25s ease;
}

.grid-highlight-cell.winner-flash {
  border-color: transparent;
  box-shadow: none;
}

@keyframes win-cell-glow {
  0% { transform: scale(0.98); opacity: 0.85; }
  100% { transform: scale(1.02); opacity: 1; }
}

/* Playline horizontal active labels (Hidden as requested) */
.winning-ribbon-tag {
  display: none !important;
}

@keyframes active-tag-pulse {
  0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 8px 16px rgba(0,0,0,0.6); }
  100% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 8px 20px rgba(234, 179, 8, 0.4); }
}

/* Ready state ribbon */
.status-band-card {
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(81, 45, 168, 0.35), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1), 0 5px 10px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.status-band-card.spinning {
  transform: scale(0.96);
}

.gold-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffeaa3 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  text-align: center;
}

/* Bottom controller tray structure */
.control-console-card {
  width: 100%;
  max-width: 350px;
  z-index: 10;
}

.clay-console-tray {
  width: 100%;
  background: linear-gradient(180deg, #1e1b4f 0%, #0a0818 100%);
  border: 3px solid #3530a3;
  box-shadow: 
    inset 0 4px 10px rgba(255, 255, 255, 0.22),
    inset 0 -10px 24px rgba(0, 0, 0, 0.85),
    0 15px 30px rgba(0, 0, 0, 0.7);
  border-radius: 24px;
  padding: 12px;
  position: relative;
}

/* Console internal shine center background glow */
.console-glow-node {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 60px;
  background-color: rgba(139, 92, 246, 0.22);
  filter: blur(20px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Primary configuration grid: Betting buttons */
.controls-grid-upper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.bet-display-box {
  height: 40px;
  border-radius: 10px;
  background: rgba(5, 5, 17, 0.95);
  border: 1px solid rgba(67, 56, 202, 0.4);
  box-shadow: inset 0 1.5px 4px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bet-title {
  font-size: 7px;
  font-weight: 800;
  color: #818cf8;
  letter-spacing: 0.1em;
  margin-bottom: 1px;
  text-transform: uppercase;
}

.bet-value {
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: #ffffff;
}

.clay-control-btn {
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2d2a6a 0%, #0b0c20 100%);
  border: 2.5px solid #3f3c83;
  box-shadow: 
    inset 0 3px 6px rgba(255, 255, 255, 0.25),
    inset 0 -3px 6px rgba(0, 0, 0, 0.65),
    0 4px 8px rgba(0, 0, 0, 0.45);
  color: #c7d2fe;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  cursor: pointer;
  outline: none;
}

.clay-control-btn:hover:not(:disabled) {
  border-color: #4f46e5;
  background: linear-gradient(180deg, #373382 0%, #0f102c 100%);
  box-shadow: 
    inset 0 3px 6px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.60),
    0 6px 12px rgba(168, 85, 247, 0.25);
  color: #ffffff;
}

.clay-control-btn:active:not(:disabled) {
  box-shadow: 
    inset 0 1.5px 3px rgba(0, 0, 0, 0.65),
    inset 0 1px 2px rgba(255, 255, 255, 0.08),
    0 1.5px 3px rgba(0, 0, 0, 0.3);
  transform: translateY(0.5px);
}

.clay-control-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Secondary grid row: Increase Decrease & Embedded Spin Button */
.controls-grid-lower {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.large-sign {
  font-size: 14px;
  font-weight: bold;
}

/* Grid integrated spin container */
.spin-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 92px;
}

.spin-dome-button {
  width: 92px;
  height: 92px;
  background: radial-gradient(circle at 50% 15%, #ffeaa3 0%, #e3b64c 32%, #a8812a 70%, #6e500e 100%);
  padding: 5px;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.85),
    inset 0 4px 8px rgba(255, 255, 255, 0.75),
    inset 0 -4px 8px rgba(0, 0, 0, 0.85);
  border-radius: 50%;
  border: 2px solid #5c3e03;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: soft-float 3.5s ease-in-out infinite;
}

.spin-dome-button.active-spin {
  animation: spin-pulse-active 0.8s infinite alternate !important;
}

.spin-dome-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.spin-dome-inner-glass {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #6366f1 0%, #312e81 45%, #1e1b4b 85%, #080721 100%);
  box-shadow: 
    inset 0 10px 15px rgba(255, 255, 255, 0.28),
    inset 0 -10px 15px rgba(0, 0, 0, 0.88),
    0 3px 8px rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spin-dome-inner-glass::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 10px;
  right: 10px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50% / 40%;
}

.spin-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 950;
  color: #fde047;
  letter-spacing: 0.1em;
  text-shadow: 0 1.5px 3.5px rgba(0, 0, 0, 0.95);
}

@keyframes soft-float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

@keyframes spin-pulse-active {
  0% { transform: scale(0.95) translateY(0); }
  100% { transform: scale(1.02) translateY(-2px); }
}

/* Styled Casino Poker Chips */
.deco-chip-right {
  position: absolute;
  bottom: -15px;
  right: -30px;
  width: 90px;
  height: 90px;
  pointer-events: none;
  opacity: 0.8;
  transform: rotate(12deg);
  z-index: 12;
}

.deco-chip-left {
  position: absolute;
  bottom: -22px;
  left: -42px;
  width: 105px;
  height: 105px;
  pointer-events: none;
  opacity: 0.7;
  transform: rotate(-12deg);
  z-index: 11;
}

/* Modal and Overlay screens */
.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay.active {
  display: flex;
  animation: modal-fade-in 0.25s ease-out forwards;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.clay-modal {
  width: calc(100% - 24px);
  max-width: 460px;
  background: linear-gradient(135deg, #161536 0%, #0a061c 100%);
  border: 4px solid #4338ca;
  box-shadow: 
    inset 0 6px 14px rgba(255, 255, 255, 0.25),
    inset 0 -12px 28px rgba(0, 0, 0, 0.85),
    0 24px 48px rgba(0, 0, 0, 0.85);
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  max-h: 85vh;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.modal-rules-grid {
  font-size: 11px;
  line-height: 1.5;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(67, 56, 202, 0.6);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  width: 100%;
  text-align: left;
  color: #e0e7ff;
}

.rules-line {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.rules-line:last-child {
  margin-bottom: 0;
}

.rule-bullet {
  font-weight: 800;
}

.bullet-green { color: #facc15; }
.bullet-red { color: #f87171; }

.modal-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #eab308;
  margin-bottom: 10px;
  text-align: center;
}

.paytable-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
  font-size: 13px;
}

@media (max-width: 440px) {
  .paytable-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.paytable-row {
  background: rgba(15, 23, 42, 0.5);
  border: 1.5px solid rgba(67, 56, 202, 0.3);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.paytable-row:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.8);
  background: rgba(15, 23, 42, 0.7);
}

.paytable-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.paytable-grid .pay-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  padding: 5px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: fit-content;
}

.paytable-grid .paytable-thumb {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1.5px rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.4);
  padding: 2.5px;
  transition: transform 0.2s ease;
}

.paytable-grid .paytable-thumb:hover {
  transform: scale(1.15) rotate(3deg);
}

.paytable-grid .pay-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a78bfa;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.paytable-grid .pay-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 13px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1.5px solid rgba(251, 191, 36, 0.25);
  padding: 2px 10px;
  border-radius: 12px;
  display: inline-block;
  text-align: center;
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.1);
}

.modal-action-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(to right, #4f46e5, #6366f1);
  border: none;
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
  outline: none;
}

.modal-action-btn:hover {
  background: linear-gradient(to right, #4338ca, #4f46e5);
  transform: translateY(-1px);
}

.modal-action-btn:active {
  transform: translateY(0.5px);
}

/* Alert warning modal style context */
.warn-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.warn-descr {
  font-size: 12px;
  color: #c7d2fe;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 24px;
}

.gold-high {
  font-weight: 800;
  color: #ffffff;
}

/* Refell Button */
.btn-refill {
  background: linear-gradient(to right, #f59e0b, #eab308);
  border: none;
  color: #1e1b4b;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.25);
  font-weight: 900;
}

.btn-refill:hover {
  background: linear-gradient(to right, #d97706, #f59e0b);
}

/* Utilities declarations (Hidden handles) */
.hidden {
  display: none !important;
}

/* Desktop Panels Styling */
.desktop-panel {
  display: none !important;
}

.desktop-top-bar {
  display: none !important;
}

@media (min-width: 1024px) {
  /* High-fidelity Active Desktop State Rules */
  html.is-desktop {
    overflow: hidden !important;
    height: 100% !important;
  }

  body.is-desktop {
    background-color: #04050d;
    overflow: hidden !important;
    height: 100% !important;
    min-height: 100% !important;
    align-items: center !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  .is-desktop .app-container {
    display: grid !important;
    grid-template-columns: 310px 400px 310px !important;
    grid-template-rows: auto 1fr !important;
    gap: 16px 20px !important;
    max-width: 1100px !important;
    height: 92vh !important;
    max-height: 860px !important;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
    overflow: hidden !important;
  }

  .is-desktop .desktop-top-bar {
    grid-column: span 3;
    display: flex !important;
  }

  .is-desktop .desktop-panel {
    display: flex !important;
  }

  .is-desktop .game-viewport {
    height: 100% !important;
    max-height: 850px !important;
    max-width: 400px;
    padding: 16px;
    background: linear-gradient(180deg, #100b2e 0%, #050311 100%);
    border: 4.5px solid #3428a3;
    border-radius: 36px;
    box-shadow: 
      0 0 35px rgba(99, 102, 241, 0.25), 
      inset 0 4px 12px rgba(255, 255, 255, 0.08),
      0 20px 50px rgba(0, 0, 0, 0.7);
  }

  #canvas_container {
    height: 310px;
    border-radius: 28px;
  }

  .beveled-slot-container {
    border-radius: 36px;
    padding: 8px;
    border-width: 5px;
  }

  .gold-inner-bound {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 28px;
    border-width: 2px;
  }

  #grid_highlights_container {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 10px;
  }

  .clay-header-card {
    border-width: 3.5px;
    border-radius: 20px;
    padding: 12px 16px;
  }

  .balance-num {
    font-size: 16px;
  }

  .clay-round-btn {
    width: 40px;
    height: 40px;
    border-width: 3.5px;
  }

  .clay-console-tray {
    border-width: 4.5px;
    border-radius: 36px;
    padding: 24px 20px;
  }

  .controls-grid-upper {
    gap: 12px;
    margin-bottom: 16px;
  }

  .bet-display-box {
    height: 48px;
    border-radius: 12px;
  }

  .bet-value {
    font-size: 13px;
  }

  .clay-control-btn {
    height: 48px;
    border-radius: 12px;
    border-width: 3.5px;
    font-size: 11px;
  }

  .controls-grid-lower {
    gap: 12px;
  }

  .spin-button-container {
    height: 112px;
  }

  .spin-dome-button {
    width: 112px;
    height: 112px;
    padding: 6px;
  }

  .spin-dome-inner-glass::before {
    top: 4px;
    left: 12px;
    right: 12px;
    height: 24px;
  }

  .spin-text {
    font-size: 19px;
  }




  .desktop-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    box-sizing: border-box;
  }

  /* Claymorphic side card rules */
  .side-card {
    background: linear-gradient(135deg, #131438 0%, #0d0726 100%);
    border: 3.5px solid #2a258a;
    box-shadow: 
      inset 0 4px 10px rgba(255, 255, 255, 0.12),
      inset 0 -6px 14px rgba(0, 0, 0, 0.7),
      0 10px 24px rgba(0, 0, 0, 0.65);
    border-radius: 28px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
  }

  .clay-side-card {
    flex: 1;
  }

  .side-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(81, 70, 229, 0.25);
    margin-bottom: 12px;
  }

  /* Paytable layout */
  .paytable-left-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
  }

  .left-pay-row {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.45);
    border: 1px dashed rgba(81, 70, 229, 0.3);
    border-radius: 14px;
    padding: 6px 10px;
    transition: all 0.2s ease;
  }

  .left-pay-row:hover {
    background: rgb(24 16 61 / 65%);
    border-color: #eab308;
    transform: translateX(4px);
  }

  .left-pay-row.active-hit {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgb(49, 15, 99) 100%);
    border-color: #facc15;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
    animation: left-hit-active 0.8s infinite alternate;
  }

  @keyframes left-hit-active {
    0% { transform: scale(1); }
    100% { transform: scale(1.03) translateX(4px); }
  }

  .left-pay-emblem {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 8px;
  }

  .paytable-thumb {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), 0 1px 2px rgba(0,0,0,0.5);
  }

  .pay-icons {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    vertical-align: middle;
  }

  .left-pay-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .left-pay-name {
    font-size: 10.5px;
    font-weight: 700;
    color: #f8fafc;
  }

  .left-pay-tier {
    font-size: 7.5px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.85;
  }

  .text-purple-400 { color: #c084fc; }
  .text-amber-500 { color: #f59e0b; }
  .text-red-500 { color: #ef4444; }
  .text-cyan-400 { color: #22d3ee; }
  .text-teal-400 { color: #2dd4bf; }
  .text-rose-400 { color: #f43f5e; }

  .left-pay-mult {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 11.5px;
    color: #eab308;
    background: rgba(234, 179, 8, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
  }

  .info-side-card {
    flex-shrink: 0;
    height: auto;
    background: linear-gradient(180deg, #090924 0%, #03030d 100%);
  }

  .combo-guidelines {
    font-size: 10.5px;
    color: #94a3b8;
    line-height: 1.4;
  }

  .combos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 8px 0;
  }

  .combo-badge {
    background: rgba(81, 70, 229, 0.15);
    border: 1px solid rgba(81, 70, 229, 0.3);
    color: #a5b4fc;
    text-align: center;
    padding: 3px 2px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 600;
  }

  .rtp-disclaimer {
    font-size: 8px;
    line-height: 1.4;
    opacity: 0.65;
    border-top: 1px solid rgba(81, 70, 229, 0.15);
    padding-top: 6px;
    margin-top: 6px;
  }

  /* Stats & Analytics style rules */
  .stats-side-card {
    flex-shrink: 0;
    height: auto;
  }

  .stats-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .analytics-stat-box {
    background: rgba(5, 5, 20, 0.8);
    border: 1px dashed rgba(81, 70, 229, 0.25);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .stat-lbl {
    font-size: 7.5px;
    font-weight: 850;
    color: #818cf8;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 0.05em;
  }

  .stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 12px;
    color: #ffffff;
  }

  .text-yellow-400 { color: #facc15; }
  .text-green-400 { color: #4ade80; }

  /* History side card rules */
  .history-side-card {
    flex: 1;
  }

  .history-logs-container {
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
    max-height: 380px;
  }

  .history-logs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .history-logs-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 10px;
    animation: slide-log-in 0.3s ease-out forwards;
  }

  @keyframes slide-log-in {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .h-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
  }

  /* Dynamic dot colors based on state */
  .history-win { border-left: 3px solid #facc15; }
  .history-lose { border-left: 3px solid #ef4444; }
  .history-refill { border-left: 3px solid #34d399; }
  
  .history-win .h-dot { background-color: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
  .history-lose .h-dot { background-color: #f87171; }
  .history-refill .h-dot { background-color: #34d399; box-shadow: 0 0 6px #34d399; }
  .history-item-system .h-dot { background-color: #818cf8; }

  .h-msg {
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .h-time {
    font-family: 'JetBrains Mono', monospace;
    color: #64748b;
    font-size: 8px;
  }
}

/* Dynamic RTP and PRNG Calibration Styles */
.rtp-side-card {
  flex-shrink: 0;
  height: auto;
  background: linear-gradient(135deg, #16103c 0%, #070316 100%);
  border-color: #7c3aed;
}

.rtp-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-setting-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setting-lbl {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.setting-val-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 850;
  background: rgba(168, 85, 247, 0.2);
  color: #e9d5ff;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.rtp-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #1e1b4b;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.rtp-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: transform 0.1s;
}

.rtp-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.seed-input-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.small-title {
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seed-box-with-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.seed-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(124, 58, 237, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  outline: none;
  transition: all 0.2s;
}

.seed-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}

.seed-rand-btn {
  background: rgba(124, 58, 237, 0.2);
  border: 1.5px solid rgba(124, 58, 237, 0.4);
  border-radius: 10px;
  color: #e2e8f0;
  cursor: pointer;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.seed-rand-btn:hover {
  background: #7c3aed;
  color: #ffffff;
  transform: rotate(45deg);
}

.probabilities-container {
  background: rgba(15, 23, 42, 0.45);
  border: 1px dashed rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prob-header {
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  color: #c084fc;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  padding-bottom: 4px;
}

.prob-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prob-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
}

.prob-icon {
  width: 14px;
  text-align: center;
}

.prob-bar-container {
  flex-grow: 1;
  height: 6px;
  background: rgba(30, 27, 75, 0.5);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.prob-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed 0%, #c084fc 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.prob-pct {
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  color: #e2e8f0;
  width: 32px;
  text-align: right;
}

.simulation-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.simulation-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.simulation-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

.simulation-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sim-feedback-row {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  padding: 6px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  animation: slide-log-in 0.2s ease-out forwards;
}

.sim-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.s-lbl {
  font-size: 7px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: bold;
}

.s-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: bold;
}

/* Calibration modal header alignment adjustments */
.calibration-footer-hint {
  font-size: 8.5px;
  color: #94a3b8;
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

/* Utilities declarations (Hidden handles) */
.hidden {
  display: none !important;
}

/* Styling for Win Toast Notification Popup */
.win-toast-container {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  width: calc(100% - 32px);
  max-width: 320px;
  background: linear-gradient(135deg, #1d194c 0%, #0d072b 100%);
  border: 2.5px solid #fb923c; /* Glowing orange/gold card */
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(251, 146, 60, 0.45);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.win-toast-container.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.win-toast-card {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.win-toast-glow {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: rgba(245, 158, 11, 0.3);
  filter: blur(12px);
  border-radius: 50%;
  pointer-events: none;
}

.win-toast-emoji {
  font-size: 24px;
  animation: bounce-loop 1s ease-in-out infinite alternate;
}

@keyframes bounce-loop {
  0% { transform: translateY(-2px); }
  100% { transform: translateY(2px); }
}

.win-toast-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.win-toast-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 900;
  color: #fb923c;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.win-toast-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 850;
  color: #facc15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.win-toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-left: auto;
}

.win-toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Fullscreen dynamic cosmic particle effects canvas positioning */
#cosmic_canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Claymorphic Splash Screen overlay */
.splash-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 50%, #0d0a28 0%, #05040f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.splash-screen-overlay.hidden-splash {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

/* Puffy Claymorphism main card */
.clay-splash-card {
  width: 90%;
  max-width: 380px;
  background: linear-gradient(135deg, #1d194c 0%, #0c0827 100%);
  border: 5px solid #4f46e5;
  box-shadow: 
    inset 0 8px 16px rgba(255, 255, 255, 0.15),
    inset 0 -12px 24px rgba(0, 0, 0, 0.8),
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.85);
  border-radius: 36px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative soft clay spheres in the splash background */
.clay-sphere-decoration-1 {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #818cf8 0%, #312e81 80%);
  box-shadow: 
    inset 0 4px 10px rgba(255, 255, 255, 0.4),
    inset 0 -10px 20px rgba(0, 0, 0, 0.6),
    0 10px 20px rgba(0, 0, 0, 0.5);
  opacity: 0.35;
  filter: blur(1px);
  pointer-events: none;
}

.clay-sphere-decoration-2 {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ec4899 0%, #9d174d 85%);
  box-shadow: 
    inset 0 6px 15px rgba(255, 255, 255, 0.4),
    inset 0 -15px 30px rgba(0, 0, 0, 0.7),
    0 12px 25px rgba(0, 0, 0, 0.5);
  opacity: 0.25;
  filter: blur(2px);
  pointer-events: none;
}

/* Creative clay cube loader styling with exact 3D rotations */
.clay-3d-scene {
  perspective: 300px;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.clay-cube {
  width: 60px;
  height: 60px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(25deg);
  animation: clayCubeSpin 4s infinite cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

@keyframes clayCubeSpin {
  0% { transform: rotateX(-20deg) rotateY(25deg); }
  16% { transform: rotateX(200deg) rotateY(65deg); }
  33% { transform: rotateX(110deg) rotateY(205deg); }
  50% { transform: rotateX(-75deg) rotateY(155deg); }
  66% { transform: rotateX(15deg) rotateY(310deg); }
  83% { transform: rotateX(255deg) rotateY(-45deg); }
  100% { transform: rotateX(-20deg) rotateY(25deg); }
}

.clay-cube-face {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 3.5px solid #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 
    inset 0 5px 10px rgba(255, 255, 255, 0.45),
    inset 0 -8px 16px rgba(0, 0, 0, 0.55);
  backface-visibility: visible;
}

/* Face alignments to build perfectly sealed 3D cube */
.face-front  { transform: rotateY(0deg) translateZ(30px); background: linear-gradient(135deg, #6366f1, #312e81); }
.face-back   { transform: rotateY(180deg) translateZ(30px); background: linear-gradient(135deg, #4f46e5, #1e1b4b); }
.face-right  { transform: rotateY(90deg) translateZ(30px); background: linear-gradient(135deg, #4338ca, #12103a); }
.face-left   { transform: rotateY(-90deg) translateZ(30px); background: linear-gradient(135deg, #3730a3, #0f0c2f); }
.face-top    { transform: rotateX(90deg) translateZ(30px); background: linear-gradient(135deg, #6366f1, #4f46e5); }
.face-bottom { transform: rotateX(-90deg) translateZ(30px); background: linear-gradient(135deg, #1e1b4b, #0f0c24); }

/* Bouncing clay shadow directly under 3D loader */
.clay-cube-shadow {
  width: 44px;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(4px);
  border-radius: 50%;
  margin-top: 8px;
  animation: clayShadowScale 4s infinite cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

@keyframes clayShadowScale {
  0%, 100% { transform: scaleX(1); opacity: 0.6; }
  16% { transform: scaleX(0.7); opacity: 0.35; }
  33% { transform: scaleX(1.15); opacity: 0.7; }
  50% { transform: scaleX(0.65); opacity: 0.3; }
  66% { transform: scaleX(1.1); opacity: 0.65; }
  83% { transform: scaleX(0.75); opacity: 0.4; }
}

/* Splash branding details */
.splash-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  z-index: 2;
}

.splash-puffy-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 1000;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 
    0 2px 0 #4f46e5,
    0 4px 0 #312e81,
    0 6px 12px rgba(0, 0, 0, 0.82);
  margin: 0;
}

.splash-puffy-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #fb923c;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.95;
  margin-bottom: 24px;
}

/* Progress slider in soft clay design */
.clay-loading-bar-outer {
  width: 240px;
  height: 16px;
  background: #09061f;
  border: 2px solid #312e81;
  border-radius: 20px;
  padding: 3px;
  box-shadow: 
    inset 0 3px 5px rgba(0,0,0,0.8),
    0 1px 1px rgba(255,255,255,0.06);
  position: relative;
  margin-bottom: 12px;
  z-index: 2;
}

.clay-loading-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #facc15, #00f0ff);
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.4),
    0 0 12px rgba(0, 240, 255, 0.6);
  border-radius: 20px;
  transition: width 0.1s ease-out;
}

.splash-status-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #818cf8;
  letter-spacing: 0.05em;
  height: 14px;
  z-index: 2;
}

.splash-status-percentage {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 900;
  color: #facc15;
  margin-top: 4px;
  z-index: 2;
}

body.splash-active {
  overflow: hidden !important;
}

/* Active Auto-Spin Button States */
.clay-round-btn.active-auto {
  border-color: #facc15 !important;
  background: linear-gradient(180deg, #ca8a04 0%, #713f12 100%) !important;
  box-shadow: 
    inset 0 3px 6px rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(250, 204, 21, 0.7) !important;
}

.clay-round-btn.active-auto span {
  color: #ffffff !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* High-Performance Desktop Top Status Bar */
.desktop-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 24px;
  background: linear-gradient(135deg, #131438 0%, #0d0726 100%);
  border: 3.5px solid #2a258a;
  border-radius: 20px;
  box-shadow: 
    inset 0 4px 10px rgba(255, 255, 255, 0.1),
    inset 0 -4px 10px rgba(0, 0, 0, 0.7),
    0 10px 20px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

.dt-brand-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-brand-icon {
  font-size: 18px;
  animation: slowOrbit 5s infinite linear;
}

@keyframes slowOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dt-brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.dt-brand-ver {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.dt-status-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dt-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dt-ind-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: relative;
}

.dt-ind-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  opacity: 0.4;
  animation: pulseBeacon 1.6s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

.ind-online {
  background-color: #10b981;
}
.ind-online::after {
  background-color: #10b981;
}

.ind-active {
  background-color: #22d3ee;
}
.ind-active::after {
  background-color: #22d3ee;
}

.ind-audio {
  background-color: #c084fc;
}
.ind-audio::after {
  background-color: #c084fc;
}

.dt-ind-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

.dt-actions-group {
  display: flex;
  align-items: center;
}

.dt-console-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 900;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1.5px solid #fbbf24;
  border-radius: 8px;
  padding: 3px 8px;
  letter-spacing: 0.08em;
}

/* Console settings side card widgets styling */
.console-settings-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.setting-title-lbl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Speed selector group buttons */
.speed-selector-group {
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.45);
  padding: 4px;
  border-radius: 12px;
  border: 1.5px solid rgba(81, 70, 229, 0.25);
}

.speed-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 10px;
  padding: 6px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.speed-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.speed-btn.active {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 950;
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(59, 130, 246, 0.25);
}

/* Preset bets grid list */
.presets-bet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.preset-bet-btn {
  background: #0f1026;
  border: 1.5px solid #2a258a;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-bet-btn:hover {
  border-color: #fbbf24;
  background: rgb(24 16 61 / 65%);
  color: #fbbf24;
}

/* History logs filter tabs links */
.history-filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  border-bottom: 1.5px solid rgba(81, 70, 229, 0.15);
  padding-bottom: 8px;
}

.filter-tab {
  flex: 1;
  background: rgba(15, 23, 42, 0.5);
  border: 1.5px solid rgba(81, 70, 229, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 9px;
  padding: 5px 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: rgba(192, 132, 252, 0.5);
  color: #ffffff;
}

.filter-tab.active {
  background: linear-gradient(180deg, #c084fc 0%, #7e22ce 100%);
  border-color: #c084fc;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 
    inset 0 1.5px 3px rgba(255, 255, 255, 0.4),
    0 3px 6px rgba(126, 34, 206, 0.3);
}

.control-side-card {
  margin-top: 4px;
}

