/* Skill City – wspólne style strony głównej i podstrony gry */

:root {
  --sky: #4cc3f1;
  --sky-light: #bfe9fb;
  --sky-pale: #eef8fd;
  --ink: #142a3e;
  --ink-soft: #46596b;
  --plate: #1d58a6;
  --plate-dark: #153f78;
  --roof: #d63a2a;
  --roof-dark: #b02c1f;
  --grass: #79c11f;
  --white: #ffffff;

  /* role kolorów – nadpisywane w motywie nocnym */
  --page: var(--sky-pale);
  --surface: #ffffff;
  --fg: var(--ink);
  --text-hero: #1d3a52;
  --text-mid: #2c4a63;
  --deep: var(--ink);
  --line: #c9d9e6;
  --tile-bg: var(--sky-light);
  --nav-hover: rgba(255, 255, 255, 0.6);
  --disabled-bg: #c9d6df;
  --hero-sky: #60ceff;
  --hero-sky-2: var(--sky-light);
  --header-sky: var(--sky);
  --footer: #0d1e2e;
  --city: url("../assets/img/city-1896.jpg");
  --city-mobile: url("../assets/img/city-1200.jpg");
  --city-small: url("../assets/img/city-760.jpg");

  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --text: "Overpass", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.375rem;
  --step-4: clamp(2.6rem, 5.4vw, 4.4rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-tile: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--plate);
}

:focus-visible {
  outline: 3px solid var(--roof);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "wdth" 88;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* ---------- nagłówek ---------- */

.site-header {
  position: relative;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.logo img {
  width: 168px;
  height: auto;
  filter: drop-shadow(0 3px 0 rgba(20, 42, 62, 0.18));
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  font-weight: 700;
}

.nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
}

.nav a:hover {
  background: var(--nav-hover);
}

.nav .nav-cta {
  background: var(--deep);
  color: var(--white);
}

.nav .nav-cta:hover {
  background: var(--plate-dark);
}

/* ---------- przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--text);
  font-weight: 800;
  font-size: var(--step-0);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 15px 26px 13px;
  border-radius: 14px;
  line-height: 1.1;
}

.btn-primary {
  background: var(--roof);
  color: var(--white);
  box-shadow: 0 5px 0 var(--roof-dark);
}

.btn-primary:hover {
  background: #e44634;
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--roof-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 5px 0 rgba(20, 42, 62, 0.22);
}

.btn-secondary:hover {
  background: var(--page);
}

.btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(20, 42, 62, 0.22);
}

.btn[aria-disabled="true"] {
  background: var(--disabled-bg);
  color: #5d6f7e;
  box-shadow: none;
  cursor: not-allowed;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- tabliczka z nazwą ulicy (kategorie) ---------- */

.plate {
  --plate-bg: var(--plate);
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-family: var(--text);
  font-weight: 800;
  color: var(--white);
  background: var(--plate-bg);
  border-radius: 7px;
  padding: 7px 14px 5px;
  box-shadow: inset 0 0 0 2px var(--plate-bg), inset 0 0 0 4px var(--white);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.plate small {
  font-weight: 600;
  font-size: 0.78em;
  opacity: 0.85;
}

button.plate {
  font-size: 1rem;
  padding: 9px 16px 7px;
  border: 0;
  cursor: pointer;
  --plate-bg: #ffffff;
  color: var(--plate);
  box-shadow: inset 0 0 0 2px var(--plate);
}

button.plate:hover {
  --plate-bg: #e3eefa;
}

button.plate[aria-pressed="true"] {
  --plate-bg: var(--plate);
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 4px var(--white);
}

/* ---------- hero ---------- */

/* Ilustracja stoi na dole na całej szerokości (najmniej 1100 px), nad nią to samo niebo co na jej górnej krawędzi.
   Tekst zajmuje niebo nad środkiem miasta – helikopter (lewo) i rakieta (prawo) zostają odkryte. */
.page-home .site-header {
  position: absolute;
  inset: 0 0 auto 0;
}

.hero {
  --city-w: max(100vw, 1100px);
  position: relative;
  padding-top: 120px;
  padding-bottom: calc(var(--city-w) * 0.325);
  background: var(--hero-sky);
  overflow: hidden;
  text-align: center;
}

/* ilustracja miasta (bez helikoptera) przy dolnej krawędzi; helikopter to osobna warstwa nad nią */
.hero-city {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--city-w);
  aspect-ratio: 1896 / 993;
  translate: -50% 0;
}

.hero-city {
  background: var(--city) center / 100% 100% no-repeat;
}

.hero::after {
  z-index: 1;
}

.heli {
  position: absolute;
  left: 7.595%;
  top: 25.680%;
  width: 21.624%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 2;
  border-radius: 40%;
}

.heli img {
  width: 100%;
  height: auto;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* unoszenie się w miejscu */
  .heli img {
    animation: hover 4.8s ease-in-out infinite;
    transform-origin: 60% 30%;
  }
  /* rundka po kliknięciu: odlot w prawo, powrót zza lewej krawędzi */
  .heli.is-flying {
    animation: fly-round 5.2s cubic-bezier(0.45, 0, 0.35, 1) both;
    cursor: default;
  }
}

@keyframes hover {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  30% {
    transform: translate(6px, -10px) rotate(-1.6deg);
  }
  65% {
    transform: translate(-4px, -4px) rotate(1deg);
  }
}

@keyframes fly-round {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  8% {
    transform: translate(-3vw, 1vh) rotate(4deg);
  }
  46% {
    transform: translate(125vw, -38vh) rotate(-12deg) scale(0.7);
  }
  46.01% {
    transform: translate(-80vw, -26vh) rotate(-8deg) scale(0.8);
  }
  88% {
    transform: translate(2vw, -1vh) rotate(-3deg) scale(1);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--page));
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-top: clamp(12px, 4vh, 48px);
  max-width: 720px;
  margin-inline: auto;
}

