/* ============================================
   JARVIS — HUD Design System
   Palette: Deep Space Navy + Electric Cyan + Arc Blue
   Fonts: Syne (display) + Outfit (body) + Share Tech Mono (data)
   ============================================ */

:root {
  --bg-deep:       #020810;
  --bg-panel:      #040d1a;
  --bg-card:       #071428;
  --border-dim:    rgba(0, 180, 255, 0.12);
  --border-glow:   rgba(0, 212, 255, 0.45);
  --cyan:          #00d4ff;
  --cyan-dim:      rgba(0, 212, 255, 0.6);
  --cyan-faint:    rgba(0, 212, 255, 0.08);
  --blue:          #0066ff;
  --blue-bright:   #3d9bff;
  --arc:           #00aaff;
  --text-primary:  #e0f4ff;
  --text-secondary:#7ab8d4;
  --text-muted:    #3a6070;
  --danger:        #ff4060;
  --success:       #00ffaa;
  --warning:       #ffaa00;
  --font-display:  'Syne', sans-serif;
  --font-body:     'Outfit', sans-serif;
  --font-mono:     'Share Tech Mono', monospace;
  --radius:        4px;
  --glow-cyan:     0 0 12px rgba(0,212,255,0.4), 0 0 30px rgba(0,212,255,0.15);
  --glow-blue:     0 0 12px rgba(0,102,255,0.4), 0 0 30px rgba(0,102,255,0.15);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ── Background Layers ── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,180,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.bg-vignette {
  position: fixed; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(2,8,16,0.85) 100%);
  pointer-events: none;
}

.scanlines {
  position: fixed; inset: 0; z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* ── HUD Corner Decorations ── */
.hud-corner {
  position: fixed; z-index: 10;
  width: 40px; height: 40px;
  pointer-events: none;
}
.hud-corner::before,
.hud-corner::after {
  content: '';
  position: absolute;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.hud-corner::before { width: 100%; height: 2px; }
.hud-corner::after  { width: 2px; height: 100%; }

.hud-tl { top: 12px; left: 12px; }
.hud-tl::before { top: 0; left: 0; }
.hud-tl::after  { top: 0; left: 0; }

.hud-tr { top: 12px; right: 12px; }
.hud-tr::before { top: 0; right: 0; }
.hud-tr::after  { top: 0; right: 0; }

.hud-bl { bottom: 12px; left: 12px; }
.hud-bl::before { bottom: 0; left: 0; }
.hud-bl::after  { bottom: 0; left: 0; }

.hud-br { bottom: 12px; right: 12px; }
.hud-br::before { bottom: 0; right: 0; }
.hud-br::after  { bottom: 0; right: 0; }

/* ── Status Bar ── */
.status-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px;
  background: linear-gradient(180deg, rgba(4,13,26,0.98) 0%, rgba(4,13,26,0.85) 100%);
  border-bottom: 1px solid var(--border-dim);
  z-index: 100;
  backdrop-filter: blur(10px);
}

.status-left {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--success);
  letter-spacing: 0.15em;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

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

.system-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  line-height: 1;
}

.system-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.status-right {
  display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--font-mono);
}

.clock {
  font-size: 16px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-shadow: var(--glow-cyan);
}

.date {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ── Main Layout ── */
.main-layout {
  position: fixed;
  top: 52px; bottom: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 0;
  z-index: 5;
  overflow: hidden;
}

/* ── Panels ── */
.panel {
  background: linear-gradient(180deg, rgba(4,13,26,0.95) 0%, rgba(2,8,16,0.98) 100%);
  border-right: 1px solid var(--border-dim);
  padding: 16px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-right {
  border-right: none;
  border-left: 1px solid var(--border-dim);
}

.panel::-webkit-scrollbar { width: 3px; }
.panel::-webkit-scrollbar-track { background: transparent; }
.panel::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 2px; }

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

.panel-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  white-space: nowrap;
  text-shadow: var(--glow-cyan);
}

.panel-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-glow), transparent);
}

.panel-divider {
  height: 1px;
  background: var(--border-dim);
  margin: 4px 0;
}

