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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
}

#app {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 16px;
}

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

h1 {
  font-size: 1.4rem;
  color: #e94560;
  letter-spacing: 1px;
}

#progress {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

#total-score {
  color: #e94560;
  font-weight: 700;
}

#game-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#name-card {
  background: #16213e;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  border: 1px solid #0f3460;
}

#surname-display {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 2px;
}

#instruction {
  font-size: 0.85rem;
  color: #8899aa;
}

#map-container {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #0f3460;
}

#map {
  height: 420px;
  width: 100%;
  background: #0a1628;
}

#controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

button {
  padding: 10px 32px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

#guess-btn {
  background: #e94560;
  color: #fff;
}

#guess-btn:disabled {
  background: #555;
  cursor: not-allowed;
}

#guess-btn:not(:disabled):hover {
  background: #ff6b6b;
}

#next-btn {
  background: #0f3460;
  color: #fff;
}

#next-btn:hover {
  background: #1a5276;
}

#result-panel {
  background: #16213e;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #0f3460;
}

#result-score {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

#result-distance {
  text-align: center;
  color: #8899aa;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

#result-narrative {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ccc;
}

.score-great { color: #2ecc71; }
.score-good { color: #f1c40f; }
.score-ok { color: #e67e22; }
.score-bad { color: #e74c3c; }

/* Summary */
#summary-screen, #already-played {
  background: #16213e;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid #0f3460;
}

#summary-screen h2, #already-played h2 {
  color: #e94560;
  margin-bottom: 16px;
}

#final-score, #previous-score {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

#round-results, #previous-results {
  text-align: left;
  margin: 0 auto 20px;
  max-width: 400px;
}

.round-result-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #0f3460;
  font-size: 0.9rem;
}

.round-result-row .name {
  font-weight: 600;
}

#share-btn {
  background: #e94560;
  color: #fff;
  margin-top: 8px;
}

#share-btn:hover {
  background: #ff6b6b;
}

#share-copied {
  color: #2ecc71;
  margin-top: 8px;
  font-size: 0.85rem;
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
  #surname-display { font-size: 1.6rem; }
  #map { height: 320px; }
  header { flex-direction: column; gap: 4px; }
}
