/* ============================================
   DRUG WARZ - Clean Theme
   ============================================ */

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

:root {
  --accent: #4a9eff;
  --accent-hover: #6bb3ff;
  --green: #34c759;
  --red: #ff3b30;
  --yellow: #ffd60a;
  --orange: #ff9500;
  --purple: #af52de;

  --bg: #111;
  --bg-raised: #1a1a1a;
  --bg-card: #222;
  --bg-input: #181818;
  --border: #333;
  --text: #eee;
  --text-secondary: #999;
  --text-muted: #666;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 1rem;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

#particles-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

#app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

.screen {
  display: none;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-lg);
  flex: 1;
}
.screen.active { display: flex; flex-direction: column; }

/* ============================================
   TITLE SCREEN
   ============================================ */
.title-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-xl);
  min-height: 100vh;
}

.game-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text);
}
.game-title .warz { color: var(--accent); }

.title-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.title-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 420px;
}

.title-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: 320px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover { background: var(--bg-raised); border-color: var(--accent); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none !important; }

.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: rgba(255,59,48,0.1); }
.btn-success { border-color: var(--green); color: var(--green); }
.btn-success:hover { background: rgba(52,199,89,0.1); }
.btn-warning { border-color: var(--yellow); color: var(--yellow); }
.btn-warning:hover { background: rgba(255,214,10,0.1); }

.btn-small { font-size: 0.85rem; padding: 6px 12px; min-height: 36px; }
.btn-full { width: 100%; }

/* Quantity +/- buttons */
.qty-btn {
  font-size: 1.1rem !important;
  font-weight: 700;
  width: 44px;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* MAX buy button */
.btn-max {
  border-color: var(--orange);
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.05em;
}
.btn-max:hover { background: rgba(255,149,0,0.1); }

/* ============================================
   HUD
   ============================================ */
.game-hud {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) var(--space-lg);
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: var(--space-sm);
  max-width: 960px;
  margin: 0 auto;
}

.hud-item { text-align: center; }
.hud-label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}
.hud-value { font-weight: 700; font-family: var(--font-mono); font-size: 0.95rem; }
.hud-value.cash { color: var(--green); }
.hud-value.debt { color: var(--red); }
.hud-value.health { color: var(--yellow); }
.hud-value.location { color: var(--purple); }

.health-bar-container { width: 100%; height: 4px; background: var(--bg-input); border-radius: 2px; margin-top: 3px; }
.health-bar { height: 100%; background: var(--green); transition: width 0.4s ease, background 0.4s ease; border-radius: 2px; }
.health-bar.warning { background: var(--yellow); }
.health-bar.danger { background: var(--red); }

.heat-bar-container { width: 100%; height: 4px; background: var(--bg-input); border-radius: 2px; margin-top: 3px; }
.heat-bar { height: 100%; background: var(--orange); transition: width 0.4s ease; border-radius: 2px; }
.heat-bar.critical { background: var(--red); }

/* ============================================
   GAME NAV
   ============================================ */
.game-screen { padding-top: 0; }

.game-nav {
  display: flex;
  gap: 8px;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.nav-btn {
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 8px 16px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.15s;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.nav-btn:hover, .nav-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(74,158,255,0.05);
}

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

/* ============================================
   MARKET TABLE
   ============================================ */
.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.market-table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.market-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(51,51,51,0.5);
  vertical-align: middle;
}
.market-table tr { transition: background 0.15s; }
.market-table tr:hover { background: rgba(255,255,255,0.02); }

.drug-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
}
.drug-emoji { font-size: 1.25em; }
.drug-label { display: flex; flex-direction: column; }
.drug-category { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }

.price { font-weight: 700; font-family: var(--font-mono); font-size: 1rem; }
.price-up { color: var(--green); }
.price-down { color: var(--red); }
.price-stable { color: var(--text-secondary); }

