/* DeafMap: efekty „nocny połysk” (zasady z DESIGN.md Seen Giant, w kolorach DeafMap). Wspólne dla strony głównej, miast i miejsc. */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes fx-spin { to { --spin: 360deg; } }
@keyframes fx-rise { from { opacity: 0; filter: blur(6px); transform: translateY(.25em); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fx-sheen { 0%, 100% { background-position: 100% 50%; } 50% { background-position: 0% 50%; } }

/* Połysk: cienki odblask na górnej krawędzi szkła */
.nav.solid, .nav.always, .pill, .lang-trigger, .crumbs, .stat, .chip, .cc, .notif, .comm div { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.float { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 40px rgba(0,0,0,.45); }
.phero .crumbs { box-shadow: none; } /* na stronie miejsca okruszki nie mają tła, więc bez odblasku */
.pill b { background: var(--teal); color: #05231D; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }

/* Światło pod kursorem: ta sama plama na każdej karcie, ramka łapie światło (klasy dodaje fx.js) */
.fx-card { position: relative; }
.fx-card > * { position: relative; z-index: 1; }
.fx-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--x, 50%) var(--y, 0%), rgba(0, 201, 167, .26), transparent 60%); }
.fx-ring::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(280px circle at var(--x, 50%) var(--y, 0%), #5EEAD4, rgba(45, 212, 191, .5) 35%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (hover: hover) and (pointer: fine) { .fx-card:hover::after, .fx-ring:hover::before { opacity: 1; } }
.tile, .step, .card, .act { transition: transform .25s cubic-bezier(.23,1,.32,1), border-color .25s, box-shadow .25s, background .25s; }
@media (hover: hover) and (pointer: fine) { .tile:hover, .step:hover, .card:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, .4); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 70px -28px rgba(0, 201, 167, .55); } }
.tile, .step, .card, .box { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }

/* Kafelki miast: unoszą się, ramka świeci turkusem */
.city { transition: transform .25s cubic-bezier(.23,1,.32,1), box-shadow .25s; }
@media (hover: hover) and (pointer: fine) { .city:hover { outline: none; transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(45, 212, 191, .8), 0 22px 50px -20px rgba(0, 201, 167, .6); } }

/* Przyciski kontaktu na stronie miejsca: błyszczące szkło, świecą po najechaniu */
.act { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
@media (hover: hover) and (pointer: fine) {
  .act:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(0, 201, 167, .55), 0 16px 36px -14px rgba(0, 201, 167, .6); }
  .act:hover svg { filter: drop-shadow(0 0 8px rgba(45, 212, 191, .7)); }
}
#map { box-shadow: 0 30px 70px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(0, 201, 167, .1); }
.leaflet-attribution-flag { display: none !important; }

/* Krążąca świecąca ramka: tylko pudełka „pobierz aplikację” */
.fx-spin { position: relative; }
.fx-spin::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--spin), transparent 0 64%, rgba(45,212,191,.18) 72%, #2DD4BF 84%, #fff 87%, #00C9A7 93%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fx-spin 7s linear infinite; }

/* Strona główna: mocniejsza poświata z jednego kierunku, bez kresek przy małych napisach */
/* tylko hero strony głównej (ma .hero-grid); na stronach miast hero to zdjęcie miasta i poświata by na nie świeciła */
.hero:has(.hero-grid)::before { background: radial-gradient(560px 420px at 78% 30%, rgba(0, 201, 167, .36), transparent 70%), radial-gradient(300px 240px at 86% 18%, rgba(45, 212, 191, .22), transparent 70%), radial-gradient(480px 360px at 12% 10%, rgba(167, 139, 250, .10), transparent 70%); }
.eyebrow::before, .center .eyebrow::after { content: none; }
.stage::before { background: radial-gradient(circle, rgba(0, 201, 167, .42), transparent 65%); }

