.geo-page { padding-block: 32px 40px; container-type: inline-size; }
.cabinet .geo-page { padding-block: 0; }
.geo-page h1 { font-size: clamp(2.35rem, 6vw, 4.6rem); }
.cabinet .geo-page h1 { font-size: clamp(1.7rem, 5vw, 2.7rem); }
.geo-lead { max-width: 62ch; margin-top: 12px; }
.geo-grid { display: grid; gap: 16px; margin-top: 22px; }
.geo-round { min-width: 0; }
.geo-meter { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.geo-meter .eyebrow { margin: 0; }
.geo-round h2 { margin: 5px 0 12px; font-size: clamp(1.55rem, 4vw, 2.55rem); overflow-wrap: anywhere; }
.geo-attempts { margin-block: 8px; font-size: .85rem; }
.geo-feedback { color: #ffc1cd; }
.geo-feedback[data-correct="true"] { color: #9df8c6; }
.geo-round .actions:not(:empty) { margin-top: 12px; }
.geo-map { display: grid; justify-items: center; align-content: start; min-width: 0; }
.geo-globe { position: relative; width: min(100%, 530px); }
#game-globe { border-radius: 16px; touch-action: pan-y; }
#game-globe.can-answer { touch-action: none; cursor: crosshair; }
.geo-reticle {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  background: linear-gradient(var(--accent), var(--accent)) center / 13px 1px no-repeat,
              linear-gradient(var(--accent), var(--accent)) center / 1px 13px no-repeat;
  opacity: .65;
  pointer-events: none;
}
.geo-submit { margin-top: 10px; }
.geo-rewards { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.geo-rewards h2 { font-size: 1.3rem; }
.geo-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.geo-goals div { display: grid; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.geo-goals strong, .geo-goals span { font-size: .82rem; }
.geo-goals span { color: var(--muted); }
.geo-goals .earned { background: #291735; border-color: var(--accent); }
.geo-goals .earned strong { color: var(--accent); }
.geo-rules { margin-top: 10px; font-size: .81rem; }
.geo-prize { display: grid; justify-items: start; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.geo-prize code { color: var(--accent); font-size: .95rem; overflow-wrap: anywhere; }
.geo-credit { margin-top: 22px; font-size: .78rem; }
.geo-credit a { text-decoration: underline; }

.brand-site .geo-page { --surface: var(--brand-card, var(--paper)); }
.brand-site .geo-page :is(.subcard, .geo-globe) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.brand-site .geo-page .subcard { padding: 16px; }
.brand-site .geo-globe { padding: clamp(6px, 2vw, 18px); }
.brand-site .geo-globe canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.brand-site .geo-page .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.brand-site .geo-page button:disabled { opacity: .55; cursor: default; }
.brand-site .geo-page :is(.eyebrow, .tag) { color: var(--muted); font-size: .78rem; }
.brand-site .geo-page .eyebrow { margin-bottom: 8px; }
.brand-site .geo-meter .eyebrow { margin-bottom: 0; }
.brand-site .geo-page .notice { margin-block: 8px; }
.geo-page .geo-goals .earned { background: var(--brand-hover, var(--hover, var(--tint))); }
[data-theme="light"] .geo-feedback { color: #8b2444; }
[data-theme="light"] .geo-feedback[data-correct="true"] { color: #17633d; }
[data-theme="dark"] .geo-feedback { color: #ffb3d9; }
[data-theme="dark"] .geo-feedback[data-correct="true"] { color: #9df8c6; }

@container (min-width: 720px) {
  .geo-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    grid-template-rows: max-content 1fr;
    grid-template-areas: "map round" "map rewards";
    align-items: start;
    gap: 16px 24px;
  }
  .geo-map { grid-area: map; }
  .geo-round { grid-area: round; }
  .geo-rewards { grid-area: rewards; }
}

@media (max-width: 450px) {
  .geo-header { gap: 8px; }
  .geo-header .brand { gap: 4px; font-size: 1.08rem; }
  .geo-header img { width: 30px; height: 30px; }
  .geo-header .button { padding-inline: 8px; font-size: .82rem; white-space: nowrap; }
  .geo-page { padding-top: 22px; }
  .geo-round, .geo-rewards { padding: 12px; }
  .geo-goals div { padding: 5px; }
  .geo-round .notice:not(:empty) { margin-block: 6px; }
  .geo-globe { width: min(100%, 360px); }
}
