/* =====================================================================
   Habi — habil1ve
   Paleta z avatara (eksplozja / ogień), jedna rodzina: Archivo (oś szerokości)
   ===================================================================== */

:root {
  --char: #140f0c;      /* spalone drewno — tło */
  --soot: #1d1612;      /* powierzchnie */
  --smoke: #2a1f19;     /* obramowania, tory */
  --ash: #f4e9dc;       /* tekst */
  --ash-2: #bba996;     /* tekst drugorzędny */
  --ember: #ff4d17;     /* żar */
  --flame: #ffb000;     /* płomień */
  --line: rgba(244, 233, 220, .12);
  --twitch: #9146ff;    /* streamy */
  --yt: #ff0033;        /* filmy */
  --money: #34d77b;     /* donate */

  --fire: linear-gradient(180deg, #ffe066 0%, #ffb000 38%, #ff6a1a 72%, #e0300f 100%);
  --fire-x: linear-gradient(100deg, var(--flame), var(--ember));

  --f: "Archivo", system-ui, sans-serif;
  --maxw: 1200px;
  --pad: clamp(1.15rem, 4.5vw, 3rem);

  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-inout: cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* tło na <html>: jeśli przeglądarka między stronami pokaże pustą klatkę, będzie ciemna, nie biała */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; background: var(--char); color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }


body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(70rem 40rem at 100% -10%, rgba(255, 77, 23, .10), transparent 60%),
    var(--char);
  color: var(--ash);
  font: 400 1.0625rem/1.6 var(--f);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--ember); color: var(--char); }

/* ---------------------------------------------------------------------
   Pasek przewijania — żarzący się uchwyt na tle spalonego drewna
   Chrome/Edge/Safari: ::-webkit-scrollbar (pełny kształt, bez strzałek)
   Firefox: tylko kolory (inny silnik nie pozwala na więcej)
   --------------------------------------------------------------------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track {
  background: var(--char);
  box-shadow: inset 1px 0 0 var(--line);
}
::-webkit-scrollbar-thumb {
  min-height: 56px;
  border: 4px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd34a, var(--flame) 35%, var(--ember)) padding-box;
}
::-webkit-scrollbar-thumb:hover { border-width: 3px; }
::-webkit-scrollbar-thumb:active {
  border-width: 3px;
  background: linear-gradient(180deg, #ffe066, #ffc23a 35%, #ff6a1a) padding-box;
}
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: var(--char); }

/* Na czas przejścia uchwyt robi się przezroczysty. Pasek zostaje na miejscu, więc treść nie skacze w bok,
   a jego tło ma kolor zasłony — wizualnie znika.
   Pasek ekranu bierze styl z <body> (body ma overflow-x, który przechodzi na viewport), stąd oba selektory.
   Chrome odświeża wygląd paska dopiero po jego przebudowie — robi to refreshScrollbar() w script.js. */
html.pt-in::-webkit-scrollbar-thumb,
html.pt-leaving::-webkit-scrollbar-thumb,
html.pt-in body::-webkit-scrollbar-thumb,
html.pt-leaving body::-webkit-scrollbar-thumb { background: transparent; }

@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--ember) var(--char); scrollbar-width: thin; }
  html.pt-in, html.pt-leaving { scrollbar-color: transparent var(--char); }
}
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 1000;
  padding: .7rem 1rem; background: var(--flame); color: var(--char); font-weight: 700;
  transform: translateY(-200%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------------------------------------------------------------------
   Wordmark „HABI” + podpis „Live”
   --------------------------------------------------------------------- */
.wm {
  display: inline-flex; align-items: flex-end;
  font-family: var(--f); font-weight: 900; font-style: italic; font-stretch: 125%;
  line-height: .8; letter-spacing: -.05em;
  white-space: nowrap;
}
.wm__m {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  filter: drop-shadow(0 .035em 0 #7c1d07);
  padding: .08em .16em .06em; margin: 0 -.16em;  /* miejsce na pochylenie italic */
}
.wm__l {
  display: inline-block;
  background: var(--fire);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.wm__slot { position: relative; display: inline-block; }

.sig {
  position: absolute; left: 22%; top: 40%;
  width: 1.32em; height: auto; overflow: visible;
  transform: rotate(-13deg); transform-origin: 0 70%;
  pointer-events: none;
  filter: none;
}
.sig path { fill: none; stroke: var(--ash); stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; }
.sig .sig__swoosh { stroke: var(--ember); stroke-width: 6; }

/* stan „do narysowania” — tylko gdy działa JS */
.js .sig path { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }

/* ---------------------------------------------------------------------
   Przyciski — ukośne, jak kreska pióra
   --------------------------------------------------------------------- */
.btn {
  --bg: var(--soot);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.1rem; padding: .8rem 1.7rem;
  border: 0; background: none; cursor: pointer;
  color: var(--ash); font-weight: 750; font-stretch: 110%; font-size: 1rem; line-height: 1.1;
  letter-spacing: -.005em; text-align: center;
  transition: color .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg); border-radius: 4px;
  transform: skewX(-12deg);
  transition: transform .35s var(--e-out), background-color .2s, box-shadow .2s;
}
.btn:hover::before { transform: skewX(-12deg) scale(1.045); }
.btn:active::before { transform: skewX(-12deg) scale(.97); transition-duration: .1s; }
.btn:focus-visible { outline: none; }
.btn:focus-visible::before { outline: 2px solid var(--ash); outline-offset: 4px; }

.btn--fire { --bg: var(--flame); color: var(--char); }
.btn--fire:hover { --bg: #ffc233; }
.btn--ghost::before { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(244, 233, 220, .38); }
.btn--ghost:hover::before { box-shadow: inset 0 0 0 1.5px var(--ash); background: rgba(244, 233, 220, .05); }
.btn--char { --bg: var(--char); color: var(--flame); }
.btn--sm { min-height: 2.5rem; padding: .55rem 1.15rem; font-size: .92rem; }

/* ---------------------------------------------------------------------
   Pasek górny
   --------------------------------------------------------------------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: .85rem max(var(--pad), calc((100% - var(--maxw)) / 2 + var(--pad)));
  transition: background-color .3s, box-shadow .3s;
}
.bar.is-stuck {
  background: rgba(20, 15, 12, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.bar__brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 1.35rem; letter-spacing: -.04em;
}
.bar__nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); margin-left: auto; }
.bar__nav a {
  position: relative; padding: .4rem 0;
  font-weight: 600; font-size: .98rem; color: var(--ash-2);
  transition: color .2s;
}
.bar__nav a::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0; height: 3px;
  background: var(--fire-x); border-radius: 2px;
  transform: skewX(-20deg) scaleX(0); transform-origin: left;
  transition: transform .35s var(--e-out);
}
.bar__nav a:hover { color: var(--ash); }
.bar__nav a:hover::after { transform: skewX(-20deg) scaleX(1); }
.bar__nav a[aria-current="page"] { color: var(--ash); }
.bar__nav a[aria-current="page"]::after { transform: skewX(-20deg) scaleX(1); }

/* kropka „na żywo” — widoczna tylko, gdy Twitch potwierdzi live */
.live-dot { display: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ember); flex: none; }
html[data-live="true"] .live-dot { display: inline-block; animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 23, .7); }
  100% { box-shadow: 0 0 0 .6rem rgba(255, 77, 23, 0); }
}

