/* Hegyek, vizek (geomap) — prefix gm-; the map itself is the shared hm- section of app.css */
.gm-frame {
  width: min(560px, 100cqw);
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  touch-action: manipulation;
  --gm-g0: #34d399; --gm-g1: #a3e635; --gm-g2: #facc15; --gm-g3: #fb923c; --gm-g4: #ff6b81;
  /* Feature colours: water, relief, land */
  --gm-w: #6cb8ff; --gm-r: #f6a945; --gm-l: #3fd8c6;
  --gm-halo: rgba(0, 0, 0, .7);
}
/* The base map's rivers and Balaton would give answers away. */
.gm-frame .hm-rivers, .gm-frame .hm-lake { display: none; }

/* --- Progress --------------------------------------------------------------------- */
.gm-head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gm-count { font-weight: 500; font-size: .9rem; color: var(--muted); }
.gm-dots { display: flex; gap: 8px; }
.gm-dots i {
  width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14);
  transition: background-color .25s, transform .35s var(--ease-spring), box-shadow .25s;
}
.gm-dots i.now { background: #fff; transform: scale(1.2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--game) 40%, transparent); }
.gm-dots i.g0, .gm-li-dot.g0 { background: var(--gm-g0); }
.gm-dots i.g1, .gm-li-dot.g1 { background: var(--gm-g1); }
.gm-dots i.g2, .gm-li-dot.g2 { background: var(--gm-g2); }
.gm-dots i.g3, .gm-li-dot.g3 { background: var(--gm-g3); }
.gm-dots i.g4, .gm-li-dot.g4 { background: var(--gm-g4); }

/* --- Question / result line ------------------------------------------------------------- */
.gm-ask {
  min-height: 3.6em; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 6px; row-gap: 4px;
  text-align: center; font-weight: 600; font-size: clamp(1.25rem, 5vw, 1.6rem); line-height: 1.25; letter-spacing: -.03em;
}
.gm-ask:empty { display: none; }
.gm-in { animation: gm-in .4s var(--ease-spring); }
@keyframes gm-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.gm-q { color: var(--muted); font-weight: 500; }
.gm-q + .gm-name + .gm-q { margin-left: -6px; }
.gm-name { color: var(--text); }
.gm-type {
  align-self: center; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px 3px 8px; border-radius: 999px;
  font-size: .78rem; font-weight: 550; line-height: 1.5; letter-spacing: 0;
  color: var(--gm-c); background: color-mix(in srgb, var(--gm-c) 16%, transparent);
}
.gm-ico { display: grid; place-items: center; }
.gm-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gm-br { flex-basis: 100%; height: 0; }
.gm-t-w { --gm-c: var(--gm-w); } .gm-t-r { --gm-c: var(--gm-r); } .gm-t-l { --gm-c: var(--gm-l); }
.gm-result { flex-basis: 100%; margin-top: 2px; font-size: 1rem; font-weight: 550; letter-spacing: 0; color: var(--muted); }
.gm-result.g0 { color: var(--gm-g0); }
.gm-result.g4 { color: var(--gm-g4); }

/* --- Map overlays ------------------------------------------------------------------------- */
.gm-map { cursor: crosshair; }
.gm-done .gm-map { cursor: default; }
.gm-attrib { margin-top: 4px; padding: 0 4px; font-size: .68rem; color: var(--muted); opacity: .7; text-align: right; }

.gm-halo { fill: none; stroke: var(--gm-halo); stroke-width: calc(6px * var(--k, 1)); stroke-linecap: round; stroke-linejoin: round; }
.gm-line { fill: none; stroke: var(--gm-c); stroke-width: calc(3px * var(--k, 1)); stroke-linecap: round; stroke-linejoin: round; }
.gm-area {
  fill: color-mix(in srgb, var(--gm-c) 30%, transparent); fill-rule: nonzero;
  stroke: var(--gm-c); stroke-width: calc(1.6px * var(--k, 1)); stroke-linejoin: round;
}
.gm-t-w .gm-area { fill: color-mix(in srgb, var(--gm-c) 55%, transparent); }
.gm-peak { fill: var(--gm-c); stroke: var(--gm-halo); stroke-width: calc(1.4px * var(--k, 1)); stroke-linejoin: round; }
.gm-snow { fill: #fff; }
.gm-anim .gm-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: gm-draw 1.1s var(--ease-out) forwards; }
.gm-anim .gm-halo, .gm-anim .gm-area { animation: gm-fade .7s var(--ease-out) both; }
.gm-anim .gm-peak, .gm-anim .gm-snow { transform-origin: var(--x) var(--y); animation: gm-pop .55s var(--ease-spring) both; }
@keyframes gm-draw { to { stroke-dashoffset: 0; } }
@keyframes gm-fade { from { opacity: 0; } }
@keyframes gm-pop { from { transform: scale(.2); opacity: 0; } }

.gm-lines line { stroke: #fff; stroke-opacity: .75; stroke-width: calc(1.4px * var(--k, 1)); stroke-dasharray: 4 3.5; stroke-linecap: round; animation: gm-fade .4s .25s both, gm-dash 1s linear infinite; }
@keyframes gm-dash { to { stroke-dashoffset: -15; } }
.gm-guess { stroke: #fff; stroke-width: calc(1.6px * var(--k, 1)); transform-box: fill-box; transform-origin: center; animation: gm-drop .45s var(--ease-spring) both; }
@keyframes gm-drop { from { transform: scale(0); } }
.gm-still .gm-guess, .gm-still .gm-lines line, .gm-still .gm-label { animation: none; }
.gm-guess.g0 { fill: var(--gm-g0); } .gm-guess.g1 { fill: var(--gm-g1); } .gm-guess.g2 { fill: var(--gm-g2); }
.gm-guess.g3 { fill: var(--gm-g3); } .gm-guess.g4 { fill: var(--gm-g4); }
.gm-label {
  font: 650 calc(11.5px * var(--k, 1)) var(--font); fill: var(--hm-label); letter-spacing: -.01em;
  paint-order: stroke; stroke: var(--hm-halo); stroke-width: calc(3.5px * var(--k, 1)); stroke-linejoin: round;
  pointer-events: none; animation: gm-fade .35s .3s both;
}
.gm-pend { fill: #fff; stroke: var(--game); stroke-width: calc(2.4px * var(--k, 1)); transform-box: fill-box; transform-origin: center; animation: gm-drop .4s var(--ease-spring) both; }
.gm-pend-ring { fill: color-mix(in srgb, var(--game) 28%, transparent); stroke: color-mix(in srgb, var(--game) 70%, #fff); stroke-width: calc(1px * var(--k, 1)); animation: gm-pulse 1.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes gm-pulse { from { transform: scale(.75); } to { transform: scale(1.05); } }

.gm-actions { display: flex; justify-content: center; min-height: 44px; }
.gm-go { min-width: 160px; font-weight: 600; }
.gm-done .gm-actions { display: none; }

/* --- Summary ----------------------------------------------------------------------------- */
.gm-list {
  margin: 0; padding: 6px; list-style: none;
  display: flex; flex-direction: column; gap: 2px;
  background: #1c1c1e; border: 1px solid rgba(255, 255, 255, .06); border-radius: 22px;
  animation: gm-in .45s var(--ease-out);
}
.gm-list[hidden] { display: none; }
.gm-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 52px; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; }
.gm-list li:nth-child(odd) { background: rgba(255, 255, 255, .04); }
.gm-li-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #000; font: 650 .74rem var(--font); }
.gm-li-name { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.gm-li-name b { font-weight: 550; font-size: .95rem; overflow-wrap: break-word; }
.gm-li-name small { font-size: .76rem; font-weight: 450; color: var(--muted); }
.gm-li-km { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.gm-li-pen { display: flex; justify-content: flex-end; text-align: right; font-weight: 500; color: var(--muted); }
.gm-bull { display: grid; place-items: center; }
.gm-bull svg { width: 18px; height: 18px; fill: none; stroke: var(--gm-g0); stroke-width: 2; }
.gm-bull svg .fill { fill: var(--gm-g0); stroke: none; }

@media (prefers-reduced-motion: reduce) {
  .gm-lines line, .gm-pend-ring, .gm-anim .gm-line, .gm-anim .gm-halo, .gm-anim .gm-area, .gm-anim .gm-peak, .gm-anim .gm-snow { animation: none; }
  .gm-anim .gm-line { stroke-dasharray: none; stroke-dashoffset: 0; }
}
/* The shared shine stays put once it stops (repeating tile / tall boxes leave a grey band): fade it out. */

/* Tipp (server hint): shaded area and reference towns on the map (core/hu-map.js hintMarkup). */
.hm-hint-area circle {
  fill: color-mix(in srgb, #fff 18%, transparent);
  stroke: #fff; stroke-opacity: .9; stroke-width: calc(1.6px * var(--k, 1)); stroke-dasharray: 4 3;
  animation: hm-hint-in .5s ease-out both;
}
.hm-hint-mark circle { fill: #fff; stroke: var(--hm-halo); stroke-width: 1.2; animation: hm-hint-in .5s ease-out both; }
.hm-hint-mark text {
  font: 750 calc(9.5px * var(--k, 1)) var(--body); fill: #fff;
  paint-order: stroke; stroke: var(--hm-halo); stroke-width: calc(2.6px * var(--k, 1));
}
@keyframes hm-hint-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hm-hint-area circle, .hm-hint-mark circle { animation: none; } }
