/* ==========================================================================
   CRYPTO MARKET RUSH // STYLESHEET
   Brand: Crypto Raviya Cyberpunk Terminal Identity
   Scoped strictly to #game-root and base reset
   ========================================================================== */

/* Universal Reset inside Window */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #05070a;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   GAME ROOT & CORE SYSTEM
   ========================================================================== */
#game-root {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 980px;
  min-height: 640px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #0d1522 0%, #05070a 80%);
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.4;
  box-sizing: border-box;
}

#game-root * {
  box-sizing: border-box;
}

/* Canvas background for ambient particle physics */
#game-root #bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* Subtle CRT / Cyberpunk scanline texture */
#game-root .cyber-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  opacity: 0.35;
}

/* Monospace & typography utilities */
#game-root .font-mono {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
}

#game-root .highlight {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

#game-root .profit,
#game-root .up {
  color: #00ff88 !important;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.35);
}

#game-root .danger,
#game-root .down {
  color: #ff2a5f !important;
  text-shadow: 0 0 10px rgba(255, 42, 95, 0.35);
}

#game-root .warning {
  color: #ffb800 !important;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.35);
}

#game-root .text-cyan {
  color: #00f0ff;
}

/* Screen Transitions */
#game-root .game-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

#game-root .game-screen.active {
  display: flex;
  opacity: 1;
}

/* ==========================================================================
   BUTTONS & HUD CONTROLS
   ========================================================================== */
#game-root .hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(13, 20, 31, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 2px;
  outline: none;
}

#game-root .hud-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

#game-root .hud-btn:active {
  transform: translateY(1px);
}

#game-root .hud-btn.primary {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 255, 136, 0.2));
  border-color: #00f0ff;
  color: #ffffff;
}

#game-root .hud-btn.primary:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(0, 255, 136, 0.35));
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
}

#game-root .hud-btn.danger-outline {
  border-color: rgba(255, 42, 95, 0.4);
  color: #ff6b8b;
}

#game-root .hud-btn.danger-outline:hover {
  background: rgba(255, 42, 95, 0.2);
  border-color: #ff2a5f;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 42, 95, 0.4);
}

#game-root .hud-btn.full-width {
  width: 100%;
}

#game-root .icon-hud-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 20, 31, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  font-size: 15px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}

#game-root .icon-hud-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   MAIN MENU SCREEN
   ========================================================================== */
#game-root #menu-screen {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 20;
}

#game-root .menu-container {
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(8, 12, 19, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.25);
  backdrop-filter: blur(16px);
  padding: 40px 48px;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
  position: relative;
}

#game-root .menu-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #00ff88, transparent);
}

#game-root .brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

#game-root .brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
}

#game-root .brand-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #00f0ff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

#game-root .game-hero {
  text-align: center;
  margin-bottom: 36px;
}

#game-root .hero-glitch-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.7), 0 0 30px rgba(0, 255, 136, 0.4);
}

#game-root .hero-tagline {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: #94a3b8;
  margin-bottom: 18px;
}

#game-root .hero-market-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(13, 20, 31, 0.7);
  padding: 8px 18px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 2px;
}

#game-root .ticker-sym {
  color: #00f0ff;
  font-weight: 700;
}

#game-root .ticker-sep {
  color: #475569;
}

/* Mode Selection Cards */
#game-root .mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  margin-bottom: 24px;
}

#game-root .mode-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: rgba(11, 16, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  outline: none;
}

#game-root .mode-card:hover {
  background: rgba(15, 23, 36, 0.95);
  border-color: rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 240, 255, 0.2);
}

#game-root .mode-card.primary {
  border-color: rgba(0, 240, 255, 0.35);
  background: linear-gradient(180deg, rgba(13, 24, 38, 0.9) 0%, rgba(9, 14, 23, 0.9) 100%);
}

#game-root .mode-card.primary:hover {
  border-color: #00f0ff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.35);
}

#game-root .mode-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

#game-root .mode-tag {
  color: #00ff88;
  font-weight: 700;
  letter-spacing: 0.1em;
}

#game-root .mode-duration {
  color: #94a3b8;
}

#game-root .mode-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

