/* The home page (strony/index.html), in the game's own look: wooden buttons, paper windows, ribbons
   and the real game picture as its first screen (mockup 2, accepted by Karol 13.11.2026). The inner
   pages keep css/strona.css. Positions over the game pictures are in percent of the picture, so they
   stay on their fields at every size. Wide layouts above 1100px, phones up to 720px. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --teal9: #062A28;
  --teal8: #034541;
  --wood: #3B1F08;
  --ink: #4A2C0F;
  --brown: #4A2400;
  --paper: #FFFBEC;
  --red: #D8402B;
  --red9: #8F1F12;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --plank: url("/img/glowna/t-plank.webp");
  --plank-p: url("/img/glowna/t-plank-p.webp");
  --paper-t: url("/img/glowna/t-paper.webp");
  --kraft: url("/img/glowna/t-kraft.webp");
  --ribbon: url("/img/glowna/u-ribbon.webp");
  --tape: url("/img/glowna/u-tape.webp");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--ink); background: #F3E2B3; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }
a { color: inherit; }
:focus-visible { outline: 4px solid #FFE27A; outline-offset: 3px; border-radius: 12px; }
[hidden] { display: none !important; }

/* Before the launch there is one variant; after it a returning player (?gracz=powrot, js/glowna.js)
   sees "Wróć do doliny" where a new one sees "Sprawdź grę". */
body:not([data-gracz="powrot"]) .dla-powrotu,
body[data-gracz="powrot"] .dla-nowego { display: none !important; }

.pomin { position: absolute; left: 16px; top: -5rem; z-index: 60; padding: 10px 16px; border-radius: 12px; background: var(--teal9); color: #FFF3D0; font-weight: 800; }
.pomin:focus { top: 16px; }

/* ---------- buttons like the game's ---------- */
.gbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 84px; padding: 0 42px 8px 24px; border-radius: 28px; border: 4px solid var(--teal8); background: linear-gradient(180deg, #FFF8D6 0%, #FFE27A 24%, #FFC935 60%, #F9A100 100%); box-shadow: inset 0 4px 0 rgba(255,255,255,.85), inset 0 -9px 0 #E08600, 0 8px 0 #022E2B, 0 18px 28px rgba(0,0,0,.45); color: var(--brown); font: 800 31px/1 var(--sans); letter-spacing: -0.02em; text-decoration: none; text-shadow: 0 2px 0 rgba(255,255,255,.6); cursor: pointer; text-align: center; text-wrap: balance; overflow: hidden; transition: transform .1s ease, box-shadow .1s ease, filter .1s ease; }
/* A word longer than its place (Greek, Finnish or Bulgarian on a 320 px phone) breaks instead of
   leaving the button or heading. Only such a word breaks; the rest wrap as usual. */
.gbtn > span, .wbtn > span, .wstazka, .okno__t, h2, h3 { overflow-wrap: anywhere; }
.gbtn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 36%; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 100%); transform: skewX(-18deg); animation: blysk 4.4s ease-in-out infinite; pointer-events: none; }
/* Moved by transform, not left, so the phone's compositor draws it without the page's main thread (INP, 18.11.2026):
   left -60% -> 135% of the button is 195% of the button, the shine is 36% wide: 195 / 36 = 541.667% of itself. */