.drug-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.qty-input {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  width: 56px;
  height: 44px;
  min-height: 44px;
  padding: 4px 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: center;
  border-radius: var(--radius);
}
.qty-input:focus { outline: none; border-color: var(--accent); }
/* Hide native number spinners */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input { -moz-appearance: textfield; }

.drug-extreme td { border-color: rgba(255,59,48,0.2); }

/* Bloomberg Market Styles */
.market-table.bloomberg th { font-size: 0.7rem; }

.bloomberg-price-cell { display: flex; flex-direction: column; gap: 2px; }
.bloomberg-change { font-size: 0.75rem; font-family: var(--font-mono); font-weight: 600; }
.change-up { color: var(--green); }
.change-down { color: var(--red); }

.bloomberg-trend { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.bloomberg-range { font-size: 0.7rem; font-family: var(--font-mono); color: var(--text-muted); white-space: nowrap; }
.range-label { color: var(--text-muted); font-weight: 600; margin-right: 2px; }

.bloomberg-position { display: flex; flex-direction: column; gap: 1px; font-size: 0.8rem; font-family: var(--font-mono); }
.pos-qty { font-weight: 700; color: var(--accent); }
.pos-avg { font-size: 0.7rem; color: var(--text-muted); }
.pos-pnl { font-size: 0.75rem; font-weight: 700; }
.pnl-profit { color: var(--green); }
.pnl-loss { color: var(--red); }
.pos-empty { color: var(--text-muted); }

.drug-purity { color: var(--purple); font-size: 0.7rem; margin-left: 4px; }

.trade-preview { font-size: 0.7rem; font-family: var(--font-mono); color: var(--text-secondary); margin-top: 4px; min-height: 1em; }

.ticker-flash-up { animation: tickerUp 0.6s ease-out; }
.ticker-flash-down { animation: tickerDown 0.6s ease-out; }
@keyframes tickerUp { 0% { background: rgba(52,199,89,0.25); } 100% { background: transparent; } }
@keyframes tickerDown { 0% { background: rgba(255,59,48,0.25); } 100% { background: transparent; } }

/* Message Log */
.msg-log {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: var(--space-md);
  max-height: 140px;
  overflow-y: auto;
  font-size: 0.85rem;
}
.msg-log-item {
  padding: 3px 0;
  border-bottom: 1px solid rgba(51,51,51,0.3);
  color: var(--text-secondary);
}
.msg-log-item:last-child { border-bottom: none; }
.msg-log-day {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-right: 6px;
}

/* Market bar (carrying + stay the night) */
.market-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.sparkline { display: inline-block; vertical-align: middle; }
.sparkline svg { width: 60px; height: 22px; }
.sparkline path { fill: none; stroke: var(--accent); stroke-width: 1.5; }

/* ============================================
   LOCATIONS
   ============================================ */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border-top: 3px solid var(--card-color, var(--accent));
}
.location-card:hover {
  border-color: var(--card-color, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.location-card.current { opacity: 0.4; cursor: default; transform: none; }
.location-card.current::after {
  content: 'HERE';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
}

.location-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.location-desc { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }
.location-danger { margin-top: var(--space-sm); font-size: 0.75rem; color: var(--text-secondary); }
.danger-dots { color: var(--red); }

/* ============================================
   EVENT OVERLAY & MODAL
   ============================================ */
.event-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.event-overlay.active { opacity: 1; pointer-events: all; }

.event-modal {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-xl);
  max-width: 480px;
  width: 92%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.event-overlay.active .event-modal { transform: scale(1); }
.event-modal.government-strike { border-color: var(--red); box-shadow: 0 0 30px rgba(255,59,48,0.2); }

.event-title { font-size: 1.4rem; font-weight: 800; margin-bottom: var(--space-md); }
.event-title.danger { color: var(--red); }
.event-title.warning { color: var(--yellow); }
.event-title.success { color: var(--green); }
.event-title.info { color: var(--accent); }

.event-message { font-size: 1rem; color: var(--text-secondary); margin-bottom: var(--space-lg); line-height: 1.6; }
.event-details { font-size: 0.9rem; color: var(--yellow); margin-bottom: var(--space-lg); }

/* ============================================
   INVENTORY / PORTFOLIO
   ============================================ */
.portfolio-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.portfolio-stat { text-align: center; }
.portfolio-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.portfolio-value { font-size: 1.1rem; font-weight: 800; font-family: var(--font-mono); }

.portfolio-capacity { margin-bottom: var(--space-sm); }
.cap-label { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 3px; }
.cap-bar-container { width: 100%; height: 6px; background: var(--bg-input); border-radius: 3px; }
.cap-bar { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; }
.cap-bar.cap-high { background: var(--orange); }
.cap-bar.cap-full { background: var(--red); }

.portfolio-breakdown { margin-top: var(--space-sm); }
.breakdown-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.breakdown-segment { min-width: 4px; transition: width 0.3s; }
.breakdown-legend { display: flex; gap: var(--space-md); flex-wrap: wrap; font-size: 0.75rem; color: var(--text-secondary); }
.breakdown-legend-item { display: flex; align-items: center; gap: 4px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.inv-equip-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.inv-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-sm);
}
.inventory-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--card-color, var(--accent));
  border-radius: var(--radius);
  padding: 12px 14px;
}
.inv-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.inv-card-data {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px 8px;
}
.inv-stat { display: flex; flex-direction: column; }
.inv-stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.inv-stat-value { font-size: 0.85rem; font-weight: 600; font-family: var(--font-mono); }