#game-root .mode-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

#game-root .mode-cta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: #00f0ff;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}

#game-root .menu-sub-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 30px;
}

#game-root .menu-stats-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  margin-bottom: 24px;
}

#game-root .stat-box {
  background: rgba(11, 16, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#game-root .stat-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #64748b;
  letter-spacing: 0.08em;
}

#game-root .stat-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
}

#game-root .menu-footer-notice {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #475569;
  letter-spacing: 0.15em;
  text-align: center;
}

/* ==========================================================================
   GAME HUD & WORKSPACE
   ========================================================================== */
#game-root #game-screen {
  flex-direction: column;
  z-index: 10;
}

/* Top HUD bar */
#game-root .game-hud-top {
  height: 54px;
  background: rgba(8, 12, 19, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 15;
  backdrop-filter: blur(12px);
}

#game-root .hud-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

#game-root .hud-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
}

#game-root .brand-text-cluster {
  display: flex;
  flex-direction: column;
}

#game-root .brand-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #00f0ff;
  font-weight: 700;
}

#game-root .game-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
}

#game-root .hud-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
}

#game-root .hud-metric-item {
  display: flex;
  flex-direction: column;
  padding: 4px 10px;
  background: rgba(13, 20, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}

#game-root .hud-metric-item.highlight-border {
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.05);
}

#game-root .metric-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#game-root .metric-value {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

#game-root .hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Market News Wire */
#game-root .market-news-wire {
  height: 36px;
  background: rgba(11, 17, 26, 0.85);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

#game-root .wire-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

#game-root .pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

#game-root .wire-label {
  color: #64748b;
  font-weight: 700;
}

#game-root .wire-headline {
  flex: 1;
  margin: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#game-root .event-tag {
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

#game-root .event-tag.neutral {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

#game-root .event-tag.bullish {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

#game-root .event-tag.bearish {
  background: rgba(255, 42, 95, 0.15);
  color: #ff2a5f;
  border: 1px solid rgba(255, 42, 95, 0.3);
}

#game-root .event-tag.warning {
  background: rgba(255, 184, 0, 0.15);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.3);
}

#game-root .event-msg {
  color: #cbd5e1;
}

#game-root .wire-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
}

#game-root .sentiment-badge,
#game-root .risk-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

#game-root .sentiment-badge .label,
#game-root .risk-badge .label {
  color: #64748b;
}

#game-root .sentiment-badge .val {
  color: #00f0ff;
  font-weight: 700;
}

#game-root .risk-badge .val {
  color: #00ff88;
  font-weight: 700;
}

/* ==========================================================================
   WORKSPACE GRID (3 PANELS)
   ========================================================================== */
#game-root .game-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 240px 1fr 340px;
  gap: 8px;
  padding: 8px;
  height: calc(100vh - 90px);
  overflow: hidden;
}

#game-root .panel {
  background: rgba(10, 15, 23, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 2px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#game-root .panel-header {
  height: 38px;
  background: rgba(13, 20, 31, 0.9);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

#game-root .panel-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #00f0ff;
  letter-spacing: 0.1em;
}

#game-root .sub-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #64748b;
}

/* ==========================================================================
   LEFT PANEL: ASSET SELECTOR
   ========================================================================== */
#game-root .asset-sidebar {
  display: flex;
  flex-direction: column;
}

#game-root .asset-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
}

#game-root .asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(13, 20, 31, 0.5);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 2px;
}

#game-root .asset-item:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
}

#game-root .asset-item.active {
  background: rgba(0, 240, 255, 0.14);
  border-color: #00f0ff;
  box-shadow: inset 2px 0 0 #00f0ff;
}

#game-root .asset-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#game-root .asset-symbol {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

#game-root .asset-name {
  font-size: 10px;
  color: #64748b;
}

#game-root .asset-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

#game-root .asset-item-price {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

#game-root .asset-item-change {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
}

#game-root .sidebar-sentiment-box {
  padding: 14px;
  background: rgba(8, 12, 19, 0.7);
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#game-root .sentiment-header {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
}

#game-root .sentiment-meter-track {
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

