/* KØS SEJL — css/hub.css : the harbor map screen (KOS.Hub). SPAN glass style. */
.hub-host { position: absolute; inset: 0; overflow: hidden; padding: 0 !important; }
.hub {
  position: absolute; inset: 0; overflow: hidden; background: #1b3f80;
  font-family: ui-rounded, "Segoe UI Variable Display", "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  color: #fff; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  --hub-glass: rgba(13, 19, 33, .7);
  --hub-line: rgba(255, 255, 255, .12);
  --hub-safe-t: env(safe-area-inset-top, 0px);
  --hub-safe-b: env(safe-area-inset-bottom, 0px);
  --hub-safe-l: env(safe-area-inset-left, 0px);
  --hub-safe-r: env(safe-area-inset-right, 0px);
}
.hub-glass {
  background: var(--hub-glass); border: 1px solid var(--hub-line); border-radius: 16px;
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 8px 24px rgba(4, 10, 25, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #fff;
}
.hub-ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hub-star { fill: #ffd25e; stroke: #e0a020; stroke-width: 1.2; }

/* ------------------------------------------------ map viewport */
.hub-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.hub-viewport.is-dragging { cursor: grabbing; }
.hub-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; --inv: 1; }
.hub-stage.is-easing { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.hub-map { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.hub-fx { pointer-events: none; }
.hub-cloud { animation: hub-cloud 90s linear infinite alternate; }
@keyframes hub-cloud { from { transform: translate(-160px, 40px); } to { transform: translate(220px, -60px); } }
.hub { opacity: 0; transition: opacity .35s ease; }
.hub.hub-in { opacity: 1; }

/* water life. Looping motion inside the map SVG is SMIL (see buildMap in hub.js): CSS transform/opacity/filter
   animations there each become a GPU layer and the map flashes black on phones when a drag starts/ends */
.hub-sparkles path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; opacity: 0; }
.hub-foam { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 8; stroke-linejoin: round; }
.hub-foam2 { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 16; stroke-linejoin: round; stroke-dasharray: 10 14; }
/* the marching foam repaints the entire map every frame: desktop only (phones flashed black after a zoom) */
@media (hover: hover) and (pointer: fine) { .hub-foam2 { animation: hub-foam 5s linear infinite; } }
@keyframes hub-foam { to { stroke-dashoffset: -48; } }
.hub-lane-chan { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2; stroke-dasharray: 9 7; }
.hub-lane-ferry { fill: none; stroke: rgba(238, 90, 170, .55); stroke-width: 2.4; stroke-dasharray: 2 6; stroke-linecap: round; }
.hub-zone-swim { fill: rgba(255, 216, 74, .14); stroke: rgba(255, 216, 74, .85); stroke-width: 1.6; stroke-dasharray: 5 4; }
.hub-zone-course { fill: rgba(255, 200, 69, .06); stroke: rgba(255, 220, 140, .5); stroke-width: 2; stroke-dasharray: 10 8; }
.hub-road { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 3; stroke-linecap: round; }
.hub-rock { fill: #8f897c; stroke: #59544a; stroke-width: 1.2; stroke-dasharray: 2.5 1.5; }
.hub-pier { fill: #c79a62; stroke: #6b4a28; stroke-width: .8; }
.hub-pontoon { fill: #e8ebef; stroke: #6c7686; stroke-width: .8; }
.hub-smoke circle { fill: rgba(255, 255, 255, .5); }
.hub-labels { position: absolute; inset: 0; pointer-events: none; }
.hub-label { position: absolute; white-space: nowrap; line-height: 1; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(var(--inv)); letter-spacing: .02em; }
.hub-label-water { color: rgba(240, 250, 255, .92); font-style: italic; font-weight: 800; text-shadow: 0 1px 0 rgba(10, 40, 90, .6), 0 0 8px rgba(10, 40, 90, .55); }
.hub-label-land { color: #6a5530; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; font-size: .85em; text-shadow: 0 0 4px #fff6d8, 0 0 8px #fff6d8, 0 1px 0 #fff6d8; }
.hub-mover, .hub-gull { cursor: pointer; }
.hub-mover use { transform-box: fill-box; transform-origin: center; }
.hub-mover.boing use { animation: hub-boing .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hub-boing { 30% { transform: scale(1.6); } 100% { transform: scale(1); } }
.hub-gull.flee use { animation: hub-flee 1.6s ease-in forwards; transform-box: fill-box; transform-origin: center; }
@keyframes hub-flee { 20% { transform: translate(0, -12px) scale(1.5); } 100% { transform: translate(120px, -160px) scale(.4); opacity: 0; } }
.hub-leader { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .9; }
.hub-anchor { fill: var(--c); stroke: #fff; stroke-width: 2; animation: hub-anchor 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hub-anchor { 0% { stroke-width: 2; } 50% { stroke-width: 5; stroke-opacity: .4; } 100% { stroke-width: 2; } }

/* ------------------------------------------------ pins (constant screen size: counter-scaled by --inv) */
.hub-pins { position: absolute; inset: 0; pointer-events: none; }
.hub-pin {
  position: absolute; pointer-events: auto; border: 0; padding: 0; background: none; color: #fff; font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
  transform: translate(-50%, -32px) scale(var(--inv)); transform-origin: 50% 32px;
  transition: filter .2s; outline: none; -webkit-tap-highlight-color: transparent;
}
.hub-pin-badge {
  position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  border: 3px solid #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent), 0 10px 22px rgba(4, 10, 25, .45), 0 0 26px color-mix(in srgb, var(--c) 70%, transparent);
  animation: hub-float 3.2s ease-in-out infinite; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.hub-pin:nth-child(2n) .hub-pin-badge { animation-delay: -1.1s; }
.hub-pin:nth-child(3n) .hub-pin-badge { animation-delay: -2.2s; }
.hub-pin-badge .hub-ico { width: 34px; height: 34px; stroke-width: 2.2; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
@keyframes hub-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hub-pin-ring { position: absolute; top: 0; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--c); opacity: 0; animation: hub-ring 2.4s ease-out infinite; pointer-events: none; }
@keyframes hub-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.hub-pin-label {
  display: flex; flex-direction: column; align-items: center; padding: 5px 12px 6px; border-radius: 14px; white-space: nowrap;
  background: rgba(13, 19, 33, .9); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 16px rgba(4, 10, 25, .4); /* no backdrop-filter: it re-samples the moving map every frame and flashes on mobile */
}
.hub-pin-name { font-size: 15px; font-weight: 800; letter-spacing: .01em; line-height: 1.1; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.hub-pin-stars { display: flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: #ffe39a; line-height: 1.2; }
.hub-pin-stars .hub-star { width: 13px; height: 13px; }
.hub-pin.is-empty .hub-pin-stars { color: rgba(255, 255, 255, .7); }
.hub-pin.is-empty .hub-pin-stars .hub-star { display: none; }
.hub-pin-lock { position: absolute; right: -6px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; display: none; place-items: center; background: #1c2537; border: 2px solid #fff; }
.hub-pin-lock .hub-ico { width: 15px; height: 15px; stroke-width: 2.6; color: #ffd25e; filter: none; }
.hub-pin.is-locked .hub-pin-lock { display: grid; }
.hub-pin.is-locked .hub-pin-badge { filter: grayscale(.85) brightness(.8); animation: none; box-shadow: 0 8px 18px rgba(4, 10, 25, .45); }
.hub-pin.is-locked .hub-pin-ring { display: none; }
.hub-pin.is-locked .hub-pin-label { opacity: .85; }
.hub-pin.is-locked .hub-pin-stars { color: #ffd25e; }
.hub-pin.is-done .hub-pin-label { border-color: rgba(255, 210, 94, .7); box-shadow: 0 0 14px rgba(255, 210, 94, .45), 0 6px 16px rgba(4, 10, 25, .4); }
.hub-pin-new { position: absolute; top: -8px; left: 50%; margin-left: 14px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .06em;
  background: linear-gradient(#ffc65c, #ff7a3d); color: #2a1300; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); animation: hub-pop 1.6s ease-in-out infinite; }
.hub-pin-new[hidden] { display: none; }
@keyframes hub-pop { 0%, 100% { transform: scale(1) rotate(-6deg); } 50% { transform: scale(1.12) rotate(4deg); } }
.hub-pin.is-next .hub-pin-badge { animation: hub-bounce 1.3s cubic-bezier(.3, 0, .4, 1) infinite; }
.hub-pin.is-next .hub-pin-ring { animation-duration: 1.3s; border-width: 4px; }
@keyframes hub-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } 55% { transform: translateY(0) scale(1.06, .94); } 70% { transform: translateY(-3px); } }
.hub-pin:hover .hub-pin-badge, .hub-pin:focus-visible .hub-pin-badge { transform: translateY(-4px) scale(1.08); }
.hub-pin:focus-visible .hub-pin-label { outline: 3px solid #ffc65c; outline-offset: 2px; }
.hub-pin.is-pressed .hub-pin-badge { transform: scale(.9); }
.hub-pin.shake { animation: hub-shake .45s ease; }
@keyframes hub-shake { 20%, 60% { margin-left: -6px; } 40%, 80% { margin-left: 6px; } }

/* ------------------------------------------------ top bar */
.hub-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: calc(10px + var(--hub-safe-t)) calc(12px + var(--hub-safe-r)) 0 calc(12px + var(--hub-safe-l)); pointer-events: none;
}
.hub-top > * { pointer-events: auto; }
.hub-me { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; cursor: pointer; font: inherit; min-height: 52px; max-width: 46vw; }
.hub-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid #ffc65c; background: #2a3b5c; box-shadow: 0 0 0 3px rgba(255, 198, 92, .2); }
.hub-avatar svg { width: 100%; height: 100%; display: block; }
.hub-me { position: relative; }
.hub-lvl { position: absolute; left: 32px; bottom: 0; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(180deg, #ffc65c, #ff7a3d); color: #1b2335; font-weight: 900; font-size: 12px; line-height: 1; border: 2px solid #0d1321; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.hub-me-txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: left; }
.hub-name { font-size: 16px; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hub-rank { font-size: 11.5px; font-weight: 700; color: #9fd8ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hub-xp { display: block; width: 92px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); margin-top: 3px; overflow: hidden; }
.hub-xp i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #49c6f2, #3ee08f); transition: width .6s ease; }
.hub-top-right { display: flex; gap: 8px; align-items: center; }
.hub-stars { display: flex; align-items: center; gap: 6px; padding: 0 16px 0 12px; height: 52px; border-radius: 999px; font-size: 20px; font-weight: 900; }
.hub-stars .hub-star { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(255, 210, 94, .6)); }
.hub-stars-max { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .55); }
.hub-btn { display: flex; align-items: center; gap: 8px; height: 52px; min-width: 52px; padding: 0 14px; cursor: pointer; font: inherit; font-weight: 800; font-size: 15px; justify-content: center; transition: transform .12s, background .2s; }
.hub-btn:hover, .hub-me:hover, .hub-zoom button:hover { background: rgba(30, 42, 66, .82); }
.hub-btn:active, .hub-me:active, .hub-zoom button:active { transform: scale(.94); }
.hub-btn-icon { padding: 0; width: 52px; }
.hub-btn .hub-ico { width: 26px; height: 26px; }
.hub-btn[data-act="garage"] .hub-ico { color: #ffc65c; }

/* ------------------------------------------------ zoom / compass / bottom */
.hub-zoom { position: absolute; z-index: 2; right: calc(12px + var(--hub-safe-r)); bottom: calc(90px + var(--hub-safe-b)); display: flex; flex-direction: column; gap: 8px; }
.hub-zoom button { width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; padding: 0; border-radius: 14px; transition: transform .12s; }
.hub-compass { position: absolute; z-index: 2; left: calc(12px + var(--hub-safe-l)); bottom: calc(14px + var(--hub-safe-b)); width: 58px; height: 58px; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.hub-compass svg { width: 100%; height: 100%; }
.hub-bottom { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--hub-safe-b)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: min(560px, calc(100% - 170px)); }
.hub-next { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; width: 100%; border-radius: 18px; animation: hub-rise .5s .2s both cubic-bezier(.2, .9, .3, 1.2); }
.hub-next[hidden] { display: none; }
@keyframes hub-rise { from { transform: translateY(30px); opacity: 0; } }
.hub-next-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hub-next-txt small { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffc65c; }
.hub-next-title { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-next-go { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-size: 17px; font-weight: 900; color: #2a1300;
  background: linear-gradient(180deg, #ffc65c, #ff7a3d); box-shadow: 0 6px 18px rgba(255, 122, 61, .45), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .12s; }
.hub-next-go .hub-ico { fill: #2a1300; stroke: none; width: 20px; height: 20px; }
.hub-next-go:hover { filter: brightness(1.06); }
.hub-next-go:active { transform: scale(.95); }
.hub-hint.is-gone { opacity: 0; transform: translateY(8px); }
.hub-hint { transition: opacity .6s, transform .6s; padding: 6px 12px; border-radius: 999px; background: rgba(13, 19, 33, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); text-align: center; }
.hub-next:not([hidden]) + .hub-hint { display: none; }

/* phones */
@media (max-width: 640px) {
  .hub-btn-txt { display: none; }
  .hub-btn[data-act="garage"] { width: 48px; padding: 0; }
  .hub-btn, .hub-stars, .hub-btn-icon { height: 48px; }
  .hub-btn-icon { width: 48px; }
  .hub-stars { padding: 0 12px 0 10px; font-size: 18px; }
  .hub-stars-max { display: none; }
  .hub-me { min-height: 48px; padding-right: 10px; }
  .hub-avatar { width: 38px; height: 38px; }
  .hub-xp { width: 70px; }
  .hub-zoom { top: calc(70px + var(--hub-safe-t)); bottom: auto; transform: none; gap: 6px; }
  .hub-zoom button { width: 44px; height: 44px; }
  .hub-bottom { width: calc(100% - 24px); left: 12px; transform: none; bottom: calc(10px + var(--hub-safe-b)); }
  .hub-compass { bottom: auto; top: calc(72px + var(--hub-safe-t)); width: 46px; height: 46px; }
  .hub-pin-badge, .hub-pin-ring { width: 54px; height: 54px; }
  .hub-pin { transform-origin: 50% 27px; transform: translate(-50%, -27px) scale(var(--inv)); }
  .hub-pin-badge .hub-ico { width: 28px; height: 28px; }
  .hub-pin-name { font-size: 13.5px; }
  .hub-pin-label { padding: 4px 9px 5px; }
}
/* short landscape phones */
@media (max-height: 500px) {
  .hub-btn, .hub-stars, .hub-btn-icon, .hub-me { height: 44px; min-height: 44px; }
  .hub-btn-icon, .hub-btn[data-act="garage"] { width: 44px; padding: 0; }
  .hub-btn-txt, .hub-stars-max, .hub-xp, .hub-hint { display: none; }
  .hub-avatar { width: 34px; height: 34px; }
  .hub-top { padding-top: calc(6px + var(--hub-safe-t)); }
  .hub-zoom { top: auto; bottom: calc(10px + var(--hub-safe-b)); transform: none; flex-direction: row; }
  .hub-zoom button { width: 44px; height: 44px; }
  .hub-compass { top: auto; bottom: calc(10px + var(--hub-safe-b)); width: 44px; height: 44px; }
  .hub-bottom { bottom: calc(8px + var(--hub-safe-b)); width: min(420px, calc(100% - 260px)); left: 50%; transform: translateX(-50%); }
  .hub-next { padding: 4px 4px 4px 12px; }
  .hub-next-go { height: 40px; }
  .hub-pin-badge, .hub-pin-ring { width: 48px; height: 48px; }
  .hub-pin { transform-origin: 50% 24px; transform: translate(-50%, -24px) scale(var(--inv)); }
  .hub-pin-badge .hub-ico { width: 26px; height: 26px; }
  .hub-pin-name { font-size: 12.5px; }
  .hub-pin-stars { font-size: 11px; }
  .hub-pin-label { padding: 3px 8px 4px; }
}
@media (max-width: 380px) { .hub-me-txt .hub-xp, .hub-rank { display: none; } }

/* reduced motion */
.hub-reduced *, .hub-reduced *::before, .hub-reduced *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hub *, .hub *::before, .hub *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* wide screens: the "next challenge" card sits bottom-left (next to the compass) so it never covers the clubhouse pin */
@media (min-width: 1100px) and (min-height: 600px) {
  .hub-bottom { left: 84px; transform: none; width: min(460px, calc(100% - 260px)); align-items: flex-start; }
}
/* slow devices (see KOS.Hub mount): the map stops moving, the place pins keep their bounce */
.hub-lite svg.hub-map * { animation: none !important; }
/* the painted menu background is fully covered by the harbour map: don't keep animating it underneath */
body[data-screen="hub"]:has(#screen-hub.hub-host) #menu-bg { display: none; }

/* ------------------------------------------------ "Alle steder" list + first-run "Start her" marker */
.hub-places { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: calc(16px + var(--hub-safe-t)) 14px calc(16px + var(--hub-safe-b)); background: rgba(5, 9, 20, .55); animation: hub-rise .25s both; }
.hub-places-in { width: min(460px, 100%); max-height: 100%; overflow: auto; padding: 14px; border-radius: 22px; }
.hub-places-in h2 { margin: 0 0 10px; font-size: 20px; font-weight: 900; text-align: center; }
.hub-places-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hub-place { display: flex; align-items: center; gap: 9px; min-height: 56px; padding: 6px 10px 6px 6px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(255, 255, 255, .07); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.hub-place:active { transform: scale(.97); }
.hub-place.is-next { border-color: #ffc65c; box-shadow: 0 0 0 2px rgba(255, 198, 92, .35); }
.hub-place.is-locked { opacity: .6; }
.hub-place-badge { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.hub-place-badge .hub-ico { width: 24px; height: 24px; }
.hub-place-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.hub-place-txt b { font-size: 14px; font-weight: 800; }
.hub-place-txt small { font-size: 11.5px; color: rgba(255, 255, 255, .7); font-weight: 700; }
.hub-places-close { display: block; width: 100%; min-height: 44px; margin-top: 10px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.hub-pin-start { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; color: #2a1300; background: linear-gradient(180deg, #ffe08a, #ffb02e); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); animation: hub-startbob 1.1s ease-in-out infinite; pointer-events: none; }
.hub-pin-start[hidden] { display: none; }
.hub-pin.is-start .hub-pin-ring { animation: hub-startpulse 1.4s ease-out infinite; }
@keyframes hub-startbob { 50% { transform: translateX(-50%) translateY(-4px); } }
@keyframes hub-startpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 198, 92, .75); } 100% { box-shadow: 0 0 0 22px rgba(255, 198, 92, 0); } }
@media (max-height: 500px) {
  /* short landscape phones: the next-challenge card sits bottom-left beside the compass, out of the middle of the map */
  .hub-bottom { top: calc(8px + var(--hub-safe-t)); bottom: auto; left: 50%; transform: translateX(-50%); width: max(236px, calc(100% - 450px)); max-width: 400px; }
  .hub-places-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hub-places-in h2 { display: none; }
}
@media (max-width: 380px) { .hub-places-grid { grid-template-columns: 1fr; } }

/* while dragging/pinching, freeze every map animation (see freeze() in hub.js: SMIL is paused there) so the moving
   layer is not repainted */
.hub-viewport.is-dragging, .hub-viewport.is-dragging * { animation-play-state: paused !important; }
