/* ============================================================
   zmylka — neo-brutalizm / web-art
   Paleta (wlasny neon): kwas #C8FF00, cyjan #00E5FF,
   pomarancz #FF5C00, fiolet #9D6BFF, czern #0B0B0B, kosc #F2F2ED
   ============================================================ */

:root {
  --acid: #C8FF00;
  --cyan: #00E5FF;
  --orange: #FF5C00;
  --violet: #9D6BFF;
  --ink: #0B0B0B;
  --bone: #F2F2ED;
  --gray: #C9C9C9;

  --border: 3px solid var(--ink);
  --shadow: 10px 10px 0 rgba(0,0,0,.9);
  --font-display: 'Archivo Black', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 500;
  overflow-x: hidden;
}

::selection { background: var(--acid); color: var(--ink); }

/* ── Gigantyczna typografia w tle ── */
.bigword {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.bigword span {
  font-family: var(--font-display);
  font-size: 34vw;
  line-height: .8;
  letter-spacing: -.02em;
  color: var(--bone);
  opacity: .96;
  white-space: nowrap;
  transform: scale(1.15);
}

/* ── Scena ── */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
}
.hidden { display: none !important; }

/* ── Okienko (sygnatura stylu) ──
   .win = pozycja + drag + rotacja; ramka koloru przez --frame,
   wypelnienie przez --fill, tekst przez --inktone */
.win {
  position: absolute;
  left: var(--x, 10%);
  top: var(--y, 10%);
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg));
  background: var(--frame, var(--bone));
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 10px;
  width: var(--w, 340px);
  max-width: calc(100vw - 32px);
  animation: bob 5.2s ease-in-out infinite;
  animation-delay: calc(var(--float, 0) * -1.1s);
}
.win[data-drag] { cursor: grab; }
.win.dragging { cursor: grabbing; animation-play-state: paused; z-index: 60 !important; }

@keyframes bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

.win-body {
  background: var(--fill, var(--ink));
  color: var(--inktone, var(--bone));
  border: var(--border);
  padding: 16px;
  min-height: 40px;
}
.win-body.p-lg { padding: 22px; }
.win-body.p-0 { padding: 0; }
.win-body.center { text-align: center; }

.win-label {
  position: absolute;
  left: -14px;
  bottom: -16px;
  background: var(--bone);
  color: var(--ink);
  border: var(--border);
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .04em;
  padding: 6px 12px;
  box-shadow: 5px 5px 0 rgba(0,0,0,.9);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Typografia ── */
.logo {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin: 0 0 10px;
  line-height: .9;
  color: var(--acid);
  text-transform: lowercase;
}
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.lead { margin: 0 0 20px; font-size: 1.05rem; line-height: 1.45; }

/* ── Przyciski ── */
.btn {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: var(--orange);
  color: var(--ink);
  border: var(--border);
  box-shadow: 6px 6px 0 rgba(0,0,0,.9);
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(0,0,0,.9); background: var(--acid); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 rgba(0,0,0,.9); }
.btn:focus-visible { outline: 3px dashed var(--acid); outline-offset: 3px; }
.btn-xl { font-size: 1.25rem; padding: 16px 26px; width: 100%; }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--bone); box-shadow: 6px 6px 0 rgba(255,255,255,.25); margin-top: 12px; }
.btn-ghost:hover { background: var(--bone); color: var(--ink); }

/* ── Pola tekstowe ── */
input[type="text"] {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--bone);
  color: var(--ink);
  border: var(--border);
  box-shadow: inset 4px 4px 0 rgba(0,0,0,.12);
}
input[type="text"]::placeholder { color: #6b6b66; }
input[type="text"]:focus-visible { outline: 3px dashed var(--orange); outline-offset: 2px; }

.answer-row { display: flex; gap: 10px; margin-top: 8px; }
.answer-row input { flex: 1; }

/* ── Chipy tierow ── */
.chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  padding: 5px 10px;
  border: var(--border);
  box-shadow: 4px 4px 0 rgba(0,0,0,.9);
  background: var(--gray);
  color: var(--ink);
  text-transform: uppercase;
}
.chip-plain { background: var(--bone); }
.t-oczywista { background: var(--gray); }
.t-popularna { background: var(--cyan); }
.t-znana    { background: var(--violet); }
.t-rzadka   { background: var(--orange); }
.t-niszowa  { background: var(--acid); }
.t-unikat   { background: var(--ink); color: var(--acid); border-color: var(--acid); }
.t-nieuznana { background: #3a3a38; color: var(--bone); }

.tiers-head {
  margin: 0 0 10px; display: flex; justify-content: space-between;
  font-family: var(--font-display); font-size: .62rem; letter-spacing: .12em;
  opacity: .5; text-transform: uppercase;
}
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tiers li {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 10px; row-gap: 2px;
}
.tiers li .chip { justify-self: start; }
/* ile osob na 100 odpowiada tak samo — ta sama miara, ktora pokazuje tlum w grze */
.tiers em {
  grid-column: 1; font-style: normal; font-size: .72rem;
  letter-spacing: .04em; opacity: .6;
}
.tiers i {
  grid-column: 2; grid-row: 1 / span 2; font-style: normal;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--bone);
}

