/* =====================================================================
   PromptBlock AI – landing page w stylu Minecraft
   Czysty CSS, bez frameworków. Struktura:
   1. Tokeny i tekstury-fallback   2. Reset i typografia   3. Narzędzia
   4. Komponenty MC (ramki pixel, przyciski, panele, sloty, tooltip, chipy, inputy, details, toast)
   5. Nagłówek, nawigacja, menu mobilne   6. Sekcje   7. Animacje / reveal
   8. RWD   9. Reduced motion
   ===================================================================== */

/* ---------- 1. TOKENY ---------- */
:root {
  --px: 3px;

  /* bloki */
  --grass: #5d9c3a;      --grass-top: #7cbd4f;
  --dirt: #79553a;       --dirt-dark: #5c4030;
  --stone: #8e8e8e;      --stone-dark: #6f6f6f;
  --deepslate: #3c3c44;  --deepslate-dark: #26262c;
  --bedrock: #151518;    --night: #0b0f1a;
  --oak: #b8945f;        --oak-dark: #8a6a3f;
  --sky: #78a7ff;

  /* akcenty */
  --emerald: #2ecc71; --diamond: #4ee6f0; --gold: #f6c33c; --redstone: #d53a2f; --xp: #7fff20;
  --play: #3c8527; --play-light: #4f9e35;

  /* UI */
  --ui-grey: #c6c6c6; --ui-grey-dark: #a0a0a0; --slot: #8b8b8b; --slot-dark: #373737;
  --tooltip-bg: #100010; --tooltip-border: #5000ff; --tooltip-border2: #28007f;
  --ink: #ededed; --muted: #b5b5bd; --hover-text: #ffffa0; --edge: #101014;

  /* typografia */
  --font-title: "Press Start 2P", "Pixelify Sans", ui-monospace, monospace;
  --font-display: "Pixelify Sans", "Press Start 2P", ui-monospace, monospace;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7rem);
  --header-h: 72px;

  /* tekstury – gradientowe fallbacki; main.js nadpisuje je data-URI z proceduralnych kafli */
  --tex-stone: linear-gradient(135deg, #8e8e8e 0 25%, #838383 0 50%, #939393 0 75%, #7d7d7d 0);
  --tex-deepslate: linear-gradient(135deg, #3c3c44 0 25%, #34343b 0 50%, #40404a 0 75%, #303036 0);
  --tex-dirt: linear-gradient(135deg, #79553a 0 25%, #6e4c33 0 50%, #815c3f 0 75%, #684730 0);
  --tex-grass: linear-gradient(135deg, #7cbd4f 0 25%, #6faa45 0 50%, #86c858 0 75%, #68a340 0);
  --tex-planks: repeating-linear-gradient(0deg, #b8945f 0 14px, #8a6a3f 14px 16px);
  --tex-bedrock: linear-gradient(135deg, #151518 0 25%, #1c1c20 0 50%, #111114 0 75%, #1a1a1e 0);
  --tex-sign: repeating-linear-gradient(0deg, #cfab72 0 7px, #c4a068 7px 8px);
  --tex-noise: none;
}

/* Lokalne czcionki – odkomentuj po wrzuceniu plików do fonts/ (patrz fonts/README.md)
@font-face { font-family: "Press Start 2P"; src: url("fonts/press-start-2p.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("fonts/pixelify-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
*/

/* ---------- 2. RESET I TYPOGRAFIA ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--ink);
  background: var(--deepslate-dark);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg, canvas, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-family: var(--font-display); font-weight: 700; overflow-wrap: anywhere; }
p, ul, ol, dl, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--play); color: #fff; }

.icon { width: 1em; height: 1em; flex: 0 0 auto; image-rendering: pixelated; shape-rendering: crispEdges; }

/* ---------- 3. NARZĘDZIA ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 780px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; padding: .75rem 1rem; background: var(--play); color: #fff; font-family: var(--font-display); text-decoration: none; box-shadow: 0 0 0 var(--px) #000; }
.skip-link:focus { top: 1rem; outline: var(--px) solid #fff; outline-offset: var(--px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-title); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--xp);
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
}
.eyebrow__dot { width: .6em; height: .6em; background: var(--xp); box-shadow: 0 0 0 2px #0e1a05, 0 0 10px var(--xp); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

.section { position: relative; padding-block: var(--section-pad); }
.section__head { max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; max-width: none; }
.section__title { margin-top: .9rem; font-size: clamp(1.55rem, 1.05rem + 2vw, 2.5rem); text-shadow: 3px 3px 0 rgba(0,0,0,.55); }
.section__lead { margin-top: 1rem; font-size: 1.1rem; color: var(--muted); }

/* ---------- 4. KOMPONENTY MC ---------- */

/* Ramka pixel: 4 przesunięte cienie tworzą obrys z naciętymi rogami, insety dają bevel.
   Zmieniając --hi / --lo odwracamy wypukłość (raised ↔ recessed). */
.mc-panel, .mc-btn, .mc-slot, .mc-sign, .mc-input, .mc-details, .mc-toast, .options, .chest, .crafting, .mobile-menu__panel {
  --hi: rgba(255,255,255,.18); --lo: rgba(0,0,0,.45);
  box-shadow:
    0 calc(-1 * var(--px)) 0 var(--edge), 0 var(--px) 0 var(--edge),
    calc(-1 * var(--px)) 0 0 var(--edge), var(--px) 0 0 var(--edge),
    inset var(--px) var(--px) 0 var(--hi), inset calc(-1 * var(--px)) calc(-1 * var(--px)) 0 var(--lo);
}

.mc-panel { position: relative; margin: var(--px); padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--deepslate-dark); }
.mc-panel--light { background: var(--ui-grey); color: #1f1f1f; --hi: #ffffff; --lo: #555555; --edge: #000; }

/* Przycisk */
.mc-btn {
  --edge: #161618; --hi: rgba(255,255,255,.42); --lo: rgba(0,0,0,.5); --depth: #0c0c0e;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; margin: var(--px) var(--px) calc(var(--px) * 2); padding: .7em 1.4em;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1; letter-spacing: .02em; text-align: center;
  color: #fff; text-decoration: none; text-shadow: 2px 2px 0 rgba(0,0,0,.6);
  background: var(--stone-dark) var(--tex-stone); background-size: 64px 64px; image-rendering: pixelated;
  border: 0; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 calc(-1 * var(--px)) 0 var(--edge), 0 var(--px) 0 var(--edge),
    calc(-1 * var(--px)) 0 0 var(--edge), var(--px) 0 0 var(--edge),
    0 calc(var(--px) * 2) 0 var(--depth),
    inset var(--px) var(--px) 0 var(--hi), inset calc(-1 * var(--px)) calc(-1 * var(--px)) 0 var(--lo);
  transition: transform 60ms steps(2, end), color 120ms linear, filter 120ms linear;
}
.mc-btn .icon { font-size: 1.1em; }
.mc-btn__label { position: relative; z-index: 1; }
.mc-btn--primary { background-color: var(--play); background-image: var(--tex-noise); }
.mc-btn--light { background: var(--ui-grey-dark) var(--tex-stone); color: #fff; }
.mc-btn--sm { min-height: 40px; padding: .55em 1em; font-size: .95rem; }
.mc-btn--lg { min-height: 54px; padding: .85em 1.7em; font-size: 1.15rem; }
.mc-btn--wide { width: calc(100% - 2 * var(--px)); }
@media (hover: hover) {
  .mc-btn:hover { color: var(--hover-text); filter: brightness(1.14); transform: translateY(-1px); }
  .mc-btn--primary:hover { --hi: rgba(255,255,255,.55); }
}
.mc-btn:active, .mc-btn.is-pressed {
  transform: translateY(calc(var(--px) * 2)); filter: brightness(.95);
  box-shadow:
    0 calc(-1 * var(--px)) 0 var(--edge), 0 var(--px) 0 var(--edge),
    calc(-1 * var(--px)) 0 0 var(--edge), var(--px) 0 0 var(--edge),
    inset var(--px) var(--px) 0 var(--lo), inset calc(-1 * var(--px)) calc(-1 * var(--px)) 0 var(--hi);
}
.mc-btn:focus-visible { outline: var(--px) solid #fff; outline-offset: calc(var(--px) * 1.5); }
.mc-btn[disabled], .mc-btn[aria-disabled="true"] { cursor: not-allowed; filter: grayscale(.4) brightness(.75); }
/* „Enchant glint” – ukośny pasek przesuwający się po przycisku głównym */
.mc-btn--glint { overflow: hidden; }
.mc-btn--glint::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 48%, rgba(180,120,255,.28) 52%, transparent 65%);
  transform: translateX(-120%); animation: glint 4.5s cubic-bezier(.4,0,.2,1) infinite; animation-delay: 1.2s;
}
@keyframes glint { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }

/* Slot inventory (recessed) */
.mc-slot {
  --edge: #1c1c1c; --hi: var(--slot-dark); --lo: #ffffff;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: var(--px); background: var(--slot); color: #f0f0f0;
}
.mc-slot--lg { width: 72px; height: 72px; }
.mc-slot .icon { width: 58%; height: 58%; }
.mc-slot.is-selected { outline: var(--px) solid #fff; outline-offset: 0; z-index: 1; }

/* Tooltip w stylu MC (ciemny fiolet + fioletowa ramka) */
.mc-tooltip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 20; transform: translateX(-50%) translateY(6px);
  display: flex; flex-direction: column; gap: .25rem; min-width: 15rem; max-width: 18rem; padding: .6rem .8rem;
  background: var(--tooltip-bg); color: var(--ink); font-family: var(--font-body); font-size: .85rem; line-height: 1.45; text-align: left;
  box-shadow: inset 0 0 0 2px var(--tooltip-bg), inset 0 0 0 4px var(--tooltip-border), 0 8px 24px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 120ms, transform 120ms, visibility 0s 120ms;
}
.mc-tooltip b { font-family: var(--font-display); color: var(--hover-text); font-size: .95rem; }
.chest__slot:hover .mc-tooltip, .chest__slot:focus .mc-tooltip, .chest__slot:focus-visible .mc-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition-delay: 0s; }

/* Chipy */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips--dense { gap: .4rem; }
.mc-chip {
  display: inline-block; padding: .35em .65em; font-family: var(--font-display); font-size: .88rem; line-height: 1.1; color: var(--ink);
  background: #2f2f38; box-shadow: 0 -2px 0 #14141a, 0 2px 0 #14141a, -2px 0 0 #14141a, 2px 0 0 #14141a, inset 2px 2px 0 rgba(255,255,255,.12), inset -2px -2px 0 rgba(0,0,0,.4);
  margin: 2px;
}
.mc-chip--accent { color: var(--hover-text); background: #3b3620; }

/* Pola formularza (czarne pole z szarą ramką jak w MC) */
.mc-label { display: block; margin-bottom: .45rem; font-family: var(--font-display); font-size: .95rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.mc-input {
  --edge: #a0a0a0; --hi: rgba(0,0,0,.6); --lo: rgba(255,255,255,.08);
  display: block; width: calc(100% - 2 * var(--px)); margin: var(--px); padding: .8rem 1rem;
  font: inherit; color: #fff; background: #000; border: 0; border-radius: 0; appearance: none;
}
.mc-input::placeholder { color: #6f6f78; }
.mc-input:focus { outline: none; --edge: #ffffff; }
.mc-input[aria-invalid="true"] { --edge: var(--redstone); }
.mc-input--select { padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 1.3rem) 50%, calc(100% - 1rem) 50%; background-size: .35rem .35rem; background-repeat: no-repeat; }
.mc-input--select option { color: #fff; background: #111; }
textarea.mc-input { resize: vertical; min-height: 5.5rem; }
.mc-error { min-height: 1.3em; margin: .35rem var(--px) 0; font-size: .85rem; color: #ff8a80; }
.mc-error:empty { display: none; }
.mc-radios { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; padding-top: .35rem; }
.mc-radio, .mc-check { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .98rem; }
.mc-check { align-items: flex-start; }
.mc-radio input, .mc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mc-radio__box, .mc-check__box {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; background: #000; color: var(--xp);
  box-shadow: 0 -2px 0 #a0a0a0, 0 2px 0 #a0a0a0, -2px 0 0 #a0a0a0, 2px 0 0 #a0a0a0; display: inline-flex; align-items: center; justify-content: center;
}
.mc-check__box .icon { width: 16px; height: 16px; opacity: 0; transform: scale(.6); transition: transform 90ms steps(2), opacity 90ms; }
.mc-radio input:checked + .mc-radio__box { background: var(--xp); box-shadow: 0 -2px 0 #a0a0a0, 0 2px 0 #a0a0a0, -2px 0 0 #a0a0a0, 2px 0 0 #a0a0a0, inset 0 0 0 5px #000; }
.mc-check input:checked + .mc-check__box .icon { opacity: 1; transform: none; }
.mc-radio input:focus-visible + .mc-radio__box, .mc-check input:focus-visible + .mc-check__box { outline: 2px solid #fff; outline-offset: 3px; }

/* Details / FAQ */
.mc-details { margin: var(--px) var(--px) calc(var(--px) + .6rem); background: var(--deepslate-dark); }
.mc-details summary {
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
}
.mc-details summary::-webkit-details-marker { display: none; }
.mc-details summary .icon { color: var(--gold); font-size: 1.3em; }
.mc-details summary::after { content: "+"; margin-left: auto; font-family: var(--font-title); font-size: .9rem; color: var(--muted); }
.mc-details[open] summary::after { content: "–"; }
.mc-details[open] summary { color: var(--hover-text); }
.mc-details summary:focus-visible { outline: var(--px) solid #fff; outline-offset: calc(-1 * var(--px) * 2); }
.mc-details__body { padding: 0 1.25rem 1.25rem 3.3rem; color: var(--muted); }
@media (hover: hover) { .mc-details summary:hover { color: var(--hover-text); } }

/* Toast „Achievement unlocked” */
.mc-toast {
  --edge: #000; --hi: #fff; --lo: #555;
  position: fixed; top: calc(var(--header-h) + 14px); right: 16px; z-index: 110;
  display: flex; align-items: center; gap: .9rem; width: min(360px, calc(100vw - 32px)); padding: .9rem 1.1rem;
  background: var(--ui-grey); color: #1f1f1f; transform: translateX(120%); transition: transform .45s cubic-bezier(.2,.9,.3,1.2);
}
.mc-toast.is-visible { transform: none; }
.mc-toast__icon { font-size: 2rem; }
.mc-toast__body { display: flex; flex-direction: column; line-height: 1.3; }
.mc-toast__title { font-family: var(--font-display); color: #8a6a00; font-size: 1.05rem; }
.mc-toast__text { font-size: .9rem; }

/* Tabliczka (dębowa) */
.mc-sign {
  --edge: #3a2a15; --hi: rgba(255,255,255,.35); --lo: rgba(0,0,0,.38);
  position: relative; margin: var(--px); padding: 1.35rem 1.4rem 1.5rem; color: #1a1006;
  background: #cfab72 var(--tex-sign); background-size: 64px 64px; image-rendering: pixelated;
}
.sign__title { font-size: 1.25rem; color: #1a1006; text-shadow: none; }
.sign__text { margin-top: .6rem; font-size: 1rem; line-height: 1.6; color: #1a1006; }
.sign__list { margin-top: .6rem; padding-left: 1.1rem; list-style: square; font-size: .98rem; line-height: 1.6; color: #1a1006; }
.sign__badge { display: inline-block; margin-bottom: .6rem; padding: .3em .6em; font-family: var(--font-title); font-size: .58rem; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #5b4326; box-shadow: 0 0 0 2px #2b1d0d; }
.sign__badge--ok { background: var(--play); }

/* Czat MC */
.mc-chat { margin-top: .9rem; padding: .7rem .9rem; background: rgba(0,0,0,.62); color: #f0f0f0; font-family: var(--font-display); font-size: .95rem; line-height: 1.5; white-space: pre-wrap; overflow-x: auto; }
.mc-chat__line { display: block; text-shadow: 2px 2px 0 rgba(0,0,0,.6); }
.mc-chat__line--dim { color: #aaa; }

/* Pasek XP */
.mc-xp { position: relative; height: 14px; margin: 0 var(--px) 2.2rem; background: #202020; box-shadow: 0 -2px 0 #000, 0 2px 0 #000, -2px 0 0 #000, 2px 0 0 #000, inset 0 2px 0 #0a0a0a; }
.mc-xp__fill { height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: repeating-linear-gradient(90deg, #7fff20 0 10px, #62d61a 10px 14px); box-shadow: inset 0 -3px 0 #3f9910; transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
.is-in .mc-xp__fill, .mc-xp.is-in .mc-xp__fill { --p: 1; }
.mc-xp__marks { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.mc-xp__marks i { border-right: 2px solid #000; height: 100%; }
.mc-xp__marks i:last-child { border-right: 0; }

/* ---------- 5. NAGŁÓWEK / NAWIGACJA ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  background: rgba(20, 20, 26, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 var(--px) 0 #0a0a0c, 0 calc(var(--px) * 2) 0 rgba(255,255,255,.06);
  transition: background .25s;
}
.site-header.is-scrolled { background: rgba(14, 14, 18, .94); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }

.xp-bar { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: #1a1a1e; }
.xp-bar__fill { height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: repeating-linear-gradient(90deg, #7fff20 0 8px, #5fcf18 8px 10px); box-shadow: inset 0 -1px 0 #3f9910; }
.xp-bar__level { position: absolute; right: 8px; top: 7px; font-family: var(--font-title); font-size: .5rem; color: var(--xp); text-shadow: 1px 1px 0 #000; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__cube { display: grid; grid-template-columns: repeat(3, 8px); gap: 2px; padding: 2px; background: #0a0a0c; box-shadow: 0 0 0 2px #0a0a0c; }
.brand__cube i { display: block; width: 8px; height: 8px; background: var(--dirt); animation: cube-in .6s steps(3) both; animation-delay: calc(var(--i, 0) * 45ms); }
.brand__cube i:nth-child(1), .brand__cube i:nth-child(2), .brand__cube i:nth-child(3) { background: var(--grass-top); }
.brand__cube i:nth-child(5) { background: var(--dirt-dark); }
.brand__cube i:nth-child(9) { background: #96683f; }
.brand__cube i:nth-child(2) { --i: 1; } .brand__cube i:nth-child(3) { --i: 2; } .brand__cube i:nth-child(4) { --i: 3; } .brand__cube i:nth-child(5) { --i: 4; } .brand__cube i:nth-child(6) { --i: 5; } .brand__cube i:nth-child(7) { --i: 6; } .brand__cube i:nth-child(8) { --i: 7; } .brand__cube i:nth-child(9) { --i: 8; }
@keyframes cube-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.brand__name { font-family: var(--font-title); font-size: .78rem; letter-spacing: .02em; color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.7); white-space: nowrap; }
.brand__ai { margin-left: .45em; color: var(--xp); }

.site-nav { display: none; }
.site-nav__list { display: flex; gap: .15rem; }
.site-nav__list a {
  display: inline-block; padding: .5rem .6rem; font-family: var(--font-display); font-size: .95rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  color: var(--ink); text-decoration: none; text-shadow: 2px 2px 0 rgba(0,0,0,.6); transition: color .15s;
}
@media (hover: hover) { .site-nav__list a:hover { color: var(--hover-text); } }
.site-nav__list a.is-active { color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0a0a0c; }
.site-nav__list a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.site-header__actions { display: flex; align-items: center; gap: .6rem; }
.site-header__cta { display: none; white-space: nowrap; margin-bottom: var(--px); }
.lang-switch { display: inline-flex; background: #0a0a0c; padding: 2px; gap: 2px; box-shadow: 0 0 0 2px #0a0a0c; }
.lang-switch__btn {
  min-width: 38px; padding: .4rem .5rem; font-family: var(--font-title); font-size: .55rem; color: var(--muted);
  background: #2b2b33; border: 0; cursor: pointer; transition: background .15s, color .15s;
}
.lang-switch__btn[aria-pressed="true"] { background: var(--play); color: #fff; }
@media (hover: hover) { .lang-switch__btn:not([aria-pressed="true"]):hover { color: var(--hover-text); background: #3a3a44; } }
.lang-switch__btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; position: relative; z-index: 1; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: var(--px);
  background: var(--deepslate) var(--tex-deepslate); background-size: 64px 64px; color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 -3px 0 #0a0a0c, 0 3px 0 #0a0a0c, -3px 0 0 #0a0a0c, 3px 0 0 #0a0a0c, inset 3px 3px 0 rgba(255,255,255,.18), inset -3px -3px 0 rgba(0,0,0,.45);
}
.menu-toggle .icon { font-size: 1.4rem; }
.menu-toggle:active { transform: translateY(2px); }
.menu-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* Menu mobilne – ekran inventory */
.mobile-menu { position: fixed; inset: 0; z-index: 100; display: none; }
.mobile-menu.is-open { display: block; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(6, 6, 10, .78); opacity: 0; transition: opacity .25s; }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu__panel {
  --edge: #000; --hi: #fff; --lo: #555;
  position: absolute; left: 50%; top: 50%; width: min(420px, calc(100vw - 2.5rem)); max-height: calc(100vh - 2.5rem); overflow-y: auto;
  padding: 1.1rem 1.1rem 1.3rem; background: var(--ui-grey); color: #1f1f1f;
  transform: translate(-50%, -50%) scale(.92); opacity: 0; transition: transform .28s cubic-bezier(.2,.9,.3,1.1), opacity .2s;
}
.mobile-menu.is-open .mobile-menu__panel { transform: translate(-50%, -50%); opacity: 1; }
.mobile-menu.is-closing .mobile-menu__panel { transform: translate(-50%, -50%) scale(.95); opacity: 0; }
.mobile-menu.is-closing .mobile-menu__backdrop { opacity: 0; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.mobile-menu__title { font-family: var(--font-display); font-size: 1.2rem; color: #3f3f3f; text-shadow: 1px 1px 0 #fff; }
.mobile-menu__close { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: #8b8b8b; color: #fff; border: 0; cursor: pointer; box-shadow: 0 0 0 2px #000, inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; }
.mobile-menu__close:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.mobile-menu__list { display: flex; flex-direction: column; gap: .35rem; }
.mobile-menu__list li, .mobile-menu__foot { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; transition-delay: calc(var(--i, 0) * 40ms + 80ms); }
.mobile-menu.is-open .mobile-menu__list li, .mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; }
.mobile-menu__foot { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid #8b8b8b; }
.mobile-menu__foot .mc-btn--wide { width: calc(100% - 2 * var(--px)); }
body.menu-open { overflow: hidden; }

/* ---------- 6. SEKCJE ---------- */

/* Tła z teksturą + ciemny overlay (tekst nigdy nie leży bezpośrednio na teksturze) */
.section--how, .section--preview, .section--export, .section--credits, .section--roadmap, .section--beta {
  background-size: 64px 64px; image-rendering: pixelated;
}
.section--how { background-color: #2b2b31; background-image: var(--tex-stone); }
.section--preview { background-color: var(--night); background-image: var(--tex-deepslate); }
.section--export { background-color: #3a2d1e; background-image: var(--tex-planks); }
.section--credits { background-color: #23232a; background-image: var(--tex-deepslate); }
.section--roadmap { background-color: #2b2b31; background-image: var(--tex-stone); }
.section--beta { background-color: #3d2c1d; background-image: var(--tex-dirt); }
.section--params, .section--projects { background: #202026; }
.section--quality, .section--faq { background: #1c1c22; }
.section--how::before, .section--preview::before, .section--export::before, .section--credits::before, .section--roadmap::before, .section--beta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.section--how::before, .section--roadmap::before { background: rgba(18, 18, 24, .9); }
.section--preview::before { background: rgba(8, 10, 20, .8); }
.section--export::before { background: rgba(16, 12, 8, .86); }
.section--credits::before { background: rgba(14, 14, 20, .84); }
.section--beta::before { background: linear-gradient(180deg, rgba(12, 10, 8, .84), rgba(12, 10, 8, .9)); }
/* pas trawy na górze sekcji bety – „ziemia” widziana z boku */
.section--beta::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--grass-top) var(--tex-grass); background-size: 64px 64px; image-rendering: pixelated; box-shadow: 0 3px 0 rgba(0,0,0,.45); }
.section > .container { position: relative; z-index: 1; }

/* --- Hero --- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 2.5rem) 0 4.5rem; background: var(--night);
}
.hero__bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; image-rendering: pixelated; }
.hero__overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(6, 8, 18, .78) 0%, rgba(6, 8, 18, .5) 55%, rgba(6, 8, 18, .3) 100%); }
.hero__fog { position: absolute; left: 0; right: 0; bottom: 0; height: 28%; z-index: -1; background: linear-gradient(180deg, transparent, rgba(38, 38, 44, .92)); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero__copy { position: relative; max-width: 640px; }
.hero__eyebrow { margin-bottom: 1.2rem; }
.hero__title { font-family: var(--font-title); font-size: clamp(1.4rem, .85rem + 2.4vw, 2.65rem); line-height: 1.45; text-shadow: 4px 4px 0 rgba(0,0,0,.7); }
.hero__title .hl { color: var(--xp); }
.hero__splash {
  display: inline-block; margin: .9rem 0 0; padding: .1em .35em; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: #ffff55; text-shadow: 2px 2px 0 #3f3f00; transform: rotate(-4deg); transform-origin: center; animation: splash 1.1s ease-in-out infinite alternate;
}
@keyframes splash { from { transform: rotate(var(--rot, -4deg)) scale(1); } to { transform: rotate(var(--rot, -4deg)) scale(1.07); } }
.hero__lead { margin-top: 1.3rem; max-width: 58ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: #d9d9df; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1.6rem; }
.hero__audience { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.4rem; }
.hero__audience-label { font-family: var(--font-display); font-size: .95rem; color: var(--muted); }
.hero__scroll { position: absolute; left: 50%; bottom: 1.1rem; z-index: 1; width: 26px; height: 40px; margin-left: -13px; box-shadow: 0 0 0 2px rgba(255,255,255,.45); }
.hero__scroll span { position: absolute; left: 10px; top: 8px; width: 6px; height: 6px; background: #fff; animation: scroll-hint 1.6s steps(4) infinite; }
.hero__scroll:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@keyframes scroll-hint { to { transform: translateY(18px); opacity: 0; } }

/* Konsola generacji */
.console { --edge: #08080a; --hi: rgba(255,255,255,.14); --lo: rgba(0,0,0,.5); padding: 0; background: #17171d; }
.console__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; background: #0f0f13; border-bottom: 2px solid #2b2b33; font-family: var(--font-display); font-size: .92rem; color: var(--muted); }
.console__title { display: inline-flex; align-items: center; gap: .5rem; }
.console__title .icon { font-size: 1.2rem; }
.console__status { padding: .3em .55em; font-family: var(--font-title); font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; color: #ffd86b; background: #3a2f10; box-shadow: 0 0 0 2px #1a1608; white-space: nowrap; }
.console__status.is-done { color: #b3ff6d; background: #1f3a10; box-shadow: 0 0 0 2px #0f1c08; }
.console__prompt { display: flex; gap: .6rem; min-height: 4.4rem; padding: .9rem .9rem .5rem; font-family: var(--font-display); font-size: 1rem; line-height: 1.45; color: #fff; }
.console__caret { color: var(--xp); }
.console__cursor { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: #fff; animation: blink 1s steps(2) infinite; }
.console__params { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem .8rem; padding: .3rem .9rem .85rem; font-size: .82rem; }
.console__params div { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.console__params dt { font-family: var(--font-display); font-size: .78rem; color: var(--muted); }
.console__params dd { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.console__canvas-wrap { position: relative; aspect-ratio: 4 / 3; background: #0c0c12 radial-gradient(ellipse at 50% 62%, rgba(120,167,255,.12), transparent 62%); border-top: 2px solid #2b2b33; border-bottom: 2px solid #2b2b33; }
.console__canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; cursor: grab; touch-action: pan-y; }
.console__canvas.is-dragging { cursor: grabbing; }
.console__hint { position: absolute; right: .6rem; bottom: .5rem; padding: .25em .5em; font-family: var(--font-display); font-size: .78rem; color: var(--muted); background: rgba(0,0,0,.55); opacity: 0; transition: opacity .5s; }
.console.is-built .console__hint { opacity: 1; }
.console__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: .65rem .9rem; font-family: var(--font-display); font-size: .92rem; color: var(--muted); }
.console__meter { display: inline-flex; align-items: center; gap: .4rem; }
.console__meter .icon { font-size: 1.1rem; }
.console__meter b { color: #fff; }
.console__meter--ok { color: #b3ff6d; }

/* --- Fakty / HUD --- */
.facts { position: relative; padding: 2.4rem 0 2.8rem; background: var(--deepslate-dark) var(--tex-deepslate); background-size: 64px 64px; image-rendering: pixelated; box-shadow: inset 0 4px 0 #0a0a0c; }
.facts::before { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 26, .74); }
.facts .container { position: relative; }
.facts__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.fact { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.2rem .8rem; text-align: center; background: rgba(0,0,0,.35); box-shadow: 0 0 0 2px #0a0a0c, inset 2px 2px 0 rgba(255,255,255,.08); }
.fact__icon { font-size: 1.9rem; margin-bottom: .3rem; }
.fact__num { font-family: var(--font-title); font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); color: #fff; text-shadow: 3px 3px 0 rgba(0,0,0,.65); }
.fact__suffix { color: var(--xp); font-size: .7em; }
.fact__label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.25; }
.fact__sub { font-size: .82rem; color: var(--muted); }
.facts__note { margin-top: 1.2rem; text-align: center; font-size: .9rem; color: var(--muted); }

/* --- Jak to działa / crafting --- */
.crafting {
  --edge: #000; --hi: #fff; --lo: #555;
  display: grid; grid-template-columns: 1fr; justify-items: center; align-items: center; gap: 1rem;
  width: fit-content; max-width: 100%; margin: var(--px) auto 3rem; padding: 1.4rem 1.6rem; background: var(--ui-grey); color: #1f1f1f;
}
.crafting__grid { display: grid; grid-template-columns: repeat(3, 58px); gap: 2px; padding: 2px; }
.crafting__slot { width: 58px; height: 58px; margin: 0; flex-direction: column; gap: 3px; }
.crafting__slot .icon { width: 46%; height: 46%; }
.crafting__name { font-family: var(--font-display); font-size: .62rem; line-height: 1; color: #fff; text-shadow: 1px 1px 0 #000; }
.crafting__arrow { color: #3f3f3f; font-size: 2.2rem; transform: rotate(90deg); }
.crafting__out { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.crafting__slot.is-result { width: 78px; height: 78px; }
.crafting__slot.is-result .icon { width: 56%; height: 56%; }
.crafting__count { position: absolute; right: 5px; bottom: 3px; font-family: var(--font-display); font-size: .85rem; color: #fff; text-shadow: 1px 1px 0 #000; }
.crafting__name--out { color: #1f1f1f; text-shadow: none; font-size: .85rem; }
.js .reveal.is-in .crafting__slot.is-filled .icon { animation: pop .35s steps(3) both; animation-delay: calc(var(--i, 0) * 140ms + .25s); }

.steps { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.step { position: relative; padding: 1.15rem 1.2rem 1.2rem 5rem; background: rgba(0,0,0,.3); box-shadow: 0 0 0 2px #0a0a0c, inset 2px 2px 0 rgba(255,255,255,.06); transition: translate .15s steps(2); }
.step__num { position: absolute; left: 1rem; top: 1.05rem; width: 48px; height: 48px; font-family: var(--font-title); font-size: .9rem; color: #fff; text-shadow: 2px 2px 0 #000; }
.step__title { font-size: 1.15rem; }
.step__text { margin-top: .5rem; font-size: .95rem; color: var(--muted); }

/* --- Parametry --- */
.params__layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.options { --edge: #000; --hi: #fff; --lo: #555; margin: var(--px); padding: 1.2rem 1.2rem 1.4rem; background: var(--ui-grey); color: #1f1f1f; }
.options__title { margin-bottom: 1rem; text-align: center; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #3f3f3f; text-shadow: 1px 1px 0 #fff; }
.options__row { display: grid; grid-template-columns: 1fr; gap: .35rem; margin-bottom: .75rem; }
.options__label { font-family: var(--font-display); font-size: .95rem; font-weight: 600; }
.options__slider { --v: .5; position: relative; height: 22px; background: #8b8b8b; box-shadow: 0 0 0 2px #000, inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; }
.options__slider i { position: absolute; top: 0; left: calc(var(--v) * (100% - 12px)); width: 12px; height: 100%; background: #6f6f6f var(--tex-stone); background-size: 32px 32px; box-shadow: inset 2px 2px 0 rgba(255,255,255,.4), inset -2px -2px 0 rgba(0,0,0,.5), 0 0 0 2px #000; }
.options__btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem .5rem; margin-top: 1rem; }
.options__btns .mc-btn, .options__foot .mc-btn { width: calc(100% - 2 * var(--px)); min-height: 38px; padding: .5em .5em; font-size: .8rem; cursor: default; }
.options__foot { display: flex; justify-content: center; margin-top: .8rem; }
.options__foot .mc-btn { width: 60%; }
.params__grid { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.param-card { transition: translate .15s steps(2); }
.param-card__title { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; font-size: 1.15rem; }
.param-card__title .icon { font-size: 1.5rem; color: var(--gold); }
.param-card__list li, .feature-list ul li { position: relative; padding-left: 1.2rem; margin-bottom: .4rem; font-size: .95rem; color: var(--muted); }
.param-card__list li::before, .feature-list ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--xp); box-shadow: 1px 1px 0 #000; }
.feature-list ul li::before { background: var(--diamond); }

/* --- Podgląd 3D --- */
.preview__layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.viewer__hud {
  --edge: #000; position: relative; aspect-ratio: 4 / 3; margin: var(--px); overflow: hidden; background: #0d1220;
  box-shadow: 0 -3px 0 var(--edge), 0 3px 0 var(--edge), -3px 0 0 var(--edge), 3px 0 0 var(--edge), inset 3px 3px 0 rgba(255,255,255,.12), inset -3px -3px 0 rgba(0,0,0,.5);
  transition: background .5s;
}
.viewer.is-night .viewer__hud { background: #05070d; }
.viewer__canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; cursor: grab; touch-action: pan-y; }
.viewer__canvas.is-dragging { cursor: grabbing; }
.viewer__crosshair { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 1.2rem; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.viewer__readout { position: absolute; left: .6rem; top: .6rem; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.viewer__readout span { width: fit-content; padding: .15em .45em; font-family: var(--font-display); font-size: .82rem; color: #fff; background: rgba(0,0,0,.55); }
.viewer__hotbar { position: absolute; left: 50%; bottom: .5rem; transform: translateX(-50%); display: flex; padding: 2px; background: rgba(0,0,0,.6); pointer-events: none; }
.viewer__hotbar .mc-slot { width: 34px; height: 34px; margin: 1px; }
.viewer__controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .8rem; }
.viewer__range { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: .95rem; color: var(--muted); }
.viewer__range input { width: 140px; height: 22px; margin: 0; appearance: none; -webkit-appearance: none; background: #8b8b8b; box-shadow: 0 0 0 2px #000, inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; cursor: pointer; }
.viewer__range input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 22px; border: 0; border-radius: 0; background: #6f6f6f; box-shadow: inset 2px 2px 0 rgba(255,255,255,.4), inset -2px -2px 0 rgba(0,0,0,.5), 0 0 0 2px #000; }
.viewer__range input::-moz-range-thumb { width: 14px; height: 22px; border: 0; border-radius: 0; background: #6f6f6f; box-shadow: inset 2px 2px 0 rgba(255,255,255,.4), inset -2px -2px 0 rgba(0,0,0,.5), 0 0 0 2px #000; }
.viewer__range input:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.preview__lists { display: grid; gap: .9rem; }
.feature-list__title { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; font-size: 1.15rem; }
.feature-list__title .icon { font-size: 1.5rem; color: var(--diamond); }
.feature-list__note { margin-top: .9rem; padding: .7rem .9rem; font-size: .88rem; color: var(--hover-text); background: rgba(0,0,0,.35); box-shadow: 0 0 0 2px #0a0a0c; }

/* --- Eksport / skrzynia --- */
.chest { --edge: #000; --hi: #fff; --lo: #555; max-width: 900px; margin: var(--px) auto 2.8rem; padding: 1.2rem; background: var(--ui-grey); color: #1f1f1f; }
.chest__title { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #3f3f3f; text-shadow: 1px 1px 0 #fff; }
.chest__title .icon { font-size: 1.4rem; }
.chest__title--sub { margin-top: 1.2rem; }
.chest__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.chest__slot { width: auto; height: auto; aspect-ratio: 1; margin: 2px; flex-direction: column; gap: .3rem; cursor: help; }
.chest__slot .icon { width: 42%; height: 42%; }
.chest__ext { max-width: 100%; padding: 0 3px; font-family: var(--font-display); font-size: .68rem; line-height: 1.05; text-align: center; color: #fff; text-shadow: 1px 1px 0 #000; overflow-wrap: anywhere; }
.chest__slot:hover, .chest__slot:focus-visible, .chest__slot:focus { outline: var(--px) solid #fff; outline-offset: 0; z-index: 3; }
.chest__slot.is-locked .icon, .chest__slot.is-locked .chest__ext { filter: grayscale(1) brightness(.75); }
.chest__slot.is-locked::before { content: ""; position: absolute; right: 9px; top: 3px; width: 8px; height: 7px; border: 2px solid #ffd86b; border-bottom: 0; }
.chest__slot.is-locked::after { content: ""; position: absolute; right: 7px; top: 9px; width: 12px; height: 9px; background: #ffd86b; box-shadow: 0 0 0 2px #000; }
.chest__note { margin-top: 1rem; font-size: .88rem; color: #3f3f3f; }
.js .reveal.is-in .chest__slot.is-filled .icon { animation: pop .3s steps(3) both; animation-delay: calc(var(--i, 0) * 60ms + .2s); }
.signs { display: grid; grid-template-columns: 1fr; gap: 1.8rem 1rem; padding-bottom: 20px; }
.sign::before, .sign::after { content: ""; position: absolute; bottom: -20px; width: 10px; height: 20px; background: var(--oak-dark); box-shadow: 0 0 0 2px #2b1d0d, inset 2px 0 0 rgba(255,255,255,.2); }
.sign::before { left: 20px; } .sign::after { right: 20px; }

/* --- Jakość --- */
.quality__layout { display: grid; grid-template-columns: 1fr; gap: 1.2rem; align-items: start; }
.quest__title { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; font-size: 1.25rem; }
.quest__title .icon { font-size: 1.7rem; }
.quest__list li { display: flex; align-items: flex-start; gap: .7rem; padding: .6rem 0; border-bottom: 2px solid rgba(255,255,255,.06); font-size: .97rem; }
.quest__list li:last-child { border-bottom: 0; }
.quest__list .icon { flex: 0 0 auto; margin-top: .25em; font-size: 1.05rem; color: var(--xp); filter: drop-shadow(1px 1px 0 #000); }
.js .reveal.is-in .quest__list li { animation: fade-up .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms + .15s); }
.quality__side { display: grid; gap: .9rem; }

/* --- Kredyty --- */
.xpflow { margin-bottom: 2rem; }
.xpflow__steps { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.xpflow__step { position: relative; padding: 1rem 1rem 1rem 3.5rem; background: rgba(0,0,0,.3); box-shadow: 0 0 0 2px #0a0a0c, inset 2px 2px 0 rgba(255,255,255,.06); transition: translate .15s steps(2); }
.xpflow__num { position: absolute; left: .9rem; top: .95rem; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-family: var(--font-title); font-size: .8rem; color: #0e1a05; background: var(--xp); box-shadow: 0 0 0 2px #000, inset -3px -3px 0 #3f9910; }
.xpflow__step h3 { font-size: 1.1rem; }
.xpflow__step p { margin-top: .4rem; font-size: .93rem; color: var(--muted); }
.credits__notes { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.credits__note { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1.1rem; font-size: .95rem; transition: translate .15s steps(2); }
.credits__note .icon { flex: 0 0 auto; font-size: 1.5rem; }

/* --- Projekty / item frames --- */
.frames { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.frame { --edge: #3a2a15; --hi: rgba(255,255,255,.3); --lo: rgba(0,0,0,.42); padding: .9rem .9rem 1.2rem; color: #1a1006; background: #cfab72 var(--tex-sign); background-size: 64px 64px; image-rendering: pixelated; transition: translate .15s steps(2); }
.frame__art { position: relative; height: 112px; margin-bottom: .9rem; overflow: hidden; background: #1a1a20; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #3a3a44; }
.frame__art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 16px 16px; }
.b { position: absolute; width: 30px; height: 30px; background-size: 30px 30px; image-rendering: pixelated; box-shadow: inset 2px 2px 0 rgba(255,255,255,.25), inset -2px -2px 0 rgba(0,0,0,.4), 3px 3px 0 rgba(0,0,0,.5); transition: transform .3s cubic-bezier(.2,.9,.3,1.4); }
.b--grass { background: var(--grass-top) var(--tex-grass); }
.b--dirt { background: var(--dirt) var(--tex-dirt); }
.b--stone { background: var(--stone) var(--tex-stone); }
.b--deepslate { background: var(--deepslate) var(--tex-deepslate); }
.b--planks { background: var(--oak) var(--tex-planks); }
.b--emerald { background: radial-gradient(circle at 30% 32%, var(--emerald) 3px, transparent 3.5px), radial-gradient(circle at 70% 68%, var(--emerald) 4px, transparent 4.5px), var(--stone) var(--tex-stone); }
.b--diamond { background: radial-gradient(circle at 32% 30%, var(--diamond) 3px, transparent 3.5px), radial-gradient(circle at 68% 70%, var(--diamond) 4px, transparent 4.5px), var(--deepslate) var(--tex-deepslate); }
.b--gold { background: radial-gradient(circle at 30% 34%, var(--gold) 3px, transparent 3.5px), radial-gradient(circle at 70% 66%, var(--gold) 4px, transparent 4.5px), var(--stone) var(--tex-stone); }
.b:nth-child(1) { left: 28px; bottom: 14px; }
.b:nth-child(2) { left: 58px; bottom: 14px; }
.b:nth-child(3) { left: 43px; bottom: 44px; }
.b:nth-child(4) { right: 30px; top: 16px; animation: float 3.2s ease-in-out infinite; }
.frame__art[data-art="2"] .b:nth-child(4), .frame__art[data-art="5"] .b:nth-child(4) { animation-delay: -1.1s; }
.frame__art[data-art="3"] .b:nth-child(4), .frame__art[data-art="6"] .b:nth-child(4) { animation-delay: -2.2s; }
.frame__art[data-art="4"] .b:nth-child(3) { left: 58px; }
.frame__art[data-art="6"] .b:nth-child(3) { left: 28px; }
.frame__title { font-size: 1.15rem; color: #1a1006; text-shadow: none; }
.frame__text { margin-top: .45rem; font-size: .95rem; line-height: 1.55; color: #1a1006; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* --- Roadmap / advancementy --- */
.adv { position: relative; display: grid; grid-template-columns: 1fr; gap: 1.1rem; padding-left: .2rem; }
.adv__node { position: relative; display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: .3rem 1rem; }
.adv__node::before { content: ""; position: absolute; left: 27px; top: 56px; width: 2px; height: calc(100% + 1.1rem - 56px); background: #4a4a55; }
.adv__node:last-child::before { display: none; }
.adv__frame {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; color: #fff; background: #5b5b66;
  box-shadow: 0 -3px 0 #2a2a30, 0 3px 0 #2a2a30, -3px 0 0 #2a2a30, 3px 0 0 #2a2a30, inset 3px 3px 0 rgba(255,255,255,.28), inset -3px -3px 0 rgba(0,0,0,.45);
}
.adv__frame .icon { font-size: 1.6rem; }
.adv__label { font-family: var(--font-display); font-weight: 600; font-size: .98rem; line-height: 1.25; }
.adv__state { grid-column: 2; width: fit-content; padding: .25em .5em; font-family: var(--font-title); font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; color: #1a1408; background: var(--gold); box-shadow: 0 0 0 2px #000; }
.adv__node.is-current .adv__frame { background: #8a6a12; box-shadow: 0 -3px 0 var(--gold), 0 3px 0 var(--gold), -3px 0 0 var(--gold), 3px 0 0 var(--gold), inset 3px 3px 0 rgba(255,255,255,.28), inset -3px -3px 0 rgba(0,0,0,.45), 0 0 18px rgba(246,195,60,.5); animation: adv-pulse 2s ease-in-out infinite; }
.adv__node.is-challenge .adv__frame { background: #4b2a7a; box-shadow: 0 -3px 0 #b083ff, 0 3px 0 #b083ff, -3px 0 0 #b083ff, 3px 0 0 #b083ff, inset 3px 3px 0 rgba(255,255,255,.28), inset -3px -3px 0 rgba(0,0,0,.45); }
@keyframes adv-pulse { 50% { filter: brightness(1.25); } }
.roadmap__bottom { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; align-items: start; }
.adv-branch__title { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; font-size: 1.15rem; }
.adv-branch__title .icon { font-size: 1.5rem; color: #b083ff; }

/* --- Beta --- */
.beta__inner { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.beta__panel { padding: clamp(1.4rem, 4vw, 2.4rem); }
.beta-form { margin-top: 1.4rem; }
.beta-form__row { margin-bottom: 1rem; }
.beta-form__grid { display: grid; grid-template-columns: 1fr; gap: 0 1.2rem; }
.beta-form__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.beta-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; margin-top: .4rem; }
.beta-form__note { font-size: .88rem; color: var(--muted); }
.beta-form__status { margin-top: .8rem; font-family: var(--font-display); font-size: .95rem; color: var(--hover-text); }
.beta-form__status:empty { display: none; }
.beta-form__status.is-error { color: #ff8a80; }
.beta__done { padding: 2rem 1rem; text-align: center; }
.beta__done-icon { margin: 0 auto 1rem; font-size: 3.5rem; animation: float 3s ease-in-out infinite; }
.beta__done-title { font-size: 1.6rem; color: var(--gold); text-shadow: 3px 3px 0 rgba(0,0,0,.55); }
.beta__done-text { margin-top: .6rem; color: var(--muted); }
.beta__perks { display: grid; gap: .8rem; }
.beta__perk { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.1rem; font-size: .96rem; background: rgba(0,0,0,.4); box-shadow: 0 0 0 2px #0a0a0c, inset 2px 2px 0 rgba(255,255,255,.06); transition: translate .15s steps(2); }
.beta__perk .icon { flex: 0 0 auto; font-size: 1.7rem; }

/* --- Stopka / bedrock --- */
.site-footer { position: relative; padding: 3rem 0 2rem; color: var(--muted); background: var(--bedrock) var(--tex-bedrock); background-size: 64px 64px; image-rendering: pixelated; box-shadow: inset 0 4px 0 #000; }
.site-footer__inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer__tag { max-width: 34ch; margin-top: .9rem; font-size: .95rem; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.site-footer__nav a { display: inline-block; padding: .25rem 0; font-family: var(--font-display); font-size: 1rem; color: var(--ink); text-decoration: none; }
@media (hover: hover) { .site-footer__nav a:hover { color: var(--hover-text); } }
.site-footer__nav a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.site-footer__lang { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 2px solid #2a2a30; font-size: .8rem; }
.site-footer__disclaimer { font-family: var(--font-display); font-size: .8rem; letter-spacing: .02em; color: #8f8f9a; }
.site-footer__copy { margin-top: .6rem; }

/* ---------- 7. ANIMACJE / REVEAL ---------- */
.js .reveal, .js .reveal-group > * { opacity: 0; transform: translateY(20px); transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in, .js .reveal-group.is-in > * { opacity: 1; transform: none; }
.hero__copy > :not(.hero__splash) { animation: fade-up .7s cubic-bezier(.2,.7,.2,1) both; }
.hero__copy > :nth-child(1) { animation-delay: .05s; } .hero__copy > :nth-child(2) { animation-delay: .15s; } .hero__copy > :nth-child(3) { animation-delay: .25s; }
.hero__copy > :nth-child(4) { animation-delay: .32s; } .hero__copy > :nth-child(5) { animation-delay: .42s; } .hero__copy > :nth-child(6) { animation-delay: .52s; }
.hero__demo { animation: fade-up .8s cubic-bezier(.2,.7,.2,1) .4s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (hover: hover) {
  .step:hover, .param-card:hover, .xpflow__step:hover, .credits__note:hover, .frame:hover, .beta__perk:hover { translate: 0 -3px; }
  .frame:hover .b:nth-child(3) { transform: translateY(-5px); }
  .chest__slot:hover { translate: 0 -2px; }
}
[data-parallax] { will-change: transform; }

/* ---------- 8. RWD ---------- */
@media (min-width: 640px) {
  .crafting { grid-template-columns: auto auto auto; gap: 1.5rem; }
  .crafting__arrow { transform: none; }
  .steps, .params__grid, .frames, .xpflow__steps, .credits__notes { grid-template-columns: repeat(2, 1fr); }
  .chest__grid { grid-template-columns: repeat(6, 1fr); }
  .beta-form__grid { grid-template-columns: 1fr 1fr; }
  .facts__list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 639.98px) {
  :root { --px: 2px; --header-h: 64px; }
  .brand { gap: .5rem; }
  .brand__name { font-size: .62rem; }
  .site-header__actions { gap: .4rem; }
  .lang-switch__btn { min-width: 32px; padding: .4rem .35rem; }
  .menu-toggle { width: 42px; height: 42px; }
  .mc-btn--lg { min-height: 50px; font-size: 1.05rem; padding: .8em 1.3em; }
  .hero__actions .mc-btn { width: calc(100% - 2 * var(--px)); }
  .console__params { grid-template-columns: repeat(2, 1fr); }
  .chest__slot:nth-child(3n+1) .mc-tooltip { left: 0; transform: translateX(0); }
  .chest__slot:nth-child(3n) .mc-tooltip { left: auto; right: 0; transform: translateX(0); }
  .fact__label { font-size: .92rem; }
  .mc-toast { top: auto; bottom: 16px; right: 16px; }
}
@media (min-width: 900px) {
  .signs { grid-template-columns: repeat(3, 1fr); }
  .chest__grid { grid-template-columns: repeat(9, 1fr); }
  .roadmap__bottom { grid-template-columns: 1.3fr .7fr; }
  .site-footer__inner { grid-template-columns: 1.2fr 1fr auto; }
  .adv { grid-template-columns: repeat(5, 1fr); gap: 2.4rem 1rem; padding-left: 0; }
  .adv__node { grid-template-columns: 1fr; align-content: start; justify-items: center; gap: .55rem; text-align: center; }
  .adv__node::before { left: 50%; top: 27px; width: calc(100% + 1rem); height: 2px; }
  .adv__node:nth-child(5n)::before { display: none; }
  .adv__state { grid-column: auto; }
}
@media (min-width: 1024px) {
  .site-nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .hero__splash { position: absolute; right: 0; top: -.9rem; margin: 0; --rot: -12deg; transform: rotate(-12deg); font-size: 1.15rem; max-width: 40%; text-align: center; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .params__layout { grid-template-columns: 340px 1fr; }
  .options { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .preview__layout { grid-template-columns: 1.1fr .9fr; }
  .quality__layout { grid-template-columns: 1fr 1fr; }
  .xpflow__steps { grid-template-columns: repeat(5, 1fr); }
  .credits__notes { grid-template-columns: repeat(4, 1fr); }
  .frames { grid-template-columns: repeat(3, 1fr); }
  .beta__inner { grid-template-columns: 1.25fr .75fr; }
  .beta__perks { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
@media (min-width: 1200px) {
  .site-nav__list a { padding: .5rem .85rem; font-size: 1.05rem; }
}

/* ---------- 9. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-group > * { opacity: 1; transform: none; }
  .mc-btn--glint::after, .hero__scroll span, .eyebrow__dot, .console__cursor { animation: none; }
  .hero__splash { transform: rotate(-4deg); }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.reduce-motion .js .reveal, html.reduce-motion .js .reveal-group > *, html.reduce-motion.js .reveal, html.reduce-motion.js .reveal-group > * { opacity: 1; transform: none; }
html.reduce-motion { scroll-behavior: auto; }

/* menu: utrzymaj display podczas animacji zamykania */
.mobile-menu.is-closing { display: block; pointer-events: none; }

/* i18n: ukryj tekst do czasu podmiany na EN (bezpiecznik w <head> odsłania po 1,5 s) */
html.js[data-lang="en"]:not(.i18n-ready) [data-i18n] { visibility: hidden; }

/* ---------- 10. STRONY DOKUMENTÓW (regulamin, prywatność, cookies, kontakt, cennik) ---------- */
/* Bloki językowe: PL widoczny domyślnie (bez JS), EN po przełączeniu html[data-lang="en"] */
html[data-lang="en"] [data-lang-block="pl"], html:not([data-lang="en"]) [data-lang-block="en"] { display: none !important; }

.page { padding: calc(var(--header-h) + 3rem) 0 4.5rem; background: #202026; }
.page__inner { max-width: 840px; margin: 0 auto; }
.page__head { margin-bottom: 2rem; }
.page__title { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); text-shadow: 3px 3px 0 rgba(0,0,0,.55); }
.page__meta { margin-top: .8rem; font-family: var(--font-display); font-size: .92rem; color: var(--muted); }
.page__lead { margin-top: 1rem; font-size: 1.08rem; color: var(--muted); }
.toc { margin: 1.5rem var(--px) 2.2rem; padding: 1rem 1.2rem; }
.toc__title { margin-bottom: .6rem; font-family: var(--font-display); font-size: 1rem; color: var(--muted); }
.toc ol { padding-left: 1.3rem; list-style: decimal; columns: 2; column-gap: 2rem; font-size: .95rem; }
.toc li { break-inside: avoid; margin-bottom: .25rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover, .doc a:hover { color: var(--hover-text); }
.doc { font-size: 1.02rem; line-height: 1.7; color: #dcdce2; }
.doc h2 { margin: 2.4rem 0 .8rem; font-size: 1.35rem; color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.5); scroll-margin-top: calc(var(--header-h) + 16px); }
.doc h3 { margin: 1.6rem 0 .5rem; font-size: 1.1rem; color: var(--hover-text); }
.doc p { margin: 0 0 .9rem; }
.doc ul, .doc ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.doc ul { list-style: square; } .doc ol { list-style: decimal; }
.doc li { margin-bottom: .35rem; }
.doc li::marker { color: var(--xp); }
.doc a { color: var(--diamond); text-underline-offset: 2px; }
.doc strong { color: #fff; }
.doc .todo { padding: 0 .25em; color: #ffe9a3; background: rgba(246,195,60,.14); border-bottom: 2px dotted var(--gold); font-style: normal; }
.doc .callout { margin: 1.2rem var(--px); padding: 1rem 1.2rem; background: rgba(0,0,0,.35); box-shadow: 0 0 0 2px #0a0a0c, inset 2px 2px 0 rgba(255,255,255,.06); }
.doc .callout--gold { box-shadow: 0 0 0 2px var(--gold), inset 2px 2px 0 rgba(255,255,255,.06); }
.doc .callout__title { display: block; margin-bottom: .4rem; font-family: var(--font-display); font-size: 1rem; color: var(--gold); }
.doc table { width: 100%; margin: 1rem 0 1.4rem; border-collapse: collapse; font-size: .93rem; }
.doc th, .doc td { padding: .6rem .7rem; text-align: left; vertical-align: top; border-bottom: 2px solid #33333c; }
.doc th { font-family: var(--font-display); font-weight: 600; color: #fff; background: #2a2a32; }
.doc .table-wrap { overflow-x: auto; }
.doc .disclaimer { font-family: var(--font-display); letter-spacing: .02em; }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.5rem 0; }
.contact-card { padding: 1.1rem 1.2rem; }
.contact-card__title { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; font-size: 1.1rem; }
.contact-card__title .icon { font-size: 1.4rem; color: var(--gold); }
.contact-card p { margin: 0 0 .4rem; font-size: .96rem; color: var(--muted); }
.contact-card a { color: var(--diamond); }
.pricing-packs { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.5rem 0; }
.pack { padding: 1.3rem 1.3rem 1.5rem; }
.pack--hot { --edge: var(--gold); }
.pack__name { font-size: 1.25rem; }
.pack__credits { display: block; margin: .6rem 0 .2rem; font-family: var(--font-title); font-size: 1.4rem; color: var(--xp); text-shadow: 3px 3px 0 rgba(0,0,0,.6); }
.pack__price { display: block; margin-bottom: .8rem; font-family: var(--font-display); font-size: 1rem; color: var(--hover-text); }
.pack ul { margin: 0; padding-left: 1.2rem; font-size: .93rem; color: var(--muted); }
.pack ul li { margin-bottom: .3rem; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } .pricing-packs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639.98px) { .toc ol { columns: 1; } }

/* ---------- 11. STOPKA: linki w jednym wierszu, dane operatora, placeholdery ---------- */
.site-footer__nav { display: block; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 0; }
.site-footer__links li { display: inline-flex; align-items: center; }
.site-footer__links li + li::before { content: "·"; margin: 0 .7rem; color: #5a5a66; }
.site-footer__links a { padding: .3rem 0; }
.site-footer__operator { margin-top: .9rem; font-size: .85rem; line-height: 1.55; color: #9a9aa6; }
.site-footer__operator a { color: var(--diamond); }
.site-footer__disclaimer + .site-footer__disclaimer { margin-top: .35rem; }
.todo { padding: 0 .25em; color: #ffe9a3; background: rgba(246,195,60,.14); border-bottom: 2px dotted var(--gold); }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1.5fr auto; } }

/* link do aplikacji w nagłówku */
.site-header__login { display: none; padding: .4rem .5rem; font-family: var(--font-display); font-size: .98rem; color: var(--ink); text-decoration: none; text-shadow: 2px 2px 0 rgba(0,0,0,.6); white-space: nowrap; }
@media (min-width: 1024px) { .site-header__login { display: inline-block; } }
@media (hover: hover) { .site-header__login:hover { color: var(--hover-text); } }
