/* Сайт «Котомёта»: кухонная тёплая палитра игры, шрифт Rubik (OFL, локально). Игра живёт отдельно (style.css). */
@font-face { font-family: Rubik; font-weight: 400; font-display: swap; src: url(vendor/fonts/rubik-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: Rubik; font-weight: 600; font-display: swap; src: url(vendor/fonts/rubik-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: Rubik; font-weight: 800; font-display: swap; src: url(vendor/fonts/rubik-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: Rubik; font-weight: 900; font-display: swap; src: url(vendor/fonts/rubik-cyrillic-900-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: Rubik; font-weight: 400; font-display: swap; src: url(vendor/fonts/rubik-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026; }
@font-face { font-family: Rubik; font-weight: 600; font-display: swap; src: url(vendor/fonts/rubik-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026; }
@font-face { font-family: Rubik; font-weight: 800; font-display: swap; src: url(vendor/fonts/rubik-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026; }
@font-face { font-family: Rubik; font-weight: 900; font-display: swap; src: url(vendor/fonts/rubik-latin-900-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026; }

:root {
  --ink: #2b1d14; --muted: #7a6656; --paper: #f6e8d2; --card: #fffdf8; --line: rgba(43,29,20,.14);
  --accent: #ff7a1a; --accent-d: #d65f0c; --night: #2b1d14; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }   /* декоративные лучи и облака не должны раздвигать страницу на телефоне (11.10: нельзя было отдалить щипком, страницу тянуло) */
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 Rubik, "Segoe UI", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-d); }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-weight: 900; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 68px); } h2 { font-size: clamp(26px, 3.6vw, 40px); } h3 { font-size: 20px; }
p { margin: 0 0 1em; text-wrap: pretty; }

/* шапка */
.top { position: sticky; top: 0; z-index: 5; background: rgba(246,232,210,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--accent-d); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 14px; background: var(--accent); color: #fff !important; font-weight: 800; font-size: 18px; text-decoration: none !important; box-shadow: 0 5px 0 var(--accent-d); transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--accent-d); }
.btn.small { padding: 8px 18px; font-size: 15px; border-radius: 11px; box-shadow: 0 3px 0 var(--accent-d); }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--ink); }

/* юридические страницы */
.doc { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 80px); }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(30px, 5vw, 46px); }
.doc h2 { font-size: 24px; margin-top: 1.6em; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.doc dt { color: var(--muted); } .doc dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.note { background: #fff3dd; border: 1px solid #f0cf94; border-radius: 12px; padding: 12px 16px; font-size: 15px; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.lost img { width: 200px; margin: 0 auto 10px; }

/* подвал */
footer.foot { background: var(--night); color: #e9d9c0; padding: 36px 0 28px; font-size: 14.5px; }
footer.foot a { color: #ffd9a8; }
footer.foot .cols { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
footer.foot nav { display: flex; flex-direction: column; gap: 6px; }
footer.foot .legal { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; color: #bfa98d; }
footer.foot .legal p { margin: 0 0 4px; }

@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 460px) { body { font-size: 16px; } .doc dl { grid-template-columns: 1fr; gap: 0; } .doc dd { margin-bottom: 10px; } .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* подпись студии (брендбук albireotech.ru/brand, тёмный вариант) */
.albireo-sign{display:inline-block;line-height:0;color:inherit;text-decoration:none}.albireo-sign svg{display:block;height:100%;width:auto;overflow:visible}.albireo-sign .albireo-sign-gh{opacity:0;mix-blend-mode:screen}.albireo-sign--light .albireo-sign-gh{mix-blend-mode:multiply}.albireo-sign .albireo-sign-gl{transform-box:fill-box;transform-origin:center}.albireo-sign:hover .albireo-sign-gh--a,.albireo-sign:focus-visible .albireo-sign-gh--a{animation:albireo-sign-a .75s cubic-bezier(.22,1,.36,1)}.albireo-sign:hover .albireo-sign-gh--b,.albireo-sign:focus-visible .albireo-sign-gh--b{animation:albireo-sign-b .75s cubic-bezier(.22,1,.36,1)}.albireo-sign:hover .albireo-sign-main,.albireo-sign:focus-visible .albireo-sign-main{animation:albireo-sign-m .75s cubic-bezier(.22,1,.36,1)}.albireo-sign:hover .albireo-sign-gl,.albireo-sign:focus-visible .albireo-sign-gl{animation:albireo-sign-g .9s cubic-bezier(.22,1,.36,1)}@keyframes albireo-sign-a{0%{opacity:.95;transform:translateX(-4px)}100%{opacity:0;transform:none}}@keyframes albireo-sign-b{0%{opacity:.95;transform:translateX(4px)}100%{opacity:0;transform:none}}@keyframes albireo-sign-m{0%{opacity:.35}100%{opacity:1}}.albireo-sign .albireo-sign-t{transform-box:fill-box;transform-origin:center bottom}.albireo-sign:hover .albireo-sign-t,.albireo-sign:focus-visible .albireo-sign-t{animation:albireo-sign-t .55s cubic-bezier(.22,1,.36,1) calc(.12s + var(--i) * 70ms) both}.albireo-sign:hover .albireo-sign-div,.albireo-sign:focus-visible .albireo-sign-div{animation:albireo-sign-d .6s ease .05s}@keyframes albireo-sign-t{0%{transform:none}35%{transform:translateY(-14%) scale(1.12);fill:var(--albireo-sign-gold,#ffc46a)}100%{transform:none}}@keyframes albireo-sign-d{40%{stroke:#ffc46a;stroke-width:2}}.albireo-sign--light{--albireo-sign-gold:#d98a1c}@keyframes albireo-sign-g{0%{transform:rotate(0) scale(1)}40%{transform:rotate(45deg) scale(1.6)}100%{transform:rotate(90deg) scale(1)}}@media (prefers-reduced-motion:reduce){.albireo-sign *{animation:none!important}}

/* логотип: знак + надпись + подпись */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo .mark { flex: none; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 3px 0 rgba(43,29,20,.35); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.logo:hover .mark { transform: translateX(3px) rotate(-6deg) scale(1.06); }
.wm-wrap { display: flex; flex-direction: column; gap: 5px; }
.wm-img { display: block; height: 36px; width: auto; filter: drop-shadow(0 2px 0 rgba(0,0,0,.18)); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.logo:hover .wm-img { transform: translateY(-2px) rotate(-1.2deg); }
.wm-sub { font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; margin-left: 2px; }
footer.foot .wm-sub { color: #bfa98d; }
@media (max-width: 520px) { .wm-img { height: 28px; } .logo .mark { width: 42px; height: 42px; } .wm-sub { font-size: 11px; letter-spacing: .06em; } }

/* тематический подвал: сырная кромка, мышь выглядывает, подпись студии на бирке-ошейнике */
footer.foot { position: relative; padding-top: 74px; margin-top: 0; }
.cheese { position: absolute; left: 0; right: 0; top: 0; height: 34px; border-bottom: 4px solid #1a1210;
  background: radial-gradient(circle at 22px 24px, #2b1d14 9px, transparent 10px) 0 0 / 96px 34px, radial-gradient(circle at 66px 13px, #2b1d14 5.5px, transparent 6.5px) 0 0 / 96px 34px, radial-gradient(circle at 84px 27px, #2b1d14 3.5px, transparent 4.5px) 0 0 / 96px 34px, #ffc247; }
/* табличка-доска: то же дерево и гвозди, что у блоков игры */
.fbrand .btn.small { margin-top: 14px; }
.plank { position: relative; width: min(100%, 330px); margin-top: 22px; padding: 16px 18px 16px; border: 3px solid #1a1210; border-radius: 10px; color: #2b1d14; box-shadow: 0 5px 0 rgba(0,0,0,.5);
  background:
    radial-gradient(circle at 11px 11px, #4e4f55 3.2px, transparent 4px), radial-gradient(circle at calc(100% - 11px) 11px, #4e4f55 3.2px, transparent 4px),
    radial-gradient(circle at 11px calc(100% - 11px), #4e4f55 3.2px, transparent 4px), radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #4e4f55 3.2px, transparent 4px),
    repeating-linear-gradient(180deg, rgba(110,62,28,.16) 0 2px, transparent 2px 15px), linear-gradient(#cf9a62, #b57a46); }
.ru-made { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 0 12px; }
.ru-flag { display: flex; flex-direction: column; width: 30px; height: 21px; border-radius: 4px; overflow: hidden; border: 2px solid #1a1210; flex: none; }
.ru-flag b { flex: 1; display: block; } .ru-flag b:nth-child(1) { background: #fff; } .ru-flag b:nth-child(2) { background: #1C57A5; } .ru-flag b:nth-child(3) { background: #D52B1E; }
.ru-made span { display: flex; flex-direction: column; line-height: 1.2; }
.ru-made span b { font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: 0; color: #2b1d14; }
.ru-made small { font-size: 13.5px; font-weight: 400; color: #4a382b; }
.label { position: relative; background: #fff3dd; border: 2px solid #1a1210; border-radius: 4px; padding: 12px 16px 10px; transform: rotate(.8deg); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.label::before, .label::after { content: ""; position: absolute; top: -9px; width: 46px; height: 17px; background: rgba(255,214,90,.82); border-left: 2px dotted rgba(0,0,0,.18); border-right: 2px dotted rgba(0,0,0,.18); }
.label::before { left: -14px; transform: rotate(-32deg); } .label::after { right: -14px; transform: rotate(32deg); }
.label .albireo-sign { display: block; height: 28px; } .label .albireo-sign svg { height: 28px; }
.sign-fb { font: 800 14px/28px Rubik, sans-serif; color: var(--ink); }
.label .albireo-sign:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
/* нора: мышь выглядывает из-за арки */
.hole { position: relative; align-self: end; width: 190px; height: 150px; margin: 0 auto -28px; overflow: hidden; }
.hole img { position: absolute; left: 50%; bottom: 36px; width: 110px; height: 110px; margin-left: -55px; animation: peek 5s ease-in-out infinite; transform-origin: 50% 100%; }
.hole .arch { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; border-radius: 95px 95px 0 0; background: radial-gradient(ellipse at 50% 100%, #000 0 50%, #120c08 100%); border: 4px solid #1a1210; border-bottom: 0; box-shadow: inset 0 8px 0 rgba(255,255,255,.06); }
.hole::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 20px; background: #2b1d14; z-index: 2; }
@keyframes peek { 0%, 52%, 100% { transform: translateY(46px); } 60%, 85% { transform: translateY(8px) rotate(-3deg); } 72% { transform: translateY(6px) rotate(4deg); } }
footer.foot .cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 28px 48px; align-items: start; }
@media (max-width: 860px) { footer.foot .cols { grid-template-columns: 1fr; } .hole { display: none; } }
@media (prefers-reduced-motion: reduce) { .hole img { animation: none; transform: translateY(14px); } }

/* ---------- шапка 2.0 и подвал 2.0 (10.10.2026): плавающая панель в языке игры; подвал — крупный призыв, колонки, строка разработчика ---------- */
.top { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; background: none; border: 0; backdrop-filter: none; pointer-events: none; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.top.hide { transform: translateY(-140%); }
.top .bar { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 14px; width: min(1180px, 100% - 24px); margin: 0 auto; padding: 8px 10px 12px 12px; border: 3px solid var(--ink); border-radius: 22px; background: rgba(255,243,221,.8); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 5px 0 var(--ink), 0 18px 36px rgba(43,29,20,.16); transition: padding .3s, border-radius .3s; }
.top.sm .bar { padding-block: 5px 10px; }
.top .logo .mark { width: 46px; height: 46px; border-radius: 12px; transition: width .3s, height .3s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.top.sm .logo .mark { width: 38px; height: 38px; }
.top .wm-img { height: 30px; }
.top .wm-sub { max-height: 16px; overflow: hidden; transition: max-height .3s, opacity .3s; font-size: 11px; }
.top.sm .wm-sub { max-height: 0; opacity: 0; }
.top .nav { position: relative; margin-left: auto; display: flex; gap: 2px; flex-wrap: nowrap; }
.top .nav a { position: relative; z-index: 1; padding: 9px 16px; border-radius: 12px; font-weight: 800; font-size: 15px; color: var(--ink); transition: color .2s; }
.top .nav a:hover, .top .nav a.on { color: #fff; }
.top .nav .ind { position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; width: 0; border-radius: 12px; background: var(--ink); opacity: 0; transition: transform .35s cubic-bezier(.3,1.3,.5,1), width .35s cubic-bezier(.3,1.3,.5,1), opacity .2s; }
.hd-play { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 13px; border: 3px solid var(--ink); background: var(--accent); color: #fff !important; font-weight: 900; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .12s; }
.hd-play:hover { background: #ff8c3a; transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.hd-play:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.hd-play svg { transition: transform .25s; } .hd-play:hover svg { transform: translateX(3px); }
.prog { position: absolute; left: 18px; right: 18px; bottom: 4px; height: 4px; border-radius: 2px; background: rgba(43,29,20,.12); overflow: hidden; }
.prog i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #ffc247, var(--accent)); }
.burger { display: none; position: relative; width: 46px; height: 42px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; cursor: pointer; box-shadow: 0 3px 0 var(--ink); padding: 0; }
.burger i { position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .3s, top .3s; }
.burger i:nth-child(1) { top: 12px; } .burger i:nth-child(2) { top: 21px; }
.open .burger i:nth-child(1) { top: 16px; transform: rotate(45deg); } .open .burger i:nth-child(2) { top: 16px; transform: rotate(-45deg); }
.menu { display: none; }
.logo:focus-visible, .nav a:focus-visible, .hd-play:focus-visible, .burger:focus-visible { outline: 3px solid var(--accent-d); outline-offset: 3px; }
body:not(.home) { padding-top: 92px; }
@media (max-width: 860px) {
  .top .nav { display: none; }
  .hd-play { margin-left: auto; padding: 8px 14px; font-size: 14px; }
  .burger { display: block; }
  .menu { display: grid; position: fixed; inset: 0; z-index: -1; padding: 96px 20px 28px; background: var(--paper); pointer-events: none; clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path .55s cubic-bezier(.7,0,.2,1); }
  .open .menu { pointer-events: auto; clip-path: circle(150% at calc(100% - 44px) 40px); }
  .menu nav { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
  .menu a { font-weight: 900; font-size: clamp(34px, 10vw, 54px); line-height: 1.1; color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: -.02em; padding: 8px 0; border-bottom: 3px solid var(--ink); }
  .menu a.m-play { margin-top: 18px; border: 3px solid var(--ink); border-radius: 18px; background: var(--accent); color: #fff; text-align: center; box-shadow: 0 6px 0 var(--ink); }
  .open .bar { background: var(--paper); }
  html.menu-open { overflow: hidden; }
  .top .wm-sub { display: none; }
}
@media (max-width: 420px) { .top .wm-img { height: 24px; } .top .logo .mark { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .top, .top .bar, .menu, .top .nav .ind { transition: none; } }

/* подвал */
footer.foot { background: var(--night); color: #e9d9c0; font-size: 15px; padding: 84px 0 0; overflow: hidden; }
footer.foot .wrap { position: relative; }
.f-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-bottom: clamp(30px, 4vw, 52px); border-bottom: 2px solid rgba(255,243,221,.16); }
.f-slogan { margin: 0; font-weight: 900; font-size: clamp(42px, 7vw, 108px); line-height: .92; letter-spacing: -.035em; text-transform: uppercase; color: #fff3dd; }
.f-slogan em { font-style: normal; color: #ffc247; }
footer.foot .btn.f-play { font-size: clamp(22px, 2.4vw, 32px); padding: 18px 44px; border: 4px solid #1a1210; background: var(--accent); box-shadow: 0 7px 0 #1a1210, 0 0 0 4px #ffc247; border-radius: 18px; text-transform: uppercase; letter-spacing: .04em; }
footer.foot .btn.f-play:hover { transform: translateY(3px); box-shadow: 0 4px 0 #1a1210, 0 0 0 4px #ffc247; }
.f-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px clamp(24px, 5vw, 80px); padding: clamp(30px, 4vw, 52px) 0; }
.f-brand p { margin: 16px 0 0; max-width: 24em; color: #cdb99d; line-height: 1.5; }
footer.foot nav { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
footer.foot nav b { margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #ffc247; }
footer.foot nav a { position: relative; padding: 5px 0; color: #f3e3c8; font-weight: 600; font-size: 16px; text-decoration: none; transition: color .2s, transform .25s; }
footer.foot nav a::before { content: "→"; position: absolute; left: -22px; opacity: 0; color: var(--accent); transition: opacity .2s; }
footer.foot nav a:hover { color: #fff; transform: translateX(22px); } footer.foot nav a:hover::before { opacity: 1; }
.f-dev { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 36px; padding: 22px 0 28px; border-top: 2px solid rgba(255,243,221,.16); }
.f-legal { flex: 1 1 320px; color: #bfa98d; font-size: 14px; }
.f-legal p { margin: 0 0 3px; }
.f-by { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.f-by .ru-made { margin: 0; padding: 0; color: #fff3dd; }
.f-by .ru-made span b { font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #fff3dd; -webkit-text-stroke: 0; }
.f-by .ru-made small { color: #cdb99d; font-size: 13.5px; font-weight: 400; }
.f-by .ru-flag { border-color: rgba(255,243,221,.6); }
.f-sign { display: inline-flex; align-items: center; height: 40px; padding: 6px 14px; border-radius: 10px; background: #fff3dd; line-height: 0; }
.f-sign svg { height: 26px; } .f-sign .sign-fb { font: 800 14px/28px Rubik, sans-serif; color: var(--ink); }
.f-peek { position: absolute; right: clamp(8px, 12vw, 160px); bottom: 100%; width: 96px; height: 58px; overflow: hidden; pointer-events: none; }
.f-peek img { position: absolute; left: 0; top: 0; width: 96px; height: 96px; animation: fpeek 6s ease-in-out infinite; }
@keyframes fpeek { 0%, 45%, 100% { transform: translateY(62px); } 55%, 80% { transform: translateY(8px) rotate(-3deg); } 68% { transform: translateY(4px) rotate(4deg); } }
@media (max-width: 860px) { .f-cols { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } .f-by { justify-content: flex-start; } }
@media (max-width: 520px) { .f-cols { grid-template-columns: 1fr; } footer.foot .btn.f-play { width: 100%; } .f-peek { display: none; } }
@media (prefers-reduced-motion: reduce) { .f-peek img { animation: none; transform: translateY(20px); } footer.foot nav a { transition: none; } }

/* логотип: подпись ровно по ширине надписи (выровнена по обоим краям) */
.wm-wrap { align-items: stretch; gap: 5px; }
.wm-sub { width: 0; min-width: 100%; margin: 0; text-align: justify; text-align-last: justify; letter-spacing: .05em; font-size: 11px; line-height: 1.1; }
.top .wm-img { height: 34px; }
@media (max-width: 520px) { .wm-sub { letter-spacing: .03em; } }

/* полоса прогресса лежит на нижней кромке панели и не заходит на кнопки */
.top .bar { padding: 8px 10px 9px 12px; }
.top.sm .bar { padding-block: 5px 6px; }
.prog { left: 22px; right: 22px; bottom: -3px; height: 3px; border-radius: 0 0 3px 3px; background: none; }

@media (max-width: 900px) {
  .menu a { font-size: clamp(24px, 7.2vw, 44px); overflow-wrap: anywhere; }
  .menu nav { padding-right: 4px; }
}

.wm-img, .top .wm-img { height: 38px; }
.wm-sub { letter-spacing: .02em; }
@media (max-width: 520px) { .wm-img, .top .wm-img { height: 36px; } .wm-sub { letter-spacing: 0; } }

/* шапка лаконичнее: только текстовый логотип, кнопка поменьше */
.top .logo .mark { display: none; }
.top .bar { padding: 8px 10px 9px 18px; gap: 12px; border-radius: 18px; }
.top.sm .bar { padding-block: 6px 7px; }
.hd-play { padding: 7px 15px; font-size: 14px; border-width: 2px; border-radius: 11px; box-shadow: 0 3px 0 var(--ink); }
.hd-play svg { width: 14px; height: 14px; }
.top .nav a { padding: 7px 13px; font-size: 14px; }
.top .nav .ind, .top .nav a { border-radius: 10px; }
.top .wm-img, .wm-img { height: 44px; }   /* «КОТОМЁТ» короче прежней надписи — чуть крупнее, чтобы подпись под ней читалась */
@media (max-width: 520px) { .top .wm-img, .wm-img { height: 36px; } }
@media (max-width: 860px) { .hd-play { margin-left: auto; padding: 6px 12px; font-size: 13px; } }

/* ---------- постеры стаи (3D, в духе ключевых артов) ---------- */
.poster, .pk-hero { position: relative; overflow: hidden; isolation: isolate; }
.poster { height: clamp(560px, 60vw, 900px); background: #6cc9ef; border-block: 4px solid #1a1210; }
.poster-sky { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #4fb9ea 0, #8fd8f3 52%, #cdeefa 66%); overflow: hidden; }
.poster-sky .sun { position: absolute; left: 50%; top: 42%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.22) 0 6deg, transparent 6deg 16deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 60%); mask: radial-gradient(circle, #000 0, transparent 60%); animation: pstspin 90s linear infinite; }
.ck { position: absolute; height: 0; width: clamp(120px, 16vw, 260px); aspect-ratio: 2 / 1; background: #fff; border-radius: 999px; box-shadow: 40px 12px 0 -6px #fff, -34px 16px 0 -10px #fff; opacity: .95; animation: drift 60s linear infinite; }
.ck1 { top: 16%; left: -8%; } .ck2 { top: 34%; left: 40%; animation-duration: 90s; transform: scale(.7); } .ck3 { top: 10%; left: 70%; animation-duration: 75s; transform: scale(1.1); }
@keyframes drift { to { translate: 40vw 0; } }
.hill { position: absolute; left: -10%; right: -10%; border-radius: 50% 50% 0 0; }
.hill.h1 { bottom: 14%; height: 28%; background: #8fcf5a; border-top: 4px solid #1a1210; }
.hill.h2 { bottom: 0; height: 30%; background: #6fb83f; border-top: 4px solid #1a1210; border-radius: 40% 60% 0 0; left: -30%; right: -30%; }
.grass { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, #7fc84a, #5ea335); border-top: 4px solid #1a1210; }
.poster-sky.action { background: linear-gradient(180deg, #3aa6e6 0, #78cdf2 55%, #c6ecfa 100%); }
.poster-sky .streaks { position: absolute; inset: 0; background: repeating-conic-gradient(from 8deg at 50% 62%, rgba(255,255,255,.28) 0 2deg, transparent 2deg 11deg); -webkit-mask: radial-gradient(ellipse at 50% 62%, transparent 24%, #000 70%); mask: radial-gradient(ellipse at 50% 62%, transparent 24%, #000 70%); }
.poster-stage { position: absolute; inset: 0; z-index: 1; cursor: pointer; touch-action: pan-y; }
.poster-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.poster-fallback { display: none; position: absolute; left: 0; right: 0; bottom: 6%; z-index: 1; justify-content: center; gap: 2vw; }
.poster-fallback img { width: clamp(70px, 14vw, 180px); height: auto; } .no3d .poster-fallback { display: flex; }
.poster-copy { position: absolute; z-index: 2; top: clamp(78px, 7.5vw, 104px); left: 0; right: 0; text-align: center; pointer-events: none; }
.poster-copy .kicker { justify-content: center; text-shadow: 0 2px 0 #1a1210; color: #fff; } .poster-copy .kicker::before { display: none; }
.stroke { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .88; color: #fff; -webkit-text-stroke: .11em #2b1d14; paint-order: stroke fill; text-shadow: 0 .07em 0 #2b1d14, 0 .14em 0 rgba(43,29,20,.35); transform: rotate(-2deg); margin: 0; }
.poster h2.stroke { font-size: clamp(48px, 7.6vw, 120px); } .stroke em { font-style: normal; color: #ffc247; }
.poster-cta { position: absolute; z-index: 3; right: clamp(16px, 4vw, 64px); bottom: clamp(16px, 3vw, 40px); padding: 14px 26px; border: 4px solid #1a1210; border-radius: 16px; background: var(--accent); color: #fff; font-weight: 900; font-size: clamp(16px, 1.6vw, 22px); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; box-shadow: 0 6px 0 #1a1210; transition: transform .12s, box-shadow .12s; }
.poster-cta:hover { transform: translateY(2px); box-shadow: 0 4px 0 #1a1210; } .poster-cta span { display: inline-block; transition: transform .25s; } .poster-cta:hover span { transform: translateX(4px); }
@media (max-width: 900px) { .poster { height: clamp(520px, 120vw, 760px); } .poster-copy { top: 22px; } .poster h2.stroke { font-size: clamp(44px, 14vw, 90px); } .poster-cta { left: 16px; right: 16px; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .poster-sky .sun, .ck { animation: none; } }
@keyframes pstspin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ================= подвал (10.10.2026): спокойный, в стиле сайта ================= */
footer.foot.neat { position: relative; padding: 0; margin-top: 64px; background: var(--night); color: #f1dfc4; overflow: visible; border-top: 5px solid #1a1210; }
.fn-kits { position: absolute; left: 0; right: 0; top: -78px; display: flex; justify-content: center; gap: clamp(0px, 2vw, 30px); pointer-events: none; overflow: hidden; height: 78px; }
.fn-kits img { width: 128px; height: 128px; transform: translateY(8px); filter: drop-shadow(0 -2px 0 rgba(26,18,16,.15)); animation: fnPeek 7s ease-in-out infinite; animation-delay: calc(var(--i) * .6s); }
@keyframes fnPeek { 0%, 70%, 100% { transform: translateY(8px); } 80%, 90% { transform: translateY(-6px) rotate(-5deg); } }
.fn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; padding: clamp(44px, 5vw, 72px) 0 clamp(30px, 4vw, 44px); border-bottom: 2px solid rgba(255,243,221,.12); }
.fn-slogan { margin: 0; font-weight: 900; font-size: clamp(36px, 5.4vw, 84px); line-height: .94; letter-spacing: -.035em; text-transform: uppercase; color: #fff3dd; }
.fn-slogan em { font-style: normal; color: #ffc247; }
footer.neat .btn.f-play { font-size: clamp(20px, 2vw, 28px); padding: 15px 40px; border: 4px solid #1a1210; background: var(--accent); box-shadow: 0 7px 0 #000; }
footer.neat .btn.f-play:hover { transform: translateY(2px); box-shadow: 0 5px 0 #000, 0 0 0 4px #ffc247; }
.fn-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); padding: clamp(32px, 4vw, 52px) 0; }
.fn-brand p { margin: 16px 0 0; max-width: 26em; color: #cdb99d; line-height: 1.55; font-size: 15px; }
footer.neat .fn-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
footer.neat .fn-col b { margin-bottom: 10px; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #ffc247; }
footer.neat .fn-col a { padding: 5px 0; color: #f3e3c8; font-weight: 600; font-size: 15.5px; text-decoration: none; transition: color .2s, transform .2s; }
footer.neat .fn-col a:hover { color: #fff; transform: translateX(6px); }
footer.neat .fn-col a::before { display: none; }
.fn-base { display: flex; align-items: center; justify-content: space-between; gap: 18px 36px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 2px solid rgba(255,243,221,.12); }
.fn-legal { flex: 1 1 340px; color: #bfa98d; font-size: 13.5px; } .fn-legal p { margin: 0 0 3px; } .fn-legal p.fn-sm { font-size: 12.5px; color: #a99578; }
@media (max-width: 900px) { .fn-cols { grid-template-columns: 1fr 1fr 1fr; } .fn-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .fn-cols { grid-template-columns: 1fr 1fr; } footer.neat .btn.f-play { width: 100%; text-align: center; } .fn-kits img { width: 96px; height: 96px; } .fn-kits img:nth-child(n+5) { display: none; } }
/* колонка «Игры студии» в подвале (14.10.2026): значок, название, жанр — список из config.js (studio) */
.fn-cols.has-games { grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr); }
footer.neat .fn-games a.fg { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 6px 0; }
footer.neat .fn-games .fg img { width: 36px; height: 36px; flex: none; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,243,221,.2); }
.fn-games .fg span { display: block; min-width: 0; }
.fn-games .fg strong { display: block; font-weight: 800; font-size: 15.5px; line-height: 1.2; color: #f3e3c8; transition: color .2s; }
.fn-games .fg small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; line-height: 1.3; color: #a99578; }
footer.neat .fn-games a.fg:hover strong { color: #ffc247; }
@media (max-width: 1100px) {
  .fn-cols.has-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fn-cols.has-games .fn-brand { grid-column: 1 / -1; }
  footer.neat .fn-games { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 22px; }
  footer.neat .fn-games b { grid-column: 1 / -1; }
}
@media (max-width: 820px) { footer.neat .fn-games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fn-cols.has-games { grid-template-columns: 1fr 1fr; } footer.neat .fn-games { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fn-kits img { animation: none; } }

/* ================= справочные страницы (10.10.2026): как играть, миры, установка, вопросы — dev/make-pages.js ================= */
.guide { padding-bottom: 20px; }
.g-hero { padding: clamp(118px, 14vw, 150px) 0 clamp(36px, 5vw, 60px); background: radial-gradient(ellipse 70% 120% at 85% 0%, #ffd27a 0, rgba(255,210,122,0) 60%), #f6e8d2; border-bottom: 4px solid var(--ink); }
.g-hero .wrap { max-width: 1000px; }
.g-crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; font-size: 14px; font-weight: 700; color: var(--muted); }
.g-crumbs a { color: var(--muted); text-decoration: none; } .g-crumbs a:hover { color: var(--accent-d); }
.g-hero .kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-d); }
.g-hero .kicker::before { content: ""; width: 38px; height: 4px; background: currentColor; border-radius: 2px; }
.g-hero h1 { margin: 0 0 16px; font-size: clamp(40px, 6.4vw, 84px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }
.g-hero h1 em { font-style: normal; color: var(--accent); }
.g-lead { margin: 0; max-width: 36em; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: #4d3a2c; }
.g-body { max-width: 1000px; padding-top: clamp(36px, 5vw, 60px); }
.g-sec { margin: 0 0 clamp(40px, 5vw, 64px); }
.g-sec h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 16px; }
.g-sec p { font-size: 17px; line-height: 1.65; }
.g-more { font-weight: 700; }
.g-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 12px; }
.g-steps li { counter-increment: st; position: relative; padding: 14px 18px 14px 66px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); font-size: 16.5px; line-height: 1.5; }
.g-steps li::before { content: counter(st); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; border: 3px solid var(--ink); font-weight: 900; }
.g-kits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g-kit { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 14px 18px 14px 10px; background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); }
.g-kit img { width: 96px; height: 96px; }
.g-kit h3 { margin: 0; font-size: 22px; text-transform: uppercase; }
.g-kit .g-ab { margin: 2px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-d); }
.g-kit p { margin: 0; font-size: 15px; line-height: 1.5; }
.g-table { display: grid; gap: 0; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 4px 0 var(--ink); }
.g-table > div { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 13px 18px; border-top: 2px dashed rgba(43,29,20,.15); font-size: 16px; line-height: 1.5; }
.g-table > div:first-child { border-top: 0; }
.g-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.g-list li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.55; }
.g-list li::before { content: "★"; position: absolute; left: 0; top: 0; color: #ffb21a; font-size: 18px; text-shadow: 0 2px 0 var(--ink); }
.g-world { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.g-world:nth-of-type(even) .g-shot { order: 2; }
.g-shot { margin: 0; border: 4px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 10px 10px 0 var(--accent); }
.g-shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.g-num { margin: 0 0 6px !important; font-size: 13px !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-d); }
.g-boss { margin-top: 14px; padding: 10px 14px; background: #ffe1c4; border: 3px solid var(--ink); border-radius: 14px; font-size: 15.5px !important; }
.g-note { font-size: 15px !important; color: var(--muted); }
.g-os.mine { padding: 22px 22px 6px; border: 4px solid var(--accent); border-radius: 24px; background: #fff3dd; position: relative; }
.g-os.mine::before { content: "Ваше устройство"; position: absolute; top: -15px; left: 20px; padding: 2px 12px; background: var(--accent); color: #fff; border: 3px solid var(--ink); border-radius: 10px; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.g-install { padding: 22px; border: 4px solid var(--ink); border-radius: 24px; background: #ffc247; box-shadow: 0 6px 0 var(--ink); }
.g-installed { padding: 18px 22px; border: 3px solid var(--ink); border-radius: 20px; background: #dff4d8; }
.g-faq details { border-top: 3px solid var(--ink); padding: 14px 0; }
.g-faq details:last-child { border-bottom: 3px solid var(--ink); }
.g-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary h2 { margin: 0; font-size: clamp(19px, 2vw, 24px); }
.g-faq summary::after { content: "+"; font-size: 30px; font-weight: 900; color: var(--accent); transition: transform .25s; }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq details p { margin: 10px 0 4px; max-width: 46em; }
.g-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin: 10px 0 40px; padding: 26px 30px; background: var(--ink); color: #fff3dd; border-radius: 26px; box-shadow: 0 8px 0 var(--accent); }
.g-cta p { margin: 0; font-size: 18px; } .g-cta b { color: #ffc247; }
.btn.g-play { font-size: 20px; padding: 14px 30px; border: 4px solid #1a1210; background: var(--accent); box-shadow: 0 6px 0 #1a1210; }
@media (max-width: 760px) {
  .g-kits { grid-template-columns: 1fr; }
  .g-world { grid-template-columns: 1fr; } .g-world:nth-of-type(even) .g-shot { order: 0; }
  .g-table > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- меню шапки (11.10.2026): пункты — игровые кнопки со значками; плашка-подсветка жёлтая с чернильной обводкой ---- */
.top .nav { gap: 6px; }
.top .nav a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border: 2.5px solid transparent; border-radius: 14px; font-weight: 900; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); transition: transform .25s cubic-bezier(.3,1.6,.5,1), background .2s, border-color .2s, box-shadow .2s; }
.top .nav a:hover, .top .nav a.on { color: var(--ink); }
.top .nav a:hover { background: #fff; border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.top .nav .nv-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--c); border: 2.5px solid var(--ink); box-shadow: 0 2px 0 var(--ink); transition: transform .35s cubic-bezier(.3,1.9,.5,1); }
.top .nav a:hover .nv-ic { transform: rotate(-12deg) scale(1.14); }
.top .nav .ind { background: #ffc247; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); border-radius: 14px; }
.top.sm .nav .nv-ic { width: 26px; height: 26px; }
@media (prefers-reduced-motion: reduce) { .top .nav a, .top .nav .nv-ic { transition: none; } }

/* поле из config.js не заполнено владельцем: показываем подсказку, а не пустоту */
.todo { background: #fff0b8; border-radius: 4px; padding: 0 4px; color: #8a5a00; }

/* шапка везде одной ширины: на всех страницах сайта, в кабинете и бренд-буке */
.top .bar { width: min(1360px, 100% - 32px); }

/* установленное приложение: без ссылок «Установка» */
html.app a[href$="ustanovka/"] { display: none !important; }

/* потянуть вниз → обновить (установленное приложение, updater.js) */
html.app { overscroll-behavior-y: none; }
.ku-ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 6px); z-index: 2147482800; width: 44px; height: 44px; margin: 0; display: grid; place-items: center; border: 3px solid #2b1d14; border-radius: 14px; background: #fffdf8; color: #2b1d14; box-shadow: 0 3px 0 #2b1d14; opacity: 0; transform: translate(-50%, -54px); pointer-events: none; transition: transform .2s, opacity .2s; }
.ku-ptr.ready { background: #ff7a1a; color: #fff; }
.ku-ptr.spin svg { animation: kuSpin .8s linear infinite; }
@keyframes kuSpin { to { transform: rotate(360deg); } }
