/* Hol van? (pinmap) — prefix hp-; the map itself is the shared hm- section of app.css */
.hp-frame {
  width: min(560px, 100cqw);
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  touch-action: manipulation;
  --hp-g0: #34d399; --hp-g1: #a3e635; --hp-g2: #facc15; --hp-g3: #fb923c; --hp-g4: #ff6b81;
}

/* --- Progress --------------------------------------------------------------------- */
.hp-head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hp-count { font-weight: 500; font-size: .9rem; color: var(--muted); }
.hp-dots { display: flex; gap: 8px; }
.hp-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;
}
.hp-dots i.now { background: #fff; transform: scale(1.2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--game) 40%, transparent); }
.hp-dots i.g0, .hp-li-dot.g0 { background: var(--hp-g0); }
.hp-dots i.g1, .hp-li-dot.g1 { background: var(--hp-g1); }
.hp-dots i.g2, .hp-li-dot.g2 { background: var(--hp-g2); }
.hp-dots i.g3, .hp-li-dot.g3 { background: var(--hp-g3); }
.hp-dots i.g4, .hp-li-dot.g4 { background: var(--hp-g4); }

/* --- Question / result line ------------------------------------------------------------- */
.hp-ask {
  min-height: 3.4em; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 6px;
  text-align: center; font-weight: 600; font-size: clamp(1.25rem, 5vw, 1.6rem); line-height: 1.25; letter-spacing: -.03em;
}
.hp-in { animation: hp-in .4s var(--ease-spring); }
@keyframes hp-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.hp-ask:empty { display: none; }
.hp-q { color: var(--muted); font-weight: 500; }
.hp-q + .hp-name + .hp-q { margin-left: -6px; }
.hp-name { color: var(--text); }
.hp-county, .hp-result { flex-basis: 100%; font-size: .85rem; font-weight: 450; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.hp-result { font-size: 1rem; font-weight: 550; }
.hp-result.g0 { color: var(--hp-g0); }
.hp-result.g4 { color: var(--hp-g4); }

/* --- Map overlays ------------------------------------------------------------------------- */
.hp-map { cursor: crosshair; }
.hp-done .hp-map { cursor: default; }
.hp-attrib { margin-top: 4px; padding: 0 4px; font-size: .68rem; color: var(--muted); opacity: .7; text-align: right; }
.hp-lines line { stroke: #fff; stroke-opacity: .75; stroke-width: calc(1.4px * var(--k, 1)); stroke-dasharray: 4 3.5; stroke-linecap: round; animation: hp-fade .4s .25s both, hp-dash 1s linear infinite; }
@keyframes hp-dash { to { stroke-dashoffset: -15; } }
@keyframes hp-fade { from { opacity: 0; } }
.hp-guess { stroke: #fff; stroke-width: calc(1.6px * var(--k, 1)); transform-box: fill-box; transform-origin: center; animation: hp-drop .45s var(--ease-spring) both; }
@keyframes hp-drop { from { transform: scale(0); } }
.hp-still .hp-guess, .hp-still .hp-lines line, .hp-still .hm-pin, .hp-still .hp-label { animation: none; }
.hp-guess.g0 { fill: var(--hp-g0); } .hp-guess.g1 { fill: var(--hp-g1); } .hp-guess.g2 { fill: var(--hp-g2); }
.hp-guess.g3 { fill: var(--hp-g3); } .hp-guess.g4 { fill: var(--hp-g4); }
.hp-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;
  animation: hp-fade .35s .3s both;
}
.hp-pend { fill: #fff; stroke: var(--game); stroke-width: calc(2.4px * var(--k, 1)); transform-box: fill-box; transform-origin: center; animation: hp-drop .4s var(--ease-spring) both; }
.hp-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: hp-pulse 1.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes hp-pulse { from { transform: scale(.75); } to { transform: scale(1.05); } }

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

/* --- Summary ----------------------------------------------------------------------------- */
.hp-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: hp-in .45s var(--ease-out);
}
.hp-list[hidden] { display: none; }
.hp-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 52px; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; }
.hp-list li:nth-child(odd) { background: rgba(255, 255, 255, .04); }
.hp-li-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #000; font: 650 .74rem var(--font); }
.hp-list b { font-weight: 550; font-size: .95rem; min-width: 0; overflow-wrap: break-word; }
.hp-list span:not(.hp-li-dot):not(.hp-bull) { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.hp-list small { display: flex; justify-content: flex-end; text-align: right; font-weight: 500; color: var(--muted); }
.hp-bull { display: grid; place-items: center; }
.hp-bull svg { width: 18px; height: 18px; fill: none; stroke: var(--hp-g0); stroke-width: 2; }
.hp-bull svg .fill { fill: var(--hp-g0); stroke: none; }

@media (prefers-reduced-motion: reduce) {
  .hp-lines line, .hp-pend-ring { animation: none; }
}
/* 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; } }
