*{box-sizing:border-box} :root{font-family:Arial,Helvetica,sans-serif;color:#fff1ce;font-size:16px}body{margin:0;background:#263d32;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:3px solid #81bbff;outline-offset:4px}button:disabled{cursor:default;opacity:.48}[hidden]{display:none!important}#world{position:fixed;inset:0;width:100%;height:100%;touch-action:none;image-rendering:pixelated}.vignette{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 38%,transparent 38%,#0b221f70 100%)}header{position:fixed;top:0;left:0;right:0;padding:22px 30px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:4}.brand{font-size:27px;font-weight:900;letter-spacing:4px;color:#fff0bc;text-shadow:0 2px 8px #14251c;text-decoration:none;pointer-events:auto}.brand span{display:block;font-size:10px;letter-spacing:3px;margin-top:4px}.top-actions{display:flex;gap:10px;align-items:center;pointer-events:auto}.top-actions button{background:#172d27e8;color:#fff1ce;border:1px solid #af945d;border-radius:8px;padding:11px 15px;font-weight:bold;font-size:14px}main{position:fixed;inset:98px 24px 110px;pointer-events:none}.panel{pointer-events:auto;background:#192e28f2;border:1px solid #c1a66a;box-shadow:0 18px 60px #081a1a66,inset 0 0 0 5px #d5b9750a;border-radius:5px;padding:30px;width:440px;max-width:100%;max-height:100%;overflow:auto;position:absolute;right:4vw;top:50%;transform:translateY(-50%)}.eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#d9bc7b}.panel h1{font-family:Georgia,serif;font-size:56px;font-weight:normal;line-height:1.02;letter-spacing:-2px;margin:18px 0}.panel h1 em{color:#e8c67e;font-weight:normal}.panel h2{font-family:Georgia,serif;font-weight:normal;font-size:29px;line-height:1.15;margin:14px 0}.panel p{font-size:17px;line-height:1.5;color:#e2e5d7}.tag{display:inline-block;border-block:1px solid #9d89564d;padding:10px 0;color:#e4c990;font-size:14px}.primary{background:#e2bd73;color:#263b2d;width:100%;border:1px solid #ffe1a1;border-radius:5px;padding:17px;font-weight:bold;font-size:17px}.primary:hover{background:#f0d08d}.fine{font-size:13px!important;color:#b8c7b5!important}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.result-grid div{border-bottom:1px solid #77846a;padding-bottom:9px}.result-grid small{display:block;font-size:13px}.result-grid strong{display:block;font-size:22px;margin-top:4px}.stamp{color:#ffb899!important;font-size:30px!important}#objective{background:linear-gradient(90deg,#152d2700,#152d27eb 18%,#152d27eb 82%,#152d2700);padding:12px 45px;width:max-content;max-width:100%;margin:0 auto;text-align:center;text-shadow:0 1px 2px #12261f}#chapter{display:block;font-size:12px;letter-spacing:1.3px;color:#e5c381;margin-bottom:6px}#objective strong{display:block;font-family:Georgia,serif;font-size:20px;font-weight:normal}#distance{display:block;font-size:13px;margin-top:6px;color:#cad6c5}#guide-home{position:absolute;bottom:22px;left:3vw;width:500px;max-width:100%}#felia{display:flex;align-items:center;gap:0;pointer-events:auto}#fairy{width:140px;height:180px;image-rendering:pixelated;flex-shrink:0;filter:drop-shadow(0 0 16px #ffe9a76b)}.guide-speech{padding:19px;background:#172e29f5;border:1px solid #bba36e;border-radius:5px;box-shadow:0 12px 35px #081b2366;color:#f5edda;flex:1}#felia b{font-size:12px;letter-spacing:2px;color:#edcb83}#subtitle{margin:8px 0;font-size:16px;line-height:1.4}#voice-next{padding:10px 0 0;color:#e9c780;background:transparent;font-size:14px;text-align:left}#controls{position:absolute;inset:0;pointer-events:none}#joystick{position:absolute;bottom:20px;left:20px;width:108px;height:108px;border:2px solid #e2c685a6;border-radius:50%;background:#1b322d80;touch-action:none;pointer-events:auto;display:grid;place-items:center}#stick{width:46px;height:46px;border-radius:50%;background:#e5cc91;border:3px solid #786b44;box-shadow:0 4px 8px #0e211e80}.interact-wrap{position:absolute;bottom:24px;right:3vw;text-align:right}#interact{background:#283e32;color:#efdeb7;border:1px solid #b9a371;padding:16px 21px;border-radius:7px;font-weight:bold;pointer-events:auto}#interact.ready{background:#f0ce85;color:#203629;border:2px solid #fff0c2;box-shadow:0 0 22px #efcb7777}#interact.ready::before{content:'✦ ';font-size:20px}.interact-wrap small{display:block;font-size:12px;margin-top:10px;color:#e2d8bc}#follow{display:block;margin:0 0 12px auto;padding:13px 17px;border-radius:7px;background:#213d32;color:#f7e6bc;border:1px solid #d3b66d;pointer-events:auto;font-weight:bold;font-size:15px}footer{position:fixed;bottom:0;left:0;right:0;background:#142a24ee;border-top:1px solid #b7a47766;color:#fff0c9;display:flex;justify-content:center;gap:70px;padding:17px 20px max(17px,env(safe-area-inset-bottom));z-index:5}footer span{display:block;font-size:11px;letter-spacing:1.6px;color:#acbdab;margin-bottom:5px}footer strong{font-family:Georgia,serif;font-size:27px;font-weight:normal}#retirement.hit{color:#ffbb91}.step-count strong{font-size:23px}#feedback{position:absolute;top:32%;left:50%;transform:translateX(-50%);font-size:42px;font-weight:bold;color:#ffbb99;text-shadow:0 2px 5px #14251d;text-align:center;width:100%}
/* The phone is animated with the Web Animations API in game.js, not CSS. */
#phone{position:fixed;inset:0;background:#10221f9c;z-index:3;display:flex;justify-content:center;align-items:center;padding:76px 14px 105px;pointer-events:auto}#phone-shell{position:relative;width:480px;max-width:100%;height:100%;max-height:900px;background:#fff;border:7px solid #17222a;border-radius:37px;box-shadow:0 24px 90px #0008;color:#18222b;display:flex;flex-direction:column;overflow:hidden;outline:none}.phone-status{height:37px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 22px;font-size:9px;font-weight:bold;letter-spacing:1px;color:#48505a}.phone-notch{position:absolute;top:0;left:50%;transform:translateX(-50%);width:100px;height:17px;background:#17222a;border-radius:0 0 12px 12px}.phone-contact{display:flex;align-items:center;gap:12px;padding:13px 18px 16px;border-bottom:1px solid #e8edf2;flex-shrink:0;background:#fff}.chat-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e8d5f8;color:#694f9d;font-size:20px;font-family:Georgia,serif;flex-shrink:0}.phone-contact h2{font-size:19px;margin:0 0 3px}.phone-contact small{font-size:12px;color:#7b8591}.contact-heart{font-size:29px;color:#3275df;margin-left:auto}#phone-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 18px 24px;scrollbar-width:thin;background:linear-gradient(#fff,#f5f8fc)}.chat-date{text-align:center;color:#83909b;font-size:10px;letter-spacing:1.2px;margin:0 0 20px}.received{display:flex;align-items:flex-end;gap:8px}.received .chat-avatar{width:26px;height:26px;font-size:14px;margin-bottom:20px}.received>div{min-width:0;flex:1}.chat-bubble{font-size:17px;line-height:1.45;padding:14px 16px;background:#eaf0f6;border-radius:19px 19px 19px 4px;margin:0}.received small{display:block;color:#84909d;font-size:11px;margin:7px 4px}.sent{margin:16px 0 16px 38px;background:#2777e6;color:white;border-radius:19px 19px 4px 19px}#phone-guide{margin-top:18px}#phone-guide #felia{align-items:center;gap:0}#phone-guide #fairy{width:112px;height:144px;margin-left:-12px;filter:drop-shadow(0 0 15px #c4d9b9)}#phone-guide .guide-speech{padding:13px;border-radius:12px;border:1px solid #d0bd8d;box-shadow:0 8px 24px #2d41321a;background:#263d33}#phone-guide #subtitle{font-size:15px;line-height:1.4}#phone-wait{font-size:12px;color:#7b8690;text-align:center;margin:22px 0}#answer-area h3{font-size:14px;font-weight:600;color:#687682;margin:20px 0 12px}.choice{display:flex;gap:10px;align-items:center;text-align:left;width:100%;background:white;border:1px solid #cedcf0;border-radius:14px;padding:13px 12px;margin-top:10px;font-size:16px;line-height:1.4;color:#1d5baf;box-shadow:0 3px 8px #2166aa08}.choice:hover{background:#edf5ff;border-color:#6298e6}.choice span{flex-shrink:0;background:#edf4ff;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-size:12px;font-weight:bold}.phone-home{height:5px;width:110px;background:#17222a;border-radius:9px;margin:10px auto;flex-shrink:0}.phone-open #objective,.phone-open #panel,.phone-open #controls{visibility:hidden}
@container game (max-width:650px){header{padding:14px 16px}.brand{font-size:23px}.top-actions{gap:6px}.top-actions button{font-size:12px;padding:9px 10px}main{inset:79px 12px 99px}.panel{right:0;left:0;top:auto;bottom:0;transform:none;width:100%;padding:22px;border-radius:5px;max-height:100%}.panel.start{max-height:65%}.panel h1{font-size:43px;letter-spacing:-1px;margin:12px 0}.panel h2{font-size:25px}.panel p{font-size:16px;line-height:1.4}.panel.start p{margin:12px 0}.tag{font-size:13px}#guide-home{left:0;bottom:4px;width:100%}#fairy{width:110px;height:142px;margin-left:-8px}.guide-speech{padding:14px}#subtitle{font-size:16px}#objective{padding:11px 20px;width:100%}#chapter{font-size:11px}#objective strong{font-size:18px}#distance{font-size:12px}#joystick{left:3px;bottom:22px;width:90px;height:90px}.interact-wrap{right:0;bottom:24px;max-width:70%}.interact-wrap small{display:none}#interact{font-size:15px;padding:15px 13px}#follow{font-size:14px;padding:12px}footer{gap:0;justify-content:space-between;padding:15px 18px max(15px,env(safe-area-inset-bottom))}footer strong{font-size:23px}footer span{font-size:10px;letter-spacing:1px}.step-count strong{font-size:20px}#feedback{font-size:31px;top:30%}#phone{padding:70px 7px 91px}#phone-shell{border-width:5px;border-radius:28px}.phone-status{padding:0 15px;font-size:8px;height:31px}.phone-contact{padding:10px 14px 12px}.phone-contact h2{font-size:18px}#phone-scroll{padding:15px 13px 20px}.chat-bubble{font-size:16px;padding:13px}.chat-date{margin-bottom:14px}.choice{font-size:16px;padding:12px 10px;margin-top:8px}#phone-guide #fairy{width:96px;height:124px}#phone-guide .guide-speech{padding:11px}#phone-guide #subtitle{font-size:14px}#phone-guide #voice-next{font-size:13px}}
@media(max-height:620px){main{inset:67px 12px 79px}.panel{padding:18px}.panel.start{max-height:100%}.panel h1{font-size:32px}.panel.start p{font-size:14px}footer{padding:10px 18px}footer strong{font-size:21px}#phone{padding-top:64px;padding-bottom:76px}.phone-status{height:26px}.phone-contact{padding:6px 13px}.phone-contact h2{font-size:17px}.chat-date{margin-bottom:10px}#phone-scroll{padding-top:12px}.guide-speech{padding:12px}}
/* Permanent portrait play surface, also on desktop. No device emulation needed. */
body{display:flex;justify-content:center;align-items:center;min-height:100dvh;background:radial-gradient(ellipse at 50% 30%,#31403d,#111b1c 70%)}
#game-frame{--game-height:min(100dvh,920px);height:var(--game-height);width:min(100vw,calc(var(--game-height)*.5625));position:relative;overflow:hidden;container-type:inline-size;container-name:game;box-shadow:0 0 0 1px #a3ae9440,0 18px 100px #0008;isolation:isolate}
#world,.vignette,header,main,#phone,footer{position:absolute}#world{inset:0;width:100%;height:100%}header{padding:16px}main{inset:82px 12px 94px}footer{gap:0;justify-content:space-between;padding:15px 18px}footer strong{font-size:23px}footer span{font-size:10px;letter-spacing:1px}.step-count strong{font-size:20px}.panel{left:0;right:0;top:auto;bottom:0;transform:none;width:100%;padding:22px}.panel.start{max-height:65%}.panel h1{font-size:43px}.panel h2{font-size:25px}.panel p{font-size:16px}.brand{font-size:23px}.top-actions{gap:6px}.top-actions button{font-size:12px;padding:9px 10px}#objective{padding:11px 20px;width:100%}#chapter{font-size:11px}#objective strong{font-size:18px}#distance{font-size:12px}#guide-home{left:0;bottom:4px;width:100%}#fairy{width:132px;height:165px;margin-left:-8px;image-rendering:pixelated}#subtitle{font-size:15px}.guide-speech{padding:14px}#joystick{left:4px;bottom:20px;width:94px;height:94px}.interact-wrap{right:0;bottom:24px;max-width:66%;display:flex;align-items:center;gap:12px}.interact-wrap small{display:none}#follow{font-size:13px;padding:12px;margin:0;max-width:155px}#compass{font-size:36px;display:block;width:44px;color:#ffe3a0;text-align:center;text-shadow:0 2px 5px #172a25;line-height:1}#feedback{font-size:31px}
#phone{padding:72px 7px 89px}#phone-shell{border-width:5px;border-radius:28px}.phone-status{padding:0 15px;font-size:8px;height:31px}.phone-contact{padding:10px 14px 12px}.phone-contact h2{font-size:18px}#phone-scroll{padding:15px 13px 20px}.chat-bubble{font-size:16px;padding:13px}.chat-date{margin-bottom:14px}.choice{font-size:16px;padding:12px 10px;margin-top:8px}#phone-guide #fairy{width:116px;height:145px}#phone-guide .guide-speech{padding:11px}#phone-guide #subtitle{font-size:14px}#phone-guide #voice-next{font-size:13px}
#tutorial-focus{position:absolute;inset:0 0 200px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;pointer-events:none;background:radial-gradient(ellipse,#152c2699,transparent 72%);border-radius:18px;padding:10px;color:#fff1cf}
#hero{width:190px;height:238px;image-rendering:pixelated;filter:drop-shadow(0 8px 16px #10231f70)}#tutorial-symbol{font-size:52px;line-height:1.15;filter:drop-shadow(0 3px 8px #182b25)}#tutorial-focus[data-step="1"] #tutorial-symbol{position:absolute;top:15%;right:17%;font-size:48px}#tutorial-title{font:normal 24px Georgia,serif;margin:8px 0;text-shadow:0 2px 6px #10201a}#tutorial-detail{font-size:15px;line-height:1.4;margin:4px 0;max-width:310px;text-shadow:0 2px 5px #10201a}#tutorial-example{display:grid;gap:8px;width:90%;max-width:280px;margin:16px auto}#tutorial-example span{padding:10px 12px;border:1px solid #dbc59188;background:#183129e6;border-radius:10px;font-size:14px}#tutorial-example span:first-child{color:#b9e7a9}#tutorial-example span:last-child{color:#ffb99d}#guide-home[data-tutorial="1"]{bottom:3px}#guide-home[data-tutorial="2"]{bottom:35px}#guide-home[data-tutorial="3"]{bottom:-9px}#guide-home[data-tutorial="4"]{top:14px;bottom:auto}#tutorial-focus[data-step="4"]{top:215px;bottom:20px}#tutorial-focus[data-step="3"]{bottom:200px}.tutorial-highlight{outline:3px solid #ffe19a!important;outline-offset:-3px;box-shadow:0 0 28px #f8d58488!important;z-index:8}
#money-shade{position:absolute;inset:0;background:#102520ce;z-index:8;pointer-events:none}#wallet.money-focus{left:12px;right:12px;border:2px solid #f3d591;border-radius:14px;z-index:10;transform:translateY(-150px) scale(1.04);box-shadow:0 0 40px #e3c46b33;background:#18352e}#wallet.money-focus strong{font-size:26px}#wallet.money-focus .step-count{display:none}#cash-loss{position:absolute;left:15px;right:15px;bottom:290px;z-index:10;text-align:center;color:#fff1cd;pointer-events:none}#cash-loss small{display:block;letter-spacing:3px;font-size:12px;color:#e7ca83}#cash-amount{display:block;font:bold 46px Georgia,serif;color:#ffbb98;margin:8px 0}#cash-note{font-size:15px;line-height:1.45;display:block;max-width:320px;margin:auto}
@media(max-height:650px){#tutorial-focus{bottom:145px}#hero{width:125px;height:156px}#tutorial-title{font-size:20px}#tutorial-detail{font-size:13px}#guide-home #fairy{width:98px;height:123px}#guide-home .guide-speech{padding:10px}#subtitle{font-size:14px}#tutorial-example{gap:4px;margin:6px auto}#tutorial-example span{padding:5px}#tutorial-focus[data-step="4"]{top:150px}#tutorial-focus[data-step="3"]{bottom:155px}#cash-loss{bottom:255px}#phone{padding-top:68px;padding-bottom:78px}}
/* Local profile images and tutorial pointers. Motion is driven by JavaScript. */
.chat-avatar{object-fit:cover;object-position:50% 35%;border-radius:50%;flex-shrink:0;background:#f1e5d3}
#profile-preview{margin:-6px -4px 14px;border:1px solid #e0e4ec;border-radius:14px;overflow:hidden;background:white}
.friend-status{background:#e9f2ff;color:#1762bd;padding:10px 12px;font-size:12px;font-weight:bold;text-align:center}
.profile-image-scroll{max-height:min(43vh,390px);overflow:auto;overscroll-behavior:contain}
.profile-image-scroll img{display:block;width:100%;height:auto}
#wallet>div{position:relative}.money-arrow{position:absolute;bottom:calc(100% + 8px);left:35%;font-size:58px;line-height:1;color:#ffe496;text-shadow:0 3px 0 #27382b,0 0 16px #ffcf65;pointer-events:none}
.money-summary{margin:22px 0}.money-summary>div{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:12px 0;border-bottom:1px solid #a3b49940}.money-summary span{font-size:14px;color:#d4dfcf}.money-summary strong{font:normal 23px Georgia,serif;white-space:nowrap}.money-summary .loss-total{color:#ffb99c}.money-summary .final-total{padding:15px 12px;margin:8px -12px;background:#365144;border-radius:8px;border:0}.final-total strong{font-size:29px;color:#ffe4a4}
.result-label small{display:block;font-size:11px;letter-spacing:2px;color:#d6bc86;margin-bottom:7px}.result-label strong{display:block;font:normal 22px Georgia,serif;color:#fff0cc}.loss-scale{position:relative;padding-top:24px;margin:20px 0 25px}.loss-track{height:19px;background:linear-gradient(90deg,#99cb87 0%,#e6d07b 42%,#e99964 70%,#c85865 100%);clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%);border-radius:4px}.loss-marker{position:absolute;top:0;transform:translateX(-50%);font-size:23px;line-height:24px;color:white;text-shadow:0 1px 4px #000}.scale-labels{display:flex;justify-content:space-between;gap:20px;margin-top:10px;font-size:11px;line-height:1.5;color:#cbd7c8}.scale-labels span:last-child{text-align:right}.panel.ending{padding:24px}.panel.ending h2{font-size:27px}
@media(max-height:650px){.profile-image-scroll{max-height:30vh}.money-summary{margin:12px 0}.money-summary>div{padding:8px 0}.panel.ending h2{font-size:23px}.loss-scale{margin:12px 0 18px}.money-arrow{font-size:44px}}
/* Compact game reward cards. */
.panel.reaction{border:2px solid #d6bb76;background:linear-gradient(145deg,#203e32f5,#142d28fa);box-shadow:0 0 0 4px #152d28,0 0 0 5px #a58a4e,0 14px 35px #061b2380;padding:24px 23px 20px;border-radius:3px}
.panel.reaction .eyebrow{display:flex;align-items:center;gap:10px;color:#f5d589;letter-spacing:2px;font-size:11px}.panel.reaction .eyebrow::before{content:'✦';display:grid;place-items:center;font-size:23px;width:38px;height:38px;border:1px solid #d5ba7588;background:#59774b44;transform:rotate(-5deg)}
.panel.reaction h2{font-size:27px;line-height:1.12;margin:15px 0 12px;color:#fff1c9}.panel.reaction p{font-size:15px;line-height:1.5;color:#dce7d7;margin:0 0 20px}.panel.reaction .primary{padding:13px 18px;font-size:15px;box-shadow:inset 0 -3px 0 #b68c45;border-radius:3px}.panel.reaction.worst{border-color:#d99674}.panel.reaction.worst .eyebrow::before{content:'!';background:#ba6d4944}.panel.reaction.medium .eyebrow::before{content:'?'}
@media(max-height:650px){.panel.reaction{padding:17px}.panel.reaction h2{font-size:23px}.panel.reaction p{font-size:14px;margin-bottom:14px}}

/* Optional bench encounter and seated cinematic; motion uses JS only. */
.secondary{width:100%;margin-top:10px;padding:13px;border:1px solid #baa46b;background:#294839;color:#fff0cd;border-radius:3px}.bench-heading{display:flex;align-items:center;gap:16px;margin:15px 0}.bench-heading h2{margin:0!important}.bikini-preview{width:76px;height:96px;flex-shrink:0;border:2px solid #d3b576;border-radius:8px;background-image:url(assets/images/scroll-grid.png);background-size:300% auto;background-position:0 49%;image-rendering:auto}.jessica-profile{display:block;width:100%;max-height:32vh;object-fit:cover;object-position:top;border-radius:12px}.jessica-avatar{object-fit:cover;object-position:20% 20%;}.phone-contact .jessica-avatar{width:42px;height:42px;object-fit:cover;object-position:50% 23%}#phone:has(.jessica-avatar) #answer-area{position:sticky;bottom:0;background:#fff;padding:10px 0}#friend-accept{background:#1877ed;color:#fff}#friend-delete{background:#e2e5e9;color:#182b3b}#scroll-cinema{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}#scroll-montage{position:absolute;inset:0 0 auto;opacity:.24;mask-image:linear-gradient(90deg,black,transparent 39%,transparent 64%,black)}#scroll-montage img{width:100%;display:block}.cinema-caption{position:absolute;left:18px;right:18px;bottom:105px;background:#18362ade;border:1px solid #d2b875;padding:15px;text-align:center;box-shadow:0 8px 22px #0005}.cinema-caption span{display:block;letter-spacing:2px;font-size:10px;color:#eacb83}.cinema-caption strong{display:block;font:23px Georgia;margin:8px 0}.cinema-caption small{color:#ffb798;font-size:24px}
.phone-contact:has(.jessica-avatar)::before{content:"";width:42px;height:42px;flex-shrink:0;border-radius:50%;background:url(assets/images/jessica-profile.png) 5% 16% / 265% auto}.phone-contact .jessica-avatar{display:none}
.jessica-profile{height:auto;max-height:none;aspect-ratio:941 / 555;object-fit:cover;object-position:top}

/* Karaoke follows audio time, without CSS animations. */
#scroll-cinema{pointer-events:auto;z-index:6}.cinema-caption{bottom:100px;pointer-events:none}#scroll-lyrics{min-height:112px;margin-top:12px}#scroll-lyrics p{font-size:18px;line-height:1.4;margin:2px 0;font-weight:bold;color:#fff2d0}#scroll-lyrics p.current{color:#ffe177;text-shadow:0 0 14px #dfb96a88}#scroll-lyrics p.sung{color:#c1cdbd}#scroll-skip{position:absolute;inset:0;width:100%;height:100%;background:transparent;color:#fff0cd}#scroll-skip span{position:absolute;bottom:77px;left:0;right:0;font-size:12px;text-shadow:0 1px 4px black}#scroll-skip:focus-visible{outline:2px solid #ffe177;outline-offset:-5px}@media(max-height:650px){#scroll-lyrics p{font-size:16px}.cinema-caption{padding:10px}#scroll-lyrics{min-height:94px}}

#shop-screen{position:absolute;inset:0;z-index:7;background:#443b2b url(assets/images/shop-interior.png) center/cover}#shop-title{position:absolute;top:20px;left:20px;right:20px;margin:0;padding:14px;text-align:center;background:#183c2ce8;border:2px solid #ecd59d;color:#ffedbc;font:700 25px Georgia;letter-spacing:3px}#gift-card{position:absolute;top:43%;left:25%;width:50%;aspect-ratio:1.6;border-radius:12px;padding:14px;color:#20352b;background:linear-gradient(135deg,#fff1b9,#d8ab55);border:2px solid #fff2cf;box-shadow:0 0 35px #ffe099,0 20px 30px #2b1e26aa;text-align:left}#gift-card span{font-size:10px;letter-spacing:2px;font-weight:bold}#gift-card strong{display:block;font-size:27px;margin-top:8px}#gift-card b{position:absolute;bottom:10px;right:14px;font-size:28px}.shop-confirm{position:absolute;bottom:95px;left:15px;right:15px;padding:18px;background:#173328f5;border:1px solid #e2c481;border-radius:6px}.shop-confirm h3{font:22px Georgia;line-height:1.2;margin:10px 0 15px}.shop-confirm button{padding:12px;font-size:15px}@media(max-height:700px){#gift-card{top:36%;width:46%;left:27%;padding:10px}.shop-confirm{bottom:83px;padding:12px}.shop-confirm h3{font-size:19px}#gift-card strong{font-size:23px}}
.shop-confirm{bottom:24px}@media(max-height:700px){.shop-confirm{bottom:18px}}

#final-results{position:absolute;inset:0;z-index:9;display:grid;place-items:center;background:#132a24ed;padding:25px}.results-card{width:100%;text-align:center}.results-card h2{font:34px Georgia;margin:18px 0 35px}.results-card>span:not(.eyebrow){font-size:14px;color:#c4d5c4}#result-left{display:block;font:48px Georgia;color:#ffe2a0;margin:10px 0}.results-card p{font-size:14px;color:#bfcdbb}.results-card b{color:#ffb898;margin-left:8px}#result-track{position:relative;height:15px;margin:42px 8px 8px;background:linear-gradient(90deg,#8cbd7c,#dacf70,#d67762);border-radius:4px}#result-marker{position:absolute;top:-26px;transform:translateX(-50%);color:#fff}.results-ends{display:flex;justify-content:space-between;font-size:11px;color:#cedacb;margin-bottom:30px}#ending-guide{position:absolute;bottom:26px;left:13px;right:13px;z-index:5}#ending-guide #fairy{display:none}#ending-guide #felia{gap:10px;align-items:flex-start}#ending-guide #felia::before{content:"";width:66px;height:76px;flex-shrink:0;border-radius:14px;border:1px solid #c6b77c;background:url(assets/images/character-faces.png) right center/200% 100%;box-shadow:0 3px 20px #0c201988}#ending-guide .guide-speech{background:#172e29ed;padding:14px}#ending-guide #subtitle{font-size:15px;line-height:1.45}.final-mode #objective,.final-mode #controls,.final-mode #panel{display:none!important}#ending-replay{position:absolute;bottom:22px;left:20px;right:20px;z-index:5;text-align:center;background:#142f28e8;padding:16px;border:1px solid #c4b179;border-radius:5px}#ending-label{font-size:15px;line-height:1.4;margin:0 0 14px}#ending-replay .primary{padding:12px;font-size:15px}@media(max-height:650px){#ending-guide #subtitle{font-size:13px}#ending-guide #felia::before{width:52px;height:60px}#ending-guide{bottom:15px}.results-card h2{margin-bottom:20px}#result-left{font-size:39px}}
.finale-preview-options{display:flex;gap:6px}.finale-preview-options button{flex:1;padding:12px 6px;background:#e2bd73;color:#203d2e;border-radius:4px;font-size:13px}

/* Keep the document stationary; only the phone and its inner content move. */
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
#game-frame{--game-height:min(100svh,920px);touch-action:pan-y;overflow:clip}
#phone{overflow:hidden;overscroll-behavior:none}
#phone-shell{transform:translateZ(0);will-change:transform;backface-visibility:hidden}
#phone-scroll{overflow-anchor:none;-webkit-overflow-scrolling:touch}
.profile-image-scroll{max-height:none;overflow:visible}
#profile-preview img{height:32svh;object-fit:cover;object-position:top}
#sound-settings{position:absolute;z-index:30;top:66px;right:12px;left:12px;padding:18px;background:#172e29;border:1px solid #dbc17f;border-radius:12px;box-shadow:0 12px 28px #0006;color:#fff0cd}
.sound-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
#sound-close{background:transparent;color:#fff0cd;padding:8px;font-size:18px}
#sound-settings label{display:block;font-size:15px;margin-top:14px}
#sound-settings output{float:right;color:#e8c67e}
#sound-settings input[type=range]{width:100%;height:36px;accent-color:#e8c67e;touch-action:pan-x}
#sound-settings .mute-row{display:flex;align-items:center;gap:10px}
#mute-all{width:20px;height:20px;accent-color:#e8c67e}
@media(pointer:coarse){#fairy,#phone-guide #fairy{filter:none}#phone-shell{box-shadow:0 8px 20px #0005}}

/* Desktop layout: expansive world, readable panels and portrait phone. */
.keyboard-help{display:none}
@media(min-width:900px) and (min-height:560px) and (pointer:fine){
 .responsive-game #game-frame{width:100vw;height:100svh;--game-height:100svh;max-width:none}
 .responsive-game header{padding:22px 30px}
 .responsive-game .brand{font-size:28px}
 .responsive-game main{inset:96px 30px 110px}
 .responsive-game .panel{left:auto;right:2%;bottom:50%;transform:translateY(50%);width:430px;max-height:100%;padding:28px}
 .responsive-game .panel.start{max-height:100%}
 .responsive-game .panel h1{font-size:52px}
 .responsive-game #objective{width:max-content;max-width:600px;padding:12px 40px}
 .responsive-game #guide-home{width:500px;left:0;bottom:16px}
 .responsive-game #guide-home[data-tutorial="3"]{bottom:0}
 .responsive-game #tutorial-focus{left:20%;right:20%;bottom:180px}
 .responsive-game #hero{width:220px;height:275px}
 .responsive-game #joystick{display:none}
 .responsive-game .keyboard-help{display:block;position:absolute;bottom:18px;left:0;padding:12px 16px;background:#172e29df;border:1px solid #bba36e;color:#f5edda;border-radius:6px;font-size:14px}
 .responsive-game .interact-wrap{right:2%;bottom:18px}
 .responsive-game footer{justify-content:center;gap:90px;padding:18px 30px}
 .responsive-game #phone{padding:75px 20px 100px}
 .responsive-game #phone-shell{width:480px;max-height:850px}
 .responsive-game #sound-settings{left:auto;right:30px;top:76px;width:340px}
 .responsive-game #wallet.money-focus{left:calc(50% - 285px);right:auto;width:570px;gap:55px}
 .responsive-game #cash-loss{left:calc(50% - 260px);right:auto;width:520px}
 .responsive-game .cinema-caption{left:calc(50% - 260px);right:auto;width:520px}
 .responsive-game #ending-guide{left:30px;right:auto;width:540px;bottom:30px}
 .responsive-game #ending-replay{left:auto;right:30px;width:320px}
}
