/* ИИ: первоначальная адаптивная архитектура и компоненты. Запись №1 в README. */
/* ИИ: локальное подключение Golos Text. Запись №3 в README. */
@font-face{font-family:"Golos Text";src:url("./assets/GolosText.ttf") format("truetype");font-style:normal;font-weight:400 900;font-display:swap}
:root{--ink:#0d0f10;--cream:#fff9ed;--orange:#ff774e;--blue:#bce3ff;--pink:#ffb5dc;--rose:#fdd0db;--stroke:clamp(2px,.22cqw,5px);font-family:"Golos Text",system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;min-width:320px}button,a{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:4px solid #217bc5;outline-offset:5px}button:disabled{opacity:.6;cursor:not-allowed}
.app{min-height:100svh}.stage{position:relative;isolation:isolate;min-height:100svh;overflow:hidden;display:flex;flex-direction:column;background:linear-gradient(145deg,#dce9eb 0%,#f8d8bc 60%,#fff9ed 100%)}
.stage:before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(160deg,rgba(188,227,255,.53),transparent 60%);pointer-events:none}
.stage[data-scene="prologue"]{background:linear-gradient(150deg,#9fb4bb,#d5cbd0 58%,#f7d9b4)}
.stage[data-scene="choice"],.stage[data-scene="dialogue"]{background:linear-gradient(155deg,#d5e1db,#f5e1cc)}
/* Source artwork intentionally absent until exact Figma assets are downloaded. */
.scene-art{position:absolute;inset:0;z-index:-1;pointer-events:none}.scene-art img{width:100%;height:100%;object-fit:cover}.character-art{position:absolute;left:-4%;bottom:-8%;height:min(86svh,950px);width:auto;max-width:55%;object-fit:contain}
.topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:clamp(8px,2cqw,32px);padding:clamp(14px,2.2cqw,36px) clamp(16px,6cqw,110px);z-index:4}
.logo{font-weight:900;font-size:clamp(25px,3cqw,42px);letter-spacing:-.09em;text-decoration:none;color:var(--ink)}.chapter{justify-self:center}.header-actions{justify-self:end;display:flex;gap:clamp(6px,1cqw,16px);align-items:center}
.pill,.action,.choice{border:var(--stroke) solid var(--ink);color:var(--ink);box-shadow:5px 7px 0 var(--ink);font-weight:700;border-radius:999px;background:var(--cream);text-transform:lowercase;transition:transform .18s cubic-bezier(.2,1.8,.5,1),box-shadow .18s ease,background .18s}
.pill{font-size:clamp(12px,1.25cqw,20px);padding:clamp(9px,1cqw,16px) clamp(12px,1.7cqw,27px);white-space:nowrap}.pill.help{background:var(--pink)}.pill.materials{background:var(--blue)}.pill.chapter{background:var(--cream)}.menu-button{background:var(--cream);width:clamp(42px,4.5cqw,68px);aspect-ratio:1;padding:8px;display:grid;align-content:center;gap:5px}.menu-button span{display:block;width:55%;margin:auto;height:3px;background:var(--ink);border-radius:5px}
.pill:hover,.action:hover,.choice:hover{transform:translateY(-3px);box-shadow:5px 10px 0 var(--ink)}.pill:active,.action:active,.choice:active{transform:translate(4px,5px);box-shadow:1px 2px 0 var(--ink)}
.main{width:min(100% - clamp(24px,6cqw,120px),1440px);margin:auto;display:flex;justify-content:flex-end;align-items:center;padding:clamp(38px,6vh,96px) 0;min-height:0;flex:1}
.panel{position:relative;width:min(100%,680px);padding:clamp(24px,4cqw,64px);background:var(--cream);border:var(--stroke) solid var(--ink);border-radius:clamp(22px,3cqw,48px);box-shadow:12px 16px 0 var(--ink);animation:panel-in .58s cubic-bezier(.2,1.2,.3,1) both}
.panel.stitched:after{content:"";position:absolute;inset:10px;border:2px dashed #707070;border-radius:inherit;pointer-events:none}.tag{position:relative;display:inline-block;background:var(--orange);border:var(--stroke) solid var(--ink);box-shadow:4px 5px 0 var(--ink);border-radius:100px;font-weight:750;padding:12px 22px;transform:rotate(-2deg);margin-bottom:clamp(20px,4cqw,50px)}
.poem{max-width:360px;margin:0 0 28px auto;color:#3d3e3d;font-weight:600;font-size:clamp(15px,1.65cqw,24px);line-height:1.35}.notice{padding:clamp(15px,2cqw,28px);background:var(--rose);border:2px dashed var(--ink);border-radius:20px;font-size:clamp(15px,1.55cqw,21px);line-height:1.4}.actions{display:flex;gap:clamp(12px,1.5cqw,24px);flex-wrap:wrap;margin-top:30px}.action{font-size:clamp(16px,1.75cqw,23px);padding:clamp(12px,1.8cqw,25px) clamp(18px,2.5cqw,40px);background:var(--orange)}.action.secondary{background:var(--blue)}
.dialogue-layout{width:min(100%,650px);margin-left:auto}.bubble{position:relative;padding:clamp(30px,4cqw,66px);font-size:clamp(20px,2cqw,34px);line-height:1.35;font-weight:450}.bubble .speaker{position:absolute;top:-24px;left:28px;background:var(--blue);border:var(--stroke) solid var(--ink);border-radius:999px;padding:9px 22px;box-shadow:4px 5px 0 var(--ink);font-size:clamp(16px,1.6cqw,23px);font-weight:800}.bubble p{margin:0}.choices{display:grid;gap:clamp(12px,1.5cqw,22px);margin-top:24px}.prompt{background:var(--pink);padding:9px 20px;border-radius:40px;border:var(--stroke) solid var(--ink);font-weight:800;width:max-content;max-width:100%;font-size:clamp(15px,1.5cqw,22px);margin-top:30px}.choice{padding:clamp(15px,2cqw,28px) clamp(20px,2.5cqw,36px);background:var(--cream);width:100%;text-align:left;line-height:1.3;font-size:clamp(16px,1.65cqw,24px)}@media(min-width:1440px) and (hover:hover) and (pointer:fine){.choice:hover{background:var(--blue)}}.hint{margin-top:25px;font-size:clamp(14px,1cqw,17px);color:#3d3e3d}.footer-note{padding:12px 22px;font-size:12px;background:rgba(255,249,237,.8);text-align:center}
.modal-backdrop{position:fixed;inset:0;background:rgba(13,15,16,.6);z-index:20;display:grid;place-items:center;padding:20px}.modal{width:min(100%,620px);max-height:85svh;overflow:auto;background:var(--cream);padding:clamp(22px,4cqw,42px);border:var(--stroke) solid var(--ink);border-radius:28px;box-shadow:8px 10px 0 var(--ink)}.modal h2{margin:0 0 15px}.modal p{line-height:1.5}.modal-close{float:right}.modal a{color:#145a94}
@keyframes panel-in{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:1084px){.topbar{grid-template-columns:auto 1fr auto}.chapter{justify-self:start}.header-actions .help,.header-actions .materials{display:none}.main{align-items:flex-end}.panel{max-width:620px}}
@media(max-width:1023px){.topbar{padding:15px 16px}.pill.chapter{font-size:12px;padding:9px 12px}.main{width:calc(100% - 32px);padding:40px 0 34px;justify-content:center;align-items:flex-end}.panel{width:100%;box-shadow:7px 9px 0 var(--ink);padding:24px 20px;border-radius:24px}.panel.stitched:after{inset:7px}.tag{font-size:14px;padding:9px 15px}.poem{font-size:16px;margin:0 0 22px auto}.actions{gap:12px}.action{flex:1 1 170px;text-align:center;padding:12px 18px}.character-art{max-width:88%;height:58svh;left:-13%;bottom:32%}.dialogue-layout{margin:0}.bubble{padding:37px 20px 24px}.choice{padding:15px 20px}.stage[data-scene="prologue"] .main{padding-top:22svh}}
@media(max-width:380px){.logo{font-size:25px}.menu-button{width:42px}.chapter{max-width:130px;overflow:hidden;text-overflow:ellipsis}.notice{font-size:14px;padding:13px}.action{font-size:15px}.stage[data-scene="prologue"] .main{padding-top:14svh}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* ИИ: пролог по Figma. Запись №2 в README. */
.logo img{width:clamp(70px,7.68cqw,197px);display:block}
.stage[data-scene=prologue]{background:#555}.stage[data-scene=prologue]:before{display:none}
.stage[data-scene=prologue] .main{width:100%;padding:6.8cqw 4.18cqw 4.68cqw 45%;align-items:flex-end}
.stage[data-scene=prologue] .panel{width:100%;max-width:none;padding:18.5cqw 3.125cqw 2.5cqw;border-radius:2.19cqw}
.stage[data-scene=prologue] .tag{position:absolute;left:2.6cqw;top:-2cqw;margin:0;font-size:1.56cqw;padding:.4cqw 1.4cqw;z-index:2}
/* ИИ: порядок слоёв логотипа над пунктиром. Запись №3 в README. */
.panel.stitched:after{z-index:0}
.prologue-doodle{position:absolute;z-index:1;left:-5.4cqw;top:-9.1cqw;width:54.2cqw;height:auto;transform:rotate(-12.48deg);pointer-events:none}
.stage[data-scene=prologue] .poem{width:19.06cqw;font-size:1.25cqw;line-height:1;margin:0 0 1.1cqw auto;text-transform:lowercase}
.stage[data-scene=prologue] .notice{font-size:1.406cqw;line-height:1.11;padding:1.1cqw 1.4cqw;border-radius:1.25cqw}
.stage[data-scene=prologue] .actions{margin-top:1.1cqw;gap:1.1cqw;flex-wrap:nowrap}
.stage[data-scene=prologue] .action{font-size:1.72cqw;padding:1.02cqw 2.5cqw;white-space:nowrap}
.stage[data-scene=prologue] .footer-note{display:none}
@media(max-width:1023px){.stage[data-scene=prologue] .main{padding:56cqw 16px 30px}.stage[data-scene=prologue] .panel{padding:43cqw 20px 24px;border-radius:24px}.prologue-doodle{width:94%;left:3%;top:-8cqw}.stage[data-scene=prologue] .tag{left:20px;top:-18px;font-size:12px;padding:8px 14px}.stage[data-scene=prologue] .poem{width:60%;font-size:12px;margin-bottom:20px}.stage[data-scene=prologue] .notice{font-size:14px;line-height:1.3;padding:13px;border-radius:16px}.stage[data-scene=prologue] .actions{flex-wrap:wrap;gap:12px;margin-top:16px}.stage[data-scene=prologue] .action{font-size:16px;padding:12px 18px}.stage[data-scene=prologue] .scene-art img{object-position:28% center}}
/* ИИ: 02-01 — композиции из трёх адаптивов Figma. Запись №4. */
.story-screen{min-height:max(100svh,56.25cqw)}.story-screen:before{display:none}.story-screen .footer-note{display:none}.story-character{position:absolute;width:54.765%;height:auto;left:-7.07%;top:8.59cqw;pointer-events:none}.story-screen .main{width:100%;padding:0;display:block;position:relative;margin:0;min-height:50cqw}.story-dialogue{position:relative;width:46.875%;margin:16.95cqw 6.25% 8cqw auto;display:grid;gap:2.1875cqw}.story-dialogue .bubble{width:100%;text-align:left;padding:3.4375cqw 2.8125cqw 3.125cqw;font-size:1.875cqw;line-height:1.333;letter-spacing:-.04em;font-weight:400;border-radius:2.1875cqw;box-shadow:.625cqw .78125cqw var(--ink)}.story-dialogue .speaker{font-size:1.5625cqw;top:-2cqw;left:1.95cqw;padding:.39cqw 1.4cqw;line-height:1.2}.bubble-tail{position:absolute;left:-2.34375cqw;top:50%;width:2.5cqw;height:auto}.bubble-arrow{position:absolute;right:2.58cqw;bottom:1.64cqw;width:1.72cqw;height:auto}.story-hint{background:var(--rose);border:2px dashed var(--ink);padding:.78cqw 1.4cqw;border-radius:1.25cqw;text-align:left;font-size:1.40625cqw;line-height:1.2}.story-screen .topbar{padding:.8cqw 6.25cqw}
@media(min-width:1024px) and (max-width:1439px){.story-screen{min-height:max(100svh,62.5cqw)}.story-character{top:14.84cqw}.story-dialogue{margin-top:20cqw}.story-screen .topbar{padding:12px 2.5cqw}.story-screen .header-actions .help,.story-screen .header-actions .materials{display:block}}
@media(max-width:1023px){.story-screen{min-height:max(100svh,216.41cqw)}.story-screen .topbar{padding:12px 16px;grid-template-columns:auto 1fr;gap:8px;height:80px}.story-screen .logo img{width:clamp(68px,23.35cqw,91px)}.story-screen .chapter{display:none}.story-screen .header-actions{gap:8px}.story-screen .header-actions .help{display:block;font-size:clamp(12px,4.615cqw,18px);padding:6px 10px}.story-screen .menu-button{width:44px;height:38px}.story-character{width:224.68%;max-width:none;left:-62.34%;top:24.36cqw}.story-screen .main{min-height:calc(max(100svh,216.41cqw) - 80px);display:flex;align-items:flex-end}.story-dialogue{width:calc(100% - 48px);margin:0 24px 28px;gap:28px}.story-dialogue .bubble{font-size:22px;line-height:28px;padding:28px 20px;border:4px solid var(--ink);border-radius:24px;box-shadow:6px 8px var(--ink)}.story-dialogue .speaker{font-size:18px;line-height:24px;left:12px;top:-25px;padding:4px 14px;border-width:2px;box-shadow:4px 4px var(--ink)}.bubble-tail{content:url('./assets/tail-mobile.svg');width:36px;left:96px;top:-22px}.bubble-arrow{width:16px;right:16px;bottom:13px}.story-hint{padding:10px 18px;border-radius:16px;font-size:16px;line-height:22px}}
/* ИИ: экран 02-02, оригинальные телефонные сообщения и Кроли. Запись №6. */
.stage[data-scene=chat]{min-height:max(100svh,56.25cqw)}.stage[data-scene=chat]:before,.stage[data-scene=chat] .footer-note{display:none}.stage[data-scene=chat] .main{position:relative;width:100%;margin:0;padding:0;display:block;min-height:50cqw}.chat-phone{position:relative;margin:0 0 4cqw 23.55%;width:30.47%;background:var(--cream);border:clamp(3px,.3125cqw,8px) solid var(--ink);border-radius:3.44cqw;overflow:hidden;box-shadow:.625cqw .78cqw var(--ink)}.chat-phone h2{font-size:1.72cqw;line-height:1.18;margin:0;background:var(--blue);padding:1.6cqw 1.6cqw 1.25cqw}.chat-messages{padding:1.4cqw 1.56cqw;display:flex;flex-direction:column;gap:.78cqw}.chat-messages p{width:82%;margin:0;border:.15625cqw solid var(--ink);border-radius:1.4cqw;padding:.78cqw 1.25cqw;font-size:1.5625cqw;line-height:1.2}.chat-messages .outgoing{align-self:flex-end;background:var(--blue)}.chat-messages small{align-self:flex-end;font-size:.9375cqw;color:#3d3e3d}.chat-photo{width:82%;aspect-ratio:572/389;overflow:hidden;position:relative;border:.15625cqw solid var(--ink);border-radius:.94cqw}.chat-photo img{position:absolute;width:333.33%;height:275.48%;max-width:none;left:-135%;top:-27.55%}.chat-kroli{position:absolute;z-index:2;width:44.57%;height:auto;left:-12%;top:3.5cqw;transform:rotate(20.62deg);pointer-events:none}.chat-aura{position:absolute;width:59.77%;left:-11.8%;top:8cqw;pointer-events:none}.chat-reply{position:absolute;left:69.53%;top:30.6cqw;width:24.22%;padding:3.44cqw 2.81cqw 3.125cqw;font-size:1.875cqw;line-height:1.333;text-align:left;font-weight:400;border-radius:2.19cqw}.chat-reply .speaker{font-size:1.5625cqw;top:-2cqw;left:1.95cqw;padding:.39cqw 1.4cqw}
@media(max-width:1023px){.stage[data-scene=chat]{min-height:100svh}.stage[data-scene=chat] .main{padding:16px 16px 32px;display:flex;flex-direction:column;gap:38px}.chat-phone{margin:0 0 0 auto;width:min(100%,358px);border:4px solid var(--ink);border-radius:32px;box-shadow:6px 8px var(--ink);z-index:1}.chat-phone h2{font-size:20px;padding:20px}.chat-messages{padding:18px;gap:10px}.chat-messages p{font-size:18px;padding:10px 14px;border-width:2px;border-radius:18px}.chat-photo{border-width:2px;border-radius:12px}.chat-messages small{font-size:12px}.chat-kroli{width:75%;left:-35%;top:200px;z-index:2}.chat-aura{width:120%;left:-60%;top:150px}.chat-reply{position:relative;left:auto;top:auto;align-self:flex-end;width:82%;padding:28px 20px;font-size:22px;line-height:28px;border-radius:24px;z-index:3}.chat-reply .speaker{font-size:18px;top:-25px;left:12px;padding:4px 14px}}
/* ИИ: первый выбор по макету 1318:2579. */
.stage[data-scene=choice]{min-height:max(100svh,56.25cqw)}.stage[data-scene=choice]:before,.stage[data-scene=choice] .footer-note{display:none}.stage[data-scene=choice] .main{width:100%;margin:0;padding:6cqw 6.25% 4cqw 46.875%;align-items:flex-start}.stage[data-scene=choice] .dialogue-layout{width:100%;max-width:none}.stage[data-scene=choice] .bubble{font-size:1.875cqw;line-height:1.333;padding:3.4375cqw 2.8125cqw 3.125cqw;border-radius:2.1875cqw;box-shadow:.625cqw .78cqw var(--ink)}.stage[data-scene=choice] .speaker{font-size:1.5625cqw;top:-2cqw;left:1.95cqw;padding:.39cqw 1.4cqw}.stage[data-scene=choice] .prompt{font-size:1.5625cqw;margin:2.1875cqw 0;padding:.66cqw 1.56cqw}.stage[data-scene=choice] .choices{gap:1.1cqw;margin-top:0}.stage[data-scene=choice] .choice{font-size:1.5625cqw;line-height:1.2;font-weight:400;text-transform:none;padding:1.56cqw 2.81cqw;box-shadow:0 .625cqw var(--ink)}
@media(max-width:1023px){.stage[data-scene=choice]{min-height:100svh}.stage[data-scene=choice] .main{padding:95cqw 24px 28px}.stage[data-scene=choice] .story-character{width:120%;left:-10%;top:80px}.stage[data-scene=choice] .bubble{font-size:22px;line-height:28px;padding:28px 20px;border-radius:24px}.stage[data-scene=choice] .speaker{font-size:18px;top:-25px;left:12px;padding:4px 14px}.stage[data-scene=choice] .prompt{font-size:18px;margin:28px 0;padding:9px 18px}.stage[data-scene=choice] .choices{gap:14px}.stage[data-scene=choice] .choice{font-size:18px;padding:20px;box-shadow:0 6px var(--ink)}}
/* ИИ: общие сцены и чтение по сохранённым контекстам Figma. Запись №7. */
.story-screen:not([data-screen=dialogue]) .main{display:flex;align-items:center;justify-content:flex-end;padding:8cqw 6.25% 5cqw 46.875%}.story-screen .dialogue-layout{width:100%;max-width:none}.story-screen .bubble{font-size:clamp(22px,1.875cqw,48px);line-height:1.333}.story-other{position:absolute;right:-12%;bottom:-10%;width:46%;pointer-events:none}.player-reply{position:absolute;right:8%;top:7cqw;width:35%;padding:2cqw;font-size:clamp(18px,1.7cqw,36px);background:var(--rose)}.stage[data-scene=info]:before,.stage[data-scene=ending]:before,.stage[data-scene=silent]:before,.stage[data-scene=momchat]:before,.stage[data-scene=resources]:before,.stage[data-scene=supportpage]:before{display:none}.info-panel{width:min(100%,1000px);margin:auto}.info-panel h1{font-size:clamp(28px,3cqw,64px);margin:0 0 28px}.info-content{display:flex;gap:28px;align-items:center}.info-image{width:46%;border-radius:20px}.info-content h2{font-size:clamp(20px,1.8cqw,40px)}.info-content ul{padding-left:24px;line-height:1.5;font-size:clamp(16px,1.25cqw,26px)}.stage[data-scene=silent]{min-height:100svh}.silent-next{margin:auto 0 0 auto}.stage[data-scene=ending] .panel{font-size:clamp(20px,1.7cqw,36px)}.stage[data-scene=resources] .main,.stage[data-scene=supportpage] .main{display:block;max-width:1440px}.resource-page>h1{color:var(--cream);font-size:clamp(32px,4cqw,80px)}.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}.resource-grid .panel{width:100%;padding:32px}.resource-grid h2{font-size:28px}.resource-grid p{font-size:20px;line-height:1.4}.mom-message{width:60%;display:grid;gap:32px}.mom-message .chat-phone{margin:0 0 0 auto;width:65%;min-height:300px}.mom-message .bubble{font-size:24px}.scene-art picture{display:block;width:100%;height:100%}
@media(max-width:1023px){.story-screen:not([data-screen=dialogue]) .main{padding:75cqw 24px 28px}.story-screen:not([data-screen=dialogue]) .story-character{width:150%;left:-25%;top:80px}.story-other{width:85%;right:-30%;top:100px;bottom:auto}.player-reply{position:relative;top:auto;right:auto;width:100%;padding:20px;margin-bottom:32px}.info-content{flex-direction:column;align-items:stretch}.info-image{width:100%}.info-panel{padding:32px 24px}.resource-grid{grid-template-columns:1fr}.resource-grid .panel{padding:28px 22px}.mom-message{width:100%}.mom-message .chat-phone{width:100%}.stage[data-scene=momchat] .main{padding-top:75cqw}}
/* ИИ: материалы и меню из макетов, запись №8. */
.modal{width:min(100%,1080px)}.modal>h2{font-size:clamp(28px,3cqw,60px);text-transform:lowercase}.modal-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.modal-cards article{border:3px solid var(--ink);border-radius:24px;padding:24px;box-shadow:4px 6px var(--ink);background:var(--cream)}.modal-cards h3{font-size:24px;margin:12px 0}.modal-cards p{font-size:18px}.modal-cards article>span{display:inline-block;background:var(--pink);padding:6px 14px;border:2px solid var(--ink);border-radius:999px}.menu-links{display:grid;gap:20px;padding:20px 0}.menu-links button{text-align:left}.modal-close{position:sticky;top:0;z-index:3}.stage .bubble{background:var(--cream)}
@media(max-width:1023px){.modal-cards{grid-template-columns:1fr}.modal{padding:24px 20px}.modal-cards article{padding:20px}.header-actions .help{display:block;font-size:12px;padding:8px}.topbar .chapter{display:none}.topbar{grid-template-columns:auto 1fr}.header-actions{gap:8px}}
/* ИИ: мобильные 02-02a → 02-02b → 02-02c, запись №8. */
.chat-mobile-next{display:none}
@media(max-width:1023px){.stage[data-scene=chat]{min-height:100svh}.stage[data-scene=chat] .main{min-height:calc(100svh - 80px);padding-bottom:100px}.chat-mobile-next{display:block;position:absolute;bottom:28px;right:24px;z-index:5}.stage[data-chat-step="0"] .chat-phone,.stage[data-chat-step="0"] .chat-reply{display:none}.stage[data-chat-step="0"] .chat-kroli{width:130%;left:-48%;top:10vh}.stage[data-chat-step="1"] .chat-reply{display:none}.stage[data-chat-step="1"] .chat-phone{width:100%;max-width:358px;margin:0 auto}.stage[data-chat-step="1"] .chat-kroli{z-index:0;opacity:.5}.stage[data-chat-step="2"] .chat-phone,.stage[data-chat-step="2"] .chat-kroli,.stage[data-chat-step="2"] .chat-aura{display:none}.stage[data-chat-step="2"] .main{justify-content:flex-end}.stage[data-chat-step="2"] .chat-reply{width:100%;margin-bottom:30px}.stage[data-chat-step="2"] .chat-mobile-next{display:none}}
/* ИИ: 04B — два бабла в потоке, геометрия Desktop/Tablet/Mobile Figma. Запись №9. */
.stage[data-screen=closeness] .main{padding:12.8cqw 23.4375% 8cqw 39.0625%;align-items:flex-start;z-index:1}
.stage[data-screen=closeness] .dialogue-layout{display:grid;gap:2.1875cqw}
.stage[data-screen=closeness] .bubble{width:100%;padding:3.4375cqw 2.8125cqw 3.125cqw;font-size:1.875cqw;line-height:1.333;border-radius:2.1875cqw;box-shadow:.625cqw .78125cqw var(--ink)}
.stage[data-screen=closeness] .player-reply{position:relative;right:auto;top:auto;margin:0;background:var(--cream)}
.stage[data-screen=closeness] .player-reply .speaker{left:auto;right:1.953125cqw;background:var(--pink)}
.stage[data-screen=closeness] .speaker{top:-1.992cqw;left:1.953125cqw;font-size:1.5625cqw;padding:.39cqw 1.40625cqw}
.stage[data-screen=closeness] .story-character{width:53.08%;left:-7.77%;top:9.375cqw}
.stage[data-screen=closeness] .story-other{width:45.96%;right:-14.02%;top:16.40625cqw;bottom:auto;z-index:-1}
@media(min-width:1024px) and (max-width:1439px){.stage[data-screen=closeness] .main{padding-top:16.4cqw}.stage[data-screen=closeness] .story-character{top:15.625cqw}.stage[data-screen=closeness] .story-other{top:22.65625cqw}}
@media(max-width:1023px){.stage[data-screen=closeness] .main{padding:110cqw 24px 28px}.stage[data-screen=closeness] .dialogue-layout{gap:36px}.stage[data-screen=closeness] .bubble{font-size:22px;line-height:28px;padding:28px 20px;border-radius:24px;box-shadow:6px 8px var(--ink)}.stage[data-screen=closeness] .speaker{font-size:18px;top:-25px;left:12px;padding:4px 14px}.stage[data-screen=closeness] .player-reply .speaker{right:12px}.stage[data-screen=closeness] .story-character{width:125%;left:-45%;top:90px}.stage[data-screen=closeness] .story-other{width:90%;right:-35%;top:160px}}
.stage[data-scene=momchat] .mom-message>.actions{display:none}
.stage[data-scene=dialogue] .bubble{cursor:pointer}
/* ИИ: индивидуальные constraints 12A-04, Figma 1318:2698 / 1396:1385 / 1398:1254. Запись №11. */
.stage[data-screen=adults]{min-height:max(100svh,56.25cqw)}
.stage[data-screen=adults] .main{position:absolute;inset:0;width:100%;min-height:0;padding:17.34375cqw 25.78125% 4cqw 39.0625%;display:block;z-index:1}
.stage[data-screen=adults] .dialogue-layout{display:flex;flex-direction:column;gap:2.8125cqw;width:100%;margin:0}
.stage[data-screen=adults] .bubble{width:100%;min-height:11.71875cqw;padding:3.4375cqw 2.8125cqw 3.125cqw;font-size:1.875cqw;line-height:1.333333;letter-spacing:-.04em;border: .234375cqw solid var(--ink);border-radius:2.1875cqw;box-shadow:.625cqw .78125cqw var(--ink)}
.stage[data-screen=adults] .bubble p{margin:0}
.stage[data-screen=adults] .player-reply{position:relative;inset:auto;margin:0;background:var(--cream)}
.stage[data-screen=adults] .speaker{left:auto;right:1.953125cqw;top:-1.9921875cqw;font-size:1.5625cqw;line-height:1.2;padding:.39cqw 1.40625cqw;background:var(--orange)}
.stage[data-screen=adults] .player-reply .speaker{background:var(--pink)}
.stage[data-screen=adults] .story-character{width:51.342%;height:auto;max-width:none;left:-9.2578%;top:10.15625cqw}
.stage[data-screen=adults] .story-other{position:absolute;width:46.875%;height:auto;max-width:none;left:68.359375%;right:auto;top:7.8125cqw;bottom:auto;z-index:-1}
@media(min-width:1024px) and (max-width:1439px){.stage[data-screen=adults]{min-height:max(100svh,62.5cqw)}.stage[data-screen=adults] .main{padding-top:20.46875cqw}.stage[data-screen=adults] .story-character{top:16.40625cqw}.stage[data-screen=adults] .story-other{top:14.0625cqw}.stage[data-screen=adults] .bubble{border-width:.3125cqw}}
@media(max-width:1023px){.stage[data-screen=adults]{min-height:max(100svh,216.41cqw)}.stage[data-screen=adults] .main{position:relative;inset:auto;min-height:0;padding:110.77cqw 24px 28px}.stage[data-screen=adults] .dialogue-layout{gap:36px}.stage[data-screen=adults] .bubble{font-size:22px;line-height:28px;padding:28px 20px;min-height:120px;border:4px solid var(--ink);border-radius:24px;box-shadow:6px 8px var(--ink)}.stage[data-screen=adults] .speaker{font-size:18px;line-height:24px;top:-25px;right:12px;padding:4px 14px}.stage[data-screen=adults] .story-character{width:101.538%;left:-27.6923%;top:80.5128cqw}.stage[data-screen=adults] .story-other{width:102.564%;left:31.538%;top:24.615cqw}}
/* ИИ: единый масштаб игровой сцены по ширине И высоте окна. Запись №12. */
html{background:#242329}body{background:#242329}
.app{container-type:inline-size;margin-inline:auto;width:100%;background:var(--cream)}
@media(min-width:1440px){.app{width:min(100%,177.777778svh)}.stage:is([data-scene=prologue],[data-scene=dialogue],[data-scene=chat],[data-scene=choice],[data-scene=momchat],[data-scene=ending],[data-scene=silent]){height:56.25cqw;min-height:0!important}.stage .main{min-height:0}.stage .topbar{flex-shrink:0}.stage[data-scene=dialogue] .main{flex:1}.stage[data-screen=adults] .main{height:100%}.stage[data-scene=prologue] .main{padding-top:6cqw}}
@media(min-width:1024px) and (max-width:1439px){.app{width:min(100%,160svh)}.stage:is([data-scene=prologue],[data-scene=dialogue],[data-scene=chat],[data-scene=choice],[data-scene=momchat],[data-scene=ending],[data-scene=silent]){height:62.5cqw;min-height:0!important}.stage .main{min-height:0}.stage .topbar{flex-shrink:0}.stage[data-screen=adults] .main{height:100%}}
@media(max-width:1023px){.app{width:100%;min-height:100svh}.stage{height:auto}.modal-backdrop{padding:16px}}
/* ИИ: сверка 04B Mobile 1398:1235 — без произвольного увеличения персонажей. Запись №14. */
@media(max-width:1023px){.stage[data-screen=closeness]{min-height:max(100svh,216.4103cqw)}.stage[data-screen=closeness] .main{padding-top:126.1538cqw}.stage[data-screen=closeness] .dialogue-layout{gap:28px}.stage[data-screen=closeness] .story-character{width:110.2564%;left:-27.6923%;top:75.8974cqw}.stage[data-screen=closeness] .story-other{width:76.9231%;left:38.7179%;right:auto;top:56.6667cqw}}
/* ИИ: точные тексты подсказок Desktop / Tablet / Mobile из Figma. Запись №16. */
.hint-tablet,.hint-mobile{display:none}
@media(min-width:1024px) and (max-width:1439px){.hint-desktop{display:none}.hint-tablet{display:inline}}
@media(max-width:1023px){.hint-desktop,.hint-tablet{display:none}.hint-mobile{display:inline}}
/* ИИ: Figma 02-02 bg/bunny-runs, multiply и размытие, запись №17. */
.stage[data-scene=chat] .scene-art{isolation:isolate;overflow:hidden}
.chat-shade{position:absolute;left:-12%;top:-43.1%;width:73.3%;height:185.7%;transform:rotate(-10.91deg);mix-blend-mode:multiply;filter:blur(3.5625cqw);pointer-events:none}
.chat-shade-crop{position:absolute;inset:0;overflow:hidden;border-radius:7.96875cqw}
.chat-shade-crop img{position:absolute;max-width:none!important;width:717.09%!important;height:100.05%!important;left:0;top:-.03%;object-fit:fill!important}
@media(max-width:1023px){.chat-shade{left:-150%;top:-31.9%;width:240.58%;height:158.41%;filter:blur(11.6923cqw)}.stage[data-chat-step="0"] .chat-shade{left:-56.64%;filter:blur(4.1923cqw)}.stage[data-chat-step="2"] .chat-shade{left:-246.41%}}
/* ИИ: отсутствующие оригинальные слои 12A-04. Запись №18. */
.scene-art .mom-warm-aura{position:absolute;left:41.015625%;top:-18.359375cqw;width:101.5625%;height:auto;object-fit:contain;pointer-events:none}.mom-bubble-tail{position:absolute;right:-2.34375cqw;top:50%;width:2.5cqw;height:auto;transform:translateY(-50%)}
@media(min-width:1024px) and (max-width:1439px){.scene-art .mom-warm-aura{top:-12.109375cqw}}
@media(max-width:1023px){.scene-art .mom-warm-aura{left:11.0256%;top:24.6154cqw;width:143.5897%}.mom-bubble-tail{width:36px;right:30px;top:-20px;transform:rotate(-90deg)}}

@media(max-width:1439px),(hover:none),(pointer:coarse){.choice:hover{background:var(--cream);transform:none}}

/* ИИ: те же состояния в сохранённых промежуточных ветках. Запись №20. */
@media(min-width:1440px) and (hover:hover) and (pointer:fine){.choice:hover::before{content:"";display:inline-block;width:1em;height:1em;margin-right:.6em;vertical-align:-.08em;background:url("./assets/figma/figma-026dbd30-a32a-477e-a354-2b64743ad0c7.svg") center/contain no-repeat}}

/* ИИ №29: убрать синюю обводку закрытия журнала по правке автора. */
.modal[data-modal="log"] .modal-close:focus-visible{outline:none}

/* ИИ №30: оставшиеся сценарные выборы ПК также занимают одно окно. */
@media(min-width:1024px) and (hover:hover) and (pointer:fine){
 .stage[data-scene="choice"]{height:100svh;min-height:0}
 .stage[data-scene="choice"] .main{min-height:0;padding-block:clamp(12px,2svh,24px)}
 .stage[data-scene="choice"] .bubble{padding:clamp(18px,3svh,40px);font-size:clamp(18px,2.5svh,30px)}
 .stage[data-scene="choice"] .choices{gap:clamp(8px,1.5svh,18px);margin-top:clamp(8px,1.5svh,18px)}
 .stage[data-scene="choice"] .choice{padding-block:clamp(10px,2svh,24px)}
 .stage[data-scene="choice"] .prompt{margin-top:clamp(8px,1.5svh,18px)}
}