/* Znacznik „Live” obok logo — widoczny tylko, gdy Twitch potwierdzi, że stream trwa */
.onair {
  display: none; align-items: center; gap: .45rem; margin-left: -.35rem;
  padding: .32rem .6rem .32rem .55rem; border-radius: 999px;
  background: var(--twitch); color: #fff;
  font-weight: 800; font-size: .8rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1;
  transition: background-color .2s;
}
.onair:hover { background: #a970ff; }
.onair .ico { width: .95rem; height: .95rem; }
.onair__dot { width: .5rem; height: .5rem; border-radius: 50%; background: #ff3b3b; flex: none; }
html[data-live="true"] .onair { display: inline-flex; animation: liveIn .5s var(--e-out) both; }
html[data-live="true"] .onair__dot { animation: livePulseRed 1.6s ease-out infinite; }
@keyframes livePulseRed {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, .8); }
  100% { box-shadow: 0 0 0 .45rem rgba(255, 59, 59, 0); }
}
@keyframes liveIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   Układ
   --------------------------------------------------------------------- */
main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------------------------------------------------------------------
   Strona główna
   --------------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding: clamp(1.5rem, 4.5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero__copy { container-type: inline-size; }
/* HABI + podpis „Live” zajmują ~4,2 em — rozmiar liczony od szerokości kolumny, żeby podpis nie wjechał na stream */
.hero__title { margin: 1.4rem 0 clamp(1.4rem, 3vw, 2rem); font-size: clamp(4.4rem, 10.5vw, 9.6rem); font-size: min(9.6rem, 23cqi); }
.hero__bio { margin: 0; max-width: 46ch; color: var(--ash-2); font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; margin-top: 1.8rem; }

/* Prawa kolumna: stream (dopóki nie ma zdjęcia) — lekko pochylony ekran z żarem za plecami */
.hero__screen { position: relative; }
.hero__screen::before {
  content: ""; position: absolute; inset: 8% -3% -6% 6%; z-index: -1;
  background: var(--fire-x); border-radius: 8px;
  transform: skewX(-8deg); opacity: .85;
  filter: blur(.5px);
}
.hero__screen .screen__frame { transform: rotate(-1.2deg); }

/* Prawa kolumna ze zdjęciem (zdjecie_hero w dane.json) — najlepiej PNG z przezroczystym tłem */
/* Postać stoi na dolnej krawędzi hero, na tle ukośnego pasa ognia — tego samego co w przejściu między stronami.
   Czarna koszulka na pomarańczowym pasie zamiast na ciemnym tle — sylwetka się nie gubi. */
.hero--photo { align-items: end; padding-bottom: 0; border-bottom: 1px solid var(--line); margin-bottom: clamp(3rem, 7vw, 5rem); }
.hero--photo .hero__copy { align-self: center; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero__shot { position: relative; isolation: isolate; margin: 0; }
.hero__shot { justify-self: end; width: min(100%, 34rem); }
.hero__shot::before {
  content: ""; position: absolute; z-index: -1;
  inset: 20% 12% 0 16%;
  background: linear-gradient(180deg, #ffd34a 0%, var(--flame) 30%, var(--ember) 100%);
  transform: skewX(-14deg); border-radius: 6px 6px 0 0;
}
.hero__shot::after { /* żar rozlewający się za pasem */
  content: ""; position: absolute; z-index: -2; inset: 10% -10% -5%;
  background: radial-gradient(closest-side, rgba(255, 77, 23, .35), transparent);
}
.hero__shot img {
  display: block; width: 100%; height: auto;
  /* cienka jasna obwódka — sylwetka czytelna także tam, gdzie wychodzi poza pas ognia */
  filter: drop-shadow(0 0 1.2px rgba(255, 196, 120, .75)) drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
}

/* ---------- Sekcje strony głównej i podstron ---------- */
.sec { padding-bottom: clamp(3rem, 8vw, 5.5rem); }
.sec__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line);
}
.sec__title {
  margin: 0; font-weight: 900; font-style: italic; font-stretch: 118%;
  font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.05; letter-spacing: -.035em;
}
.more {
  display: inline-flex; align-items: center; gap: .35rem; flex: none;
  color: var(--ash-2); font-weight: 700; font-size: .95rem; transition: color .2s;
}
.more .arrow { width: 1.1rem; height: 1.1rem; transition: transform .35s var(--e-out); }
.more:hover { color: var(--flame); }
.more:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Liczniki ---------- */
.stats {
  list-style: none; margin: 0; padding: 0; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  border-top: 1px solid var(--line);
}
.stats li { box-shadow: -1px 0 0 var(--line), 0 1px 0 var(--line); }
.stat {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico num" "label label";
  align-items: center; gap: .55rem .7rem; height: 100%;
  padding: 1.3rem 1.25rem 1.4rem;
  transition: color .3s;
}
.stat::before {
  content: ""; position: absolute; inset: 0 -8%; z-index: -1; background: var(--c);
  transform: skewX(-12deg) scaleX(0); transform-origin: left; transition: transform .5s var(--e-inout);
}
.stat:hover, .stat:focus-visible { color: var(--on); }
.stat:hover::before, .stat:focus-visible::before { transform: skewX(-12deg) scaleX(1); }
.stat .ico { grid-area: ico; width: 1.5rem; height: 1.5rem; color: var(--c); transition: color .3s; }
.stat:hover .ico, .stat:focus-visible .ico { color: inherit; }
.num {
  grid-area: num; font-weight: 900; font-style: italic; font-stretch: 115%;
  font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__label { grid-area: label; color: var(--ash-2); font-size: .9rem; line-height: 1.3; transition: color .3s; }
.stat:hover .stat__label, .stat:focus-visible .stat__label { color: inherit; }

/* ---------- Filmy ---------- */
.vids {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: clamp(1rem, 2.2vw, 1.6rem);
}
.vid { display: grid; gap: .65rem; }
.vid__thumb {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--soot); border-radius: 6px; box-shadow: 0 0 0 1px var(--line);
}
.vid__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--e-out); }
.vid__play {
  position: absolute; left: .7rem; bottom: .7rem; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--flame); color: var(--char);
  transform: scale(.85); opacity: 0; transition: transform .35s var(--e-out), opacity .25s;
}
.vid__play svg { width: 1.2rem; height: 1.2rem; margin-left: 2px; }
.vid:hover .vid__thumb img, .vid:focus-visible .vid__thumb img { transform: scale(1.05); }
.vid:hover .vid__play, .vid:focus-visible .vid__play { transform: none; opacity: 1; }
.vid:focus-visible { outline: none; }
.vid:focus-visible .vid__thumb { outline: 2px solid var(--flame); outline-offset: 3px; }
.vid__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-weight: 750; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; transition: color .2s;
}
.vid:hover .vid__title { color: var(--flame); }
.vid__date { color: var(--ash-2); font-size: .86rem; margin-top: -.3rem; }