/* ── Okienka: kolory i szerokosci ── */
.w-cta   { --frame: var(--acid);   --fill: var(--ink);  --inktone: var(--bone); --w: 380px; z-index: 30; }
.w-how   { --frame: var(--cyan);   --fill: var(--bone); --inktone: var(--ink);  --w: 300px; z-index: 10; }
.w-tiers { --frame: var(--orange); --fill: var(--ink);  --inktone: var(--bone); --w: 300px; z-index: 20; }
.w-gem, .w-gem2 { --frame: var(--violet); --fill: #101010; --w: 260px; z-index: 15; }
/* Na stronie glownej diament jest dekoracja, wiec ustepuje miejsca reszcie. */
.w-gem { --w: 210px; }
.w-gem .gem { height: 165px; }
.w-rank, .w-rank2 { --frame: var(--bone); --fill: var(--violet); --inktone: var(--ink); --w: 300px; z-index: 12; }

.w-question { --frame: var(--acid); --fill: var(--bone); --inktone: var(--ink); --w: 520px; z-index: 30; }
.w-timer   { --frame: var(--orange); --fill: var(--ink); --inktone: var(--acid); --w: 150px; z-index: 40; }
.w-result  { --frame: var(--bone); --fill: var(--ink); --inktone: var(--bone); --w: 380px; z-index: 50; }
.w-final   { --frame: var(--cyan); --fill: var(--ink); --inktone: var(--bone); --w: 420px; z-index: 30; }

/* Ramka wyniku w kolorze tieru */
.w-result.f-oczywista { --frame: var(--gray); }
.w-result.f-popularna { --frame: var(--cyan); }
.w-result.f-znana     { --frame: var(--violet); }
.w-result.f-rzadka    { --frame: var(--orange); }
.w-result.f-niszowa   { --frame: var(--acid); }
.w-result.f-unikat    { --frame: var(--acid); --fill: #0e1500; }
.w-result.f-nieuznana { --frame: #3a3a38; }

/* ── Ekran gry ── */
.q-meta { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.q-prompt {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 16px;
  line-height: 1.1;
  text-transform: uppercase;
}
.retry { margin: 12px 0 0; font-weight: 700; color: var(--orange); }
.w-question .retry { color: #B33F00; }

.timer-body {
  text-align: center;
  font-family: var(--font-display);
  padding: 10px 8px 14px;
}
.timer-body span { font-size: 3rem; line-height: 1; display: block; }
.timer-body small { font-size: .7rem; letter-spacing: .2em; color: var(--bone); }
.w-timer.low { --frame: #FF2200; }
.w-timer.low span { color: #FF3B00; animation: shake .35s linear infinite; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-2px) rotate(-2deg); }
  75% { transform: translateX(2px) rotate(2deg); }
}

/* Wynik — wjezdza jak rzucona kartka */
.w-result { animation: slam .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes slam {
  from { transform: translate(var(--dx,0px), var(--dy,0px)) rotate(12deg) scale(1.5); opacity: 0; }
  to   { transform: translate(var(--dx,0px), var(--dy,0px)) rotate(var(--r)) scale(1); opacity: 1; }
}
.result-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.points { font-family: var(--font-display); font-size: 2.4rem; }
.detail { margin: 0 0 16px; line-height: 1.4; }

/* ── Ekran koncowy ── */
.final-caption { font-family: var(--font-display); letter-spacing: .25em; font-size: .8rem; margin: 0 0 4px; color: var(--cyan); }
.final-score { margin: 0 0 18px; font-family: var(--font-display); }
.final-score b { font-size: 4.4rem; color: var(--acid); line-height: 1; }
.final-score span { font-size: 1.4rem; color: var(--bone); opacity: .5; }

/* ── Percentyl ── */
.pct-line {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: .06em;
  margin: 0 0 8px;
}
.pct-line b {
  display: block;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--cyan);
}
.pct-sub { margin: 0; font-size: .9rem; opacity: .75; line-height: 1.35; }

/* ══════════ Tlum: pikselowa publicznosc w tle (styl plug-and-play) ══════════ */
.crowd-bg {
  position: absolute;
  inset: 0;
  z-index: 0;              /* za okienkami, przed gigantyczna typografia */
  overflow: hidden;
  pointer-events: none;
  /* podloga sceny — tlum ma na czym stac */
  background:
    linear-gradient(180deg, transparent 52%, rgba(0,229,255,.05) 66%, rgba(0,0,0,.55) 100%);
}
/* linie skanujace — bez nich to nie byloby plug-and-play */
.crowd-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg,
    rgba(0,0,0,.28) 0 2px, transparent 2px 4px);
  mix-blend-mode: multiply;
  opacity: .55;
}

.cperson {
  position: absolute;
  transform-origin: 50% 100%;
  transform: translate(-50%, 0) scale(var(--s, 1));
  color: #3f6b7a;                        /* tlum: przygaszony, chlodny */
  opacity: var(--o, .9);
  transition: color .35s steps(3), opacity .3s ease;
  will-change: transform, opacity;
}
.cperson svg { display: block; width: 40px; height: 60px; }
.cperson svg rect { fill: currentColor; }

/* dwuklatkowy "idle" jak w tanich konsolkach */
.cperson .frame-b { display: none; }
.cperson.f2 .frame-a { display: none; }
.cperson.f2 .frame-b { display: block; }

/* ci, ktorzy odpowiedzieli tak samo jak Ty */
.cperson.kept { color: var(--tier, var(--cyan)); opacity: 1; }

/* Ty — zawsze na wierzchu, w kolorze marki */
.cperson.you { color: var(--acid); opacity: 1; z-index: 5; }
/* zostales sam — wychodzisz na srodek sceny */
.crowd-bg.alone .cperson.you {
  transform: translate(-50%, 0) scale(calc(var(--s, 1) * 1.6));
  transition: transform .45s steps(5);
}
.cperson.you::after {
  content: "TY";
  position: absolute;
  left: 50%; top: -16px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: .6rem;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--ink);
  padding: 1px 5px;
  white-space: nowrap;
}

/* ── Sprawdzanie odpowiedzi: tlum szemra i przestepuje z nogi na noge ── */
.crowd-bg.checking .cperson { animation: murmur 1s steps(4) var(--wave, 0s) infinite; }
@keyframes murmur {
  0%, 100% { transform: translate(-50%, 0) scale(var(--s, 1)); }
  25%      { transform: translate(calc(-50% - 4px), -2px) scale(var(--s, 1)); }
  50%      { transform: translate(-50%, 0) scale(var(--s, 1)); }
  75%      { transform: translate(calc(-50% + 4px), -2px) scale(var(--s, 1)); }
}

/* swiatlo przesuwajace sie po tlumie — "licze glosy" */
.crowd-scan {
  position: absolute;
  top: 48%; bottom: 0; left: 0;   /* swiatlo omiata sam tlum, nie caly ekran */
  width: 45%;
  opacity: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(200,255,0,.10) 35%, rgba(200,255,0,.26) 50%,
    rgba(200,255,0,.10) 65%, transparent 100%);
  mix-blend-mode: screen;
  transform: translateX(-100%);
  pointer-events: none;
}
.crowd-bg.checking .crowd-scan { opacity: 1; animation: scanSweep 1.15s linear infinite; }
@keyframes scanSweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(222%); }
}