@keyframes blysk { 0%, 64% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(541.667%) skewX(-18deg); } }
.gbtn:hover { color: var(--brown); filter: brightness(1.06); transform: translateY(-2px); box-shadow: inset 0 4px 0 rgba(255,255,255,.85), inset 0 -9px 0 #E08600, 0 10px 0 #022E2B, 0 22px 32px rgba(0,0,0,.45); }
.gbtn:active { transform: translateY(6px); box-shadow: inset 0 4px 0 rgba(255,255,255,.85), inset 0 -5px 0 #E08600, 0 2px 0 #022E2B, 0 6px 10px rgba(0,0,0,.4); }
.gbtn[aria-disabled="true"] { cursor: progress; filter: saturate(.7); }
.gbtn__znak { flex: none; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #12766F, #034541 72%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.35), 0 2px 0 rgba(255,255,255,.65); display: flex; align-items: center; justify-content: center; color: #FFE27A; }
.gbtn__znak svg { width: 26px; height: 26px; fill: currentColor; }
.gbtn--sm { min-height: 60px; padding: 0 28px 6px 16px; border-radius: 22px; border-width: 3px; font-size: 22px; gap: 10px; box-shadow: inset 0 3px 0 rgba(255,255,255,.85), inset 0 -6px 0 #E08600, 0 5px 0 #022E2B, 0 10px 16px rgba(0,0,0,.35); }
.gbtn--sm .gbtn__znak { width: 34px; height: 34px; }
.gbtn--sm .gbtn__znak svg { width: 18px; height: 18px; }
.gbtn--xs { min-height: 50px; padding: 0 22px 5px 12px; border-radius: 18px; border-width: 3px; font-size: 18.5px; gap: 8px; box-shadow: inset 0 3px 0 rgba(255,255,255,.85), inset 0 -5px 0 #E08600, 0 4px 0 #022E2B, 0 8px 12px rgba(0,0,0,.3); }
.gbtn--xs .gbtn__znak { width: 28px; height: 28px; }
.gbtn--xs .gbtn__znak svg { width: 15px; height: 15px; }
.gbtn--pelny { align-self: stretch; width: 100%; }
.gbtn--puls { animation: wolaj 1.25s ease-in-out infinite; }
@keyframes wolaj { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }

.wbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px 5px; border-radius: 17px; border: 3px solid var(--wood); background: linear-gradient(180deg, rgba(255,236,176,.34), rgba(110,54,8,.22)), var(--plank) center/240px; box-shadow: inset 0 2px 0 rgba(255,240,200,.6), inset 0 -5px 0 rgba(92,50,16,.6), 0 5px 0 #261203, 0 12px 18px rgba(0,0,0,.4); color: #FFF7DC; font: 800 18px/1 var(--sans); text-decoration: none; text-shadow: 0 2px 0 rgba(58,26,4,.95); cursor: pointer; text-align: center; text-wrap: balance; transition: transform .1s ease, box-shadow .1s ease, filter .1s ease; }
.wbtn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.wbtn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255,240,200,.6), inset 0 -3px 0 rgba(92,50,16,.6), 0 1px 0 #261203, 0 4px 8px rgba(0,0,0,.4); }
.wbtn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wbtn--sm { min-height: 46px; padding: 0 22px 4px; font-size: 16.5px; border-radius: 15px; }

.chip, .jezyki__przycisk { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 3px; border-radius: 15px; border: 3px solid var(--wood); background: var(--paper); box-shadow: inset 0 -4px 0 #E6D3A0, 0 4px 0 rgba(38,18,3,.92), 0 8px 14px rgba(0,0,0,.3); color: var(--ink); font: 800 15px/1 var(--sans); text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap; user-select: none; }
.jezyki__przycisk::-webkit-details-marker { display: none; }
.chip:hover, .jezyki__przycisk:hover, .jezyki[open] .jezyki__przycisk { background: #FFF3C4; color: var(--ink); }
.chip svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.jezyki { position: relative; }
.jezyki__ikona { flex: none; }
.jezyki__kod { display: none; }
.jezyki__lista { position: absolute; right: 0; top: 54px; z-index: 20; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 6px; width: min(32rem, calc(100vw - 20px)); max-height: min(70vh, 30rem); overflow-y: auto; padding: 8px; border-radius: 16px; border: 3px solid var(--wood); background: var(--paper); box-shadow: 0 5px 0 rgba(38,18,3,.92), 0 14px 24px rgba(0,0,0,.35); }
.jezyki__lista a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.jezyki__lista a:hover, .jezyki__lista a[aria-current="page"] { background: #FFE9A8; }

/* ---------- the first screen: the game's own start screen ---------- */
.hero { position: relative; height: clamp(640px, 100svh, 880px); background: #2C6A1E; color: #FFF7DC; overflow: hidden; isolation: isolate; }
.hero__scena { position: absolute; inset: 0; container-type: size; overflow: hidden; }
.kadr { position: absolute; left: 50%; top: 0; width: max(100cqw, 177.78cqh); aspect-ratio: 16 / 9; transform: translateX(-50%); }
.kadr__baza { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; }
.zbior { position: absolute; display: block; opacity: 0; transition: opacity .4s ease .12s; }
.zbior img { width: 100%; height: 100%; max-width: none; }
.zbior.on { opacity: 1; }
.zbior--1 { left: 42.562%; top: 47%; width: 20%; height: 23%; }
.zbior--2 { left: 28.875%; top: 54.444%; width: 23.062%; height: 22.222%; }
.zbior--3 { left: 53.188%; top: 58.778%; width: 23.062%; height: 23.333%; }
.zbior--4 { left: 47.125%; top: 68.667%; width: 24.562%; height: 24.222%; }
.chmury { position: absolute; inset: -25%; pointer-events: none; mix-blend-mode: multiply; background: radial-gradient(ellipse 16% 9% at 22% 34%, rgba(20,48,40,.3), rgba(20,48,40,0) 72%), radial-gradient(ellipse 20% 11% at 68% 58%, rgba(20,48,40,.26), rgba(20,48,40,0) 72%), radial-gradient(ellipse 13% 8% at 46% 82%, rgba(20,48,40,.22), rgba(20,48,40,0) 72%), radial-gradient(ellipse 15% 9% at 86% 18%, rgba(20,48,40,.24), rgba(20,48,40,0) 72%); animation: chmury 60s linear infinite alternate; }
@keyframes chmury { from { transform: translate3d(-9%, -3%, 0); } to { transform: translate3d(9%, 3%, 0); } }
.dym { position: absolute; width: 0; height: 0; pointer-events: none; }
.dym i { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.8); filter: blur(2.5px); opacity: 0; animation: dym 4.8s ease-out infinite; }
.dym i:nth-child(2) { animation-delay: 1.6s; }
.dym i:nth-child(3) { animation-delay: 3.2s; }
@keyframes dym { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 14% { opacity: .8; } 100% { transform: translate(30px, -70px) scale(2.8); opacity: 0; } }
.dym--1 { left: 74.9%; top: 40.6%; }
.dym--2 { left: 49%; top: 69%; }
.dym--3 { left: 91.3%; top: 53.7%; }
.ptak { position: absolute; left: -4%; width: 26px; height: 13px; pointer-events: none; opacity: .85; }
/* The birds fly and flap as HTML boxes moved by transform, which the compositor animates; an animated <svg> or <path>
   is redrawn by the main thread every frame and made taps on a phone slow (INP 508 ms, 18.11.2026). The wings fold
   about the same point as before, 70% down the 26 x 13 drawing: 9.1px in a 26px bird, 8.5px and 8.7px in the
   20px and 22px ones (the drawing keeps its proportions and sits in the middle of a 13px high box). */
.ptak__skrzydla { display: block; width: 100%; height: 100%; transform-origin: 50% 9.1px; animation: skrzydla .5s ease-in-out infinite alternate; }
.ptak svg { display: block; width: 100%; height: 100%; fill: none; stroke: #16261D; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ptak--1 { top: 30%; animation: przelot1 23s linear infinite; }
.ptak--2 { top: 35%; width: 20px; animation: przelot1 23s linear 1.1s infinite; }
.ptak--2 .ptak__skrzydla { transform-origin: 50% 8.5px; }
.ptak--3 { top: 64%; width: 22px; animation: przelot2 31s linear 9s infinite; }
.ptak--3 .ptak__skrzydla { transform-origin: 50% 8.7px; }
@keyframes skrzydla { from { transform: scaleY(1); } to { transform: scaleY(.25); } }
@keyframes przelot1 { 0% { transform: translate(0, 0); } 100% { transform: translate(112cqw, -22cqh); } }
@keyframes przelot2 { 0% { transform: translate(0, 0); } 100% { transform: translate(112cqw, -34cqh); } }
.hero__cien { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,38,28,.78) 0%, rgba(5,38,28,.42) 17%, rgba(5,38,28,0) 36%, rgba(5,38,28,0) 60%, rgba(5,32,24,.5) 84%, rgba(5,32,24,.82) 100%); }

.pin { position: absolute; z-index: 3; width: 68px; height: 82px; margin: -82px 0 0 -34px; padding: 0; border: 0; background: none; cursor: pointer; animation: hop 1.9s ease-in-out infinite; }
.pin--2 { animation-delay: -.5s; }
.pin--3 { animation-delay: -1s; }
.pin--4 { animation-delay: -1.4s; }
.pin--1 { left: 52.4%; top: 57.5%; }
.pin--2 { left: 40.5%; top: 65%; }
.pin--3 { left: 65%; top: 69.5%; }
.pin--4 { left: 56.6%; top: 76.5%; }
.pin__b { position: absolute; left: 0; top: 0; width: 68px; height: 68px; border-radius: 50%; background: radial-gradient(circle at 50% 28%, #FFFFFF, #FFF6D8 60%, #F1DC9C); border: 4px solid var(--teal8); box-shadow: 0 5px 0 rgba(2,46,43,.95), 0 12px 16px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.pin__b::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 18px; height: 18px; margin-left: -9px; background: #F1DC9C; border-right: 4px solid var(--teal8); border-bottom: 4px solid var(--teal8); border-radius: 0 0 5px 0; transform: rotate(45deg); }
.pin__b img { position: relative; z-index: 1; width: 48px; height: 48px; }
.pin::before { content: ""; position: absolute; left: 0; top: 0; width: 68px; height: 68px; border-radius: 50%; border: 3px solid #FFE27A; animation: puls 1.9s ease-out infinite; pointer-events: none; }
.pin:hover .pin__b { background: radial-gradient(circle at 50% 28%, #FFFFFF, #FFEFB0 60%, #FFD95A); }
.pin.zebrany { animation: znik .32s ease forwards; pointer-events: none; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes puls { 0% { transform: scale(.92); opacity: .95; } 80%, 100% { transform: scale(1.75); opacity: 0; } }
@keyframes znik { to { transform: translateY(-26px) scale(.3); opacity: 0; } }
.loty { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.lot { position: absolute; width: 46px; height: 46px; max-width: none; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }

.hud { position: absolute; z-index: 6; left: 18px; right: 18px; top: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.poziom { display: flex; align-items: center; }
.poziom__znak { position: relative; z-index: 1; flex: none; width: 66px; height: 66px; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #F6D374, #CB8D30 66%, #8F5A1C); border: 3px solid var(--wood); box-shadow: 0 4px 0 rgba(38,18,3,.92), 0 10px 16px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.poziom__znak::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 3px 5px rgba(92,50,16,.4); }
.poziom__pierscien { position: absolute; left: 2px; top: 2px; width: 56px; height: 56px; transform: rotate(-90deg); }
.poziom__pierscien circle { fill: none; stroke-width: 5.5; stroke-linecap: round; }
.poziom__tlo { stroke: rgba(74,44,15,.28); }
.poziom__xp { stroke: #5BC21F; transition: stroke-dashoffset .7s cubic-bezier(.3,1.5,.5,1) .85s; }
.poziom__nr { position: relative; font: 900 27px/1 var(--serif); color: var(--ink); }
.poziom__znak.awans { animation: awans 1.1s ease .95s both; }
.poziom__znak.awans::after { content: ""; position: absolute; inset: -34px; z-index: -1; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,226,122,.95) 0 9deg, rgba(255,226,122,0) 9deg 22.5deg); -webkit-mask: radial-gradient(circle, #000 34%, transparent 70%); mask: radial-gradient(circle, #000 34%, transparent 70%); animation: promienie 9s linear infinite; }
@keyframes awans { 0% { transform: scale(1); } 35% { transform: scale(1.45) rotate(-8deg); } 70% { transform: scale(.94) rotate(3deg); } 100% { transform: scale(1); } }
@keyframes promienie { to { transform: rotate(360deg); } }
.poziom__opis { margin-left: -24px; min-width: 222px; padding: 8px 24px 9px 36px; border-radius: 0 18px 18px 0; background: linear-gradient(180deg, #19574F, #0B3B37); border: 3px solid var(--teal9); border-left: 0; box-shadow: inset 0 2px 0 rgba(255,255,255,.14), 0 4px 0 rgba(4,26,24,.92), 0 10px 16px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 1px; }
.poziom__opis b { font: 800 18px/1.15 var(--serif); color: #FFF3D0; }
.poziom__opis span { font-weight: 700; font-size: 13px; line-height: 1.25; color: #BDE3CE; }
.poziom__opis em { font-style: normal; color: #FFD95A; }
.hud__prawa { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-left: auto; }
.hud__rzad { display: flex; gap: 10px; }
/* The big pictures are promotional graphics made from views of the game (Karol 18.11.2026) and each says so:
   the first screen in its corner (the short wording below 1240 px), the others with a chip in their own corner. */
.gp { display: inline-flex; align-items: center; padding: 5px 12px 6px; border-radius: 999px; background: rgba(6,42,40,.72); color: #E9F5E4; font-weight: 700; font-size: 12.5px; line-height: 1.2; box-shadow: 0 0 0 1.5px rgba(255,243,208,.35); }
.gp__k { display: none; }
.gp--rog { position: absolute; z-index: 2; right: 10px; top: 10px; padding: 3px 9px 4px; font-size: 11px; pointer-events: none; }
/* The open language list drops over the label of the first screen. The label hides for that time: its round end
   would show from behind the corner of the list. */
.hud__prawa:has(.jezyki[open]) .gp { visibility: hidden; }
/* Below 1240 px the long wording would reach the logo in the middle of the screen, so the first screen says it
   in the short one. */
@media (max-width: 1239px) { .gp__d { display: none; } .gp__k { display: inline; } }

.tytul { position: absolute; z-index: 4; left: 50%; top: clamp(14px, 2.6cqh, 30px); width: min(92%, 640px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; }
.tytul__logo { position: relative; width: clamp(300px, 34.5vw, 520px); animation: unos 5.5s ease-in-out infinite; }
.tytul__logo img { width: 100%; filter: drop-shadow(0 7px 0 rgba(2,30,28,.55)) drop-shadow(0 18px 22px rgba(0,0,0,.5)); }
.tytul__blysk { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask: url("/img/glowna/logo-1120.webp") center / 100% 100% no-repeat; mask: url("/img/glowna/logo-1120.webp") center / 100% 100% no-repeat; }
/* The shine was a background-position animation (repainted by the main thread every frame); now a 260% wide
   gradient moved by transform. background-position 130% -> -40% of a 260% image puts its left edge at
   -208% -> +64% of the logo, that is -80% -> 24.615% of the gradient's own width. */
.tytul__blysk::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 260%; background: linear-gradient(102deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.9) 50%, rgba(255,255,255,0) 58%); animation: blyskLogo 6s ease-in-out infinite; }
@keyframes unos { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-7px) rotate(.6deg); } }
@keyframes blyskLogo { 0%, 55% { transform: translateX(-80%); } 85%, 100% { transform: translateX(24.615%); } }
.wstazka { display: inline-flex; align-items: center; justify-content: center; min-height: 76px; padding: 0 88px 11px; background: var(--ribbon) center / 100% 100% no-repeat; color: #FFF3D0; font: 900 36px/1.04 var(--serif); letter-spacing: -0.005em; text-shadow: 0 2px 0 var(--red9); filter: drop-shadow(0 6px 8px rgba(0,0,0,.38)); max-width: 100%; white-space: normal; text-wrap: balance; text-align: center; }
.wstazka--tytul { min-height: 66px; margin-top: -20px; padding: 0 70px 9px; font-size: 28px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.haslo { margin-top: 9px; padding: 6px 20px 8px; border-radius: 999px; background: rgba(6,42,40,.8); box-shadow: 0 0 0 1.5px rgba(255,243,208,.32), 0 6px 12px rgba(0,0,0,.25); font: 800 20px/1.25 var(--serif); letter-spacing: .005em; text-wrap: balance; color: #FFF7DC; text-wrap: balance; }

.zosia { position: absolute; z-index: 5; left: clamp(0px, 1.4vw, 26px); bottom: 0; width: clamp(230px, 21.5vw, 318px); pointer-events: none; }
.zosia__postac { width: 100%; margin-bottom: -7%; filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)); }
.dymek { position: absolute; left: 83%; bottom: 60%; width: clamp(236px, 18vw, 262px); padding: 13px 17px 14px; border-radius: 22px; border: 3px solid var(--wood); background: var(--paper); box-shadow: 0 6px 0 rgba(38,18,3,.92), 0 16px 24px rgba(0,0,0,.38); color: var(--ink); pointer-events: auto; }
.dymek::before { content: ""; position: absolute; left: -13px; bottom: 26px; width: 20px; height: 20px; background: var(--paper); border-left: 3px solid var(--wood); border-bottom: 3px solid var(--wood); border-radius: 0 0 0 6px; transform: rotate(45deg); }
.dymek__kto { position: absolute; left: 16px; top: -15px; padding: 3px 12px 4px; border-radius: 999px; background: var(--red); border: 2.5px solid var(--wood); color: #FFF3D0; font-weight: 800; font-size: 12.5px; line-height: 1.2; }
.dymek__tytul { display: block; font: 900 21px/1.15 var(--serif); color: var(--brown); }
.dymek__tekst { display: block; margin-top: 3px; font-weight: 600; font-size: 15px; line-height: 1.38; }
.pipsy { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.pipsy i { width: 22px; height: 22px; border-radius: 50%; background: #EADBB2; border: 2.5px solid #B99A5E; box-shadow: inset 0 2px 3px rgba(92,50,16,.25); transition: background-color .3s ease .8s, border-color .3s ease .8s, transform .3s ease .8s; }
.pipsy i.on { background: radial-gradient(circle at 50% 30%, #B8F06A, #5BC21F); border-color: #2F7D0A; transform: scale(1.12); }

.start { position: absolute; z-index: 6; left: 50%; bottom: clamp(40px, 5.4cqh, 58px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 28px); }
.start__para, .final__cta { display: flex; align-items: center; gap: 16px; }
.start__para .wbtn, .final__cta .wbtn { min-height: 62px; padding: 0 26px 6px; font-size: 20px; border-radius: 20px; }
.start__przycisk { position: relative; display: inline-flex; }
.start--go .start__przycisk { animation: wolaj 1.25s ease-in-out infinite; }
.start--go .start__przycisk::before { content: ""; position: absolute; inset: -7px -7px -15px; border-radius: 36px; border: 4px solid #FFE27A; animation: pulsCta 1.25s ease-out infinite; pointer-events: none; }
@keyframes pulsCta { 0% { transform: scale(.98); opacity: .95; } 100% { transform: scale(1.1, 1.34); opacity: 0; } }
.uwaga { max-width: 34em; text-align: center; font-weight: 700; font-size: 14.5px; line-height: 1.35; color: #FFF7DC; text-shadow: 0 1px 0 var(--teal9), 0 0 10px rgba(4,30,26,.95), 0 0 4px rgba(4,30,26,.9); }
/* the game to download beside the browser (Karol 16.11.2026, variant A): a row under the buttons, the visitor's own system first */
.pobierz, .pobierz__lista { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; }
.pobierz__t { font: 800 14.5px/1.2 var(--sans); color: #FFF7DC; text-shadow: 0 1px 0 var(--teal9), 0 0 10px rgba(4,30,26,.95); }
.pchip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 2px 11px; border-radius: 13px; border: 2.5px solid rgba(255,243,208,.55); background: rgba(6,42,40,.84); color: #FFF7DC; font: 800 15px/1 var(--sans); text-decoration: none; box-shadow: 0 3px 0 rgba(2,20,18,.9), 0 8px 14px rgba(0,0,0,.3); white-space: nowrap; transition: transform .1s ease, filter .1s ease; }
.pchip:hover { filter: brightness(1.12); transform: translateY(-1px); }
.pchip:active { transform: translateY(2px); }
.pchip svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pchip--twoje { background: var(--paper); color: var(--ink); border-color: var(--wood); box-shadow: inset 0 -4px 0 #E6D3A0, 0 4px 0 rgba(38,18,3,.92), 0 8px 14px rgba(0,0,0,.3); }
.uwaga--info { max-width: 40em; }
/* on the launch stage the row of downloads lifts the buttons, so Zosia's bubble moves up with them (on phones the bubble has its own place) */
@media (min-width: 1181px) { .hero--po .dymek { bottom: calc(60% + 60px); } }
@media (min-width: 721px) and (max-width: 1180px) { .hero--po .dymek { bottom: calc(74% + 56px); } }
.uwaga--info::before { content: ""; display: inline-block; width: 19px; height: 19px; margin-right: 6px; vertical-align: -4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.5' fill='%23FFE27A'/%3E%3Ccircle cx='10' cy='5.6' r='1.6' fill='%234A2400'/%3E%3Crect x='8.5' y='8.4' width='3' height='7.2' rx='1.2' fill='%234A2400'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 1px 0 rgba(0,0,0,.45)); }
.naklejka { position: absolute; right: -26px; top: -20px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px 5px 6px; border-radius: 999px; border: 3px solid var(--wood); background: linear-gradient(180deg, #F36B55, #C22E1B); box-shadow: 0 3px 0 rgba(38,18,3,.9); color: #FFF3D0; font-weight: 800; font-size: 14px; line-height: 1.1; white-space: nowrap; transform: rotate(7deg); pointer-events: none; animation: kiwaj 3.2s ease-in-out infinite; }
.naklejka img { width: 24px; height: 24px; }
@keyframes kiwaj { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(2deg) translateY(-2px); } }
/* the launch countdown (Karol 16.11.2026): on the first screen a timer under the level (computer) or on the sign-up
   button's corner (phone), and a bigger one by the final sign-up.
   js/glowna.js fills and shows it; without the script the launch date stays in words only. */
.odl { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 5px 5px; border-radius: 14px; border: 3px solid var(--teal9); background: linear-gradient(180deg, #1D615A, #0B3B37); box-shadow: inset 0 2px 0 rgba(255,255,255,.16), 0 3px 0 rgba(4,26,24,.92), 0 8px 12px rgba(0,0,0,.28); color: #FFF3D0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.odl__zegar { flex: none; width: 22px; height: 22px; margin: 0 2px 0 1px; fill: none; stroke: #FFE27A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.odl__j { display: inline-flex; flex-direction: column; align-items: center; min-width: 34px; padding: 3px 4px 3px; border-radius: 8px; background: rgba(2,22,20,.5); box-shadow: inset 0 1px 0 rgba(0,0,0,.35); line-height: 1; }
.odl__j b { font: 800 17px/1 var(--sans); color: #FFE27A; }
.odl__j small { margin-top: 2px; font: 700 10px/1 var(--sans); color: #CFE7DF; }
.odl__dzis { padding: 2px 6px 3px 2px; font: 800 15px/1.1 var(--sans); color: #FFE27A; }
.odl--chip { display: none; }
.odl--hud { position: absolute; z-index: 6; left: 18px; top: 94px; flex-wrap: wrap; justify-content: center; max-width: 274px; padding: 6px 8px 7px; gap: 5px; pointer-events: none; }
.odl__tytul { flex: 1 0 100%; padding: 0 2px; font: 800 15px/1.15 var(--serif); color: #FFF3D0; text-align: center; white-space: normal; text-wrap: balance; }
/* below 1240px a long title ribbon reaches the left corner, so the timer waits under the slogan */
@media (max-width: 1239px) { .odl--hud { top: 300px; } }
.odl--duze { margin-top: 18px; gap: 8px; padding: 8px 12px 9px 10px; border-radius: 18px; }
.odl--duze .odl__zegar { width: 30px; height: 30px; margin: 0 4px 0 2px; }
.odl--duze .odl__j { min-width: 58px; padding: 7px 7px 6px; border-radius: 11px; }
.odl--duze .odl__j b { font-size: 30px; }
.odl--duze .odl__j small { margin-top: 4px; font-size: 12.5px; }
.odl--duze .odl__dzis { font-size: 22px; }
.dalej { position: absolute; z-index: 6; left: 50%; bottom: 6px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; border: 3px solid var(--wood); background: var(--paper); box-shadow: 0 3px 0 rgba(38,18,3,.92); display: flex; align-items: center; justify-content: center; color: var(--ink); animation: hop 1.6s ease-in-out infinite; }
.dalej svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- consent window for statistics and the Meta pixel (js/zgoda.js), as a note taped over the farm ---------- */
.zgoda { position: fixed; z-index: 45; right: 18px; bottom: 16px; width: min(360px, calc(100% - 28px)); }
.zgoda--w-hero { position: absolute; z-index: 7; }
.zgoda__karta { position: relative; padding: 22px 16px 14px; background: linear-gradient(rgba(255,244,214,.35), rgba(255,244,214,.35)), var(--kraft) center/260px; border-radius: 6px; box-shadow: 0 2px 0 rgba(92,50,16,.5), 0 12px 22px rgba(0,0,0,.4); color: #3F2A12; font-size: 13.5px; line-height: 1.42; transform: rotate(-1.4deg); }
.zgoda__karta::before { content: ""; position: absolute; left: 50%; top: -14px; width: 104px; height: 30px; margin-left: -52px; background: var(--tape) center / 100% 100% no-repeat; transform: rotate(2deg); }
.zgoda__tytul { font: 800 16px/1.2 var(--serif); color: #3F2A12; margin-bottom: 4px; }
.zgoda__karta a { color: #3B1F08; font-weight: 700; }
.zgoda__wybor { display: grid; gap: 2px; margin-top: 6px; }
.zgoda__opcja { display: flex; align-items: center; gap: 8px; min-height: 30px; font-weight: 700; cursor: pointer; }
.zgoda__opcja input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #6B3E12; cursor: pointer; }
.zgoda__przyciski { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin-top: 10px; }
.zgoda .przycisk { justify-content: center; text-align: center; text-wrap: balance; min-height: 42px; border-radius: 11px; border: 2.5px solid var(--wood); background: var(--paper); box-shadow: inset 0 -3px 0 #E6D3A0, 0 3px 0 rgba(38,18,3,.9); color: var(--ink); font: 800 14px/1.1 var(--sans); cursor: pointer; }
.zgoda .przycisk:hover { background: #FFF3C4; }
body:has(.jezyki[open]) .zgoda { visibility: hidden; }

/* ---------- the sign-up window, like a window in the game ---------- */
.okno { position: relative; display: flex; flex-direction: column; border-radius: 26px; border: 4px solid var(--wood); background: linear-gradient(rgba(255,251,236,.55), rgba(255,251,236,.55)), var(--paper-t) center/360px; box-shadow: 0 8px 0 rgba(38,18,3,.95), 0 30px 60px rgba(0,0,0,.55); color: var(--ink); }
.okno__h { position: relative; flex: none; height: 58px; border-radius: 21px 21px 0 0; background: url("/img/glowna/u-awning.webp") left top / auto 100% repeat-x #C73A27; border-bottom: 4px solid var(--wood); }
.okno__t { position: absolute; left: 12px; right: 12px; top: 22px; width: fit-content; max-width: calc(100% - 24px); margin: 0 auto; display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 58px 8px; background: var(--ribbon) center / 100% 100% no-repeat; color: #FFF3D0; font: 900 25px/1 var(--serif); text-shadow: 0 2px 0 var(--red9); text-align: center; text-wrap: balance; filter: drop-shadow(0 4px 5px rgba(0,0,0,.3)); }
.okno__zamknij { position: absolute; right: -14px; top: -14px; z-index: 2; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 3px solid var(--wood); background: radial-gradient(circle at 50% 30%, #F36B55, #C22E1B); box-shadow: inset 0 -4px 0 rgba(120,20,8,.6), 0 4px 0 rgba(38,18,3,.92); color: #FFF3D0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.okno__zamknij svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; }
.okno__in { padding: 32px 24px 22px; }
.okno__top { display: flex; align-items: center; gap: 16px; }
.okno__top img { flex: none; width: 112px; }
.okno__top p { font-weight: 600; font-size: 16.5px; line-height: 1.45; }
.okno__top p b { display: block; margin-bottom: 2px; font: 900 23px/1.15 var(--serif); color: var(--brown); }
.okno__fanty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.fant { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 8px 11px; border-radius: 16px; border: 2.5px solid #D99A1C; background: linear-gradient(180deg, rgba(255,243,196,.9), rgba(255,226,122,.55)); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 3px 0 rgba(153,100,10,.45); text-align: center; font-weight: 700; font-size: 13px; line-height: 1.3; }
.fant img { width: 56px; height: 56px; object-fit: contain; }
.fant b { font: 800 15.5px/1.15 var(--serif); color: var(--brown); }
.okno__nota { margin-top: 9px; font-weight: 700; font-size: 13.5px; line-height: 1.4; text-align: center; color: #6A4A12; }
.okno__po { margin-top: 12px; font-weight: 700; font-size: 15px; line-height: 1.45; }
/* In the last section the rewards are already beside the window. */
.final .okno__fanty { display: none; }

.dialog { width: min(calc(100% - 28px), 600px); max-width: none; max-height: calc(100svh - 28px); margin: auto; padding: 0; border: 0; background: none; overflow: visible; color: var(--ink); }
.dialog::backdrop { background: rgba(4,26,22,.66); backdrop-filter: blur(3px); }
.dialog .okno { max-height: calc(100svh - 28px); }
.dialog .okno__in { overflow: auto; overscroll-behavior: contain; }
.dialog[open] .okno { animation: wskok .32s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes wskok { from { transform: translateY(24px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
/* iOS Safari draws the caret where the e-mail field was when it got focus (glowna.js focuses it as the
   window opens, so the phone's keyboard comes up) and does not move it with the window's opening
   movement: the caret stayed below the typed text (Karol 18.11.2026, iPhone). On touch screens the
   window only fades in, so the field is in its place from the start. */
@keyframes wskok-bez-ruchu { from { opacity: 0; } to { opacity: 1; } }
@media (pointer: coarse) { .dialog[open] .okno { animation-name: wskok-bez-ruchu; } }

/* The sign-up form (its fields and texts are the site's own, js/strona.js checks and sends it). */
.formularz { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.pole__etykieta { display: block; margin-bottom: 4px; font-weight: 800; font-size: 14.5px; }
.pole__wejscie { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 15px; border: 3px solid var(--wood); background: #fff; box-shadow: inset 0 3px 0 rgba(92,50,16,.18); font: 700 17px/1.2 var(--sans); color: var(--ink); }
.pole__wejscie[aria-invalid="true"], .pole__pudelko[aria-invalid="true"] { outline: 3px solid #B3261E; outline-offset: 1px; }
.pole--wybor { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 10px; font-size: 13.5px; line-height: 1.42; }
.pole__pudelko { width: 26px; height: 26px; margin: 1px 0 0; accent-color: #2F7D0A; }
.pole__podpowiedz { grid-column: 2; font-size: 12.5px; color: #7A6038; }
.pole__blad { margin-top: 4px; color: #A3261B; font-weight: 800; font-size: 13.5px; }
.pole--wybor .pole__blad { grid-column: 2; margin-top: 0; }
.pole__poprawka { padding: 0; border: 0; background: none; color: #034541; font: inherit; text-decoration: underline; overflow-wrap: anywhere; cursor: pointer; }
.pulapka { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }
.formularz__stan { margin-top: 10px; font-weight: 800; font-size: 14.5px; }
.formularz__stan:empty { margin: 0; }
.formularz__stan--blad { color: #A3261B; }
.klauzula { padding: 9px 12px; border-radius: 12px; background: rgba(92,50,16,.08); font-size: 11.5px; line-height: 1.45; color: #6A5230; }
.klauzula a { color: var(--wood); }
.potwierdzenie { display: flow-root; margin-top: 8px; font-weight: 600; font-size: 16px; line-height: 1.45; }
.potwierdzenie::before { content: ""; float: left; width: 86px; height: 86px; margin: 0 16px 6px 0; background: url("/img/glowna/u-seal.webp") center / contain no-repeat; transform: rotate(-8deg); }
.potwierdzenie h3 { font: 900 23px/1.2 var(--serif); color: var(--brown); }
.potwierdzenie p { margin-top: 6px; }
.potwierdzenie h3:focus { outline: none; }
/* „Otwórz pocztę” (strona.js): under the seal, the width of the panel, with room for its shadow. */
.potwierdzenie__poczta { clear: both; padding-top: 8px; margin-bottom: 16px; }
.potwierdzenie__poczta .gbtn { font-size: 20px; }
.spolecznosci { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; clear: both; }
.przycisk { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px 3px; border-radius: 15px; border: 3px solid var(--wood); background: var(--paper); box-shadow: inset 0 -4px 0 #E6D3A0, 0 4px 0 rgba(38,18,3,.92); color: var(--ink); font: 800 15px/1.1 var(--sans); text-decoration: none; }
.przycisk:hover { background: #FFF3C4; color: var(--ink); }
.ikona--facebook { color: #1877F2; }
.ikona--instagram { color: #C13584; }

.belka { position: relative; z-index: 2; height: 22px; margin: -11px 0; background: var(--plank) center/300px; border-top: 4px solid var(--wood); border-bottom: 4px solid var(--wood); box-shadow: inset 0 3px 0 rgba(255,240,200,.45), 0 6px 12px rgba(0,0,0,.3); }

/* ---------- the rest of the page: boards and windows from the game ---------- */
.sek { position: relative; padding: 46px 0 54px; isolation: isolate; overflow-x: clip; scroll-margin-top: 70px; }
.sek__wnetrze { position: relative; width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.sek--sukno { background: linear-gradient(rgba(14,52,22,.3), rgba(14,52,22,.3)), url("/img/glowna/t-linen.webp") center/300px #2F6B2A; color: #FFF7DC; }
.sek--noc { background: radial-gradient(ellipse 80% 70% at 50% 0%, #17544D 0%, #0A3532 55%, #062A28 100%); color: #FFF7DC; }
.sek--deski { background: linear-gradient(rgba(48,24,6,.6), rgba(48,24,6,.6)), var(--plank-p) center/400px #6E4219; color: #FFF7DC; }
.sek--stodola { background: linear-gradient(rgba(66,10,4,.34), rgba(66,10,4,.34)), url("/img/glowna/t-barn.webp") center top / 328px 410px #A32F1D; color: #FFF7DC; }
.sek--ciemna { background: radial-gradient(ellipse 90% 80% at 50% 20%, #12504A 0%, #0A3532 60%, #062A28 100%); color: #FFF7DC; }
.sek--stol { background: linear-gradient(rgba(255,240,205,.14), rgba(255,240,205,.14)), var(--kraft) center/420px #CFAE74; color: var(--ink); }
.naglowek { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto 24px; }
.naglowek__wstazka { position: relative; max-width: 100%; }
.odkryte { position: absolute; right: -26px; top: -14px; z-index: 2; padding: 4px 11px 5px; border-radius: 999px; border: 3px solid #234F06; background: radial-gradient(circle at 50% 30%, #B8F06A, #5BC21F); box-shadow: 0 3px 0 rgba(10,36,14,.7); color: #fff; font-weight: 800; font-size: 13px; line-height: 1.1; text-shadow: 0 1px 0 #234F06; white-space: nowrap; transform: rotate(9deg) scale(0); pointer-events: none; }
.odkryte.on { animation: stempelOdk .55s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes stempelOdk { from { transform: rotate(-20deg) scale(2.2); opacity: 0; } to { transform: rotate(9deg) scale(1); opacity: 1; } }
.naglowek__pod { max-width: 39em; margin-top: 12px; font-weight: 600; font-size: 18px; line-height: 1.5; text-wrap: balance; }
.sek--stol .naglowek__pod { padding: 7px 18px 8px; border-radius: 14px; background: rgba(255,251,236,.9); box-shadow: 0 3px 0 rgba(92,50,16,.3); color: var(--ink); }
.srodek { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; text-align: center; font-weight: 700; font-size: 15px; }

/* the wooden bar, like the game's menu */
.pasek { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 76px; padding: 0 20px; background: linear-gradient(180deg, rgba(255,236,176,.24), rgba(84,40,6,.3)), var(--plank) center/300px; border-top: 4px solid var(--wood); border-bottom: 4px solid var(--wood); box-shadow: inset 0 3px 0 rgba(255,240,200,.45), 0 8px 16px rgba(0,0,0,.35); }
.pasek__logo { flex: none; }
.pasek__logo img { width: 128px; filter: drop-shadow(0 3px 0 rgba(2,30,28,.5)); }
.pasek__linki { display: flex; gap: 2px; margin: 0 auto; }
.pasek__linki a { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 78px; padding: 4px 8px 5px; border-radius: 14px; color: #FFF7DC; font-weight: 800; font-size: 12.5px; line-height: 1.15; text-decoration: none; text-shadow: 0 1px 0 rgba(58,26,4,.95); transition: transform .12s ease, background-color .12s ease; }
.pasek__linki img, .pasek__linki svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 0 rgba(38,18,3,.55)); }
.pasek__linki a:hover { background: rgba(59,31,8,.42); transform: translateY(-2px); color: #fff; }
/* Eight parts with the guide (Karol 20.11.2026, AdSense): on a narrower desktop the links get tighter, so the button keeps its line. */
@media (max-width: 1299px) { .pasek__linki a { min-width: 64px; padding-inline: 4px; font-size: 12px; } }
.zadanie { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 14px 8px; border-radius: 14px; border: 3px solid var(--wood); background: linear-gradient(180deg, #19574F, #0B3B37); box-shadow: inset 0 2px 0 rgba(255,255,255,.14), 0 3px 0 rgba(38,18,3,.8); color: #FFF3D0; font-weight: 800; font-size: 13px; line-height: 1.1; white-space: nowrap; }
.zadanie__kropki { display: flex; gap: 5px; }
.zadanie__kropki i { width: 16px; height: 16px; border-radius: 50%; background: #0A2F2C; border: 2px solid #052220; box-shadow: inset 0 2px 2px rgba(0,0,0,.4); transition: background-color .3s ease, transform .3s cubic-bezier(.3,1.6,.5,1); }
.zadanie__kropki i.on { background: radial-gradient(circle at 50% 30%, #B8F06A, #5BC21F); border-color: #2F7D0A; transform: scale(1.15); }
.zadanie.pelne { background: linear-gradient(180deg, #FFF0A8, #FFC935); color: var(--brown); animation: awansQ .7s cubic-bezier(.3,1.6,.5,1) both; }
.zadanie.pelne .zadanie__kropki i.on { background: radial-gradient(circle at 50% 30%, #FFFFFF, #FFE27A); border-color: #B5730A; }
@keyframes awansQ { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-3deg); } 100% { transform: scale(1); } }
.slonce, .ksiezyc { width: 34px; height: 34px; }

/* the farmer's road: the levels */
.tor { margin: 0 4px 20px; }
.tor__wnetrze { position: relative; display: flex; align-items: center; justify-content: space-between; height: 96px; padding: 0 4px; }
.tor__wnetrze::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 22px; margin-top: -11px; border-radius: 11px; border: 3px solid var(--wood); background: var(--plank) center/220px; box-shadow: inset 0 2px 0 rgba(255,240,200,.5), 0 4px 0 rgba(10,36,14,.55); }
.tor__postep { position: absolute; left: 4px; top: 50%; width: calc(31px + (100% - 70px) * var(--tor, 0)); height: 14px; margin-top: -7px; border-radius: 7px; background: linear-gradient(180deg, #FFF0A8, #FFC935 55%, #F9A100); box-shadow: inset 0 2px 0 rgba(255,255,255,.6); transition: width .35s ease; }
.lv { position: relative; z-index: 1; flex: none; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.lv__b { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #E4D5AC, #BFA873 66%, #8F7A48); border: 3px solid var(--wood); box-shadow: 0 4px 0 rgba(10,36,14,.6); display: flex; align-items: center; justify-content: center; }
.lv__b::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #EDE2C2; box-shadow: inset 0 3px 5px rgba(92,50,16,.35); }
.lv__b b { position: relative; font: 900 24px/1 var(--serif); color: #8C7446; }
.lv.byl .lv__b { background: radial-gradient(circle at 50% 32%, #F6D374, #CB8D30 66%, #8F5A1C); }
.lv.byl .lv__b::before { background: var(--paper); }
.lv.byl .lv__b b { color: var(--ink); }
.lv:hover { transform: scale(1.12); }
.lv.on, .lv.on:hover { transform: scale(1.3); }
.lv.on .lv__b { background: radial-gradient(circle at 50% 32%, #C6F27A, #5BC21F 66%, #2F7D0A); }
.lv.on .lv__b::before { background: #fff; }
.lv.on .lv__b b { color: #234F06; }
.lv.on::before { content: ""; position: absolute; inset: -22px; z-index: -1; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,226,122,.95) 0 9deg, rgba(255,226,122,0) 9deg 22.5deg); -webkit-mask: radial-gradient(circle, #000 38%, transparent 70%); mask: radial-gradient(circle, #000 38%, transparent 70%); animation: promienie 9s linear infinite; }
.lv--koniec .lv__b b { font-size: 20px; }
.lv.nast::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid #FFE27A; animation: puls 1.9s ease-out infinite; pointer-events: none; }
.lv.nast .lv__b { background: radial-gradient(circle at 50% 32%, #FFF3C4, #FFD95A 66%, #D99A1C); }
.lv.nast .lv__b b { color: #6A4A12; }
.plansza { position: relative; min-height: 346px; padding: 22px 24px 26px; border-radius: 26px; border: 4px solid var(--wood); background: linear-gradient(rgba(255,251,236,.5), rgba(255,251,236,.5)), var(--paper-t) center/360px; box-shadow: 0 8px 0 rgba(10,36,14,.7), 0 26px 40px rgba(0,0,0,.35); color: var(--ink); }
.pl { display: none; }
.pl.on { display: block; animation: wjazd .28s ease both; }
@keyframes wjazd { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pl__t { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.pl__t b { display: inline-flex; align-items: center; height: 40px; padding: 0 16px 2px; border-radius: 13px; background: linear-gradient(180deg, #19574F, #0B3B37); border: 3px solid var(--teal9); box-shadow: 0 3px 0 rgba(4,26,24,.8); color: #FFF3D0; font: 900 20px/1 var(--serif); white-space: nowrap; }
.pl__t span { font: 900 25px/1.1 var(--serif); color: var(--brown); }
.karty { display: flex; justify-content: center; gap: 16px; }
/* Level 1 has seven cards: two rows of four and three instead of seven narrow ones in one (17.11.2026, row 13 of the list of bugs). */
.karty--dwa-rzedy { flex-wrap: wrap; max-width: 872px; margin-inline: auto; row-gap: 22px; }
.karta { position: relative; flex: 0 1 206px; display: flex; flex-direction: column; align-items: center; padding: 10px 12px 14px; border-radius: 20px; border: 3px solid var(--wood); background: #FFFDF4; box-shadow: 0 5px 0 rgba(59,31,8,.9); text-align: center; font-weight: 600; font-size: 14px; line-height: 1.35; transition: transform .15s ease; }
.karta:hover { transform: translateY(-4px) rotate(-.6deg); }
.karta__obraz { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 126px; padding: 8px 8px 10px; border-radius: 14px; background: radial-gradient(ellipse 72% 62% at 50% 64%, #E4F5BC 0%, #C3E290 58%, #A9D172 100%); overflow: hidden; }
.karta__obraz img { width: auto; max-width: 100%; max-height: 106px; filter: drop-shadow(0 4px 3px rgba(40,60,10,.35)); }
.karta__obraz img.maly { max-height: 44px; margin-left: -16px; }
.karta__obraz--ikona { align-items: center; background: radial-gradient(circle at 50% 46%, #FFF7D6 0%, #F6E3A6 60%, #E9CD82 100%); }
.karta__obraz--ikona img { max-height: 84px; }
.karta__obraz--twarze { align-items: flex-end; padding-bottom: 0; background: radial-gradient(circle at 50% 40%, #CFEFEA 0%, #9FD6CD 62%, #7CC0B6 100%); }
.karta__obraz--twarze img { max-height: 116px; filter: none; }
.karta__obraz--twarze img + img { margin-left: -22px; }
.karta__znacznik { margin-top: -13px; padding: 3px 11px 4px; border-radius: 999px; border: 2.5px solid var(--wood); background: #3F8F1F; color: #fff; font-weight: 800; font-size: 11.5px; line-height: 1.1; letter-spacing: .02em; white-space: nowrap; }
.karta__znacznik--zw { background: #B45F12; }
.karta__znacznik--wa { background: #8A5A2B; }
.karta__znacznik--od { background: #0B6A63; }
.karta__znacznik--mi { background: #C73A27; }
.karta__znacznik--no { background: #FFC935; color: var(--brown); }
.karta__znacznik--ra { background: #2B6CB0; }
.karta__znacznik--wy { background: #6B4FA0; }
.karta__znacznik--op { background: #A8324E; }
.karta b { margin-top: 7px; font: 900 19px/1.15 var(--serif); color: var(--brown); }
.karta > span:last-child { margin-top: 2px; }
.wiatrak { position: relative; height: 106px; width: 66px; margin-right: 30px; }
.wiatrak img { position: absolute; max-width: none; max-height: none; filter: none; }
.wiatrak__wieza { left: 0; top: 0; height: 100%; width: auto; }
.wiatrak__smigla { left: 89%; top: 45%; width: 92px; height: auto; margin: -47px 0 0 -46px; animation: obrot 11s linear infinite; }
@keyframes obrot { to { transform: rotate(360deg); } }
.pl__dalej { position: absolute; left: 12px; right: 12px; bottom: -27px; width: fit-content; max-width: calc(100% - 24px); margin-inline: auto; z-index: 2; }
.pl__koniec { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0 8px; text-align: center; }
.pl__koniec img { width: 92px; }
.pl__koniec p { max-width: 34em; font-weight: 600; font-size: 17px; line-height: 1.5; }
.pl__koniec .pl__t { margin-bottom: 0; }
.pl__koniec .gbtn { margin-top: 6px; }

/* the living valley: day and night */
.gwiazdy { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7; background: radial-gradient(1.6px 1.6px at 6% 18%, #FFF3D0 50%, transparent 51%), radial-gradient(1.4px 1.4px at 14% 62%, #FFF3D0 50%, transparent 51%), radial-gradient(2px 2px at 23% 9%, #FFF3D0 50%, transparent 51%), radial-gradient(1.4px 1.4px at 37% 30%, #BDE3CE 50%, transparent 51%), radial-gradient(1.8px 1.8px at 52% 7%, #FFF3D0 50%, transparent 51%), radial-gradient(1.4px 1.4px at 66% 22%, #FFF3D0 50%, transparent 51%), radial-gradient(2px 2px at 78% 12%, #FFF3D0 50%, transparent 51%), radial-gradient(1.4px 1.4px at 88% 44%, #BDE3CE 50%, transparent 51%), radial-gradient(1.8px 1.8px at 95% 76%, #FFF3D0 50%, transparent 51%), radial-gradient(1.4px 1.4px at 3% 88%, #FFF3D0 50%, transparent 51%); }
.swiat { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 30px; align-items: start; }
.kino { position: relative; aspect-ratio: 16 / 9; margin: 9px; border-radius: 18px; border: 4px solid var(--wood); box-shadow: 0 0 0 5px #B5732F, 0 0 0 9px var(--wood), 0 10px 0 9px rgba(2,20,18,.55), 0 30px 44px rgba(0,0,0,.5); background: #0B2F2D; overflow: hidden; }
.kino__kadr { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.kino__kadr.on { opacity: 1; }
.zegar { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; align-items: center; }
.zegar__znak { position: relative; z-index: 1; flex: none; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #F6D374, #CB8D30 66%, #8F5A1C); border: 3px solid var(--wood); box-shadow: 0 4px 0 rgba(38,18,3,.92); display: flex; align-items: center; justify-content: center; }
.zegar__znak::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #143F5C; box-shadow: inset 0 3px 5px rgba(0,0,0,.4); transition: background-color .6s ease; }
.zegar--dzien .zegar__znak::before { background: #8FD0F2; }
.zegar__znak svg { position: relative; width: 32px; height: 32px; }
.zegar__znak .slonce, .zegar--dzien .zegar__znak .ksiezyc { display: none; }
.zegar--dzien .zegar__znak .slonce { display: block; }
.zegar__t { margin-left: -20px; padding: 6px 18px 7px 30px; border-radius: 0 16px 16px 0; background: linear-gradient(180deg, #19574F, #0B3B37); border: 3px solid var(--teal9); border-left: 0; box-shadow: 0 4px 0 rgba(4,26,24,.92); display: flex; flex-direction: column; }
.zegar__t b { font: 900 23px/1.05 var(--serif); color: #FFF3D0; }
.zegar__t > span { font-weight: 700; font-size: 13px; line-height: 1.2; color: #BDE3CE; }
.kino__opis { position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 8px 18px 9px; border-radius: 14px; background: rgba(6,42,40,.88); box-shadow: 0 0 0 2px rgba(255,243,208,.35); font-weight: 700; font-size: 16px; line-height: 1.3; color: #FFF7DC; text-align: center; }
.niebo { position: relative; height: 26px; margin: 28px 0 0; border-radius: 13px; border: 3px solid var(--wood); background: linear-gradient(90deg, #F6A27A 0%, #FFD98A 12%, #8FD0F2 28%, #8FD0F2 40%, #FFC55C 52%, #E8795A 66%, #5B4A8C 80%, #14234A 100%); box-shadow: 0 4px 0 rgba(2,20,18,.6); }
.niebo input[type=range] { -webkit-appearance: none; appearance: none; position: absolute; left: calc(10% - 24px); top: -3px; width: calc(80% + 48px); height: 26px; margin: 0; background: transparent; cursor: pointer; }
.niebo input[type=range]::-webkit-slider-runnable-track { height: 26px; background: transparent; }
.niebo input[type=range]::-moz-range-track { height: 26px; background: transparent; }
.niebo input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 48px; height: 48px; margin-top: -11px; border-radius: 50%; border: 3px solid var(--wood); background: radial-gradient(circle at 40% 35%, #FFF8D2, #FFD23F 58%, #F9A100); box-shadow: 0 0 0 5px rgba(255,226,122,.4), 0 4px 0 rgba(38,18,3,.9); cursor: grab; }
.niebo input[type=range]::-moz-range-thumb { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--wood); background: radial-gradient(circle at 40% 35%, #FFF8D2, #FFD23F 58%, #F9A100); box-shadow: 0 0 0 5px rgba(255,226,122,.4), 0 4px 0 rgba(38,18,3,.9); cursor: grab; }
.niebo--p3 input[type=range]::-webkit-slider-thumb, .niebo--p4 input[type=range]::-webkit-slider-thumb { background: radial-gradient(circle at 62% 38%, #143F5C 0 34%, transparent 35%), radial-gradient(circle at 44% 46%, #FFF6D0, #E6D38C 70%); box-shadow: 0 0 0 5px rgba(189,227,206,.3), 0 4px 0 rgba(38,18,3,.9); }
.niebo--p3 input[type=range]::-moz-range-thumb, .niebo--p4 input[type=range]::-moz-range-thumb { background: radial-gradient(circle at 62% 38%, #143F5C 0 34%, transparent 35%), radial-gradient(circle at 44% 46%, #FFF6D0, #E6D38C 70%); }
.pory { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.pora { position: relative; min-height: 44px; padding: 0 6px 3px; border-radius: 13px; border: 3px solid var(--wood); background: var(--paper); box-shadow: inset 0 -4px 0 #E6D3A0, 0 4px 0 rgba(2,20,18,.7); color: var(--ink); font-weight: 800; font-size: 14.5px; line-height: 1.1; cursor: pointer; }
.pora:hover { background: #FFF3C4; }
.pora.on { background: linear-gradient(180deg, #FFF0A8, #FFC935); box-shadow: inset 0 -4px 0 #E08600, 0 4px 0 rgba(2,20,18,.7); }
.pora__teraz { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); padding: 1px 7px 2px; border-radius: 999px; background: #3E8E14; border: 2px solid #234F06; color: #fff; font-style: normal; font-weight: 800; font-size: 10.5px; line-height: 1.2; white-space: nowrap; }
.fakty { display: grid; gap: 12px; }
.fakt { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 13px; align-items: center; padding: 13px 16px 14px 13px; border-radius: 18px; border: 3px solid var(--teal9); background: linear-gradient(180deg, #1A5A52, #0E423D); box-shadow: inset 0 2px 0 rgba(255,255,255,.12), 0 5px 0 rgba(2,20,18,.7); }
.fakt__ikona { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #FFF3C4, #FFD95A 62%, #F2A31A); border: 3px solid var(--wood); box-shadow: 0 3px 0 rgba(2,20,18,.7); }
.fakt__ikona svg { width: 30px; height: 30px; fill: none; stroke: var(--brown); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fakt b { display: block; font: 800 18.5px/1.2 var(--serif); color: #FFF3D0; }
.fakt span { display: block; margin-top: 2px; font-weight: 600; font-size: 14.5px; line-height: 1.4; color: #CDE8D8; }

/* rebuilding: before and after */
.odb { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 30px; align-items: start; }
.pp { position: relative; aspect-ratio: 16 / 9; margin: 9px; border-radius: 18px; border: 4px solid var(--wood); box-shadow: 0 0 0 5px #D6974A, 0 0 0 9px var(--wood), 0 10px 0 9px rgba(30,14,2,.6), 0 30px 44px rgba(0,0,0,.5); background: #2C6A1E; overflow: hidden; touch-action: pan-y; }
.pp > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.pp__przed { clip-path: inset(0 calc(100% - var(--pp, 46%)) 0 0); }
.pp__e { position: absolute; top: 12px; z-index: 2; padding: 5px 14px 6px; border-radius: 12px; border: 3px solid var(--wood); background: var(--paper); box-shadow: 0 3px 0 rgba(38,18,3,.9); font-weight: 800; font-size: 14.5px; line-height: 1.2; color: var(--ink); pointer-events: none; }
.pp__e--1 { left: 12px; }
.pp__e--2 { right: 12px; background: linear-gradient(180deg, #FFF0A8, #FFC935); }
.pp__linia { position: absolute; top: 0; bottom: 0; left: var(--pp, 46%); z-index: 3; width: 10px; margin-left: -5px; background: var(--plank-p) center/120px; border-left: 3px solid var(--wood); border-right: 3px solid var(--wood); pointer-events: none; }
.pp__linia i { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; border: 4px solid var(--wood); background: radial-gradient(circle at 50% 30%, #FFF8D2, #FFD23F 58%, #F9A100); box-shadow: 0 0 0 6px rgba(255,226,122,.35), 0 5px 0 rgba(38,18,3,.9); display: flex; align-items: center; justify-content: center; animation: zacheta 2.4s ease-in-out infinite; }
.pp__linia svg { width: 34px; height: 34px; fill: none; stroke: var(--brown); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes zacheta { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.pp input[type=range] { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.pp:has(input:focus-visible) { outline: 4px solid #FFE27A; outline-offset: 12px; }
.pp__notka { margin: 20px 9px 0; font-weight: 600; font-size: 14.5px; line-height: 1.4; color: #F3E2B3; text-align: center; }
.zeszyt { position: relative; padding: 20px 22px 22px 46px; border-radius: 8px 14px 14px 8px; background: linear-gradient(90deg, transparent 31px, rgba(216,64,43,.5) 31px, rgba(216,64,43,.5) 33px, transparent 33px), repeating-linear-gradient(180deg, transparent 0 30px, rgba(43,108,176,.2) 30px 31px), #FFFBEC; box-shadow: 0 3px 0 rgba(30,14,2,.6), 0 18px 30px rgba(0,0,0,.42); color: var(--ink); transform: rotate(1.2deg); }
.zeszyt::before { content: ""; position: absolute; left: 10px; top: 18px; bottom: 18px; width: 12px; background: radial-gradient(circle, #5C3210 0 4.5px, transparent 5px) center top / 12px 31px repeat-y; }
.zeszyt__nad { font-weight: 800; font-size: 12.5px; line-height: 31px; letter-spacing: .06em; text-transform: uppercase; color: #A8324E; }
.zeszyt h3 { font: 900 23px/31px var(--serif); color: var(--brown); }
.zeszyt ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; column-gap: 10px; }
.zeszyt li { position: relative; padding-left: 26px; font-weight: 700; font-size: 14.5px; line-height: 31px; }
.zeszyt li.dl { grid-column: 1 / -1; }
.zeszyt li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 4px; border: 2.5px solid #5C3210; background: #fff; }
.zeszyt li.ok { color: #2F7D0A; }
.zeszyt li.ok::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 9px; border-left: 4px solid #2F9B0F; border-bottom: 4px solid #2F9B0F; transform: rotate(-48deg); }
.zeszyt > p:last-child { margin-top: 31px; font-weight: 600; font-size: 14.5px; line-height: 31px; }

/* residents: a conversation like in the game */
.scena { display: grid; grid-template-columns: 196px 316px minmax(0, 1fr); gap: 28px; align-items: center; }
.zetony { display: flex; flex-direction: column; gap: 11px; }
.zeton { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 4px 14px 6px 5px; border-radius: 999px; border: 3px solid var(--wood); background: var(--paper); box-shadow: inset 0 -4px 0 #E6D3A0, 0 4px 0 rgba(48,8,2,.85); color: var(--ink); font-weight: 800; font-size: 15.5px; line-height: 1.1; text-align: left; cursor: pointer; transition: transform .15s ease; }
.zeton i { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--wood); background: #BFE3DC; overflow: hidden; }
.zeton i img { width: 176%; max-width: none; margin: -4% 0 0 -38%; }
.zeton:hover { transform: translateX(4px); }
.zeton.on { background: linear-gradient(180deg, #FFF0A8, #FFC935); box-shadow: inset 0 -4px 0 #E08600, 0 4px 0 rgba(48,8,2,.85); transform: translateX(10px); }
.portret { position: relative; height: 372px; }
.portret::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 336px; border-radius: 158px 158px 28px 28px; border: 4px solid var(--wood); background: radial-gradient(circle at 50% 34%, #FFF5CC 0%, #F9D576 58%, #E3A63C 100%); box-shadow: 0 8px 0 rgba(48,8,2,.85), 0 26px 36px rgba(0,0,0,.4); }
.portret::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 328px; border-radius: 154px 154px 24px 24px; background: repeating-conic-gradient(from 0deg at 50% 46%, rgba(255,255,255,.34) 0 8deg, rgba(255,255,255,0) 8deg 20deg); -webkit-mask: radial-gradient(circle at 50% 46%, #000 20%, transparent 78%); mask: radial-gradient(circle at 50% 46%, #000 20%, transparent 78%); }
.portret__w { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 4px 4px 4px round 0 0 22px 22px); }
.portret img { position: absolute; left: 50%; bottom: 0; width: 116%; max-width: none; transform: translateX(-50%); display: none; }
.portret img.on { display: block; animation: wjazdP .28s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes wjazdP { from { opacity: 0; transform: translateX(-50%) translateY(14px); } to { opacity: 1; transform: translateX(-50%); } }
.gadka { position: relative; padding: 30px 28px 24px; border-radius: 26px; border: 4px solid var(--wood); background: linear-gradient(rgba(255,251,236,.55), rgba(255,251,236,.55)), var(--paper-t) center/360px; box-shadow: 0 8px 0 rgba(48,8,2,.85), 0 26px 36px rgba(0,0,0,.4); color: var(--ink); }
.gadka::before { content: ""; position: absolute; left: -15px; top: 96px; width: 24px; height: 24px; background: #FDF6E0; border-left: 4px solid var(--wood); border-bottom: 4px solid var(--wood); border-radius: 0 0 0 7px; transform: rotate(45deg); }
.gadka__imie { position: absolute; left: 24px; top: -22px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 8px; border-radius: 999px; background: var(--red); border: 3px solid var(--wood); box-shadow: 0 3px 0 rgba(48,8,2,.85); color: #FFF3D0; font: 900 22px/1.1 var(--serif); }
.gadka__imie small { padding: 2px 9px 3px; border-radius: 999px; background: #FFF3D0; color: var(--red9); font: 800 12px/1.2 var(--sans); }
.kw { min-height: 104px; font: 700 27px/1.28 var(--serif); color: #3F2408; text-wrap: balance; animation: wjazd .25s ease both; }
.gadka__opis { margin-top: 14px; padding-top: 14px; border-top: 2.5px dashed #C9AE78; font-weight: 600; font-size: 16px; line-height: 1.45; }
.lubi { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; font-weight: 800; font-size: 13.5px; }
.lubi svg { width: 15px; height: 15px; fill: var(--red); }
.lubi__co { display: inline-flex; align-items: center; padding: 3px 11px 4px; border-radius: 999px; border: 2.5px solid #B99A5E; background: rgba(255,255,255,.6); font-weight: 700; }
.gadka__dol { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.gadka__dol small { font-weight: 800; font-size: 13px; color: #7A5A2C; }

/* the valley map */
.mapa-u { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 36px; align-items: center; }
.mapa { position: relative; aspect-ratio: 3 / 2; border-radius: 8px; box-shadow: 0 3px 0 rgba(92,50,16,.6), 0 22px 34px rgba(60,30,6,.5); transform: rotate(-1.1deg); }
.mapa__obraz { width: 100%; height: 100%; border-radius: 8px; }
.mapa::before, .mapa::after { content: ""; position: absolute; z-index: 2; width: 110px; height: 32px; background: var(--tape) center / 100% 100% no-repeat; }
.mapa::before { left: -34px; top: -8px; transform: rotate(-38deg); }
.mapa::after { right: -34px; bottom: -8px; transform: rotate(-38deg); }
.mp { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; width: 150px; margin: -44px 0 0 -75px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: none; transition: transform .16s cubic-bezier(.3,1.6,.5,1); }
.mp__z, .mp__n { pointer-events: auto; }
.mp__z { position: relative; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: radial-gradient(circle at 60% 36%, #F36B55, #C22E1B 70%); border: 3px solid var(--wood); box-shadow: -3px 3px 0 rgba(60,30,6,.45); }
.mp__z::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #FFF3D0; box-shadow: inset 0 2px 0 rgba(92,50,16,.35); }
.mp__n { margin-top: 9px; padding: 2px 10px 3px; border-radius: 999px; border: 2.5px solid var(--wood); background: var(--paper); box-shadow: 0 2px 0 rgba(38,18,3,.8); font-weight: 800; font-size: 12.5px; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.mp:hover { transform: translateY(-4px); }
.mp.on { transform: scale(1.16); }
.mp.on .mp__z { background: radial-gradient(circle at 60% 36%, #B8F06A, #4FAE17 70%); }
.mp.on .mp__n { background: linear-gradient(180deg, #FFF0A8, #FFC935); }
.mp--taj .mp__z { background: radial-gradient(circle at 60% 36%, #C9BFA6, #8C8168 70%); }
.mp--0 { left: 37%; top: 45%; }
.mp--1 { left: 60%; top: 45.8%; }
.mp--2 { left: 45.5%; top: 87%; }
.mp--3 { left: 71.4%; top: 53.8%; }
.mp--4 { left: 63%; top: 25.5%; }
.mp--5 { left: 30.5%; top: 24%; }
.mp--6 { left: 12.8%; top: 35.8%; }
.kompas { position: absolute; z-index: 2; right: 14px; top: 14px; width: 84px; height: auto; filter: drop-shadow(0 5px 4px rgba(60,30,6,.45)); animation: kolysz 7s ease-in-out infinite; }
@keyframes kolysz { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.poczt { position: relative; padding: 14px 14px 20px; border-radius: 5px; background: #FFFDF4; box-shadow: 0 2px 0 rgba(92,50,16,.5), 0 18px 30px rgba(60,30,6,.45); color: var(--ink); transform: rotate(1.6deg); }
.poczt::before { content: ""; position: absolute; left: 50%; top: -15px; z-index: 2; width: 112px; height: 32px; margin-left: -56px; background: var(--tape) center / 100% 100% no-repeat; transform: rotate(-3deg); }
.pc { animation: wjazd .25s ease both; }
.pc__f { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; border-radius: 3px; background: radial-gradient(circle at 50% 46%, #E4F5BC, #A9D172); overflow: hidden; }
.pc__f img { width: 100%; height: 100%; object-fit: cover; }
.pc__f--rysunek img { width: auto; height: auto; max-height: 82%; max-width: 70%; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(40,60,10,.35)); }
.pc__f--taj { background: radial-gradient(circle at 50% 46%, #DCD3BC, #A89F86); }
.pc__f--taj img { max-height: 54%; }
.pc h3 { margin-top: 12px; font: 900 27px/1.1 var(--serif); color: var(--brown); }
.pc p { margin-top: 6px; font-weight: 600; font-size: 15.5px; line-height: 1.5; }
.pc small { display: inline-block; margin-top: 10px; padding: 2px 10px 3px; border-radius: 999px; background: #0B6A63; color: #fff; font-weight: 800; font-size: 12px; }

/* together: a cork board */
.rama { padding: 14px; border-radius: 20px; border: 4px solid var(--wood); background: linear-gradient(180deg, rgba(255,236,176,.2), rgba(84,40,6,.28)), var(--plank) center/300px; box-shadow: inset 0 3px 0 rgba(255,240,200,.45), 0 8px 0 rgba(2,20,18,.7), 0 26px 40px rgba(0,0,0,.4); }
.tablica { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 38px 30px 34px; border-radius: 8px; border: 4px solid var(--wood); background: linear-gradient(rgba(80,44,10,.08), rgba(80,44,10,.08)), url("/img/glowna/t-cork.webp") center/380px #C98B4A; box-shadow: inset 0 6px 12px rgba(60,30,6,.45); }
.kartka:nth-child(1) { --r: -2.2deg; }
.kartka:nth-child(2) { --r: 1.6deg; }
.kartka:nth-child(3) { --r: -1.2deg; }
.kartka:nth-child(4) { --r: 2.4deg; }
.kartka { position: relative; display: flex; flex-direction: column; align-items: center; padding: 34px 20px 22px; border-radius: 4px; background: linear-gradient(rgba(255,251,236,.6), rgba(255,251,236,.6)), var(--paper-t) center/320px; box-shadow: 0 2px 0 rgba(92,50,16,.5), 0 14px 22px rgba(60,30,6,.4); color: var(--ink); text-align: center; font-weight: 600; font-size: 15.5px; line-height: 1.45; transform: rotate(var(--r, 0deg)); transition: transform .18s cubic-bezier(.3,1.6,.5,1); }
.kartka:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); z-index: 2; }
.kartka:nth-child(2n) { background: linear-gradient(rgba(255,244,214,.3), rgba(255,244,214,.3)), var(--kraft) center/300px; }
.kartka__pinezka { position: absolute; left: 50%; top: -14px; width: 38px; margin-left: -19px; filter: drop-shadow(0 4px 3px rgba(60,30,6,.5)); }
.kartka__ikona { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(60,30,6,.3)); }
.kartka b { margin-top: 8px; font: 900 23px/1.15 var(--serif); color: var(--brown); }
.kartka span { margin-top: 5px; }

/* the valley's code */
.kodeks { position: relative; padding: 34px 40px 32px; border-radius: 12px; background: linear-gradient(rgba(255,251,236,.6), rgba(255,251,236,.6)), var(--paper-t) center/360px; box-shadow: 0 0 0 3px #B99A5E, 0 0 0 10px #FFF6DC, 0 0 0 13px var(--wood), 0 12px 0 13px rgba(10,36,14,.6), 0 34px 46px rgba(0,0,0,.4); color: var(--ink); }
.prawa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 34px; }
.prawo { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 13px; align-items: start; }
.prawo img { width: 52px; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.prawo:hover img { transform: rotate(-14deg) scale(1.14); }
.prawo b { display: block; font: 900 21px/1.15 var(--serif); color: var(--brown); }
.prawo span { display: block; margin-top: 4px; font-weight: 600; font-size: 15px; line-height: 1.45; }

/* before you enter: devices and questions */
.zanim { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.sprzet { position: relative; padding: 0 0 26px; }
.laptop { position: relative; width: 86%; padding: 10px 10px 12px; border-radius: 16px 16px 4px 4px; background: #2A1A0C; box-shadow: 0 0 0 3px #120A04, 0 22px 34px rgba(0,0,0,.45); }
.laptop img { width: 100%; border-radius: 6px; }
.laptop::after { content: ""; position: absolute; left: -7%; right: -7%; bottom: -16px; height: 16px; border-radius: 2px 2px 14px 14px; background: linear-gradient(180deg, #5C4630, #2A1A0C); box-shadow: 0 0 0 3px #120A04; }
.telefon { position: absolute; right: 0; bottom: 0; width: 27%; padding: 7px; border-radius: 24px; background: #2A1A0C; box-shadow: 0 0 0 3px #120A04, 0 18px 30px rgba(0,0,0,.5); }
.telefon img { width: 100%; border-radius: 18px; }
/* The two device pictures are the game as it is: real screenshots, said in words under them. */
.sprzet__notka { margin: -6px 0 0; font-weight: 600; font-size: 14.5px; line-height: 1.4; color: #F3E2B3; text-align: center; }
.gdzie { display: grid; gap: 10px; margin-top: 22px; }
.gdzie li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; align-items: start; font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.gdzie li::before { content: ""; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; border: 2.5px solid var(--wood); background: radial-gradient(circle at 50% 30%, #B8F06A, #5BC21F); box-shadow: 0 2px 0 rgba(10,36,14,.6); }
.gdzie b { color: #FFF3D0; font-weight: 800; }
.pyt__p { margin-bottom: 10px; border-radius: 17px; border: 3px solid var(--wood); background: linear-gradient(rgba(255,251,236,.55), rgba(255,251,236,.55)), var(--paper-t) center/360px; box-shadow: 0 4px 0 rgba(10,36,14,.65); color: var(--ink); }
.pyt__p summary { display: flex; align-items: center; gap: 12px; padding: 10px 16px 11px 10px; font: 800 19px/1.2 var(--serif); color: var(--brown); cursor: pointer; list-style: none; }
.pyt__p summary::-webkit-details-marker { display: none; }
.pyt__p summary i { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--wood); background: var(--plank) center/120px; color: #FFF7DC; font: normal 800 14px/1 var(--sans); text-shadow: 0 1px 0 rgba(58,26,4,.95); }
.pyt__p summary::after { content: ""; flex: none; width: 12px; height: 12px; margin: 0 4px 4px auto; border-right: 3.5px solid #5C3210; border-bottom: 3.5px solid #5C3210; transform: rotate(45deg); transition: transform .15s ease; }
.pyt__p[open] summary::after { transform: rotate(225deg); margin-bottom: -6px; }
.pyt__p p { padding: 0 18px 15px 60px; font-weight: 600; font-size: 15.5px; line-height: 1.5; }
.pyt__wiecej { margin: 16px 6px 0; font-weight: 800; font-size: 17px; }
.pyt__wiecej a { color: #FFF7DC; text-shadow: 0 1px 0 rgba(58,26,4,.95); text-underline-offset: 3px; }
.pyt__wiecej a:hover { color: #fff; }

/* the last screen: the sign-up */
.final { position: relative; padding: 62px 0 72px; color: #FFF7DC; overflow: hidden; isolation: isolate; background: #062A28; scroll-margin-top: 70px; }
.final__tlo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,24,30,.86) 0%, rgba(4,24,30,.5) 34%, rgba(4,24,30,.62) 100%); }
.final__u { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 48px; align-items: center; width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.final h2 { font: 900 60px/1.02 var(--serif); letter-spacing: -0.02em; color: #FFF3D0; text-shadow: 0 4px 0 rgba(2,20,18,.7), 0 0 30px rgba(2,20,18,.6); text-wrap: balance; }
.final__l { max-width: 25em; margin-top: 16px; font-weight: 600; font-size: 20px; line-height: 1.45; text-shadow: 0 1px 0 var(--teal9), 0 0 12px rgba(4,30,26,.9); }
.final__cta { margin-top: 26px; }
.final__n { margin-top: 20px; }
.final__n-t { margin-bottom: 8px; font: 800 19px/1.2 var(--serif); color: #FFE27A; text-shadow: 0 2px 0 rgba(2,20,18,.7); }
.final__n-s { display: inline-block; margin-left: 8px; padding: 3px 11px 4px; border-radius: 999px; border: 2.5px solid #7A1A10; background: linear-gradient(180deg, #F36B55, #C22E1B); box-shadow: 0 3px 0 rgba(2,20,18,.7); color: #FFF3D0; font: 800 13px/1.1 var(--sans); text-shadow: none; vertical-align: 3px; transform: rotate(-4deg); white-space: nowrap; }
.final__n ul { display: flex; flex-wrap: wrap; gap: 9px; }
.final__n li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 15px 6px 7px; border-radius: 999px; border: 3px solid var(--wood); background: linear-gradient(180deg, #FFF8D6, #FFE27A); box-shadow: 0 4px 0 rgba(2,20,18,.8); color: var(--brown); font-weight: 800; font-size: 15.5px; line-height: 1.1; }
.final__n li img { width: 36px; height: 36px; object-fit: contain; }
.final__listy { display: grid; gap: 10px; margin-top: 22px; max-width: 30em; }
.final__listy li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 14px 10px 10px; border-radius: 16px; border: 3px solid var(--wood); background: linear-gradient(rgba(255,251,236,.6), rgba(255,251,236,.6)), var(--paper-t) center/320px; box-shadow: 0 4px 0 rgba(2,20,18,.8); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.4; }
.final__listy img { width: 48px; height: 48px; object-fit: contain; }
.final__listy b { display: block; font: 900 18px/1.2 var(--serif); color: var(--brown); }
.final .uwaga { max-width: 30em; margin-top: 14px; text-align: left; }
.final__z { display: flex; align-items: flex-end; gap: 14px; margin-top: 30px; }
.final__z img { flex: none; width: 96px; border-radius: 50%; border: 4px solid var(--wood); background: #BFE3DC; box-shadow: 0 5px 0 rgba(2,20,18,.8); }
.final__z p { position: relative; padding: 11px 16px 12px; border-radius: 18px; border: 3px solid var(--wood); background: var(--paper); box-shadow: 0 5px 0 rgba(2,20,18,.8); color: var(--ink); font-weight: 700; font-size: 15.5px; line-height: 1.4; }
.final__z p::before { content: ""; position: absolute; left: -11px; bottom: 22px; width: 18px; height: 18px; background: var(--paper); border-left: 3px solid var(--wood); border-bottom: 3px solid var(--wood); border-radius: 0 0 0 5px; transform: rotate(45deg); }

/* the footer */
.stopka { position: relative; padding: 36px 0 28px; background: #062A28; color: #CDE8D8; font-size: 15px; line-height: 1.5; }
.stopka__wnetrze { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.stopka__kolumny { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 30px; margin-bottom: 24px; }
.stopka__marka img { width: 170px; margin-bottom: 8px; }
.stopka__loga { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 18px; }
.stopka__marka .stopka__loga img { width: auto; margin: 0; }
.stopka__loga a { display: block; border-radius: 4px; }
.stopka__loga a:hover { opacity: .85; }
.stopka__marka .stopka__logo-eg { height: 26px; }
.stopka__marka .stopka__logo-entergames { height: 32px; }
.stopka__naglowek { margin-bottom: 8px; font: 800 18px/1.3 var(--serif); color: #FFF3D0; }
.stopka li { margin-bottom: 5px; overflow-wrap: anywhere; hyphens: auto; }
.stopka a { color: #CDE8D8; font-weight: 600; text-decoration: none; }
.stopka a:hover { color: #FFE27A; text-decoration: underline; }
.stopka .spolecznosci { margin: 0 0 10px; }
.stopka .przycisk { min-height: 40px; max-width: 100%; font-size: 14px; white-space: normal; text-wrap: balance; color: var(--ink); }
.stopka .przycisk:hover { color: var(--ink); text-decoration: none; }
.stopka__jezyki ul { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 14px; font-size: 13.5px; }
.stopka__jezyki a { display: inline-block; padding: 3px 0; }
.stopka__jezyki a[aria-current="page"] { color: #fff; font-weight: 800; }
.stopka__zgoda { padding: 3px 0; border: 0; background: none; color: #FFE27A; font: inherit; text-decoration: underline; cursor: pointer; }
.stopka__firma, .stopka__drobne { margin-top: 10px; padding-top: 0; font-size: 12.5px; line-height: 1.5; color: #9CC2B0; }
.stopka__firma { margin-top: 16px; padding-top: 16px; border-top: 2px solid rgba(189,227,206,.22); }

/* the floating bar on a phone */
.plyw { display: none; }
.plyw.plyw--nagroda { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 16px; width: min(900px, calc(100% - 40px)); padding: 10px 12px 12px 14px; border-radius: 22px; border: 4px solid var(--wood); background: linear-gradient(180deg, rgba(255,236,176,.24), rgba(84,40,6,.3)), var(--plank) center/300px; box-shadow: inset 0 3px 0 rgba(255,240,200,.45), 0 10px 24px rgba(0,0,0,.45); transform: translate(-50%, 30px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s; pointer-events: none; }
.plyw.plyw--nagroda.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .25s ease, opacity .25s ease; pointer-events: auto; }
.plyw--nagroda .zadanie { display: none; }
.plyw__nagroda { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: #FFF7DC; font-weight: 700; font-size: 15.5px; line-height: 1.3; text-shadow: 0 1px 0 rgba(58,26,4,.95); }
.plyw__nagroda img { flex: none; width: 52px; height: auto; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.plyw__nagroda b { color: #FFE27A; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
}

@media (max-width: 1180px) {
  .dymek { bottom: 74%; left: 62%; }
  .dymek::before { left: 34px; bottom: -13px; border-left: 0; border-right: 3px solid var(--wood); border-radius: 0 0 6px 0; }
}

@media (max-width: 1100px) {
  .pasek__linki { display: none; }
  .pasek__logo { margin-right: auto; }
  .swiat, .odb, .mapa-u, .zanim, .final__u { grid-template-columns: minmax(0, 1fr); }
  .scena { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .zetony { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .zeton.on, .zeton:hover { transform: translateY(-3px); }
  .gadka::before { display: none; }
  .fakty, .tablica, .prawa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .karty { flex-wrap: wrap; }
  .stopka__kolumny { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stopka__marka { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  /* first screen */
  .hero { height: clamp(620px, 100svh, 900px); }
  .kadr { width: max(100cqw, 46.21cqh); aspect-ratio: 390 / 844; }
  .zbior--1 { left: 2.308%; top: 33.59%; width: 55.128%; height: 16.232%; }
  .zbior--2 { left: 0; top: 40.047%; width: 27.564%; height: 13.685%; }
  .zbior--3 { left: 32.179%; top: 42.18%; width: 63.59%; height: 16.528%; }
  .zbior--4 { left: 15.128%; top: 49.348%; width: 67.821%; height: 17.239%; }
  .pin--1 { left: 30%; top: 41.5%; }
  .pin--2 { left: 11%; top: 47.2%; }
  .pin--3 { left: 64.5%; top: 50.2%; }
  .pin--4 { left: 50%; top: 58%; }
  .dym--1 { left: 92.6%; top: 28.6%; }
  .dym--2 { left: 19.9%; top: 48.9%; }
  .dym--3 { display: none; }
  .hero__cien { background: linear-gradient(180deg, rgba(5,38,28,.8) 0%, rgba(5,38,28,.5) 15%, rgba(5,38,28,0) 31%, rgba(5,38,28,0) 54%, rgba(5,32,24,.55) 76%, rgba(5,32,24,.9) 100%); }
  .hud { left: 10px; right: 10px; top: 10px; }
  .poziom__znak { width: 52px; height: 52px; }
  .poziom__znak::before { inset: 6px; }
  .poziom__pierscien { left: 1px; top: 1px; width: 44px; height: 44px; }
  .poziom__nr { font-size: 21px; }
  .poziom__opis { min-width: 0; margin-left: -20px; padding: 6px 14px 7px 28px; border-radius: 0 14px 14px 0; }
  .poziom__opis b { font-size: 15px; }
  .poziom__opis span { font-size: 11.5px; }
  .chip, .jezyki__przycisk { height: 40px; padding: 0 12px 3px; font-size: 14px; border-radius: 13px; }
  .jezyki__nazwa { display: none; }
  .jezyki__kod { display: inline; }
  .jezyki__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); top: 48px; }
  /* A phone shows the label under the language button. It hangs there out of the row (position: absolute), so the
     level card is laid out exactly as if the label was not on the page, at every width and in every language. The
     column takes the room the card leaves: the label fills it in one line, or wraps into two when the room is tight.
     A word wider than the column reaches left into the 12 px gap before the card (tests/przegladarka checks that
     no language reaches the card itself). */
  .hud__prawa { position: relative; flex-grow: 1; pointer-events: none; }
  .hud__prawa > * { pointer-events: auto; }
  .gp { padding: 3px 8px 4px; font-size: 10px; text-align: center; }
  .hud .gp { position: absolute; right: 0; top: calc(100% + 10px); padding: 3px 6px 4px; border-radius: 12px; }
  .gp--rog { right: 7px; top: 7px; padding: 2px 8px 3px; font-size: 10px; }
  .tytul { top: 68px; }
  .tytul__logo { width: min(66vw, 270px); }
  .wstazka--tytul { min-height: 48px; margin-top: -13px; padding: 0 40px 7px; font-size: 19px; }
  .haslo { margin-top: 5px; max-width: 100%; padding: 5px 16px 7px; border-radius: 18px; font-size: 16px; line-height: 1.25; }
  .pin { width: 58px; height: 70px; margin: -70px 0 0 -29px; }
  .pin__b, .pin::before { width: 58px; height: 58px; }
  .pin__b img { width: 40px; height: 40px; }
  .zosia { left: -10px; width: 128px; bottom: 146px; }
  .hero--po .zosia { bottom: 280px; }
  .zosia__postac { margin-bottom: 0; }
  .dymek { left: 112px; bottom: 10px; width: calc(100vw - 124px); max-width: 260px; padding: 10px 12px 11px; border-radius: 18px; }
  .dymek::before { left: -12px; bottom: 22px; width: 18px; height: 18px; border-left: 3px solid var(--wood); border-right: 0; border-bottom: 3px solid var(--wood); border-radius: 0 0 0 6px; }
  .dymek__tytul { font-size: 17px; }
  .dymek__tekst { font-size: 13.5px; line-height: 1.32; }
  .pipsy { margin-top: 6px; }
  .pipsy i { width: 18px; height: 18px; }
  .start { bottom: 14px; width: calc(100% - 28px); gap: 9px; }
  .start .gbtn { align-self: stretch; min-height: 68px; padding: 0 20px 7px 14px; font-size: 25px; border-radius: 24px; flex: 1; }
  .start .gbtn__znak { width: 40px; height: 40px; }
  .start .gbtn__znak svg { width: 22px; height: 22px; }
  .start__para, .final__cta { flex-direction: column; align-items: stretch; align-self: stretch; gap: 9px; }
  .start__para .wbtn, .final__cta .wbtn { min-height: 46px; padding: 0 20px 5px; font-size: 16.5px; border-radius: 17px; }
  .start__przycisk { align-self: stretch; }
  .uwaga { font-size: 12.5px; }
  .pobierz { gap: 6px 8px; }
  .pobierz__t { flex-basis: 100%; text-align: center; font-size: 14px; }
  .pchip { height: 36px; padding: 0 12px 2px 10px; font-size: 14px; }
  .pchip svg { width: 16px; height: 16px; }
  .naklejka { right: -4px; top: -22px; font-size: 12.5px; padding: 3px 10px 4px 5px; }
  .naklejka img { width: 20px; height: 20px; }
  /* over the button's top left corner, in the strip between Zosia's bubble and the button's words */
  .odl--hud { display: none; }
  .odl--chip { display: inline-flex; position: absolute; left: -4px; top: -31px; z-index: 2; transform: rotate(-3deg); pointer-events: none; gap: 3px; padding: 2px 4px 3px 3px; border-width: 2.5px; border-radius: 11px; }
  .odl--chip .odl__zegar { width: 17px; height: 17px; margin: 0 1px; }
  .odl--chip .odl__j { min-width: 27px; padding: 1px 2px; border-radius: 6px; }
  .odl--chip .odl__j b { font-size: 14px; }
  .odl--chip .odl__j small { margin-top: 1px; font-size: 8.5px; }
  .odl--chip .odl__dzis { font-size: 13.5px; }
  /* where the reward sticker is long (some languages on narrow phones) js/glowna.js drops the clock, then the seconds */
  .odl--bez-zegara .odl__zegar, .odl--bez-sekund .odl__j--s { display: none; }
  .odl--duze { gap: 6px; padding: 7px 9px 8px 8px; }
  .odl--duze .odl__zegar { width: 24px; height: 24px; margin: 0 1px; }
  .odl--duze .odl__j { min-width: 50px; padding: 6px 5px 5px; }
  .odl--duze .odl__j b { font-size: 25px; }
  .odl--duze .odl__j small { font-size: 11.5px; }
  .dalej { display: none; }
  /* the consent note sits under the first screen, so it never covers the button */
  .zgoda, .zgoda--w-hero { position: fixed; left: 10px; right: 10px; bottom: 10px; width: auto; }
  .zgoda--pod-hero { position: relative; left: auto; right: auto; bottom: auto; z-index: 1; width: auto; }
  .zgoda--pod-hero .zgoda__karta { transform: none; border-radius: 0; padding: 12px 14px; font-size: 12.5px; }
  .zgoda--pod-hero .zgoda__karta::before { display: none; }
  /* reopened from the footer, the note floats over the page: it scrolls rather than run off the screen */
  .zgoda:not(.zgoda--pod-hero) .zgoda__karta { max-height: calc(100svh - 34px); overflow-y: auto; }
  .zgoda__przyciski { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
  /* window */
  .okno__in { padding: 30px 14px 16px; }
  .okno__top img { width: 78px; }
  .okno__top p { font-size: 15px; }
  .okno__top p b { font-size: 20px; }
  .okno__t { font-size: 21px; padding: 0 44px 7px; min-height: 50px; }
  .okno__zamknij { right: -8px; top: -10px; }
  .okno__fanty { gap: 6px; }
  .fant { padding: 9px 4px; font-size: 11.5px; }
  .fant b { font-size: 13.5px; }
  .fant img { width: 46px; height: 46px; }
  /* sections */
  .sek { padding: 42px 0 48px; }
  .sek__wnetrze, .final__u, .stopka__wnetrze { width: calc(100% - 28px); }
  .naglowek { margin-bottom: 22px; }
  .wstazka { min-height: 54px; padding: 0 44px 8px; font-size: 22px; }
  .odkryte { right: -8px; top: -15px; font-size: 11.5px; padding: 3px 9px 4px; }
  .naglowek__pod { font-size: 15.5px; line-height: 1.45; }
  .pasek { display: none; }
  .tor { margin: -14px -14px 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .tor::-webkit-scrollbar { display: none; }
  .tor__wnetrze { width: max-content; justify-content: flex-start; gap: 15px; height: 116px; margin: 0 20px; padding: 0 4px; }
  .tor__postep { width: calc(26px + 67px * var(--lv, 0)); }
  .lv { width: 52px; height: 52px; }
  .lv__b b { font-size: 20px; }
  .lv--koniec .lv__b b { font-size: 17px; }
  .lv.on, .lv.on:hover { transform: scale(1.24); }
  .plansza { min-height: 0; margin-bottom: 22px; padding: 16px 12px 18px; border-radius: 22px; }
  .pl__t { flex-direction: column; gap: 6px; margin-bottom: 14px; }
  .pl__t b { height: 34px; font-size: 17px; }
  .pl__t span { font-size: 21px; text-align: center; }
  .karty { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .karta { padding: 8px 8px 11px; border-radius: 17px; font-size: 13px; }
  .karta:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
  .karta__obraz { height: 96px; }
  .karta__obraz img { max-height: 80px; }
  .karta__obraz--ikona img { max-height: 62px; }
  .karta__obraz--twarze img { max-height: 90px; }
  .wiatrak { height: 80px; width: 50px; margin-right: 22px; }
  .wiatrak__smigla { width: 70px; margin: -36px 0 0 -35px; }
  .karta b { font-size: 17px; }
  .pl__koniec p { font-size: 15.5px; }
  .kino, .pp { margin: 9px 5px; }
  .zegar { left: 8px; top: 8px; }
  .zegar__znak { width: 46px; height: 46px; }
  .zegar__znak svg { width: 25px; height: 25px; }
  .zegar__t { margin-left: -16px; padding: 4px 12px 5px 24px; }
  .zegar__t b { font-size: 16px; }
  .zegar__t > span { font-size: 11px; }
  .kino__opis { bottom: 8px; padding: 6px 12px 7px; font-size: 13px; border-radius: 11px; }
  .niebo { margin: 24px 0 0; }
  .pory { gap: 5px; margin-top: 20px; }
  .pora { min-height: 40px; padding: 0 2px 3px; font-size: 12px; border-radius: 11px; }
  .fakty { grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
  .fakt { grid-template-columns: 46px minmax(0, 1fr); padding: 11px 13px 12px 11px; }
  .fakt__ikona { width: 46px; height: 46px; }
  .fakt__ikona svg { width: 25px; height: 25px; }
  .pp__e { top: 8px; padding: 4px 9px 5px; font-size: 12px; border-radius: 10px; }
  .pp__e--1 { left: 8px; }
  .pp__e--2 { right: 8px; }
  .pp__linia i { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .pp__linia svg { width: 27px; height: 27px; }
  .zeszyt { margin: 8px 6px 0; transform: rotate(.6deg); }
  .zeszyt li { font-size: 13.5px; }
  .scena { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .zetony { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 0 -14px; padding: 4px 14px 8px; overflow-x: auto; scrollbar-width: none; }
  .zetony::-webkit-scrollbar { display: none; }
  .zeton { flex: none; min-height: 50px; padding: 3px 12px 5px 4px; font-size: 14px; }
  .zeton i { width: 40px; height: 40px; }
  .portret { width: min(230px, 62%); height: 266px; margin: 0 auto; }
  .portret::before { height: 240px; border-radius: 115px 115px 24px 24px; }
  .portret::after { height: 232px; border-radius: 111px 111px 20px 20px; }
  .gadka { margin-top: 10px; padding: 26px 16px 18px; border-radius: 22px; }
  .gadka__imie { left: 14px; top: -20px; font-size: 19px; padding: 5px 14px 7px; }
  .kw { min-height: 92px; font-size: 21px; }
  .gadka__opis { font-size: 15px; }
  .mapa-u { gap: 26px; }
  .mapa { margin: 0 4px; }
  .mapa::before, .mapa::after { width: 76px; height: 22px; }
  .mapa::before { left: -12px; }
  .mapa::after { right: -12px; }
  .mp { width: 44px; height: 44px; margin: -36px 0 0 -22px; pointer-events: auto; justify-content: flex-start; }
  .mp.on { z-index: 4; }
  .mp__z { width: 27px; height: 27px; border-width: 2.5px; }
  .mp__z::after { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
  .mp__n { display: none; position: absolute; left: 50%; top: 38px; margin-top: 0; transform: translateX(-50%); padding: 2px 9px 3px; border-width: 2px; font-size: 11.5px; }
  .mp.on .mp__n { display: block; }
  .kompas { width: 52px; right: 8px; top: 8px; }
  .poczt { margin: 0 8px; }
  .pc h3 { font-size: 23px; }
  .rama { padding: 9px; margin: 0 2px; }
  .tablica { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px 16px 22px; }
  .kartka { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 22px 16px 16px; text-align: left; font-size: 14.5px; }
  .kartka__ikona { grid-row: 1 / 3; width: 60px; height: 60px; }
  .kartka b { margin-top: 0; font-size: 20px; }
  .kartka span { margin-top: 2px; }
  .kodeks { margin: 0 8px; padding: 22px 18px; }
  .prawa { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .prawo { grid-template-columns: 42px minmax(0, 1fr); gap: 11px; }
  .prawo img { width: 42px; }
  .prawo b { font-size: 19px; }
  .prawo span { font-size: 14.5px; }
  .zanim { gap: 30px; }
  .laptop::after { left: -3%; right: -3%; }
  .sprzet { padding-left: 3%; }
  .pyt__p summary { font-size: 17px; padding: 9px 12px 10px 9px; }
  .pyt__p summary i { width: 34px; height: 34px; font-size: 13px; }
  .pyt__p p { padding: 0 14px 13px; font-size: 15px; }
  .final { padding: 50px 0 56px; }
  .final__u { gap: 30px; }
  .final h2 { font-size: 38px; }
  .final__l { font-size: 17px; }
  .final__cta { margin-top: 20px; }
  .final .uwaga { text-align: center; }
  .final__n-s { margin: 9px 0 3px; }
  .final__n li { font-size: 14px; padding: 4px 12px 5px 6px; }
  .final__n li img { width: 30px; height: 30px; }
  .final__z { margin-top: 22px; }
  .final__z img { width: 72px; }
  .final__z p { font-size: 14px; }
  .stopka { padding: 34px 0 96px; }
  .stopka__kolumny { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .stopka__kolumny > :last-child { grid-column: 1 / -1; }
  .plyw { position: sticky; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 8px; margin-top: -78px; padding: 9px 12px 12px; background: linear-gradient(180deg, rgba(255,236,176,.24), rgba(84,40,6,.3)), var(--plank) center/300px; border-top: 4px solid var(--wood); box-shadow: inset 0 3px 0 rgba(255,240,200,.45), 0 -8px 18px rgba(0,0,0,.35); transform: translateY(30px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s; pointer-events: none; }
  .plyw.on { transform: none; opacity: 1; visibility: visible; transition: transform .25s ease, opacity .25s ease; pointer-events: auto; }
  .plyw .gbtn { flex: 1; min-width: 0; padding: 0 12px 5px 8px; font-size: 16.5px; gap: 6px; }
  .plyw .zadanie { padding: 5px 8px 6px; font-size: 10.5px; border-width: 2.5px; border-radius: 12px; }
  .plyw .zadanie__kropki { gap: 3px; }
  .plyw .zadanie__kropki i { width: 11px; height: 11px; border-width: 1.5px; }
  .plyw.plyw--nagroda { position: sticky; left: auto; bottom: 0; flex-wrap: wrap; gap: 6px 8px; width: auto; margin-top: -112px; padding: 7px 12px 12px; border-radius: 0; border-width: 4px 0 0; transform: translateY(30px); }
  .plyw.plyw--nagroda.on { transform: none; }
  .plyw--nagroda .zadanie { display: flex; }
  .plyw__nagroda { flex-basis: 100%; gap: 8px; font-size: 12.5px; line-height: 1.25; }
  .plyw__nagroda img { width: 30px; }
}