#game-root .sentiment-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff2a5f 0%, #ffb800 45%, #00ff88 100%);
  transition: width 0.3s ease;
}

#game-root .sentiment-labels {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #64748b;
}

/* ==========================================================================
   CENTER PANEL: CHART TERMINAL & WORKBENCH
   ========================================================================== */
#game-root .chart-terminal {
  display: flex;
  flex-direction: column;
  position: relative;
}

#game-root .chart-header-bar {
  height: 48px;
  padding: 0 16px;
  background: rgba(13, 20, 31, 0.9);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#game-root .selected-asset-details {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

#game-root .asset-sym-large {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
}

#game-root .asset-price-large {
  font-size: 18px;
  font-weight: 800;
  color: #00f0ff;
}

#game-root .asset-change-badge {
  font-size: 12px;
  font-weight: 700;
}

#game-root .chart-options {
  display: flex;
  align-items: center;
  gap: 10px;
}

#game-root .segmented-control {
  display: inline-flex;
  background: rgba(7, 11, 18, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 2px;
  padding: 2px;
}

#game-root .seg-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}

#game-root .seg-btn:hover {
  color: #ffffff;
}

#game-root .seg-btn.active {
  background: rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

#game-root .canvas-wrapper {
  position: relative;
  flex: 1;
  min-height: 240px;
  width: 100%;
  background: #080c13;
  overflow: hidden;
}

#game-root #price-chart {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

#game-root .chart-overlay-info {
  position: absolute;
  top: 10px;
  left: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 5;
}

#game-root .chart-flash-fx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 4;
}

#game-root .chart-flash-fx.flash-bull {
  background: radial-gradient(circle, rgba(0, 255, 136, 0.25) 0%, transparent 70%);
  opacity: 1;
}

#game-root .chart-flash-fx.flash-bear {
  background: radial-gradient(circle, rgba(255, 42, 95, 0.25) 0%, transparent 70%);
  opacity: 1;
}

/* ==========================================================================
   BOTTOM WORKBENCH: TABS & TABLES
   ========================================================================== */
#game-root .terminal-workbench {
  height: 200px;
  background: rgba(8, 12, 19, 0.95);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  display: flex;
  flex-direction: column;
}

#game-root .workbench-tabs {
  display: flex;
  background: rgba(13, 20, 31, 0.7);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
  padding: 0 8px;
}

#game-root .tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.15s ease;
}

#game-root .tab-btn:hover {
  color: #ffffff;
}

#game-root .tab-btn.active {
  color: #00f0ff;
  border-bottom-color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
}

#game-root .workbench-tab-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

#game-root .tab-pane {
  display: none;
  height: 100%;
  width: 100%;
  overflow-y: auto;
}

#game-root .tab-pane.active {
  display: block;
}

#game-root .table-responsive {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

#game-root .data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-align: left;
}

#game-root .data-table th {
  position: sticky;
  top: 0;
  background: #0d1522;
  color: #64748b;
  font-size: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  font-weight: 700;
  letter-spacing: 0.05em;
}

#game-root .data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  white-space: nowrap;
}

#game-root .data-table tr:hover td {
  background: rgba(0, 240, 255, 0.04);
}

#game-root .data-table .empty-row td {
  text-align: center;
  color: #64748b;
  padding: 30px;
}

/* Order Book Grid */
#game-root .orderbook-grid {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  height: 100%;
  padding: 6px 12px;
  gap: 12px;
}

#game-root .ob-col-title {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 4px;
}

#game-root .ob-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

#game-root .ob-row {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 2px 6px;
  position: relative;
}

#game-root .ob-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  opacity: 0.15;
  pointer-events: none;
}

#game-root .asks-col .ob-bar {
  right: 0;
  background-color: #ff2a5f;
}

#game-root .bids-col .ob-bar {
  left: 0;
  background-color: #00ff88;
}

#game-root .orderbook-mid {
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-root .spread-indicator {
  font-size: 10px;
  color: #94a3b8;
  background: rgba(13, 20, 31, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 6px 10px;
  text-align: center;
  border-radius: 2px;
}

/* Event Feed List */
#game-root .event-feed-log {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#game-root .event-feed-item {
  display: flex;
  gap: 8px;
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(13, 20, 31, 0.5);
  border-left: 2px solid #00f0ff;
}