/* odrzucona odpowiedz: krotkie "buuu" — tlum podskakuje i blednie */
.crowd-bg.boo .cperson { animation: boo .5s steps(3) var(--wave, 0s) 1; }
@keyframes boo {
  0%   { transform: translate(-50%, 0) scale(var(--s, 1)); }
  40%  { transform: translate(-50%, -7px) scale(var(--s, 1)); color: #9aa7ac; }
  70%  { transform: translate(-50%, 1px) scale(var(--s, 1)); }
  100% { transform: translate(-50%, 0) scale(var(--s, 1)); }
}

/* licznik na czas sprawdzania — pulsuje, ale nie znika */
.crowd-readout.thinking span { animation: countPulse .9s steps(2) infinite; }
@keyframes countPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ── Rozbieganie sie: kto odpowiedzial inaczej, ucieka za krawedz sceny ── */
.cperson.gone {
  animation: flee var(--dur, .75s) steps(18) var(--d, 0s) forwards;
}
@keyframes flee {
  0%   { transform: translate(-50%, 0) scale(var(--s, 1)); opacity: var(--o, .9); }
  12%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--away, 60vw)), 0) scale(var(--s, 1)); opacity: 0; }
}

/* ── Zbieganie sie: przy nowym pytaniu tlum wbiega z powrotem na miejsca ── */
.cperson.back {
  animation: gather var(--dur, .7s) steps(16) var(--d, 0s) both;
}
@keyframes gather {
  0%   { transform: translate(calc(-50% + var(--away, 60vw)), 0) scale(var(--s, 1)); opacity: 0; }
  18%  { opacity: var(--o, .9); }
  100% { transform: translate(-50%, 0) scale(var(--s, 1)); opacity: var(--o, .9); }
}

