/* DOSTA · визуал на системе Патриции. Страница монохромная, листы 1080 × 1350 в ряд. */
@font-face { font-family: 'Suisse Intl'; src: url(../sistema/fonts/SuisseIntl-Regular.otf); font-weight: 400; }
@font-face { font-family: 'Suisse Intl'; src: url(../sistema/fonts/SuisseIntl-SemiBold.otf); font-weight: 600; }
:root { --page: #E5E5E5; --ink: #000; --g1: #999; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--page); color: var(--ink); font: 400 13px/1.3 'Suisse Intl', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; text-transform: uppercase; }

.top { position: fixed; left: 0; right: 0; top: 0; height: 52px; display: flex; align-items: center; gap: 28px; padding: 0 24px; z-index: 5; }
.top .logo { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.top .logo svg { height: 14px; width: auto; display: block; }
.top .logo span { color: var(--g1); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { font: inherit; text-transform: uppercase; background: none; border: 1px solid transparent; color: var(--ink); padding: 6px 10px; cursor: pointer; border-radius: 0; }
.tabs button:hover { border-color: #BDBDBD; }
.tabs button.on { background: var(--ink); color: #fff; }
.keys { margin-left: auto; display: flex; gap: 14px; color: var(--g1); white-space: nowrap; }
.keys b { font-weight: 400; color: var(--ink); cursor: pointer; }

.stage { position: fixed; left: 0; right: 0; top: 52px; bottom: 40px; overflow: hidden; }
.track { position: absolute; left: 0; top: 50%; display: flex; gap: var(--gap, 28px); transform-origin: 0 0; transition: transform .45s cubic-bezier(.16, 1, .3, 1); margin-top: calc(-675px * var(--s)); }
.track.snap { transition: none; }
body.over .track { top: 12px; margin-top: 0; row-gap: 14px; }
.bot { position: fixed; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--g1); }
.bot b { font-weight: 400; color: var(--ink); }
.bot .a { cursor: pointer; color: var(--ink); padding: 4px 10px; user-select: none; }

/* ───── лист ───── */
.shw { position: relative; flex: none; width: calc(1080px * var(--s)); height: calc(1350px * var(--s)); cursor: pointer; }
.shw:not(.on) { opacity: .55; }
body.over .shw:not(.on) { opacity: 1; }
.sheet { position: absolute; left: 0; top: 0; width: 1080px; height: 1350px; overflow: hidden; transform-origin: 0 0; transform: scale(var(--s)); text-transform: none; }
.sheet > * { position: absolute; left: 0; top: 0; }
.sheet canvas.win { display: block; }
.sheet svg.frame, .sheet svg.lines, .sheet svg.over { width: 1080px; height: 1350px; pointer-events: none; }
.sheet svg.lines { display: none; }
body.showlines .sheet svg.lines { display: block; }
.sheet .over { pointer-events: none; }
.sheet .hand { cursor: grab; }

/* текст рамки появляется рывком, строка за строкой */
.sheet.play svg.frame text { animation: tx-in .26s steps(2, end) both; animation-delay: calc(var(--i, 0) * 34ms + 80ms); }
@keyframes tx-in { from { opacity: 0; } to { opacity: 1; } }
.pager .cur { transition: transform .42s cubic-bezier(.16, 1, .3, 1); }

/* снимок одного листа */
body.raw { background: #fff; }
body.raw .top, body.raw .bot { display: none; }
body.raw .stage { top: 0; bottom: 0; }
body.raw .track { top: 0; margin-top: 0; transform: none !important; transition: none; }
body.raw .shw:not(.on) { display: none; }
body.raw .shw { opacity: 1; }

/* кольцо кадров в 3D: без обрезки, карточки серые (запечены) */
.sheet .rg { transform-style: flat; pointer-events: none; }
.sheet .rg-r { position: absolute; transform-style: preserve-3d; }
.sheet .rg-c { position: absolute; background-size: cover; background-position: center; backface-visibility: visible; }
.sheet .cn { font-family: 'PingFang SC', 'Hiragino Sans GB', sans-serif; }

/* чат в зоне окна: шрифт системы, капс; поле ввода — стекло с крошкой по кромке */
.sheet .ch-s { font: 400 16px/19.2px 'Suisse Intl'; text-transform: uppercase; color: rgba(255,255,255,.72); white-space: nowrap; }
.sheet .ch-i { font: 400 26px/28.8px 'Suisse Intl'; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; }
.sheet .ch-k { width: 3px; height: 30px; background: #fff; }
.sheet .ch-u { font: 400 26px/28.8px 'Suisse Intl'; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.62); padding: 16px 24px; border-radius: 30px; }
.sheet .ch-a { font: 400 26px/28.8px 'Suisse Intl'; text-transform: uppercase; color: #fff; text-align: center; }
.sheet .ch-a i { font-style: normal; }