.inventory-stats { font-size: 0.9rem; color: var(--text-secondary); }
.inventory-empty { text-align: center; padding: var(--space-xl); color: var(--text-muted); }

/* ============================================
   SHOP
   ============================================ */
.shop-section {
  margin-bottom: var(--space-xl);
}
.shop-section h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.shop-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  gap: var(--space-md);
}
.shop-item-info {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  flex: 1;
  min-width: 0;
}
.shop-item-name { font-weight: 700; font-size: 0.95rem; }
.shop-item-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.shop-item-stats { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; font-family: var(--font-mono); }

/* ============================================
   FINANCE
   ============================================ */
.finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.finance-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-lg); }
.finance-card h3 { font-size: 1.1rem; margin-bottom: var(--space-md); }
.finance-amount { font-size: 1.6rem; font-weight: 800; font-family: var(--font-mono); margin-bottom: var(--space-md); }
.finance-input-group { display: flex; gap: var(--space-xs); margin-top: var(--space-sm); }
.finance-input {
  font-family: var(--font-mono); font-size: 0.95rem; padding: 6px 10px;
  background: var(--bg-input); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius); flex: 1; min-width: 0;
}
.finance-input:focus { outline: none; border-color: var(--accent); }

/* ============================================
   HELP PAGE
   ============================================ */
.help-section {
  margin-bottom: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.help-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.help-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   GAME OVER
   ============================================ */
.gameover-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  min-height: 100vh;
}
.gameover-title { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 900; color: var(--red); }
.gameover-reason { font-size: 1rem; color: var(--text-secondary); }

.gameover-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--space-md);
  width: 100%;
  max-width: 600px;
}
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-md); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 1.4rem; font-weight: 800; font-family: var(--font-mono); color: var(--accent); }

.highscore-input { display: flex; gap: var(--space-sm); max-width: 300px; margin: 0 auto; }
.highscore-input input {
  font-family: var(--font); font-size: 1rem; padding: var(--space-sm);
  background: var(--bg-input); border: 1px solid var(--border); color: var(--text);
  text-align: center; border-radius: var(--radius); flex: 1;
}
.highscore-input input:focus { outline: none; border-color: var(--accent); }

