/* Koloboko site.
   System transferred from fallguys.com (measured 30.09.2026):
   chunky rounded uppercase display at lh .9, bold body 17/1.4, pill buttons r30 with a 4px stroke,
   offset shadow and a "press" hover on .25s cubic-bezier(0,.42,.2,.99), image cards whose hover draws
   a 4px white inner border, link hover underline growing 10% -> 100% over 1.8s, flat saturated fields
   stitched with wavy edges and a faint doodle pattern.
   Ours: Nunito (has Cyrillic for later), game palette (bun yellow, grass, sky, candy balls), ink outlines
   and hard stepped shadows taken from the toon outline in the game itself. */

:root {
  --ink: #17122B;
  --ink-2: #2A2247;
  --bun: #FFC83D;
  --bun-d: #F2A623;
  --grass: #3FBF5C;
  --grass-l: #6BE586;
  --grass-d: #23913D;
  --sky: #7CC6F4;
  --sky-d: #4BA6E3;
  --lilac: #9B7BF3;
  --candy: #FF6FA8;
  --peach: #F6A26F;
  --paper: #FFFFFF;
  --snow: #F4F6FB;
  --muted: #5B5474;

  --r-pill: 999px;
  --r-card: 22px;
  --r-img: 16px;
  --stroke: 3px;

  --e-ui: cubic-bezier(0, .42, .2, .99);      /* fallguys buttons */
  --e-display: cubic-bezier(.16, 1, .3, 1);
  --e-body: cubic-bezier(.25, .46, .45, .94);
  --e-bounce: cubic-bezier(.34, 1.56, .64, 1); /* toon overshoot */

  --wrap: 1200px;
  --gut: 16px;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V12C20 12 20 2 30 2S40 12 60 12 80 2 90 2 100 12 120 12V24Z'/%3E%3C/svg%3E");
  --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='30' cy='34' r='14'/%3E%3Ccircle cx='25' cy='31' r='1.5' fill='white'/%3E%3Ccircle cx='35' cy='31' r='1.5' fill='white'/%3E%3Cpath d='M24 39q6 5 12 0'/%3E%3Ccircle cx='118' cy='100' r='9'/%3E%3Cpath d='M96 30l8 8m0-8l-8 8'/%3E%3Cpath d='M40 118q10-10 20 0t20 0'/%3E%3Ccircle cx='130' cy='146' r='3'/%3E%3C/svg%3E");
}

@media (min-width: 768px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 12px; }
:focus-visible { outline: 3px solid var(--bun); outline-offset: 3px; }

