/* ===== Capybara Game Styles ===== */
.game-page-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Game Canvas Area */
.game-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.game-stat {
  text-align: center;
}

.game-stat-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-light);
}

.game-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#game-canvas {
  width: 100%;
  max-width: 600px;
  height: 400px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: #1a2a1a;
  display: block;
  cursor: pointer;
}

.game-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.game-screen {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
}

.game-overlay .overlay-emoji { font-size: 64px; }
.game-overlay h2 { font-size: 24px; font-weight: 900; }
.game-overlay p { font-size: 14px; color: rgba(255,255,255,0.7); }

/* Leaderboard */
.leaderboard {
  width: 100%;
  max-width: 600px;
  margin-top: 16px;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.lb-row:last-child { border-bottom: none; }

.lb-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.lb-rank.gold { background: rgba(255,215,0,0.2); color: gold; }
.lb-rank.silver { background: rgba(192,192,192,0.2); color: silver; }
.lb-rank.bronze { background: rgba(205,127,50,0.2); color: #cd7f32; }
.lb-rank.normal { background: var(--bg-hover); color: var(--text-muted); }

.lb-name { flex: 1; font-weight: 700; font-size: 14px; }
.lb-score { font-size: 18px; font-weight: 900; color: var(--primary-light); }
.lb-level { font-size: 11px; color: var(--text-muted); }
