:root {
  --cream: #fffaf0;
  --ink: #0b0b0f;
  --navy: #052b77;
  --indigo: #2e327e;
  --red: #ff0b1b;
  --yellow: #ffeb65;
  --pink: #ff48e5;
  --pink-l: #ffaaec;
  --blue: #8ea7f2;
  --green: #277f34;
  --mint: #e7eec6;
  --muted: #5b5d72;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --radius: 22px;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code { background: #fff; border: 2px solid var(--ink); padding: 1px 7px; border-radius: 8px; font-size: .88em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; margin-top: 34px; }
.st-font { font-family: var(--display); }

h1, h2, h3, .stat-value, .footer-big { font-family: var(--display); font-weight: 400; letter-spacing: -.5px; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); line-height: .98; margin: 14px 0 20px; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.05; margin: 10px 0 26px; max-width: 860px; }
h3 { font-size: 1.35rem; margin: 0 0 8px; }
.lead { font-size: 1.15rem; line-height: 1.6; color: #24252f; max-width: 620px; }

.eyebrow {
  display: inline-block; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: 2px;
  padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff;
}
.hl-pink, .hl-yellow { position: relative; white-space: nowrap; z-index: 0; }
.hl-pink { color: var(--pink); -webkit-text-stroke: 2px var(--ink); }
.hl-yellow::after {
  content: ""; position: absolute; left: -6px; right: -6px; bottom: 4%; height: 42%;
  background: var(--yellow); z-index: -1; border-radius: 8px; transform: rotate(-1.5deg);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 5vw;
  background: rgba(255,250,240,.92); backdrop-filter: blur(8px);
  border-bottom: var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.4rem; }
.brand-badge {
  display: grid; place-items: center; width: 52px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--navy); border: 4px solid var(--red); font-size: 1rem; transform: rotate(-8deg);
}
.nav nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav nav a { padding: 9px 14px; font-weight: 800; border-radius: 999px; border: 2px solid transparent; }
.nav nav a.active { border-color: var(--ink); background: var(--yellow); }
.nav .nav-cta { background: var(--ink); color: #fff; }
.nav .nav-cta.active { background: var(--pink); color: var(--ink); }

.nav nav a { display: inline-block; transition: transform .2s, box-shadow .2s, background .2s; }
.nav nav a:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.nav nav a.active:hover, .nav .nav-cta:hover { box-shadow: 3px 3px 0 var(--pink); }

main { width: min(1200px, 92vw); margin: 0 auto; padding: 10px 0 40px; flex: 1; }
.section { padding: 56px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border: var(--line); border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 800; color: var(--ink); background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn.ghost { background: #fff; }
.btn-ip { background: #fff; font-size: 1.1rem; }
.btn-ip b { color: var(--navy); }
.ip-mini { background: var(--red); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: .75rem; }
.link { background: none; border: 0; color: var(--navy); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 50px 0 30px; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.online-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2bd14b; box-shadow: 0 0 0 3px rgba(43,209,75,.25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(43,209,75,0); } }

.hero-art { position: relative; height: 480px; }
.panel { position: absolute; border: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.panel-a { left: 0; top: 30px; width: 62%; height: 360px; transform: rotate(-3deg); }
.panel-b { right: 0; top: 110px; width: 52%; height: 320px; transform: rotate(4deg); }
.blocks { width: 100%; height: 100%; }
.hero-pic {
  position: absolute; z-index: 2; left: 14%; top: 50px; width: 76%; height: auto;
  filter: drop-shadow(8px 10px 0 rgba(0,0,0,.35)); animation: bob 5s ease-in-out infinite;
}
/* pikselowe "krajobrazy" robione samym CSS */
.b-cave {
  background:
    radial-gradient(circle at 30% 70%, #b46cff 0 6%, transparent 7%),
    radial-gradient(circle at 70% 40%, #5ce1e6 0 5%, transparent 6%),
    radial-gradient(circle at 50% 85%, #ffd84a 0 4%, transparent 5%),
    repeating-conic-gradient(#3a3f4b 0 25%, #2f333d 0 50%) 0 0 / 40px 40px;
}
.b-sky {
  background:
    linear-gradient(transparent 62%, #6bbf3a 62% 70%, #8a5a2b 70% 88%, transparent 88%) 50% 0 / 60% 100% no-repeat,
    radial-gradient(ellipse at 25% 25%, #fff 0 10%, transparent 11%),
    radial-gradient(ellipse at 75% 18%, #fff 0 8%, transparent 9%),
    linear-gradient(#8ec9ff, #cbe8ff);
}

.sticker { position: absolute; z-index: 3; filter: drop-shadow(4px 4px 0 rgba(0,0,0,.15)); }
.sticker svg { display: block; width: 100%; height: auto; }
.st-coin { width: 120px; left: -20px; bottom: 10px; transform: rotate(-12deg); animation: bob 4s ease-in-out infinite reverse; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* ---------- karty trybow ---------- */
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 22px; }
.grid.servers { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid.shop { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.work { display: block; }
.work-img {
  position: relative; aspect-ratio: 4 / 3; border: var(--line); border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center; margin-bottom: 14px; transition: transform .3s;
  background:
    radial-gradient(circle at 50% 120%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(135deg, #052b77, #1e6fff, #00bfff, #8ea7f2, #1e6fff, #052b77);
  background-size: 100% 100%, 400% 400%;
  animation: blueflow 10s ease-in-out infinite;
}
.work:nth-child(2) .work-img { animation-delay: -2s; }
.work:nth-child(3) .work-img { animation-delay: -4s; }
.work:nth-child(4) .work-img { animation-delay: -6s; }
.work:nth-child(5) .work-img { animation-delay: -8s; }
@keyframes blueflow {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
}
.work-img::before {
  content: ""; position: absolute; inset: -50%;
  background:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(2px 2px at 70% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent),
    radial-gradient(2px 2px at 85% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, #fff, transparent),
    radial-gradient(2px 2px at 55% 45%, #fff, transparent);
  background-size: 50% 50%;
  opacity: .7; animation: sparkle 18s linear infinite;
}
.work-img::after {
  content: ""; position: absolute; left: 50%; bottom: 8%; width: 60%; height: 12%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(5,43,119,.55), transparent 70%); filter: blur(2px);
}
@keyframes sparkle { to { transform: translate(25%, -25%); } }
.work-pic {
  position: relative; z-index: 1; width: 68%; height: 82%; object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.35)); animation: float 4s ease-in-out infinite; transition: transform .3s;
}
.work:nth-child(even) .work-pic { animation-delay: -2s; }
@keyframes float { 50% { translate: 0 -8px; } }
.work:hover .work-img { transform: rotate(-2deg) scale(1.02); }
.work:hover .work-pic { transform: scale(1.1) rotate(-3deg); }
.work p { margin: 0; color: var(--muted); line-height: 1.5; }
.soon .work-img { filter: saturate(.7); }
.soon-tag {
  position: absolute; z-index: 2; top: 14px; right: -34px; transform: rotate(35deg); background: var(--red); color: #fff;
  font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; padding: 6px 40px; border-block: 2px solid var(--ink);
}

.badge-row { display: flex; justify-content: flex-end; margin: -40px 4vw -40px 0; position: relative; z-index: 2; }
.spin-badge { width: 150px; height: 150px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.service { border: var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform .2s; }
.service:hover { transform: translateY(-6px) rotate(-1deg); }
.service-img {
  aspect-ratio: 4 / 5; max-height: 260px; width: 100%; border: var(--line); border-radius: 16px; background: #fff;
  display: grid; place-items: center; margin-bottom: 16px; overflow: hidden;
}
.service-img img { width: 100%; height: 100%; object-fit: contain; }
.service-img img.img-bottom { object-fit: cover; object-position: bottom; }
.rotator { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 16px; }
.rot { display: grid; }
#mode-rot.rot { display: inline-grid; }
.rot > span { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.rot > span.on { opacity: 1; transform: none; }
.service p { margin: 0; line-height: 1.5; }
.s-pink { background: var(--pink-l); }
.s-blue { background: var(--blue); }
.s-green { background: var(--green); color: var(--mint); }

.team-section { position: relative; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.member { text-align: center; }
.member .photo {
  aspect-ratio: 3 / 4; border: var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px;
  display: grid; place-items: center; transition: transform .25s;
}
.member:nth-child(6n+1) .photo { background: var(--yellow); }
.member:nth-child(6n+2) .photo { background: var(--pink-l); }
.member:nth-child(6n+3) .photo { background: var(--blue); }
.member:nth-child(6n+4) .photo { background: var(--mint); }
.member:nth-child(6n+5) .photo { background: #ffc58f; }
.member:nth-child(6n) .photo { background: #b9f0c4; }
.member:hover .photo { transform: rotate(-3deg); }
.member img { width: 80%; image-rendering: pixelated; }
.member b { font-family: var(--display); font-weight: 400; display: block; }
.member span { color: var(--muted); font-size: .9rem; }
.st-abc { width: 220px; right: 0; top: 10px; transform: rotate(7deg); }
.st-green { width: 200px; left: -10px; bottom: 40px; transform: rotate(-8deg); }

/* ---------- karty / statystyki ---------- */
.card { background: #fff; border: var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat { border: var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.stat.c1 { background: var(--yellow); }
.stat.c2 { background: var(--blue); }
.stat.c3 { background: var(--pink-l); }
.stat.c4 { background: var(--mint); }
.stat-value { font-size: 2.3rem; }
.stat-value.small { font-size: 1.05rem; font-family: Inter, sans-serif; font-weight: 800; padding: 12px 0; }
.stat-label { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; }
.server { display: flex; justify-content: space-between; align-items: center; font-weight: 800; padding: 18px 22px; }
.server b { background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 12px; }

.rank { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rank li { counter-increment: r; display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 2px dashed #ddd; font-weight: 600; }
.rank li:last-child { border: 0; }
.rank li::before {
  content: counter(r); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--ink); font-weight: 800; font-size: .85rem; background: #fff;
}
.rank li:nth-child(1)::before { background: var(--yellow); }
.rank li:nth-child(2)::before { background: var(--blue); }
.rank li:nth-child(3)::before { background: var(--pink-l); }
.rank img { width: 26px; height: 26px; border-radius: 6px; image-rendering: pixelated; }
.rank .val { margin-left: auto; font-weight: 800; color: var(--navy); }

table { width: 100%; border-collapse: collapse; }
.info td { padding: 10px 0; border-bottom: 2px dashed #ddd; }
.info td:first-child { color: var(--muted); font-weight: 600; width: 38%; }
.info tr:last-child td { border: 0; }
.purchases th, .purchases td { text-align: left; padding: 9px 6px; border-bottom: 2px dashed #ddd; font-size: .93rem; }
.purchases th { color: var(--muted); }
.ok { color: var(--green); font-weight: 800; }
.wait { color: #b26b00; font-weight: 800; }

.step { background: #fff; border: var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step:nth-child(odd) { transform: rotate(-1.2deg); }
.step:nth-child(even) { transform: rotate(1.2deg); }
.step b {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--display); font-size: 1.3rem; border: 2px solid var(--ink);
}
.step p { margin: 12px 0 0; line-height: 1.5; font-weight: 600; }
.cmds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.cmds code { margin-right: 6px; }
.rules { margin: 0; padding-left: 20px; line-height: 1.9; }

/* ---------- sklep ---------- */
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 30px 0 22px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; cursor: pointer; font: inherit; font-weight: 800; }
.chip.active { background: var(--ink); color: #fff; }
.balance { font-weight: 800; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); }
.item {
  display: flex; flex-direction: column; gap: 10px; position: relative;
  background: #fff; border: var(--line); border-radius: var(--radius); padding: 0 0 20px; box-shadow: var(--shadow);
  overflow: hidden; transition: transform .2s;
}
.item:hover { transform: translateY(-5px) rotate(-.8deg); }
.item::before { content: ""; display: block; height: 110px; background: var(--c, var(--yellow)); border-bottom: var(--line); }
.item > * { margin-left: 20px; margin-right: 20px; }
.item .cat { align-self: flex-start; margin-top: -26px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.item h4 { margin: 4px 20px 0; font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.item p { margin-top: 0; margin-bottom: 0; color: var(--muted); flex: 1; line-height: 1.45; font-size: .93rem; }
.item .buy { display: flex; justify-content: space-between; align-items: center; }
.price { font-family: var(--display); font-size: 1.25rem; }
.item .btn { padding: 9px 18px; }

/* ---------- logowanie / profil ---------- */
.login-wrap { display: grid; place-items: center; }
.login { width: min(460px, 100%); }
.login form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.login form .btn { justify-content: center; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: .9rem; }
input { padding: 12px 14px; border-radius: 14px; border: var(--line); background: var(--cream); color: var(--ink); font: inherit; }
input:focus { outline: none; background: #fff; box-shadow: 3px 3px 0 var(--pink); }
.error { color: var(--red); min-height: 1.2em; margin: 0; font-weight: 700; }
.profile-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 22px; }
.profile-head img { border: var(--line); border-radius: 16px; background: var(--blue); image-rendering: pixelated; }
.profile-head h2 { margin: 8px 0 4px; }
.profile-head .btn { margin-left: auto; }
.status { font-weight: 700; color: var(--muted); }
.status.on { color: var(--green); }

/* ---------- stopka ---------- */
footer { background: var(--ink); color: #fff; padding: 70px 5vw 30px; margin-top: 40px; border-top-left-radius: 40px; border-top-right-radius: 40px; }
.footer-big { font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1; margin-bottom: 40px; text-align: center; }
footer .hl-pink { -webkit-text-stroke: 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 0; border-top: 2px solid #333; border-bottom: 2px solid #333; margin-bottom: 20px; }
.footer-row nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 800; }
.footer-row nav a:hover { color: var(--yellow); }
footer .btn { box-shadow: 4px 4px 0 var(--pink); border-color: #fff; }
footer .muted { color: #999; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140px);
  background: var(--yellow); border: var(--line); box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 22px; border-radius: 999px; font-weight: 800; transition: .3s; z-index: 100; max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--pink-l); }

/* ---------- registration and password reset (#register, #reset) ---------- */
.login-links { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.login-links p { margin: 0; }
.reg-step { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.reg-step p { margin: 0; line-height: 1.5; }
.reg-code {
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 18px;
  border: var(--line); border-radius: 18px; background: var(--yellow); box-shadow: 4px 4px 0 var(--ink);
}
.reg-code span { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; }
.reg-code b { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 8vw, 2.4rem); letter-spacing: 6px; }
.reg-command { text-align: center; }
.reg-command code { display: inline-block; font-size: 1.05rem; padding: 6px 14px; }
.reg-command code b { letter-spacing: 2px; }
.reg-live { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.reg-live .dot { flex: none; }
.dot.wait { background: #f5a300; box-shadow: 0 0 0 3px rgba(245,163,0,.25); animation: pulse-wait 1.6s infinite; }
@keyframes pulse-wait { 50% { box-shadow: 0 0 0 7px rgba(245,163,0,0); } }
.reg-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mc-confirm { color: var(--green); }
input[readonly] { background: #eceae2; color: var(--muted); }
input[readonly]:focus { box-shadow: none; }
.table-scroll { overflow-x: auto; }

/* ---------- shop: in-game look of ranks and chat colours, owned items ---------- */
.item .mc-box {
  position: absolute; top: 16px; left: 16px; right: 16px; height: 64px; margin: 0;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px 12px;
  background: rgba(0,0,0,.74); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden;
}
.mc { font-weight: 600; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.mc-b { font-weight: 800; }
.mc-i { font-style: italic; }
.mc-u { text-decoration: underline; }
.mc-s { text-decoration: line-through; }
.mc-u.mc-s { text-decoration: underline line-through; }
.owned {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--mint); font-weight: 800;
}
.owned::before { content: "\2713"; }

/* ---------- game mode cards (buttons) and their description window ---------- */
button.work {
  width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
button.work:focus-visible { outline: 3px solid var(--pink); outline-offset: 6px; border-radius: var(--radius); }
.work-more {
  display: inline-block; margin-top: 10px; font-weight: 800; padding: 4px 12px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); transition: transform .2s;
}
.work:hover .work-more { transform: translateX(4px); }
/* "Minecraft na Krawedzi": blocks floating over the void, CSS only */
.work-img.b-void {
  background: radial-gradient(ellipse at 50% 120%, #3b1f6b 0, transparent 60%), linear-gradient(#0b0b1f, #1b1240 70%, #05050c);
  background-size: 100% 100%; animation: none;
}
.void-blocks {
  position: relative; z-index: 1; width: 64px; height: 64px; animation: float 4s ease-in-out infinite;
  background: linear-gradient(#6bbf3a 0 28%, #8a5a2b 28%); border: 3px solid var(--ink); border-radius: 4px;
  box-shadow: -90px 30px 0 -14px #b88a4a, 80px -20px 0 -18px #9d9d9d, 120px 40px 0 -24px #6bbf3a, -50px -40px 0 -26px #d7c58c;
}
.mode-dialog {
  width: min(760px, 94vw); max-height: 88vh; padding: 0; border: var(--line); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink); background: var(--cream); color: var(--ink); overflow: auto;
}
.mode-dialog::backdrop { background: rgba(11,11,15,.55); backdrop-filter: blur(3px); }
.mode-box { position: relative; padding: 30px 30px 26px; }
.mode-box h2 { margin: 12px 0 10px; }
.mode-close {
  position: sticky; top: 0; float: right; width: 44px; height: 44px; border-radius: 50%; border: var(--line);
  background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
}
.mode-close:hover { background: var(--yellow); }
.mode-sec { margin-top: 22px; }
.mode-sec h3 { margin-bottom: 6px; }
.mode-sec p { margin: 0; line-height: 1.6; }
.mode-sec .rules { line-height: 1.6; }
.mode-sec .rules li { margin-bottom: 6px; }
.mode-foot { margin-top: 26px; }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero-art { height: 380px; }
  .st-abc, .st-green { position: static; display: block; margin: 0 auto 20px; transform: rotate(-4deg); }
  .badge-row { justify-content: center; margin: 0; }
  .profile-head .btn { margin-left: 0; }
}
/* parkour records table */
.parkour { width: 100%; }
.parkour td:first-child, .parkour th:first-child { width: 3em; text-align: center; }
.pk-head { width: 24px; height: 24px; vertical-align: middle; border-radius: 4px; image-rendering: pixelated; }
.pk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pk-tab { font: inherit; cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.06); color: inherit; opacity: 0.75; }
.pk-tab:hover { opacity: 1; }
.pk-tab.active { opacity: 1; font-weight: 700; }
.pk-auto.active { border-color: #f5f5f5; }
.pk-latwy.active { border-color: #7cb342; }
.pk-sredni.active { border-color: #fdd835; }
.pk-trudny.active { border-color: #fb8c00; }
.pk-bardzo.active { border-color: #e53935; }
/* phones: the header wraps to three rows, so it scrolls away instead of covering a fifth of the screen */
@media (max-width: 600px) {
  .nav { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