.hero h1 {
  font-size: var(--step-4);
  color: var(--fg);
  text-wrap: balance;
}

.hero-lead {
  margin: 18px auto 0;
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 34em;
  color: var(--text-hero);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .hero-city {
    animation: city-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes city-in {
  from {
    transform: translateY(60px);
  }
}

/* ---------- sekcje ---------- */

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 32px;
}

.section-head p {
  color: var(--ink-soft);
  max-width: 46ch;
}

/* nowe w mieście */

.featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 28px;
}

.feature {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border-radius: 26px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 0 rgba(20, 42, 62, 0.08), 0 18px 40px -24px rgba(20, 42, 62, 0.45);
}

.feature-shot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--deep);
}

.feature-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature:hover .feature-shot img {
  transform: scale(1.03);
}

.feature-body {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 18px;
  padding: 22px 26px 26px;
  align-items: center;
}

.feature-body img {
  grid-row: span 2;
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.feature-body h3 {
  font-size: var(--step-2);
}

.feature-body p {
  grid-column: 1 / -1;
  margin-top: 12px;
  color: var(--ink-soft);
}

.feature-meta {
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 600;
}

/* katalog */

.catalog {
  background: var(--surface);
  border-radius: 36px 36px 0 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 30px;
}

.search {
  margin-left: auto;
  position: relative;
}

.search input {
  font: inherit;
  font-size: var(--step--1);
  padding: 9px 14px 8px 38px;
  border: 2px solid var(--line);
  border-radius: 999px;
  width: 220px;
  background: var(--page);
  color: var(--fg);
}

.search input:focus {
  outline: none;
  border-color: var(--plate);
  background: var(--surface);
}

.search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  translate: 0 -50%;
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 34px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tile a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tile-art {
  position: relative;
  border-radius: var(--radius-tile);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--tile-bg);
  box-shadow: 0 5px 0 rgba(20, 42, 62, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile a:hover .tile-art,
.tile a:focus-visible .tile-art {
  transform: translateY(-4px);
  box-shadow: 0 9px 0 rgba(20, 42, 62, 0.14);
}

.tile h3 {
  margin-top: 14px;
  font-size: 1.25rem;
}

.tile p {
  margin-top: 4px;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty {
  padding: 40px 0;
  color: var(--ink-soft);
}

.count {
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 600;
}

/* jak to działa */

.facts {
  background: var(--deep);
  color: var(--white);
}

.facts .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 40px 64px;
  align-items: start;
}

.facts h2 {
  color: var(--white);
}

.facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 36px;
  margin: 0;
}

.facts dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-1);
  font-variation-settings: "wdth" 88;
  color: var(--sky);
}

