/* Gra „Gdzieś w Polsce” (/gdzie/, site/gdzie.js, dane z build/gdzie.py) - dokłada się do styles.css (barwy, pismo, nagłówek, stopka) */
.gdz [hidden] { display: none !important; }
html.gd-on { overflow: hidden; }

/* ---------- przyciski ---------- */
.gd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--bone); border-radius: 6px;
  background: transparent; color: var(--bone); font-stretch: 92%; font-weight: 640; font-size: 16px; line-height: 1.15; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .12s; }
.gd-btn:hover { border-color: var(--signal); color: var(--signal); }
.gd-btn:active { transform: translateY(1px); }
.gd-btn-p { border-color: var(--signal); background: var(--signal); color: var(--deep); font-weight: 740; }
.gd-btn-p:hover { border-color: var(--bone); background: var(--bone); color: var(--deep); }
.gd-btn:disabled { border-color: var(--rule); background: transparent; color: var(--line); cursor: default; transform: none; }
.gd-btn-xl { min-height: 60px; padding: 0 26px; font-size: 19px; border-radius: 8px; }

/* ---------- ekran startowy ---------- */
.gd { max-width: 1380px; margin: 0 auto; padding: 44px 24px 88px; }
.gd-lobby { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); grid-template-areas: "intro hero" "how how"; column-gap: 56px; row-gap: 56px; align-items: center; }
.gd-intro { grid-area: intro; }
.gd-kick { margin: 0 0 14px; font-stretch: 88%; font-weight: 640; font-size: 16px; letter-spacing: .01em; color: var(--signal); }
.gd-h { margin: 0; font-stretch: 118%; font-weight: 820; font-size: clamp(46px, 6.2vw, 92px); line-height: .92; letter-spacing: -.022em; text-wrap: balance; }
.gd-lead { margin: 22px 0 0; max-width: 30em; font-size: 19px; line-height: 1.45; text-wrap: pretty; }
.gd-tryb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.gd-tryb button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border: 1.5px solid var(--rule); border-radius: 10px; background: rgba(10, 38, 48, .55); color: var(--line); text-align: left;
  transition: border-color .15s, background .15s, color .15s; }