#game-root .event-feed-time {
  color: #64748b;
  white-space: nowrap;
}

#game-root .event-feed-title {
  font-weight: 700;
  color: #ffffff;
}

#game-root .event-feed-detail {
  color: #94a3b8;
}

/* ==========================================================================
   RIGHT PANEL: ORDER EXECUTION TERMINAL
   ========================================================================== */
#game-root .execution-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  overflow-y: auto;
}

#game-root .trade-mode-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(7, 11, 18, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 3px;
  border-radius: 2px;
}

#game-root .mode-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 7px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}

#game-root .mode-tab-btn.active {
  background: rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

#game-root .trade-section {
  display: none;
  flex-direction: column;
  gap: 12px;
}

#game-root .trade-section.active {
  display: flex;
}

#game-root .input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#game-root .field-label-row {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

#game-root .input-with-currency {
  position: relative;
  display: flex;
  align-items: center;
}

#game-root .curr-prefix {
  position: absolute;
  left: 10px;
  color: #00f0ff;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
}

#game-root .cyber-input {
  width: 100%;
  background: rgba(7, 11, 18, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #ffffff;
  padding: 8px 10px 8px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  outline: none;
  transition: all 0.15s ease;
}

#game-root .cyber-input:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

#game-root .pct-btn-cluster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

#game-root .pct-btn,
#game-root .pct-btn-margin {
  background: rgba(13, 20, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 5px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}

#game-root .pct-btn:hover,
#game-root .pct-btn-margin:hover {
  border-color: #00f0ff;
  color: #ffffff;
  background: rgba(0, 240, 255, 0.15);
}

#game-root .order-estimate-box {
  background: rgba(7, 11, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 2px;
}

#game-root .estimate-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
}

#game-root .estimate-row span:last-child {
  color: #f1f5f9;
}

/* Leverage Selector */
#game-root .leverage-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

#game-root .lev-pill {
  background: rgba(13, 20, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 6px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}

#game-root .lev-pill:hover {
  border-color: #00f0ff;
  color: #ffffff;
}

#game-root .lev-pill.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

/* Protection SL & TP */
#game-root .protection-settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(8, 12, 19, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
  border-radius: 2px;
}

#game-root .protection-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

#game-root .cyber-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #cbd5e1;
}

#game-root .slider-row input[type="range"] {
  width: 100%;
  accent-color: #00f0ff;
  cursor: pointer;
}

/* Execution Action Buttons */
#game-root .execution-actions-spot,
#game-root .execution-actions-margin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

#game-root .action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
  position: relative;
  outline: none;
}

#game-root .action-btn.buy {
  background: linear-gradient(180deg, #00d26a 0%, #008f47 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 255, 136, 0.3);
}

#game-root .action-btn.buy:hover {
  background: linear-gradient(180deg, #00ff88 0%, #00a854 100%);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.5);
  transform: translateY(-1px);
}

#game-root .action-btn.sell {
  background: linear-gradient(180deg, #e61e4f 0%, #9e1436 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 42, 95, 0.3);
}

#game-root .action-btn.sell:hover {
  background: linear-gradient(180deg, #ff2a5f 0%, #bd1840 100%);
  box-shadow: 0 4px 20px rgba(255, 42, 95, 0.5);
  transform: translateY(-1px);
}

#game-root .action-btn:active {
  transform: translateY(1px);
}

#game-root .btn-primary-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

#game-root .btn-sub-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  opacity: 0.85;
  margin-top: 2px;
}

#game-root .quick-terminal-tools {
  margin-top: auto;
  padding-top: 8px;
}

/* ==========================================================================
   MODAL WINDOWS & OVERLAYS
   ========================================================================== */
#game-root .game-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#game-root .game-modal.active {
  display: flex;
}

#game-root .modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(8px);
}

#game-root .modal-box {
  position: relative;
  z-index: 101;
  background: rgba(10, 15, 23, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 240, 255, 0.2);
  display: flex;
  flex-direction: column;
}

