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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0f1923;
  color: #e0e0e0;
  height: 100vh;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#header {
  background: linear-gradient(135deg, #1a2a3a, #0d1b2a);
  padding: 16px 24px;
  border-bottom: 2px solid #2a9d8f;
  text-align: center;
  z-index: 1000;
}

#header h1 {
  font-size: 24px;
  color: #2a9d8f;
  letter-spacing: 2px;
}

#subtitle {
  font-size: 13px;
  color: #8899aa;
  margin-top: 4px;
}

#game-area {
  display: flex;
  flex: 1;
  overflow: hidden;
}

#sidebar {
  width: 320px;
  min-width: 320px;
  padding: 20px;
  background: #1a2a3a;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

#round-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #8899aa;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a3a4a;
}

#score-display {
  color: #2a9d8f;
  font-weight: bold;
}

#location-card {
  background: #0d1b2a;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #2a3a4a;
}

#location-name {
  font-size: 22px;
  color: #e9c46a;
  margin-bottom: 8px;
}

#hint {
  font-size: 14px;
  color: #8899aa;
  font-style: italic;
}

#result-box {
  background: #0d1b2a;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #2a3a4a;
  text-align: center;
}

#result-box.show {
  display: block;
}

#distance-result {
  font-size: 15px;
  margin-bottom: 6px;
}

#points-result {
  font-size: 18px;
  font-weight: bold;
  color: #2a9d8f;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

#next-btn {
  background: #2a9d8f;
  color: #fff;
}

#next-btn:hover {
  background: #238b7e;
  transform: translateY(-1px);
}

#restart-btn {
  background: #e9c46a;
  color: #1a2a3a;
}

#restart-btn:hover {
  background: #d4b35a;
  transform: translateY(-1px);
}

#map {
  flex: 1;
  height: 100%;
}

.hidden {
  display: none !important;
}

#game-over {
  text-align: center;
  padding: 20px;
  background: #0d1b2a;
  border-radius: 12px;
  border: 2px solid #e9c46a;
}

#game-over h2 {
  font-size: 28px;
  color: #e9c46a;
  margin-bottom: 12px;
}

#final-score {
  font-size: 36px;
  color: #2a9d8f;
  font-weight: bold;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  #game-area {
    flex-direction: column;
  }

  #sidebar {
    width: 100%;
    min-width: unset;
    max-height: 40vh;
    padding: 12px;
  }

  #map {
    height: 60vh;
  }
}