/* Strona główna: nagłówek wjeżdża z rozmycia, „wherever you go.” turkusowe z połyskiem zamiast gradientu w fiolet */
.hero h1 > span { display: inline-block; }
.hero h1 .grad { background: linear-gradient(100deg, #00C9A7 0%, #2DD4BF 30%, #E6FFFA 46%, #2DD4BF 56%, #00C9A7 80%, #2DD4BF 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 26px rgba(0, 201, 167, .45));
  padding: .04em .08em .2em; margin: -.04em -.08em -.2em; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 > span { animation: fx-rise .6s cubic-bezier(.23,1,.32,1) .06s both; }
  .hero h1 > .grad { animation: fx-rise .65s cubic-bezier(.23,1,.32,1) .16s both, fx-sheen 4.5s ease-in-out 1s infinite; }
}

/* Strona główna: telefon w 3D, kafelki wysunięte przed niego (kąt liczy fx.js) */
.hero-grid { perspective: 1300px; }
.hero .stage { transform-style: preserve-3d; transition: transform .15s cubic-bezier(.23,1,.32,1); will-change: transform; }
.hero .stage .float { translate: 0 0 70px; }
.hero .stage .f2 { translate: 0 0 110px; }

/* Kody języków zamiast flag */
.lc { display: inline-grid; place-items: center; min-width: 26px; padding: 3px 5px; border-radius: 6px; font: 800 10.5px/1 Inter, sans-serif; letter-spacing: .06em; color: var(--teal2, #2DD4BF); background: rgba(0, 201, 167, .12); box-shadow: inset 0 0 0 1px rgba(0, 201, 167, .3); }

@media (prefers-reduced-motion: reduce) { .fx-spin::after { animation: none; } .hero .stage { transition: none; } }

/* Strony miast: lekki cień u góry zdjęcia, żeby logo i pasek były czytelne na jasnym niebie (Andrzej 27.10) */
.hero:has(.hero-img)::before { background:
  radial-gradient(1100px 480px at 12% 115%, rgba(0, 201, 167, .24), transparent 60%),
  linear-gradient(180deg, rgba(11, 14, 20, .85) 0%, rgba(11, 14, 20, .5) 15%, rgba(11, 14, 20, .14) 32%, rgba(11, 14, 20, .74) 68%, var(--bg) 100%); }

/* Strona główna: prawdziwe zdjęcie telefonu ze zrzutem aplikacji (zielony ekran wycięty, zrzut w perspektywie) zamiast telefonu rysowanego w CSS */
.phone-real { width: 310px; position: relative; }
.phone-real img { width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .65)) drop-shadow(0 0 1px rgba(255, 255, 255, .15)); }
@media (max-width: 560px) { .phone-real { width: 262px; } }

/* Telefon 3D (komputer): płótno większe od zdjęcia, żeby obrócony telefon się nie przycinał; zdjęcie zostaje jako zapas */
.hero .phone-real .phone3d { position: absolute; left: -25%; top: -6%; width: 150%; height: 112%; pointer-events: none; }
.hero .phone-real.is-3d > img { visibility: hidden; }
.hero .phone-real.is-3d::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1%; height: 6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); }