.feat {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: end; padding-bottom: clamp(3rem, 7vw, 4.5rem);
}
.feat__frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--soot); border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line);
}
.feat__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.feat__play { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.feat__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--e-out), filter .3s; }
.feat__btn {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center;
  width: clamp(3.8rem, 8vw, 5.2rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--flame); color: var(--char);
  transform: translate(-50%, -50%); transition: transform .35s var(--e-out);
}
.feat__btn svg { width: 42%; height: 42%; margin-left: 6%; }
.feat__play:hover img { transform: scale(1.03); filter: brightness(.85); }
.feat__play:hover .feat__btn { transform: translate(-50%, -50%) scale(1.08); }
.feat__play:focus-visible { outline: 2px solid var(--flame); outline-offset: -2px; }
.feat__kicker { margin: 0 0 .5rem; color: var(--flame); font-weight: 800; font-style: italic; font-size: .95rem; }
.feat__title {
  margin: 0 0 1.4rem; font-weight: 900; font-style: italic; font-stretch: 108%;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.12; letter-spacing: -.03em; overflow-wrap: anywhere;
}

.empty { margin: 0; padding: 1.4rem 0; color: var(--ash-2); }
.empty a { color: var(--ash); font-weight: 700; box-shadow: 0 2px 0 var(--ember); }
.empty a:hover { color: var(--flame); }
.empty--big {
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: 8px;
  background: var(--soot); box-shadow: inset 0 0 0 1px var(--line);
}
.empty__title {
  margin: 0 0 .5rem; color: var(--ash); font-weight: 900; font-style: italic; font-stretch: 112%;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem); letter-spacing: -.03em;
}
.empty--big p:last-child { margin: 0; }
.fineprint { margin: 1.6rem 0 0; color: var(--ash-2); font-size: .88rem; opacity: .85; }

.status {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0;
  font-weight: 700; font-size: 1.02rem; color: var(--ash);
}
html[data-live="true"] .status { color: var(--flame); }

.screen__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--soot); border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line);
}
.screen__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen__fallback {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.2rem;
  padding: 1.5rem; text-align: center; color: var(--ash-2);
}
.screen__fallback p { margin: 0; max-width: 40ch; }

/* ---------------------------------------------------------------------
   Podstrony
   --------------------------------------------------------------------- */
.page__head { padding: clamp(2.2rem, 6vw, 4.2rem) 0 clamp(1.8rem, 4vw, 2.8rem); }
.page__title {
  margin: 0; font-weight: 900; font-style: italic; font-stretch: 125%;
  font-size: clamp(2.1rem, 7.4vw, 4.6rem); line-height: .95; letter-spacing: -.045em;
  color: var(--ash);
}
.page__lead { margin: .9rem 0 0; max-width: 46ch; color: var(--ash-2); font-size: clamp(1.02rem, 1.4vw, 1.12rem); text-wrap: pretty; }

.rise { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .06em .14em .08em; margin: 0 -.14em; }
.rise > span { display: inline-block; background: inherit; -webkit-background-clip: text; background-clip: text; }