.highscore-table { width: 100%; max-width: 500px; border-collapse: collapse; font-size: 0.95rem; margin: 0 auto; }
.highscore-table th { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.highscore-table td { padding: 6px 10px; border-bottom: 1px solid rgba(51,51,51,0.5); }
.highscore-table tr:first-child td { color: var(--yellow); font-weight: 700; }

/* ============================================
   MODE SELECT
   ============================================ */
.mode-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-xl);
  min-height: 100vh;
}
.mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  width: 100%;
  max-width: 580px;
}
.mode-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: var(--space-xl); cursor: pointer; transition: all 0.2s ease; text-align: center;
}
.mode-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.mode-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.mode-title { font-size: 1.3rem; font-weight: 800; color: var(--accent); margin-bottom: var(--space-xs); }
.mode-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

/* ============================================
   TECH STACK (compact)
   ============================================ */
.tech-section {
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border);
}
.tech-title { font-size: 1rem; color: var(--text-muted); text-align: center; margin-bottom: var(--space-md); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
  max-width: 960px;
  margin: 0 auto;
}
.tech-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md); transition: border-color 0.2s;
}
.tech-card:hover { border-color: var(--accent); }
.tech-icon { font-size: 1rem; display: inline; margin-right: 4px; }
.tech-name { font-size: 0.8rem; font-weight: 700; display: inline; }
.tech-desc { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================
   TOASTS
   ============================================ */
.toast-container {
  position: fixed; bottom: var(--space-lg); right: var(--space-lg); z-index: 2000;
  display: flex; flex-direction: column; gap: var(--space-sm); pointer-events: none;
}
.toast {
  font-family: var(--font); font-size: 0.9rem; padding: 8px 14px;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); pointer-events: all; transform: translateX(120%);
  transition: transform 0.25s ease; max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
.toast.warning { border-color: var(--yellow); }

/* ============================================
   TRAVEL MODAL
   ============================================ */
.travel-route {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
}
.travel-map {
  position: relative;
  width: 100%;
  height: 200px;
  background: #0a0e17;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.travel-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.travel-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.travel-dot-from { background: var(--text-secondary); }
.travel-dot-to { background: var(--green); box-shadow: 0 0 8px rgba(52,199,89,0.5); }
.travel-plane {
  position: absolute;
  font-size: 1.5rem;
  z-index: 3;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 4px rgba(74,158,255,0.6));
}
.travel-label {
  position: absolute;
  font-size: 0.65rem;
  color: var(--text-muted);
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
}
.travel-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: color 0.3s;
}

/* ============================================
   COMBAT LOG
   ============================================ */
.combat-log div {
  padding: 2px 0;
  border-bottom: 1px solid rgba(51,51,51,0.3);
}
.combat-log div:last-child { border-bottom: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 700px) {
  .screen { padding: var(--space-md); }
  .hud-grid { grid-template-columns: repeat(4, 1fr); }
  /* Hide Range and Position columns on mobile */
  .market-table th:nth-child(3),
  .market-table td:nth-child(3),
  .market-table th:nth-child(4),
  .market-table td:nth-child(4) { display: none; }
  .finance-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .mode-cards { grid-template-columns: 1fr; }
  .game-nav { justify-content: center; }
  .event-modal { padding: var(--space-md); width: 95%; }
  .toast-container { right: var(--space-sm); left: var(--space-sm); bottom: var(--space-sm); }
  .toast { max-width: none; }
  .portfolio-summary { grid-template-columns: 1fr; gap: var(--space-xs); }
  .inv-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hud-grid { grid-template-columns: repeat(3, 1fr); }
  .location-grid { grid-template-columns: 1fr; }
  .drug-actions { flex-wrap: wrap; }
  .qty-btn { width: 40px; height: 40px; min-height: 40px; min-width: 40px; }
  .qty-input { width: 48px; height: 40px; min-height: 40px; font-size: 0.8rem; }
  .market-table { font-size: 0.85rem; }
  .nav-btn { font-size: 0.8rem; padding: 6px 12px; min-height: 40px; }
}

@media (max-width: 380px) {
  .hud-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-small { font-size: 0.75rem; }
}

@media (min-width: 1200px) {
  .screen { max-width: 1060px; }
  .hud-grid { max-width: 1060px; }
}
