/* DaoPixel RPG — главная, вариант «Графика» (версия 4). Шесть экранов во весь рост: ключевой арт, новости, герои, мир,
   игра, скачать. Основа и токены — site.css; описание — site/DESIGN.md.
   Края — ровные диагонали и срезанные углы; пиксель — только в пиксель-арте игры и микроподписях.
   Анимируются transform/opacity/filter и маски-шторки (clip-path) на отдельных слоях. */

@property --el-deep { syntax: "<color>"; inherits: true; initial-value: #cc3324; }
@property --el-soft { syntax: "<color>"; inherits: true; initial-value: #ffd9c4; }
@property --el { syntax: "<color>"; inherits: true; initial-value: #ff7048; }
@property --el-plate { syntax: "<color>"; inherits: true; initial-value: #8e2a20; }

.home { background: var(--milk); }
.scr { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; overflow: clip; --mx: 0; --my: 0; }
.scr-title { margin: 0; font: 900 clamp(60px, 6.6vw, 150px)/.84 var(--display); letter-spacing: .005em; text-transform: uppercase; }

/* прокрутка экранами на десктопе — нативная привязка, без перехвата колеса */
@media (min-width: 901px) and (min-height: 620px) and (hover: hover) {
  html:has(body.home) { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
  .scr { height: 100vh; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; }
  .home .ftr { scroll-snap-align: end; }
}

/* появление экрана: содержимое [data-in] мягко поднимается; без скрипта всё видно сразу */
html.anim .scr [data-in] { opacity: 0; translate: 0 44px; transition: opacity var(--t-slow) var(--ease-out), translate var(--t-scene) var(--ease-out); }
html.anim .scr.is-seen [data-in] { opacity: 1; translate: 0 0; }
html.anim .scr.is-seen [data-in]:nth-child(2) { transition-delay: .08s; }
html.anim .scr.is-seen [data-in]:nth-child(3) { transition-delay: .16s; }
html.anim .scr.is-seen [data-in]:nth-child(4) { transition-delay: .24s; }

/* ═════════ 1. ключевой арт ═════════ */
.ka { height: 100vh; height: 100svh; min-height: 540px; background: #cfe5f6; color: var(--ink); }
.ka-bg, .ka-light, .ka-cast, .ka-fog, .ka-fx { position: absolute; pointer-events: none; }
.ka-bg { inset: -2.5%; z-index: -5; --d: .22; translate: calc(var(--mx) * var(--d) * -28px) calc(var(--my) * var(--d) * -16px); }
.ka-bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 64% 46%; animation: kaBg 2.6s var(--ease-out) both; }
@keyframes kaBg { from { scale: 1.08; opacity: 0; } 30% { opacity: 1; } to { scale: 1; opacity: 1; } }
/* утренний свет слева: мягко «дышит» */
.ka-light { inset: 0; z-index: -4; background: radial-gradient(60% 70% at 6% 30%, rgba(255, 236, 190, .55), rgba(255, 236, 190, 0) 70%); mix-blend-mode: screen; animation: kaBreath 9s ease-in-out infinite alternate; }
@keyframes kaBreath { from { opacity: .6; } to { opacity: 1; } }
/* герои на разной глубине: дальние мельче и чуть в дымке, ближний — чёткий; за курсором сдвигаются по-разному */
.ka-cast { inset: 0; z-index: -3; }
.ka-h { position: absolute; bottom: var(--b); left: var(--x); height: var(--h); aspect-ratio: 900 / 1326; --d: 1;
  translate: calc(-50% + var(--mx) * var(--d) * -30px) calc(var(--my) * var(--d) * -12px); }
.ka-h img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 34px rgba(16, 48, 47, .28)); animation: kaHero 1.6s var(--ease-out) both; animation-delay: var(--in, .15s); }
@keyframes kaHero { from { opacity: 0; translate: 0 6%; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
.ka-h--c  { --x: 62%; --h: 98svh;  --b: -14svh; --d: 1;   --in: .15s; z-index: 3; }
.ka-h--l  { --x: 41%; --h: 80svh;  --b: -6svh;  --d: .7;  --in: .3s;  z-index: 2; }
.ka-h--r  { --x: 83%; --h: 82svh;  --b: -7svh;  --d: .7;  --in: .38s; z-index: 2; }
.ka-h--ll { --x: 26%; --h: 60svh;  --b: 12svh;  --d: .45; --in: .5s;  z-index: 1; }
.ka-h--rr { --x: 99%; --h: 64svh;  --b: 6svh;   --d: .45; --in: .58s; z-index: 1; }
.ka-h--rr { display: none; }
@media (min-aspect-ratio: 2/1) { .ka-h--rr { display: block; --x: 95%; } }
.ka-h--ll img, .ka-h--rr img { filter: drop-shadow(0 14px 24px rgba(16, 48, 47, .18)) saturate(.88) brightness(1.05) contrast(.94); }
/* облачная дымка снизу: ноги героев уходят в облака, логотип и кнопки читаются */
.ka-fog { inset: auto 0 0 0; height: 46%; z-index: -1;
  background: linear-gradient(0deg, rgba(246, 239, 220, .96) 0%, rgba(246, 239, 220, .78) 22%, rgba(246, 239, 220, .3) 56%, rgba(246, 239, 220, 0) 100%); }
.ka-fog::before { content: ""; position: absolute; left: 0; bottom: 0; width: 62%; height: 190%; background: radial-gradient(70% 62% at 0% 100%, rgba(246, 239, 220, .92), rgba(246, 239, 220, 0) 72%); }
.ka-fx { inset: 0; z-index: 0; width: 100%; height: 100%; }
/* логотип и кнопки: логотип на арте, бейджи — на молочной плашке с ровной диагональю и киноварной кромкой */
.ka-panel { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(26px, 5.5svh, 72px); display: grid; justify-items: start; gap: clamp(14px, 2.4svh, 28px); }
.ka-logo { width: clamp(340px, 33vw, 680px); filter: drop-shadow(0 8px 22px rgba(16, 48, 47, .22)); animation: kaLogo 1.3s var(--ease-out) .35s both; }
@keyframes kaLogo { from { opacity: 0; scale: .92; translate: 0 18px; } to { opacity: 1; scale: 1; translate: 0 0; } }
.ka-plate { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 14px clamp(18px, 2vw, 32px); padding: clamp(14px, 1.6svh, 20px) clamp(48px, 4vw, 72px) clamp(14px, 1.6svh, 20px) clamp(18px, 1.4vw, 26px);
  background: var(--milk); box-shadow: 0 18px 50px rgba(16, 48, 47, .16); clip-path: polygon(0 0, 100% 0, calc(100% - clamp(28px, 2.4vw, 44px)) 100%, 0 100%);
  animation: kaPlate 1.1s var(--ease-out) .6s both; }
.ka-plate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cinnabar); }
@keyframes kaPlate { from { opacity: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); } to { opacity: 1; clip-path: polygon(0 0, 100% 0, calc(100% - clamp(28px, 2.4vw, 44px)) 100%, 0 100%); } }
.ka-meta { display: flex; align-items: center; gap: 16px; }
.ka-qr { width: clamp(64px, 4.4vw, 84px); height: auto; padding: 4px; background: #fff; }
.ka-os { font: 800 clamp(20px, 1vw + 8px, 26px)/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.ka-meta .stamp { width: 46px; height: 46px; }
/* стрелка «дальше» и пауза */
.ka-next { position: absolute; z-index: 2; left: 50%; bottom: 18px; width: 46px; height: 46px; translate: -50% 0; display: grid; place-items: center; color: var(--ink); opacity: .7; transition: opacity var(--t-fast); }
.ka-next span { width: 14px; height: 14px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; animation: kaNext 2.2s var(--ease) infinite; }
@keyframes kaNext { 0%, 100% { translate: 0 -4px; } 50% { translate: 0 4px; } }
.ka-next:hover { opacity: 1; color: var(--cinnabar); }
.ka-motion { position: absolute; z-index: 3; right: clamp(16px, 3vw, 48px); top: calc(var(--hdr) + 18px); width: 40px; height: 40px; display: grid; place-items: center; background: rgba(16, 48, 47, .55); color: var(--milk);
  clip-path: var(--chamfer); --cut: 8px; transition: background-color var(--t-fast); }
.ka-motion:hover { background: var(--deep); }
.ka-motion span { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.ka-motion[aria-pressed="true"] span { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.ka.is-paused .ka-light, .ka.is-paused .ka-next span { animation-play-state: paused; }

/* средние экраны: герои ближе к краю, логотип поменьше */
@media (max-width: 1280px) and (min-width: 901px) {
  .ka-h--c { --x: 64%; } .ka-h--l { --x: 42%; } .ka-h--r { --x: 87%; } .ka-h--ll { display: none; } .ka-h--rr { display: none; }
}
@media (min-width: 901px) and (max-aspect-ratio: 4/3) {
  .ka-h--c { --x: 64%; --h: 86svh; --b: -10svh; } .ka-h--l { --x: 44%; --h: 70svh; } .ka-h--r { --x: 84%; --h: 70svh; } .ka-h--ll, .ka-h--rr { display: none; }
  .ka-logo { width: clamp(320px, 44vw, 520px); }
  .ka-panel { bottom: clamp(24px, 4svh, 48px); }
}
/* невысокие окна: плашка компактнее */
@media (min-width: 901px) and (max-height: 760px) { .ka-logo { width: clamp(300px, 28vw, 520px); } .ka-panel { gap: 12px; } .ka-qr { width: 60px; } }

/* телефон и узкий планшет: вертикальный арт, один герой крупно, логотип и кнопки внизу на облаках */
@media (max-width: 900px), (max-aspect-ratio: 5/6) {
  .ka { min-height: 560px; }
  .ka-bg img { object-position: 50% 40%; }
  .ka-h--l, .ka-h--r, .ka-h--ll, .ka-h--rr { display: none; }
  .ka-h--c { --x: 52%; --h: min(78svh, 150vw); --b: calc(100svh - var(--hdr) - min(78svh, 150vw) - 2svh); }
  .ka-fog { height: 56%; background: linear-gradient(0deg, rgba(246, 239, 220, 1) 0%, rgba(246, 239, 220, .94) 30%, rgba(246, 239, 220, .55) 62%, rgba(246, 239, 220, 0) 100%); }
  .ka-fog::before { display: none; }
  .ka-panel { left: 0; right: 0; bottom: 0; justify-items: center; gap: 14px; padding: 0 var(--gutter) max(18px, env(safe-area-inset-bottom)); }
  .ka-logo { width: min(80vw, 420px); }
  .ka-plate { width: 100%; justify-content: center; padding: 0; background: none; box-shadow: none; clip-path: none; animation: kaLogo 1.1s var(--ease-out) .55s both; }
  .ka-plate::before { display: none; }
  .ka-plate .get-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ka-plate .get-row[hidden] { display: none; }
  .ka-plate .badge-btn { min-width: 0; width: 100%; --bh: 58px; padding-inline: 16px; }
  .ka-plate .badge-btn b { font-size: clamp(20px, 5.6vw, 26px); }
  .ka-qr { display: none; }
  .ka-meta { gap: 12px; }
  .ka-meta .stamp { width: 38px; height: 38px; font-size: 10px; }
  .ka-os { font-size: 18px; }
  .ka-next { display: none; }
  .ka-motion { top: calc(var(--hdr) + 12px); }
}
@media (max-width: 900px) and (max-height: 700px) { .ka-logo { width: min(64vw, 300px); } .ka-panel { gap: 10px; } .ka-plate .badge-btn { --bh: 52px; } }

/* ═════════ 2. новости: большая карусель баннеров + плотный список ═════════ */
.nw { --nw-gap: clamp(56px, 6.4vw, 130px); display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 560px); align-items: center; gap: var(--nw-gap);
  padding: calc(var(--hdr) + clamp(20px, 4svh, 56px)) 0 clamp(28px, 5svh, 64px) var(--gutter); background: var(--milk); color: var(--ink); }
.nw-band { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: calc(clamp(340px, 30vw, 560px) + var(--nw-gap) * .7); background: var(--deep);
  clip-path: polygon(calc(var(--nw-gap) * .7) 0, 100% 0, 100% 100%, 0 100%); }
.nw-band::before { content: ""; position: absolute; inset: 0; background: var(--cinnabar); clip-path: polygon(calc(var(--nw-gap) * .7) 0, calc(var(--nw-gap) * .7 + 8px) 0, 8px 100%, 0 100%); }
.nw-car { position: relative; min-width: 0; width: min(100%, calc((100svh - var(--hdr) - 170px) * 16 / 9)); justify-self: end; }
.bns { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); clip-path: var(--chamfer); --cut: clamp(16px, 1.6vw, 28px); box-shadow: 0 30px 60px rgba(16, 48, 47, .2); }
.bn { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; z-index: 0; visibility: hidden; clip-path: polygon(0 0, 0 0, -20% 100%, -20% 100%); }
.bn img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.bn.is-active { z-index: 2; visibility: visible; clip-path: polygon(0 0, 120% 0, 100% 100%, -20% 100%); transition: clip-path var(--t-scene) var(--ease-io); }
.bn.is-leaving { z-index: 1; visibility: visible; clip-path: polygon(0 0, 120% 0, 100% 100%, -20% 100%); }
.bn.is-active img { animation: bnZoom 7s var(--ease-out) both; }
@keyframes bnZoom { from { scale: 1.07; } to { scale: 1; } }
.bn__cap { position: absolute; left: 0; bottom: clamp(18px, 3vw, 44px); display: grid; gap: 6px; max-width: 78%; padding: clamp(12px, 1.2vw, 18px) clamp(40px, 3.4vw, 64px) clamp(12px, 1.2vw, 18px) clamp(18px, 2vw, 34px);
  background: var(--milk); color: var(--ink); clip-path: polygon(0 0, 100% 0, calc(100% - clamp(22px, 2vw, 36px)) 100%, 0 100%);
  opacity: 0; translate: -24px 0; transition: opacity var(--t-base) var(--ease-out), translate var(--t-slow) var(--ease-out); }
.bn.is-active .bn__cap { opacity: 1; translate: 0 0; transition-delay: .45s; }
.bn__cap i { font: 400 10px/1.3 var(--pix); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--cinnabar); }
.bn__cap b { font: 900 clamp(26px, 2.5vw, 56px)/.92 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.bn:hover .bn__cap b { color: var(--cinnabar-2); }
.bns__nav { display: flex; align-items: center; gap: 18px; margin-top: clamp(14px, 2svh, 22px); }
.bns__dots { display: flex; gap: 8px; margin-right: auto; }
.bns__dot { position: relative; width: clamp(40px, 4vw, 72px); height: 22px; }
.bns__dot::before, .bns__dot::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: rgba(16, 48, 47, .18); }
.bns__dot::after { background: var(--cinnabar); scale: 0 1; transform-origin: left; }
.bns__dot.is-active::after { scale: 1 1; transition: scale var(--t-base) var(--ease-out); }
.bns.is-auto + .bns__nav .bns__dot.is-active::after, .bns__nav.is-auto .bns__dot.is-active::after { animation: bnFill var(--bn-time, 6s) linear both; }
@keyframes bnFill { from { scale: 0 1; } to { scale: 1 1; } }
.bns__dot:hover::before { background: rgba(16, 48, 47, .4); }
.nw-side { position: relative; min-width: 0; padding: 0 var(--gutter) 0 clamp(20px, 2.4vw, 48px); color: var(--milk); }
.nw-side .scr-title { color: var(--milk); margin-bottom: clamp(18px, 3svh, 36px); }
.nls { list-style: none; display: grid; margin: 0 0 clamp(18px, 3svh, 32px); counter-reset: nl; }
.nl { position: relative; display: grid; gap: 8px; padding: clamp(14px, 2svh, 22px) 0; border-top: 1px solid rgba(246, 239, 220, .16); color: var(--milk); text-decoration: none; transition: color var(--t-fast); }
.nls li:last-child .nl { border-bottom: 1px solid rgba(246, 239, 220, .16); }
.nl time { font: 400 10px/1.3 var(--pix); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.nl b { font: 800 clamp(22px, 1.6vw, 34px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; transition: translate var(--t-base) var(--ease-out); }
.nl::after { content: ""; position: absolute; right: 0; top: 50%; width: 20px; height: 10px; background: currentColor; opacity: 0; translate: -10px -50%; clip-path: polygon(0 4px, 14px 4px, 14px 0, 20px 5px, 14px 10px, 14px 6px, 0 6px); transition: opacity var(--t-fast), translate var(--t-base) var(--ease-out); }
.nl:hover { color: var(--gold); }
.nl:hover b { translate: 6px 0; }
.nl:hover::after { opacity: 1; translate: 0 -50%; }
.nw-side .link-arrow { color: var(--milk); }
@media (max-width: 900px) {
  .nw { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; padding: calc(var(--hdr) + 28px) 0 0; }
  .nw-band { display: none; }
  .nw-car { width: auto; justify-self: stretch; margin: 0 var(--gutter); order: 2; }
  .nw-side { display: contents; }
  .nw-side .scr-title { order: 1; color: var(--ink); margin: 0 var(--gutter) 20px; font-size: clamp(56px, 16vw, 96px); }
  .nls, .nw-side .link-arrow { order: 3; }
  .nls { margin: 28px 0 0; padding: 34px var(--gutter) 10px; background: var(--deep); clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%); }
  .nw-side .link-arrow { order: 4; justify-self: start; margin: 0; padding: 6px var(--gutter) 34px; width: 100%; background: var(--deep); border: 0; }
  .bn__cap { max-width: 92%; bottom: 14px; }
  .bns__nav .arrow-btn { width: 44px; height: 44px; }
}

/* ═════════ 3. герои ═════════ */
.sc { display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "head art" "info art" "rail art"; column-gap: clamp(16px, 2vw, 40px); padding: calc(var(--hdr) + clamp(18px, 3.4svh, 44px)) 0 clamp(22px, 4svh, 48px) var(--gutter);
  background: var(--milk); color: #fff; transition: --el-deep var(--t-slow) var(--ease), --el-soft var(--t-slow) var(--ease), --el var(--t-slow) var(--ease), --el-plate var(--t-slow) var(--ease); }
.sc-plate { position: absolute; z-index: -2; left: 0; top: 0; bottom: 0; width: 54%; background: linear-gradient(165deg, color-mix(in srgb, var(--el-plate) 88%, #fff) 0%, var(--el-plate) 46%, color-mix(in srgb, var(--el-plate) 80%, #000) 100%);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.sc-plate::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .9); clip-path: polygon(calc(100% - 10px) 0, 100% 0, 82% 100%, calc(82% - 10px) 100%); opacity: .9; }
.sc-light { position: absolute; z-index: -3; inset: 0 0 0 36%; background: radial-gradient(78% 86% at 60% 46%, var(--el-soft) 0%, color-mix(in srgb, var(--el-soft) 70%, var(--milk)) 38%, color-mix(in srgb, var(--el-soft) 25%, var(--milk)) 70%, var(--milk) 100%); }
.sc-light::before { content: ""; position: absolute; left: 62%; top: 44%; width: min(62svh, 46vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--el-deep) 22%, transparent) 0 6deg, transparent 6deg 15deg);
  -webkit-mask: radial-gradient(closest-side, transparent 64%, #000 65%, #000 70%, transparent 71%, transparent 82%, #000 83%, #000 84%, transparent 85%);
  mask: radial-gradient(closest-side, transparent 64%, #000 65%, #000 70%, transparent 71%, transparent 82%, #000 83%, #000 84%, transparent 85%);
  animation: scRing 80s linear infinite; }
@keyframes scRing { to { rotate: 1turn; } }
.sc-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(20px, 2.4vw, 44px); padding-right: 12%; }
.sc-head .scr-title { font-size: clamp(56px, 5.4vw, 120px); }
.sc-els { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-el { position: relative; isolation: isolate; display: grid; place-items: center; width: 42px; height: 42px; color: rgba(255, 255, 255, .92); transition: color var(--t-fast), translate var(--t-base) var(--spring); }
.sc-el::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .14); clip-path: var(--chamfer); --cut: 8px; transition: background-color var(--t-fast); }
.sc-el .el-ico { width: 22px; height: 22px; transition: scale var(--t-base) var(--spring); }
.sc-el:hover { translate: 0 -2px; }
.sc-el:hover::before { background: rgba(255, 255, 255, .28); }
.sc-el:hover .el-ico { scale: 1.12; }
.sc-el.is-active { color: var(--el-plate); }
.sc-el.is-active::before { background: #fff; }
.sc-el__tip { position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 4px; padding: 5px 9px; background: #fff; color: var(--ink); font: 700 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--t-fast), translate var(--t-fast) var(--ease); }
.sc-el:hover .sc-el__tip, .sc-el:focus-visible .sc-el__tip { opacity: 1; translate: -50% 0; }
.sc-slides, .sc-slide { display: contents; }
/* текст героя: все слайды лежат в одной клетке сетки, виден один */
.sc-info { grid-area: info; position: relative; z-index: 1; align-self: center; min-width: 0; padding: clamp(10px, 2svh, 28px) 14% clamp(10px, 2svh, 28px) 0; visibility: hidden; }
.sc-slide.is-active .sc-info { visibility: visible; }
.sc-info > * { opacity: 0; translate: 0 22px; transition: opacity var(--t-base) var(--ease-out), translate var(--t-slow) var(--ease-out); }
.sc-slide.is-active .sc-info > * { opacity: 1; translate: 0 0; }
.sc-slide.is-active .sc-info > :nth-child(2) { transition-delay: .05s; }
.sc-slide.is-active .sc-info > :nth-child(3) { transition-delay: .1s; }
.sc-slide.is-active .sc-info > :nth-child(4) { transition-delay: .16s; }
.sc-slide.is-active .sc-info > :nth-child(5) { transition-delay: .22s; }
.sc-slide.is-active .sc-info > :nth-child(6) { transition-delay: .28s; }
.sc-slide.is-active .sc-info > :nth-child(7) { transition-delay: .34s; }
.sc-glyph { position: absolute; z-index: -1; left: -4%; top: 34%; width: clamp(300px, 30vw, 620px); height: auto; margin-top: calc(clamp(300px, 30vw, 620px) / -2); color: #fff; }
.sc-slide .sc-info > .sc-glyph { opacity: 0; translate: 0 0; scale: .86; rotate: -12deg; transition: opacity var(--t-slow) var(--ease-out), scale var(--t-scene) var(--ease-out), rotate var(--t-scene) var(--ease-out); }
.sc-slide.is-active .sc-info > .sc-glyph { opacity: .1; scale: 1; rotate: 0deg; }
.sc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; font: 400 10px/1.4 var(--pix); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.sc-meta .el-ico { width: 18px; height: 18px; color: #fff; }
.sc-meta i { width: 4px; height: 4px; background: rgba(255, 255, 255, .6); }
.sc-meta b { font-weight: 400; }
.sc-name { margin: 0; font: 900 clamp(60px, 6vw, 140px)/.86 var(--display); text-transform: uppercase; letter-spacing: .005em; overflow-wrap: anywhere; }
.sc-title { position: relative; margin: clamp(10px, 1.4svh, 18px) 0 0; padding-left: 34px; font: 700 clamp(17px, 1.15vw, 24px)/1.15 var(--display); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .92); }
.sc-title::before { content: ""; position: absolute; left: 0; top: .5em; width: 22px; height: 3px; background: var(--gold); }
.sc-quote { margin: clamp(16px, 2.6svh, 30px) 0 0; padding-left: 18px; border-left: 3px solid var(--gold); font: 500 clamp(16px, 1vw, 20px)/1.45 var(--sans); color: #fff; max-width: 32em; }
.sc-text { margin: clamp(12px, 2svh, 20px) 0 0; font-size: clamp(15px, .9vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 34em; }
.sc-foot { display: flex; align-items: center; gap: 18px; margin-top: clamp(10px, 2svh, 22px); }
.sc-foot .sprite-stand { margin: -30px 0 -26px -26px; }
.sc-foot .link-arrow { color: #fff; }
/* арт: новый открывается диагональной шторкой и мягко «садится», старый уходит */
.sc-art { grid-area: art; position: relative; margin: 0; min-height: 0; display: grid; align-items: end; justify-items: center; margin-top: calc(-1 * clamp(18px, 3.4svh, 44px)); margin-bottom: calc(-1 * clamp(22px, 4svh, 48px));
  visibility: hidden; clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); }
.sc-art img { width: auto; height: min(calc(100svh - var(--hdr) - 10px), 140vh); max-height: 100%; max-width: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 26px 40px rgba(16, 48, 47, .25)); scale: 1.05; translate: 30px 0; transition: scale var(--t-scene) var(--ease-out), translate var(--t-scene) var(--ease-out), opacity var(--t-base); }
.sc-slide.is-active .sc-art { visibility: visible; clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); transition: clip-path var(--t-scene) var(--ease-io); }
.sc-slide.is-active .sc-art img { scale: 1; translate: 0 0; }
.sc-slide.is-leaving .sc-art { visibility: visible; clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); z-index: -1; }
.sc-slide.is-leaving .sc-art img { opacity: 0; translate: -30px 0; scale: .98; }
.sc-rail { grid-area: rail; position: relative; z-index: 1; display: grid; gap: 14px; padding-right: 16%; min-width: 0; }
.sc-thumbs { list-style: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 2px 4px; margin: -8px -2px 0; }
.sc-thumbs::-webkit-scrollbar { display: none; }
.sc-thumb { position: relative; display: block; flex: none; width: clamp(48px, 3.4vw, 64px); aspect-ratio: 1; overflow: hidden; background: rgba(255, 255, 255, .16); clip-path: var(--chamfer); --cut: 8px;
  transition: translate var(--t-base) var(--spring), background-color var(--t-fast); }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; filter: saturate(.75); transition: filter var(--t-fast), scale var(--t-base) var(--ease-out); }
.sc-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--fc); opacity: .9; }
.sc-thumb:hover { translate: 0 -3px; }
.sc-thumb:hover img { filter: none; scale: 1.06; }
.sc-thumb.is-active { translate: 0 -5px; background: #fff; }
.sc-thumb.is-active img { filter: none; }
.sc-thumb.is-active::after { height: 4px; background: #fff; }
.sc-arrows { display: flex; align-items: center; gap: 10px; }
.sc-arrows .arrow-btn { background: rgba(255, 255, 255, .16); }
.sc-arrows .arrow-btn:hover { background: #fff; color: var(--el-plate); }
.sc-count { min-width: 64px; text-align: center; font: 400 10px/1 var(--pix); color: rgba(255, 255, 255, .8); }
.sc-count b { font-weight: 400; color: #fff; }
.sc-all { justify-self: start; color: #fff; }
.sc-rail { grid-template-columns: auto 1fr; grid-template-areas: "thumbs thumbs" "arrows all"; align-items: center; }
.sc-thumbs { grid-area: thumbs; } .sc-arrows { grid-area: arrows; } .sc-all { grid-area: all; justify-self: end; margin-right: 4%; }
@media (max-width: 1280px) and (min-width: 901px) { .sc-info, .sc-head, .sc-rail { padding-right: 10%; } .sc-name { font-size: clamp(54px, 5.6vw, 90px); } .sc-text { display: none; } }
@media (min-width: 901px) and (max-height: 760px) { .sc-text { display: none; } .sc-quote { margin-top: 12px; } .sc-foot .sprite-stand { display: none; } }
@media (max-width: 900px) {
  .sc { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "head" "art" "info" "rail"; padding: calc(var(--hdr) + 22px) 0 0; color: #fff; }
  .sc-plate { display: none; }
  .sc-light { inset: 0; }
  .sc-light::before { left: 50%; top: 32%; width: 92vw; }
  .sc-head { padding: 0 var(--gutter); color: var(--ink); gap: 12px; }
  .sc-head .scr-title { font-size: clamp(56px, 16vw, 96px); }
  .sc-els { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 30px 0 2px; margin-top: -26px; }
  .sc-el { color: var(--el-deep); }
  .sc-el::before { background: rgba(16, 48, 47, .08); }
  .sc-el.is-active { color: #fff; }
  .sc-el.is-active::before { background: var(--el-deep); }
  .sc-el__tip { display: none; }
  .sc-art { margin: 6px 0 0; height: min(54svh, 112vw); }
  .sc-art img { height: 100%; }
  .sc-info { padding: 46px var(--gutter) 18px; background: var(--el-plate); clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%); margin-top: -40px; }
  .sc-glyph { left: auto; right: -12%; width: 70vw; margin-top: -35vw; }
  .sc-name { font-size: clamp(44px, 13vw, 84px); }
  .sc-rail { grid-template-columns: auto 1fr; padding: 4px var(--gutter) 28px; background: var(--el-plate); }
  .sc-thumb { width: 56px; }
  .sc-all { margin-right: 0; }
}

/* ═════════ 4. мир ═════════ */
.world { height: 100vh; height: 100svh; background: #7ec3ee; }
.world__scenes { position: absolute; inset: 0; z-index: -1; }
.world__scene { position: absolute; inset: 0; margin: 0; overflow: hidden; visibility: hidden; clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); }
.world__scene.is-active { visibility: visible; clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); z-index: 1; transition: clip-path var(--t-scene) var(--ease-io); }
.world__scene.is-leaving { visibility: visible; clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); z-index: 0; }
/* Места — живописные иллюстрации (не пиксель-арт): обычное сглаживание, кадр по экрану (cover), медленный наезд камеры */
.world__scene picture, .world__scene img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.world__scene img { object-fit: cover; object-position: 50% 45%; image-rendering: auto; transform-origin: 58% 40%; animation: drift 40s ease-in-out infinite alternate; will-change: transform; }
.world__scene:not(.is-active):not(.is-leaving) img { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09) translate3d(-1.2%, -.8%, 0); } }
@media (orientation: portrait) { .world__scene img { object-position: 50% 20%; transform-origin: 50% 0; } }
.world__ui { position: absolute; left: 0; bottom: 0; z-index: 2; width: clamp(380px, 38vw, 820px); display: grid; gap: clamp(10px, 1.8svh, 20px); justify-items: start;
  padding: clamp(40px, 7svh, 90px) clamp(110px, 10vw, 220px) clamp(22px, 4svh, 44px) var(--gutter); color: var(--milk); background: var(--deep);
  clip-path: polygon(0 0, calc(100% - clamp(110px, 10vw, 220px)) 0, 100% 100%, 0 100%); }
.world__ui::after { content: ""; position: absolute; inset: 0; background: var(--cinnabar); clip-path: polygon(calc(100% - clamp(110px, 10vw, 220px)) 0, calc(100% - clamp(110px, 10vw, 220px) + 8px) 0, 100% 100%, calc(100% - 8px) 100%); }
html.anim .world .world__ui { transition: translate var(--t-scene) var(--ease-out), opacity var(--t-slow) var(--ease-out); }
html.anim .world:not(.is-seen) .world__ui { translate: -60px 0; opacity: 0; }
.world__ui .scr-title { font-size: clamp(44px, 4.4vw, 110px); }
.world__caps { display: grid; }
.world__cap { grid-area: 1 / 1; display: grid; gap: 8px; justify-items: start; opacity: 0; visibility: hidden; translate: -20px 0; transition: opacity var(--t-base), translate var(--t-slow) var(--ease-out), visibility 0s var(--t-base); }
.world__cap.is-active { opacity: 1; visibility: visible; translate: 0 0; transition: opacity var(--t-base) .15s, translate var(--t-slow) var(--ease-out) .15s; }
.world__cap h3 { margin: 0; font: 900 clamp(36px, 3.4vw, 90px)/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--gold); }
.world__cap p { margin: 0; font-size: clamp(15px, 1vw, 19px); line-height: 1.45; max-width: 26em; color: rgba(246, 239, 220, .9); }
.world__ui .link-arrow { color: var(--milk); }
.world__thumbs { display: flex; gap: 8px; }
.world__thumb { position: relative; width: clamp(56px, 4.6vw, 92px); aspect-ratio: 1 / 1; overflow: hidden; clip-path: var(--chamfer); --cut: 8px; filter: saturate(.55) brightness(.85);
  transition: filter var(--t-base), translate var(--t-base) var(--spring); }
.world__thumb img { width: 100%; height: 100%; object-fit: cover; }
.world__thumb span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.world__thumb:hover { filter: none; translate: 0 -4px; }
.world__thumb.is-active { filter: none; translate: 0 -6px; box-shadow: inset 0 0 0 3px var(--milk); }
.world__thumb.is-active img { outline: 3px solid var(--milk); outline-offset: -3px; }
@media (max-width: 900px) {
  .world__ui { right: 0; width: auto; padding: 46px var(--gutter) max(22px, env(safe-area-inset-bottom)); clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%); }
  .world__ui::after { clip-path: polygon(0 26px, 100% 0, 100% 6px, 0 32px); }
}

/* ═════════ 5. игра: активный телефон по центру, соседние сбоку в перспективе ═════════ */
.pl { display: grid; grid-template-rows: auto minmax(0, 1fr); padding: calc(var(--hdr) + clamp(18px, 3svh, 40px)) 0 clamp(20px, 4svh, 44px); background: var(--milk); color: var(--ink); }
.pl-band { position: absolute; z-index: -1; left: -5%; right: -5%; top: 50%; height: 26%; background: var(--deep); rotate: -4deg; }
.pl-band::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 6px; background: var(--cinnabar); }
.pl-title { padding: 0 var(--gutter); }
.pl-stage { position: relative; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.phones { list-style: none; position: relative; margin: 0; padding: 0; perspective: 1600px; min-height: 0; }
.phone-card { position: absolute; left: 50%; top: 50%; height: min(92%, 800px); aspect-ratio: 400 / 889; --off: 0; --abs: 0;
  translate: calc(-50% + var(--off) * 72%) -50%; rotate: y calc(var(--off) * -28deg); scale: calc(1 - min(var(--abs), 2) * .14);
  z-index: calc(10 - var(--abs)); opacity: calc(1 - min(var(--abs), 3) * .22); cursor: pointer;
  transition: translate var(--t-scene) var(--ease-out), rotate var(--t-scene) var(--ease-out), scale var(--t-scene) var(--ease-out), opacity var(--t-slow) var(--ease-out); }
.phone-card.is-far { opacity: 0; pointer-events: none; }
.phone { position: relative; display: block; height: 100%; padding: 3.4% 3.6%; background: linear-gradient(160deg, #1b4542, #0a2225); border-radius: 30px; box-shadow: 0 30px 60px rgba(16, 48, 47, .3), inset 0 0 0 2px rgba(246, 239, 220, .14); }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.phone video { position: absolute; inset: 3.4% 3.6%; width: auto; height: auto; opacity: 0; transition: opacity var(--t-slow); }
.phone video.is-on { opacity: 1; }
.phone-card b { position: absolute; left: 50%; top: calc(100% + 14px); translate: -50% 8px; padding: 6px 16px 7px; background: var(--deep); color: var(--milk); font: 800 22px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  clip-path: var(--chamfer); --cut: 8px; opacity: 0; transition: opacity var(--t-base), translate var(--t-slow) var(--ease-out); }
.phone-card.is-active b { opacity: 1; translate: -50% 0; transition-delay: .2s; }
.phone-card:not(.is-active):hover { filter: brightness(1.04); }
.pl-nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: clamp(44px, 6.4svh, 70px); }
.pl-dots { display: flex; gap: 8px; }
.pl-dot { width: 26px; height: 22px; position: relative; }
.pl-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: rgba(16, 48, 47, .2); transition: background-color var(--t-fast); }
.pl-dot.is-active::before { background: var(--cinnabar); }
/* без скрипта: телефоны в ряд, прокрутка вбок */
html:not(.js) .phones { display: flex; gap: 20px; overflow-x: auto; padding: 0 var(--gutter); align-items: center; }
html:not(.js) .phone-card { position: relative; left: auto; top: auto; translate: none; rotate: none; scale: none; opacity: 1; flex: none; height: min(70svh, 640px); }
html:not(.js) .phone-card b { opacity: 1; translate: -50% 0; }
@media (max-width: 900px) {
  .pl { padding-bottom: 28px; }
  .pl-title { font-size: clamp(56px, 16vw, 96px); }
  .phones { min-height: min(64svh, 600px); }
  .phone-card { height: 86%; translate: calc(-50% + var(--off) * 78%) -52%; rotate: y calc(var(--off) * -24deg); }
  .phone-card b { font-size: 18px; }
  .pl-band { top: 42%; height: 30%; }
}

/* ═════════ 6. скачать ═════════ */
.get { display: grid; place-items: center; padding: calc(var(--hdr) + 24px) var(--gutter) 40px; color: var(--ink); background: #cfe5f6; }
.get-bg { position: absolute; inset: 0; z-index: -1; }
.get-bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 30% 50%; }
.get-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 52%, rgba(246, 239, 220, .55), rgba(246, 239, 220, 0) 80%); }
.get-card { position: relative; display: grid; justify-items: center; gap: clamp(18px, 3svh, 30px); width: min(100%, 860px); padding: clamp(36px, 6svh, 72px) clamp(24px, 5vw, 80px) clamp(28px, 4svh, 48px);
  background: var(--milk); clip-path: var(--chamfer); --cut: clamp(18px, 2vw, 32px); box-shadow: 0 30px 80px rgba(16, 48, 47, .25); text-align: center; }
.get-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--cinnabar) 0 70%, var(--gold-2) 70% 78%, transparent 78%); }
.get-logo { width: min(100%, 560px); }
.get-card .get-row { justify-content: center; }
.get-card .badge-btn { --bh: clamp(60px, 3.4vw + 8px, 76px); }
.get-note { max-width: 40em; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 900px) {
  .get { min-height: auto; padding: calc(var(--hdr) + 40px) 16px 48px; }
  .get-card .get-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .get-card .get-row[hidden] { display: none; }
  .get-card .badge-btn { min-width: 0; width: 100%; --bh: 58px; padding-inline: 14px; }
  .get-card .badge-btn b { font-size: clamp(20px, 5.6vw, 26px); }
  .get-card .ka-qr { display: none; }
}

