:root {
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  padding: 24px;
  background: #f2f5f7;
  color: #1f2933;
}

/* ------ Mode Selection Screen ------ */
#mode-select {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  box-sizing: border-box;
}

  .mode-select-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.mode-select-card h1 {
  margin-top: 0;
}

.mode-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.mode-buttons button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px;
  border-radius: 10px;
  background: #0b69ff;
  color: white;
  border: none;
  cursor: pointer;
  min-width: 140px;
}

.mode-buttons button:hover {
  opacity: 0.9;
}

.mode-title {
  font-size: 1.1em;
  font-weight: bold;
}

.mode-desc {
  font-size: 0.8em;
  margin-top: 4px;
  opacity: 0.85;
}

/* ------ Game Layout ------ */

.game-layout {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.game-header h1 {
  margin: 0;
}

#round-counter {
  font-size: 1em;
  font-weight: bold;
  color: #0b69ff;
}

.image-panel img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

#zoo-label {
  font-weight: 600;
  margin-top: 8px;
}

.controls {
  margin-top: 12px;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

button {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #0b69ff;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

#map {
  height: 420px;
  margin-top: 16px;
  border-radius: 10px;
}

.results {
  margin-top: 16px;
  font-weight: 600;
}

/* ------ Scorecard ------ */
#scorecard {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  box-sizing: border-box;
}

.scorecard-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  width: 100%;
  text-align: center;
}

.scorecard-card h2 {
  margin-top: 0;
}

#scorecard-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  text-align: left;
}

#scorecard-table th,
#scorecard-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
}

#scorecard-table thead th {
  background: #f2f5f7;
  font-weight: bold;
}

#scorecard-table tfoot td {
  font-weight: bold;
  border-top: 2px solid #1f2933;
}