#game-root .modal-header {
  height: 50px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 20, 31, 0.8);
}

#game-root .modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: #00f0ff;
  letter-spacing: 0.1em;
}

#game-root .modal-brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

#game-root .modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

#game-root .modal-close-btn:hover {
  color: #ffffff;
}

#game-root .modal-body {
  padding: 24px;
  overflow-y: auto;
}

#game-root .modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  display: flex;
  justify-content: flex-end;
  background: rgba(13, 20, 31, 0.8);
}

/* Guide modal styling */
#game-root .guide-box {
  max-width: 820px;
  width: 100%;
  max-height: 85vh;
}

#game-root .guide-section {
  margin-bottom: 24px;
}

#game-root .guide-section h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #00f0ff;
  letter-spacing: 0.08em;
  margin: 0 0 10px 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 4px;
}

#game-root .guide-section p {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

#game-root .guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#game-root .guide-card {
  background: rgba(13, 20, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
}

#game-root .guide-card h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #00ff88;
  margin: 0 0 6px 0;
}

#game-root .guide-card p {
  font-size: 12px;
  margin: 0;
  color: #94a3b8;
}

#game-root .events-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

#game-root .ev-item {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 6px 10px;
  background: rgba(13, 20, 31, 0.6);
  border-left: 3px solid #64748b;
}

#game-root .ev-item.green { border-left-color: #00ff88; color: #a7f3d0; }
#game-root .ev-item.red { border-left-color: #ff2a5f; color: #fecdd3; }
#game-root .ev-item.amber { border-left-color: #ffb800; color: #fef08a; }

#game-root .ranks-ladder {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#game-root .rank-item {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(13, 20, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#game-root .rank-item.highlight {
  border-color: #00f0ff;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
}

#game-root .keys-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

#game-root .key-combo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #cbd5e1;
}

#game-root .key-combo kbd {
  background: #1e293b;
  border: 1px solid #475569;
  padding: 2px 6px;
  border-radius: 2px;
  color: #00f0ff;
  font-weight: 700;
}

/* Pause modal */
#game-root .pause-box {
  max-width: 420px;
  width: 100%;
  padding: 36px 32px;
  text-align: center;
}

#game-root .pause-glitch-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

#game-root .pause-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.2em;
  margin-bottom: 28px;
}

#game-root .pause-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Results modal */
#game-root .results-box {
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
}

#game-root .results-header {
  padding: 24px 28px;
  background: rgba(13, 20, 31, 0.85);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

#game-root .results-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #00f0ff;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

#game-root .results-verdict {
  font-family: "JetBrains Mono", monospace;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

#game-root .results-sub {
  font-size: 12px;
  color: #94a3b8;
}

#game-root .results-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#game-root .results-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

#game-root .results-hero-card {
  background: rgba(13, 20, 31, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#game-root .rh-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #64748b;
  letter-spacing: 0.1em;
}

#game-root .rh-val {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

#game-root .rh-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #00ff88;
}

#game-root .results-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

#game-root .res-stat-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(11, 16, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

#game-root .res-stat-item .label {
  color: #94a3b8;
}

#game-root .res-stat-item .val {
  color: #f1f5f9;
  font-weight: 700;
}

#game-root .results-footer {
  padding: 20px 28px;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  background: rgba(13, 20, 31, 0.85);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
#game-root .toast-container {
  position: absolute;
  top: 60px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}

#game-root .toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 12px 16px;
  background: rgba(10, 15, 23, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  animation: toast-in 0.2s ease-out;
  border-left: 4px solid #00f0ff;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

#game-root .toast.bullish {
  border-left-color: #00ff88;
}

#game-root .toast.bearish {
  border-left-color: #ff2a5f;
}

#game-root .toast.warning {
  border-left-color: #ffb800;
}

#game-root .toast-title {
  font-weight: 700;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
}

#game-root .toast-msg {
  color: #cbd5e1;
  font-size: 11px;
}

/* Scrollbar styles */
#game-root ::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

#game-root ::-webkit-scrollbar-track {
  background: rgba(8, 12, 19, 0.5);
}

#game-root ::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.25);
  border-radius: 2px;
}

#game-root ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
}
