:root{color-scheme:dark;--white:#fff4f8;--purple:#d9b2ff;--pink:#ffa6d2;--gold:#f7d69b}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#100b19;color:var(--white);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}button,input{font:inherit}button{cursor:pointer;color:inherit;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid #ffdbb1;outline-offset:4px}button:disabled{cursor:default;opacity:.48} [hidden]{display:none!important}#shell{position:fixed;inset:0;display:grid;place-items:center;background:#100b19}#stage{position:relative;width:1280px;height:720px;transform-origin:center;flex:none;overflow:hidden;background:#191127;isolation:isolate;box-shadow:0 0 100px #0009}#scene,#vignette,#fade,.screen{position:absolute;inset:0;width:100%;height:100%}#scene{image-rendering:pixelated}#vignette{pointer-events:none;background:radial-gradient(ellipse at 50% 48%,transparent 40%,#09051391 100%)}#fade{background:#120c1c;opacity:0;pointer-events:none;z-index:4;transition:opacity .38s}#fade.on{opacity:1}.screen{z-index:5}.centered{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:15px;background:#10091bbd}.brand{width:480px;max-height:290px;object-fit:contain;filter:drop-shadow(0 7px 12px #080410a0);image-rendering:pixelated}.brand.small{width:320px}.eyebrow{font-size:15px;font-weight:800;letter-spacing:3px;color:#edc5ff;margin:0;text-transform:uppercase}.soft{color:#e4cde8;font-size:22px;line-height:1.55}.muted{color:#c9b4d6;font-size:17px}.track,.story-track{height:8px;background:#30213e;border:1px solid #876b9f;overflow:hidden}.track{width:420px}.track i,.story-track i{height:100%;display:block;background:linear-gradient(90deg,#9d66d1,#f597ca);width:0;transition:width .15s}.unlock-layout{height:100%;display:grid;grid-template-columns:1.05fr 1fr;gap:50px;align-items:center;padding:65px 90px;background:linear-gradient(90deg,#110c20c9,#1e112aa6)}.unlock-intro{text-align:center}.unlock-intro h1{font-size:37px;margin:20px 0 10px;letter-spacing:-1px}.unlock-card,.glass{background:linear-gradient(150deg,#38254aee,#1c1329f5);border:3px solid #9871b5;box-shadow:inset 0 0 0 4px #513362,0 15px 45px #0c061977;border-radius:9px}.unlock-card{text-align:center;padding:23px 32px 15px}.lock-art{width:108px;height:108px;object-fit:contain;image-rendering:pixelated}.countdown{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0 27px}.countdown div{padding:10px 5px;background:#1b1129;border:2px solid #805b98;box-shadow:inset 0 -3px #352245}.countdown b{display:block;font-size:35px;line-height:1.2;color:#ffceec;font-variant-numeric:tabular-nums}.countdown span{font-size:14px;color:#cfb9dc}#passwordForm label{display:block;font-size:16px;color:#e2c9ef;margin-bottom:9px}.password-wrap{display:flex;align-items:center;background:#180f24;border:2px solid #9a74b5;box-shadow:inset 0 2px 5px #0007;margin-bottom:13px}.password-wrap input{background:transparent;color:#fff;width:100%;padding:12px 13px;font-size:20px;border:0;min-width:0}.password-wrap button{background:none;border:0;font-size:24px;color:#cdb1ea;padding:0 12px}#authError{min-height:23px;margin:8px 0 0;color:#ffc3cc;font-size:16px}.pixel-button{display:block;min-height:59px;min-width:260px;padding:12px 27px;border:0;background: url('../assets/ui/buttons/normal.png') center/100% 100% no-repeat;filter:drop-shadow(0 3px 3px #0008);font-size:21px;font-weight:750;text-shadow:0 2px 2px #170b25;letter-spacing:.3px;position:relative}.pixel-button:hover,.pixel-button:focus-visible,.pixel-button:active{background-image:url('../assets/ui/buttons/active.png')}.pixel-button:disabled{background-image:url('../assets/ui/buttons/disabled.png')}.unlock-card .pixel-button{width:100%}.menu-layout{width:590px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px 50px 40px;background:linear-gradient(90deg,#10091fdb,#10091f9e 80%,transparent)}.menu-layout .brand{width:420px;max-height:230px}.menu-layout .eyebrow{margin:7px 0 20px}.menu-buttons{width:320px;display:grid;gap:5px}.menu-buttons button{width:100%}.menu-buttons span{font-size:15px;color:#f5d1fa;margin-left:10px}.menu-date{font-size:15px;letter-spacing:1px;color:#dbbce7;margin:17px 0 0}.corner-mark{position:absolute;bottom:24px;right:40px;font-size:19px;font-weight:700;letter-spacing:2px;text-shadow:0 2px 6px #000}.corner-mark span{color:var(--pink)}.version{position:absolute;bottom:12px;left:17px;font-size:11px;letter-spacing:2px;color:#e7c9f6a1;z-index:8;pointer-events:none}.hud{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:start;padding:22px 31px 45px;background:linear-gradient(#10091cd9,transparent)}.hud h2{font-size:27px;margin:4px 0}.hud p:last-child{margin:3px 0;font-size:15px;color:#e6cfe6}.tools{display:flex;gap:10px}.icon-button{width:58px;height:58px;padding:0;background:transparent;border:0;display:grid;place-items:center;filter:drop-shadow(0 3px 4px #0009)}.icon-button img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.icon-button:hover{filter:brightness(1.22) drop-shadow(0 3px 4px #0009)}.dialogue{position:absolute;bottom:24px;left:58px;right:58px;height:180px;background:linear-gradient(150deg,#2a1d44f5,#191126f3);border:3px solid #9975bd;box-shadow:inset 0 0 0 4px #4b3566,0 8px 30px #0007;padding:48px 34px 26px 205px}.dialogue.katya{border-color:#e398c6;box-shadow:inset 0 0 0 4px #6a3a65,0 8px 30px #0007}.dialogue.dima{border-color:#9c9de9}.dialogue img{position:absolute;left:23px;top:12px;width:150px;height:150px;object-fit:contain;image-rendering:pixelated}.dialogue.narrator{padding-left:40px}.dialogue.narrator img{display:none}.dialogue #speaker{position:absolute;top:13px;left:205px;font-size:18px;font-weight:800;color:#d6b4ff;letter-spacing:1px}.dialogue.katya #speaker{color:#ffb4d8}.dialogue.narrator #speaker{left:40px}.dialogue #line{font-size:28px;line-height:1.36;margin:0;white-space:pre-wrap}.dialogue #dialogueProgress{position:absolute;bottom:13px;right:23px;font-size:13px;color:#c0a1d5}.story-track{position:absolute;left:0;right:0;bottom:0;height:5px;border:0}.pause-label{position:absolute;top:111px;right:32px;background:#241732ee;border:2px solid #bb8ddd;padding:10px 20px;font-size:20px}.toast{position:absolute;right:29px;top:100px;width:410px;height:115px;background:url('../assets/ui/achievements/notification.png') center/100% 100% no-repeat;display:flex;gap:16px;align-items:center;padding:15px 21px;filter:drop-shadow(0 3px 6px #000b)}.toast img{width:75px;height:75px;object-fit:contain}.toast small{display:block;color:var(--gold);font-size:15px}.toast strong{font-size:19px}.overlay{position:absolute;inset:0;z-index:9;background:#0b0619bb;display:grid;place-items:center}.panel{width:890px;max-height:650px;padding:25px 32px;display:flex;flex-direction:column;overflow:hidden}.panel header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #73568b;padding-bottom:13px;margin-bottom:18px}.panel h2{font-size:31px;margin:5px 0 0}.panel #panelBody{overflow:auto;min-height:0;scrollbar-color:#a87acf #251731}.inventory-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.slot{background:url('../assets/ui/inventory/slot_normal.png') center/100% 100% no-repeat;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;border:0;text-align:center;font-size:13px}.slot img{height:45px;width:70px;object-fit:contain}.slot.locked{background-image:url('../assets/ui/inventory/slot_locked.png');opacity:.7}.slot.locked img{visibility:hidden}.chapter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.chapter{min-height:105px;padding:10px 16px;background:#21142f;border:2px solid #9471ae;text-align:left;color:#fff;border-radius:3px}.chapter:not(:disabled):hover{background:#5d3a77}.chapter:disabled{opacity:.65}.chapter span{display:block;font-size:13px;color:#e1b3f1}.chapter strong{display:block;font-size:19px;margin:4px 0}.setting{display:flex;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid #73568b;font-size:21px}.setting input[type=range]{width:310px;accent-color:#d08bf1}.setting input[type=checkbox]{width:28px;height:28px;accent-color:#d08bf1}.end-card{width:620px;padding:35px;display:flex;flex-direction:column;align-items:center;gap:12px}.end-card h1{font-size:35px;margin:10px 0}.end-card p{font-size:21px;line-height:1.45;margin:5px 0}.end-card .pixel-button{width:320px}#rotate{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(ellipse,#4a2c60,#170e25 70%);padding:25px}#rotate h1{font-size:26px}#rotate p{color:#dac1ed}#rotate span{font-size:32px}.rotate-phone{font-size:90px;line-height:1;color:#ffc7ef;animation:rotate 2s ease-in-out infinite}@keyframes rotate{0%,20%{transform:rotate(0)}65%,100%{transform:rotate(90deg)}}#audioNotice{position:absolute;z-index:12;bottom:16px;right:18px;padding:10px 15px;background:#2e2040;border:1px solid #aa82c4;font-size:14px} @media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
#stage{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.chapter{background-size:100% 100%;background-repeat:no-repeat;border:0;position:relative;isolation:isolate;min-height:125px;padding:20px 24px;text-shadow:0 2px 4px #10091f,0 0 8px #10091f}.chapter.available{background-image:linear-gradient(#130b2350,#130b23b8),url('../assets/ui/chapters/available.png')}.chapter.completed{background-image:linear-gradient(#130b2350,#130b23b8),url('../assets/ui/chapters/completed.png')}.chapter.locked{background-image:linear-gradient(#130b2350,#130b23b8),url('../assets/ui/chapters/locked.png')}.chapter:not(:disabled):hover{filter:brightness(1.2)}.chapter:disabled{opacity:.7}.slot.locked span{margin-top:34px}.slot:not(.locked){background-size:auto 100%}.slot.locked{background-size:auto 100%}.dialogue{border:0;box-shadow:none;background:transparent url('../assets/ui/dialogues/narrator.png') center/100% 100% no-repeat;padding:48px 48px 20px 225px;height:191px}.dialogue.dima{background-image:url('../assets/ui/dialogues/dima.png')}.dialogue.katya{background-image:url('../assets/ui/dialogues/katya.png')}.dialogue.narrator{padding-left:225px}.dialogue #speaker,.dialogue.narrator #speaker{left:240px;top:15px;font-size:16px}.dialogue img{top:24px;left:32px;width:140px;height:140px}.dialogue #line{font-size:26px;text-shadow:0 2px 4px #110b20}.dialogue #dialogueProgress{bottom:17px;right:45px}

/* Press Start 2P: локальна копія має пріоритет, офіційне онлайн-джерело — резерв. */
@font-face{font-family:'Press Start 2P';src:url('../assets/fonts/PressStart2P-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
html,body{font-family:'Press Start 2P',system-ui,sans-serif;font-weight:400;font-synthesis:none;line-height:1.55}button,input{font-family:inherit;font-weight:400}h1,h2,b,strong,.eyebrow,.pixel-button{font-weight:400}.eyebrow{font-size:13px;letter-spacing:1px}.muted{font-size:13px;line-height:1.8}.soft{font-size:15px;line-height:1.9}.unlock-intro h1{font-size:25px;line-height:1.55;letter-spacing:0}.countdown b{font-size:25px}.countdown span{font-size:10px}.countdown{gap:5px}.unlock-card{padding:20px 25px 12px}.unlock-card .eyebrow{line-height:1.7}#passwordForm label{font-size:12px}.password-wrap input{font-size:14px}#authError{font-size:11px;line-height:1.6}.pixel-button{font-size:15px;letter-spacing:0;padding:12px 30px;line-height:1.5}.menu-buttons{width:350px}.menu-buttons span{font-size:11px;margin-left:4px}.menu-date,.corner-mark{font-size:11px;letter-spacing:0}.version{font-size:9px;letter-spacing:0}.hud h2{font-size:20px;line-height:1.6}.hud p:last-child{font-size:12px}.hud .eyebrow{font-size:11px}.dialogue #speaker,.dialogue.narrator #speaker{font-size:12px;top:15px}.dialogue #line{font-size:18px;line-height:1.6;max-height:105px;overflow:hidden;letter-spacing:0}.dialogue{height:201px;bottom:23px;padding-top:54px;padding-right:50px}.dialogue #dialogueProgress{font-size:10px;bottom:15px;right:45px}#tapHint{position:absolute;bottom:15px;left:240px;font-size:10px;color:#f4d4ff;pointer-events:none}.toast small{font-size:11px;line-height:1.7}.toast strong{font-size:14px;line-height:1.6}.toast{pointer-events:none}.panel h2{font-size:21px}.slot{font-size:10px;line-height:1.5}.chapter span{font-size:10px;line-height:1.6}.chapter strong{font-size:13px;line-height:1.6}.setting{font-size:14px}.end-card h1{font-size:24px;line-height:1.6}.end-card p{font-size:14px;line-height:1.8}.end-card{width:720px}.end-card .pixel-button{width:380px}.pause-label{font-size:14px}#audioNotice{font-size:11px}#rotate h1{font-size:19px;line-height:1.65}#rotate p{font-size:12px;line-height:1.8}#story{touch-action:manipulation;cursor:pointer;outline:none}#fade{z-index:7;transition:opacity .22s}#storySpecial{position:absolute;top:110px;left:250px;right:250px;height:375px;pointer-events:none;z-index:1}.special.call{display:grid;grid-template-columns:1fr 1fr;gap:18px}.call-tile{position:relative;border:3px solid #b58ad6;background-position:center;background-size:cover;box-shadow:0 8px 24px #0008;overflow:hidden}.call-people{position:absolute;inset:10% 0 15%;display:flex;justify-content:center;align-items:center;gap:12px}.call-people img{width:40%;height:85%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 3px 3px #0009)}.call-name{position:absolute;bottom:0;left:0;right:0;background:#1d112be8;padding:12px;font-size:11px;line-height:1.7}.special.chat{left:320px;right:320px;background:#20142eea;border:3px solid #bd8edb;box-shadow:0 6px 24px #0009;display:flex;flex-direction:column}.chat-head{background:#49305b;padding:13px 18px;font-size:13px;color:#ffb8e2}.chat-body{flex:1;overflow:hidden;display:flex;flex-direction:column;gap:8px;padding:12px;min-height:0}.bubble{flex:none;max-width:88%;font-size:13px;line-height:1.65;padding:11px 13px;border:1px solid #b97eb3;background:#51304e;align-self:flex-start;white-space:pre-wrap}.bubble.dima{align-self:flex-end;background:#47396b;border-color:#9c89d4}.dialogue{z-index:2}.hud,.toast,.pause-label{z-index:3}

/* Alpha 0.4: окрема кнопка повернення, зліва під портретом. */
#prevSlide{position:absolute;left:24px;bottom:12px;z-index:4;min-height:44px;min-width:164px;padding:7px 10px;border:2px solid #b994dd;background:#2a1a40;color:#f6dfff;box-shadow:inset 0 0 0 2px #51366d;font-size:13px;line-height:1.4;cursor:pointer;touch-action:manipulation}#prevSlide:hover:not(:disabled){background:#56376e}#prevSlide:disabled{opacity:.35;cursor:default}#prevSlide:focus-visible{outline:3px solid #f9d4ff;outline-offset:2px}.dialogue img{height:112px;top:23px}#prevSlide:active:not(:disabled){transform:translateY(1px)}

/* Alpha 0.5: титри й привітання лишаються у звичайному потоці слайдів. */
#storySpecial.greeting,#storySpecial.secret,#storySpecial.credits{left:300px;right:300px;top:118px;height:auto;min-height:146px;padding:20px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;background:linear-gradient(155deg,#281735ec,#160f25df);border:2px solid #d7a2e5;box-shadow:inset 0 0 0 4px #5a366b,0 8px 30px #110a1c88;color:#fff0ff}
#storySpecial.credits{top:136px;left:250px;right:250px;min-height:270px;padding:34px 38px;gap:24px;background:linear-gradient(155deg,#281735ed,#160f25e6)}
.final-kicker,.final-subtitle{margin:0;font-size:12px;line-height:1.8;color:#eac9f4}.final-title{font-size:23px;line-height:1.7;margin:0;color:#ffcae9;text-shadow:0 3px #55305f}.credits .final-title{font-size:25px;color:#ffe3ac}.secret .final-title{color:#ffe3ac}
.end-card{gap:10px;padding:26px 32px;background:#20142eea}.end-card .pixel-button{min-height:49px;font-size:13px}.end-card #endBack{font-size:12px}
/* Alpha 0.6: взаємодія не перехоплює звичайні натискання для слайдів. */
.menu-layout .brand{max-height:190px}.menu-buttons .pixel-button{min-height:52px}.menu-layout .eyebrow{margin-bottom:12px}
#storyActions{position:absolute;inset:0;pointer-events:none;z-index:3}#storyActions button{pointer-events:auto;position:absolute;touch-action:manipulation;border:2px solid #c79be5;background:#2d1b40ed;color:#ffe4fa;box-shadow:0 3px #100c21;padding:10px 13px;font-size:12px;line-height:1.6;min-height:48px}#storyActions .story-action{right:34px;top:145px}#storyActions .story-secret{right:105px;top:240px;opacity:.55;font-size:22px}#storyActions .story-secret:hover,#storyActions .story-secret:focus-visible{opacity:1}#storyActions .item-hit{transform:translate(-50%,-50%);padding:8px;min-width:124px;min-height:80px;background:#2d1b4044;border:2px dashed #f5d2fc88;display:flex;align-items:flex-end;justify-content:center;font-size:9px;text-shadow:0 2px #000}#storyActions .item-hit:hover{background:#352046a0}
#gameOverlay{z-index:30}.game-panel{width:960px;height:630px;padding:20px 26px;display:flex;flex-direction:column}.game-panel header{flex:none}.game-panel h2{font-size:19px;margin:0}.game-panel h3{font-size:17px;line-height:1.65;color:#ffd1ee;margin:8px 0}.game-panel #gameBody{flex:1;min-height:0;overflow:auto;padding:9px 0}.game-panel .muted{font-size:12px;line-height:1.7}.game-status{font-size:14px;line-height:1.7;color:#ffdaef;min-height:44px}.game-button,.cook-choice{border:2px solid #b992d8;background:#4b3163;color:#fff1fd;min-height:50px;padding:10px;font-size:13px;line-height:1.6;box-shadow:inset 0 -4px #2b1b43}.game-button:hover:not(:disabled),.cook-choice:hover:not(:disabled){background:#694682}.claw-layout,.cook-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;height:100%;align-items:center}.claw-cabinet{height:450px;max-width:420px;width:100%;margin:auto;background:#472d60;border:5px solid #bd87d3;box-shadow:inset 0 0 0 4px #663e81,0 6px #1c142b;padding:12px;display:flex;flex-direction:column;gap:10px}.claw-sign,.claw-base{text-align:center;background:#281a3c;color:#ffd1ef;font-size:15px;padding:12px;border:2px solid #9e72bc}.claw-window{position:relative;flex:1;overflow:hidden;background:linear-gradient(#211632,#554267);border:3px solid #efc3fb}.claw-rail{position:absolute;top:8px;left:0;right:0;height:7px;background:#c6b5dd}.claw-head{position:absolute;top:10px;left:17%;width:60px;transform:translateX(-50%);transition:left .12s;z-index:2}.claw-cord{height:24px;width:5px;background:#d6bfed;margin:auto;transition:height .4s}.claw-head.dropping .claw-cord{animation:dropclaw .9s ease-in-out}.claw-grab{width:60px;height:72px;object-fit:contain;image-rendering:pixelated}.toy-pile{position:absolute;left:0;right:0;bottom:7px;height:100px}.claw-toy{position:absolute;bottom:0;width:70px;height:85px;object-fit:contain;transform:translateX(-50%);image-rendering:pixelated}.claw-controls{display:flex;gap:10px;flex-wrap:wrap}.claw-controls button{min-width:64px}.game-prize{width:92px;height:92px;object-fit:contain;image-rendering:pixelated}.cook-board{text-align:center}.cook-preview{width:200px;height:200px;object-fit:contain;image-rendering:pixelated}.cook-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.cook-choice{display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:120px;font-size:10px;padding:6px}.cook-choice img{height:72px;width:80px;object-fit:contain;image-rendering:pixelated}.pibble-layout{text-align:center}.pibble-dog{display:block;width:250px;height:250px;margin:5px auto;border:0;background-color:transparent;background-repeat:no-repeat;background-size:800% 100%;image-rendering:pixelated;animation:pibble-frames 1.2s steps(8,end) infinite}.pibble-dog.idle{background-image:url('../assets/minigames/pibble/pibble_idle.png')}.pibble-dog.happy{background-image:url('../assets/minigames/pibble/pibble_happy.png')}.pibble-dog.still{animation:none}.pibble-dog:active{transform:scale(.96)}#gameReward{margin:0;padding:8px;border-top:2px solid #9367ae;color:#ffdbad;font-size:12px;line-height:1.6;text-align:center}@keyframes pibble-frames{from{background-position:0 0}to{background-position:114.2857% 0}}@keyframes dropclaw{0%,100%{height:24px}50%{height:165px}}@media(prefers-reduced-motion:reduce){.claw-head,.claw-cord{transition:none}.claw-head.dropping .claw-cord,.pibble-dog{animation:none}}

.claw-cabinet.still .claw-head,.claw-cabinet.still .claw-cord{transition:none;animation:none}

/* Beta 1.0: local font, landscape readability, safe touch controls. */
#shell{inset:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
.dialogue{left:40px;right:40px;height:205px;padding:48px 32px 62px 181px;bottom:16px}.dialogue #line{font-size:21px;line-height:1.55;max-height:none;overflow:visible;overflow-wrap:anywhere}.dialogue #speaker{left:181px;font-size:14px}.dialogue.narrator,.dialogue.no-portrait{padding-left:32px}.dialogue.narrator #speaker,.dialogue.no-portrait #speaker{left:32px}.dialogue img{left:14px;width:150px;height:118px;top:10px}#prevSlide{min-height:60px;min-width:155px;bottom:8px;left:16px;font-size:14px}#tapHint{left:205px;bottom:22px;font-size:12px} .dialogue #dialogueProgress{right:22px;bottom:22px;font-size:12px}.hud{padding:16px 24px 38px}.hud .tools{gap:14px}.icon-button{width:74px;height:74px}.hud h2{font-size:23px}.hud p:last-child{font-size:15px}.pixel-button{min-height:65px}.menu-buttons .pixel-button{min-height:60px;font-size:16px}.menu-layout .brand{max-height:158px}.menu-layout{padding-top:15px;padding-bottom:20px}.menu-layout .eyebrow{margin-bottom:8px}.menu-date{margin-top:10px}.unlock-card .pixel-button{min-height:64px}.unlock-card #modeNotice{font-size:11px;margin:6px 0}.unlock-card #authError{margin-top:3px}.panel{max-height:680px}.panel #panelBody,.game-panel #gameBody{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.game-panel{width:1060px;height:660px}.game-panel header{margin-bottom:9px;padding-bottom:8px}.game-button{min-height:70px;font-size:16px}.claw-controls button{min-width:80px}.cook-choice{min-height:132px;font-size:13px}.cook-choice img{height:76px}.game-status{font-size:16px}.game-panel .muted{font-size:14px}.pibble-dog{width:230px;height:230px}.game-side .game-button{margin-top:5px}.story-action{max-width:300px}#storyActions button{min-height:60px;font-size:14px}#sceneLoading{position:absolute;top:103px;left:28px;background:#1b1028e8;border:2px solid #c29adf;padding:10px 16px;color:#f4d4ff;font-size:12px;z-index:4;pointer-events:none}.slot{font-size:12px;min-height:98px}.chapter strong{font-size:15px}.chapter span{font-size:12px}.end-card .pixel-button{min-height:58px}.version:empty{display:none}#storySpecial.chat{height:360px}.chat-body{overflow:auto}.bubble{font-size:15px}.final-title{line-height:1.5}.final-subtitle{font-size:14px}.game-panel .cook-grid{gap:10px}
@media(max-height:460px) and (orientation:landscape){.dialogue #line{font-size:23px;line-height:1.4}.dialogue #speaker{font-size:17px}#tapHint{font-size:13px}.game-status{font-size:18px}.hud h2{font-size:25px}.menu-buttons .pixel-button{font-size:18px}.game-button{min-height:76px}.icon-button{width:80px;height:80px}}

/* Enlarge essential touch targets without changing the story layout. */
#prevSlide{min-height:74px;bottom:5px}.dialogue{padding-bottom:77px;height:221px}.dialogue #line{line-height:1.45}#tapHint,.dialogue #dialogueProgress{bottom:27px}.hud .icon-button{width:82px;height:82px}#storySpecial.chat{height:345px}.game-panel .icon-button,.panel .icon-button{width:82px;height:82px}.game-panel .cook-choice:disabled{opacity:.65}.game-panel .game-button:focus-visible,.cook-choice:focus-visible{outline:3px solid #ffdbb1;outline-offset:3px}

.game-meter{display:block;appearance:none;width:85%;height:15px;margin:12px auto;accent-color:#d195ee;border:2px solid #ae83cb;background:#20152c}.game-meter::-webkit-progress-bar{background:#20152c}.game-meter::-webkit-progress-value{background:linear-gradient(90deg,#9568ce,#ef9acb)}.game-meter::-moz-progress-bar{background:linear-gradient(90deg,#9568ce,#ef9acb)}.pibble-layout .game-button{margin:8px auto}.claw-controls{gap:12px}.claw-controls .game-button{padding:10px 16px}.game-prize{margin:4px 0}

/* Beta 1.0.1: artwork-aligned dialogue with independent navigation row.
   All three backgrounds include a left illustration and a raised nameplate. */
.dialogue,.dialogue.narrator,.dialogue.no-portrait{
  --art-height:214px; --footer-height:64px;
  left:40px;right:40px;bottom:12px;height:calc(var(--art-height) + var(--footer-height) + 4px);
  padding:0;border:0;box-shadow:none;background-color:transparent;
  background-position:top center;background-size:100% var(--art-height);background-repeat:no-repeat;
}
.dialogue #speaker,.dialogue.narrator #speaker,.dialogue.no-portrait #speaker{
  position:absolute;left:21%;top:12px;width:20%;height:44px;display:flex;align-items:center;justify-content:center;
  margin:0;padding:0 8px;text-align:center;white-space:nowrap;letter-spacing:0;font-size:15px;line-height:1.3;font-weight:400;
  text-shadow:0 2px 3px #140b22;
}
.dialogue.narrator #speaker{left:19%;width:21%;top:7px}
.dialogue #line{
  position:absolute;left:23%;right:5%;top:70px;bottom:auto;height:128px;max-height:none;
  padding:0;margin:0;overflow:auto;white-space:pre-wrap;overflow-wrap:break-word;
  font-size:20px;line-height:1.48;font-weight:400;letter-spacing:0;scrollbar-width:thin;
  text-shadow:0 2px 4px #110b20,0 0 3px #110b20;
}
.dialogue img#portrait{left:3.4%;top:42px;width:14%;height:136px;object-fit:contain}
#prevSlide{
  left:0;bottom:0;width:190px;min-width:0;height:var(--footer-height);min-height:0;
  font-size:15px;line-height:1.35;padding:8px 12px;
}
#tapHint,.dialogue #dialogueProgress{
  bottom:0;height:var(--footer-height);display:flex;align-items:center;font-size:11px;line-height:1.5;
  background:#1d122be8;margin:0;border-top:2px solid #77528e;border-bottom:2px solid #77528e;
}
#tapHint{left:198px;right:184px;justify-content:center;text-align:center;padding:0 10px}
.dialogue #dialogueProgress{left:auto;right:0;width:184px;justify-content:center;border-right:2px solid #77528e;white-space:nowrap;padding:0 6px}
#storySpecial.chat{height:295px}
@media(max-height:460px) and (orientation:landscape){
  .dialogue #line{font-size:21px;line-height:1.44}
  .dialogue #speaker,.dialogue.narrator #speaker,.dialogue.no-portrait #speaker{font-size:15px}
  #tapHint,.dialogue #dialogueProgress{font-size:11px}
}
/* Footer stays readable at the fixed stage's mobile scale. */
#tapHint{font-size:14px}.dialogue #dialogueProgress{font-size:13px}

#fullscreen {
    font-family: Arial, sans-serif;
    font-size: 42px;
    color: #eac8ff;
    background: #302044;
    border: 2px solid #9871b5;
    border-radius: 5px;
}

#fullscreen:hover {
    background: #51366d;
}

:fullscreen {
    background: #100b19;
}