/*
 * Web page chrome. The team colours come from generated/palette.css (shared
 * with the app). The parchment and wood below copy the app's
 * (app/lib/theme.ts `parchment`, `wood`, `woodLight`): the page has no build
 * step to import them from there.
 */
:root {
  --parchment: #f4e8ca;
  --wood: #6f5026;
  --wood-light: #c9a861;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--parchment);
}

#map {
  position: absolute;
  inset: 0;
}

/* The score counter floats over the top of the map, like the app's pill. */
.score {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.pill {
  display: flex;
  align-items: stretch;
  width: 260px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 6px 12px;
  border: 2.5px solid var(--wood);
  border-radius: 22px;
  background: var(--parchment) url("generated/paper.png") center / cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.half {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.half-right {
  justify-content: flex-end;
}

.divider {
  width: 1px;
  margin: 0 8px;
  background: rgba(0, 0, 0, 0.15);
}

.icon {
  width: 44px;
  height: 44px;
}

.value {
  font-size: 26px;
  font-weight: 800;
  line-height: 34px;
  font-variant-numeric: tabular-nums;
}

.summer {
  color: var(--summer);
}

.winter {
  color: var(--winter);
}

.caption {
  margin: 6px 0 0;
  padding: 4px 12px;
  border-radius: 10px;
  background: var(--wood);
  color: var(--parchment);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