/* ── Stat Blocks ── */
.stat-block {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 3px 6px;
  align-items: center;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  grid-column: 1;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  text-align: right;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

.stat-bar {
  grid-column: 1;
  height: 3px;
  background: rgba(0,180,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  box-shadow: 0 0 6px var(--cyan);
  animation: fillIn 1.5s ease-out forwards;
  transform-origin: left;
}

@keyframes fillIn {
  from { width: 0; }
  to   { width: var(--w); }
}

/* ── Quick Commands ── */
.quick-commands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.cmd-btn {
  background: var(--cyan-faint);
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  padding: 6px 4px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cmd-btn:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

.cmd-btn:active { transform: translateY(0); }

/* ── Session Log ── */
.session-log {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 100px;
  overflow-y: auto;
}

.log-entry {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 2px 0;
  border-left: 2px solid var(--border-dim);
  padding-left: 6px;
  animation: logFade 0.3s ease;
}

@keyframes logFade {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Center Panel ── */
.center-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

/* ── Orb Visualizer ── */
.orb-container {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: orbRotate linear infinite;
}

.orb-ring-1 {
  width: 140px; height: 140px;
  border-top-color: var(--cyan);
  border-right-color: rgba(0,212,255,0.3);
  animation-duration: 4s;
  box-shadow: 0 0 10px rgba(0,212,255,0.2);
}

.orb-ring-2 {
  width: 115px; height: 115px;
  border-bottom-color: var(--blue);
  border-left-color: rgba(0,102,255,0.3);
  animation-duration: 6s;
  animation-direction: reverse;
}

.orb-ring-3 {
  width: 90px; height: 90px;
  border-top-color: rgba(0,212,255,0.5);
  border-right-color: transparent;
  animation-duration: 3s;
}

@keyframes orbRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.orb-core {
  position: relative;
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
}

.orb-inner {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0,180,255,0.4), rgba(0,40,100,0.8) 60%, rgba(0,10,30,0.95));
  border: 1px solid rgba(0,212,255,0.4);
  box-shadow:
    0 0 20px rgba(0,212,255,0.3),
    0 0 40px rgba(0,100,255,0.2),
    inset 0 0 20px rgba(0,212,255,0.1);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

.orb-pulse {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan), 0 0 30px rgba(0,212,255,0.5);
  animation: orbPulse 2s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(0.7); opacity: 0.6; }
}

.orb-arc {
  position: absolute;
  width: 70px; height: 70px;
  top: 0; left: 0;
  animation: orbRotate 8s linear infinite;
}

.arc-path  { animation: arcDash 3s linear infinite; }
.arc-path-2 { animation: arcDash 5s linear infinite reverse; }

@keyframes arcDash {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 502; }
}

.orb-label {
  position: absolute;
  bottom: -22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  white-space: nowrap;
}

/* Orb states */
.orb-container.listening .orb-inner {
  background: radial-gradient(circle at 35% 35%, rgba(255,60,100,0.4), rgba(100,0,40,0.8) 60%, rgba(20,0,10,0.95));
  border-color: rgba(255,60,100,0.6);
  box-shadow: 0 0 20px rgba(255,60,100,0.4), 0 0 40px rgba(255,0,60,0.2), inset 0 0 20px rgba(255,60,100,0.1);
}
.orb-container.listening .orb-pulse {
  background: var(--danger);
  box-shadow: 0 0 15px var(--danger);
  animation: orbPulse 0.5s ease-in-out infinite;
}
.orb-container.thinking .orb-inner {
  background: radial-gradient(circle at 35% 35%, rgba(255,170,0,0.4), rgba(100,60,0,0.8) 60%, rgba(20,10,0,0.95));
  border-color: rgba(255,170,0,0.6);
  box-shadow: 0 0 20px rgba(255,170,0,0.4), 0 0 40px rgba(255,120,0,0.2), inset 0 0 20px rgba(255,170,0,0.1);
}
.orb-container.thinking .orb-pulse {
  background: var(--warning);
  box-shadow: 0 0 15px var(--warning);
  animation: orbPulse 0.3s ease-in-out infinite;
}
.orb-container.speaking .orb-inner {
  background: radial-gradient(circle at 35% 35%, rgba(0,255,170,0.4), rgba(0,80,50,0.8) 60%, rgba(0,15,10,0.95));
  border-color: rgba(0,255,170,0.6);
  box-shadow: 0 0 20px rgba(0,255,170,0.4), 0 0 40px rgba(0,200,100,0.2), inset 0 0 20px rgba(0,255,170,0.1);
}
.orb-container.speaking .orb-pulse {
  background: var(--success);
  box-shadow: 0 0 15px var(--success);
  animation: orbPulse 0.8s ease-in-out infinite;
}

/* ── Chat Window ── */
.chat-window {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 28px;
  border-top: 1px solid var(--border-dim);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 2px; }

/* ── Messages ── */
.message {
  display: flex;
  gap: 10px;
  animation: msgSlide 0.3s ease;
  max-width: 85%;
}

@keyframes msgSlide {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message.user-msg {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-deep);
  flex-shrink: 0;
  box-shadow: var(--glow-cyan);
}

