@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=JetBrains+Mono:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');


/* ============================================================
   VIBE CODER TYCOON - Global Styles
   Cyberpunk IDE / Hacker Dashboard aesthetic
   ============================================================ */
:root {
  --bg-primary: #0b0f18;
  --bg-secondary: #101828;
  --bg-card: #151d30;
  --bg-card-hover: #1a2640;
  --bg-highlight: #1f2f50;
  --border: #1e2d4a;
  --border-light: #2a4070;

  --text-primary: #e8f0fa;
  --text-secondary: #a4c0dd;
  --text-muted: #6889a8;

  --accent-blue: #00b4ff;
  --accent-green: #00ff9d;
  --accent-yellow: #ffe600;
  --accent-orange: #ff7c00;
  --accent-red: #ff2a4a;
  --accent-purple: #bf5fff;
  --accent-pink: #ff4da6;
  --accent-cyan: #00e5ff;

  --glow-blue: 0 0 8px rgba(0, 180, 255, 0.6), 0 0 20px rgba(0, 180, 255, 0.2);
  --glow-green: 0 0 8px rgba(0, 255, 157, 0.6), 0 0 20px rgba(0, 255, 157, 0.2);
  --glow-red: 0 0 8px rgba(255, 42, 74, 0.6), 0 0 20px rgba(255, 42, 74, 0.2);
  --glow-yellow: 0 0 8px rgba(255, 230, 0, 0.6), 0 0 20px rgba(255, 230, 0, 0.2);
  --glow-cyan: 0 0 8px rgba(0, 229, 255, 0.6), 0 0 20px rgba(0, 229, 255, 0.2);
  --glow-purple: 0 0 8px rgba(191, 95, 255, 0.6), 0 0 20px rgba(191, 95, 255, 0.2);
  --glow-card: 0 0 0 1px rgba(0, 180, 255, 0.08), 0 4px 24px rgba(0, 0, 0, 0.4);

  --star-filled: #ffe600;
  --star-empty: #1e2d4a;

  --rarity-common: #7a9cc4;
  --rarity-uncommon: #00ff9d;
  --rarity-rare: #00b4ff;
  --rarity-legendary: #ffe600;

  --bug-minor: #ffe600;
  --bug-major: #ff7c00;
  --bug-critical: #ff2a4a;

  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --font-main: 'Share Tech Mono', 'JetBrains Mono', monospace;
  --font-display: 'Orbitron', 'Share Tech Mono', monospace;
  --font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Subtle scanline texture */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 180, 255, 0.015) 2px,
      rgba(0, 180, 255, 0.015) 4px
    );
}
/* Noise grain overlay via pseudo-element on body */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: overlay;
}
#app {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Layout */
.game-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 52px 24px 1fr;
  grid-template-areas:
    "header header"
    "newsbar newsbar"
    "sidebar content";
  height: 100vh;
  width: 100%;
}
.game-content-area {
  grid-area: content;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.game-header {
  grid-area: header;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap-lg);
  z-index: 10;
  /* Subtle bottom glow */
  box-shadow: 0 1px 0 rgba(0, 180, 255, 0.15), 0 2px 16px rgba(0, 0, 0, 0.6);
  position: relative;
}
/* Animated accent line on header bottom */
.game-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent-blue) 20%,
    var(--accent-cyan) 50%,
    var(--accent-blue) 80%,
    transparent 100%
  );
  opacity: 0.6;
  animation: header-scan 4s ease-in-out infinite;
}
@keyframes header-scan {
  0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
  50% { opacity: 0.8; transform: scaleX(1); }
}
.game-sidebar {
  grid-area: sidebar;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: var(--gap-md);
  gap: var(--gap-sm);
}
.game-main {
  flex: 1;
  overflow-y: auto;
  padding: var(--gap-lg);
}
/* VS Code-style Terminal Panel */
.terminal-panel {
  height: 160px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: #090d16;
}
.terminal-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  height: 32px;
  min-height: 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.terminal-tabs {
  display: flex;
  gap: 0;
  height: 100%;
  align-items: stretch;
}
.terminal-tab {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  outline: none;
  transition: all var(--transition-fast);
}
.terminal-tab:hover { color: var(--text-secondary); }
.terminal-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-blue);
}
.terminal-badge {
  margin-left: 6px;
  background: rgba(255, 42, 74, 0.2);
  color: var(--accent-red);
  border-radius: 8px;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 700;
}
.terminal-actions {
  display: flex;
  gap: 8px;
}
.terminal-action {
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: all var(--transition-fast);
}
.terminal-action:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}
.terminal-line {
  display: flex;
  gap: 8px;
  padding: 1px 0;
  animation: term-fade 0.2s ease forwards;
}
.terminal-prompt {
  color: var(--accent-cyan);
  flex-shrink: 0;
  user-select: none;
}
.terminal-text {
  color: var(--text-secondary);
  word-break: break-word;
}
.terminal-line:last-child .terminal-text {
  color: var(--text-primary);
}
@keyframes term-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.game-footer {
  grid-area: footer;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 0 0 var(--gap-md);
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  position: relative;
}
/* News ticker fade edges */
.game-footer::before,
.game-footer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.game-footer::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-secondary) 30%, transparent 100%);
}
.game-footer::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-secondary) 30%, transparent 100%);
  opacity: 0.5;
}
/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
  transition: all var(--transition-fast);
  box-shadow: var(--glow-card);
  position: relative;
  overflow: hidden;
}
/* Top edge accent line on cards */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 180, 255, 0.2), transparent);
  transition: opacity var(--transition-fast);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  box-shadow: 0 0 0 1px rgba(0, 180, 255, 0.15), 0 4px 24px rgba(0, 0, 0, 0.5);
}
.card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(0, 180, 255, 0.5), transparent);
}
.card-clickable { cursor: pointer; }
.card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 180, 255, 0.25), 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 180, 255, 0.08);
}
/* Shimmer animation on card hover */
.card-clickable::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(0, 180, 255, 0.04) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: none;
  pointer-events: none;
  border-radius: inherit;
}
.card-clickable:hover::after {
  animation: card-shimmer 0.6s ease forwards;
}
@keyframes card-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
/* Card selection/activation animation */
@keyframes card-pulse {
  0%, 100% { 
    box-shadow: 0 0 0 1px rgba(0, 180, 255, 0.3), 0 4px 24px rgba(0, 0, 0, 0.4);
  }
  50% { 
    box-shadow: 0 0 0 2px rgba(0, 180, 255, 0.5), 0 8px 32px rgba(0, 180, 255, 0.15), 0 0 40px rgba(0, 180, 255, 0.1);
  }
}
.card-clickable:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.05s ease;
}
.card-selected {
  animation: card-pulse 2s ease-in-out infinite;
  border-color: var(--accent-blue);
}
/* Card appear animation */
@keyframes card-appear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  70% {
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.card-animate {
  animation: card-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--gap-sm);
}
.card-title { font-size: 14px; font-weight: 600; font-family: var(--font-display); letter-spacing: 0.5px; }
.card-subtitle { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.5px; font-family: var(--font-mono); }
.card-body { font-size: 13px; color: var(--text-primary); }
/* Difficulty-coded card borders */
.card-common { border-left: 2px solid var(--rarity-common); }
.card-uncommon { border-left: 2px solid var(--rarity-uncommon); box-shadow: var(--glow-card), -2px 0 8px rgba(0, 255, 157, 0.15); }
.card-rare { border-left: 2px solid var(--rarity-rare); box-shadow: var(--glow-card), -2px 0 8px rgba(0, 180, 255, 0.2); }
.card-legendary { border-left: 2px solid var(--rarity-legendary); box-shadow: var(--glow-card), -2px 0 10px rgba(255, 230, 0, 0.25); }
/* Difficulty-coded contract cards */
.contract-card-d1, .contract-card-d2 {
  border-top: 2px solid var(--accent-green);
  background: linear-gradient(160deg, rgba(0, 255, 157, 0.04) 0%, var(--bg-card) 40%);
}
.contract-card-d1:hover, .contract-card-d2:hover {
  box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.2), 0 8px 32px rgba(0, 0, 0, 0.5);
}
.contract-card-d3 {
  border-top: 2px solid var(--accent-yellow);
  background: linear-gradient(160deg, rgba(255, 230, 0, 0.04) 0%, var(--bg-card) 40%);
}
.contract-card-d3:hover {
  box-shadow: 0 0 0 1px rgba(255, 230, 0, 0.2), 0 8px 32px rgba(0, 0, 0, 0.5);
}
.contract-card-d4 {
  border-top: 2px solid var(--accent-orange);
  background: linear-gradient(160deg, rgba(255, 124, 0, 0.04) 0%, var(--bg-card) 40%);
}
.contract-card-d4:hover {
  box-shadow: 0 0 0 1px rgba(255, 124, 0, 0.2), 0 8px 32px rgba(0, 0, 0, 0.5);
}
.contract-card-d5 {
  border-top: 2px solid var(--accent-red);
  background: linear-gradient(160deg, rgba(255, 42, 74, 0.05) 0%, var(--bg-card) 40%);
}
.contract-card-d5:hover {
  box-shadow: 0 0 0 1px rgba(255, 42, 74, 0.25), 0 8px 32px rgba(0, 0, 0, 0.5);
}
/* Buttons */
/* Button micro-interactions */
.btn:active:not(:disabled) {
  transform: scale(0.96) translateY(1px);
  transition: transform 0.05s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  pointer-events: none;
}
.btn:active:not(:disabled)::after {
  opacity: 1;
  transform: scale(1.2);
  transition: all 0.1s ease;
}
/* Button ripple effect */
@keyframes btn-ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn:hover:not(:disabled) {
  background: rgba(0, 180, 255, 0.08);
  border-color: rgba(0, 180, 255, 0.25);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  background: rgba(0, 180, 255, 0.12);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.btn-primary:hover:not(:disabled) {
  background: rgba(0, 180, 255, 0.35);
  box-shadow: var(--glow-blue);
  color: #001a33;
}
.btn-success {
  background: rgba(0, 255, 157, 0.1);
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.btn-success:hover:not(:disabled) {
  background: rgba(0, 255, 157, 0.2);
  box-shadow: var(--glow-green);
}
.btn-danger {
  background: rgba(255, 42, 74, 0.12);
  border-color: var(--accent-red);
  color: var(--accent-red);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(255, 42, 74, 0.22);
  box-shadow: var(--glow-red);
}
.btn-sm { padding: 4px 10px; font-size: 10px; }
.btn-lg { padding: 12px 28px; font-size: 13px; }
.btn-block { width: 100%; }
/* Sidebar Nav */
.nav-btn {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
  font-family: var(--font-main);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.nav-btn:hover {
  background: rgba(0, 180, 255, 0.06);
  border-color: rgba(0, 180, 255, 0.15);
  color: var(--text-primary);
}
.nav-btn.active {
  background: rgba(0, 180, 255, 0.1);
  border-color: rgba(0, 180, 255, 0.3);
  color: var(--accent-blue);
  font-weight: 600;
  box-shadow: inset 0 0 12px rgba(0, 180, 255, 0.05);
}
.nav-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.nav-icon { font-size: 16px; width: 22px; text-align: center; }
.nav-divider { height: 1px; background: var(--border); margin: var(--gap-xs) 0; opacity: 0.5; }
/* Stats */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 12px;
}
.stat-label { color: var(--text-secondary); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; }
.stat-value { font-weight: 600; font-family: var(--font-mono); font-size: 12px; }
/* IDE-style stat bars */
.stat-bar {
  height: 4px;
  background: rgba(0, 180, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
  border: 1px solid rgba(0, 180, 255, 0.06);
}
.stat-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width var(--transition-normal);
  position: relative;
}
/* Glow on stat bar fill */
.stat-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 2px 2px 0;
  filter: blur(2px);
}
/* IDE Progress Bar Sliders */
.slider-container { margin: var(--gap-md) 0; }
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: var(--gap-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}
.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--slider-color, #ff0) 0%,
    var(--slider-color, #ff0) var(--val, 50%),
    rgba(255, 255, 255, 0.08) var(--val, 50%),
    rgba(255, 255, 255, 0.08) 100%
  );
  outline: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--slider-color, var(--accent-blue));
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px var(--slider-color, rgba(0, 180, 255, 0.6));
  transition: box-shadow var(--transition-fast);
}
.slider-input::-webkit-slider-thumb:hover {
  box-shadow: 0 0 12px var(--slider-color, rgba(0, 180, 255, 0.9)), 0 0 30px rgba(255, 255, 255, 0.2);
}
.slider-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--slider-color, var(--accent-blue));
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px var(--slider-color, rgba(0, 180, 255, 0.6));
}
.slider-value {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-top: var(--gap-xs);
  font-family: var(--font-mono);
  text-shadow: 0 0 8px rgba(0, 180, 255, 0.5);
}
/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  border: 1px solid currentColor;
  opacity: 0.9;
}
.badge-difficulty-1, .badge-difficulty-2 {
  background: rgba(0, 255, 157, 0.08);
  color: var(--accent-green);
  border-color: rgba(0, 255, 157, 0.3);
}
.badge-difficulty-3 {
  background: rgba(255, 230, 0, 0.08);
  color: var(--accent-yellow);
  border-color: rgba(255, 230, 0, 0.3);
}
.badge-difficulty-4 {
  background: rgba(255, 124, 0, 0.08);
  color: var(--accent-orange);
  border-color: rgba(255, 124, 0, 0.3);
}
.badge-difficulty-5 {
  background: rgba(255, 42, 74, 0.1);
  color: var(--accent-red);
  border-color: rgba(255, 42, 74, 0.35);
}
.badge-stage {
  background: rgba(0, 180, 255, 0.08);
  color: var(--accent-blue);
  border-color: rgba(0, 180, 255, 0.3);
}
.badge-category {
  background: rgba(191, 95, 255, 0.08);
  color: var(--accent-purple);
  border-color: rgba(191, 95, 255, 0.3);
}
.stars { color: var(--star-filled); font-size: 16px; letter-spacing: 2px; }
.star-empty { color: var(--star-empty); }
/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap-md); }
.flex-row { display: flex; align-items: center; gap: var(--gap-sm); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col { display: flex; flex-direction: column; gap: var(--gap-sm); }
/* News Ticker - smoother with controlled speed */
.news-ticker-wrapper {
  position: relative;
  overflow: hidden;
  flex: 1;
  /* gradient fade on edges handled by footer::before/after */
}
.news-ticker {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.news-ticker:hover { animation-play-state: paused; }
@keyframes ticker {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
.news-item {
  color: var(--accent-cyan);
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}
.news-separator { color: var(--border-light); letter-spacing: 2px; }
/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(6px);
  animation: overlay-in 0.2s ease;
}
@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--bg-card);
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--gap-xl);
  max-width: 520px;
  width: 90%;
  box-shadow:
    0 0 0 1px rgba(0, 180, 255, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(0, 180, 255, 0.08);
  animation: modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--gap-sm);
  font-family: var(--font-display);
  color: var(--accent-blue);
  text-shadow: 0 0 20px rgba(0, 180, 255, 0.4);
  letter-spacing: 1px;
}
.modal-desc {
  color: var(--text-secondary);
  margin-bottom: var(--gap-lg);
  line-height: 1.7;
  font-size: 13px;
}
.modal-choices { display: flex; flex-direction: column; gap: var(--gap-sm); }
.choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  font-family: var(--font-main);
  position: relative;
  overflow: hidden;
}
.choice-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-blue);
  transform: scaleY(0);
  transition: transform var(--transition-fast);
}
.choice-btn:hover {
  background: var(--bg-highlight);
  border-color: rgba(0, 180, 255, 0.35);
  box-shadow: inset 0 0 20px rgba(0, 180, 255, 0.04);
}
.choice-btn:hover::before { transform: scaleY(1); }
.choice-text { font-size: 13px; font-weight: 500; }
.choice-effect { font-size: 11px; color: var(--text-muted); margin-top: 3px; font-family: var(--font-mono); }
/* Title Screen */
.title-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: var(--gap-xl);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
/* Grid background */
.title-screen::before {
  content: '';
  position: absolute;
  inset: 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;
  animation: grid-drift 20s linear infinite;
}
/* Radial glow center */
.title-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%,
    rgba(0, 180, 255, 0.06) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
}
@keyframes grid-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(40px); }
}
.title-logo {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 4px;
  font-family: var(--font-display);
  color: var(--accent-blue);
  text-shadow:
    0 0 20px rgba(0, 180, 255, 0.8),
    0 0 60px rgba(0, 180, 255, 0.4),
    0 0 100px rgba(0, 180, 255, 0.2);
  animation: logo-flicker 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
  text-align: center;
}
@keyframes logo-flicker {
  0%, 93%, 100% {
    text-shadow:
      0 0 20px rgba(0, 180, 255, 0.8),
      0 0 60px rgba(0, 180, 255, 0.4),
      0 0 100px rgba(0, 180, 255, 0.2);
    opacity: 1;
  }
  94% {
    text-shadow: none;
    opacity: 0.7;
  }
  95% {
    text-shadow:
      0 0 20px rgba(0, 180, 255, 0.8),
      0 0 60px rgba(0, 180, 255, 0.4),
      0 0 100px rgba(0, 180, 255, 0.2);
    opacity: 1;
  }
  96% {
    text-shadow: none;
    opacity: 0.6;
  }
  97% {
    text-shadow:
      0 0 30px rgba(0, 180, 255, 1),
      0 0 80px rgba(0, 180, 255, 0.6),
      0 0 120px rgba(0, 180, 255, 0.3);
    opacity: 1;
  }
}
.title-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 480px;
  text-align: center;
  line-height: 2;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
}
.title-tagline {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
}
/* Pulse-glow start button */
.btn-start {
  background: rgba(0, 180, 255, 0.1);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  padding: 14px 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  z-index: 1;
  animation: start-pulse 2.5s ease-in-out infinite;
  transition: all 0.2s ease;
  text-transform: uppercase;
}
.btn-start:hover:not(:disabled) {
  background: rgba(0, 180, 255, 0.2);
  box-shadow:
    0 0 20px rgba(0, 180, 255, 0.6),
    0 0 60px rgba(0, 180, 255, 0.3),
    inset 0 0 20px rgba(0, 180, 255, 0.05);
  animation: none;
  transform: scale(1.02);
}
.btn-start:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
}
@keyframes start-pulse {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(0, 180, 255, 0.3),
      0 0 20px rgba(0, 180, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 20px rgba(0, 180, 255, 0.6),
      0 0 40px rgba(0, 180, 255, 0.2),
      0 0 80px rgba(0, 180, 255, 0.1);
  }
}
/* Results */
.result-stars {
  font-size: 52px;
  text-align: center;
  letter-spacing: 10px;
  margin: var(--gap-lg) 0;
  animation: stars-reveal 0.8s ease both;
}
.result-payment {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent-green);
  text-align: center;
  font-family: var(--font-mono);
  text-shadow: var(--glow-green);
  animation: payment-glow-in 0.6s ease 0.4s both;
}
@keyframes stars-reveal {
  from { opacity: 0; transform: scale(0.7); filter: blur(4px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes payment-glow-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
  margin-top: var(--gap-lg);
}
/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(255, 42, 74, 0.4), 0 0 12px rgba(255, 42, 74, 0.2); }
  50% { box-shadow: 0 0 12px rgba(255, 42, 74, 0.8), 0 0 30px rgba(255, 42, 74, 0.4), 0 0 60px rgba(255, 42, 74, 0.15); }
}
@keyframes warn-text-pulse {
  0%, 100% { text-shadow: none; }
  50% { text-shadow: 0 0 8px currentColor; }
}
.animate-in { animation: fadeIn 0.35s ease forwards; }
.animate-slide { animation: slideIn 0.3s ease forwards; }
.animate-pulse { animation: pulse 2s ease infinite; }
/* 3D Scene containers — square box, centered */
.scene-container {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
/* Warning pulse for high debt / low money */
.warn-blink { animation: warn-text-pulse 1.5s ease-in-out infinite; }
.warn-card { animation: neon-pulse 1.8s ease-in-out infinite; }
/* Staggered children */
.stagger > * { animation: fadeIn 0.35s ease forwards; opacity: 0; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.12s; }
.stagger > *:nth-child(3) { animation-delay: 0.19s; }
.stagger > *:nth-child(4) { animation-delay: 0.26s; }
.stagger > *:nth-child(5) { animation-delay: 0.33s; }
.stagger > *:nth-child(6) { animation-delay: 0.40s; }
/* Results stagger */
.results-stagger > * { animation: fadeIn 0.4s ease forwards; opacity: 0; }
.results-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.results-stagger > *:nth-child(2) { animation-delay: 0.25s; }
.results-stagger > *:nth-child(3) { animation-delay: 0.4s; }
.results-stagger > *:nth-child(4) { animation-delay: 0.55s; }
.results-stagger > *:nth-child(5) { animation-delay: 0.7s; }
.results-stagger > *:nth-child(6) { animation-delay: 0.85s; }
/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); box-shadow: var(--glow-blue); }
/* Game Over */
.game-over-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: var(--gap-lg);
  text-align: center;
}
.game-over-title {
  font-size: 42px;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: 4px;
}
.game-over-win {
  color: var(--accent-green);
  text-shadow: var(--glow-green);
}
.game-over-lose {
  color: var(--accent-red);
  text-shadow: var(--glow-red);
}
/* Utility */
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-yellow { color: var(--accent-yellow); }
.text-blue { color: var(--accent-blue); }
.text-purple { color: var(--accent-purple); }
.text-cyan { color: var(--accent-cyan); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); }
.font-bold { font-weight: 700; }
.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mb-sm { margin-bottom: var(--gap-sm); }
.mb-md { margin-bottom: var(--gap-md); }
.mb-lg { margin-bottom: var(--gap-lg); }
.w-full { width: 100%; }
.gap-md { gap: var(--gap-md); }
/* Glow utility classes */
.glow-green { text-shadow: 0 0 10px rgba(0, 255, 157, 0.7); }
.glow-blue { text-shadow: 0 0 10px rgba(0, 180, 255, 0.7); }
.glow-red { text-shadow: 0 0 10px rgba(255, 42, 74, 0.7); }
.glow-yellow { text-shadow: 0 0 10px rgba(255, 230, 0, 0.7); }
/* Pay amount emphasis */
.pay-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-green);
  font-family: var(--font-mono);
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.5);
}
/* ============================================================
   MOBILE RESPONSIVE STYLES
   ============================================================ */