/* ---------- buttons (fallguys pill + toon stroke) ---------- */
.btn {
  --sh: 5px;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px;
  padding: 12px 26px;
  border: 4px solid var(--ink);
  border-radius: var(--r-pill);
  font-weight: 900; font-size: 16px; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 var(--sh) 0 var(--ink);
  transition: transform .25s var(--e-ui), box-shadow .25s var(--e-ui), background-color .15s linear;
}
.btn:hover { transform: translateY(-2px); --sh: 7px; }
.btn:active { transform: translateY(4px); --sh: 1px; transition-duration: .06s; }
.btn--go { background: var(--grass-l); }
.btn--go:hover { background: #7DF098; }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { background: rgba(255,255,255,.92); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 7px 18px; font-size: 14px; border-width: 3px; --sh: 3px; }
.btn--sm:hover { --sh: 5px; }
.btn--lg { padding: 12px 28px 12px 20px; }
.btn--xl { padding: 12px 30px 12px 22px; min-height: 68px; }
.btn__txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn__txt b { font-weight: 1000; font-size: 18px; }
.btn__txt small { font-size: 12px; font-weight: 800; letter-spacing: .04em; opacity: .72; margin-top: 3px; }
.btn--xl .btn__txt b { font-size: 20px; }

.win { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 22px; height: 22px; flex: none; }
.win i { background: currentColor; border-radius: 2px; }
.btn .win { color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.nav__in { display: flex; align-items: center; gap: 24px; height: 64px; max-width: calc(var(--wrap) + var(--gut)*2); margin: 0 auto; padding: 0 var(--gut); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 1000; font-size: 21px; letter-spacing: .01em; text-transform: uppercase; }
.brand img { transition: transform .5s var(--e-bounce); }
.brand:hover img { transform: rotate(-360deg); }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a, .foot__links a {
  text-decoration: none; font-weight: 800; font-size: 15px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 3px;
}
.nav__links a:hover, .foot__links a:hover { animation: underline 1.8s ease infinite; }
@keyframes underline { 0% { background-size: 10% 2px; } 50%, 100% { background-size: 100% 2px; } }
.nav__cta { margin-left: auto; border-color: #fff; box-shadow: 0 var(--sh) 0 #000; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- live strip ---------- */
.strip { background: var(--lilac); color: var(--ink); border-bottom: var(--stroke) solid var(--ink); position: relative; z-index: 2; }
.strip__in { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 42px; padding: 6px var(--gut); font-size: 14px; flex-wrap: wrap; text-align: center; }
.strip__state { font-weight: 1000; text-transform: uppercase; letter-spacing: .04em; }
.strip__nums b { font-weight: 1000; font-variant-numeric: tabular-nums; }
.sep { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; margin: 0 6px; vertical-align: middle; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: #CFC9E0; flex: none; }
[data-state="online"] .live__dot, .live[data-state="online"] .live__dot { background: var(--grass-l); animation: pulse 1.6s var(--e-body) infinite; }
[data-state="offline"] .live__dot, .live[data-state="offline"] .live__dot { background: var(--candy); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(107,229,134,.8); } 100% { box-shadow: 0 0 0 10px rgba(107,229,134,0); } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(calc(100dvh - 106px), 860px);
  display: flex; align-items: flex-end;
  padding: 120px 0 88px;
  overflow: hidden;
  background: var(--grass-d);
}
.hero__media { position: absolute; inset: -24px; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: translate3d(var(--px,0), var(--py,0), 0) scale(1.06); will-change: transform; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 0% 100%, rgba(23,18,43,.72) 0%, rgba(23,18,43,.35) 42%, rgba(23,18,43,0) 70%);
}
.hero__body { position: relative; }
.wordmark { margin: 0 0 18px; line-height: .86; font-weight: 1000; letter-spacing: -.01em; font-size: clamp(44px, 14.2vw, 150px); color: #fff; }
.wordmark__row { display: inline-flex; flex-wrap: nowrap; }
.wordmark__row > span {
  display: inline-block;
  -webkit-text-stroke: .055em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 var(--ink);
}
.wordmark .o-ball { color: var(--bun); }
.hero__pitch { max-width: 30ch; margin: 0 0 28px; color: #fff; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.3; font-weight: 800; text-shadow: 0 2px 0 rgba(23,18,43,.5); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }

/* intro choreography: letters drop like balls, the rest fades up (sharplink numbers: y 20, .5s, stagger .08) */
.js .wordmark__row > span { opacity: 0; transform: translateY(-60%) scale(.9); }
.js .in { opacity: 0; transform: translateY(20px); }
.is-ready .wordmark__row > span {
  opacity: 1; transform: none;
  transition: opacity .25s linear calc(var(--i, 0) * .045s + .1s), transform .7s var(--e-bounce) calc(var(--i, 0) * .045s + .1s);
}
.is-ready .in { opacity: 1; transform: none; transition: opacity .5s var(--e-body) var(--d, 0s), transform .6s var(--e-display) var(--d, 0s); }

/* ---------- sections + wavy seams ---------- */
.sec { position: relative; padding: 72px 0 96px; background: var(--bg); }
.sec::before {
  content: ""; position: absolute; left: 0; right: 0; top: -23px; height: 24px;
  background: var(--bg);
  -webkit-mask: var(--wave) 0 0 / 120px 24px repeat-x; mask: var(--wave) 0 0 / 120px 24px repeat-x;
  pointer-events: none;
}
.sec--bun { --bg: var(--bun); }
.sec--sky { --bg: var(--sky); background-image: var(--doodle); background-size: 160px; background-blend-mode: soft-light; }
.sec--paper { --bg: var(--snow); }
.sec--lilac { --bg: var(--lilac); background-image: var(--doodle); background-size: 180px; background-blend-mode: soft-light; }
.sec--grass { --bg: var(--grass); }
@media (min-width: 900px) { .sec { padding: 96px 0 120px; } }

.h2 {
  margin: 0 0 28px;
  font-weight: 1000; text-transform: uppercase; line-height: .9; letter-spacing: -.005em;
  font-size: clamp(40px, 6.2vw, 84px);
  color: #fff;
  -webkit-text-stroke: .06em var(--ink); paint-order: stroke fill;
  text-shadow: 0 .075em 0 var(--ink);
}
.h3 { margin: 56px 0 18px; font-weight: 1000; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 32px); line-height: 1; }
.lead { max-width: 52ch; margin: -8px 0 32px; font-size: 18px; font-weight: 800; }

/* ---------- reveal (IntersectionObserver in app.js) ---------- */
.js .reveal { opacity: 0; translate: 0 28px; }
.reveal.is-in, .reveal-all .reveal { opacity: 1; translate: 0 0;
  transition: opacity .5s var(--e-body) var(--d, 0s), translate .7s var(--e-display) var(--d, 0s); }

/* ---------- cards ---------- */
.card { background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--r-card); box-shadow: 0 8px 0 var(--ink); }

/* ---------- downloads ---------- */
.dl { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.dl > * { min-width: 0; }
@media (min-width: 900px) { .dl { grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; } }
.dl__main { padding: 26px 22px 22px; }
@media (min-width: 600px) { .dl__main { padding: 34px 36px 28px; } }
.dl__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.dl__kicker { margin: 0; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dl__ver { margin: 4px 0 2px; font-weight: 1000; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; }
.dl__ver span { color: var(--grass-d); }
.dl__date { margin: 0; color: var(--muted); font-weight: 800; }
.badge { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: var(--r-pill); border: 2px solid var(--ink); font-size: 13px; font-weight: 900; }
.badge--go { background: #DDF8E3; }
.dl__notes { list-style: none; margin: 22px 0 24px; padding: 0; display: grid; gap: 10px; }
.dl__notes li { position: relative; padding-left: 30px; font-weight: 700; }
.dl__notes li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--bun); border: 2.5px solid var(--ink); }
.dl__notes li.sk::before { display: none; }
.dl__file { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }
.hash { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 220px; background: var(--snow); border-radius: 14px; padding: 8px 8px 8px 12px; }
.hash__lbl { font-size: 11px; font-weight: 1000; letter-spacing: .06em; color: var(--muted); flex: none; }
.hash code { font: 700 13px/1.2 ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.hash__copy { flex: none; border: 2px solid var(--ink); background: #fff; border-radius: var(--r-pill); padding: 5px 12px; font-size: 12px; font-weight: 900; cursor: pointer; min-height: 32px; transition: background-color .15s; }
.hash__copy:hover { background: var(--bun); }
.dl__auto { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; padding-top: 18px; border-top: 2px dashed #D9D5E6; font-weight: 800; }
.auto-ico { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 3px solid var(--ink); border-right-color: transparent; position: relative; animation: spin 2.4s linear infinite; }
.auto-ico::after { content: ""; position: absolute; right: -6px; top: 1px; border: 5px solid transparent; border-top-color: var(--ink); transform: rotate(40deg); }
@keyframes spin { to { rotate: 360deg; } }

.plats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 900px) { .plats { grid-template-columns: 1fr; } }
.plat {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 18px; border: var(--stroke) dashed rgba(23,18,43,.45); background: rgba(255,255,255,.35);
}
.plat__ico { grid-row: span 2; width: 36px; height: 36px; }
.plat__name { font-weight: 1000; font-size: 18px; line-height: 1.1; }
.plat__st { font-size: 13px; font-weight: 800; color: rgba(23,18,43,.7); }
.plat--on { border-style: solid; border-color: var(--ink); background: #fff; box-shadow: 0 5px 0 var(--ink); }
.plat--on .plat__st { color: var(--grass-d); }
.plat .win { width: 30px; height: 30px; margin: 3px; gap: 3px; color: var(--ink); }
.plat:not(.plat--on) .plat__ico { opacity: .6; }
.ico-android, .ico-apple { background: var(--ink); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-android { --m: url("https://cdn.jsdelivr.net/npm/simple-icons@13/icons/android.svg"); }
.ico-apple { --m: url("https://cdn.jsdelivr.net/npm/simple-icons@13/icons/apple.svg"); }

.older { margin-top: 26px; border-radius: 18px; background: rgba(255,255,255,.5); border: var(--stroke) solid var(--ink); }
.older summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; font-weight: 1000; text-transform: uppercase; min-height: 52px; }
.older summary::-webkit-details-marker { display: none; }
.older__n { font-size: 13px; color: var(--muted); text-transform: none; font-weight: 800; }
.chev { margin-left: auto; width: 12px; height: 12px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); rotate: 45deg; translate: 0 -3px; transition: rotate .3s var(--e-ui), translate .3s var(--e-ui); }
.older[open] .chev { rotate: 225deg; translate: 0 3px; }
.older__list { padding: 0 20px 18px; display: grid; gap: 10px; }
.old { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 16px; background: #fff; border-radius: 14px; }
.old b { font-weight: 1000; }
.old span { color: var(--muted); font-size: 14px; }
.old a { margin-left: auto; font-weight: 900; font-size: 14px; }
.older__empty { margin: 0; color: var(--ink); font-weight: 700; opacity: .8; }

/* skeletons */
.sk { height: 18px; border-radius: 9px; background: linear-gradient(90deg, #ECE9F3 0%, #F7F5FB 50%, #ECE9F3 100%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
.sk:nth-child(2) { width: 80%; } .sk:nth-child(3) { width: 64%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- worlds ---------- */
.roll { position: absolute; left: 0; right: 0; top: -44px; height: 40px; pointer-events: none; z-index: 3; overflow: hidden; }
.roll__ball { position: absolute; bottom: 4px; left: 0; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink);
  background: linear-gradient(160deg, var(--candy) 0 52%, #E4568E 52%); translate: -60px 0; }
.roll__ball::before, .roll__ball::after { content: ""; position: absolute; top: 10px; width: 5px; height: 7px; border-radius: 50%; background: var(--ink); }
.roll__ball::before { left: 8px; } .roll__ball::after { left: 17px; }

.worlds { display: grid; gap: 22px; }
@media (min-width: 820px) { .worlds { grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; } .world--b { margin-top: 56px; } }
.world { display: flex; flex-direction: column; text-decoration: none; }
.world__img { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; border: var(--stroke) solid var(--ink); box-shadow: 0 8px 0 var(--ink); aspect-ratio: 16 / 10; background: var(--grass); }
.world__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--e-display); }
.world__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 #fff; transition: box-shadow .25s var(--e-ui); }
.world:hover .world__img::after, .world:focus-visible .world__img::after { box-shadow: inset 0 0 0 5px #fff; }
.world:hover .world__img img { scale: 1.045; }
.world__meta { margin-top: 18px; }
.tag { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 2px 12px 2px 10px; border-radius: var(--r-pill); border: 2px solid var(--ink); font-size: 12px; font-weight: 1000; text-transform: uppercase; letter-spacing: .06em; background: #fff; }
.tag--live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grass); border: 2px solid var(--ink); }
.world__name { margin-top: 10px; font-size: clamp(36px, 4.4vw, 56px); font-weight: 1000; text-transform: uppercase; line-height: .9; color: var(--ink); }
.world__txt { margin-top: 8px; max-width: 42ch; font-weight: 800; }

.shop { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 calc(var(--gut) * -1); padding-left: var(--gut); padding-right: var(--gut); scrollbar-width: thin; }
.shop__it { flex: 0 0 176px; scroll-snap-align: start; }
@media (min-width: 1100px) { .shop { display: grid; grid-template-columns: repeat(7, 1fr); overflow: visible; margin: 0; padding: 4px 0 0; } }
.shop__img { display: block; aspect-ratio: 1 / 1; border-radius: var(--r-img); overflow: hidden; border: var(--stroke) solid var(--ink); background: var(--sky-d); }
.shop__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) contrast(.95); opacity: .8; transition: filter .4s var(--e-body), opacity .4s var(--e-body), scale .6s var(--e-display); }
.shop__it:hover .shop__img img { filter: none; opacity: 1; scale: 1.06; }
.shop__it b { display: block; margin-top: 10px; font-weight: 1000; font-size: 17px; text-transform: uppercase; line-height: 1.05; }

/* ---------- modes ---------- */
.modes { display: grid; gap: 24px; }
@media (min-width: 900px) { .modes { grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; } .mode--agar { margin-top: 48px; } }
.mode { position: relative; overflow: hidden; border: var(--stroke) solid var(--ink); border-radius: var(--r-card); box-shadow: 0 8px 0 var(--ink); display: flex; flex-direction: column; }
.mode--roam { background: var(--sky); }
.mode--agar { background: var(--candy); }
.mode__img { display: block; aspect-ratio: 16 / 7.5; border-bottom: var(--stroke) solid var(--ink); overflow: hidden; }
.mode__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--e-display); }
.mode:hover .mode__img img { scale: 1.04; }
.mode__body { flex: 1; }
.mode__body { padding: 24px 26px 26px; }
.mode__t { margin: 0 0 10px; font-weight: 1000; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 64px); line-height: .88; color: #fff; -webkit-text-stroke: .06em var(--ink); paint-order: stroke fill; text-shadow: 0 .07em 0 var(--ink); }
.mode__p { margin: 0 0 20px; max-width: 40ch; font-weight: 800; font-size: 18px; }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rules li { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 16px 6px 8px; background: #fff; border: 2.5px solid var(--ink); border-radius: var(--r-pill); font-weight: 900; font-size: 15px; }
.rule__i { position: relative; width: 28px; height: 28px; flex: none; }
.rule__i::before, .rule__i::after { content: ""; position: absolute; border-radius: 50%; border: 2.5px solid var(--ink); }
.r-eat::before { width: 22px; height: 22px; left: 0; top: 3px; background: var(--grass-l); }
.r-eat::after { width: 9px; height: 9px; right: 0; top: 9px; background: var(--peach); animation: gulp 1.8s var(--e-ui) infinite; }
@keyframes gulp { 0%, 30% { translate: 0; scale: 1; } 70%, 100% { translate: -12px 0; scale: 0; } }
.r-split::before, .r-split::after { width: 15px; height: 15px; top: 6px; background: var(--grass-l); animation: split 2.2s var(--e-bounce) infinite; }
.r-split::before { left: 6px; --dx: -5px; } .r-split::after { left: 6px; --dx: 6px; }
@keyframes split { 0%, 25% { translate: 0; } 55%, 100% { translate: var(--dx) 0; } }
.r-eject::before { width: 22px; height: 22px; left: 0; top: 3px; background: var(--lilac); }
.r-eject::after { width: 7px; height: 7px; left: 16px; top: 10px; background: var(--lilac); animation: eject 1.6s var(--e-display) infinite; }
@keyframes eject { 0% { translate: 0; opacity: 1; } 80% { translate: 10px 0; opacity: 1; } 100% { translate: 10px 0; opacity: 0; } }
.r-hill::before { width: 26px; height: 26px; left: 0; top: 10px; background: var(--grass); border-radius: 50% 50% 0 0; height: 14px; }
.r-hill::after { width: 10px; height: 10px; left: 8px; top: 1px; background: var(--bun); animation: hop 1.4s var(--e-bounce) infinite; }
@keyframes hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.r-jump::before { width: 12px; height: 12px; left: 2px; top: 12px; background: var(--bun); animation: arc 1.8s var(--e-body) infinite; }
.r-jump::after { display: none; }
@keyframes arc { 0% { translate: 0 0; } 50% { translate: 7px -10px; } 100% { translate: 14px 0; } }

/* ---------- server HUD ---------- */
.hud { background: var(--ink); color: #fff; border-radius: var(--r-card); border: var(--stroke) solid var(--ink); box-shadow: 0 8px 0 rgba(23,18,43,.55); padding: 24px 20px; }
@media (min-width: 700px) { .hud { padding: 32px 36px; } }
.hud__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hud__state { font-weight: 1000; text-transform: uppercase; letter-spacing: .05em; font-size: 15px; }
.hud .live__dot { border-color: #fff; }
.hud__ver { font-size: 14px; font-weight: 800; color: rgba(255,255,255,.6); }
.hud__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.num { background: var(--ink-2); border-radius: 18px; padding: 16px 14px 14px; }
.num__v { display: block; font-size: clamp(40px, 7vw, 88px); font-weight: 1000; line-height: .9; font-variant-numeric: tabular-nums; color: var(--bun); }
.num:nth-child(2) .num__v { color: var(--candy); }
.num:nth-child(3) .num__v { color: var(--grass-l); }
.num__l { display: block; margin-top: 8px; font-size: 13px; font-weight: 800; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .04em; }
.rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .rooms { grid-template-columns: 1fr 1fr; } }
.room { display: flex; align-items: center; gap: 14px; background: var(--ink-2); border-radius: 16px; padding: 12px 16px; min-height: 64px; }
.room.sk { background: linear-gradient(90deg, #2A2247 0%, #362D58 50%, #2A2247 100%) 0 0 / 200% 100%; height: 64px; width: auto; }
.room__ball { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; flex: none; background: var(--grass-l); }
.room--agar .room__ball { background: var(--candy); }
.room__n { font-weight: 1000; font-size: 17px; line-height: 1.1; }
.room__m { font-size: 13px; color: rgba(255,255,255,.65); font-weight: 800; }
.room__c { margin-left: auto; text-align: right; font-weight: 900; font-size: 14px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hud__off { display: none; }
.hud[data-state="offline"] .hud__nums, .hud[data-state="offline"] .rooms { display: none; }
.hud[data-state="offline"] .hud__off { display: block; padding: 22px 0 4px; }
.hud__off-t { margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); font-weight: 1000; line-height: 1.05; }
.hud__off-p { margin: 0 0 18px; max-width: 48ch; color: rgba(255,255,255,.75); }
.hud[data-state="loading"] .num__v { color: rgba(255,255,255,.2); }

/* ---------- what's next ---------- */
.next { display: grid; gap: 32px; }
@media (min-width: 900px) { .next { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; } }
.next__char { display: flex; flex-direction: column; align-items: center; }
.next__cap { margin: 18px 0 0; font-weight: 900; text-align: center; min-height: 2.9em; max-width: 30ch; }
.kb { position: relative; width: min(78vw, 380px); aspect-ratio: 1; }
.kb__shadow { position: absolute; left: 14%; right: 14%; bottom: -2%; height: 11%; border-radius: 50%; background: rgba(23,18,43,.28); transition: scale .5s var(--e-bounce); }
.kb__body { position: absolute; inset: 6% 6% 8%; transform-origin: 50% 100%; transition: scale .55s var(--e-bounce), translate .55s var(--e-bounce); animation: bob 3.2s var(--e-body) infinite alternate; }
.kb__svg { width: 100%; height: 100%; overflow: visible; }
.kb__eyes { transform-box: view-box; transform-origin: 100px 90px; transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .06s linear; }
.kb__eyes.blink { transform: translate(var(--ex, 0px), var(--ey, 0px)) scaleY(.1); }
.kb__brows { opacity: 0; transition: opacity .2s; }
.kb__drop { position: absolute; right: 12%; top: 12%; width: 9%; height: 13%; background: #9BE3FF; border: 3px solid var(--ink); border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; opacity: 0; }
.kb__lines { position: absolute; left: -6%; top: 30%; width: 22%; display: grid; gap: 14px; opacity: 0; }
.kb__lines i { height: 6px; border-radius: 3px; background: var(--ink); }
.kb__lines i:nth-child(2) { width: 70%; margin-left: 30%; }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -3%; } }
.kb[data-stat="size"] .kb__body { scale: 1.16; }
.kb[data-stat="size"] .kb__shadow { scale: 1.25 1.1; }
.kb[data-stat="weight"] .kb__body { scale: 1.12 .84; animation: none; }
.kb[data-stat="speed"] .kb__body { animation: dash .9s var(--e-ui) infinite; }
.kb[data-stat="speed"] .kb__lines { opacity: 1; }
.kb[data-stat="strength"] .kb__brows { opacity: 1; }
.kb[data-stat="strength"] .kb__body { animation: push .5s var(--e-bounce) infinite alternate; }
.kb[data-stat="stamina"] .kb__body { animation: breathe 1.1s var(--e-body) infinite alternate; }
.kb[data-stat="stamina"] .kb__drop { opacity: 1; animation: drip 1.1s var(--e-body) infinite; }
@keyframes dash { 0% { translate: -4% 0; rotate: 0deg; } 100% { translate: 4% 0; rotate: 40deg; } }
@keyframes push { from { translate: 0 0; scale: 1; } to { translate: 5% 0; scale: 1.04 .97; } }
@keyframes breathe { from { scale: 1; } to { scale: 1.035 1.06; } }
@keyframes drip { 0% { translate: 0 0; opacity: 1; } 100% { translate: 0 40%; opacity: 0; } }

.next .h2 { margin-bottom: 22px; }
.next .lead { margin-top: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(6, 1fr); } .stat { grid-column: span 2; } .stat:nth-child(4) { grid-column: 2 / span 2; } }
.stat {
  text-align: left; cursor: pointer;
  padding: 14px 16px; min-height: 104px;
  background: #fff; border: var(--stroke) solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink);
  transition: transform .25s var(--e-ui), box-shadow .25s var(--e-ui), background-color .15s linear;
}
.stat:last-child { grid-column: 1 / -1; }
@media (min-width: 600px) { .stat:last-child { grid-column: 4 / span 2; } }
.stat b { display: block; font-weight: 1000; font-size: 20px; text-transform: uppercase; line-height: 1; margin-bottom: 6px; }
.stat span { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--muted); }
.stat:hover, .stat:focus-visible, .stat.is-on { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); background: var(--bun); }
.stat:hover span, .stat.is-on span { color: var(--ink); }
.soon { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.soon li { padding: 9px 16px; border-radius: var(--r-pill); background: rgba(23,18,43,.14); border: 2px dashed var(--ink); font-weight: 900; font-size: 15px; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--ink); color: #fff; padding: 56px 0 40px; --bg: var(--ink); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -23px; height: 24px; background: var(--ink); -webkit-mask: var(--wave) 0 0 / 120px 24px repeat-x; mask: var(--wave) 0 0 / 120px 24px repeat-x; }
.foot__in { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .foot__in { grid-template-columns: auto 1fr auto; } .foot__c { grid-column: 1 / 3; } .foot__top { grid-row: 1; grid-column: 3; } }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__c { margin: 0; color: rgba(255,255,255,.6); font-size: 14px; font-weight: 700; }
.foot__top { justify-self: start; border-color: #fff; box-shadow: 0 var(--sh) 0 #000; }
@media (min-width: 800px) { .foot__top { justify-self: end; } }

/* ---------- small screens ---------- */
@media (max-width: 599px) {
  body { font-size: 16px; }
  .hero { padding: 96px 0 64px; min-height: min(calc(100dvh - 106px), 720px); }
  .hero__img { object-position: 62% 50%; }
  .btn--xl { width: 100%; justify-content: center; }
  .hero__ctas .btn--ghost { width: 100%; justify-content: center; }
  .btn__txt b, .btn--xl .btn__txt b { font-size: 15px; letter-spacing: .01em; }
  .btn--xl, .btn--lg { padding: 10px 16px; gap: 10px; min-height: 64px; }
  .dl__file .btn { width: 100%; justify-content: center; }
  .hud__nums { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .num { padding: 12px 10px; }
  .num__l { font-size: 11px; }
  .strip__in { font-size: 13px; gap: 10px; }
}

/* ---------- scroll-driven roll (progressive) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .roll__ball { animation: roll linear both; animation-timeline: view(); animation-range: cover 0% cover 60%; }
    @keyframes roll { from { translate: -60px 0; rotate: 0deg; } to { translate: calc(100vw + 20px) 0; rotate: 900deg; } }
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .wordmark__row > span, .js .in, .js .reveal { opacity: 1; transform: none; translate: 0 0; }
  .hero__img { transform: scale(1.06); }
  .roll { display: none; }
}

/* ---------- mobile fixes after the first look ---------- */
.shop { scroll-padding-inline: var(--gut); }
@media (max-width: 899px) {
  .next__txt { display: contents; }
  .next > .h2, .next__txt > .h2 { order: 1; margin-bottom: 0; }
  .next__txt > .lead { order: 2; margin: 0; }
  .next__char { order: 3; }
  .next__txt > .stats { order: 4; }
  .next__txt > .soon { order: 5; margin-top: 0; }
  .next { gap: 22px; }
  .kb { width: min(56vw, 300px); }
}
@media (max-width: 599px) {
  .rules li { font-size: 14px; padding-right: 13px; min-height: 42px; }
  .mode__body { padding: 20px 18px 22px; }
}

/* колобок в кадре стоит справа (~66% ширины): на узком экране держим его в кадре */
@media (max-width: 700px) { .hero__img { object-position: 70% 50%; } }