.user-msg .msg-avatar {
  background: linear-gradient(135deg, #2a1a4a, #5a2a8a);
  box-shadow: 0 0 12px rgba(100,50,200,0.4);
  color: #c8a0ff;
}

.msg-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-header {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-msg .msg-header {
  color: #a070ff;
  flex-direction: row-reverse;
}

.msg-time {
  color: var(--text-muted);
  font-size: 8px;
}

.msg-text {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  position: relative;
}

.jarvis-msg .msg-text {
  border-left: 2px solid var(--cyan);
  box-shadow: inset 0 0 20px rgba(0,212,255,0.03);
}

.user-msg .msg-text {
  border-radius: var(--radius) 0 var(--radius) var(--radius);
  border-right: 2px solid #7040cc;
  background: rgba(60,20,100,0.3);
  box-shadow: inset 0 0 20px rgba(100,50,200,0.05);
}

/* ── Input Area ── */
.chat-input-area {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border-dim);
  background: rgba(4,13,26,0.9);
  backdrop-filter: blur(10px);
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 8px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.input-prefix {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  caret-color: var(--cyan);
}

.chat-input::placeholder { color: var(--text-muted); }

.voice-btn, .send-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-dim);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.voice-btn svg, .send-btn svg { width: 14px; height: 14px; }

.voice-btn:hover {
  background: rgba(255,60,100,0.15);
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 0 10px rgba(255,60,100,0.3);
}

.voice-btn.active {
  background: rgba(255,60,100,0.2);
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 0 15px rgba(255,60,100,0.4);
  animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,60,100,0.3); }
  50%       { box-shadow: 0 0 20px rgba(255,60,100,0.6); }
}

.send-btn:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.send-btn:active { transform: scale(0.95); }

.input-hints {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: 0 2px;
}

/* ── Capability List ── */
.capability-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cap-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 3px 0;
}

.cap-item.active { color: var(--text-secondary); }

.cap-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.cap-item.active .cap-dot {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse-dot 3s ease-in-out infinite;
}

/* ── Recent Queries ── */
.recent-queries {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 120px;
  overflow-y: auto;
}

.recent-queries::-webkit-scrollbar { width: 2px; }
.recent-queries::-webkit-scrollbar-thumb { background: var(--border-glow); }

.query-item {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  padding: 4px 6px;
  border-left: 2px solid var(--border-dim);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: logFade 0.3s ease;
}

.query-item:hover {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: var(--cyan-faint);
}

.empty-state {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
}

/* ── Mood Display ── */
.mood-display {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mood-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mood-label-sm {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.mood-bar {
  flex: 1;
  height: 4px;
  background: rgba(0,180,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.mood-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  transition: width 1s ease;
}

.mood-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  text-align: center;
  letter-spacing: 0.1em;
}

/* ── Controls Grid ── */
.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.ctrl-btn {
  background: var(--cyan-faint);
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  padding: 7px 4px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.ctrl-btn:hover {
  background: rgba(0,212,255,0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* ── Typing Overlay ── */
.typing-overlay {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(4,13,26,0.9);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  padding: 8px 16px;
  z-index: 200;
  backdrop-filter: blur(10px);
}

.typing-overlay.visible { display: flex; }

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

.typing-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

/* ── Theme Variants ── */
body.theme-red {
  --cyan: #ff4060;
  --cyan-dim: rgba(255,64,96,0.6);
  --cyan-faint: rgba(255,64,96,0.08);
  --blue: #cc0030;
  --blue-bright: #ff6080;
  --arc: #ff2050;
  --border-glow: rgba(255,64,96,0.45);
  --glow-cyan: 0 0 12px rgba(255,64,96,0.4), 0 0 30px rgba(255,64,96,0.15);
}

body.theme-green {
  --cyan: #00ff88;
  --cyan-dim: rgba(0,255,136,0.6);
  --cyan-faint: rgba(0,255,136,0.08);
  --blue: #00aa44;
  --blue-bright: #44ffaa;
  --arc: #00cc66;
  --border-glow: rgba(0,255,136,0.45);
  --glow-cyan: 0 0 12px rgba(0,255,136,0.4), 0 0 30px rgba(0,255,136,0.15);
}

body.theme-gold {
  --cyan: #ffcc00;
  --cyan-dim: rgba(255,204,0,0.6);
  --cyan-faint: rgba(255,204,0,0.08);
  --blue: #cc8800;
  --blue-bright: #ffdd44;
  --arc: #ffaa00;
  --border-glow: rgba(255,204,0,0.45);
  --glow-cyan: 0 0 12px rgba(255,204,0,0.4), 0 0 30px rgba(255,204,0,0.15);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 180px 1fr 180px;
  }
}

@media (max-width: 700px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .panel-left, .panel-right { display: none; }
  .status-bar { padding: 0 20px; }
  .hud-corner { display: none; }
}

/* ── Entrance Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.status-bar  { animation: fadeInUp 0.5s ease 0.1s both; }
.panel-left  { animation: fadeInUp 0.5s ease 0.2s both; }
.center-panel { animation: fadeInUp 0.5s ease 0.3s both; }
.panel-right { animation: fadeInUp 0.5s ease 0.4s both; }