/* ---------- Social media ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.ico {
  display: block; width: 2rem; height: 2rem; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center; column-gap: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: 2rem minmax(0, 17rem) minmax(0, 1fr) minmax(8.5rem, auto) 1.6rem;
  grid-template-areas: "ico name desc count go";
  padding: clamp(1.1rem, 2.2vw, 1.55rem) .9rem;
  border-bottom: 1px solid var(--line);
  transition: color .3s;
}
.row::before {
  content: ""; position: absolute; inset: 0 -4% 0 -4%; z-index: -1;
  background: var(--c);
  transform: skewX(-12deg) scaleX(0); transform-origin: left;
  transition: transform .5s var(--e-inout);
}
.row:hover, .row:focus-visible { color: var(--on); }
.row:hover::before, .row:focus-visible::before { transform: skewX(-12deg) scaleX(1); }
.row:focus-visible { outline: none; }
.row .ico { grid-area: ico; }
.row__name {
  grid-area: name; font-weight: 900; font-style: italic; font-stretch: 125%;
  font-size: clamp(1.55rem, 4vw, 2.6rem); line-height: 1; letter-spacing: -.045em;
}
.row__desc { grid-area: desc; display: grid; gap: .15rem; color: var(--ash-2); font-size: .97rem; line-height: 1.4; transition: color .3s; }
.row__handle { color: var(--ash); font-size: .9rem; font-weight: 700; opacity: .8; }
.row__count { grid-area: count; display: grid; justify-items: end; gap: .1rem; text-align: right; }
.row__count .num { grid-area: auto; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.row__unit { font-size: .85rem; font-weight: 600; }
.row__src, .row__online { font-size: .75rem; color: var(--ash-2); transition: color .3s; }
.row__online { color: #3ba55d; font-weight: 700; }
.row:hover .row__desc, .row:hover .row__src, .row:hover .row__online,
.row:focus-visible .row__desc, .row:focus-visible .row__src, .row:focus-visible .row__online { color: inherit; }
.row:hover .row__handle, .row:focus-visible .row__handle { color: inherit; opacity: 1; }
.row__go { grid-area: go; display: grid; place-items: center; }
.row__go .arrow { width: 1.5rem; height: 1.5rem; transition: transform .4s var(--e-out); }
.row:hover .arrow { transform: translate(3px, -3px); }

/* ---------- O mnie ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: start; padding-bottom: clamp(3.5rem, 9vw, 6rem);
}

/* Karta gracza — postać wychodzi głową ponad kartę, pod spodem dane kanału */
.pcard {
  position: relative; margin-top: clamp(4.5rem, 8vw, 6.5rem);
  background: linear-gradient(180deg, #241a14 0%, var(--soot) 55%);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  transform: rotate(-2deg);
}
.pcard__art { position: relative; isolation: isolate; height: clamp(15rem, 24vw, 19rem); }
.pcard__art::before { /* pas ognia za postacią, jak w przejściu między stronami */
  content: ""; position: absolute; z-index: -1; inset: 1.1rem 1.1rem 0;
  background: linear-gradient(180deg, #ffd34a 0%, var(--flame) 35%, var(--ember) 100%);
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  border-radius: 8px 8px 0 0;
}
.pcard__art img {
  position: absolute; left: 50%; bottom: 0; width: 100%; height: auto; transform: translateX(-50%);
  filter: drop-shadow(0 0 1.2px rgba(255, 196, 120, .7));
}
.pcard--logo .pcard__art { height: auto; padding: 1.1rem 1.1rem 0; }
.pcard--logo .pcard__art::before { display: none; }
.pcard--logo .pcard__art img { position: static; transform: none; border-radius: 8px; filter: none; }

.pcard__body { padding: 1.3rem 1.5rem 1.6rem; border-top: 3px solid var(--ember); }
.pcard__name {
  margin: 0; font-weight: 900; font-style: italic; font-stretch: 125%;
  font-size: 2.5rem; line-height: .9; letter-spacing: -.05em;
}
.pcard__tag { margin: .45rem 0 1.2rem; color: var(--ash-2); font-weight: 600; font-size: .92rem; }
.pcard__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin: 0; }
.pcard__stats div { padding-top: .75rem; border-top: 1px solid var(--line); }
.pcard__stats dt { color: var(--ash-2); font-size: .8rem; line-height: 1.3; }
.pcard__stats dd { margin: .3rem 0 0; }
.pcard__stats .num { grid-area: auto; font-size: 1.55rem; }

/* Trzy słowa z bio, bez kart i ramek */
.pillars__list { list-style: none; margin: 0; padding: 0; }
.pillar { padding: clamp(1.1rem, 2.6vw, 1.6rem) 0; border-bottom: 1px solid var(--line); }
.pillar:first-child { padding-top: 0; }
.pillar__word {
  margin: 0; font-weight: 900; font-style: italic; font-stretch: 125%;
  font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1; letter-spacing: -.045em;
}
.pillar__text { margin: .5rem 0 0; max-width: 46ch; color: var(--ash-2); font-size: clamp(1.02rem, 1.3vw, 1.1rem); }
.pillars .hero__cta { margin-top: 2.2rem; }

/* Kod twórcy — wyróżniony pas pod trzema słowami */
.creator {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem); align-items: center; gap: 1rem 1.6rem;
  margin-top: 1.8rem; padding: 1.2rem 1.3rem; border-radius: 10px;
  background: var(--soot); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--flame);
}
.creator__kicker { margin: 0; color: var(--flame); font-weight: 800; font-style: italic; font-size: .95rem; }
.creator__text { margin: .3rem 0 0; color: var(--ash); font-weight: 600; text-wrap: pretty; }

