/* Shared by every page of capyplaylab.com: tokens, the top bar, buttons, the
   footer and the EN/UK switch. A page may override the tokens in its own
   <style> (Glowbo is dark). */
:root{
  --bg:#fff7ef;--surface:#fff;--ink:#4a2f22;--soft:#86665a;
  --mint:#7fbfb0;--mint-ink:#2f7d6d;--orange:#f59a4a;
  --bar:rgba(255,247,239,.72);--line:rgba(91,58,40,.10);
  --shadow-sm:0 1px 2px rgba(91,58,40,.08),0 2px 8px rgba(91,58,40,.06);
  --shadow:0 1px 2px rgba(91,58,40,.06),0 12px 32px -8px rgba(91,58,40,.16);
  --shadow-lg:0 2px 4px rgba(91,58,40,.06),0 28px 60px -12px rgba(91,58,40,.28);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
html:not([data-l="uk"]) [lang="uk"],html[data-l="uk"] [lang="en"]:not(html){display:none}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.6 Nunito,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
img{max-width:100%}
.wrap{max-width:1160px;margin:0 auto;padding:0 24px}
@media (max-width:600px){.wrap{padding:0 16px}}

/* top bar */
.bar{position:sticky;top:0;z-index:50;background:var(--bar);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid var(--line)}
.bar .wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font:700 19px Fredoka,'M PLUS Rounded 1c',Nunito,sans-serif;letter-spacing:-.01em}
.brand img{width:38px;height:38px;border-radius:50%;box-shadow:0 0 0 1px var(--line)}
.right{display:flex;align-items:center;gap:8px}
.link{padding:8px 14px;border-radius:999px;color:var(--soft);text-decoration:none;font:700 15px Nunito,sans-serif;transition:background .2s,color .2s}
.link:hover{background:var(--line);color:var(--ink)}
.langs{display:flex;padding:3px;border-radius:999px;background:var(--line);font:800 13px Nunito,sans-serif}
.langs button{border:0;background:none;color:var(--soft);padding:6px 11px;border-radius:999px;cursor:pointer;font:inherit;letter-spacing:.02em;transition:background .2s,color .2s}
.langs button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}
@media (max-width:480px){.link{display:none}}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:10px;padding:14px 24px;border-radius:999px;background:var(--ink);color:#fff;text-decoration:none;font:700 17px Nunito,sans-serif;box-shadow:0 8px 20px -6px rgba(74,47,34,.5);transition:transform .2s,box-shadow .2s}
.btn:hover{box-shadow:0 14px 28px -8px rgba(74,47,34,.55)}
.btn:focus-visible,.link:focus-visible,.brand:focus-visible,.langs button:focus-visible{outline:3px solid var(--mint);outline-offset:3px}

/* footer */
.foot{margin-top:56px;border-top:1px solid var(--line)}
.foot .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:24px;padding-bottom:32px;color:var(--soft);font-size:14px}
.foot .brand{font-size:16px}
.foot .brand img{width:30px;height:30px}

/* Fredoka has no Cyrillic: Ukrainian headings fall to M PLUS Rounded 1c,
   whose 800 matches Fredoka's 700 (Fredoka itself stops at 700). */
html[data-l="uk"] :is(h1,h2,h3){font-weight:800}

/* Layered game logos (tools/logo_layers.py). Still, the layers make exactly
   the original logo; each moving layer only ever grows over its own spot, so
   nothing behind it shows. */
.ll{position:relative;display:block}
.ll img{display:block;width:100%;height:auto}
.ll .l{position:absolute;pointer-events:none}
.ll .saw{left:15%;top:27.973%;width:15.313%;will-change:transform}
.ll .orange{left:1.562%;top:0;width:14.844%;transform-origin:50% 100%;animation:breathe 3.4s ease-in-out infinite}
.ll .pair{left:67.812%;top:0;width:23.75%;transform-origin:50% 100%;animation:breathe 3.9s ease-in-out -1.3s infinite}
.ll .red{left:22.556%;top:.725%;width:60.556%;mix-blend-mode:screen;filter:blur(5px) brightness(1.5);opacity:0;animation:glow 4.5s ease-in-out infinite}
.ll .char{left:40.556%;top:47.585%;width:27.556%;transform-origin:50% 100%;animation:breathe 3.2s ease-in-out infinite}
.ll .char .eyes{position:absolute;left:23.387%;top:32.195%;width:52.823%;transform-origin:50% 55%;animation:blink 5.5s ease-in-out infinite}
@keyframes breathe{50%{transform:scale(1.012,1.035)}}
@keyframes blink{0%,90%,100%{transform:scaleY(1)}94%{transform:scaleY(.08)}}
@keyframes glow{50%{opacity:.85}}