/* ===== Strona główna: szklana karuzela krajów (zamiast kafelków miast). Komputer: łuk 3D, telefon: przesuwanie palcem ===== */
.ccar { position: relative; height: 380px; perspective: 1100px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.ccar-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.ccar-card { position: absolute; left: 50%; top: 6px; width: 236px; height: 330px; margin-left: -118px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: #121722; border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 30px 60px -28px rgba(0,0,0,.85);
  transition: transform .85s cubic-bezier(.2,.8,.2,1), opacity .85s, filter .85s, box-shadow .5s; will-change: transform; }
.ccar-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.ccar-card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(11,14,20,0) 35%, rgba(11,14,20,.55) 100%); }
.ccar-body { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: grid; gap: 3px; padding: 12px 14px; border-radius: 16px;
  background: rgba(14,19,29,.58); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.ccar-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ccar-meta { font-size: 13px; color: #CBD5E1; }
.ccar-idx { position: absolute; right: 12px; top: 12px; font: 700 11px/1 Inter, sans-serif; color: #94A3B8; letter-spacing: .04em; }
.ccar-go { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #05231D;
  background: var(--teal, #00C9A7); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 20px -6px rgba(0,201,167,.8); opacity: 0; transform: scale(.7); transition: opacity .4s, transform .4s; }
.ccar-card.on .ccar-go { opacity: 1; transform: none; }
.ccar-card.on { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 1px rgba(45,212,191,.35), 0 40px 80px -30px rgba(0,201,167,.55); }
@media (hover: hover) and (pointer: fine) { .ccar-card.on:hover img { transform: scale(1.05); } }
/* krążąca świecąca ramka i światło pod kursorem na środkowej karcie */
.ccar-card::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(240px circle at var(--x, 50%) var(--y, 0%), rgba(94,234,212,.9), transparent 70%), conic-gradient(from var(--spin), transparent 0 64%, rgba(45,212,191,.18) 72%, #2DD4BF 84%, #fff 87%, #00C9A7 93%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: fx-spin 7s linear infinite; }
.ccar-card.on::after { opacity: 1; }
/* sterowanie kursorem: pozycja liczona co klatkę, więc bez przejścia CSS (zostaje tylko na podświetleniu) */
.ccar.live .ccar-card { transition: box-shadow .5s; }
@media (prefers-reduced-motion: reduce) { .ccar-card, .ccar-card img { transition: none; } .ccar-card::after { animation: none; } }
/* telefon i wąskie okna (10.11.2026): ten sam łuk 3D co na komputerze, mniejsze karty;
   widać trzy kraje (środek + po jednym z tyłu), przesuwanie palcem w kółko, pion przewija stronę */
@media (max-width: 760px) {
  .ccar { --cw: clamp(170px, 54vw, 236px); height: calc(var(--cw) * 1.4 + 26px); perspective: 900px; margin: 0 -28px; overflow-x: clip;
    touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .ccar-card { width: var(--cw); height: calc(var(--cw) * 1.4); margin-left: calc(var(--cw) / -2); top: 8px; border-radius: 20px; -webkit-tap-highlight-color: transparent; }
  .ccar-card img { -webkit-user-drag: none; }
  .ccar-name { font-size: 17px; padding-right: 30px; }   /* nie wchodzi na numer 1/16 */
  .ccar-body { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(14,19,29,.82); }
  .ccar-go { width: 30px; height: 30px; }
}
/* puszczenie palca: dociągnięcie do najbliższej karty, krócej niż samo przewijanie */
.ccar.snap .ccar-card { transition: transform .5s cubic-bezier(.23,1,.32,1), opacity .5s cubic-bezier(.23,1,.32,1), filter .5s, box-shadow .5s; }

/* 09.11.2026 (przegląd ruchu):
   karuzela ze strzałek klawiatury bez animacji (akcji z klawiatury się nie animuje) */
.ccar.instant .ccar-card, .ccar.instant .ccar-card img { transition: none !important; }
/* naciśnięcie kart i przycisków kontaktu (też na telefonie) */
.tile:active, .step:active, .card:active, .city:active { transform: scale(.985); transition-duration: .12s; }
.act:active { transform: scale(.97); transition-duration: .12s; }
/* ciągłe animacje stoją, gdy sekcja jest poza ekranem (klasę .off ustawia fx.js) */
.off, .off::before, .off::after, .off *, .off *::before, .off *::after { animation-play-state: paused !important; }
/* ogranicz ruch: bez uniesień po najechaniu */
@media (prefers-reduced-motion: reduce) and (hover: hover) { .tile:hover, .step:hover, .card:hover, .city:hover, .act:hover { transform: none; } }