/* Nick i ID z gry na karcie gracza — klik kopiuje */
.pcard__ids { display: grid; gap: .7rem; margin: 1rem 0 0; }
.pcard__ids div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.pcard__ids dt { color: var(--ash-2); font-size: .8rem; }
.pcard__ids dd { margin: 0; min-width: 0; }
.pcard__copy {
  max-width: 100%; padding: .2rem .45rem; border: 1px dashed rgba(244, 233, 220, .3); border-radius: 5px;
  background: none; color: var(--ash); cursor: pointer; overflow-wrap: anywhere;
  font: inherit; font-weight: 800; letter-spacing: .03em; transition: border-color .2s, color .2s;
}
.pcard__copy:hover { border-color: var(--flame); color: var(--flame); }
.pcard__copy.is-copied { border-style: solid; border-color: #3ba55d; color: #3ba55d; }

/* Osiągnięcia */
.wins { list-style: none; margin: 0; padding: 0; }
.win {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.2rem; align-items: baseline;
  padding: 1.2rem 0; border-bottom: 1px solid var(--line);
}
.win__year { color: var(--flame); font-weight: 900; font-style: italic; font-stretch: 118%; font-size: 1.35rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.win__title {
  margin: 0; font-weight: 900; font-style: italic; font-stretch: 115%;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.1; letter-spacing: -.03em;
}
.win__desc { margin: .4rem 0 0; max-width: 60ch; color: var(--ash-2); }

/* ---------- Harmonogram ---------- */
.tl { --dayw: 11rem; }
.tl > .status { margin: 1.2rem 0 2rem; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.tl > .sec__head { margin-bottom: 0; }
.tl__foot { margin: 2.6rem 0 0; color: var(--ash-2); font-size: .92rem; }
.tl__foot a { color: var(--ash); font-weight: 700; box-shadow: 0 2px 0 var(--ember); }
.tl__foot a:hover { color: var(--flame); }
.tl__axis, .tl__row { display: grid; grid-template-columns: var(--dayw) minmax(0, 1fr); }
.tl__ticks { position: relative; height: 1.6rem; }
.tl__tick {
  position: absolute; left: calc(var(--t) / var(--span) * 100%); bottom: .35rem;
  transform: translateX(-50%); font-size: .8rem; color: var(--ash-2); font-variant-numeric: tabular-nums;
}
.tl__tick:first-child { transform: none; }
.tl__tick:last-child { transform: translateX(-100%); }
.tl__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl__row { align-items: center; min-height: 4.4rem; border-bottom: 1px solid var(--line); }
.tl__day { display: flex; align-items: baseline; gap: .6rem; font-weight: 750; font-stretch: 110%; font-size: 1.08rem; }
.tl__short { display: none; }
.tl__today {
  display: none; padding: .1rem .45rem; border-radius: 3px;
  background: var(--flame); color: var(--char); font-size: .75rem; font-weight: 800; font-style: italic;
}
.tl__row.is-today .tl__day { color: var(--flame); }
.tl__row.is-today .tl__today { display: inline-block; }
.tl__row.is-today { background: linear-gradient(90deg, rgba(255, 176, 0, .07), transparent 70%); }

.tl__track {
  position: relative; height: 2.6rem;
  /* pionowa kreska co 2 godziny */
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(200% / var(--span)));
  background-size: calc(100% + 1px) 100%;
}
/* Stream: fioletowy pas (Twitch) o szacowanej długości */
.tl__bar, .tl__vid {
  position: absolute; top: .3rem; bottom: .3rem;
  left: calc(var(--from) / var(--span) * 100%);
  display: flex; align-items: center; gap: .4rem;
  color: #fff; font-weight: 800; font-size: .92rem; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.tl__bar {
  width: calc(var(--len) / var(--span) * 100%); padding-left: .65rem;
  background: linear-gradient(90deg, var(--twitch) 0%, var(--twitch) 55%, rgba(145, 70, 255, 0) 100%);
  border-radius: 4px 0 0 4px;
}
/* Film: czerwony znacznik (YouTube) — premiera to moment, a nie przedział */
.tl__vid { padding: 0 .6rem 0 .5rem; background: var(--yt); border-radius: 4px; z-index: 1; box-shadow: 2px 0 0 var(--char); /* odstęp od paska streama na wąskim ekranie */ }
.tl__bar .ico, .tl__vid .ico { width: 1rem; height: 1rem; flex: none; }
.tl__what { font-weight: 600; opacity: .85; }
.tl__off { position: absolute; left: .4rem; top: 50%; transform: translateY(-50%); color: var(--ash-2); font-style: italic; opacity: .7; }

.tl__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; list-style: none; margin: 0 0 1.6rem; padding: 0; color: var(--ash-2); font-size: .92rem; font-weight: 600; }
.tl__key { display: inline-flex; align-items: center; gap: .55rem; }
.tl__key::before { content: ""; width: 1.4rem; height: .7rem; border-radius: 2px; }
.tl__key--stream::before { background: var(--twitch); }
.tl__key--vid::before { width: .9rem; background: var(--yt); }

.tl__rows { position: relative; }
.tl__now {
  position: absolute; top: 0; bottom: 0; z-index: 2; width: 2px; margin-left: -1px;
  left: calc(var(--dayw) + (100% - var(--dayw)) * var(--t) / var(--span));
  background: var(--ash); pointer-events: none;
  transition: left 1s var(--e-inout);
}
.tl__now[hidden] { display: none; }
.tl__now::before { /* kropka u góry linii */
  content: ""; position: absolute; top: -.3rem; left: 50%; width: .6rem; height: .6rem; margin-left: -.3rem;
  border-radius: 50%; background: var(--ash);
}
/* etykieta pod ostatnim dniem — u góry zasłaniałaby godziny na osi */
.tl__now::after {
  content: "teraz " attr(data-time); position: absolute; bottom: -1.55rem; left: 50%; transform: translateX(-50%);
  padding: .1rem .4rem; border-radius: 3px; background: var(--ash); color: var(--char);
  font-size: .72rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ---------- Sub ---------- */
.sub { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.perks li {
  position: relative; padding: 1.2rem 0 1.25rem 1.5rem; border-top: 1px solid var(--line);
  color: var(--ash-2); font-size: .97rem; line-height: 1.5;
}
.perks li::before {
  content: ""; position: absolute; left: 0; top: 1.55rem; width: .62rem; height: .62rem;
  background: var(--flame); transform: skewX(-18deg);
}
.perks b { display: block; margin-bottom: .2rem; color: var(--ash); font-weight: 750; font-size: 1.06rem; }

.ticket { background: var(--flame); color: var(--char); border-radius: 8px; }
.ticket__top { display: grid; gap: .6rem; padding: 1.6rem 1.7rem 1.2rem; }
.ticket__kicker { margin: 0; font-weight: 800; font-size: .95rem; }
.ticket__big { margin: 0; font-weight: 900; font-style: italic; font-stretch: 112%; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.12; letter-spacing: -.03em; }
.ticket__bottom { padding: 0 1.7rem 1.7rem; }

/* ---------- Donate ---------- */
/* Donate = pieniądze, więc zieleń zamiast ognia */
.tip {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  margin-bottom: clamp(3rem, 8vw, 5rem); padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.3rem, 3.5vw, 2.4rem);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(52, 215, 123, .16), rgba(52, 215, 123, .05) 60%), var(--soot);
  box-shadow: inset 0 0 0 1px rgba(52, 215, 123, .35);
}
.tip__title {
  margin: 0; color: var(--money); font-weight: 900; font-style: italic; font-stretch: 118%;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.05; letter-spacing: -.035em;
}
.tip__desc { margin: .55rem 0 0; color: var(--ash); opacity: .8; font-size: clamp(1rem, 1.4vw, 1.1rem); }
.btn--money { --bg: var(--money); color: #06210f; }
.btn--money:hover { --bg: #5ce696; }
.tip .btn { min-height: 4rem; padding-inline: 2.6rem; font-size: clamp(1.15rem, 1.8vw, 1.3rem); gap: .6rem; }
.tip .btn .arrow { width: 1.3rem; height: 1.3rem; transition: transform .35s var(--e-out); }
.tip .btn:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Partnerzy (za bramką 18+) ---------- */
.gate__content { display: none; }
.age-ok .gate__content { display: block; animation: gateIn .7s var(--e-out) both; }
@keyframes gateIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

/* Karta partnera: z lewej kto i co, z prawej (za przerywaną linią, jak na kuponie) kod i przycisk */
.deals { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.deal {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem);
  background: var(--soot); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.deal__info { display: grid; align-content: center; gap: 1rem; padding: clamp(1.3rem, 3vw, 2rem); }
.deal__head { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.deal__head > div { min-width: 0; }
.deal__mark {
  flex: none; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 10px;
  background: color-mix(in srgb, var(--c) 16%, var(--char)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent);
}
.deal__mark img { width: 72%; height: 72%; object-fit: contain; }
.deal__mark b { color: var(--c); font-weight: 900; font-style: italic; font-stretch: 120%; font-size: 1.35rem; letter-spacing: -.04em; }
.deal__name {
  margin: 0; font-weight: 900; font-style: italic; font-stretch: 118%;
  font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere;
}
.deal__where { margin: .25rem 0 0; color: var(--ash-2); font-size: .9rem; font-weight: 600; }
.deal__desc { margin: 0; max-width: 46ch; color: var(--ash-2); text-wrap: pretty; }

.deal__side {
  display: grid; align-content: center; gap: .85rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-left: 2px dashed rgba(244, 233, 220, .14);
  background: rgba(20, 15, 12, .45);
}
.deal__bonus { margin: 0 0 .15rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .6rem; }
.deal__bonus b {
  color: var(--flame); font-weight: 900; font-style: italic; font-stretch: 120%;
  font-size: clamp(2.2rem, 4vw, 2.9rem); line-height: .95; letter-spacing: -.045em;
}
.deal__bonus .deal__bonus-text { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.1; }
.deal__bonus span { color: var(--ash); font-weight: 750; font-size: 1rem; }
.deal__side .btn { width: 100%; }
.deal__side .btn .arrow { width: 1.1rem; height: 1.1rem; }

/* Kod: cały prostokąt jest przyciskiem „kopiuj” */
.deal__code {
  display: flex; align-items: center; gap: .8rem; width: 100%;
  padding: .65rem .65rem .65rem 1rem; border: 1.5px dashed rgba(244, 233, 220, .32); border-radius: 8px;
  background: var(--char); color: var(--ash); cursor: pointer; text-align: left;
  transition: border-color .2s, background-color .2s;
}
.deal__code:hover { border-color: var(--flame); }
.deal__code:active { transform: translateY(1px); }
.deal__label { color: var(--ash-2); font-size: .8rem; font-weight: 600; }
.deal__value {
  flex: 1; min-width: 0; overflow-wrap: anywhere;
  font-weight: 900; font-stretch: 112%; font-size: clamp(1.05rem, 4.2vw, 1.45rem); letter-spacing: .06em; line-height: 1.1;
}
.deal__copy {
  display: grid; flex: none; padding: .45rem .75rem; border-radius: 5px;
  background: rgba(244, 233, 220, .08); font-size: .85rem; font-weight: 750;
  transition: background-color .2s, color .2s;
}
.deal__copy > span { grid-area: 1 / 1; text-align: center; transition: opacity .2s; }
.deal__copy > span + span { opacity: 0; }
.deal__code:hover .deal__copy { background: var(--flame); color: var(--char); }
.deal__code.is-copied { border-color: #3ba55d; border-style: solid; }
.deal__code.is-copied .deal__copy { background: #3ba55d; color: var(--char); }
.deal__code.is-copied .deal__copy > span:first-child { opacity: 0; }
.deal__code.is-copied .deal__copy > span + span { opacity: 1; }

/* ---------- Kod dnia ---------- */
.daily { display: grid; gap: 1rem; }
.daily__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--line);
}
.daily__head[hidden] { display: none; }
.daily__date, .daily__next { margin: 0; color: var(--ash-2); font-weight: 600; }
.daily__date b { color: var(--ash); font-weight: 850; font-style: italic; font-size: 1.15rem; }
.daily__next b { color: var(--flame); font-weight: 850; font-variant-numeric: tabular-nums; }
.daily .empty[hidden] { display: none; }
.daily .deals:empty { display: none; }

/* ---------- Wydarzenia ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.event {
  display: grid; gap: .45rem; justify-items: start;
  padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 10px;
  background: var(--soot); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--flame);
}
.event__when { margin: 0; color: var(--flame); font-weight: 800; font-style: italic; }
.event__name {
  margin: 0; font-weight: 900; font-style: italic; font-stretch: 115%;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere;
}
.event__desc { margin: 0; max-width: 60ch; color: var(--ash-2); }
.event .btn { margin-top: .6rem; }
.event .btn .arrow { width: 1rem; height: 1rem; }
.event--past { box-shadow: inset 0 0 0 1px var(--line); }
.event--past .event__when { color: var(--ash-2); }

/* ---------- Prywatność ---------- */
.prose { max-width: 68ch; color: var(--ash-2); }
.prose h2 {
  margin: 2.2rem 0 .7rem; color: var(--ash); font-weight: 900; font-style: italic; font-stretch: 112%;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -.03em;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { line-height: 1.6; }
.prose a { color: var(--ash); font-weight: 700; box-shadow: 0 2px 0 var(--ember); }
.prose a:hover { color: var(--flame); }

/* ---------- Reklama ---------- */
.ad { margin: 0 0 clamp(2.5rem, 6vw, 4rem); padding-top: .6rem; border-top: 1px solid var(--line); min-height: 6rem; }
.ad__label { margin: 0 0 .4rem; color: var(--ash-2); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
/* AdSense nie miał reklamy dla tego miejsca — nie zostawiamy pustej ramki z napisem „Reklama” */
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* ---------- Strona główna: wstęp „Standoff 2 po polsku” ---------- */
.intro__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 1fr); gap: 1.5rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.intro__text p { margin: 0 0 1rem; max-width: 60ch; color: var(--ash-2); font-size: clamp(1.02rem, 1.3vw, 1.1rem); line-height: 1.6; text-wrap: pretty; }
.intro__text p:last-child { margin-bottom: 0; }
.intro__text b { color: var(--flame); font-weight: 900; letter-spacing: .04em; }

/* Lista „dokąd dalej” (wstęp, strona 404) */
.golist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.golist a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem .1rem; border-bottom: 1px solid var(--line);
  color: var(--ash); font-weight: 700; transition: color .2s;
}
.golist .arrow { flex: none; width: 1.15rem; height: 1.15rem; color: var(--ash-2); transition: transform .35s var(--e-out), color .2s; }
.golist a:hover, .golist a:focus-visible { color: var(--flame); }
.golist a:hover .arrow { color: var(--flame); transform: translate(2px, -2px); }

/* ---------- Najczęstsze pytania ---------- */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  position: relative; display: block; padding: 1.05rem 2.6rem 1.05rem 0; cursor: pointer; list-style: none;
  font-weight: 800; font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.35; transition: color .2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before, .faq__q::after { /* plus, który po otwarciu zamienia się w minus */
  content: ""; position: absolute; right: .35rem; top: 50%; width: 1rem; height: 2px; margin-top: -1px;
  background: var(--flame); border-radius: 2px; transition: transform .3s var(--e-out);
}
.faq__q::after { transform: rotate(90deg); }
.faq__item[open] > .faq__q::after { transform: rotate(0deg); }
.faq__q:hover { color: var(--flame); }
.faq__q:focus-visible { outline-offset: 2px; border-radius: 4px; }
.faq__a { margin: 0; padding: 0 2.6rem 1.2rem 0; max-width: 68ch; color: var(--ash-2); line-height: 1.6; text-wrap: pretty; }

/* Okno 18+ */
.age {
  width: min(100% - 2rem, 30rem); padding: 0; border: 0; border-radius: 12px;
  background: var(--soot); color: var(--ash);
  box-shadow: 0 0 0 1px var(--line), 0 40px 100px -30px rgba(0, 0, 0, .85);
}
.age::backdrop { background: rgba(10, 7, 6, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.age[open] { animation: ageIn .45s var(--e-out); }
.age[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes ageIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
.age__box { padding: clamp(1.6rem, 5vw, 2.4rem); text-align: center; }
.age__badge {
  display: inline-grid; place-items: center; width: 4.6rem; height: 4.6rem; margin: 0 0 1.1rem;
  border-radius: 50%; background: var(--flame); color: var(--char);
  font-weight: 900; font-style: italic; font-stretch: 120%; font-size: 1.6rem; letter-spacing: -.04em;
}
.age__title { text-wrap: balance; margin: 0 0 .6rem; font-weight: 900; font-style: italic; font-stretch: 112%; font-size: clamp(1.45rem, 4vw, 1.9rem); line-height: 1.1; letter-spacing: -.03em; }
.age__desc { margin: 0 auto 1.7rem; max-width: 34ch; color: var(--ash-2); }
.age__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1rem; }

.nav18 {
  display: inline-block; margin-left: .35rem; padding: .05rem .3rem; border-radius: 3px;
  background: rgba(255, 77, 23, .16); color: var(--ember);
  font-size: .68rem; font-weight: 800; vertical-align: .15em; letter-spacing: .02em;
}

/* ---------- Kontakt ---------- */
.mails { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.2rem, 5vw, 3.2rem); }
.mailcard { padding-bottom: clamp(2.2rem, 5vw, 3.2rem); border-bottom: 1px solid var(--line); }
.mailcard__label { margin: 0 0 .5rem; color: var(--flame); font-weight: 800; font-style: italic; font-size: 1rem; }
.mailcard__desc { margin: .7rem 0 0; color: var(--ash-2); }
.mailcard .contact__actions { margin-top: 1.3rem; }
.mail {
  display: inline-block; max-width: 100%;
  font-weight: 900; font-style: italic; font-stretch: 112%; letter-spacing: -.04em;
  font-size: clamp(1.55rem, 5.6vw, 3.4rem); line-height: 1.05;
  background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 .09em no-repeat;
  padding-bottom: .08em;
  transition: background-size .5s var(--e-out), color .25s;
}
.mail:hover { color: var(--flame); background-size: 100% .09em; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; margin-top: 2rem; }
.contact__hint { margin: 2.5rem 0 0; max-width: 52ch; color: var(--ash-2); }
.contact__hint a { color: var(--ash); font-weight: 700; box-shadow: 0 2px 0 var(--ember); transition: color .2s; }
.contact__hint a:hover { color: var(--flame); }

/* ---------------------------------------------------------------------
   Stopka
   --------------------------------------------------------------------- */
.foot {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 2rem;
  width: 100%; max-width: var(--maxw); margin: clamp(4rem, 10vw, 6.5rem) auto 0;
  padding: 1.8rem var(--pad) 2.2rem;
  border-top: 1px solid var(--line);
}
.foot__brand { font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 1.5rem; letter-spacing: -.045em; }
.foot__social { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: center; }
.soc {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  color: var(--ash-2); transition: color .2s, background-color .2s;
}
.soc .ico { width: 1.25rem; height: 1.25rem; }
.soc:hover { color: var(--c); background: rgba(244, 233, 220, .06); }
.foot__copy { margin: 0; color: var(--ash-2); font-size: .88rem; text-align: right; }
.foot__copy a { color: var(--ash); box-shadow: 0 1px 0 var(--line); }
.foot__copy a:hover { color: var(--flame); }

/* ---------------------------------------------------------------------
   Toast
   --------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60;
  padding: .8rem 1.3rem; border-radius: 4px;
  background: var(--ash); color: var(--char); font-weight: 700; font-size: .95rem;
  transform: translate(-50%, 160%); opacity: 0; pointer-events: none;
  transition: transform .4s var(--e-out), opacity .3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------------------------------------------------------------------
   Wejście treści — jeden zorkiestrowany moment po załadowaniu
   --------------------------------------------------------------------- */
/* Kierunek jak w przejściu: wszystko odsłania się od lewej do prawej */
.js .rise > span,
.js .hero .wm__l { clip-path: inset(-.25em 100% -.25em -.3em); transform: translateX(-.14em); }
.js .page__head .page__lead,
.js .page > section,
.js .page > .fineprint,
.js .home > .sec,
.js .hero__copy > :not(.hero__title),
.js .hero__screen { opacity: 0; transform: translateX(-18px); }
/* Zdjęcie w hero to największy element strony (LCP w Core Web Vitals). Przezroczyste na starcie liczyłoby się
   dopiero po animacji, więc tylko się przesuwa — widać je od pierwszej klatki. */
.js .hero__shot { transform: translateX(-18px); }

.is-ready .rise > span,
.is-ready .hero .wm__l {
  clip-path: inset(-.25em -.4em -.25em -.3em); transform: none;
  transition: clip-path .75s var(--e-out) calc(var(--i) * 70ms), transform .75s var(--e-out) calc(var(--i) * 70ms);
}
.is-ready .page__head .page__lead { opacity: 1; transform: none; transition: opacity .6s ease .2s, transform .8s var(--e-out) .2s; }
.is-ready .page > section { opacity: 1; transform: none; transition: opacity .6s ease .3s, transform .8s var(--e-out) .3s; }
.is-ready .hero .sig__main { stroke-dashoffset: 0; transition: stroke-dashoffset .9s cubic-bezier(.5, .1, .3, 1) .45s; }
.is-ready .hero .sig__dot { stroke-dashoffset: 0; transition: stroke-dashoffset .12s linear 1.33s; }
.is-ready .hero .sig__swoosh { stroke-dashoffset: 0; transition: stroke-dashoffset .4s var(--e-out) 1.25s; }
.is-ready .page > .fineprint { opacity: 1; transform: none; transition: opacity .6s ease .4s, transform .8s var(--e-out) .4s; }
.is-ready .hero__copy > :not(.hero__title) { opacity: 1; transform: none; transition: opacity .6s ease .5s, transform .8s var(--e-out) .5s; }
.is-ready .hero__screen,
.is-ready .hero__shot { opacity: 1; transform: none; transition: opacity .7s ease .35s, transform .9s var(--e-out) .35s; }
.is-ready .home > .sec { opacity: 1; transform: none; transition: opacity .6s ease .6s, transform .8s var(--e-out) .6s; }

/* ---------------------------------------------------------------------
   Przejście między stronami
   --------------------------------------------------------------------- */
.pt {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  visibility: hidden; pointer-events: none;
  overflow: hidden;
}
/* Panele są dużo szersze od ekranu (180vw), żeby skos nigdy nie odsłonił rogu — także na wąskim telefonie */
.pt__panel {
  position: absolute; top: -5%; bottom: -5%; left: -40%; right: -40%;
  transform: translate3d(-102%, 0, 0) skewX(-14deg);
  will-change: transform;
  backface-visibility: hidden;
}
.pt__panel--fire { background: linear-gradient(90deg, var(--ember), var(--flame) 75%, #ffd34a); }
.pt__panel--char {
  background:
    radial-gradient(60rem 30rem at 50% 50%, rgba(255, 77, 23, .14), transparent 70%),
    var(--char);
}
.pt__logo { position: relative; font-size: clamp(4.2rem, 16vw, 12.5rem); transform: translateX(-.42em); }
.pt .wm__l { clip-path: inset(-.25em 100% -.25em -.3em); transform: translateX(-.14em); }
.pt .sig path { stroke-width: 9.5; stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.pt .sig .sig__swoosh { stroke-width: 7.5; }

/* 1) wyjście: pas płomienia, a za nim sadza przejeżdżają z lewej na prawo,
      litery odsłaniają się od lewej, pióro pisze „Live” */
.pt.is-leaving { visibility: visible; pointer-events: auto; }
/* całość ~0,7 s (T.leave w script.js) */
.pt.is-leaving .pt__panel--fire { animation: ptPanelIn .42s var(--e-inout) forwards; }
.pt.is-leaving .pt__panel--char { animation: ptPanelIn .42s var(--e-inout) .04s forwards; }
.pt.is-leaving .wm__l { animation: ptLetter .3s var(--e-out) forwards; animation-delay: calc(.2s + var(--i) * 35ms); }
.pt.is-leaving .sig__main { animation: ptDraw .26s cubic-bezier(.45, .05, .3, 1) .36s forwards; }
.pt.is-leaving .sig__dot { animation: ptDraw .05s linear .62s forwards; }
.pt.is-leaving .sig__swoosh { animation: ptDraw .14s var(--e-out) .54s forwards; }

/* 2) nowa strona startuje zasłonięta, z gotowym logo — dokładnie ta sama klatka, na której skończyła poprzednia */
html.pt-in .pt { visibility: visible; pointer-events: auto; }
html.pt-in .pt__panel { transform: translate3d(0, 0, 0) skewX(-14deg); }
html.pt-in .pt .wm__l { clip-path: inset(-.25em -.4em -.25em -.3em); transform: none; }
html.pt-in .pt .sig path { stroke-dashoffset: 0; }

/* 3) odsłonięcie: logo odpływa w prawo, sadza i płomień zjeżdżają dalej w prawo, strona wyłania się od lewej */
html.pt-out .pt { pointer-events: none; }
/* całość ~0,57 s (T.out w script.js) */
html.pt-out .pt__logo { animation: ptLogoOut .28s var(--e-inout) forwards; }
html.pt-out .pt__panel--char { animation: ptPanelOut .5s var(--e-inout) .03s forwards; }
html.pt-out .pt__panel--fire { animation: ptPanelOut .5s var(--e-inout) .07s forwards; }

@keyframes ptPanelIn  { from { transform: translate3d(-102%, 0, 0) skewX(-14deg); } to { transform: translate3d(0, 0, 0) skewX(-14deg); } }
@keyframes ptPanelOut { from { transform: translate3d(0, 0, 0) skewX(-14deg); } to { transform: translate3d(102%, 0, 0) skewX(-14deg); } }
@keyframes ptLetter {
  from { clip-path: inset(-.25em 100% -.25em -.3em); transform: translateX(-.14em); }
  to   { clip-path: inset(-.25em -.4em -.25em -.3em); transform: none; }
}
@keyframes ptDraw     { to { stroke-dashoffset: 0; } }
@keyframes ptLogoOut  { to { transform: translateX(-.05em); opacity: 0; } }

/* ---------------------------------------------------------------------
   Responsywność
   --------------------------------------------------------------------- */
/* Menu w drugim wierszu, przewijane palcem. Krawędź, za którą są jeszcze zakładki, wygasa (klasy ustawia script.js) */
@media (max-width: 1100px) {
  .bar { flex-wrap: wrap; row-gap: .35rem; }
  .bar__nav {
    --fl: 0px; --fr: 0px;
    order: 3; width: 100%; margin: 0; gap: 1.4rem;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
    mask: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
  }
  .bar__nav.has-more-left { --fl: 2rem; }
  .bar__nav.has-more-right { --fr: 2.5rem; }
  .bar__nav::-webkit-scrollbar { display: none; }
  .bar__nav a { flex: none; white-space: nowrap; padding-block: .55rem; }
  .bar__nav a::after { bottom: .15rem; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__shot { justify-self: center; width: min(100%, 24rem); }
  .hero--photo .hero__copy { padding-bottom: .5rem; }
  .hero__screen { max-width: 46rem; }
  .row { grid-template-columns: 2rem minmax(0, 1fr) auto 1.6rem; grid-template-areas: "ico name count go" "ico desc count go"; row-gap: .35rem; }
  .row__desc { grid-template-columns: auto; }
  .feat { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .pcard { width: min(100%, 22rem); margin-inline: auto; }
  .sub { grid-template-columns: 1fr; }
  .ticket { max-width: 30rem; }
  .intro__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {

  .row {
    grid-template-columns: 1.6rem minmax(0, 1fr) auto; grid-template-areas: "ico name go" "ico desc desc" "ico count count";
    column-gap: .9rem; padding-inline: .5rem;
  }
  .row .ico { width: 1.6rem; height: 1.6rem; }
  .row__count { justify-items: start; justify-content: start; text-align: left; grid-template-columns: auto auto; align-items: baseline; column-gap: .45rem; margin-top: .35rem; }
  .row__src, .row__online { grid-column: 1 / -1; }
  .sec__head { flex-wrap: wrap; }
  .stat { gap: .45rem .55rem; padding: 1.1rem .9rem 1.2rem; }
  .stat .ico { width: 1.25rem; height: 1.25rem; }
  .stat .num { font-size: 1.4rem; }
  .deal { grid-template-columns: 1fr; }
  .deal__side { border-left: 0; border-top: 2px dashed rgba(244, 233, 220, .14); }
  .tip { flex-direction: column; align-items: stretch; }
  .tip .btn { width: 100%; }
  .creator { grid-template-columns: 1fr; }
  .win { grid-template-columns: 1fr; gap: .3rem; }
  .perks { grid-template-columns: 1fr; }
  .tl { --dayw: 3.2rem; }
  .tl__full { display: none; }
  .tl__short { display: inline; }
  .tl__day { flex-direction: column; gap: .25rem; }
  .tl__tick:nth-child(even) { display: none; }
  .tl__bar { padding-left: .4rem; font-size: .78rem; gap: .25rem; }
  .tl__vid { padding: 0 .35rem; font-size: .78rem; gap: .25rem; }
  .tl__bar .ico, .tl__vid .ico { width: .8rem; height: .8rem; }
  .tl__what { display: none; }
  .foot { grid-template-columns: 1fr; justify-items: start; }
  .foot__social { justify-content: flex-start; margin-left: -.6rem; }
  .foot__copy { text-align: left; }
}

