:root {
  --bg: #0b0d14;
  --panel: #15182a;
  --surface-1: #131625;
  --surface-2: #1a1e30;
  --surface-3: #1f2438;
  --text: #f0f0f5;
  --text-body: #c4cadd;
  --muted: #9aa0b8;
  --accent: #ffaa33;
  --accent-light: #ffeebb;
  --accent2: #66ccff;
  --danger: #ff5555;
  --success: #55cc88;
  --warn: #ffcc33;
  --border: #2a2f45;
  --transition-fast: 0.12s;
  --transition-base: 0.15s;
  --transition-slow: 0.25s;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

#game {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

#view-start.active,
#view-build.active {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 32px);
}

.view-enter {
  animation: view-enter var(--transition-slow) ease both;
}

@keyframes view-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base), border-color var(--transition-base);
}

.btn:hover {
  background: var(--surface-3);
  border-color: #3a4058;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.btn.primary {
  background: var(--accent);
  color: #1a1200;
  border-color: var(--accent);
  font-weight: 600;
}

.btn.primary:hover { background: #ffbb55; border-color: #ffbb55; }

.btn.success { background: var(--success); color: #051a0f; border-color: var(--success); font-weight: 600; }
.btn.success:hover { background: #66dd99; border-color: #66dd99; }

.btn.danger { background: var(--danger); color: #1a0505; border-color: var(--danger); font-weight: 600; }
.btn.danger:hover { background: #ff7777; border-color: #ff7777; }

.btn.large { padding: 14px 24px; font-size: 16px; }
.btn.small { padding: 6px 10px; font-size: 12px; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