.facts dd {
  margin: 8px 0 0;
  color: #c8d6e2;
}

/* stopka */

.site-footer {
  background: var(--footer);
  color: #9fb3c4;
  font-size: var(--step--1);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-block: 36px;
  align-items: center;
}

.site-footer img {
  width: 110px;
  height: auto;
  opacity: 0.95;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a {
  color: #d7e4ee;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ---------- podstrona gry ---------- */

.page-game .site-header {
  background: var(--header-sky);
}

.game-hero {
  background: linear-gradient(var(--hero-sky), var(--hero-sky-2) 78%, var(--page));
  padding-block: 28px clamp(40px, 6vw, 72px);
}

.crumbs {
  font-size: var(--step--1);
  font-weight: 600;
  margin-bottom: 26px;
}

.crumbs a {
  color: var(--fg);
}

.crumbs span {
  color: var(--text-mid);
}

.game-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 56px;
  align-items: center;
}

.game-hero .crumbs {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.game-title {
  font-size: var(--step-4);
  margin-top: 16px;
}

.game-lead {
  margin-top: 16px;
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 36em;
  color: var(--text-hero);
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  color: var(--text-hero);
}

.game-meta li span {
  font-weight: 400;
  color: var(--text-mid);
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.game-icon {
  width: clamp(150px, 20vw, 232px);
  border-radius: 42px;
  box-shadow: 0 8px 0 rgba(20, 42, 62, 0.18);
  rotate: 3deg;
}

.note {
  margin-top: 14px;
  font-size: var(--step--1);
  color: var(--text-mid);
}

/* gra w przeglądarce */

.player-frame {
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  background: var(--deep) var(--city-small) center bottom / cover no-repeat;
  box-shadow: 0 8px 0 rgba(20, 42, 62, 0.18);
}

.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.player-start {
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: rgba(20, 42, 62, 0.55);
  color: var(--white);
  font: inherit;
}

.player-start img {
  width: 96px;
  border-radius: 24px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
}

.player-hint {
  font-size: var(--step--1);
  color: #dbe7f0;
}

.player-bar {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* galeria */

.gallery-main {
  border-radius: 24px;
  overflow: hidden;
  background: var(--deep);
  display: grid;
  place-items: center;
  max-height: 72vh;
}

.gallery-main img {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}

.gallery-thumbs button {
  flex: none;
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  height: 76px;
  opacity: 0.65;
  box-shadow: 0 0 0 3px transparent;
  background: var(--deep);
}

.gallery-thumbs button img {
  height: 76px;
  width: auto;
}

.gallery-thumbs button[aria-current="true"] {
  opacity: 1;
  box-shadow: 0 0 0 3px var(--roof);
}

.shots-empty {
  border: 3px dashed var(--line);
  border-radius: 24px;
  padding: 64px 24px;
  text-align: center;
  color: var(--ink-soft);
}

.shots-empty img {
  width: 96px;
  border-radius: 22px;
  margin: 0 auto 18px;
}

/* opis, zasady, sterowanie */

.game-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px 72px;
  align-items: start;
}

.prose p + p {
  margin-top: 1em;
}

.prose h2 {
  margin-bottom: 18px;
}

.prose h2 ~ h2 {
  margin-top: 48px;
}

.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.rules li {
  position: relative;
  padding-left: 30px;
  max-width: 62ch;
}

.rules li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--grass);
  rotate: 45deg;
}

.controls {
  background: var(--surface);
  border-radius: 26px;
  padding: 28px 30px;
  box-shadow: 0 2px 0 rgba(20, 42, 62, 0.08);
}

.controls h2 {
  font-size: var(--step-2);
  margin-bottom: 8px;
}

.controls h3 {
  margin-top: 22px;
  font-size: var(--step-0);
  font-family: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.controls h3 svg {
  width: 22px;
  height: 22px;
  color: var(--plate);
}

.controls ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
  color: var(--ink-soft);
}

.controls li + li {
  margin-top: 6px;
}

.todo {
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- mniejsze ekrany ---------- */

@media (max-width: 860px) {
  .facts .wrap,
  .game-body {
    grid-template-columns: 1fr;
  }
  .game-hero .wrap {
    grid-template-columns: 1fr;
  }
  .game-icon {
    grid-row: 2;
    width: 120px;
    border-radius: 28px;
  }
}

@media (max-width: 640px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
  .logo img {
    width: 132px;
  }
  .hero-city {
    background-image: var(--city-mobile);
  }
  .hero {
    --city-w: 170vw;
    padding-top: 104px;
    padding-bottom: calc(var(--city-w) * 0.4);
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
  .search {
    margin-left: 0;
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- poprawki v2 ---------- */

/* panorama miasta między sekcjami: tło = sekcja powyżej, budynki = sekcja poniżej */
.skyline {
  height: clamp(56px, 8vw, 120px);
  line-height: 0;
  overflow: hidden;
  background: var(--surface);
}

.skyline svg {
  width: 100%;
  height: 100%;
  display: block;
}

.skyline-facts {
  color: var(--deep);
}

.skyline-footer {
  color: var(--footer);
}

.skyline .lights {
  fill: #f4c84a;
  opacity: 0.9;
}

.catalog {
  padding-bottom: clamp(40px, 6vw, 72px);
}

/* gra w przeglądarce – znaczek na kafelku */
.web-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--roof);
  color: var(--white);
  box-shadow: 0 3px 0 var(--roof-dark);
}

.web-badge svg {
  width: 22px;
  height: 22px;
}

/* liczba gier na tabliczce */
.plate-count {
  margin-left: 0.45em;
  font-weight: 600;
  font-size: 0.85em;
  opacity: 0.7;
}

/* karta „Nowe w mieście” */
.feature-go {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 18px;
  font-weight: 800;
  color: var(--roof);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.feature:hover .feature-go {
  color: var(--roof-dark);
}

.hero h1 {
  font-variation-settings: "wdth" 82;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-weight: 600;
}

/* „Warto zagrać” – rotacja */
.rotator-controls {
  display: flex;
  gap: 10px;
}

.btn-small {
  font-size: var(--step--1);
  padding: 10px 16px 8px;
  border-radius: 11px;
}

.btn-secondary[aria-pressed="true"] {
  background: var(--deep);
  color: var(--white);
}

.rotator-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  margin: -14px 0 24px;
}

.rotator-progress span {
  display: block;
  height: 100%;
  background: var(--sky);
  transform-origin: left;
  transform: scaleX(0);
}

.featured {
  transition: opacity 0.25s ease;
}

.featured.is-leaving {
  opacity: 0;
}

.feature-shot {
  position: relative;
}

.feature-shot .web-badge {
  width: 40px;
  height: 40px;
  right: 14px;
  bottom: 14px;
}

.feature-shot-icon {
  display: grid;
  place-items: center;
  background: var(--tile-bg);
}

.feature-shot-icon .cover-blur {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130%;
  height: auto;
  aspect-ratio: 1;
  translate: -50% -50%;
  object-fit: cover;
  filter: blur(28px) saturate(1.2);
  opacity: 0.85;
}

.feature-shot-icon .cover-icon {
  position: relative;
  width: auto;
  height: 68%;
  aspect-ratio: 1;
  border-radius: 28px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}

.feature:hover .feature-shot-icon .cover-blur {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .featured {
    transition: none;
  }
}

/* ---------- motyw nocny ---------- */

:root[data-theme="night"] {
  color-scheme: dark;
  --page: #0e1b2b;
  --surface: #15283c;
  --fg: #e6eef5;
  --ink-soft: #9fb3c5;
  --text-hero: #c9d9e6;
  --text-mid: #a9bccc;
  --deep: #0a1522;
  --line: #2a4560;
  --tile-bg: #1d3550;
  --nav-hover: rgba(255, 255, 255, 0.1);
  --disabled-bg: #2a3d50;
  --hero-sky: #0a1733;
  --hero-sky-2: #13284a;
  --header-sky: #0a1733;
  --footer: #070f1a;
  --city: url("../assets/img/city-night-1896.jpg");
  --city-mobile: url("../assets/img/city-night-1200.jpg");
  --city-small: url("../assets/img/city-night-760.jpg");
}

:root[data-theme="night"] .btn[aria-disabled="true"] {
  color: #8195a6;
}

:root[data-theme="night"] .nav .nav-cta {
  background: var(--sky);
  color: var(--ink);
}

:root[data-theme="night"] .nav .nav-cta:hover {
  background: #7ad3f5;
}

:root[data-theme="night"] .btn-secondary {
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
}

:root[data-theme="night"] .feature,
:root[data-theme="night"] .controls {
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}

:root[data-theme="night"] .logo img {
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.4));
}

/* helikopter nocą: przygaszony, z migającym światłem na ogonie */
.beacon {
  display: none;
  position: absolute;
  left: 16.5%;
  top: 4%;
  width: 2.2%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 10px 4px rgba(255, 59, 48, 0.75);
  pointer-events: none;
}

.heli .heli-night,
:root[data-theme="night"] .heli .heli-day {
  display: none;
}

:root[data-theme="night"] .heli .heli-night {
  display: block;
}

:root[data-theme="night"] .beacon {
  display: block;
  animation: beacon 1.6s steps(1, end) infinite;
}

@keyframes beacon {
  0%,
  100% {
    opacity: 1;
  }
  12% {
    opacity: 0.08;
  }
}

/* ---------- przełącznik dzień / noc / auto ---------- */

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

:root[data-theme="night"] .theme-switch {
  background: rgba(255, 255, 255, 0.12);
}

.theme-switch button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--fg);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 0.8rem;
}

