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

body {
  background: #0a0a0a;
  color: #c8c8c8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.mode-btn {
  background: #1a1a1a;
  color: #888;
  border: 1px solid #333;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  text-transform: uppercase;
}

.mode-btn:hover {
  border-color: #d4a056;
  color: #d4a056;
}

.mode-btn.active {
  background: #d4a056;
  color: #0a0a0a;
  border-color: #d4a056;
}

.sim-container {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.canvas-wrap {
  position: relative;
  flex-shrink: 0;
}

#simCanvas {
  display: block;
  border-radius: 6px;
  border: 1px solid #1a1a1a;
}

.target-display {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.target-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
}

.target-label {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metrics-panel {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  padding: 20px;
  min-width: 240px;
  max-width: 280px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.metric {
  margin-bottom: 18px;
}

.metric-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 22px;
  color: #d4a056;
  font-weight: 300;
}

.metric-value .unit {
  font-size: 12px;
  color: #666;
}

#sparklineCanvas {
  display: block;
  margin-top: 4px;
  border-radius: 3px;
  background: #0d0d0d;
}

.comparison-bars {
  margin-top: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.bar-label {
  font-size: 9px;
  color: #555;
  width: 36px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.bar-num {
  font-size: 9px;
  color: #555;
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

.info-panel {
  max-width: 900px;
  width: 100%;
  margin-top: 28px;
}

.info-toggle {
  background: none;
  border: 1px solid #222;
  color: #666;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
}

.info-toggle:hover {
  border-color: #d4a056;
  color: #d4a056;
}

.info-toggle .arrow {
  display: inline-block;
  transition: transform 0.2s;
  margin-right: 8px;
}

.info-toggle.open .arrow {
  transform: rotate(90deg);
}

.info-content {
  display: none;
  padding: 20px;
  border: 1px solid #1a1a1a;
  border-top: none;
  border-radius: 0 0 4px 4px;
  line-height: 1.65;
  font-size: 14px;
  color: #999;
}

.info-content.open {
  display: block;
}

.info-content h2 {
  color: #d4a056;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}

.info-content h3 {
  color: #c8c8c8;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 4px;
}

.info-content p {
  margin-bottom: 10px;
}

.info-content .sources {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #1a1a1a;
  font-size: 12px;
  color: #555;
}

.mode-desc {
  display: inline;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: #d4a056;
  font-size: 13px;
}