/* ═════════ боковая навигация: номера экранов, подпись — по наведению ═════════ */
.sidenav { position: fixed; z-index: 60; right: clamp(10px, 1.4vw, 28px); top: 50%; translate: 0 -50%; display: grid; gap: 4px; }
.sidenav a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 30px; color: var(--ink); text-decoration: none; }
.sidenav i { position: relative; display: block; width: 18px; height: 3px; background: currentColor; opacity: .45; font-style: normal; transition: width var(--t-base) var(--ease-out), opacity var(--t-fast), background-color var(--t-fast); }
.sidenav span { padding: 5px 10px 6px; background: var(--deep); color: var(--milk); font: 800 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; translate: 10px 0; pointer-events: none; transition: opacity var(--t-fast), translate var(--t-base) var(--ease-out); clip-path: var(--chamfer); --cut: 6px; }
.sidenav a:hover span, .sidenav a:focus-visible span { opacity: 1; translate: 0 0; }
.sidenav a:hover i { opacity: 1; width: 28px; }
.sidenav a.is-active i { width: 36px; opacity: 1; background: var(--cinnabar); }
.sidenav.on-dark a { color: var(--milk); }
@media (max-width: 900px), (hover: none) { .sidenav { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .ka-fx, .ka-motion { display: none !important; }
  .ka-h, .ka-bg { translate: none !important; }
  .sc-light::before, .world__scene img { animation: none !important; }
}