.theme-switch button:hover {
  background: rgba(255, 255, 255, 0.5);
}

:root[data-theme="night"] .theme-switch button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.theme-switch button[aria-pressed="true"] {
  background: var(--deep);
  color: var(--white);
}

:root[data-theme="night"] .theme-switch button[aria-pressed="true"] {
  background: var(--sky);
  color: var(--ink);
}

.theme-switch svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 640px) {
  .theme-switch button {
    width: 32px;
    height: 32px;
  }
  .header-tools {
    gap: 8px;
  }
}

/* nocą dół ilustracji (jasna mgiełka z dziennego obrazu) przechodzi w tło strony dłużej */
:root[data-theme="night"] .hero::after {
  height: 200px;
}

@media (max-width: 640px) {
  :root[data-theme="night"] .hero::after {
    height: 150px;
  }
}

/* ---------- tabliczki-filtry: ulica i numer ---------- */

/* ramka jako prawdziwe obramowanie (cień wewnętrzny zostawiał na zaokrąglonych rogach jasne piksele tła) */
button.plate {
  border: 2px solid var(--plate);
  box-shadow: none;
  background-clip: padding-box;
  padding: 7px 14px 5px;
}

button.plate[aria-pressed="true"] {
  border-color: var(--plate);
  box-shadow: inset 0 0 0 2px var(--white);
}