/* Mobile-first base styles - ensure minimum touch target sizes */
@media (pointer: coarse) {
  /* Touch devices - ensure all interactive elements are at least 44x44px */
  .btn, .nav-btn, .terminal-tab, .terminal-action, .choice-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .btn-sm {
    min-height: 36px;
    min-width: 36px;
    padding: 8px 14px;
  }
  
  /* Larger touch targets for slider thumbs */
  .slider-input::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }
  
  .slider-input::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }
  
  /* Increase nav icon size for touch */
  .nav-icon {
    font-size: 20px;
    width: 28px;
  }
  
  /* Make cards more tappable */
  .card-clickable {
    min-height: 44px;
  }
  
  /* Disable hover effects on touch devices */
  .card-clickable:hover {
    transform: none;
  }
  
  .card-clickable:active {
    transform: scale(0.98);
  }
}
/* Prevent text scaling on orientation change */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
/* Ensure proper viewport handling */
@viewport {
  width: device-width;
  initial-scale: 1;
}
/* ============================================================
   TABLET BREAKPOINT (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Layout changes for tablet */
  .game-layout {
    grid-template-columns: 200px 1fr;
    grid-template-rows: 48px 22px 1fr;
  }
  
  /* Smaller sidebar */
  .game-sidebar {
    padding: var(--gap-sm);
    gap: var(--gap-xs);
  }
  
  /* Adjust header */
  .game-header {
    padding: 0 var(--gap-md);
    height: 48px;
  }
  
  /* Reduce padding in main content */
  .game-main {
    padding: var(--gap-md);
  }
  
  /* Smaller terminal */
  .terminal-panel {
    height: 140px;
    min-height: 100px;
  }
  
  .terminal-body {
    font-size: 10px;
    padding: 6px 10px;
  }
  
  /* Adjust button sizes */
  .btn {
    padding: 10px 14px;
    font-size: 12px;
  }
  
  .btn-lg {
    padding: 14px 24px;
    font-size: 14px;
  }
  
  /* Navigation adjustments */
  .nav-btn {
    padding: 10px;
    font-size: 11px;
  }
  
  .nav-icon {
    font-size: 18px;
    width: 24px;
  }
  
  /* Card adjustments */
  .card {
    padding: var(--gap-sm);
  }
  
  .card-title {
    font-size: 13px;
  }
  
  .card-subtitle {
    font-size: 10px;
  }
  
  /* Grid adjustments */
  .grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--gap-sm);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-sm);
  }
  
  /* Modal adjustments */
  .modal {
    max-width: 90%;
    padding: var(--gap-lg);
  }
  
  .modal-title {
    font-size: 16px;
  }
  
  .modal-desc {
    font-size: 12px;
  }
  
  /* Title screen adjustments */
  .title-logo {
    font-size: 36px;
    letter-spacing: 2px;
  }
  
  .title-subtitle {
    font-size: 12px;
    max-width: 90%;
    padding: 0 var(--gap-md);
  }
  
  .btn-start {
    font-size: 13px;
    padding: 12px 32px;
  }
  
  /* Game over screen */
  .game-over-title {
    font-size: 32px;
  }
  
  /* Results adjustments */
  .result-stars {
    font-size: 40px;
  }
  
  .result-payment {
    font-size: 32px;
  }
  
  /* Scene container */
  .scene-container {
    max-width: 100%;
  }
  
  /* Stat adjustments */
  .stat-row {
    font-size: 11px;
    padding: 4px 0;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .stat-value {
    font-size: 11px;
  }
  
  /* Badge adjustments */
  .badge {
    font-size: 8px;
    padding: 2px 6px;
  }
  
  /* Slider adjustments */
  .slider-labels {
    font-size: 9px;
  }
  
  .slider-value {
    font-size: 11px;
  }
}
/* ============================================================
   PHONE BREAKPOINT (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Single column layout for phones */
  .game-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 44px auto 1fr auto;
    grid-template-areas:
      "header"
      "sidebar"
      "content"
      "newsbar";
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    overflow: hidden;
  }
  
  /* Mobile header - compact */
  .game-header {
    padding: 0 var(--gap-sm);
    height: 44px;
    min-height: 44px;
  }
  
  /* Horizontal scrolling sidebar for mobile */
  .game-sidebar {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--gap-xs) var(--gap-sm);
    gap: var(--gap-xs);
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 56px;
    max-height: 56px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  
  .game-sidebar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  /* Nav buttons as horizontal pills */
  .nav-btn {
    flex-direction: column;
    padding: 6px 12px;
    font-size: 9px;
    min-width: 64px;
    text-align: center;
    white-space: nowrap;
    border-radius: var(--radius-md);
    gap: 2px;
    min-height: 44px;
    justify-content: center;
  }
  
  .nav-icon {
    font-size: 18px;
    width: auto;
  }
  
  .nav-divider {
    display: none;
  }
  
  /* Main content area */
  .game-content-area {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .game-main {
    padding: var(--gap-sm);
  }
  
  /* Collapsible terminal for mobile */
  .terminal-panel {
    height: 120px;
    min-height: 80px;
    position: relative;
  }
  
  .terminal-panel-header {
    height: 28px;
    min-height: 28px;
    padding: 0 10px;
  }
  
  .terminal-tab {
    padding: 0 10px;
    font-size: 9px;
    min-height: 28px;
  }
  
  .terminal-body {
    font-size: 10px;
    line-height: 1.5;
    padding: 6px 8px;
  }
  
  /* Touch-friendly buttons */
  .btn {
    padding: 12px 16px;
    font-size: 13px;
    min-height: 44px;
    min-width: 44px;
    border-radius: var(--radius-md);
  }
  
  .btn-sm {
    padding: 10px 12px;
    font-size: 11px;
    min-height: 36px;
  }
  
  .btn-lg {
    padding: 16px 24px;
    font-size: 14px;
    width: 100%;
  }
  
  .btn-block {
    width: 100%;
  }
  
  /* Cards - full width on mobile */
  .card {
    padding: var(--gap-sm);
    border-radius: var(--radius-sm);
  }
  
  .card-title {
    font-size: 13px;
  }
  
  .card-subtitle {
    font-size: 9px;
    letter-spacing: 1px;
  }
  
  .card-body {
    font-size: 12px;
  }
  
  .card-clickable:active {
    transform: scale(0.98);
  }
  
  /* Grids - single column on phones */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--gap-sm);
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--gap-sm);
  }
  
  /* Modal - full screen on small phones */
  .modal-overlay {
    padding: var(--gap-sm);
    align-items: flex-end;
  }
  
  .modal {
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    padding: var(--gap-md);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: 0;
  }
  
  .modal-title {
    font-size: 16px;
  }
  
  .modal-desc {
    font-size: 12px;
    margin-bottom: var(--gap-md);
  }
  
  .choice-btn {
    padding: 14px;
    min-height: 44px;
  }
  
  .choice-text {
    font-size: 13px;
  }
  
  .choice-effect {
    font-size: 10px;
  }
  
  /* Title screen - smaller text */
  .title-screen {
    gap: var(--gap-lg);
    padding: var(--gap-md);
  }
  
  .title-logo {
    font-size: 28px;
    letter-spacing: 2px;
    line-height: 1.2;
  }
  
  .title-subtitle {
    font-size: 11px;
    line-height: 1.6;
  }
  
  .title-tagline {
    font-size: 10px;
  }
  
  .btn-start {
    font-size: 12px;
    padding: 14px 32px;
    width: 100%;
    max-width: 280px;
  }
  
  /* Game over screen */
  .game-over-screen {
    padding: var(--gap-md);
    gap: var(--gap-md);
  }
  
  .game-over-title {
    font-size: 28px;
    letter-spacing: 2px;
  }
  
  /* Results - smaller on mobile */
  .result-stars {
    font-size: 36px;
    letter-spacing: 6px;
  }
  
  .result-payment {
    font-size: 28px;
  }
  
  .result-breakdown {
    grid-template-columns: 1fr;
    gap: var(--gap-sm);
  }
  
  /* Scene container - full width */
  .scene-container {
    max-width: 100%;
    border-radius: var(--radius-sm);
  }
  
  /* Stats - more compact */
  .stat-row {
    padding: 6px 0;
    font-size: 12px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .stat-value {
    font-size: 12px;
  }
  
  /* Stat bars - thicker for touch */
  .stat-bar {
    height: 6px;
    border-radius: 3px;
  }
  
  .stat-bar-fill {
    border-radius: 3px;
  }
  
  /* Badges - slightly larger for readability */
  .badge {
    font-size: 9px;
    padding: 3px 8px;
  }
  
  .stars {
    font-size: 14px;
  }
  
  /* Sliders - larger touch targets */
  .slider-container {
    margin: var(--gap-sm) 0;
  }
  
  .slider-input {
    height: 6px;
    border-radius: 3px;
  }
  
  .slider-input::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    border-radius: 4px;
  }
  
  .slider-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 4px;
  }
  
  .slider-labels {
    font-size: 9px;
  }
  
  .slider-value {
    font-size: 12px;
  }
  
  /* News ticker - smaller */
  .game-footer {
    padding: 0 var(--gap-sm);
    font-size: 10px;
    min-height: 28px;
  }
  
  .news-ticker {
    animation-duration: 25s;
  }
  
  .news-item {
    font-size: 9px;
  }
  
  /* Pay amount - responsive */
  .pay-amount {
    font-size: 18px;
  }
  
  /* Utility classes for mobile */
  .mobile-hide {
    display: none;
  }
  
  .mobile-show {
    display: flex;
  }
  
  .mobile-stack {
    flex-direction: column;
  }
  
  .mobile-full-width {
    width: 100%;
  }
  
  .mobile-text-center {
    text-align: center;
  }
  
  .mobile-gap-sm {
    gap: var(--gap-sm);
  }
  
  /* Flex utilities for mobile */
  .flex-row {
    flex-wrap: wrap;
  }
  
  /* Ensure no horizontal overflow */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* Touch feedback */
  .btn:active,
  .nav-btn:active,
  .card-clickable:active,
  .choice-btn:active {
    opacity: 0.8;
    transform: scale(0.98);
  }
}
/* ============================================================
   SMALL PHONE BREAKPOINT (max-width: 360px)
   ============================================================ */
@media (max-width: 360px) {
  .game-layout {
    grid-template-rows: 40px auto 1fr auto;
  }
  
  .game-header {
    height: 40px;
    min-height: 40px;
  }
  
  .game-sidebar {
    min-height: 52px;
    max-height: 52px;
  }
  
  .nav-btn {
    padding: 4px 8px;
    font-size: 8px;
    min-width: 56px;
    min-height: 44px;
  }
  
  .nav-icon {
    font-size: 16px;
  }
  
  .title-logo {
    font-size: 24px;
  }
  
  .btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  
  .card-title {
    font-size: 12px;
  }
  
  .modal-title {
    font-size: 14px;
  }
  
  .terminal-panel {
    height: 100px;
    min-height: 60px;
  }
  
  .terminal-body {
    font-size: 9px;
  }
}
/* ============================================================
   LANDSCAPE ORIENTATION (max-height: 500px)
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .game-layout {
    grid-template-columns: 180px 1fr;
    grid-template-rows: 40px 1fr;
    grid-template-areas:
      "header header"
      "sidebar content";
  }
  
  .game-sidebar {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: auto;
    max-height: none;
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  
  .nav-btn {
    flex-direction: row;
    padding: 6px 10px;
    font-size: 10px;
  }
  
  .terminal-panel {
    height: 100px;
    min-height: 80px;
  }
  
  .title-screen {
    gap: var(--gap-md);
  }
  
  .title-logo {
    font-size: 28px;
  }
}
/* ============================================================
   HIGH DPI / RETINA DISPLAYS
   ============================================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper borders on high DPI */
  .card,
  .btn,
  .nav-btn,
  .modal {
    border-width: 0.5px;
  }
  
  /* Thinner scrollbar for high DPI */
  ::-webkit-scrollbar {
    width: 3px;
  }
}
/* ============================================================
   REDUCED MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
  
  .news-ticker {
    animation: none;
  }
  
  .title-logo {
    animation: none;
  }
  
  .btn-start {
    animation: none;
  }
}
/* ============================================================
   DARK MODE PREFERENCE (for system integration)
   ============================================================ */
@media (prefers-color-scheme: dark) {
  /* Already dark theme, but ensure consistency */
  :root {
    color-scheme: dark;
  }
}
/* ============================================================
   SAFE AREA INSETS (notch devices)
   ============================================================ */
