/* ========================================
   LAYOUT DU JEU - Game layout
   ======================================== */

#game-screen {
  display: none;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  padding: 0;
  max-width: none;
}

#game-screen.active {
  display: flex;
}

.game-wrapper {
  display: flex;
  gap: 10px;
  padding: 10px;
  flex: 1;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
}

.game-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

#game-container {
  flex: 1;
  background: #2d5016;
  border-radius: 10px;
  border: 3px solid #3a6b1f;
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

#game-container canvas {
  display: block;
}

/* Panneaux latéraux */
.game-panel {
  background: #16213e;
  border: 2px solid #0f3460;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
}

.game-panel h3 {
  color: #ffd700;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #0f3460;
  font-size: 18px;
}

.left-panel {
  width: 140px;
  min-width: 140px;
}

.right-panel {
  width: 170px;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Panneau du haut */
.top-panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #16213e;
  padding: 10px 15px;
  border-radius: 10px;
  gap: 10px;
  flex-wrap: nowrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(102, 126, 234, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.stat-icon {
  font-size: 20px;
}

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

.stat-label {
  font-size: 12px;
  opacity: 0.8;
}

.btn-quit {
  padding: 8px 15px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

.btn-quit:hover {
  background: #c0392b;
}