/* podskok biegu — sprite skacze w gore i w dol, jak w starych platformowkach */
.cperson.gone svg, .cperson.back svg { animation: bobrun .24s steps(2) infinite; }
@keyframes bobrun { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .crowd-bg.checking .cperson, .crowd-bg.boo .cperson { animation: none; }
  .crowd-bg.checking .crowd-scan { animation: none; opacity: .35; }
  .cperson.gone { animation: none; opacity: 0; }
  .cperson.back { animation: none; }
  .cperson.gone svg, .cperson.back svg { animation: none; }
}

/* gdy zostajesz sam — reflektor na Ciebie */
.crowd-bg.alone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 80%),
    rgba(200,255,0,.30) 0%, rgba(200,255,0,.12) 18%, rgba(200,255,0,.04) 34%, transparent 52%);
  animation: spotIn .5s ease-out;
}
@keyframes spotIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Panel z licznikiem ── */
.w-crowd { --frame: var(--cyan); --fill: var(--ink); --inktone: var(--bone); --w: 210px; z-index: 22; }
.crowd-body { padding: 14px; }
.crowd-readout { margin: 0; font-family: var(--font-display); line-height: .85; text-align: center; }
.crowd-readout span {
  font-size: 3.2rem;
  color: var(--cyan);
  transition: color .35s steps(3);
}
.crowd-readout small { font-size: .95rem; margin-left: 3px; opacity: .5; }
.crowd-label {
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: .64rem;
  letter-spacing: .1em;
  line-height: 1.5;
  padding: 6px;
  border: 3px solid currentColor;
  color: var(--cyan);
  transition: color .35s steps(3);
}

/* Podsumowanie "ile razy sam" na ekranie koncowym */
.depth-final {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .08em;
  color: var(--cyan);
}

/* ── Tryb bez konca ── */
.btn-alt { background: var(--cyan); }
.btn-alt:hover { background: var(--acid); }

/* Zablokowany przycisk ma WYGLADAC na zablokowany — bez tego kusi do klikania,
   bo dalej podnosi sie pod kursorem (np. tryb bez konca po limicie dnia). */
.btn:disabled,
.btn:disabled:hover {
  background: var(--gray);
  color: #6b6b66;
  cursor: not-allowed;
  transform: none;
  box-shadow: 3px 3px 0 rgba(0,0,0,.55);
}
.btn-wide { width: 100%; margin-top: 16px; }
/* tryb dzienny rozegrany: przycisk staje sie stonowany (podglad wyniku, nie CTA) */
.btn-done { background: var(--gray); }
.btn-done:hover { background: var(--bone); }
.daily-lock {
  margin: 12px 0 0; font-size: .82rem; line-height: 1.35;
  color: var(--acid); font-weight: 700;
}
.lead-sm { margin: 0 0 16px; font-size: .95rem; line-height: 1.4; }

.w-endless-cta { --frame: var(--cyan); --fill: var(--ink); --inktone: var(--bone); --w: 320px; z-index: 18; }
.w-endless { --frame: var(--cyan); --fill: var(--ink); --inktone: var(--bone); --w: 400px; z-index: 30; }
.w-endless .pct-line b { color: var(--acid); font-size: 2.6rem; }
.w-endless .final-score b { color: var(--cyan); }
.w-endless .btn-xl { margin-top: 8px; }

