/* ==========================================================================
   AI Planet Builder - Design System & Styles
   Theme: Solarpunk-Cyberpunk Glassmorphism
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #0b0f19;
  --bg-secondary: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(15, 23, 42, 0.45);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.2);

  /* Accents */
  --color-cyan: #38bdf8;
  --color-cyan-glow: rgba(56, 189, 248, 0.4);
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.3);
  --color-pink: #f43f5e;
  --color-pink-glow: rgba(244, 63, 94, 0.3);
  --color-amber: #f59e0b;
  --color-amber-glow: rgba(245, 158, 11, 0.3);
  --color-violet: #8b5cf6;
  
  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Shadows */
  --shadow-neon: 0 0 15px rgba(56, 189, 248, 0.2);
  --shadow-panel: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* ==========================================================================
   Base Elements & Reset
   ========================================================================== */

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.08) 0px, transparent 50%);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan);
}

/* ==========================================================================
   App Layout
   ========================================================================== */

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 1800px;
  margin: 0 auto;
  padding: 16px;
  gap: 16px;
  width: 100%;
}

/* ==========================================================================
   Header Component
   ========================================================================== */

.game-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-panel);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-home-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-3px);
}

.game-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.accent-glow {
  background: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.2));
}

.mvp-badge {
  font-size: 0.75rem;
  background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-violet) 100%);
  color: var(--bg-primary);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.5px;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.time-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 6px 16px;
  border-radius: 20px;
}

.day-counter {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-cyan);
}

.season-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Stockpile grid bar */
.stockpile-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.resource-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  transition: all 0.3s ease;
  user-select: none;
}

.resource-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}

.res-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.res-info {
  display: flex;
  flex-direction: column;
}

.res-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.res-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.res-trend {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.res-trend.positive { color: var(--color-emerald); }
.res-trend.negative { color: var(--color-pink); }
.res-trend.neutral { color: var(--text-muted); }

/* Resource Cap & Temperature indicators */
.res-cap-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  overflow: hidden;
}

.res-cap-fill {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
}

.resource-card.danger {
  border-color: rgba(244, 63, 94, 0.2);
  box-shadow: inset 0 0 10px rgba(244, 63, 94, 0.1);
}
.resource-card.danger:hover {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

/* ==========================================================================
   Main Game Board Layout
   ========================================================================== */

.game-board {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

/* Panel Titles */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 14px;
}

.panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-header h2 i {
  color: var(--color-cyan);
}

/* ==========================================================================
   Left Column: Simulation Area (World Canvas Planet)
   ========================================================================== */

.simulation-area {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-panel);
}

.map-controls {
  display: flex;
  gap: 8px;
}

.map-control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.map-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.map-control-btn.active {
  background: var(--color-cyan-glow);
  color: var(--color-cyan);
  border-color: var(--color-cyan);
}

.canvas-container {
  flex: 1;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.8);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#world-map {
  display: block;
  width: 100%;
  height: 100%;
}

.planet-overlay-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glow);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-cyan);
  pointer-events: none;
  text-shadow: 0 0 10px var(--color-cyan-glow);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; box-shadow: 0 0 10px rgba(56, 189, 248, 0.2); }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(56, 189, 248, 0.5); }
}

/* Weather and Warnings */
.weather-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  transition: background 1s ease;
}

.weather-overlay.raining {
  background: rgba(14, 54, 90, 0.15);
}

.disaster-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: white;
  opacity: 0;
  transition: opacity 0.05s ease-out;
}

.simulation-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 12px;
}

.simulation-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Right Column: Deity Command Dashboard
   ========================================================================== */

.control-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.2);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--color-cyan);
  border-bottom-color: var(--color-cyan);
  background: rgba(56, 189, 248, 0.05);
}

/* Content Container */
.tab-content {
  display: none;
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

.panel-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-sub-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.active-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-cyan);
  background: var(--color-cyan-glow);
  padding: 3px 10px;
  border-radius: 20px;
}

.science-cost-help {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Upgrade Cards & purchasing Actions
   ========================================================================== */

.upgrade-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upgrade-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.upgrade-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glow);
}

.card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upg-icon {
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.upg-info h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.upg-stats {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Dual-Value click button */
.buy-btn {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--color-violet);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  transition: all 0.2s ease;
}

.buy-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--color-violet);
  transform: translateY(-2px);
}

.buy-btn.positive {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--color-emerald);
}

.buy-btn.positive:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--color-emerald);
}

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

.btn-cost {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-qty {
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0.75;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ==========================================================================
   Algorithmic Research Trees
   ========================================================================== */

.tech-tree {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.3s ease;
}

.tech-node.locked {
  opacity: 0.5;
  background: rgba(0,0,0,0.2);
}

.tech-node.active-researchable {
  border-color: var(--color-cyan-glow);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.05);
}

.tech-node.unlocked {
  border-color: var(--color-emerald-glow);
  background: rgba(16, 185, 129, 0.03);
}

.node-icon {
  font-size: 2rem;
  min-width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-node.unlocked .node-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-emerald);
}

.node-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.node-info h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.node-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex: 1;
}

.research-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  text-align: center;
}

.active-researchable .research-btn {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--color-cyan);
}

.active-researchable .research-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--color-cyan);
  transform: translateY(-2px);
}

.unlocked .research-btn {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--color-emerald);
  color: var(--color-emerald);
  cursor: default;
  pointer-events: none;
}

/* ==========================================================================
   Mainframe Chronicle Console
   ========================================================================== */

.game-footer {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.log-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-header h3 i {
  color: var(--color-cyan);
}

.clear-log-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.clear-log-btn:hover {
  color: var(--color-pink);
}

.log-ticker {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px;
  height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  font-family: 'Courier New', Courier, monospace;
}

.log-entry {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.log-time {
  color: var(--color-cyan);
  font-weight: 700;
  margin-right: 8px;
}

/* Entry levels */
.log-entry.system { color: var(--color-cyan); }
.log-entry.gather { color: var(--color-emerald); }
.log-entry.tech { color: var(--color-violet); }
.log-entry.danger { 
  color: var(--color-pink); 
  font-weight: 700;
  animation: flashDanger 1.5s infinite ease-in-out;
}

@keyframes flashDanger {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; text-shadow: 0 0 8px rgba(244, 63, 94, 0.4); }
}

/* ==========================================================================
   Welcome Tutorial Overlay Modal
   ========================================================================== */

.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

.welcome-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.welcome-modal {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 36px;
  animation: modalScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.welcome-header {
  text-align: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
}

.welcome-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.welcome-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.welcome-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.guide-step {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  text-align: left;
}

.guide-step:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.step-icon {
  font-size: 1.8rem;
  min-width: 44px;
  height: 44px;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.step-details h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-cyan);
  margin-bottom: 4px;
  font-weight: 600;
}

.step-details p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.welcome-actions {
  display: flex;
  justify-content: center;
}

.start-game-btn {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-violet) 100%);
  color: var(--bg-primary);
  border: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 14px 40px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.start-game-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.6);
}

.start-game-btn:active {
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive adapters
   ========================================================================== */

@media (max-width: 1200px) {
  .game-board {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .stockpile-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .time-panel {
    width: 100%;
    justify-content: space-between;
  }
  
  .canvas-container {
    min-height: 320px;
  }

  .panel-tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    font-size: 0.8rem;
    padding: 10px 2px;
  }
}