/* numer „domu”: pogrubiony, zaraz po nazwie ulicy */
.plate-count {
  margin-left: 0.15em;
  font-weight: 800;
  font-size: 1em;
  opacity: 1;
}

:root[data-theme="night"] button.plate {
  --plate-bg: #12304f;
  color: #d4e4f6;
  border-color: #2f6cbd;
}

:root[data-theme="night"] button.plate:hover {
  --plate-bg: #183d63;
}

:root[data-theme="night"] button.plate[aria-pressed="true"] {
  --plate-bg: var(--plate);
  color: var(--white);
  border-color: var(--plate);
}

/* ---------- większe logo, niżej ---------- */
.site-header .wrap {
  align-items: flex-start;
  padding-top: 22px;
}

.logo img {
  width: 200px;
  height: auto;
}

.header-tools {
  margin-top: 26px;
}

.hero {
  padding-top: 200px;
}

@media (max-width: 640px) {
  .site-header .wrap {
    padding-top: 14px;
  }
  .logo img {
    width: 118px;
  }
  .header-tools {
    margin-top: 12px;
  }
  .hero {
    padding-top: 128px;
  }
}

/* wąski telefon: w nagłówku tylko logo i przełączniki (losowanie jest w hero, kategorie w stopce) */
@media (max-width: 560px) {
  .nav {
    display: none;
  }
}

