* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%; width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1c1c1e;
}
#map {
  position: absolute; inset: 0;
  background: #cfd8dc;
}

#topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.2px; }
.round-info { display: flex; gap: 16px; font-variant-numeric: tabular-nums; }
#total-label { font-weight: 600; }

.card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  width: min(420px, calc(100% - 24px));
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.06);
  padding: 16px;
  z-index: 1000;
}
.card.hidden { display: none; }

.prompt-label { font-size: 13px; color: #6e6e73; text-transform: uppercase; letter-spacing: 0.5px; }
.prompt-name { font-size: 22px; font-weight: 700; margin-top: 4px; }
.prompt-hint { font-size: 14px; color: #6e6e73; margin-top: 2px; min-height: 1em; }
.prompt-help { font-size: 12px; color: #8e8e93; margin-top: 8px; }

button {
  margin-top: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: #1c1c1e;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
button:disabled { background: #c7c7cc; cursor: not-allowed; }
button:hover:not(:disabled) { background: #2c2c2e; }

.result-name { font-size: 18px; font-weight: 700; }
.result-distance { color: #6e6e73; margin-top: 4px; }
.result-score { font-size: 26px; font-weight: 700; color: #1c1c1e; margin-top: 8px; }

.final-total { font-size: 32px; font-weight: 800; margin: 8px 0 4px; }
.final-streak { font-size: 15px; font-weight: 600; color: #d97706; margin: 0 0 12px; }
#final-breakdown { padding-left: 20px; margin: 0; }
#final-breakdown li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 4px 0;
}
#final-breakdown .name { color: #1c1c1e; }
#final-breakdown .score { font-variant-numeric: tabular-nums; font-weight: 600; }
.share-status { font-size: 13px; color: #6e6e73; margin-top: 8px; min-height: 1em; text-align: center; }

.cheese-pin {
  background: transparent;
  border: 0;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.45));
  pointer-events: none;
}
.cheese-pin svg { display: block; width: 40px; height: 60px; }

.leaflet-container { font-family: inherit; }