.gd-tryb button:hover:not(:disabled) { border-color: var(--line); color: var(--bone); }
.gd-tryb button[aria-checked="true"] { border-color: var(--signal); background: rgba(255, 194, 26, .09); color: var(--bone); }
.gd-tryb button:disabled { cursor: default; opacity: .55; }
.gd-tryb svg { flex: none; width: 46px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gd-tryb button[aria-checked="true"] svg { stroke: var(--signal); }
.gd-tryb span { display: flex; flex-direction: column; min-width: 0; }
.gd-tryb b { font-stretch: 104%; font-weight: 740; font-size: 17.5px; line-height: 1.15; color: var(--bone); }
.gd-tryb b i { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--rule); font-style: normal; font-stretch: 88%; font-weight: 620; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--bone); }
.gd-tryb small { margin-top: 3px; font-stretch: 90%; font-size: 14px; line-height: 1.3; }
.gd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.gd-sub { margin: 14px 0 0; font-size: 15.5px; color: var(--line); }
.gd-sub b { color: var(--bone); font-variant-numeric: tabular-nums; }
/* przełącznik zegara w treningu: pastylka z zegarem zaraz pod przyciskami (wygląd jak pastylka muzyki, trochę większa) */
.gd-trzb { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 15px 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: none; font: inherit; font-size: 15.5px; color: var(--bone); cursor: pointer; }
.gd-trzb[hidden] { display: none; }
.gd-trzb svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gd-trzb:hover { border-color: var(--signal); }
.gd-trzb[aria-pressed="true"] { border-color: var(--signal); background: rgba(255, 194, 26, .09); }
.gd-trzb[aria-pressed="true"] svg { stroke: var(--signal); }
.gd-trzb:disabled { opacity: .6; cursor: default; }
/* przypomnienia push: pastylka na starcie (.gd-pushl), na ekranie wyniku ramka (.gd-push) albo pastylka po włączeniu */
.gd-pushl[hidden] { display: none; }
.gd-pushs { margin-top: 18px; }
.gd-pushs:empty { display: none; }
.gd-push { max-width: 34em; padding: 15px 16px 16px; border: 1.5px solid var(--signal); border-radius: 10px; background: rgba(255, 194, 26, .07); }
.gd-push-k { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; font-stretch: 104%; font-weight: 760; font-size: 18px; color: var(--bone); }
.gd-push-k svg, .gd-trzb svg[viewBox="0 0 24 24"] { flex: none; width: 21px; height: 21px; fill: none; stroke: var(--signal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gd-trzb[aria-pressed="false"] svg[viewBox="0 0 24 24"] { stroke: currentColor; }
.gd-push-t { margin: 0; font-size: 15.5px; line-height: 1.42; color: var(--bone); }
.gd-push .gd-btn { margin-top: 13px; width: 100%; min-height: 48px; }
.gd-push.is-info { border-color: var(--line); background: rgba(127, 163, 174, .08); }
.gd-push.is-info .gd-push-k svg { stroke: var(--line); }
.gd-push-m { margin: 8px 0 0; font-size: 14.5px; color: var(--line); overflow-wrap: anywhere; }
.gd-push-m.is-err { color: var(--signal); }
.gd-push-kroki { margin: 10px 0 0; padding-left: 1.4em; font-size: 15.5px; line-height: 1.45; color: var(--bone); }
.gd-push-kroki li { margin-top: 6px; padding-left: 2px; }
.gd-push-kroki li::marker { font-weight: 760; color: var(--line); }
/* ikonka z paska przeglądarki w tekście: jasny „guziczek” jak w Chrome */
.gd-ik { display: inline-flex; align-items: center; justify-content: center; width: 1.3em; height: 1.3em; margin: 0 2px; vertical-align: -.05em; border-radius: 50%; background: #E9EEF0; color: #1F2A30; }
.gd-ik-l { width: 1.6em; border-radius: 999px; }
.gd-ik svg { display: block; width: .9em; height: .9em; fill: currentColor; stroke: none; }
.gd-ik-l svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* telefon: dźwięk i muzyka jako dwie ikonki obok nagłówka (na komputerze ukryte, tam jest blok po prawej) */
.gd-dzwm { display: none; }
.gd-dzwm .gd-snd { border-color: var(--line); }
.gd-dzwm .gd-snd[aria-pressed="false"] svg { stroke: var(--bone); }
.gd-dzwm .gd-snd[aria-pressed="true"] { border-color: var(--signal); background: rgba(255, 194, 26, .12); }
.gd-dzwm .gd-snd[aria-pressed="true"] svg { stroke: var(--signal); }
@media (max-width: 340px) { .gd-dzwm { gap: 6px; } .gd-dzwm .gd-x { width: 36px; height: 36px; } }
.gd-note { margin: 8px 0 0; max-width: 36em; font-size: 14px; line-height: 1.4; color: var(--line); }
.gd-note a { color: var(--line); }
.gd-msg { margin: 10px 0 0; min-height: 1.4em; font-size: 15.5px; color: var(--signal); }
.gd-err { margin: 20px 0 0; }

.gd-chal { margin-top: 26px; padding: 16px 18px 17px; border: 1.5px solid var(--signal); border-radius: 10px; background: rgba(255, 194, 26, .07); }
.gd-chal-k { margin: 0 0 4px; font-stretch: 88%; font-weight: 720; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--signal); }
.gd-chal-t { margin: 0; font-size: 17px; line-height: 1.4; }
.gd-chal-t b { font-weight: 780; font-variant-numeric: tabular-nums; }

.gd-stats { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); }
.gd-stats div { display: flex; flex-direction: column-reverse; }
.gd-stats dd { margin: 0; font-stretch: 112%; font-weight: 780; font-size: 30px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.gd-stats dt { font-stretch: 88%; font-size: 14px; color: var(--line); }

/* Polska ze znakami zapytania */
/* prawa kolumna: karta dźwięku nad mapą */
.gd-side { grid-area: hero; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; min-width: 0; }
.gd-dzwk { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 100%; }
.gd-dzw { display: flex; align-items: center; gap: 14px; width: 380px; max-width: 100%; padding: 12px 18px 12px 12px; border: 1.5px solid var(--signal); border-radius: 12px; background: rgba(255, 194, 26, .09); font: inherit; color: var(--bone); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.gd-dzw svg { box-sizing: content-box; flex: none; width: 24px; height: 24px; padding: 11px; border-radius: 50%; background: var(--signal); fill: none; stroke: var(--deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gd-dzw span { display: flex; flex-direction: column; min-width: 0; }
.gd-dzw b { font-stretch: 104%; font-weight: 740; font-size: 17.5px; line-height: 1.15; }
.gd-dzw small { margin-top: 3px; font-stretch: 90%; font-size: 14px; line-height: 1.3; color: var(--line); }
.gd-dzw:hover { background: rgba(255, 194, 26, .16); }
.gd-dzw[aria-pressed="true"] { border-color: var(--rule); background: rgba(10, 38, 48, .55); }
.gd-dzw[aria-pressed="true"]:hover { border-color: var(--line); }
.gd-dzw[aria-pressed="true"] svg { background: none; box-shadow: inset 0 0 0 1.5px var(--signal); stroke: var(--signal); }
.gd-muzb { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border: 1px solid var(--rule); border-radius: 999px; background: none; font: inherit; font-size: 14px; color: var(--line); cursor: pointer; }
.gd-muzb svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gd-muzb:hover { border-color: var(--signal); color: var(--bone); }
.gd-muzb[aria-pressed="true"] { border-color: var(--signal); color: var(--bone); }
.gd-muzb[aria-pressed="true"] svg { stroke: var(--signal); }
.gd-hero { margin: 0; align-self: center; width: min(100%, 620px); }
.gd-hero svg { display: block; width: 100%; height: auto; overflow: visible; }
.gd-h-pl { fill: var(--land); stroke: rgba(230, 223, 204, .75); stroke-width: 7; stroke-linejoin: round; }
.gd-h-woj { fill: none; stroke: rgba(230, 223, 204, .16); stroke-width: 4; }
.gd-h-k { fill: var(--signal); }
.gd-h-f { fill: none; stroke: var(--signal); stroke-width: 10; opacity: 0; transform-box: fill-box; transform-origin: center; animation: gd-fala 3.4s ease-out calc(var(--i) * .68s) infinite; }
.gd-h-z text { fill: var(--deep); font: 840 124px var(--sans); text-anchor: middle; }
.gd-h-z .gd-h-k, .gd-h-z text { transform-box: fill-box; transform-origin: center; animation: gd-skok 3.4s ease-in-out calc(var(--i) * .68s) infinite; }
@keyframes gd-fala { 0% { opacity: .7; transform: scale(.8); } 45%, 100% { opacity: 0; transform: scale(2.3); } }
@keyframes gd-skok { 0%, 30%, 100% { transform: translateY(0); } 10% { transform: translateY(-34px); } }

.gd-how { grid-area: how; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: jak;
  border-top: 1px solid var(--rule); }
.gd-how li { counter-increment: jak; padding: 24px 28px 4px 0; }
.gd-how li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.gd-how li::before { content: counter(jak); display: block; margin-bottom: 8px; font-stretch: 118%; font-weight: 820; font-size: 30px; line-height: 1; color: var(--signal); }
.gd-how b { display: block; margin-bottom: 6px; font-stretch: 106%; font-weight: 740; font-size: 19px; }
.gd-how span { font-size: 16px; line-height: 1.45; color: #C9C8BA; }

/* ---------- scena gry ---------- */
.gd-stage { position: fixed; inset: 0; z-index: 40; background: #071C24; overflow: hidden; height: 100vh; height: 100dvh; }
.gd-view { position: absolute; inset: 0; overflow: hidden; background: #071C24; }
.gd-view.is-load::after { content: "Szukam miejsca…"; position: absolute; inset: 0; display: grid; place-items: center; background: #071C24;
  font-stretch: 88%; font-weight: 620; font-size: 17px; color: var(--line); animation: gd-puls 1.2s ease-in-out infinite; }
@keyframes gd-puls { 50% { opacity: .55; } }
/* osadzany widok Google: wyższy o --tnij i przesunięty w górę, żeby karta z nazwą miejsca była poza ekranem; dół (logo i prawa Google) zostaje widoczny */
.gd-pano { position: absolute; left: 0; top: calc(-1 * var(--tnij, 110px)); width: 100%; height: calc(100% + var(--tnij, 110px)); border: 0; }
/* widok z lotu ptaka: kafle zdjęcia lotniczego przesuwane i skalowane przez site/gdzie.js; lekko podbity kontrast i barwy (zdjęcia bywają wyblakłe) */
.gd-lot { position: absolute; inset: 0; overflow: hidden; background: #0B1F26; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.gd-lot.is-drag { cursor: grabbing; }
.gd-lot-k { position: absolute; inset: 0; filter: contrast(1.16) saturate(1.32) brightness(1.03); }
.gd-lot-k img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; transform-origin: 0 0; opacity: 0; transition: opacity .22s; pointer-events: none; }
.gd-lot-k img.is-ok { opacity: 1; }
.gd-lot-k img.gd-lot-b { z-index: 1; }                 /* podkład całej ramki: zawsze pod spodem */
.gd-lot-k img.gd-lot-o { z-index: 4; width: 0; height: 0; transition: opacity .35s; } /* wyostrzone zdjęcie na wierzchu */
.gd-lot-z { position: absolute; z-index: 3; right: 14px; top: 78px; display: flex; flex-direction: column; gap: 6px; }
.gd-lot-z button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(230, 223, 204, .45); border-radius: 8px; background: rgba(10, 38, 48, .9);
  font-weight: 600; font-size: 26px; line-height: 1; transition: border-color .15s, color .15s, opacity .15s; }
.gd-lot-z button:hover { border-color: var(--signal); color: var(--signal); }
.gd-lot-z button:disabled { opacity: .4; cursor: default; border-color: var(--rule); color: var(--bone); }
.gd-lot-s { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding: 6px 9px 5px; border-radius: 6px; background: rgba(7, 28, 36, .78);
  font-stretch: 88%; font-weight: 640; font-size: 13.5px; font-variant-numeric: tabular-nums; pointer-events: none; }
.gd-lot-s b { display: none; font-weight: 560; color: var(--signal); }
.gd-lot.is-ostrz .gd-lot-s b { display: block; animation: gd-puls 1s ease-in-out infinite; }
.gd-lot-s i { display: block; height: 6px; border: 1.5px solid var(--bone); border-top: 0; transition: width .15s; }
.gd-stage.is-odp:not(.is-zerk) .gd-view { visibility: hidden; }

/* pasek gry */
.gd-hud { position: absolute; z-index: 8; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 44px 1fr auto 1fr; align-items: center; gap: 10px;
  padding: max(8px, env(safe-area-inset-top)) 14px 8px; background: linear-gradient(rgba(7, 28, 36, .94), rgba(7, 28, 36, .78) 70%, rgba(7, 28, 36, 0)); pointer-events: none; }
.gd-hud > * { pointer-events: auto; }
.gd-x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: rgba(10, 38, 48, .8); }
.gd-x svg { width: 15px; height: 15px; fill: none; stroke: var(--bone); stroke-width: 2; stroke-linecap: round; }
.gd-x:hover { border-color: var(--signal); }
.gd-hud-rnd { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-stretch: 90%; font-weight: 660; font-size: 15.5px; }
.gd-dots { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.gd-dots li { width: 22px; height: 6px; border-radius: 3px; background: var(--q); box-shadow: inset 0 0 0 1.5px rgba(127, 163, 174, .55); }
.gd-dots li.is-cur { box-shadow: inset 0 0 0 1.5px var(--bone); }
.gd-clock { grid-column: 3; position: relative; width: 52px; height: 52px; }
.gd-clock svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.gd-clock circle { fill: none; stroke-width: 4; }
.gd-clock-bg { fill: rgba(10, 38, 48, .82) !important; stroke: rgba(127, 163, 174, .35); }
.gd-clock-fg { stroke: var(--signal); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset .2s linear; }
.gd-clock b { position: absolute; inset: 0; display: grid; place-items: center; font-stretch: 100%; font-weight: 780; font-size: 19px; font-variant-numeric: tabular-nums; }
.gd-clock.is-low .gd-clock-fg { stroke: #FF5A45; }
.gd-clock.is-low b { color: #FF8A7A; animation: gd-puls .5s ease-in-out infinite; }
.gd-hud-r { grid-column: 4; justify-self: end; display: flex; align-items: center; gap: 12px; }
.gd-hud-pts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
/* głośnik i nutka w pasku gry (te same przełączniki co na starcie: [data-dzw] = cały dźwięk, [data-muz] = sama muzyka) */
.gd-snd svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--bone); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[aria-pressed="true"] > svg .gd-snd-off, [aria-pressed="false"] > svg .gd-snd-on { display: none; }
.gd-snd[aria-pressed="false"] svg { stroke: var(--line); }
.gd-snd[aria-pressed="true"] { border-color: var(--signal); }
.gd-hud-pts span { font-stretch: 88%; font-size: 13px; color: var(--line); }
.gd-hud-pts b { font-stretch: 110%; font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.gd-src { position: absolute; z-index: 4; left: 12px; bottom: 10px; margin: 0; padding: 4px 9px; border-radius: 5px; background: rgba(7, 28, 36, .82); font-stretch: 88%; font-size: 13px; color: var(--bone); }
.gd-src:empty { display: none; }

/* mapa: mała przy widoku (po lewej u dołu, żeby nie zasłaniać oznaczeń Google przy dolnej krawędzi), rozwinięta, cały ekran po odsłonięciu */
.gd-mapbox { position: absolute; z-index: 6; left: 16px; bottom: 44px; display: flex; flex-direction: column; width: 320px; height: 300px;
  border: 1px solid rgba(230, 223, 204, .5); border-radius: 12px; background: var(--deep); overflow: hidden; box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  transition: width .2s cubic-bezier(.3, 0, .2, 1), height .2s cubic-bezier(.3, 0, .2, 1), opacity .15s; }
.gd-mapbox.is-mini { opacity: 1; }
.gd-mapbox.is-open { width: min(58vw, 980px); height: min(calc(100dvh - 130px), 780px); }
.gd-mapbox.is-full { left: 0; right: 0; top: 0; bottom: 0; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; transition: none; }
.gd-mapbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 4px 6px 4px 14px; border-bottom: 1px solid var(--rule); }
.gd-mapbar-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-stretch: 90%; font-weight: 660; font-size: 15px; }
.gd-mapbar-x { flex: none; display: none; min-height: 36px; padding: 0 12px; border: 0; background: none; font-stretch: 88%; font-weight: 620; font-size: 14.5px; color: var(--signal); }
.gd-mapbox.is-full .gd-mapbar, .gd-mapbox.is-full .gd-ok { display: none; }
.gd-mapw { position: relative; flex: 1 1 auto; min-height: 0; background: var(--ocean); touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.gd-mapbox.is-full .gd-mapw { cursor: grab; }
#gd-map { display: block; width: 100%; height: 100%; }
.gd-ok { flex: none; margin: 8px; min-height: 48px; font-size: 17px; }
.gd-open { position: absolute; z-index: 6; left: 50%; bottom: 46px; display: none; transform: translateX(-50%); min-height: 54px; padding: 0 30px; font-size: 18px; border-radius: 27px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.gd-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 5px; }
.gd-zoom button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: rgba(10, 38, 48, .9); font-weight: 600; font-size: 22px; line-height: 1; }
.gd-zoom button:hover { border-color: var(--signal); color: var(--signal); }
.gd-zoom svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gd-mapbox.is-full .gd-zoom { top: 84px; right: 14px; }
.gd-tip { position: absolute; z-index: 2; margin: 0; padding: 4px 9px; border-radius: 5px; background: var(--bone); color: var(--deep); font-stretch: 88%; font-weight: 640; font-size: 13.5px;
  white-space: nowrap; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); }

/* rysunek mapy */
/* rzeźba ma Polskę przyciemnioną (pod kolorowe gminy innych map): tu przygaszamy otoczenie, a Polskę rozjaśniamy, rzeki i góry zostają widoczne */
.gd-m-cien { fill: rgba(7, 28, 36, .66); }
.gd-m-lad { fill: #4A8C9C; stroke: none; mix-blend-mode: screen; }
.gd-m-gm path { fill: none; stroke: rgba(7, 28, 36, .42); stroke-width: .7; vector-effect: non-scaling-stroke; }
#gd-map.is-far .gd-m-gm, #gd-map.is-mid.is-ruch .gd-m-gm { display: none; }
.gd-m-woj { fill: none; stroke: rgba(7, 28, 36, .78); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.gd-m-kraj { fill: none; stroke: var(--bone); stroke-width: 1.9; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.gd-m-wyb { fill: rgba(230, 223, 204, .16); stroke: var(--bone); stroke-width: 1.6; vector-effect: non-scaling-stroke; fill-rule: evenodd; pointer-events: none; }
.gd-m-cel { fill: rgba(255, 194, 26, .3); stroke: var(--signal); stroke-width: 2; vector-effect: non-scaling-stroke; fill-rule: evenodd; pointer-events: none; }
.gd-m-nap { pointer-events: none; }
.gd-m-nap circle { fill: var(--bone); stroke: var(--deep); stroke-width: .5; vector-effect: non-scaling-stroke; }
.gd-m-nap text { fill: var(--bone); stroke: rgba(7, 28, 36, .88); paint-order: stroke; stroke-linejoin: round; text-anchor: middle; font-family: var(--sans); font-weight: 700; font-stretch: 94%; }
.gd-m-lin { stroke: var(--bone); stroke-width: 2.4; stroke-dasharray: 7 6; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.gd-m-pin path { fill: var(--bone); stroke: var(--deep); stroke-width: 1.4; }
.gd-m-pin circle { fill: var(--deep); }
.gd-m-pin, .gd-m-punkt { pointer-events: none; }
.gd-m-kolo { fill: var(--signal); stroke: var(--deep); stroke-width: 1.6; }
.gd-m-flaga { fill: var(--deep); stroke: var(--deep); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.gd-m-fala { fill: none; stroke: var(--signal); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: gd-fala2 1.7s ease-out infinite; }
@keyframes gd-fala2 { 0% { opacity: .85; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }

/* karta wyniku po odsłonięciu */
.gd-res { position: absolute; z-index: 7; left: 20px; bottom: 24px; width: min(420px, calc(100% - 40px)); }
.gd-res-in { padding: 20px 22px 22px; border: 1px solid rgba(230, 223, 204, .35); border-top: 5px solid var(--q); border-radius: 12px; background: rgba(10, 38, 48, .96); box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  animation: gd-wjazd .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes gd-wjazd { from { opacity: 0; transform: translateY(18px); } }
.gd-res-k { margin: 0; font-stretch: 110%; font-weight: 800; font-size: 27px; line-height: 1.08; letter-spacing: -.012em; color: var(--q); text-wrap: balance; }
.gd-res-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 12px; }
.gd-res-km { margin: 0; font-size: 17px; color: var(--line); }
.gd-res-km b { font-weight: 760; font-size: 20px; color: var(--bone); font-variant-numeric: tabular-nums; }
.gd-res-pkt { margin: 0; font-stretch: 88%; font-size: 16px; color: var(--line); white-space: nowrap; }
.gd-res-pkt b { font-stretch: 112%; font-weight: 820; font-size: 34px; line-height: 1; color: var(--signal); font-variant-numeric: tabular-nums; }
.gd-res-ryw { margin: 6px 0 0; font-size: 15px; color: var(--line); text-align: right; }
.gd-res-ryw b { color: var(--bone); font-variant-numeric: tabular-nums; }
.gd-res-gm { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.gd-res-n { margin: 0; font-stretch: 108%; font-weight: 780; font-size: 24px; line-height: 1.1; }
.gd-res-s { margin: 3px 0 0; font-stretch: 90%; font-size: 15px; color: var(--line); }
.gd-res-f { margin: 10px 0 0; font-size: 16px; line-height: 1.4; }
.gd-res-f b { font-weight: 740; font-variant-numeric: tabular-nums; }
.gd-res-a { display: inline-block; margin-top: 8px; font-size: 15.5px; }
.gd-res-g { margin: 12px 0 0; font: italic 400 16.5px/1.35 var(--note); color: #C9C8BA; }
.gd-res-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gd-res-act .gd-btn-p { flex: 1 1 auto; min-height: 52px; font-size: 17.5px; }
.gd-stage.is-zerk .gd-mapbox { display: none; }
.gd-stage.is-zerk .gd-res-in > :not(.gd-res-act) { display: none; }
.gd-stage.is-zerk .gd-res-in { border-top-width: 1px; padding: 10px; }
.gd-stage.is-zerk .gd-res-act { margin-top: 0; }
.gd-stage.is-zerk .gd-res { width: auto; bottom: 44px; }

/* okno z pytaniem */
.gd-dlg { width: min(92vw, 400px); padding: 22px; border: 1px solid var(--rule); border-radius: 12px; background: var(--deep); color: var(--bone); }
.gd-dlg::backdrop { background: rgba(5, 20, 26, .74); }
.gd-dlg-h { margin: 0; font-stretch: 108%; font-weight: 760; font-size: 21px; }
.gd-dlg-p { margin: 8px 0 0; font-size: 16px; color: #C9C8BA; }
.gd-dlg-i { display: block; width: 100%; margin-top: 14px; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--ocean); color: var(--bone); font: inherit; }
.gd-dlg-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ---------- podsumowanie ---------- */
.gd-sum { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); column-gap: 56px; align-items: start; }
.gd-sum-h { display: flex; align-items: baseline; gap: 12px; margin: 0; font-stretch: 116%; font-weight: 840; font-size: clamp(64px, 8.4vw, 124px); line-height: .9; letter-spacing: -.03em; color: var(--signal); font-variant-numeric: tabular-nums; }
.gd-sum-h small { font-stretch: 100%; font-weight: 620; font-size: .26em; letter-spacing: 0; color: var(--line); }
.gd-rank { margin: 16px 0 0; font-size: 19px; }
.gd-rank b { font-weight: 760; }
.gd-poj { margin-top: 22px; padding: 14px 18px 16px; border: 1.5px solid var(--signal); border-radius: 10px; background: rgba(255, 194, 26, .07); }
.gd-poj-k { margin: 0; font-stretch: 108%; font-weight: 780; font-size: 22px; color: var(--signal); }
.gd-poj-w { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 0; }
.gd-poj-w span { display: flex; flex-direction: column; font-stretch: 88%; font-size: 14px; color: var(--line); }
.gd-poj-w b { font-stretch: 110%; font-weight: 800; font-size: 30px; line-height: 1.05; color: var(--bone); font-variant-numeric: tabular-nums; }
.gd-poj-w i { font-style: normal; font-weight: 700; font-size: 26px; color: var(--line); }
.gd-rows { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.gd-rows li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 62px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.gd-rows.ma-rywala li { grid-template-columns: 14px minmax(0, 1fr) auto 62px 58px; }
.gd-rows i { width: 14px; height: 14px; border-radius: 3px; background: var(--q); }
.gd-row-n { display: flex; flex-direction: column; min-width: 0; font-weight: 640; font-size: 17px; line-height: 1.2; }
.gd-row-n small { font-stretch: 88%; font-weight: 460; font-size: 14px; color: var(--line); }
.gd-row-km { font-stretch: 88%; font-size: 15px; color: var(--line); white-space: nowrap; }
.gd-row-p { text-align: right; font-stretch: 106%; font-weight: 780; font-size: 19px; font-variant-numeric: tabular-nums; }
.gd-row-r { text-align: right; font-size: 16px; color: var(--line); font-variant-numeric: tabular-nums; }
.gd-row-r.is-win { color: var(--bone); font-weight: 700; }
.gd-rows-h { padding: 6px 0 !important; font-stretch: 88%; font-size: 13px; color: var(--line); }
.gd-rows-h b, .gd-rows-h span:last-child { text-align: right; font-weight: 500; }
.gd-rows-h i { background: none; }
.gd-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-stretch: 88%; font-size: 13.5px; color: var(--line); }
.gd-key span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gd-key i { width: 11px; height: 11px; border-radius: 3px; background: var(--q); }
.gd-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
/* wyniki dnia wszystkich grających */
.gd-inni { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rule); }
.gd-sh { margin: 0 0 10px; font-stretch: 108%; font-weight: 740; font-size: 21px; line-height: 1.2; }
.gd-inni-p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.45; text-wrap: pretty; }
.gd-inni-p b { font-weight: 760; color: var(--signal); font-variant-numeric: tabular-nums; }
.gd-inni-t { margin-top: 14px; }
/* jak poszło dziś innym: dziesięć słupków co 500 punktów, słupek z wynikiem gracza żółty i podpisany „ty” */
.gd-por-w { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; align-items: end; max-width: 460px; height: 112px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.gd-por-s { position: relative; display: flex; align-items: flex-end; height: 100%; }
.gd-por-s i { display: block; width: 100%; height: max(3px, var(--h)); border-radius: 3px 3px 0 0; background: var(--land); }
.gd-por-s.zero i { height: 3px; background: rgba(127, 163, 174, .28); }
.gd-por-s.me i { background: var(--signal); }
.gd-por-s b { position: absolute; left: 50%; bottom: calc(max(3px, var(--h)) + 4px); transform: translateX(-50%); font-stretch: 88%; font-weight: 760; font-size: 13.5px; line-height: 1; color: var(--signal); }
.gd-por-o { display: flex; justify-content: space-between; max-width: 460px; margin-top: 5px; font-stretch: 88%; font-weight: 560; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--line); }
.gd-inni-t b { color: var(--bone); }
.gd-dist { display: grid; grid-template-columns: repeat(10, 1fr); align-items: end; gap: 4px; height: 96px; padding-bottom: 1px; border-bottom: 1.5px solid var(--line); }
.gd-dist i { display: block; height: max(2px, var(--h)); border-radius: 3px 3px 0 0; background: var(--line); opacity: .55; }
.gd-dist i.me { background: var(--signal); opacity: 1; }
.gd-dist-o { display: flex; justify-content: space-between; margin: 4px 0 0; font-stretch: 88%; font-size: 13px; color: var(--line); font-variant-numeric: tabular-nums; }
.gd-note2 { margin: 14px 0 0; font: italic 400 15px/1.35 var(--note); color: var(--line); }
/* ranking: zakładki Dziś / Ogólny, pole nicku, lista miejsc */
.gd-rk-tabs { display: inline-flex; margin-bottom: 14px; border: 1.5px solid var(--rule); border-radius: 8px; overflow: hidden; }
.gd-rk-tabs button { min-height: 40px; padding: 0 18px; border: 0; background: transparent; color: var(--line); font-stretch: 92%; font-weight: 640; font-size: 15.5px; }
.gd-rk-tabs button[aria-selected="true"] { background: var(--signal); color: var(--deep); }
/* cztery zakładki rankingu na telefonie: cała szerokość, po równo (27.11.2026) */
@media (max-width: 520px) { .gd-rk-tabs { display: flex; width: 100%; } .gd-rk-tabs button { flex: 1 1 auto; padding: 0 6px; font-size: 15px; } }
.gd-rk-ty { font-weight: 760; color: var(--bone); }
/* podium zeszłego tygodnia nad tabelą tygodnia */
.gd-rk-pod { margin: 0 0 14px; padding: 11px 14px 8px; border: 1px solid var(--rule); border-radius: 10px; background: rgba(255, 194, 26, .05); }
.gd-rk-pod-h { margin: 0 0 6px; font-stretch: 92%; font-weight: 720; font-size: 15px; color: var(--signal); }
.gd-rk-pod-h span { font-weight: 560; color: var(--line); }
.gd-rk-pod ol { margin: 0; padding: 0; list-style: none; }
.gd-rk-pod li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding: 4px 0; font-size: 15.5px; }
.gd-rk-pod li b { font-weight: 760; font-variant-numeric: tabular-nums; }
.gd-nick { margin: 0 0 14px; padding: 14px 16px 16px; border: 1.5px solid var(--signal); border-radius: 10px; background: rgba(255, 194, 26, .07); }
.gd-nick label { display: block; margin-bottom: 8px; font-weight: 660; font-size: 16.5px; line-height: 1.4; text-wrap: pretty; }
.gd-nick label b { font-weight: 780; color: var(--signal); white-space: nowrap; }
/* ramka z nickiem zaraz pod wynikiem (od 26.11.2026; wcześniej na dole, w rankingu) i zdanie po zapisie */
.gd-nickbox { margin-top: 20px; }
.gd-nickbox .gd-nick { margin: 0; }
.gd-nickbox .gd-msg { margin-top: 8px; }
.gd-nick-raz { margin: 9px 0 0; font-size: 14px; line-height: 1.35; color: var(--line); }
.gd-nick-ok { margin: 0; padding: 11px 14px; border-left: 3px solid var(--signal); border-radius: 0 8px 8px 0; background: rgba(255, 194, 26, .07); font-size: 16.5px; line-height: 1.4; }
.gd-nick-ok b { font-weight: 780; color: var(--signal); white-space: nowrap; }
.gd-nick-ok a { white-space: nowrap; }
@media (max-width: 480px) { .gd-nick div { flex-direction: column; } .gd-nick .gd-btn { width: 100%; } }
.gd-nick div { display: flex; gap: 8px; }
.gd-nick input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--ocean); color: var(--bone); font: inherit; font-weight: 600; }
.gd-nick input:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.gd-nick .gd-btn { flex: none; min-height: 48px; }
.gd-rk { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.gd-rk li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 76px; align-items: center; gap: 10px; padding: 8px 8px; border-bottom: 1px solid var(--rule); font-size: 16.5px; }
.gd-rk li.me { background: rgba(255, 194, 26, .12); box-shadow: inset 3px 0 0 var(--signal); }
.gd-rk-m { font-stretch: 100%; font-weight: 760; color: var(--line); font-variant-numeric: tabular-nums; }
/* podium: numer miejsca 1 złoty, 2 srebrny, 3 brązowy (klasa z numeru miejsca, nie z pozycji na liście) */
.gd-rk-m.m1 { color: #FFC21A; }
.gd-rk-m.m2 { color: #D3DBDF; }
.gd-rk-m.m3 { color: #D98F56; }
.gd-rk-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 640; }
.gd-rk-r { font-stretch: 88%; font-size: 14px; color: var(--line); white-space: nowrap; }
.gd-rk-p { grid-column: 4; text-align: right; font-stretch: 106%; font-weight: 780; font-variant-numeric: tabular-nums; }
.gd-rk-brak { margin: 0 0 12px; padding: 10px 13px; border: 1px solid var(--signal); border-radius: 8px; background: rgba(255, 194, 26, .07); font-size: 15.5px; line-height: 1.4; color: var(--bone); }
.gd-rk-brak b { color: var(--signal); }
.gd-rk-gap { display: block !important; padding: 2px 8px !important; text-align: center; color: var(--line); }
.gd-act .gd-btn-p { min-height: 54px; padding: 0 24px; font-size: 18px; }
.gd-next { margin: 18px 0 0; font-size: 16px; color: var(--line); }
.gd-next b { font-weight: 760; color: var(--signal); font-variant-numeric: tabular-nums; }
.gd-sum-map { margin: 0; justify-self: center; width: min(100%, 640px); }
.gd-sum-map figcaption { margin-top: 8px; font: italic 400 15.5px/1.35 var(--note); color: var(--line); text-align: center; }
.gd-sm { display: block; width: 100%; height: auto; overflow: visible; }
.gd-sm-pl { fill: var(--land); stroke: rgba(230, 223, 204, .75); stroke-width: 7; stroke-linejoin: round; }
.gd-sm-woj { fill: none; stroke: rgba(230, 223, 204, .18); stroke-width: 4; }
.gd-sm-l { stroke: var(--bone); stroke-width: 9; stroke-dasharray: 26 22; stroke-linecap: round; opacity: .8; }
.gd-sm-g { fill: var(--bone); stroke: var(--deep); stroke-width: 6; }
.gd-sm-c { fill: var(--q); stroke: var(--deep); stroke-width: 8; }
.gd-sm-t { fill: var(--deep); font: 820 124px var(--sans); text-anchor: middle; }

/* ---------- telefon ---------- */
@media (max-width: 900px) {
  .gd-lobby { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "hero" "how"; row-gap: 36px; }
  .gd-hero { width: min(100%, 420px); }
  .gd-side { align-items: stretch; }
  .gd-dzwk { display: none; }
  .gd-intro { position: relative; }
  .gd-dzwm { display: flex; gap: 8px; position: absolute; right: 0; top: 38px; }
  .gd-sum { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
}
@media (max-width: 760px) {
  .gd { padding: 28px 18px 64px; }
  .gd-lead { font-size: 17.5px; }
  .gd-cta { flex-direction: column; }
  .gd-btn-xl { width: 100%; }
  .gd-how { grid-template-columns: minmax(0, 1fr); }
  .gd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .gd-how li, .gd-how li + li { padding: 18px 0 4px; border-left: 0; }
  .gd-how li + li { border-top: 1px solid var(--rule); margin-top: 14px; }
  .gd-hud { grid-template-columns: 40px 1fr auto 1fr; gap: 8px; padding-left: 10px; padding-right: 10px; }
  .gd-x { width: 40px; height: 40px; }
  .gd-hud-r { gap: 8px; }
  .gd-hud-rnd { font-size: 14px; }
  .gd-dots li { width: 16px; }
  .gd-clock { width: 46px; height: 46px; }
  .gd-hud-pts b { font-size: 21px; }
  /* mapa wysuwa się od dołu, a widok kurczy się do reszty ekranu (nie jest zasłaniany) */
  .gd-open { display: inline-flex; }
  .gd-mapbox { left: 0; right: 0; bottom: 0; width: auto; height: 66dvh; border-radius: 14px 14px 0 0; border-width: 1px 0 0; transition: transform .22s cubic-bezier(.3, 0, .2, 1); }
  .gd-mapbox.is-mini { transform: translateY(105%); opacity: 1; visibility: hidden; }
  .gd-mapbox.is-open { width: auto; height: 66dvh; }
  .gd-mapbar-x { display: inline-flex; align-items: center; }
  .gd-stage.is-map .gd-view { bottom: 66dvh; }
  .gd-ok { margin: 8px 10px max(10px, env(safe-area-inset-bottom)); min-height: 54px; font-size: 18px; }
  .gd-res { left: 0; right: 0; bottom: 0; width: auto; }
  /* karta wyniku na telefonie ma być niska, żeby nad nią została mapa ze strzałem i celem: ciaśniejszy skład, przyciski w jednym rzędzie,
     bez zdania o kierunku (kierunek pokazuje kreska na mapie); przyciski przybliżania znikają, bo mapę da się przesuwać i szczypać palcami */
  .gd-res-in { border-radius: 14px 14px 0 0; border-width: 5px 0 0; padding: 13px 16px max(14px, env(safe-area-inset-bottom)); }
  .gd-res-k { font-size: 21px; }
  .gd-res-top { margin-top: 6px; }
  .gd-res-km { font-size: 16px; }
  .gd-res-km b { font-size: 18.5px; }
  .gd-res-pkt b { font-size: 28px; }
  .gd-res-gm { margin-top: 9px; padding-top: 9px; }
  .gd-res-n { font-size: 19.5px; }
  .gd-res-s { margin-top: 1px; font-size: 14px; }
  .gd-res-f { margin-top: 6px; font-size: 14.5px; line-height: 1.33; }
  .gd-res-a { margin-top: 5px; font-size: 14.5px; }
  .gd-res-g { display: none; }
  .gd-res-act { margin-top: 12px; }
  .gd-res-act .gd-btn { flex: 1 1 auto; min-height: 50px; padding-left: 12px; padding-right: 12px; }
  .gd-res-act .gd-btn-p { flex-grow: 2; min-height: 50px; font-size: 17px; }
  .gd-mapbox.is-full .gd-zoom { display: none; }
  .gd-stage.is-zerk .gd-res { bottom: 40px; left: 10px; right: 10px; }
  .gd-stage.is-zerk .gd-res-in { border-radius: 12px; }
  .gd-lot-z { top: 70px; right: 10px; }
  .gd-lot-s { bottom: 104px; right: 10px; }
  .gd-stage.is-map .gd-lot-s { bottom: 10px; }
  .gd-tryb { gap: 8px; }
  .gd-tryb button { padding: 10px; }
  .gd-tryb b { font-size: 16px; }
  .gd-tryb small { display: none; }
  .gd-muzh { display: none; }
  .gd-rows li { gap: 9px; grid-template-columns: 12px minmax(0, 1fr) auto 54px; }
  .gd-rows.ma-rywala li { grid-template-columns: 12px minmax(0, 1fr) auto 50px 46px; }
  .gd-rows i { width: 12px; height: 12px; }
  .gd-act .gd-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-h-f, .gd-h-z .gd-h-k, .gd-h-z text, .gd-m-fala, .gd-res-in, .gd-view.is-load::after, .gd-clock.is-low b { animation: none; }
  .gd-mapbox, .gd-btn, .gd-lot-k img { transition: none; }
}
/* mała mapa przy widoku: bez przycisków przybliżania (pojawiają się po rozwinięciu) */
@media (min-width: 761px) { .gd-mapbox.is-mini .gd-zoom { display: none; } }
