:root {
  --tlo: #0b0b0f;
  --pow: #121218;
  --pow2: #16161d;
  --linia: #2a2a35;
  --tekst: #f4f4f7;
  --szary: #a3a3b2;
  --ciemny: #8a8a98;
  --roz: #ff4fa3;
  --tur: #3ce8f0;
  --zolty: #ffb547;
  --zielony: #6be39a;
  --czerw: #ff3b3b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--tlo); color: var(--tekst); font: 15px/1.45 Inter, system-ui, sans-serif; }
body { min-height: 100vh; -webkit-tap-highlight-color: transparent; }
a { color: var(--tur); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

#aplikacja { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 84px; }

.logo { font-family: 'Tilt Neon', sans-serif; font-size: 32px; letter-spacing: 2px; color: var(--roz);
  text-shadow: 0 0 6px var(--roz), 0 0 18px rgba(255, 79, 163, .6); text-decoration: none; margin: 0; font-weight: 400; }
.logo.duze { font-size: 52px; letter-spacing: 3px; }
.neon-tur { font-family: 'Tilt Neon', sans-serif; font-weight: 400; color: var(--tur);
  text-shadow: 0 0 6px var(--tur), 0 0 16px rgba(60, 232, 240, .5); }

.naglowek { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--linia);
  border-radius: 999px; font-size: 12px; color: var(--szary); }
.kropka { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.status.ok .kropka { background: var(--tur); box-shadow: 0 0 6px var(--tur); }
.status.pracuje .kropka { background: var(--roz); box-shadow: 0 0 8px var(--roz); animation: puls 1s infinite; }
.status.off .kropka { background: #6e6e7c; }
@keyframes puls { 50% { opacity: .35; } }

.baner { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 16px 10px;
  padding: 12px 14px; border: 1px solid var(--tur); border-radius: 12px; color: var(--tekst); text-decoration: none;
  box-shadow: 0 0 10px rgba(60, 232, 240, .25); font-size: 14px; }
.baner b { color: var(--tur); white-space: nowrap; }

main { padding: 0 16px; }
h1.tytul { margin: 6px 0 4px; font-size: 30px; }
h2 { font-size: 15px; margin: 22px 0 10px; }
.maly { font-size: 13px; color: var(--szary); }
.etykieta { font-size: 12px; color: var(--szary); text-transform: uppercase; letter-spacing: 1px; margin: 18px 0 8px; display: block; }

/* filtry */
.filtry { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.pigulka { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linia);
  background: transparent; color: var(--szary); font-size: 13px; font-weight: 500; }
.pigulka[aria-pressed="true"] { border-color: var(--roz); color: var(--roz); font-weight: 600; }

/* kafelki */
.siatka { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 520px) { .siatka { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kafel { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--tekst); min-width: 0; }
.foto { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--linia); overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto svg { width: 42%; height: 42%; stroke: rgba(255, 255, 255, .35); fill: none; stroke-width: 1.4; }
.kafel .nazwa { font-weight: 600; font-size: 15px; line-height: 1.25; }
.kafel .sklad { font-size: 12px; color: var(--szary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kafel.niedostepny { color: var(--ciemny); }
.kafel.niedostepny .foto { filter: grayscale(1) brightness(.45); border-style: dashed; }
.znaczek { position: absolute; left: 8px; bottom: 8px; right: 8px; padding: 3px 8px; border-radius: 999px;
  background: rgba(20, 20, 26, .9); color: #d0d0da; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; filter: none; }
.znaczek0 { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 999px; background: rgba(11, 11, 15, .8);
  color: var(--zielony); font-size: 11px; font-weight: 700; }

.karta { padding: 14px; border: 1px solid var(--linia); border-radius: 14px; background: var(--pow); }
.karta.akcent { border-color: var(--roz); box-shadow: 0 0 14px rgba(255, 79, 163, .25); }
.karta.uwaga { border-color: var(--zolty); background: rgba(255, 181, 71, .07); color: #ffc670; }
.karta.blad { border-color: var(--czerw); background: rgba(255, 59, 59, .08); color: #ff8a8a; }
.karta + .karta { margin-top: 10px; }

/* drink */
.drink-foto { margin: 0 -16px; height: 280px; position: relative; display: flex; align-items: center; justify-content: center; }
.drink-foto img { width: 100%; height: 100%; object-fit: cover; }
.drink-foto svg { width: 90px; height: 90px; stroke: rgba(255, 255, 255, .35); fill: none; stroke-width: 1.2; }
.wstecz { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(11, 11, 15, .75);
  display: flex; align-items: center; justify-content: center; color: var(--tekst); }
.wstecz svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; }
.lista-skl { display: flex; flex-direction: column; gap: 8px; }
.lista-skl div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.tag { font-size: 12px; color: var(--szary); white-space: nowrap; }
.tag.reka { color: var(--zolty); }
.tag.brak { color: #ff8a8a; }
.wybor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opcja { min-height: 48px; border-radius: 10px; border: 1px solid var(--linia); background: transparent; color: #c4c4cf;
  font-size: 13px; font-weight: 500; line-height: 1.25; }
.opcja[aria-pressed="true"] { border-color: var(--tur); background: rgba(60, 232, 240, .08); color: var(--tur); font-weight: 600;
  box-shadow: 0 0 8px rgba(60, 232, 240, .3); }
.pole { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--linia); background: var(--pow); color: var(--tekst); }
select.pole { padding-right: 8px; }

.przycisk { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border-radius: 14px; border: 0;
  background: var(--roz); color: #0b0b0f; font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 0 18px rgba(255, 79, 163, .5); }
.przycisk:disabled { background: #3a3a46; color: #8a8a98; box-shadow: none; cursor: default; }
.przycisk.tur { background: var(--tur); box-shadow: 0 0 18px rgba(60, 232, 240, .45); }
.przycisk.obrys { background: transparent; color: var(--tur); border: 1px solid var(--tur); box-shadow: none; }
.przycisk.stop { background: rgba(255, 59, 59, .12); border: 2px solid var(--czerw); color: #ff6b6b; letter-spacing: 2px; font-weight: 800;
  box-shadow: 0 0 16px rgba(255, 59, 59, .4); }
.przyciski { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.rzad { display: flex; gap: 10px; }
.rzad > * { flex: 1; }
.link-btn { background: none; border: 0; color: var(--szary); text-decoration: underline; font-size: 13px; min-height: 44px; padding: 0 6px; }

/* kroki */
.kroki { list-style: none; margin: 10px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kroki li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--szary); }
.kroki li .k { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3a3a46; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.kroki li.zrobiony { color: var(--ciemny); }
.kroki li.zrobiony .k { border: 0; background: #1f3a2a; color: var(--zielony); }
.kroki li.teraz { color: var(--tekst); font-weight: 600; }
.kroki li.teraz .k { border-color: var(--roz); box-shadow: 0 0 6px var(--roz); }
.krok-tekst { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 4px 0 14px; }
.kolko { position: relative; width: 190px; height: 190px; margin: 6px auto 12px; }
.kolko svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.kolko .tlo-k { stroke: #1f1f28; }
.kolko .pas { stroke: var(--roz); filter: drop-shadow(0 0 6px var(--roz)); transition: stroke-dashoffset .4s; }
.kolko.reka .pas { stroke: var(--zolty); filter: drop-shadow(0 0 6px var(--zolty)); }
.kolko .srodek { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kolko .proc { font-size: 40px; font-weight: 700; }
.pozycje { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pozycje div { display: flex; justify-content: space-between; }
.pozycje .gotowa { color: var(--zielony); }
.pozycje .teraz { font-weight: 600; color: var(--roz); }

.wiersz-kol { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--linia); border-radius: 12px; background: var(--pow); }
.wiersz-kol + .wiersz-kol { margin-top: 8px; }
.wiersz-kol .nr { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--linia); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.wiersz-kol .opis { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ikona-btn { flex: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ciemny); display: flex; align-items: center; justify-content: center; }
.ikona-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; }

/* pompy */
.pompa-wiersz { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
.pompa-wiersz + .pompa-wiersz { margin-top: 10px; }
.pompa-nr { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--tur); color: var(--tur); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.checki { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.checki label { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; }
.checki input { width: 20px; height: 20px; accent-color: var(--roz); flex: none; }
.checki label.wylaczony { color: var(--ciemny); }

/* nawigacja */
.nawigacja { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--linia); background: rgba(15, 15, 20, .97); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.nawigacja a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 12px; text-decoration: none; color: var(--szary); font-size: 11px; }
.nawigacja a.aktywny { color: var(--roz); font-weight: 600; }
.nawigacja svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.licznik { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--roz); color: #0b0b0f; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

.stop-plywajacy { position: fixed; right: 16px; bottom: 92px; z-index: 6; min-width: 96px; min-height: 52px; border-radius: 26px;
  border: 2px solid var(--czerw); background: #2a0d0d; color: #ff6b6b; font-weight: 800; letter-spacing: 2px; box-shadow: 0 0 18px rgba(255, 59, 59, .5); }

/* logowanie */
.logowanie { position: fixed; inset: 0; background: var(--tlo); display: flex; flex-direction: column; align-items: center; padding: 70px 24px 30px; z-index: 10; overflow-y: auto; }
.podlogo { font-family: 'Tilt Neon', sans-serif; letter-spacing: 6px; color: var(--tur); text-shadow: 0 0 6px rgba(60, 232, 240, .7); margin: 6px 0 30px; }
.opis-pin { color: var(--szary); margin: 0 0 14px; }
.kropki-pin { display: flex; gap: 18px; min-height: 16px; }
.kropki-pin span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #3a3a46; }
.kropki-pin span.pelna { border: 0; background: var(--roz); box-shadow: 0 0 8px var(--roz); }
.blad-pin { color: #ff8a8a; min-height: 22px; margin: 12px 0; font-size: 14px; }
.klawiatura { display: grid; grid-template-columns: repeat(3, 72px); gap: 16px; }
.klawiatura button { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--linia); background: var(--pow); font-size: 26px; }
.klawiatura button:active { border-color: var(--roz); }
.klawiatura .bez-ramki { border: 0; background: transparent; color: var(--szary); font-size: 15px; }

.toast { position: fixed; left: 16px; right: 16px; bottom: 96px; max-width: 528px; margin: 0 auto; padding: 12px 14px; border-radius: 12px;
  background: #1e1e27; border: 1px solid var(--linia); z-index: 20; font-size: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.toast.zly { border-color: var(--czerw); color: #ffb0b0; }
.pusto { text-align: center; color: var(--szary); padding: 30px 10px; }