@supports (padding-top: env(safe-area-inset-top)) {
  .game-header {
    padding-top: max(var(--gap-sm), env(safe-area-inset-top));
  }
  
  .game-layout {
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .modal-overlay {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

  .particle-container.svelte-zxh0pw {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
  }

  .particle.svelte-zxh0pw {
    position: absolute;
    font-family: var(--font-mono);
    font-weight: bold;
    text-shadow: 0 0 10px currentColor;
    will-change: transform, opacity;
  }

  .particle-sparkle.svelte-zxh0pw {
    animation: svelte-zxh0pw-sparkle 0.5s ease-out;
  }

  .particle-money.svelte-zxh0pw {
    animation: svelte-zxh0pw-money-pop 0.6s ease-out;
  }

  .particle-achievement.svelte-zxh0pw {
    animation: svelte-zxh0pw-achievement-spin 0.8s ease-out;
  }

  @keyframes svelte-zxh0pw-sparkle {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(0) rotate(360deg); }
  }

  @keyframes svelte-zxh0pw-money-pop {
    0% { transform: scale(0) translateY(0); }
    30% { transform: scale(1.3) translateY(-10px); }
    100% { transform: scale(0.8) translateY(-30px); }
  }

  @keyframes svelte-zxh0pw-achievement-spin {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(0deg); }
    100% { transform: scale(1) rotate(180deg); }
  }

  .floating-text-container.svelte-1s7tq9q {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
  }

  .floating-text.svelte-1s7tq9q {
    position: absolute;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    will-change: transform, opacity;
    animation: svelte-1s7tq9q-float-up 1.5s ease-out;
  }

  .floating-text-money.svelte-1s7tq9q {
    font-size: 28px;
  }

  .floating-text-damage.svelte-1s7tq9q {
    font-size: 32px;
    color: #ff2a4a;
    animation: svelte-1s7tq9q-shake-damage 1.2s ease-out;
  }

  @keyframes svelte-1s7tq9q-float-up {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -150%) scale(0.8);
    }
  }

  @keyframes svelte-1s7tq9q-shake-damage {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-55%, -50%) scale(1.1); }
    75% { transform: translate(-45%, -50%) scale(1.1); }
  }

  .screen-shake-container.svelte-wk5wy7 {
    width: 100%;
    height: 100%;
    will-change: transform;
  }

  .toast-container.svelte-1ig2a9j {
    position: fixed;
    top: 64px;
    right: 16px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 320px;
  }

  .toast.svelte-1ig2a9j {
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.4px;
    border: 1px solid;
    backdrop-filter: blur(8px);
    animation: svelte-1ig2a9j-toast-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .toast.svelte-1ig2a9j:hover {
    opacity: 0.85;
    transform: translateX(-4px);
  }

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

  /* day - blue/cyan */
  .toast-day.svelte-1ig2a9j {
    background: rgba(0, 180, 255, 0.12);
    border-color: rgba(0, 180, 255, 0.4);
    color: var(--accent-blue);
    text-shadow: 0 0 8px rgba(0, 180, 255, 0.5);
  }

  /* money gain/loss - green */
  .toast-money.svelte-1ig2a9j {
    background: rgba(0, 255, 157, 0.10);
    border-color: rgba(0, 255, 157, 0.4);
    color: var(--accent-green);
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
  }

  /* stage up - golden glow */
  .toast-stage.svelte-1ig2a9j {
    background: rgba(255, 230, 0, 0.12);
    border-color: rgba(255, 230, 0, 0.6);
    color: var(--accent-yellow);
    text-shadow: 0 0 12px rgba(255, 230, 0, 0.8), 0 0 30px rgba(255, 230, 0, 0.4);
    font-family: var(--font-display);
    letter-spacing: 1.5px;
    box-shadow: 0 0 20px rgba(255, 230, 0, 0.2), 0 0 40px rgba(255, 230, 0, 0.1);
    animation: svelte-1ig2a9j-toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, svelte-1ig2a9j-stage-glow 1.2s ease-in-out 0.3s infinite alternate;
  }

  @keyframes svelte-1ig2a9j-stage-glow {
    from { box-shadow: 0 0 16px rgba(255, 230, 0, 0.2); }
    to   { box-shadow: 0 0 30px rgba(255, 230, 0, 0.45), 0 0 60px rgba(255, 230, 0, 0.15); }
  }

  /* bug - red */
  .toast-bug.svelte-1ig2a9j {
    background: rgba(255, 42, 74, 0.10);
    border-color: rgba(255, 42, 74, 0.45);
    color: var(--accent-red);
    text-shadow: 0 0 8px rgba(255, 42, 74, 0.5);
  }

  /* rep - purple/blue */
  .toast-rep.svelte-1ig2a9j {
    background: rgba(191, 95, 255, 0.10);
    border-color: rgba(191, 95, 255, 0.4);
    color: var(--accent-purple);
    text-shadow: 0 0 8px rgba(191, 95, 255, 0.5);
  }

  /* info - default secondary */
  .toast-info.svelte-1ig2a9j {
    background: rgba(13, 17, 32, 0.85);
    border-color: var(--border-light);
    color: var(--text-primary);
  }

  .animated-bg.svelte-11xvx6 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
  }
  
  .animated-bg.low.svelte-11xvx6 {
    opacity: 0.5;
  }
  
  .animated-bg.medium.svelte-11xvx6 {
    opacity: 0.7;
  }
  
  .animated-bg.high.svelte-11xvx6 {
    opacity: 1;
  }

  .event-header-bar.svelte-139v0jv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .event-header-label.svelte-139v0jv {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
  }

  .event-header-dots.svelte-139v0jv {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .dot.svelte-139v0jv {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .dot-red.svelte-139v0jv    { background: var(--accent-red);    box-shadow: 0 0 4px rgba(255, 42, 74, 0.5); }
  .dot-yellow.svelte-139v0jv { background: var(--accent-yellow); box-shadow: 0 0 4px rgba(255, 230, 0, 0.5); }
  .dot-green.svelte-139v0jv  { background: var(--accent-green);  box-shadow: 0 0 4px rgba(0, 255, 157, 0.5); }

  .choice-row.svelte-139v0jv {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .choice-icon.svelte-139v0jv {
    font-size: 10px;
    margin-top: 2px;
    flex-shrink: 0;
    font-family: var(--font-mono);
  }

  /* Stagger choice buttons in */
  .choice-btn.svelte-139v0jv {
    opacity: 0;
    animation: svelte-139v0jv-choice-in 0.3s ease forwards;
  }

  @keyframes svelte-139v0jv-choice-in {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  /* Tablet breakpoint (max-width: 768px) */
  @media (max-width: 768px) {
    .event-header-bar.svelte-139v0jv {
      margin-bottom: 12px;
      padding-bottom: 10px;
    }

    .event-header-label.svelte-139v0jv {
      font-size: 9px;
      letter-spacing: 1px;
    }

    .dot.svelte-139v0jv {
      width: 6px;
      height: 6px;
    }

    .choice-btn.svelte-139v0jv {
      padding: 14px;
      min-height: 48px;
    }

    .choice-row.svelte-139v0jv {
      gap: 10px;
    }

    .choice-icon.svelte-139v0jv {
      font-size: 11px;
      margin-top: 1px;
    }

    .choice-text.svelte-139v0jv {
      font-size: 13px;
      line-height: 1.4;
    }
  }

  /* Phone breakpoint (max-width: 480px) */
  @media (max-width: 480px) {
    .event-header-bar.svelte-139v0jv {
      margin-bottom: 10px;
      padding-bottom: 8px;
    }

    .event-header-label.svelte-139v0jv {
      font-size: 8px;
      letter-spacing: 0.5px;
    }

    .event-header-dots.svelte-139v0jv {
      gap: 4px;
    }

    .dot.svelte-139v0jv {
      width: 6px;
      height: 6px;
    }

    .choice-btn.svelte-139v0jv {
      padding: 12px;
      min-height: 52px;
      border-radius: var(--radius-md);
    }

    .choice-row.svelte-139v0jv {
      gap: 8px;
      align-items: center;
    }

    .choice-icon.svelte-139v0jv {
      font-size: 10px;
      margin-top: 0;
    }

    .choice-text.svelte-139v0jv {
      font-size: 13px;
      line-height: 1.3;
    }

    .modal-choices {
      gap: var(--gap-sm);
    }
  }

  .title-content.svelte-158xn7v {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
  }

  .title-eyebrow.svelte-158xn7v {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: svelte-158xn7v-t-fade 0.8s ease 0.2s both;
  }

  .title-press-key.svelte-158xn7v {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    animation: svelte-158xn7v-press-blink 1.8s ease-in-out infinite;
  }

  @keyframes svelte-158xn7v-press-blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
  }

  /* ── Save Slots ─────────────────────────────────────────── */

  .slots-container.svelte-158xn7v {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
    max-width: 700px;
  }

  .slots-label.svelte-158xn7v {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
  }

  .slots-grid.svelte-158xn7v {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
  }

  .slot-card.svelte-158xn7v {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .slot-card.slot-occupied.svelte-158xn7v {
    border: 1px solid rgba(0, 255, 157, 0.2);
  }

  .slot-card.slot-empty.svelte-158xn7v {
    border: 1px solid var(--border);
  }

  .slot-card.svelte-158xn7v:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 16px rgba(0, 180, 255, 0.15);
  }

  .slot-main.svelte-158xn7v {
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.15s ease;
    flex: 1;
  }

  .slot-main.svelte-158xn7v:hover:not(:disabled) {
    background: var(--bg-hover);
  }

  .slot-main.svelte-158xn7v:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .slot-header.svelte-158xn7v {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .slot-number.svelte-158xn7v {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--text-primary);
    letter-spacing: 2px;
  }

  .slot-status.svelte-158xn7v {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 2px;
  }

  .slot-status-active.svelte-158xn7v {
    color: var(--accent-green);
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
  }

  .slot-status-empty.svelte-158xn7v {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
  }

  .slot-info.svelte-158xn7v {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .slot-stage.svelte-158xn7v {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--accent-blue);
    letter-spacing: 1px;
  }

  .slot-stats.svelte-158xn7v {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }

  .slot-dot.svelte-158xn7v { opacity: 0.4; }

  .slot-money.svelte-158xn7v { color: var(--accent-green); }

  .slot-date.svelte-158xn7v {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    opacity: 0.6;
  }

  .slot-empty-msg.svelte-158xn7v {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.5;
    padding: 8px 0;
  }

  .slot-action-hint.svelte-158xn7v {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--accent-green);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.15s ease;
  }

  .slot-main.svelte-158xn7v:hover:not(:disabled) .slot-action-hint:where(.svelte-158xn7v) {
    opacity: 1;
  }

  .slot-actions.svelte-158xn7v {
    display: flex;
    border-top: 1px solid var(--border);
  }

  .slot-btn.svelte-158xn7v {
    flex: 1;
    border: none;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .slot-btn.svelte-158xn7v:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }

  .slot-btn-new.svelte-158xn7v {
    background: rgba(0, 180, 255, 0.06);
    color: var(--accent-blue);
    border-right: 1px solid var(--border);
  }

  .slot-btn-new.svelte-158xn7v:hover:not(:disabled) {
    background: rgba(0, 180, 255, 0.15);
  }

  .slot-btn-delete.svelte-158xn7v {
    background: rgba(255, 80, 80, 0.06);
    color: var(--accent-red);
  }

  .slot-btn-delete.svelte-158xn7v:hover:not(:disabled) {
    background: rgba(255, 80, 80, 0.15);
  }

  /* ── Confirmation Dialog ─────────────────────────────────── */

  .confirm-overlay.svelte-158xn7v {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
  }

  .confirm-dialog.svelte-158xn7v {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 24px;
    max-width: 380px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  }

  .confirm-header.svelte-158xn7v {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-red);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
  }

  .confirm-body.svelte-158xn7v {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
  }

  .confirm-actions.svelte-158xn7v {
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  .confirm-btn.svelte-158xn7v {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 2px;
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.15s ease;
    min-width: 100px;
  }

  .confirm-btn-no.svelte-158xn7v {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
  }

  .confirm-btn-no.svelte-158xn7v:hover {
    border-color: var(--border-light);
    color: var(--text-secondary);
  }

  .confirm-btn-yes.svelte-158xn7v {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
  }

  .confirm-btn-yes.svelte-158xn7v:hover {
    background: rgba(255, 80, 80, 0.2);
    box-shadow: 0 0 12px rgba(255, 80, 80, 0.3);
  }

  /* ── Existing title styles ──────────────────────────────── */

  .title-terminal-decor.svelte-158xn7v {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
    animation: svelte-158xn7v-t-fade 1s ease 0.5s both;
  }

  .decor-line.svelte-158xn7v {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    opacity: 0.5;
  }

  .decor-online.svelte-158xn7v {
    color: var(--accent-green);
    text-shadow: 0 0 6px rgba(0, 255, 157, 0.5);
    animation: svelte-158xn7v-press-blink 2s ease-in-out infinite;
  }

  .title-bracket.svelte-158xn7v {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 1;
    opacity: 0.25;
  }

  .title-bracket-tl.svelte-158xn7v { top: 14px; left: 14px; border-top: 1px solid var(--accent-blue); border-left: 1px solid var(--accent-blue); }
  .title-bracket-tr.svelte-158xn7v { top: 14px; right: 14px; border-top: 1px solid var(--accent-blue); border-right: 1px solid var(--accent-blue); }
  .title-bracket-bl.svelte-158xn7v { bottom: 14px; left: 14px; border-bottom: 1px solid var(--accent-blue); border-left: 1px solid var(--accent-blue); }
  .title-bracket-br.svelte-158xn7v { bottom: 14px; right: 14px; border-bottom: 1px solid var(--accent-blue); border-right: 1px solid var(--accent-blue); }

  .title-footer-bar.svelte-158xn7v {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(13, 17, 32, 0.9);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    z-index: 1;
    animation: svelte-158xn7v-t-fade 0.8s ease 1s both;
  }

  .title-ver.svelte-158xn7v { color: var(--accent-blue); opacity: 0.6; }
  .title-sep.svelte-158xn7v { opacity: 0.25; }

  @keyframes svelte-158xn7v-t-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ==================== MOBILE RESPONSIVE STYLES ==================== */

  /* Tablet adjustments (max-width: 768px) */
  @media (max-width: 768px) {
    .title-terminal-decor.svelte-158xn7v {
      top: 16px;
      left: 16px;
    }

    .decor-line.svelte-158xn7v {
      font-size: 9px;
    }

    .title-logo.svelte-158xn7v {
      font-size: 28px;
      letter-spacing: 4px;
    }

    .title-subtitle.svelte-158xn7v {
      font-size: 12px;
      padding: 0 16px;
    }

    .title-tagline.svelte-158xn7v {
      font-size: 12px;
      padding: 0 16px;
    }

    .slots-container.svelte-158xn7v {
      max-width: 100%;
      padding: 0 16px;
    }

    .slots-grid.svelte-158xn7v {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .slot-card.svelte-158xn7v {
      min-width: 0;
    }

    .slot-main.svelte-158xn7v {
      padding: 12px;
    }

    .slot-stage.svelte-158xn7v {
      font-size: 12px;
    }

    .slot-stats.svelte-158xn7v {
      font-size: 10px;
    }

    .title-bracket.svelte-158xn7v {
      width: 18px;
      height: 18px;
    }

    .title-footer-bar.svelte-158xn7v {
      font-size: 9px;
      gap: 12px;
      padding: 0 8px;
    }

    .confirm-dialog.svelte-158xn7v {
      max-width: 340px;
      padding: 20px;
    }

    .confirm-body.svelte-158xn7v {
      font-size: 11px;
    }

    .confirm-btn.svelte-158xn7v {
      min-height: 44px;
      font-size: 12px;
      padding: 10px 20px;
    }
  }

  /* Phone adjustments (max-width: 480px) */
  @media (max-width: 480px) {
    .title-terminal-decor.svelte-158xn7v {
      display: none;
    }

    .title-content.svelte-158xn7v {
      gap: 16px;
      padding: 0 12px;
    }

    .title-eyebrow.svelte-158xn7v {
      font-size: 9px;
      letter-spacing: 2px;
    }

    .title-logo.svelte-158xn7v {
      font-size: 22px;
      letter-spacing: 2px;
      text-align: center;
    }

    .title-subtitle.svelte-158xn7v {
      font-size: 11px;
      line-height: 1.5;
      text-align: center;
    }

    .title-subtitle.svelte-158xn7v br:where(.svelte-158xn7v) {
      display: none;
    }

    .title-tagline.svelte-158xn7v {
      font-size: 11px;
      padding: 0 8px;
      text-align: center;
    }

    .title-press-key.svelte-158xn7v {
      font-size: 9px;
      letter-spacing: 1px;
    }

    .slots-container.svelte-158xn7v {
      margin-top: 4px;
      padding: 0 8px;
    }

    .slots-label.svelte-158xn7v {
      font-size: 9px;
      letter-spacing: 2px;
    }

    .slots-grid.svelte-158xn7v {
      grid-template-columns: 1fr;
      gap: 10px;
      max-width: 100%;
    }

    .slot-card.svelte-158xn7v {
      min-width: 0;
    }

    .slot-main.svelte-158xn7v {
      padding: 14px;
      gap: 10px;
      min-height: 44px;
    }

    .slot-number.svelte-158xn7v {
      font-size: 12px;
    }

    .slot-status.svelte-158xn7v {
      font-size: 9px;
      padding: 3px 8px;
    }

    .slot-stage.svelte-158xn7v {
      font-size: 14px;
    }

    .slot-stats.svelte-158xn7v {
      font-size: 11px;
      gap: 6px;
    }

    .slot-date.svelte-158xn7v {
      font-size: 10px;
    }

    .slot-empty-msg.svelte-158xn7v {
      font-size: 12px;
      padding: 12px 0;
    }

    .slot-action-hint.svelte-158xn7v {
      font-size: 12px;
      opacity: 1;
    }

    .slot-actions.svelte-158xn7v {
      min-height: 44px;
    }

    .slot-btn.svelte-158xn7v {
      font-size: 11px;
      padding: 12px 0;
      min-height: 44px;
    }

    .title-bracket.svelte-158xn7v {
      width: 14px;
      height: 14px;
    }

    .title-bracket-tl.svelte-158xn7v { top: 10px; left: 10px; }
    .title-bracket-tr.svelte-158xn7v { top: 10px; right: 10px; }
    .title-bracket-bl.svelte-158xn7v { bottom: 10px; left: 10px; }
    .title-bracket-br.svelte-158xn7v { bottom: 10px; right: 10px; }

    .title-footer-bar.svelte-158xn7v {
      font-size: 8px;
      gap: 8px;
      height: 24px;
      flex-wrap: wrap;
    }

    .title-footer-bar.svelte-158xn7v span:where(.svelte-158xn7v):nth-child(3),
    .title-footer-bar.svelte-158xn7v span:where(.svelte-158xn7v):nth-child(4) {
      display: none;
    }

    .confirm-overlay.svelte-158xn7v {
      padding: 16px;
    }

    .confirm-dialog.svelte-158xn7v {
      width: 100%;
      max-width: none;
      padding: 20px 16px;
      gap: 14px;
    }

    .confirm-header.svelte-158xn7v {
      font-size: 11px;
      letter-spacing: 2px;
    }

    .confirm-body.svelte-158xn7v {
      font-size: 12px;
      line-height: 1.5;
    }

    .confirm-actions.svelte-158xn7v {
      flex-direction: column;
      gap: 10px;
    }

    .confirm-btn.svelte-158xn7v {
      width: 100%;
      min-height: 48px;
      font-size: 13px;
      padding: 14px 20px;
    }
  }

  /* Extra small phones (max-width: 360px) */
  @media (max-width: 360px) {
    .title-logo.svelte-158xn7v {
      font-size: 18px;
      letter-spacing: 1px;
    }

    .slot-main.svelte-158xn7v {
      padding: 12px;
    }

    .slot-stage.svelte-158xn7v {
      font-size: 13px;
    }

    .slot-stats.svelte-158xn7v {
      font-size: 10px;
    }

    .confirm-btn.svelte-158xn7v {
      font-size: 12px;
    }
  }

  .newgame-screen.svelte-1pw0661 {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 24px;
    position: relative;
    overflow-y: auto;
    gap: 24px;
  }

  /* Corner brackets */
  .ng-bracket.svelte-1pw0661 {
    position: fixed;
    width: 20px;
    height: 20px;
    z-index: 1;
    opacity: 0.2;
    pointer-events: none;
  }
  .ng-bracket-tl.svelte-1pw0661 { top: 14px; left: 14px; border-top: 1px solid var(--accent-blue); border-left: 1px solid var(--accent-blue); }
  .ng-bracket-tr.svelte-1pw0661 { top: 14px; right: 14px; border-top: 1px solid var(--accent-blue); border-right: 1px solid var(--accent-blue); }
  .ng-bracket-bl.svelte-1pw0661 { bottom: 14px; left: 14px; border-bottom: 1px solid var(--accent-blue); border-left: 1px solid var(--accent-blue); }
  .ng-bracket-br.svelte-1pw0661 { bottom: 14px; right: 14px; border-bottom: 1px solid var(--accent-blue); border-right: 1px solid var(--accent-blue); }

  .ng-header.svelte-1pw0661 {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
  }

  .ng-eyebrow.svelte-1pw0661 {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
  }

  .ng-title.svelte-1pw0661 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
  }

  .ng-subtitle.svelte-1pw0661 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
  }

  /* Modifier grid */
  .ng-mods-grid.svelte-1pw0661 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 900px;
  }

  .mod-card.svelte-1pw0661 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mod-card.svelte-1pw0661:hover:not(:disabled) {
    border-color: var(--border-light);
    background: var(--bg-hover);
  }

  .mod-card.svelte-1pw0661:disabled {
    cursor: not-allowed;
  }

  .mod-card.mod-selected.svelte-1pw0661 {
    border-color: var(--accent-green);
    background: rgba(0, 255, 157, 0.05);
  }

  .mod-card.mod-incompatible.svelte-1pw0661 {
    opacity: 0.35;
  }

  .mod-card-top.svelte-1pw0661 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .mod-name.svelte-1pw0661 {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--text-primary);
    letter-spacing: 1px;
  }

  .mod-diff.svelte-1pw0661 {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 2px;
    flex-shrink: 0;
  }

  .diff-easy.svelte-1pw0661    { background: rgba(0, 255, 157, 0.15); color: var(--accent-green); border: 1px solid rgba(0, 255, 157, 0.3); }
  .diff-medium.svelte-1pw0661  { background: rgba(255, 200, 60, 0.15); color: #ffc83c; border: 1px solid rgba(255, 200, 60, 0.3); }
  .diff-hard.svelte-1pw0661    { background: rgba(255, 100, 60, 0.15); color: #ff643c; border: 1px solid rgba(255, 100, 60, 0.3); }
  .diff-nightmare.svelte-1pw0661 { background: rgba(180, 0, 255, 0.15); color: #c060ff; border: 1px solid rgba(180, 0, 255, 0.3); }

  .mod-desc.svelte-1pw0661 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
  }

  .mod-flavor.svelte-1pw0661 {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
    line-height: 1.4;
  }

  .mod-conflict-warning.svelte-1pw0661 {
    font-family: var(--font-mono);
    font-size: 9px;
    color: #ff643c;
    margin-top: 2px;
  }

  .mod-selected-badge.svelte-1pw0661 {
    position: absolute;
    top: 8px;
    right: 8px;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-green);
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--accent-green);
    border-radius: 2px;
    padding: 2px 5px;
  }

  /* Footer */
  .ng-footer.svelte-1pw0661 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 900px;
    padding-bottom: 16px;
  }

  .ng-selected-info.svelte-1pw0661 {
    font-family: var(--font-mono);
    font-size: 11px;
  }

  .ng-no-mods.svelte-1pw0661 { color: var(--text-muted); }
  .ng-active-count.svelte-1pw0661 { color: var(--accent-green); }

  .ng-actions.svelte-1pw0661 {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .btn-back.svelte-1pw0661 {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-back.svelte-1pw0661:hover:not(:disabled) {
    border-color: var(--border-light);
    color: var(--text-secondary);
  }

  .btn-back.svelte-1pw0661:disabled { opacity: 0.4; cursor: not-allowed; }

  .btn-launch.svelte-1pw0661 {
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 2px;
    padding: 10px 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    min-width: 220px;
  }

  .btn-launch.svelte-1pw0661:hover:not(:disabled) {
    background: rgba(0, 255, 157, 0.15);
    box-shadow: 0 0 16px rgba(0, 255, 157, 0.4), 0 0 40px rgba(0, 255, 157, 0.15);
  }

  .btn-launch.svelte-1pw0661:disabled { opacity: 0.4; cursor: not-allowed; }

  /* ==================== MOBILE RESPONSIVE STYLES ==================== */

  /* Tablet adjustments (max-width: 768px) */
  @media (max-width: 768px) {
    .newgame-screen.svelte-1pw0661 {
      padding: 32px 16px 20px;
      gap: 20px;
    }

    .ng-bracket.svelte-1pw0661 {
      width: 16px;
      height: 16px;
    }

    .ng-bracket-tl.svelte-1pw0661 { top: 12px; left: 12px; }
    .ng-bracket-tr.svelte-1pw0661 { top: 12px; right: 12px; }
    .ng-bracket-bl.svelte-1pw0661 { bottom: 12px; left: 12px; }
    .ng-bracket-br.svelte-1pw0661 { bottom: 12px; right: 12px; }

    .ng-header.svelte-1pw0661 {
      max-width: 100%;
      padding: 0 8px;
    }

    .ng-title.svelte-1pw0661 {
      font-size: 18px;
      letter-spacing: 2px;
    }

    .ng-subtitle.svelte-1pw0661 {
      font-size: 10px;
    }

    .ng-mods-grid.svelte-1pw0661 {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      max-width: 100%;
      padding: 0 8px;
    }

    .mod-card.svelte-1pw0661 {
      padding: 12px;
      min-width: 0;
    }

    .mod-name.svelte-1pw0661 {
      font-size: 12px;
    }

    .mod-diff.svelte-1pw0661 {
      font-size: 8px;
      padding: 2px 5px;
    }

    .mod-desc.svelte-1pw0661 {
      font-size: 10px;
    }

    .mod-flavor.svelte-1pw0661 {
      font-size: 9px;
    }

    .mod-conflict-warning.svelte-1pw0661 {
      font-size: 8px;
    }

    .ng-footer.svelte-1pw0661 {
      max-width: 100%;
      padding: 0 8px 12px;
    }

    .btn-back.svelte-1pw0661 {
      min-height: 44px;
      padding: 10px 18px;
      font-size: 11px;
    }

    .btn-launch.svelte-1pw0661 {
      min-height: 44px;
      min-width: 180px;
      padding: 10px 24px;
      font-size: 12px;
    }
  }

  /* Phone adjustments (max-width: 480px) */
  @media (max-width: 480px) {
    .newgame-screen.svelte-1pw0661 {
      padding: 24px 12px 16px;
      gap: 16px;
    }

    .ng-bracket.svelte-1pw0661 {
      width: 12px;
      height: 12px;
    }

    .ng-bracket-tl.svelte-1pw0661 { top: 8px; left: 8px; }
    .ng-bracket-tr.svelte-1pw0661 { top: 8px; right: 8px; }
    .ng-bracket-bl.svelte-1pw0661 { bottom: 8px; left: 8px; }
    .ng-bracket-br.svelte-1pw0661 { bottom: 8px; right: 8px; }

    .ng-header.svelte-1pw0661 {
      padding: 0 4px;
      gap: 6px;
    }

    .ng-eyebrow.svelte-1pw0661 {
      font-size: 9px;
      letter-spacing: 2px;
    }

    .ng-title.svelte-1pw0661 {
      font-size: 16px;
      letter-spacing: 2px;
    }

    .ng-subtitle.svelte-1pw0661 {
      font-size: 11px;
      line-height: 1.4;
    }

    .ng-mods-grid.svelte-1pw0661 {
      grid-template-columns: 1fr;
      gap: 10px;
      padding: 0 4px;
    }

    .mod-card.svelte-1pw0661 {
      padding: 14px;
      min-height: 44px;
    }

    .mod-card-top.svelte-1pw0661 {
      gap: 10px;
    }

    .mod-name.svelte-1pw0661 {
      font-size: 14px;
      letter-spacing: 1px;
    }

    .mod-diff.svelte-1pw0661 {
      font-size: 9px;
      padding: 3px 8px;
      letter-spacing: 1px;
    }

    .mod-desc.svelte-1pw0661 {
      font-size: 12px;
      line-height: 1.5;
    }

    .mod-flavor.svelte-1pw0661 {
      font-size: 11px;
      line-height: 1.4;
    }

    .mod-conflict-warning.svelte-1pw0661 {
      font-size: 10px;
      margin-top: 4px;
    }

    .mod-selected-badge.svelte-1pw0661 {
      font-size: 9px;
      padding: 3px 6px;
      top: 10px;
      right: 10px;
    }

    .ng-footer.svelte-1pw0661 {
      padding: 0 4px 12px;
      gap: 14px;
    }

    .ng-selected-info.svelte-1pw0661 {
      font-size: 12px;
    }

    .ng-actions.svelte-1pw0661 {
      flex-direction: column;
      width: 100%;
      gap: 10px;
    }

    .btn-back.svelte-1pw0661 {
      width: 100%;
      min-height: 48px;
      font-size: 12px;
      letter-spacing: 2px;
      padding: 14px 20px;
      order: 2;
    }

    .btn-launch.svelte-1pw0661 {
      width: 100%;
      min-height: 52px;
      min-width: auto;
      font-size: 14px;
      letter-spacing: 2px;
      padding: 16px 20px;
      order: 1;
    }
  }

  /* Extra small phones (max-width: 360px) */
  @media (max-width: 360px) {
    .ng-title.svelte-1pw0661 {
      font-size: 14px;
      letter-spacing: 1px;
    }

    .mod-name.svelte-1pw0661 {
      font-size: 13px;
    }

    .mod-desc.svelte-1pw0661 {
      font-size: 11px;
    }

    .mod-flavor.svelte-1pw0661 {
      font-size: 10px;
    }

    .btn-launch.svelte-1pw0661 {
      font-size: 13px;
    }
  }

  .market-trends-card.svelte-15qm0md {
    border-color: rgba(255, 200, 80, 0.15);
  }

  .trend-row.svelte-15qm0md {
    padding: 8px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent-green);
  }

  .trend-category.svelte-15qm0md {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
  }

  .trend-multiplier.svelte-15qm0md {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-mono);
  }

  .trend-headline.svelte-15qm0md {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
  }

  .trend-expires.svelte-15qm0md {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 3px;
    opacity: 0.7;
  }

  .goals-panel.svelte-15qm0md {
    border-color: rgba(191, 95, 255, 0.12);
  }

  .goals-layer-label.svelte-15qm0md {
    font-size: 9px;
    font-family: var(--font-mono);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
    opacity: 0.8;
  }

  .goal-row.svelte-15qm0md {
    padding: 8px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent-cyan);
    transition: border-color 0.2s ease;
  }

  .goal-completed.svelte-15qm0md {
    opacity: 0.55;
  }

  .goal-label.svelte-15qm0md {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .goal-done-text.svelte-15qm0md {
    text-decoration: line-through;
    color: var(--text-muted);
  }

  .goal-target.svelte-15qm0md {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 8px;
  }

  .goal-bar.svelte-15qm0md {
    margin-top: 4px;
  }

  .goal-reward.svelte-15qm0md {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-top: 3px;
  }

  .synergies-panel.svelte-15qm0md {
    border-color: rgba(255, 200, 50, 0.2);
    background: linear-gradient(135deg, rgba(255, 200, 50, 0.04) 0%, var(--bg-card) 60%);
  }

  .synergy-row.svelte-15qm0md {
    padding: 8px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 2px solid #ffc832;
  }

  .synergy-name.svelte-15qm0md {
    font-size: 13px;
    font-weight: 700;
    color: #ffc832;
  }

  .synergy-desc.svelte-15qm0md {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-left: 8px;
    white-space: nowrap;
  }

  .synergy-flavor.svelte-15qm0md {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 3px;
  }

  .achievements-widget.svelte-15qm0md {
    border-color: rgba(255, 200, 50, 0.15);
    background: linear-gradient(135deg, rgba(255, 200, 50, 0.03) 0%, var(--bg-card) 60%);
  }

  .ach-row.svelte-15qm0md {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 2px solid rgba(255, 200, 50, 0.4);
  }

  .ach-icon.svelte-15qm0md {
    font-size: 18px;
    flex-shrink: 0;
  }

  .ach-info.svelte-15qm0md {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .ach-name.svelte-15qm0md {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
  }

  .ach-desc.svelte-15qm0md {
    font-size: 11px;
    color: var(--text-muted);
  }

  .rivalry-panel.svelte-15qm0md {
    border-color: rgba(255, 60, 60, 0.15);
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.04) 0%, var(--bg-card) 60%);
  }

  .rivalry-nemesis.svelte-15qm0md {
    padding: 8px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent-red);
  }

  .rivalry-npc-name.svelte-15qm0md {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-red);
  }

  .rivalry-score.svelte-15qm0md {
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 700;
  }

  .rivalry-codeoff.svelte-15qm0md {
    padding: 8px 10px;
    background: rgba(255, 200, 50, 0.08);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent-yellow);
  }

  .rivalry-event-row.svelte-15qm0md {
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 2px solid rgba(255, 60, 60, 0.4);
  }

  .rivalry-resolved.svelte-15qm0md {
    opacity: 0.5;
    border-left-color: rgba(100, 100, 100, 0.3);
  }

  .rivalry-event-type.svelte-15qm0md {
    font-size: 9px;
    font-family: var(--font-mono);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 700;
  }

  .rivalry-event-desc.svelte-15qm0md {
    font-size: 12px;
    color: var(--text-primary);
  }

  /* Mobile Responsive Styles */
  @media (max-width: 768px) {
    /* Stack the header buttons */
    .flex-between.mb-md {
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }

    .flex-between.mb-md .flex-row {
      width: 100%;
      flex-direction: column;
      gap: 8px;
    }

    .flex-between.mb-md .flex-row .btn {
      width: 100%;
      min-height: 44px;
      font-size: 14px;
    }

    /* Stack grid-2 to single column */
    .grid-2 {
      grid-template-columns: 1fr !important;
      gap: 12px;
    }

    /* Reduce font sizes */
    h1 {
      font-size: 20px !important;
    }

    .card-subtitle {
      font-size: 10px;
    }

    /* Stats cards - reduce large numbers */
    .card [style*="font-size:28px"] {
      font-size: 24px !important;
    }

    /* Next action card - stack layout */
    .next-action-card .flex-between {
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }

    .next-action-card .btn-sm {
      width: 100%;
      min-height: 44px;
      font-size: 14px;
    }

    /* Market trends - smaller text */
    .trend-category {
      font-size: 11px;
    }

    .trend-headline {
      font-size: 10px;
    }

    /* Goals panel adjustments */
    .goal-label {
      font-size: 11px;
    }

    .goal-target {
      font-size: 9px;
    }

    /* Achievements - more compact */
    .ach-name {
      font-size: 12px;
    }

    .ach-desc {
      font-size: 10px;
    }

    /* Synergies - more compact */
    .synergy-name {
      font-size: 12px;
    }

    .synergy-desc {
      font-size: 10px;
      white-space: normal;
    }

    /* Rivalry panel adjustments */
    .rivalry-npc-name {
      font-size: 12px;
    }

    .rivalry-score {
      font-size: 10px;
    }

    /* Side projects - full width buttons */
    .card-header .btn-sm {
      min-height: 36px;
      font-size: 12px;
    }

    /* Recent contracts - stack on small screens */
    .flex-between[style*="padding:8px"] {
      flex-direction: column;
      gap: 6px;
      align-items: flex-start;
    }

    .flex-between[style*="padding:8px"] .flex-row {
      width: 100%;
      justify-content: space-between;
    }
  }

  @media (max-width: 480px) {
    /* Even smaller screens - more aggressive simplification */
    h1 {
      font-size: 18px !important;
    }

    /* Hide some less important info */
    .card .stat-row {
      font-size: 11px;
    }

    /* Smaller badges */
    .badge {
      font-size: 9px;
      padding: 2px 6px;
    }

    /* Expenses breakdown - hide on very small screens */
    .card div[style*="Monthly Expenses"] {
      display: none;
    }

    /* Reduce card padding */
    .card {
      padding: 12px;
    }

    /* Stars smaller */
    .stars {
      font-size: 16px !important;
    }

    /* Trend rows more compact */
    .trend-row {
      padding: 6px 8px;
    }

    .trend-category {
      font-size: 10px;
    }

    .trend-multiplier {
      font-size: 11px;
    }

    /* Goals even more compact */
    .goal-row {
      padding: 6px 8px;
    }

    .goal-label {
      font-size: 10px;
    }

    .goal-reward {
      display: none;
    }

    /* Achievements widget - hide description on tiny screens */
    .ach-desc {
      display: none;
    }

    .ach-row {
      padding: 4px 6px;
    }

    /* Rivalry events - more compact */
    .rivalry-event-row {
      padding: 4px 8px;
    }

    .rivalry-event-desc {
      font-size: 11px;
    }

    /* Synergy flavor text hidden */
    .synergy-flavor {
      display: none;
    }

    /* Model stat bars - smaller text */
    .card div[style*="font-size:12px"] {
      font-size: 11px !important;
    }
  }

  .negotiation-overlay.svelte-6rsm0u {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
  }

  .negotiation-modal.svelte-6rsm0u {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 480px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }

  .neg-header.svelte-6rsm0u {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
  }

  .neg-title.svelte-6rsm0u {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    letter-spacing: 2px;
    margin-bottom: 4px;
  }

  .neg-subtitle.svelte-6rsm0u {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
  }

  .neg-body.svelte-6rsm0u {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .neg-client-status.svelte-6rsm0u {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
  }

  .neg-label.svelte-6rsm0u {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  .neg-mood.svelte-6rsm0u {
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 1px;
  }

  .neg-value.svelte-6rsm0u {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-primary);
  }

  .neg-offer.svelte-6rsm0u {
    text-align: center;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(80, 250, 123, 0.15);
  }

  .neg-offer-amount.svelte-6rsm0u {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-green);
    margin: 4px 0;
  }

  .neg-offer-diff.svelte-6rsm0u {
    font-size: 11px;
    font-family: var(--font-mono);
  }

  .neg-response.svelte-6rsm0u {
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent-cyan);
  }

  .neg-response-text.svelte-6rsm0u {
    font-size: 13px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
  }

  .neg-moves.svelte-6rsm0u {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .neg-move-btn.svelte-6rsm0u {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    color: var(--text-primary);
  }

  .neg-move-btn.svelte-6rsm0u:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.05);
  }

  .neg-move-label.svelte-6rsm0u {
    font-size: 13px;
    font-weight: 600;
  }

  .neg-move-desc.svelte-6rsm0u {
    font-size: 11px;
    color: var(--text-muted);
  }

  .neg-actions.svelte-6rsm0u {
    display: flex;
    gap: 8px;
    margin-top: 4px;
  }

  .neg-actions.svelte-6rsm0u .btn:where(.svelte-6rsm0u) {
    flex: 1;
  }

  /* Mobile Responsive Styles */
  @media (max-width: 768px) {
    /* Modal - wider on tablets */
    .negotiation-modal.svelte-6rsm0u {
      width: 95vw;
      max-width: 95vw;
      max-height: 90vh;
    }

    /* Header - smaller padding */
    .neg-header.svelte-6rsm0u {
      padding: 12px 16px;
    }

    /* Title - smaller */
    .neg-title.svelte-6rsm0u {
      font-size: 10px;
      letter-spacing: 1px;
    }

    .neg-subtitle.svelte-6rsm0u {
      font-size: 14px;
    }

    /* Body - smaller padding and gap */
    .neg-body.svelte-6rsm0u {
      padding: 12px 16px;
      gap: 10px;
    }

    /* Client status - smaller padding */
    .neg-client-status.svelte-6rsm0u {
      padding: 10px;
    }

    /* Labels - smaller */
    .neg-label.svelte-6rsm0u {
      font-size: 9px;
      letter-spacing: 1px;
    }

    .neg-mood.svelte-6rsm0u {
      font-size: 10px;
    }

    .neg-value.svelte-6rsm0u {
      font-size: 11px;
    }

    /* Offer section - smaller */
    .neg-offer.svelte-6rsm0u {
      padding: 12px;
    }

    .neg-offer-amount.svelte-6rsm0u {
      font-size: 24px;
    }

    .neg-offer-diff.svelte-6rsm0u {
      font-size: 10px;
    }

    /* Response text - smaller */
    .neg-response.svelte-6rsm0u {
      padding: 10px;
    }

    .neg-response-text.svelte-6rsm0u {
      font-size: 12px;
    }

    /* Move buttons - touch friendly */
    .neg-move-btn.svelte-6rsm0u {
      padding: 12px;
    }

    .neg-move-label.svelte-6rsm0u {
      font-size: 12px;
    }

    .neg-move-desc.svelte-6rsm0u {
      font-size: 10px;
    }

    /* Actions - stack on smaller screens if needed */
    .neg-actions.svelte-6rsm0u {
      flex-direction: column;
      gap: 8px;
    }

    .neg-actions.svelte-6rsm0u .btn:where(.svelte-6rsm0u) {
      width: 100%;
      min-height: 44px;
    }
  }

  @media (max-width: 480px) {
    /* Very small screens - phone portrait */
    .negotiation-modal.svelte-6rsm0u {
      width: 100vw;
      max-width: 100vw;
      max-height: 95vh;
      border-radius: var(--radius-md);
    }

    /* Overlay - less opacity to see background */
    .negotiation-overlay.svelte-6rsm0u {
      background: rgba(0, 0, 0, 0.85);
    }

    /* Header - minimal */
    .neg-header.svelte-6rsm0u {
      padding: 10px 12px;
    }

    .neg-title.svelte-6rsm0u {
      font-size: 9px;
      letter-spacing: 0.5px;
    }

    .neg-subtitle.svelte-6rsm0u {
      font-size: 13px;
    }

    /* Body - minimal */
    .neg-body.svelte-6rsm0u {
      padding: 10px 12px;
      gap: 8px;
    }

    /* Client status - minimal */
    .neg-client-status.svelte-6rsm0u {
      padding: 8px;
    }

    /* Labels - minimal */
    .neg-label.svelte-6rsm0u {
      font-size: 8px;
      letter-spacing: 0.5px;
    }

    .neg-mood.svelte-6rsm0u {
      font-size: 9px;
    }

    .neg-value.svelte-6rsm0u {
      font-size: 10px;
    }

    /* Offer - minimal */
    .neg-offer.svelte-6rsm0u {
      padding: 10px;
    }

    .neg-offer-amount.svelte-6rsm0u {
      font-size: 20px;
    }

    .neg-offer-diff.svelte-6rsm0u {
      font-size: 9px;
    }

    /* Response - minimal */
    .neg-response.svelte-6rsm0u {
      padding: 8px;
    }

    .neg-response-text.svelte-6rsm0u {
      font-size: 11px;
      line-height: 1.4;
    }

    /* Move buttons - full width touch */
    .neg-moves.svelte-6rsm0u {
      gap: 4px;
    }

    .neg-move-btn.svelte-6rsm0u {
      padding: 10px;
    }

    .neg-move-label.svelte-6rsm0u {
      font-size: 11px;
    }

    .neg-move-desc.svelte-6rsm0u {
      font-size: 9px;
    }

    /* Actions - always stacked */
    .neg-actions.svelte-6rsm0u {
      flex-direction: column;
      gap: 6px;
      margin-top: 6px;
    }

    .neg-actions.svelte-6rsm0u .btn:where(.svelte-6rsm0u) {
      width: 100%;
      min-height: 48px;
      font-size: 13px;
    }

    /* Progress bars - thinner */
    .stat-bar {
      height: 4px;
    }
  }

  .contract-pay-row.svelte-1sa7xcw {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Mobile Responsive Styles */
  @media (max-width: 768px) {
    /* Stack header */
    .flex-between.mb-md {
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }

    /* Change grid-3 to single column */
    .grid-3 {
      grid-template-columns: 1fr !important;
      gap: 16px;
    }

    /* Reduce title size */
    h1 {
      font-size: 18px !important;
    }

    /* Make contract cards full width */
    .card-clickable {
      width: 100%;
    }

    /* Contract title - allow wrapping */
    .card-clickable .card-title {
      white-space: normal !important;
      overflow: visible !important;
      text-overflow: clip !important;
      font-size: 14px;
      line-height: 1.3;
    }

    /* Pay row - adjust for smaller screens */
    .contract-pay-row.svelte-1sa7xcw {
      padding: 8px 10px;
    }

    .pay-amount {
      font-size: 18px;
    }

    /* Buttons - full width and touch-friendly */
    .card-clickable .btn-block {
      min-height: 44px;
      font-size: 14px;
    }

    /* Requirements section - smaller text */
    .card-clickable .stat-row {
      font-size: 11px;
    }

    /* Phases badges - more compact */
    .card-clickable .badge {
      font-size: 9px;
      padding: 2px 6px;
    }

    /* Client personality - smaller */
    .card-clickable div[style*="italic"] {
      font-size: 10px;
    }

    /* Bonus section - more compact */
    .card-clickable div[style*="BONUS"] {
      font-size: 10px;
      padding: 4px 8px;
    }

    /* NPC bidders text - smaller */
    .card-clickable div[style*="Also bidding"] {
      font-size: 10px;
    }

    /* Card header badges - wrap better */
    .card-clickable .flex-row[style*="flex-wrap"] {
      gap: 4px;
    }

    /* Subtitle smaller */
    .card-subtitle {
      font-size: 11px;
    }
  }

  @media (max-width: 480px) {
    /* Even smaller screens - more aggressive changes */
    h1 {
      font-size: 16px !important;
    }

    p.text-secondary {
      font-size: 11px !important;
    }

    /* Phases section - hide on very small screens */
    .card-clickable div[style*="Phases"] {
      display: none;
    }

    /* Pay row - stack vertically on very small screens */
    .contract-pay-row.svelte-1sa7xcw {
      flex-direction: column;
      gap: 6px;
      align-items: flex-start;
    }

    .contract-pay-row.svelte-1sa7xcw > div:where(.svelte-1sa7xcw):last-child {
      text-align: left !important;
    }

    .pay-amount {
      font-size: 16px;
    }

    /* Badges - more compact */
    .card-clickable .badge {
      font-size: 8px;
      padding: 2px 4px;
    }

    /* Difficulty badge - keep visible but smaller */
    .badge-difficulty-1,
    .badge-difficulty-2,
    .badge-difficulty-3 {
      font-size: 9px;
    }

    /* Buttons - side by side but smaller */
    .card-clickable > div:last-child {
      gap: 4px;
    }

    .card-clickable .btn-block {
      min-height: 40px;
      font-size: 13px;
      padding: 8px;
    }

    /* Client personality - hide on very small screens */
    .card-clickable div[style*="border-top"][style*="italic"] {
      display: none;
    }

    /* NPC bidders - hide on very small screens */
    .card-clickable div[style*="Also bidding"] {
      display: none;
    }

    /* Reduce card padding */
    .card {
      padding: 12px;
    }

    /* Bonus section - hide text, show only amount */
    .card-clickable div[style*="BONUS"] span:last-child {
      display: none;
    }

    /* Deadline days - smaller */
    .card-clickable .text-mono.font-bold {
      font-size: 16px !important;
    }
  }

  .sprint-planning.svelte-n2vhpb {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
  }
  
  .sprint-header.svelte-n2vhpb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  
  .sprint-title.svelte-n2vhpb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
  }
  
  .phase-icon.svelte-n2vhpb {
    font-size: 24px;
  }
  
  .capacity-bar-container.svelte-n2vhpb {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  
  .capacity-label.svelte-n2vhpb {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-muted);
  }
  
  .capacity-bar.svelte-n2vhpb {
    width: 150px;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
  }
  
  .capacity-fill.svelte-n2vhpb {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
  }
  
  .capacity-warning.svelte-n2vhpb {
    padding: 8px 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--accent-yellow);
  }
  
  .capacity-warning.severe.svelte-n2vhpb {
    background: rgba(255, 80, 80, 0.1);
    border-color: rgba(255, 80, 80, 0.3);
    color: var(--accent-red);
  }
  
  .sprint-content.svelte-n2vhpb {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-height: 400px;
  }
  
  @media (max-width: 900px) {
    .sprint-content.svelte-n2vhpb {
      grid-template-columns: 1fr;
    }
  }
  
  .backlog-section.svelte-n2vhpb,
  .queue-section.svelte-n2vhpb {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .section-title.svelte-n2vhpb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
  }
  
  .task-count.svelte-n2vhpb {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
  }
  
  .backlog-list.svelte-n2vhpb,
  .queue-list.svelte-n2vhpb {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    min-height: 300px;
    max-height: 400px;
  }
  
  .task-card.svelte-n2vhpb {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: grab;
    transition: all 0.15s ease;
    position: relative;
  }
  
  .task-card.svelte-n2vhpb:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .task-card.disabled.svelte-n2vhpb {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .queue-task.svelte-n2vhpb {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  
  .queue-position.svelte-n2vhpb {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
  }
  
  .task-content.svelte-n2vhpb {
    flex: 1;
    min-width: 0;
  }
  
  .task-header.svelte-n2vhpb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
  }
  
  .task-icon.svelte-n2vhpb {
    font-size: 16px;
  }
  
  .task-name.svelte-n2vhpb {
    font-weight: 600;
    font-size: 13px;
    flex: 1;
  }
  
  .task-size-badge.svelte-n2vhpb {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
  }
  
  .task-description.svelte-n2vhpb {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
  }
  
  .task-meta.svelte-n2vhpb {
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
  }
  
  .meta-item.bonus.svelte-n2vhpb {
    color: var(--accent-green);
  }
  
  .task-effects.svelte-n2vhpb {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 11px;
  }
  
  .effect-row.svelte-n2vhpb {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
  }
  
  .effect-label.svelte-n2vhpb {
    color: var(--text-muted);
  }
  
  .effect-value.svelte-n2vhpb {
    font-family: var(--font-mono);
    font-weight: 600;
  }
  
  .effect-value.negative.svelte-n2vhpb {
    color: var(--accent-green);
  }
  
  .early-bonus.svelte-n2vhpb {
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(80, 250, 123, 0.1);
    border-radius: 4px;
    color: var(--accent-green);
    font-size: 10px;
  }
  
  .remove-btn.svelte-n2vhpb {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
  }
  
  .remove-btn.svelte-n2vhpb:hover {
    background: rgba(255, 80, 80, 0.1);
    color: var(--accent-red);
  }
  
  .empty-queue.svelte-n2vhpb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
  }
  
  .empty-icon.svelte-n2vhpb {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
  }
  
  .empty-text.svelte-n2vhpb {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .empty-hint.svelte-n2vhpb {
    font-size: 12px;
  }
  
  .predicted-metrics.svelte-n2vhpb {
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
  }
  
  .predicted-metrics.svelte-n2vhpb h4:where(.svelte-n2vhpb) {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--text-secondary);
  }
  
  .metric-row.svelte-n2vhpb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
  }
  
  .metric-label.svelte-n2vhpb {
    width: 80px;
    color: var(--text-muted);
  }
  
  .metric-value.svelte-n2vhpb {
    font-family: var(--font-mono);
    font-weight: 600;
    min-width: 80px;
  }
  
  .metric-value.negative.svelte-n2vhpb {
    color: var(--accent-red);
  }
  
  .metric-bar.svelte-n2vhpb {
    flex: 1;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
  }
  
  .metric-fill.svelte-n2vhpb {
    height: 100%;
    background: var(--accent-cyan);
    border-radius: 2px;
  }
  
  .sprint-actions.svelte-n2vhpb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  
  .action-left.svelte-n2vhpb {
    display: flex;
    gap: 8px;
  }
  
  .btn.svelte-n2vhpb {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  
  .btn.svelte-n2vhpb:hover {
    background: var(--bg-secondary);
  }
  
  .btn-primary.svelte-n2vhpb {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
    font-weight: 600;
  }
  
  .btn-primary.svelte-n2vhpb:hover {
    background: var(--accent-cyan-light, var(--accent-cyan));
    filter: brightness(1.1);
  }
  
  .btn-primary.svelte-n2vhpb:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-color: var(--border);
    cursor: not-allowed;
  }
  
  .btn-secondary.svelte-n2vhpb {
    background: transparent;
  }
  
  .btn-secondary.active.svelte-n2vhpb {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
  }
  
  .start-btn.svelte-n2vhpb {
    font-size: 14px;
    padding: 10px 24px;
  }

  /* Mobile Responsive Styles */
  @media (max-width: 768px) {
    .sprint-planning.svelte-n2vhpb {
      padding: 12px;
      gap: 12px;
    }

    .sprint-header.svelte-n2vhpb {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      padding-bottom: 10px;
    }

    .sprint-title.svelte-n2vhpb {
      font-size: 16px;
    }

    .phase-icon.svelte-n2vhpb {
      font-size: 20px;
    }

    .capacity-bar-container.svelte-n2vhpb {
      width: 100%;
      align-items: flex-start;
    }

    .capacity-bar.svelte-n2vhpb {
      width: 100%;
    }

    .sprint-content.svelte-n2vhpb {
      grid-template-columns: 1fr;
      gap: 12px;
      min-height: auto;
    }

    .backlog-list.svelte-n2vhpb,
    .queue-list.svelte-n2vhpb {
      min-height: 200px;
      max-height: 300px;
      padding: 6px;
    }

    .task-card.svelte-n2vhpb {
      padding: 12px;
      margin-bottom: 6px;
    }

    .task-name.svelte-n2vhpb {
      font-size: 12px;
    }

    .task-description.svelte-n2vhpb {
      font-size: 11px;
    }

    .task-size-badge.svelte-n2vhpb {
      font-size: 9px;
      padding: 3px 6px;
    }

    /* Make task cards easier to touch */
    .backlog-task.svelte-n2vhpb,
    .queue-task.svelte-n2vhpb {
      min-height: 44px;
    }

    .queue-task.svelte-n2vhpb {
      gap: 8px;
    }

    .queue-position.svelte-n2vhpb {
      width: 28px;
      height: 28px;
      font-size: 13px;
    }

    .remove-btn.svelte-n2vhpb {
      width: 32px;
      height: 32px;
      font-size: 20px;
    }

    .sprint-actions.svelte-n2vhpb {
      flex-direction: column;
      gap: 12px;
    }

    .action-left.svelte-n2vhpb {
      width: 100%;
      justify-content: space-between;
    }

    .action-right.svelte-n2vhpb {
      width: 100%;
    }

    .btn.svelte-n2vhpb {
      padding: 10px 14px;
      font-size: 12px;
      min-height: 44px;
    }

    .start-btn.svelte-n2vhpb {
      width: 100%;
      padding: 12px 20px;
      font-size: 13px;
    }

    .predicted-metrics.svelte-n2vhpb {
      padding: 10px;
    }

    .metric-label.svelte-n2vhpb {
      width: 70px;
      font-size: 11px;
    }

    .metric-value.svelte-n2vhpb {
      font-size: 11px;
      min-width: 70px;
    }

    .section-title.svelte-n2vhpb {
      font-size: 13px;
    }

    .empty-queue.svelte-n2vhpb {
      padding: 30px 16px;
    }

    .empty-icon.svelte-n2vhpb {
      font-size: 36px;
    }

    .empty-text.svelte-n2vhpb {
      font-size: 13px;
    }
  }

  @media (max-width: 480px) {
    .sprint-planning.svelte-n2vhpb {
      padding: 8px;
      gap: 10px;
      border-radius: var(--radius-md);
    }

    .sprint-title.svelte-n2vhpb {
      font-size: 14px;
      flex-wrap: wrap;
    }

    .capacity-label.svelte-n2vhpb {
      font-size: 11px;
    }

    .capacity-bar.svelte-n2vhpb {
      height: 10px;
    }

    .capacity-warning.svelte-n2vhpb {
      font-size: 11px;
      padding: 6px 10px;
    }

    .backlog-list.svelte-n2vhpb,
    .queue-list.svelte-n2vhpb {
      min-height: 180px;
      max-height: 250px;
      border-radius: var(--radius-sm);
    }

    .task-card.svelte-n2vhpb {
      padding: 10px;
      margin-bottom: 5px;
      border-radius: var(--radius-sm);
    }

    .task-header.svelte-n2vhpb {
      flex-wrap: wrap;
      gap: 4px;
    }

    .task-name.svelte-n2vhpb {
      font-size: 11px;
      width: 100%;
      order: 3;
      margin-top: 4px;
    }

    .task-icon.svelte-n2vhpb {
      font-size: 14px;
      order: 1;
    }

    .task-size-badge.svelte-n2vhpb {
      order: 2;
      margin-left: auto;
    }

    .task-description.svelte-n2vhpb {
      font-size: 10px;
    }

    .task-meta.svelte-n2vhpb {
      flex-wrap: wrap;
      gap: 6px;
      font-size: 9px;
    }

    /* Stack queue task vertically on very small screens */
    .queue-task.svelte-n2vhpb {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .queue-position.svelte-n2vhpb {
      width: 24px;
      height: 24px;
      font-size: 11px;
    }

    .task-content.svelte-n2vhpb {
      width: 100%;
    }

    .remove-btn.svelte-n2vhpb {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 28px;
      height: 28px;
      background: rgba(255, 80, 80, 0.1);
      border-radius: var(--radius-sm);
    }

    .sprint-actions.svelte-n2vhpb {
      padding-top: 10px;
    }

    .action-left.svelte-n2vhpb {
      flex-wrap: wrap;
      gap: 6px;
    }

    .btn.svelte-n2vhpb {
      padding: 8px 12px;
      font-size: 11px;
      min-height: 40px;
      flex: 1;
    }

    .start-btn.svelte-n2vhpb {
      padding: 10px 16px;
      font-size: 12px;
    }

    .predicted-metrics.svelte-n2vhpb h4:where(.svelte-n2vhpb) {
      font-size: 12px;
    }

    .metric-row.svelte-n2vhpb {
      flex-wrap: wrap;
      gap: 4px;
    }

    .metric-label.svelte-n2vhpb {
      width: 60px;
    }

    .metric-value.svelte-n2vhpb {
      min-width: auto;
      flex: 1;
      text-align: right;
    }

    .metric-bar.svelte-n2vhpb {
      width: 100%;
      order: 3;
      margin-top: 4px;
    }

    .section-title.svelte-n2vhpb {
      font-size: 12px;
    }

    .task-count.svelte-n2vhpb {
      font-size: 10px;
    }

    .task-effects.svelte-n2vhpb {
      font-size: 10px;
    }

    .effect-row.svelte-n2vhpb {
      gap: 8px;
    }
  }

  .vibe-check.svelte-1pazwq4 {
    max-width: 600px;
    margin: 0 auto;
  }

  .vibe-header.svelte-1pazwq4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .vibe-title.svelte-1pazwq4 {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    letter-spacing: 2px;
  }

  .vibe-progress-label.svelte-1pazwq4 {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-muted);
  }

  .vibe-question-card.svelte-1pazwq4 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
  }

  .vibe-lang.svelte-1pazwq4 {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--accent-purple);
    letter-spacing: 1.5px;
  }

  .vibe-code.svelte-1pazwq4 {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-primary);
    overflow-x: auto;
    margin: 8px 0;
    white-space: pre;
  }

  .vibe-bug-desc.svelte-1pazwq4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 80, 80, 0.08);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent-red);
  }

  .vibe-options.svelte-1pazwq4 {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .vibe-option.svelte-1pazwq4 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    color: var(--text-primary);
    font-size: 13px;
  }

  .vibe-option.svelte-1pazwq4:hover:not(:disabled) {
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.05);
  }

  .vibe-option.svelte-1pazwq4:disabled {
    cursor: default;
  }

  .vibe-option.correct.svelte-1pazwq4 {
    border-color: var(--accent-green);
    background: rgba(80, 250, 123, 0.1);
  }

  .vibe-option.wrong.svelte-1pazwq4 {
    border-color: var(--accent-red);
    background: rgba(255, 80, 80, 0.1);
  }

  .vibe-option-letter.svelte-1pazwq4 {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
  }

  .vibe-option-text.svelte-1pazwq4 {
    flex: 1;
  }

  .vibe-option-indicator.svelte-1pazwq4 {
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
  }

  .vibe-option.correct.svelte-1pazwq4 .vibe-option-indicator:where(.svelte-1pazwq4) {
    color: var(--accent-green);
  }

  .vibe-option.wrong.svelte-1pazwq4 .vibe-option-indicator:where(.svelte-1pazwq4) {
    color: var(--accent-red);
  }

  .vibe-explanation.svelte-1pazwq4 {
    margin-top: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.5;
  }

  .vibe-explanation.correct-bg.svelte-1pazwq4 {
    background: rgba(80, 250, 123, 0.1);
    border: 1px solid rgba(80, 250, 123, 0.2);
  }

  .vibe-explanation.wrong-bg.svelte-1pazwq4 {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.2);
  }

  .vibe-explain-label.svelte-1pazwq4 {
    font-weight: 700;
    margin-bottom: 4px;
  }

  .correct-bg.svelte-1pazwq4 .vibe-explain-label:where(.svelte-1pazwq4) { color: var(--accent-green); }
  .wrong-bg.svelte-1pazwq4 .vibe-explain-label:where(.svelte-1pazwq4) { color: var(--accent-red); }

  .vibe-explain-text.svelte-1pazwq4 {
    color: var(--text-secondary);
  }

  .vibe-score-bar.svelte-1pazwq4 {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-muted);
  }

  .dev-phase-header.svelte-lfpb0u {
    display: flex; align-items: flex-start; gap: 16px;
    margin-bottom: var(--gap-lg); padding: 16px;
    background: linear-gradient(135deg, rgba(0,180,255,0.04) 0%, transparent 60%);
    border-radius: var(--radius-md); border-left: 3px solid var(--phase-color);
  }
  .dev-phase-title.svelte-lfpb0u {
    font-size: 22px; font-weight: 700; font-family: var(--font-display);
    color: var(--phase-color); letter-spacing: 1px; margin-bottom: 4px;
  }
  .dev-phase-desc.svelte-lfpb0u {
    font-size: 12px; color: var(--text-secondary); line-height: 1.5; font-family: var(--font-mono);
  }
  .dev-info-strip.svelte-lfpb0u {
    display: flex; margin-bottom: var(--gap-md); background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
  }
  .dev-info-item.svelte-lfpb0u {
    flex: 1; padding: 8px 12px; display: flex; flex-direction: column;
    align-items: center; border-right: 1px solid var(--border);
  }
  .dev-info-item.svelte-lfpb0u:last-child { border-right: none; }
  .dev-info-label.svelte-lfpb0u {
    font-size: 9px; color: var(--text-muted); font-family: var(--font-mono);
    text-transform: uppercase; letter-spacing: 1px;
  }
  .dev-info-value.svelte-lfpb0u {
    font-size: 13px; font-weight: 600; font-family: var(--font-mono); margin-top: 2px;
  }
  .dev-progress.svelte-lfpb0u {
    display: flex; align-items: center; margin-bottom: var(--gap-lg); padding: 0 8px;
  }
  .dev-progress-step.svelte-lfpb0u { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .dev-progress-dot.svelte-lfpb0u {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--border); background: var(--bg-primary); transition: all 0.3s;
  }
  .dev-progress-step.completed.svelte-lfpb0u .dev-progress-dot:where(.svelte-lfpb0u) {
    background: var(--accent-green); border-color: var(--accent-green);
    box-shadow: 0 0 8px rgba(0,255,157,0.5);
  }
  .dev-progress-step.active.svelte-lfpb0u .dev-progress-dot:where(.svelte-lfpb0u) {
    background: var(--accent-blue); border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(0,180,255,0.6); animation: svelte-lfpb0u-pdot 1.5s ease-in-out infinite;
  }
  @keyframes svelte-lfpb0u-pdot {
    0%,100% { box-shadow: 0 0 8px rgba(0,180,255,0.4); }
    50% { box-shadow: 0 0 16px rgba(0,180,255,0.8); }
  }
  .dev-progress-label.svelte-lfpb0u {
    font-size: 9px; color: var(--text-muted); font-family: var(--font-mono);
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .dev-progress-step.active.svelte-lfpb0u .dev-progress-label:where(.svelte-lfpb0u) { color: var(--accent-blue); }
  .dev-progress-step.completed.svelte-lfpb0u .dev-progress-label:where(.svelte-lfpb0u) { color: var(--accent-green); }
  .dev-progress-line.svelte-lfpb0u {
    flex: 1; height: 2px; background: var(--border); margin: 0 4px; margin-bottom: 18px;
  }
  .dev-progress-line.completed.svelte-lfpb0u {
    background: var(--accent-green); box-shadow: 0 0 4px rgba(0,255,157,0.3);
  }
  .dev-terminal.svelte-lfpb0u {
    margin-bottom: var(--gap-md); border-radius: var(--radius-md);
    overflow: hidden; border: 1px solid var(--border);
  }
  .dev-terminal-header.svelte-lfpb0u {
    display: flex; align-items: center; gap: 6px; padding: 6px 10px;
    background: rgba(0,0,0,0.4); border-bottom: 1px solid var(--border);
  }
  .dev-terminal-dot.svelte-lfpb0u { width: 8px; height: 8px; border-radius: 50%; }
  .dev-terminal-title.svelte-lfpb0u {
    font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); margin-left: 8px;
  }
  .dev-terminal-body.svelte-lfpb0u {
    padding: 8px 12px; background: rgba(0,0,0,0.3); font-family: var(--font-mono);
    font-size: 11px; overflow-y: auto; max-height: 180px; scroll-behavior: smooth;
    display: flex; flex-direction: column; gap: 1px;
  }
  .dev-term-line.svelte-lfpb0u {
    display: flex; gap: 6px; padding: 1px 0; animation: svelte-lfpb0u-termline 0.2s ease;
    line-height: 1.5;
  }
  @keyframes svelte-lfpb0u-termline { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:translateY(0); } }
  .dev-term-prefix.svelte-lfpb0u { flex-shrink: 0; width: 14px; text-align: center; }
  .dev-term-cmd.svelte-lfpb0u { color: var(--text-primary); }
  .dev-term-cmd.svelte-lfpb0u .dev-term-prefix:where(.svelte-lfpb0u) { color: var(--accent-cyan); font-weight: 700; }
  .dev-term-ok.svelte-lfpb0u { color: var(--accent-green); }
  .dev-term-ok.svelte-lfpb0u .dev-term-prefix:where(.svelte-lfpb0u) { color: var(--accent-green); }
  .dev-term-warn.svelte-lfpb0u { color: var(--accent-yellow); }
  .dev-term-warn.svelte-lfpb0u .dev-term-prefix:where(.svelte-lfpb0u) { color: var(--accent-yellow); }
  .dev-term-error.svelte-lfpb0u { color: var(--accent-red); }
  .dev-term-error.svelte-lfpb0u .dev-term-prefix:where(.svelte-lfpb0u) { color: var(--accent-red); font-weight: 700; }
  .dev-term-info.svelte-lfpb0u { color: var(--text-muted); font-style: italic; }
  .dev-term-info.svelte-lfpb0u .dev-term-prefix:where(.svelte-lfpb0u) { color: var(--text-muted); }
  .dev-term-cursor-line.svelte-lfpb0u { color: var(--accent-cyan); }
  .dev-cursor.svelte-lfpb0u { animation: svelte-lfpb0u-blinkcur 0.8s step-end infinite; color: var(--accent-green); }
  @keyframes svelte-lfpb0u-blinkcur { 0%,100% { opacity:1; } 50% { opacity:0; } }
  .dev-terminal-bug-badge.svelte-lfpb0u {
    margin-left: auto; font-size: 9px; font-family: var(--font-mono);
    color: var(--accent-red); background: rgba(255,42,74,0.15);
    padding: 1px 6px; border-radius: 3px; letter-spacing: 0.5px;
  }
  /* (unused) .dev-ai-box {
    display: flex; align-items: flex-start; gap: 10px; margin-top: var(--gap-md);
    padding: 10px 12px; background: rgba(0,180,255,0.03);
    border: 1px solid rgba(0,180,255,0.1); border-radius: var(--radius-sm);
  }*/
  /* (unused) .dev-ai-text {
    font-size: 12px; color: var(--text-secondary); font-style: italic;
    font-family: var(--font-mono); line-height: 1.5;
  }*/
  /* (unused) .dev-dots span { animation: dotb 1.2s ease-in-out infinite; }*/
  /* (unused) .dev-dots span:nth-child(2) { animation-delay: 0.2s; }*/
  /* (unused) .dev-dots span:nth-child(3) { animation-delay: 0.4s; }*/
  @keyframes svelte-lfpb0u-dotb { 0%,80%,100% { opacity:0.3; } 40% { opacity:1; } }

  .vibe-check-overlay.svelte-lfpb0u {
    margin-bottom: var(--gap-md);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-md);
    padding: 16px;
    background: rgba(0,229,255,0.03);
  }
  .vibe-check-header.svelte-lfpb0u {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
  }
  .vibe-check-label.svelte-lfpb0u {
    font-size: 12px; font-family: var(--font-mono);
    color: var(--accent-cyan); letter-spacing: 1px; font-weight: 700;
  }
  .vibe-prompt.svelte-lfpb0u {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: var(--gap-md); padding: 14px 16px;
    background: rgba(0,229,255,0.04); border: 1px solid rgba(0,229,255,0.2);
    border-radius: var(--radius-md);
  }
  .vibe-prompt-text.svelte-lfpb0u { display: flex; align-items: center; gap: 12px; flex: 1; }
  .vibe-prompt-btns.svelte-lfpb0u { display: flex; gap: 8px; flex-shrink: 0; }

  /* Sprint Execution Animation */
  .sprint-execution-view.svelte-lfpb0u {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    padding: 20px;
  }
  .sprint-progress-header.svelte-lfpb0u {
    display: flex; align-items: center; gap: 8px;
  }
  .sprint-icon.svelte-lfpb0u {
    font-size: 32px;
    animation: svelte-lfpb0u-runbounce 0.6s ease-in-out infinite;
  }
  @keyframes svelte-lfpb0u-runbounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
  }
  .sprint-title.svelte-lfpb0u {
    font-size: 14px; font-weight: 700;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
  }
  .progress-bar-container.svelte-lfpb0u {
    width: 100%; height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
  }
  .progress-bar.svelte-lfpb0u {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    border-radius: 4px;
    transition: width 0.3s ease;
  }
  .current-task.svelte-lfpb0u {
    min-height: 60px;
    display: flex; align-items: center; justify-content: center;
  }
  .task-anim.svelte-lfpb0u {
    display: flex; align-items: center; gap: 12px;
    animation: svelte-lfpb0u-taskpop 0.4s ease;
  }
  .task-anim.complete.svelte-lfpb0u {
    animation: svelte-lfpb0u-completepop 0.6s ease;
  }
  @keyframes svelte-lfpb0u-taskpop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
  }
  @keyframes svelte-lfpb0u-completepop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); filter: brightness(1.3); }
    100% { transform: scale(1); opacity: 1; }
  }
  .task-icon-large.svelte-lfpb0u {
    font-size: 36px;
  }
  .task-name-large.svelte-lfpb0u {
    font-size: 16px; font-weight: 600;
    color: var(--text-primary);
  }
  .completed-tasks.svelte-lfpb0u {
    display: flex; gap: 4px; flex-wrap: wrap; justify-content: center;
    max-width: 300px;
  }
  .completed-task-icon.svelte-lfpb0u {
    font-size: 16px;
    opacity: 0.5;
    animation: svelte-lfpb0u-fadein 0.3s ease;
  }
  @keyframes svelte-lfpb0u-fadein {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 0.5; transform: scale(1); }
  }
  /* (unused) .badge {
    padding: 2px 6px; border-radius: 3px;
    font-size: 9px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }*/

  /* Mobile Responsive Styles */
  @media (max-width: 768px) {
    .dev-phase-header.svelte-lfpb0u {
      padding: 12px;
      gap: 12px;
      margin-bottom: var(--gap-md);
    }

    .dev-phase-header.svelte-lfpb0u > div:where(.svelte-lfpb0u):first-child {
      font-size: 28px !important;
    }

    .dev-phase-title.svelte-lfpb0u {
      font-size: 18px;
    }

    .dev-phase-desc.svelte-lfpb0u {
      font-size: 11px;
    }

    .dev-info-strip.svelte-lfpb0u {
      flex-wrap: wrap;
      margin-bottom: var(--gap-sm);
    }

    .dev-info-item.svelte-lfpb0u {
      flex: 1 1 33%;
      padding: 6px 8px;
      border-bottom: 1px solid var(--border);
      border-right: none;
    }

    .dev-info-item.svelte-lfpb0u:nth-child(3n) {
      border-right: none;
    }

    .dev-info-item.svelte-lfpb0u:nth-last-child(-n+2) {
      border-bottom: none;
    }

    .dev-info-label.svelte-lfpb0u {
      font-size: 8px;
    }

    .dev-info-value.svelte-lfpb0u {
      font-size: 11px;
    }

    .dev-progress.svelte-lfpb0u {
      margin-bottom: var(--gap-md);
      overflow-x: auto;
      padding-bottom: 8px;
    }

    .dev-progress-label.svelte-lfpb0u {
      font-size: 8px;
    }

    .dev-progress-dot.svelte-lfpb0u {
      width: 10px;
      height: 10px;
    }

    .dev-terminal.svelte-lfpb0u {
      margin-bottom: var(--gap-sm);
    }

    .dev-terminal-header.svelte-lfpb0u {
      padding: 5px 8px;
    }

    .dev-terminal-title.svelte-lfpb0u {
      font-size: 9px;
    }

    .dev-terminal-body.svelte-lfpb0u {
      padding: 6px 10px;
      font-size: 10px;
      max-height: 150px;
    }

    .dev-term-prefix.svelte-lfpb0u {
      width: 12px;
    }

    /* Sliders - Full width and touch friendly */
    /* (unused) .slider-container {
      margin: 12px 0;
    }*/

    /* (unused) .slider-labels {
      font-size: 9px;
    }*/

    /* (unused) .slider-input {
      height: 8px;
      border-radius: 4px;
    }*/

    /* (unused) .slider-input::-webkit-slider-thumb {
      width: 24px;
      height: 24px;
      border-radius: 4px;
    }*/

    /* (unused) .slider-input::-moz-range-thumb {
      width: 24px;
      height: 24px;
      border-radius: 4px;
    }*/

    /* Make slider value more visible on mobile */
    /* (unused) .slider-container .flex-between span.font-bold {
      font-size: 16px !important;
    }*/

    /* (unused) .dev-ai-box {
      margin-top: var(--gap-sm);
      padding: 8px 10px;
    }*/

    /* (unused) .dev-ai-box > span:first-child {
      font-size: 16px !important;
    }*/

    /* (unused) .dev-ai-text {
      font-size: 11px;
    }*/

    /* Grid stacking */
    .grid-2.svelte-lfpb0u {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    /* Cards */
    .card.svelte-lfpb0u {
      padding: 12px;
    }

    .card-title.svelte-lfpb0u {
      font-size: 13px;
    }

    .card-subtitle.svelte-lfpb0u {
      font-size: 10px;
    }

    /* Stat rows */
    .stat-row.svelte-lfpb0u {
      padding: 4px 0;
    }

    .stat-label.svelte-lfpb0u {
      font-size: 10px;
    }

    .stat-value.svelte-lfpb0u {
      font-size: 11px;
    }

    /* Vibe prompt */
    .vibe-prompt.svelte-lfpb0u {
      flex-direction: column;
      padding: 12px;
      gap: 10px;
    }

    .vibe-prompt-text.svelte-lfpb0u {
      width: 100%;
    }

    .vibe-prompt-text.svelte-lfpb0u > div:where(.svelte-lfpb0u) {
      flex: 1;
    }

    .vibe-prompt-btns.svelte-lfpb0u {
      width: 100%;
      flex-direction: column;
    }

    .vibe-prompt-btns.svelte-lfpb0u .btn:where(.svelte-lfpb0u) {
      width: 100%;
      min-height: 44px;
    }

    /* Vibe check overlay */
    .vibe-check-overlay.svelte-lfpb0u {
      padding: 12px;
    }

    .vibe-check-header.svelte-lfpb0u {
      flex-wrap: wrap;
      gap: 8px;
    }

    .vibe-check-label.svelte-lfpb0u {
      font-size: 11px;
    }

    /* Sprint execution */
    .sprint-execution-view.svelte-lfpb0u {
      padding: 16px;
      gap: 12px;
    }

    .sprint-icon.svelte-lfpb0u {
      font-size: 24px;
    }

    .sprint-title.svelte-lfpb0u {
      font-size: 13px;
    }

    .progress-bar-container.svelte-lfpb0u {
      height: 10px;
    }

    .task-icon-large.svelte-lfpb0u {
      font-size: 28px;
    }

    .task-name-large.svelte-lfpb0u {
      font-size: 14px;
    }

    .completed-tasks.svelte-lfpb0u {
      max-width: 100%;
    }

    /* Main submit button */
    /* (unused) .btn-lg {
      padding: 12px 20px;
      font-size: 12px;
      min-height: 48px;
    }*/
  }

  @media (max-width: 480px) {
    .dev-phase-header.svelte-lfpb0u {
      padding: 10px;
      gap: 10px;
      flex-direction: column;
      align-items: flex-start;
    }

    .dev-phase-header.svelte-lfpb0u > div:where(.svelte-lfpb0u):first-child {
      font-size: 24px !important;
    }

    .dev-phase-title.svelte-lfpb0u {
      font-size: 16px;
    }

    .dev-phase-desc.svelte-lfpb0u {
      font-size: 10px;
    }

    .dev-info-strip.svelte-lfpb0u {
      flex-direction: row;
      flex-wrap: wrap;
    }

    .dev-info-item.svelte-lfpb0u {
      flex: 1 1 50%;
      padding: 5px 6px;
      border-right: none;
      border-bottom: 1px solid var(--border);
    }

    .dev-info-item.svelte-lfpb0u:nth-child(odd) {
      border-right: 1px solid var(--border);
    }

    .dev-info-item.svelte-lfpb0u:nth-last-child(-n+2) {
      border-bottom: none;
    }

    .dev-info-label.svelte-lfpb0u {
      font-size: 7px;
      letter-spacing: 0.5px;
    }

    .dev-info-value.svelte-lfpb0u {
      font-size: 10px;
    }

    /* Hide some progress steps on very small screens */
    .dev-progress.svelte-lfpb0u {
      justify-content: space-between;
    }

    .dev-progress-step.svelte-lfpb0u {
      flex: 0 0 auto;
    }

    .dev-progress-step.svelte-lfpb0u:not(.active):not(.completed) .dev-progress-label:where(.svelte-lfpb0u) {
      display: none;
    }

    .dev-progress-label.svelte-lfpb0u {
      font-size: 7px;
      max-width: 50px;
      text-align: center;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dev-terminal-body.svelte-lfpb0u {
      font-size: 9px;
      max-height: 120px;
    }

    .dev-terminal-title.svelte-lfpb0u {
      font-size: 8px;
      margin-left: 4px;
    }

    .dev-terminal-bug-badge.svelte-lfpb0u {
      font-size: 8px;
      padding: 1px 4px;
    }

    /* Sliders */
    /* (unused) .slider-container {
      margin: 10px 0;
    }*/

    /* (unused) .slider-labels {
      font-size: 8px;
      flex-wrap: wrap;
      gap: 4px;
    }*/

    /* (unused) .slider-labels span {
      flex: 1;
    }*/

    /* (unused) .slider-input {
      height: 10px;
    }*/

    /* (unused) .slider-input::-webkit-slider-thumb {
      width: 28px;
      height: 28px;
    }*/

    /* (unused) .slider-input::-moz-range-thumb {
      width: 28px;
      height: 28px;
    }*/

    /* (unused) .slider-container .flex-between {
      flex-wrap: wrap;
      gap: 4px;
    }*/

    /* (unused) .slider-container .flex-between span.text-muted {
      font-size: 9px;
      flex: 1;
    }*/

    /* (unused) .slider-container .flex-between span.font-bold {
      order: -1;
      width: 100%;
      text-align: center;
      font-size: 14px !important;
      padding: 4px 0;
      background: rgba(0, 0, 0, 0.2);
      border-radius: var(--radius-sm);
    }*/

    /* (unused) .dev-ai-box {
      padding: 8px;
      gap: 8px;
    }*/

    /* (unused) .dev-ai-box > span:first-child {
      font-size: 14px !important;
    }*/

    /* (unused) .dev-ai-text {
      font-size: 10px;
    }*/

    /* Cards */
    .card.svelte-lfpb0u {
      padding: 10px;
    }

    .card-title.svelte-lfpb0u {
      font-size: 12px;
    }

    .card-subtitle.svelte-lfpb0u {
      font-size: 9px;
    }

    /* Model stats - stack on very small screens */
    .stat-row.svelte-lfpb0u {
      flex-wrap: wrap;
    }

    .stat-row.svelte-lfpb0u > div[style*="flex:1"]:where(.svelte-lfpb0u) {
      width: 100%;
      margin: 4px 0 !important;
    }

    .stat-label.svelte-lfpb0u {
      font-size: 9px;
    }

    .stat-value.svelte-lfpb0u {
      font-size: 10px;
    }

    /* Vibe elements */
    .vibe-prompt.svelte-lfpb0u {
      padding: 10px;
    }

    .vibe-prompt-text.svelte-lfpb0u > span:where(.svelte-lfpb0u) {
      font-size: 16px !important;
    }

    .vibe-prompt-text.svelte-lfpb0u > div:where(.svelte-lfpb0u) > div:where(.svelte-lfpb0u):first-child {
      font-size: 12px !important;
    }

    .vibe-prompt-text.svelte-lfpb0u > div:where(.svelte-lfpb0u) > div:where(.svelte-lfpb0u):last-child {
      font-size: 9px !important;
    }

    /* Sprint execution */
    .sprint-execution-view.svelte-lfpb0u {
      padding: 12px;
    }

    .task-anim.svelte-lfpb0u {
      flex-direction: column;
      gap: 8px;
      text-align: center;
    }

    .completed-task-icon.svelte-lfpb0u {
      font-size: 14px;
    }

    /* Submit button */
    /* (unused) .btn-lg {
      padding: 14px 16px;
      font-size: 12px;
      min-height: 52px;
    }*/

    /* (unused) .dev-dots span {
      font-size: 16px;
    }*/

    /* No active contract message */
    .text-center.svelte-lfpb0u p:where(.svelte-lfpb0u):first-child {
      font-size: 36px !important;
    }

    .text-center.svelte-lfpb0u p:where(.svelte-lfpb0u):last-child {
      font-size: 12px;
    }
  }

  .results-heading.svelte-1bprdzn {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 4px;
    min-height: 20px;
  }

  .skip-btn.svelte-1bprdzn {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.5;
    font-size: 9px;
  }
  .skip-btn.svelte-1bprdzn:hover { opacity: 1; }

  .analyzing-text.svelte-1bprdzn {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  }

  .ellipsis.svelte-1bprdzn {
    display: inline-block;
    animation: svelte-1bprdzn-ellipsis-blink 1.2s steps(3, end) infinite;
    width: 18px;
    overflow: hidden;
    vertical-align: bottom;
  }

  @keyframes svelte-1bprdzn-ellipsis-blink {
    0%  { width: 0; }
    33% { width: 6px; }
    66% { width: 12px; }
    100% { width: 18px; }
  }

  /* Individual stars animate in one by one */
  .result-stars-row.svelte-1bprdzn {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: var(--gap-lg) 0 var(--gap-md);
  }

  .result-stars-placeholder.svelte-1bprdzn {
    height: 80px;
    margin: var(--gap-lg) 0 var(--gap-md);
  }

  .result-star.svelte-1bprdzn {
    font-size: 48px;
    display: inline-block;
    opacity: 0;
    animation: svelte-1bprdzn-star-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .result-star-filled.svelte-1bprdzn {
    color: var(--star-filled);
    text-shadow: 0 0 16px rgba(255, 230, 0, 0.8), 0 0 40px rgba(255, 230, 0, 0.3);
  }

  .result-star-empty.svelte-1bprdzn {
    color: var(--star-empty);
    opacity: 0;
    animation: svelte-1bprdzn-star-pop-dim 0.3s ease forwards;
  }

  @keyframes svelte-1bprdzn-star-pop {
    from { opacity: 0; transform: scale(0.3) rotate(-20deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
  }

  @keyframes svelte-1bprdzn-star-pop-dim {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 0.3; transform: scale(1); }
  }

  .result-bonus.svelte-1bprdzn {
    text-align: center;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--accent-yellow);
    text-shadow: 0 0 12px rgba(255, 230, 0, 0.6);
    animation: svelte-1bprdzn-fadeIn 0.4s ease both;
    margin-top: 4px;
  }

  .result-bonus-icon.svelte-1bprdzn { margin-right: 4px; }

  .result-feedback.svelte-1bprdzn {
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    border-color: rgba(0, 180, 255, 0.1);
  }

  .result-payment.svelte-1bprdzn {
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-green);
    text-align: center;
    font-family: var(--font-mono);
    text-shadow: var(--glow-green);
  }

  .result-payment-placeholder.svelte-1bprdzn {
    height: 56px;
  }

  /* Breakdown grid */
  .result-breakdown.svelte-1bprdzn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
    margin-top: var(--gap-lg);
  }

  .card-placeholder.svelte-1bprdzn {
    background: rgba(0, 180, 255, 0.02);
    border: 1px dashed rgba(0, 180, 255, 0.08);
    border-radius: var(--radius-md);
    min-height: 80px;
  }

  /* Sequential reveal animation */
  .reveal-card.svelte-1bprdzn {
    animation: svelte-1bprdzn-reveal-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  @keyframes svelte-1bprdzn-reveal-pop {
    from {
      opacity: 0;
      transform: scale(0.88) translateY(8px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  /* Colored glow variants on reveal */
  .reveal-blue.svelte-1bprdzn {
    box-shadow: var(--glow-card), 0 0 16px rgba(0, 180, 255, 0.15);
    border-color: rgba(0, 180, 255, 0.3);
  }

  .reveal-green.svelte-1bprdzn {
    box-shadow: var(--glow-card), 0 0 16px rgba(0, 255, 157, 0.15);
    border-color: rgba(0, 255, 157, 0.3);
  }

  .reveal-yellow.svelte-1bprdzn {
    box-shadow: var(--glow-card), 0 0 16px rgba(255, 230, 0, 0.12);
    border-color: rgba(255, 230, 0, 0.25);
  }

  .reveal-red.svelte-1bprdzn {
    box-shadow: var(--glow-card), 0 0 16px rgba(255, 42, 74, 0.15);
    border-color: rgba(255, 42, 74, 0.3);
  }

  @keyframes svelte-1bprdzn-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Mobile responsiveness for ResultsScreen */
  @media (max-width: 768px) {
    .result-breakdown.svelte-1bprdzn {
      grid-template-columns: 1fr;
      gap: var(--gap-sm);
    }

    .result-star.svelte-1bprdzn {
      font-size: 36px;
    }

    .result-payment.svelte-1bprdzn {
      font-size: 32px;
    }

    .results-heading.svelte-1bprdzn {
      font-size: 10px;
      letter-spacing: 2px;
    }

    .result-feedback.svelte-1bprdzn {
      font-size: 12px;
      padding: 12px;
    }

    .skip-btn.svelte-1bprdzn {
      position: relative;
      top: auto;
      right: auto;
      margin-bottom: var(--gap-sm);
      width: 100%;
    }

    .btn-block {
      min-height: 44px;
      font-size: 14px;
    }

    .card.svelte-1bprdzn {
      padding: 12px;
    }

    .card-subtitle.svelte-1bprdzn {
      font-size: 10px;
    }

    .stat-value.svelte-1bprdzn {
      font-size: 14px;
    }

    .stat-label.svelte-1bprdzn {
      font-size: 11px;
    }

    .result-bonus.svelte-1bprdzn {
      font-size: 11px;
    }
  }

  @media (max-width: 480px) {
    .result-breakdown.svelte-1bprdzn {
      gap: var(--gap-sm);
      margin-top: var(--gap-md);
    }

    .result-stars-row.svelte-1bprdzn {
      gap: 4px;
      margin: var(--gap-md) 0 var(--gap-sm);
    }

    .result-stars-placeholder.svelte-1bprdzn {
      height: 60px;
      margin: var(--gap-md) 0 var(--gap-sm);
    }

    .result-star.svelte-1bprdzn {
      font-size: 28px;
    }

    .result-payment.svelte-1bprdzn {
      font-size: 24px;
    }

    .result-payment-placeholder.svelte-1bprdzn {
      height: 40px;
    }

    .results-heading.svelte-1bprdzn {
      font-size: 9px;
      letter-spacing: 1px;
    }

    .result-feedback.svelte-1bprdzn {
      font-size: 11px;
      line-height: 1.5;
      padding: 10px;
    }

    .card.svelte-1bprdzn {
      padding: 10px;
    }

    .card-placeholder.svelte-1bprdzn {
      min-height: 60px;
    }

    .stat-row.svelte-1bprdzn {
      flex-direction: column;
      gap: 4px;
    }

    .stat-value.svelte-1bprdzn {
      font-size: 16px;
    }

    .result-bonus.svelte-1bprdzn {
      font-size: 10px;
      letter-spacing: 2px;
    }

    .flex-col {
      gap: var(--gap-sm) !important;
    }

    .mt-lg {
      margin-top: var(--gap-md) !important;
    }
  }

  /* Tablet breakpoint */
  @media (max-width: 768px) {
    .grid-3.svelte-zlpl9p {
      grid-template-columns: 1fr;
      gap: var(--gap-md);
    }

    .card.svelte-zlpl9p {
      width: 100%;
      min-height: auto;
      padding: var(--gap-md);
    }

    .card-title.svelte-zlpl9p {
      font-size: 16px;
    }

    .card-body.svelte-zlpl9p {
      font-size: 13px;
    }

    .badge.svelte-zlpl9p {
      font-size: 11px;
      padding: 4px 8px;
    }
  }

  /* Mobile breakpoint */
  @media (max-width: 480px) {
    h2.svelte-zlpl9p {
      font-size: 20px !important;
    }

    .grid-3.svelte-zlpl9p {
      grid-template-columns: 1fr;
      gap: var(--gap-sm);
    }

    .card.svelte-zlpl9p {
      width: 100%;
      padding: var(--gap-sm);
      border-radius: 8px;
    }

    .card-header.svelte-zlpl9p {
      margin-bottom: var(--gap-sm);
    }

    .card-title.svelte-zlpl9p {
      font-size: 15px;
    }

    .card-body.svelte-zlpl9p {
      font-size: 12px;
      line-height: 1.4;
    }

    .badge.svelte-zlpl9p {
      font-size: 10px;
      padding: 3px 6px;
    }

    .flex-row.svelte-zlpl9p {
      flex-wrap: wrap;
      gap: var(--gap-xs);
    }

    /* Touch-friendly cards - minimum 44px tap target */
    .card-clickable.svelte-zlpl9p {
      min-height: 44px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    .card-clickable.svelte-zlpl9p:active {
      transform: scale(0.98);
    }

    /* Effects text sizing */
    .text-green.svelte-zlpl9p {
      font-size: 11px;
      padding: 2px 0;
    }
  }

  /* Mobile responsiveness for AgentsScreen */
  @media (max-width: 768px) {
    .grid-2 {
      grid-template-columns: 1fr !important;
      gap: var(--gap-md);
    }

    .card.svelte-hln473 {
      padding: 14px;
    }

    .card-header.svelte-hln473 {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }

    .card-title.svelte-hln473 {
      font-size: 16px;
    }

    h2.svelte-hln473 {
      font-size: 20px !important;
    }

    .flex-between {
      flex-direction: column;
      gap: var(--gap-sm);
      align-items: flex-start;
    }

    .btn-sm {
      min-height: 44px;
      font-size: 14px;
      padding: 10px 16px;
    }
  }

  @media (max-width: 480px) {
    .grid-2 {
      gap: var(--gap-sm);
    }

    .card.svelte-hln473 {
      padding: 12px;
    }

    .card-title.svelte-hln473 {
      font-size: 15px;
    }

    .card-subtitle.svelte-hln473 {
      font-size: 12px;
    }

    h2.svelte-hln473 {
      font-size: 18px !important;
    }

    h3.svelte-hln473 {
      font-size: 12px !important;
    }

    .badge {
      font-size: 10px;
      padding: 3px 8px;
    }

    .btn {
      min-height: 44px;
      padding: 12px 16px;
      font-size: 14px;
    }

    .btn-sm {
      width: 100%;
      margin-top: 12px;
    }

    .text-green.svelte-hln473 {
      font-size: 11px !important;
    }
  }

  /* Mobile Responsive Styles */
  @media (max-width: 768px) {
    .grid-2.svelte-1mrgz63 {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .card.svelte-1mrgz63 {
      padding: 12px;
    }

    .card-header.svelte-1mrgz63 {
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
    }

    .card-title.svelte-1mrgz63 {
      font-size: 13px;
    }

    .stat-row.svelte-1mrgz63 {
      padding: 4px 0;
    }

    .stat-label.svelte-1mrgz63 {
      font-size: 10px;
    }

    .stat-value.svelte-1mrgz63 {
      font-size: 11px;
    }

    .model-select-btn.svelte-1mrgz63 {
      min-height: 44px;
      font-size: 12px;
      width: 100%;
      margin-top: 12px;
    }

    h2.svelte-1mrgz63 {
      font-size: 20px !important;
    }

    h3.svelte-1mrgz63 {
      font-size: 14px !important;
    }

    .badge-stage.svelte-1mrgz63 {
      font-size: 10px;
      padding: 4px 8px;
    }
  }

  @media (max-width: 480px) {
    .grid-2.svelte-1mrgz63 {
      gap: 8px;
    }

    .card.svelte-1mrgz63 {
      padding: 10px;
    }

    .card-title.svelte-1mrgz63 {
      font-size: 12px;
    }

    .card-subtitle.svelte-1mrgz63 {
      font-size: 10px;
    }

    .stat-bar.svelte-1mrgz63 {
      height: 3px;
    }

    .model-select-btn.svelte-1mrgz63 {
      min-height: 48px;
      font-size: 13px;
    }

    h2.svelte-1mrgz63 {
      font-size: 18px !important;
    }

    h3.svelte-1mrgz63 {
      font-size: 13px !important;
    }

    .badge.svelte-1mrgz63 {
      font-size: 9px;
      padding: 3px 6px;
    }

    /* Stack stat rows for very small screens */
    .stat-row.svelte-1mrgz63 {
      flex-wrap: wrap;
      gap: 4px;
    }

    .stat-row.svelte-1mrgz63 > div[style*="flex:1"]:where(.svelte-1mrgz63) {
      width: 100%;
      margin: 4px 0 !important;
    }
  }

  /* Mobile Responsive Styles */
  @media (max-width: 768px) {
    /* Stack header */
    .flex-between.mb-md {
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }

    /* Change grid-2 to single column */
    .grid-2 {
      grid-template-columns: 1fr !important;
      gap: 12px;
    }

    /* Reduce title size */
    h2 {
      font-size: 18px !important;
    }

    /* Section headers - smaller */
    h3.text-secondary {
      font-size: 12px !important;
    }

    /* Cards - full width and smaller padding */
    .card {
      padding: 12px;
    }

    /* Card titles - allow wrapping */
    .card-title {
      font-size: 13px;
      white-space: normal !important;
      overflow: visible !important;
    }

    /* Stat rows - smaller text */
    .stat-row {
      font-size: 12px;
    }

    .stat-label {
      font-size: 11px;
    }

    .stat-value {
      font-size: 12px;
    }

    /* Badges - more compact */
    .badge {
      font-size: 10px;
      padding: 2px 6px;
    }

    /* Leaderboard row adjustments */
    .stat-row[style*="padding:8px 4px"] {
      flex-direction: column;
      gap: 4px;
      padding: 8px !important;
    }

    .stat-row .flex-row {
      flex-wrap: wrap;
      gap: 8px;
    }

    /* Stars and stats in leaderboard */
    .stars {
      font-size: 11px !important;
    }

    .text-mono {
      font-size: 11px !important;
    }

    /* Empty state message */
    .card.text-muted.text-center {
      grid-column: span 1 !important;
      font-size: 12px;
      padding: 16px;
    }

    /* Scene containers - smaller height */
    .scene-container {
      height: 200px;
    }

    /* Progress text smaller */
    .text-muted[style*="font-size:11px"] {
      font-size: 10px !important;
    }
  }

  @media (max-width: 480px) {
    /* Even smaller screens */
    h2 {
      font-size: 16px !important;
    }

    h3.text-secondary {
      font-size: 11px !important;
      letter-spacing: 1px;
    }

    /* Cards - minimal padding */
    .card {
      padding: 10px;
    }

    /* Card titles - smaller */
    .card span[style*="font-size:14px"] {
      font-size: 12px !important;
    }

    /* Level badges - smaller */
    .badge {
      font-size: 9px;
      padding: 2px 4px;
    }

    /* Progress bars - thinner */
    .stat-bar {
      height: 4px;
    }

    /* Progress text - smaller */
    .text-muted[style*="font-size:11px"] {
      font-size: 9px !important;
    }

    /* Leaderboard - hide some columns */
    .stat-row .flex-row[style*="gap: var(--gap-lg)"] {
      gap: 8px !important;
    }

    /* Hide stars on very small screens */
    .stat-row .stars {
      display: none;
    }

    /* Scene containers - even smaller */
    .scene-container {
      height: 150px;
    }

    /* Client relationships - more compact */
    .card-subtitle {
      font-size: 10px;
    }

    /* Quirk text - smaller */
    .card .text-muted[style*="font-size:11px"] {
      font-size: 9px !important;
    }
  }

  .ref-header.svelte-8gosw4 {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: var(--gap-lg);
    padding: 16px;
    background: linear-gradient(135deg, rgba(0,180,255,0.04) 0%, transparent 60%);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-cyan);
  }

  .ref-title.svelte-8gosw4 {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--accent-cyan);
    letter-spacing: 1px;
  }

  .ref-subtitle.svelte-8gosw4 {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 4px;
  }

  .ref-status-strip.svelte-8gosw4 {
    display: flex;
    margin-bottom: var(--gap-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .ref-status-item.svelte-8gosw4 {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--border);
  }

  .ref-status-item.svelte-8gosw4:last-child { border-right: none; }

  .ref-status-label.svelte-8gosw4 {
    font-size: 9px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .ref-status-value.svelte-8gosw4 {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-top: 2px;
  }

  .ref-bug-summary.svelte-8gosw4 {
    margin-bottom: var(--gap-md);
    max-height: 160px;
    overflow-y: auto;
  }

  .ref-bug-line.svelte-8gosw4 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 11px;
    font-family: var(--font-mono);
    border-bottom: 1px solid rgba(30, 45, 74, 0.3);
  }

  .ref-bug-line.svelte-8gosw4:last-child { border-bottom: none; }
  .ref-bug-sev.svelte-8gosw4 { font-size: 10px; flex-shrink: 0; }
  .ref-bug-cat.svelte-8gosw4 { color: var(--text-muted); font-size: 10px; flex-shrink: 0; }
  .ref-bug-critical.svelte-8gosw4 { color: var(--accent-red); }
  .ref-bug-major.svelte-8gosw4 { color: var(--accent-orange); }
  .ref-bug-minor.svelte-8gosw4 { color: var(--accent-yellow); }

  .ref-choices.svelte-8gosw4 {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    margin-top: var(--gap-md);
  }

  .ref-choice-btn.svelte-8gosw4 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    font-family: var(--font-main);
    width: 100%;
  }

  .ref-choice-btn.svelte-8gosw4:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--accent-blue);
  }

  .ref-choice-btn.svelte-8gosw4:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .ref-choice-ship.svelte-8gosw4 {
    border-color: rgba(255, 124, 0, 0.3);
  }

  .ref-choice-ship.svelte-8gosw4:hover:not(:disabled) {
    border-color: var(--accent-orange);
    box-shadow: -4px 0 0 var(--accent-orange);
  }

  .ref-choice-icon.svelte-8gosw4 {
    font-size: 24px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
  }

  .ref-choice-content.svelte-8gosw4 { flex: 1; }

  .ref-choice-title.svelte-8gosw4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
  }

  .ref-choice-desc.svelte-8gosw4 {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
  }

  .ref-choice-cost.svelte-8gosw4 {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 4px;
    letter-spacing: 0.3px;
  }

  /* Mobile responsiveness for RefinementScreen */
  @media (max-width: 768px) {
    .ref-header.svelte-8gosw4 {
      flex-direction: column;
      gap: 12px;
      padding: 12px;
    }

    .ref-title.svelte-8gosw4 {
      font-size: 18px;
    }

    .ref-subtitle.svelte-8gosw4 {
      font-size: 11px;
    }

    .ref-status-strip.svelte-8gosw4 {
      flex-wrap: wrap;
    }

    .ref-status-item.svelte-8gosw4 {
      flex: 1 1 50%;
      padding: 8px 10px;
      border-right: none;
      border-bottom: 1px solid var(--border);
    }

    .ref-status-item.svelte-8gosw4:nth-child(1),
    .ref-status-item.svelte-8gosw4:nth-child(2) {
      border-bottom: 1px solid var(--border);
    }

    .ref-status-value.svelte-8gosw4 {
      font-size: 16px;
    }

    .ref-choice-btn.svelte-8gosw4 {
      padding: 12px 14px;
      min-height: 44px;
    }

    .ref-choice-icon.svelte-8gosw4 {
      font-size: 20px;
      width: 32px;
    }

    .ref-choice-title.svelte-8gosw4 {
      font-size: 13px;
    }

    .ref-choice-desc.svelte-8gosw4 {
      font-size: 11px;
    }

    .ref-bug-summary.svelte-8gosw4 {
      max-height: 200px;
    }

    .ref-bug-line.svelte-8gosw4 {
      font-size: 10px;
      flex-wrap: wrap;
      gap: 4px;
    }
  }

  @media (max-width: 480px) {
    .ref-header.svelte-8gosw4 {
      padding: 10px;
    }

    .ref-header.svelte-8gosw4 > div:where(.svelte-8gosw4):first-child {
      font-size: 24px !important;
    }

    .ref-title.svelte-8gosw4 {
      font-size: 16px;
      letter-spacing: 0.5px;
    }

    .ref-status-strip.svelte-8gosw4 {
      border-radius: var(--radius-md);
    }

    .ref-status-item.svelte-8gosw4 {
      flex: 1 1 50%;
      padding: 6px 8px;
    }

    .ref-status-label.svelte-8gosw4 {
      font-size: 8px;
    }

    .ref-status-value.svelte-8gosw4 {
      font-size: 14px;
    }

    .ref-choice-btn.svelte-8gosw4 {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      padding: 12px;
      min-height: 44px;
    }

    .ref-choice-icon.svelte-8gosw4 {
      font-size: 18px;
      width: auto;
    }

    .ref-choice-title.svelte-8gosw4 {
      font-size: 12px;
    }

    .ref-choice-desc.svelte-8gosw4 {
      font-size: 10px;
      line-height: 1.3;
    }

    .ref-choice-cost.svelte-8gosw4 {
      font-size: 9px;
    }

    .ref-bug-line.svelte-8gosw4 {
      padding: 6px 0;
    }

    .ref-bug-cat.svelte-8gosw4 {
      display: inline-block;
      width: 100%;
      margin-top: 2px;
    }
  }

  /* Tablet breakpoint */
  @media (max-width: 768px) {
    .grid-3.svelte-1liu7qw {
      grid-template-columns: 1fr;
      gap: var(--gap-md);
    }

    .grid-2.svelte-1liu7qw {
      grid-template-columns: 1fr;
      gap: var(--gap-md);
    }

    .card.svelte-1liu7qw {
      width: 100%;
      padding: var(--gap-md);
    }

    .text-display.svelte-1liu7qw {
      font-size: 32px !important;
    }

    .btn.svelte-1liu7qw {
      min-height: 44px;
      font-size: 14px;
    }

    .btn-lg.svelte-1liu7qw {
      min-height: 48px;
      min-width: 160px;
    }

    .flex-row.svelte-1liu7qw {
      flex-direction: column;
      gap: var(--gap-sm);
    }

    .flex-row.svelte-1liu7qw .btn:where(.svelte-1liu7qw) {
      width: 100%;
    }
  }

  /* Mobile breakpoint */
  @media (max-width: 480px) {
    .animate-in.svelte-1liu7qw {
      padding: var(--gap-sm);
      padding-top: var(--gap-md) !important;
    }

    .grid-3.svelte-1liu7qw,
    .grid-2.svelte-1liu7qw {
      grid-template-columns: 1fr;
      gap: var(--gap-sm);
    }

    .card.svelte-1liu7qw {
      width: 100%;
      padding: var(--gap-sm);
      border-radius: 8px;
    }

    .text-display.svelte-1liu7qw {
      font-size: 28px !important;
    }

    /* Stage title */
    div[style*="font-size:22px"].svelte-1liu7qw {
      font-size: 18px !important;
    }

    /* Emoji sizing */
    div[style*="font-size:64px"].svelte-1liu7qw {
      font-size: 48px !important;
    }

    /* Touch-friendly buttons - 44px+ height */
    .btn.svelte-1liu7qw {
      min-height: 44px;
      font-size: 14px;
      padding: 12px 16px;
      width: 100%;
    }

    .btn-lg.svelte-1liu7qw {
      min-height: 48px;
      font-size: 15px;
    }

    .btn-sm.svelte-1liu7qw {
      min-height: 40px;
      font-size: 13px;
    }

    /* Card header adjustments */
    .card-header.svelte-1liu7qw {
      flex-direction: column;
      gap: var(--gap-xs);
      margin-bottom: var(--gap-sm);
    }

    .card-title.svelte-1liu7qw {
      font-size: 14px !important;
    }

    /* Stat rows */
    .stat-row.svelte-1liu7qw {
      font-size: 12px;
    }

    .stat-label.svelte-1liu7qw {
      font-size: 10px;
    }

    /* Text sizing for readability */
    div[style*="font-size:12px"].svelte-1liu7qw {
      font-size: 11px !important;
    }

    div[style*="font-size:13px"].svelte-1liu7qw {
      font-size: 12px !important;
    }

    /* Model picker cards */
    .card-clickable.svelte-1liu7qw {
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    .card-clickable.svelte-1liu7qw:active {
      transform: scale(0.98);
    }

    /* Center align buttons in flex rows */
    .flex-row.svelte-1liu7qw {
      flex-direction: column;
      width: 100%;
    }

    /* Reduce gaps */
    .mb-lg.svelte-1liu7qw {
      margin-bottom: var(--gap-md);
    }

    /* Unlock cards text */
    .card.svelte-1liu7qw div[style*="font-size:10px"]:where(.svelte-1liu7qw) {
      font-size: 9px !important;
    }

    .card.svelte-1liu7qw div[style*="font-size:12px"]:where(.svelte-1liu7qw) {
      font-size: 11px !important;
    }
  }

  .game-over-actions.svelte-8r10y9 {
    display: flex;
    gap: var(--gap-md);
    margin-top: var(--gap-lg);
    flex-wrap: wrap;
    justify-content: center;
  }

  .game-over-btn-prestige.svelte-8r10y9 {
    min-width: 220px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: none;
  }

  .game-over-btn-title.svelte-8r10y9 {
    min-width: 200px;
  }

  .game-over-card.svelte-8r10y9 {
    min-width: 420px;
    text-align: left;
    margin-top: var(--gap-lg);
  }

  .game-over-card-header.svelte-8r10y9 {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--gap-md);
  }

  /* Tablet breakpoint (max-width: 768px) */
  @media (max-width: 768px) {
    .game-over-actions.svelte-8r10y9 {
      flex-direction: column;
      align-items: center;
      gap: var(--gap-sm);
      width: 100%;
      max-width: 400px;
      padding: 0 var(--gap-md);
    }

    .game-over-btn-prestige.svelte-8r10y9,
    .game-over-btn-title.svelte-8r10y9 {
      width: 100%;
      min-width: unset;
      min-height: 48px;
    }

    .game-over-card.svelte-8r10y9 {
      min-width: unset;
      width: 100%;
      max-width: 500px;
      margin-top: var(--gap-md);
    }
  }

  /* Phone breakpoint (max-width: 480px) */
  @media (max-width: 480px) {
    .game-over-actions.svelte-8r10y9 {
      margin-top: var(--gap-md);
      gap: var(--gap-sm);
    }

    .game-over-btn-prestige.svelte-8r10y9,
    .game-over-btn-title.svelte-8r10y9 {
      min-height: 52px;
      font-size: 14px;
    }

    .game-over-btn-prestige.svelte-8r10y9 span:where(.svelte-8r10y9) {
      display: block;
      margin-top: 2px;
      margin-left: 0 !important;
    }

    .game-over-card.svelte-8r10y9 {
      min-width: unset;
      width: calc(100% - var(--gap-md) * 2);
      max-width: 100%;
      margin: var(--gap-md);
      padding: var(--gap-md);
    }

    .game-over-card-header.svelte-8r10y9 {
      font-size: 10px;
      margin-bottom: var(--gap-sm);
    }
  }

  .category-section.svelte-1v42zad {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    background: var(--bg-card);
  }

  .category-header.svelte-1v42zad {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .category-label.svelte-1v42zad {
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
  }

  .category-count.svelte-1v42zad {
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
  }

  .achievements-grid.svelte-1v42zad {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
  }

  .achievement-card.svelte-1v42zad {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .achievement-card.unlocked.svelte-1v42zad {
    border-color: color-mix(in srgb, var(--cat-color) 30%, transparent);
    background: color-mix(in srgb, var(--cat-color) 5%, var(--bg-secondary));
  }

  .achievement-card.locked.svelte-1v42zad {
    opacity: 0.5;
  }

  .ach-icon.svelte-1v42zad {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .ach-icon.greyed.svelte-1v42zad {
    filter: grayscale(1);
    opacity: 0.4;
  }

  .ach-body.svelte-1v42zad {
    flex: 1;
    min-width: 0;
  }

  .ach-name.svelte-1v42zad {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
  }

  .ach-desc.svelte-1v42zad {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
  }

  .ach-date.svelte-1v42zad {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 3px;
    opacity: 0.7;
  }

  .ach-check.svelte-1v42zad {
    font-size: 14px;
    color: var(--accent-green);
    font-weight: 700;
    flex-shrink: 0;
  }

  .progress-ring.svelte-1v42zad {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .progress-ring-fill.svelte-1v42zad {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .progress-ring-text.svelte-1v42zad {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-green);
  }

  /* Mobile Responsive Styles */
  @media (max-width: 768px) {
    /* Stack header with progress ring */
    .flex-between.mb-md {
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }

    /* Reduce title size */
    h1 {
      font-size: 18px !important;
    }

    p.text-secondary {
      font-size: 12px !important;
    }

    /* Category sections - smaller padding */
    .category-section.svelte-1v42zad {
      padding: 12px;
    }

    /* Category label - smaller */
    .category-label.svelte-1v42zad {
      font-size: 10px;
      letter-spacing: 1px;
    }

    .category-count.svelte-1v42zad {
      font-size: 10px;
    }

    /* Achievements grid - single column */
    .achievements-grid.svelte-1v42zad {
      grid-template-columns: 1fr !important;
      gap: 8px;
    }

    /* Achievement cards - smaller padding */
    .achievement-card.svelte-1v42zad {
      padding: 8px 10px;
      gap: 8px;
    }

    /* Icon - slightly smaller */
    .ach-icon.svelte-1v42zad {
      font-size: 20px;
    }

    /* Name - smaller but still readable */
    .ach-name.svelte-1v42zad {
      font-size: 12px;
    }

    /* Description - readable */
    .ach-desc.svelte-1v42zad {
      font-size: 11px;
    }

    /* Date - smaller */
    .ach-date.svelte-1v42zad {
      font-size: 9px;
    }

    /* Progress bar - thinner */
    .stat-bar {
      height: 6px;
    }

    /* Progress ring - smaller */
    .progress-ring.svelte-1v42zad {
      width: 48px;
      height: 48px;
    }

    .progress-ring-text.svelte-1v42zad {
      font-size: 11px;
    }
  }

  @media (max-width: 480px) {
    /* Even smaller screens */
    h1 {
      font-size: 16px !important;
    }

    p.text-secondary {
      font-size: 11px !important;
    }

    /* Category sections - minimal padding */
    .category-section.svelte-1v42zad {
      padding: 10px;
    }

    /* Achievement cards - minimal padding */
    .achievement-card.svelte-1v42zad {
      padding: 6px 8px;
      gap: 6px;
    }

    /* Icon - smaller */
    .ach-icon.svelte-1v42zad {
      font-size: 18px;
    }

    /* Name - readable minimum */
    .ach-name.svelte-1v42zad {
      font-size: 12px;
    }

    /* Description - still readable */
    .ach-desc.svelte-1v42zad {
      font-size: 11px;
      line-height: 1.3;
    }

    /* Hide date on very small screens for locked achievements */
    .achievement-card.locked.svelte-1v42zad .ach-date:where(.svelte-1v42zad) {
      display: none;
    }

    /* Progress bar - even thinner */
    .stat-bar {
      height: 4px;
    }

    /* Progress ring - even smaller */
    .progress-ring.svelte-1v42zad {
      width: 40px;
      height: 40px;
      border-width: 1px;
    }

    .progress-ring-text.svelte-1v42zad {
      font-size: 10px;
    }

    /* Category label - minimal */
    .category-label.svelte-1v42zad {
      font-size: 9px;
    }

    .category-count.svelte-1v42zad {
      font-size: 9px;
    }
  }

  .project-card.svelte-1jf0v2c {
    border-color: rgba(0, 180, 255, 0.12);
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.04) 0%, var(--bg-card) 60%);
  }

  .project-type-card.svelte-1jf0v2c {
    transition: border-color 0.2s ease;
  }

  .project-type-card.owned.svelte-1jf0v2c {
    border-color: rgba(0, 180, 100, 0.25);
    background: linear-gradient(135deg, rgba(0, 180, 100, 0.04) 0%, var(--bg-card) 60%);
    opacity: 0.85;
  }

  .project-type-card.locked.svelte-1jf0v2c {
    opacity: 0.6;
  }

  .effect-badge.svelte-1jf0v2c {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--accent-yellow);
    background: rgba(255, 200, 50, 0.08);
    border: 1px solid rgba(255, 200, 50, 0.2);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    margin-right: 6px;
    margin-bottom: 4px;
  }

  .effect-upcoming.svelte-1jf0v2c {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
    opacity: 0.7;
  }

  /* Mobile Responsive Styles */
  @media (max-width: 768px) {
    /* Stack header */
    .flex-between.mb-md {
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }

    /* Passive income card - full width */
    .card[style*="min-width:160px"] {
      min-width: auto !important;
      width: 100%;
      text-align: left !important;
    }

    /* Reduce title size */
    h1 {
      font-size: 18px !important;
    }

    p.text-secondary {
      font-size: 12px !important;
    }

    /* Project grid - single column */
    .grid-2 {
      grid-template-columns: 1fr !important;
      gap: 12px;
    }

    /* Cards - smaller padding */
    .card {
      padding: 12px;
    }

    /* Project card adjustments */
    .project-card.svelte-1jf0v2c {
      padding: 12px;
    }

    /* Project type card - full width */
    .project-type-card.svelte-1jf0v2c {
      width: 100%;
    }

    /* Flex between - allow wrapping */
    .flex-between {
      flex-wrap: wrap;
      gap: 8px;
    }

    /* Project title - smaller */
    .card span[style*="font-size:15px"] {
      font-size: 14px !important;
    }

    .card span[style*="font-size:22px"] {
      font-size: 20px !important;
    }

    /* Income display - smaller */
    .card span[style*="font-size:18px"] {
      font-size: 16px !important;
    }

    .card span[style*="font-size:22px"][style*="font-weight:700"] {
      font-size: 18px !important;
    }

    /* Level bar text - smaller */
    .flex-between[style*="font-size:11px"] {
      font-size: 10px !important;
    }

    /* Effect badges - wrap better */
    .effect-badge.svelte-1jf0v2c {
      font-size: 10px;
      padding: 2px 6px;
      margin-bottom: 3px;
    }

    .effect-upcoming.svelte-1jf0v2c {
      font-size: 10px;
    }

    /* Cost text - smaller */
    .card div[style*="font-size:11px"][style*="color:var(--text-muted)"] {
      font-size: 10px !important;
    }

    /* Buttons - touch friendly */
    .btn-sm {
      min-height: 40px;
      font-size: 13px;
      padding: 8px 12px;
    }

    /* Warning card - smaller text */
    .card[style*="border-color:rgba(255,180,50,0.3)"] div {
      font-size: 12px !important;
    }

    /* Empty state - smaller */
    .card.text-center[style*="padding:24px"] {
      padding: 16px !important;
    }

    .card.text-center p {
      font-size: 12px !important;
    }
  }

  @media (max-width: 480px) {
    /* Even smaller screens */
    h1 {
      font-size: 16px !important;
    }

    p.text-secondary {
      font-size: 11px !important;
    }

    /* Cards - minimal padding */
    .card {
      padding: 10px;
    }

    .project-card.svelte-1jf0v2c {
      padding: 10px;
    }

    /* Project header - more compact */
    .flex-between.mb-sm {
      flex-direction: column;
      gap: 8px;
    }

    /* Project title - smaller */
    .card span[style*="font-size:15px"] {
      font-size: 13px !important;
    }

    .card span[style*="font-size:22px"] {
      font-size: 18px !important;
    }

    /* Income display - smaller */
    .card span[style*="font-size:18px"] {
      font-size: 14px !important;
    }

    .card span[style*="font-size:22px"][style*="font-weight:700"] {
      font-size: 16px !important;
    }

    /* Passive income - hide label on very small */
    .card-subtitle.mb-sm {
      font-size: 10px;
    }

    /* Progress bar - thinner */
    .stat-bar {
      height: 4px;
    }

    /* Effect badges - more compact */
    .effect-badge.svelte-1jf0v2c {
      font-size: 9px;
      padding: 2px 4px;
    }

    .effect-upcoming.svelte-1jf0v2c {
      font-size: 9px;
    }

    /* Cost text - minimal */
    .card div[style*="font-size:11px"][style*="color:var(--text-muted)"] {
      font-size: 9px !important;
    }

    /* Buttons - full width on very small screens */
    .flex-between[style*="align-items:center"] .btn-sm {
      min-height: 44px;
      font-size: 12px;
      padding: 8px;
    }

    /* Level up buttons - stack */
    .flex-between[style*="align-items:center"] {
      flex-direction: column;
      gap: 10px;
      align-items: stretch !important;
    }

    /* Active/owned badge - smaller */
    .badge[style*="ACTIVE"] {
      font-size: 9px !important;
    }

    /* Flavor text - smaller */
    .card p[style*="font-style:italic"] {
      font-size: 11px !important;
    }

    /* Section headers */
    .card-subtitle[style*="letter-spacing:2px"] {
      font-size: 10px !important;
      letter-spacing: 1px !important;
    }

    /* Max level text - smaller */
    .card div[style*="MAX LEVEL REACHED"] {
      font-size: 10px !important;
    }

    /* Warning and limit cards */
    .card[style*="border-color:rgba(255,180,50,0.3)"] div,
            .card[style*="border-color:rgba(255,100,100,0.2)"] div {
      font-size: 11px !important;
    }
  }

  .prestige-screen.svelte-gzpp58 {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--gap-lg);
  }

  .prestige-layout.svelte-gzpp58 {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--gap-lg);
    align-items: start;
  }

  .prestige-actions.svelte-gzpp58 {
    display: flex;
    gap: var(--gap-md);
    margin-top: var(--gap-lg);
    justify-content: center;
    flex-wrap: wrap;
  }

  .prestige-btn-primary.svelte-gzpp58 {
    min-width: 240px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: none;
  }

  .prestige-btn-skip.svelte-gzpp58 {
    min-width: 160px;
  }

  .perks-grid.svelte-gzpp58 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--gap-md);
  }

  /* Tablet breakpoint (max-width: 768px) */
  @media (max-width: 768px) {
    .prestige-screen.svelte-gzpp58 {
      padding: var(--gap-md);
    }

    .prestige-layout.svelte-gzpp58 {
      grid-template-columns: 1fr;
      gap: var(--gap-md);
    }

    .prestige-actions.svelte-gzpp58 {
      flex-direction: column;
      align-items: center;
      gap: var(--gap-sm);
      width: 100%;
      max-width: 400px;
      margin-left: auto;
      margin-right: auto;
      padding: 0 var(--gap-md);
    }

    .prestige-btn-primary.svelte-gzpp58,
    .prestige-btn-skip.svelte-gzpp58 {
      width: 100%;
      min-width: unset;
      min-height: 48px;
    }

    .perks-grid.svelte-gzpp58 {
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: var(--gap-sm);
    }

    .perk-card.svelte-gzpp58 {
      padding: var(--gap-sm);
    }

    .perk-name.svelte-gzpp58 {
      font-size: 12px;
    }

    .perk-desc.svelte-gzpp58 {
      font-size: 11px;
    }
  }

  /* Phone breakpoint (max-width: 480px) */
  @media (max-width: 480px) {
    .prestige-screen.svelte-gzpp58 {
      padding: var(--gap-sm);
    }

    .prestige-layout.svelte-gzpp58 {
      gap: var(--gap-sm);
    }

    .prestige-actions.svelte-gzpp58 {
      margin-top: var(--gap-md);
      gap: var(--gap-sm);
    }

    .prestige-btn-primary.svelte-gzpp58,
    .prestige-btn-skip.svelte-gzpp58 {
      min-height: 52px;
      font-size: 13px;
    }

    .perks-grid.svelte-gzpp58 {
      grid-template-columns: 1fr;
      gap: var(--gap-sm);
    }

    .perk-card.svelte-gzpp58 {
      padding: var(--gap-sm);
    }

    .perk-header.svelte-gzpp58 {
      flex-direction: column;
      gap: 4px;
    }

    .perk-name.svelte-gzpp58 {
      font-size: 12px;
    }

    .perk-cost.svelte-gzpp58 {
      font-size: 10px;
      align-self: flex-start;
    }

    .perk-desc.svelte-gzpp58 {
      font-size: 11px;
    }

    .perk-flavor.svelte-gzpp58 {
      font-size: 9px;
    }
  }

  .perk-card.svelte-gzpp58 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    width: 100%;
  }

  .perk-card.svelte-gzpp58:hover:not(:disabled):not(.perk-unaffordable) {
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(124, 58, 237, 0.07);
    transform: translateY(-1px);
  }

  .perk-card.perk-selected.svelte-gzpp58 {
    border-color: rgba(124, 58, 237, 0.8);
    background: rgba(124, 58, 237, 0.12);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
  }

  .perk-card.perk-unlocked.svelte-gzpp58 {
    border-color: rgba(0, 200, 100, 0.4);
    background: rgba(0, 200, 100, 0.05);
    cursor: default;
  }

  .perk-card.perk-unaffordable.svelte-gzpp58 {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .perk-header.svelte-gzpp58 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 8px;
  }

  .perk-name.svelte-gzpp58 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
  }

  .perk-cost.svelte-gzpp58 {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--accent-purple);
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(124, 58, 237, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
  }

  .perk-cost-locked.svelte-gzpp58 {
    color: var(--accent-green);
    background: rgba(0, 200, 100, 0.15);
  }

  .perk-desc.svelte-gzpp58 {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
  }

  .perk-flavor.svelte-gzpp58 {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
  }

  .header-brand.svelte-1k837xk {
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-blue);
    font-family: var(--font-display);
    letter-spacing: 2px;
    text-shadow: 0 0 16px rgba(0, 180, 255, 0.5);
  }

  .header-stats.svelte-1k837xk {
    display: flex;
    align-items: center;
  }

  .header-stat.svelte-1k837xk {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0 14px;
  }

  .header-stat-label.svelte-1k837xk {
    font-size: 9px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
  }

  .header-stat-value.svelte-1k837xk {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
  }

  .header-stat-divider.svelte-1k837xk {
    width: 1px;
    height: 26px;
    background: var(--border);
    opacity: 0.4;
    flex-shrink: 0;
  }

  .news-bar.svelte-1k837xk {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 4px 12px;
    font-size: 11px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    grid-area: newsbar;
    display: flex;
    align-items: center;
  }

  .news-bar.svelte-1k837xk .news-label:where(.svelte-1k837xk) {
    color: var(--accent-yellow);
    margin-right: 8px;
    font-weight: 600;
  }

  .news-label.svelte-1k837xk {
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
    padding: 0 12px;
    flex-shrink: 0;
    z-index: 3;
    position: relative;
  }

  .active-contract-card.svelte-1k837xk {
    border-color: rgba(0, 180, 255, 0.15);
    background: rgba(0, 180, 255, 0.03);
  }

  .sidebar-section-label.svelte-1k837xk {
    font-size: 9px;
    color: var(--text-muted);
    padding: 0 4px;
    font-family: var(--font-mono);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
  }


  .rnd-cost.svelte-1k837xk {
    font-size: 9px;
    color: var(--accent-yellow);
    opacity: 0.8;
    font-family: var(--font-mono);
    margin-left: 2px;
  }

  @keyframes svelte-1k837xk-day-flash-anim {
    0%   { transform: scale(1);    text-shadow: none; }
    30%  { transform: scale(1.35); text-shadow: 0 0 12px rgba(0, 180, 255, 0.9), 0 0 24px rgba(0, 180, 255, 0.5); }
    100% { transform: scale(1);    text-shadow: none; }
  }

  .day-flash {
    animation: svelte-1k837xk-day-flash-anim 0.6s ease forwards;
    color: var(--accent-cyan) !important;
  }