/* ── Tryb dzienny ── */
.daily-date { font-family: var(--font-display); font-size: .8rem; letter-spacing: .12em; margin: 0 0 10px; }
.daily-date b { display: block; font-size: 1.5rem; letter-spacing: 0; margin-top: 4px; }
.daily-note { margin: 0 0 10px; font-size: .92rem; line-height: 1.4; }
.countdown {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin: 0;
  color: var(--acid);
  letter-spacing: .02em;
}
.w-daily { --frame: var(--bone); --fill: var(--violet); --inktone: var(--ink); --w: 300px; z-index: 12; }
.w-daily .countdown { color: var(--ink); }
.w-comeback { --frame: var(--orange); --fill: var(--ink); --inktone: var(--bone); --w: 260px; z-index: 20; }
.w-chart { --frame: var(--acid); --fill: var(--bone); --inktone: var(--ink); --w: 420px; z-index: 25; }

/* ── Histogram wynikow ── */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 150px;
  padding: 8px;
  background: var(--ink);
  border: var(--border);
}
.chart .bar {
  flex: 1;
  height: max(3px, var(--h));
  background: var(--gray);
  border: 2px solid var(--ink);
  transition: height .3s ease;
}
.chart .bar-you {
  background: var(--acid);
  box-shadow: 0 0 0 2px var(--acid);
  position: relative;
}
.chart .bar-you::after {
  content: "TY";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: .62rem;
  color: var(--acid);
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: .7rem;
  padding: 6px 2px 0;
  opacity: .7;
}
.chart-note { margin: 6px 0 0; font-size: .85rem; opacity: .8; }

/* ── Model 3D ── */
.gem {
  display: block;
  width: 100%;
  height: 220px;
  image-rendering: pixelated;
  cursor: grab;
}

/* ── Konto gracza ── */
.w-konto { --frame: var(--orange); --fill: var(--ink); --inktone: var(--bone); --w: 300px; z-index: 18; }
.konto-pola { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.konto-pola input { font-size: .95rem; padding: 10px 12px; }
.konto-akcje { display: flex; gap: 8px; }
.konto-akcje .btn { flex: 1; font-size: .82rem; padding: 10px 8px; box-shadow: 4px 4px 0 rgba(0,0,0,.9); }
.konto-info {
  margin: 10px 0 0; padding: 8px 10px; font-size: .82rem; line-height: 1.35;
  background: var(--bone); color: var(--ink); border: var(--border);
}
.konto-info.blad { background: var(--orange); }
.konto-link {
  display: block; margin: 10px 0 0; padding: 0; width: 100%;
  background: none; border: 0; color: var(--bone); opacity: .6;
  font-family: var(--font-body); font-size: .78rem; text-align: left;
  text-decoration: underline; cursor: pointer;
}
.konto-link:hover { opacity: 1; color: var(--acid); }
.konto-kto { margin: 0 0 12px; font-size: 1.1rem; line-height: 1.3; }
.konto-kto b { font-family: var(--font-display); color: var(--acid); }
.konto-kto small { opacity: .55; font-size: .72rem; word-break: break-all; }
.konto-staty { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.konto-staty li { border: var(--border); background: #161616; padding: 8px 10px; }
.konto-staty span { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--acid); line-height: 1; }
.konto-staty em { font-style: normal; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
.w-konto .btn-ghost { margin-top: 8px; font-size: .82rem; padding: 9px 12px; }

/* ── Marquee ── */
.marquee {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: var(--acid);
  border-top: var(--border);
  overflow: hidden;
  pointer-events: none;
}
.marquee-track {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--ink);
  padding: 7px 0;
  text-transform: uppercase;
  animation: scroll 28s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Blad ── */
.error {
  position: fixed;
  bottom: 44px;
  left: 16px;
  right: 16px;
  z-index: 90;
  background: #FF2200;
  color: var(--bone);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  font-weight: 700;
}

/* ── Mobile: chaos sklada sie w stos ── */
@media (max-width: 900px) {
  .bigword span { font-size: 68vw; opacity: .5; }
  .stage {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding: 24px 16px 90px;
    min-height: auto;
  }
  .win {
    position: static;
    width: 100% !important;
    max-width: 480px;
    margin-inline: auto;
    transform: rotate(var(--r, 0deg));
    animation: none;
  }
  .win[data-drag] { cursor: default; }
  .w-question { order: -2; }
  .w-timer { order: -1; width: 150px !important; margin-inline: 0 0 auto; }
  .bigword { position: fixed; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .win, .blink, .marquee-track, .w-timer.low span { animation: none !important; }
  .btn { transition: none; }
}
