/* Single-screen game shell; drawers are separate native dialogs. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}body{margin:0}button{touch-action:manipulation}button,input,select{-webkit-tap-highlight-color:transparent}.wrap{width:100%;max-width:820px;height:100dvh;margin:auto;padding:max(10px,env(safe-area-inset-top)) 14px max(10px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:9px;overflow:hidden}header{flex:none;min-height:40px;padding:8px 12px;gap:8px;flex-wrap:nowrap}.brand{font-size:15px;letter-spacing:1px;white-space:nowrap}.dot{width:7px;height:7px;margin-right:7px}header .tag{display:none}header button.reset{font-size:10px;padding:7px 10px;min-height:32px}.header-audio{margin-left:auto;margin-right:0}.intro,.footer{display:none}.grid{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}.grid>aside{flex:none;order:-1;display:block}.grid>aside>.panel{padding:10px 12px;margin:0}aside .section-label,aside .help,.week-ends{display:none}#stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat-line{font-size:11px;margin-bottom:6px;gap:5px}.stat-line>span:last-child>span{display:none}.stat{margin:0}.bar{height:8px;padding:1px}.week-progress{padding-top:8px;margin-top:9px}.week-line{font-size:10px;margin-bottom:5px}.week-track{height:5px}.main-play{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.scene{flex:none;min-height:0;height:clamp(90px,19dvh,155px);background-position:center 56%}.scene>.avatar{right:13%;bottom:0;transform:scale(.57);transform-origin:bottom;animation:none!important}.scene-label{top:8px;left:9px;font-size:9px;padding:4px 7px;border-width:1px}.bubble{left:10px;bottom:9px;max-width:58%;font-size:11px;line-height:1.65;padding:7px 10px;border-width:2px;box-shadow:2px 2px #050c06}.bubble small{font-size:8px;letter-spacing:0;margin-bottom:3px}.bubble:after{border-width:7px 0 7px 8px;right:-9px;bottom:9px}.event{flex:1;min-height:0;padding:14px 17px;display:flex;flex-direction:column}.event.hidden,.ending.hidden{display:none}.event-top{font-size:10px;gap:8px;flex:none}.event h2{font-size:21px;margin:9px 0 8px;line-height:1.35;flex:none}.desc{font-size:13px;line-height:1.75;min-height:0;color:#c9d8be}.choices{gap:8px;margin-top:auto;padding-top:12px;flex:none}.choices:empty{display:none}.choice{min-height:58px;padding:10px 12px;gap:6px;box-shadow:2px 2px #040b05;flex:none}.choice>span:first-child{min-width:0}.choice b{font-size:13px;line-height:1.5}.choice small{font-size:10px;line-height:1.5;margin-top:3px}.choice .reward-hint{font-size:10px;margin-top:3px}.reward-name{display:none}.choice:hover{transform:none}.arrow{font-size:14px}.toast{margin-top:12px;padding:12px;font-size:12px;line-height:1.8}.event #result:not(:empty){margin-top:auto}.event .primary{margin-top:12px;font-size:13px;min-height:44px;padding:11px}.ending{flex:1;min-height:0;padding:20px;display:flex;flex-direction:column;justify-content:center}.ending h2{font-size:26px}.ending .desc{font-size:13px}.ending .primary{min-height:44px}.bottom-nav{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:none}.bottom-nav button{font-size:12px;padding:10px;min-height:42px;background:#162510}.bottom-nav #pocket-badge{display:inline-grid;place-items:center;min-width:19px;padding:0 4px;margin-left:5px;border-radius:5px;background:#365221;color:#d7f1b4;font-size:11px}.utility-dialog{color:#dcebd0;margin:auto;width:min(560px,calc(100% - 24px));max-height:80dvh;padding:18px;overflow:auto;overscroll-behavior:contain;border-radius:14px}.utility-dialog:not([open]){display:none}.utility-dialog::backdrop{background:#020803b8;backdrop-filter:blur(4px)}.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.drawer-heading h2{font-size:17px;margin:0}.drawer-heading h2 span{font-size:12px}.drawer-heading button{padding:9px 12px;font-size:11px;flex:none}.dossier-content{grid-template-columns:1fr;padding-top:12px;gap:18px}.bag-items{grid-template-columns:1fr}.utility-dialog .log{max-height:none}.utility-dialog .help{font-size:11px;line-height:1.8}.item-card{grid-template-columns:28px 1fr auto}.item-card button{min-height:38px}.music-volume{margin-bottom:14px}
/* Opening stays within the device viewport. */
.intro-screen{padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom));overflow:hidden}.cinema{width:min(560px,100%);height:min(760px,calc(100dvh - 22px));max-height:none;overflow:hidden;display:flex;flex-direction:column;border-width:3px;border-radius:12px}.cinema-top{flex:none;padding:8px;gap:6px;flex-wrap:nowrap}.cinema-top button{font-size:9px;padding:7px 6px;min-height:32px;flex:1 1 auto;white-space:nowrap}.cinema-art{flex:0 0 clamp(160px,34dvh,275px);height:auto;min-height:0}.cinema-copy{flex:1;min-height:0;padding:18px;display:flex;flex-direction:column}.cinema-copy h2{font-size:21px;line-height:1.45;margin:0 0 12px}.cinema-copy #intro-text{font-size:13px;line-height:1.9;min-height:0;margin:0;flex:1}.story-tools{flex:none;margin:10px 0}.story-tools button{min-height:32px}.cinema-nav{flex:none;margin-top:auto;gap:10px;min-height:44px}.cinema-nav .primary{min-height:44px;padding:11px 15px;font-size:12px;min-width:0}.frame-dots{gap:5px}.frame-dots i{width:16px}.banquet-playing .cinema{height:min(760px,calc(100dvh - 22px))}.banquet-prologue{flex:1;min-height:0}.banquet-picture{height:100%}.banquet-playing .cinema-copy{display:none}.dialogue-arrival .cinema-art,.dialogue-arrival .cinema-copy{animation-duration:.9s}
/* Resume retains all fields, with a compact live portrait next to appearance controls. */
.applying .cinema-art,.applying .story-tools{display:none}.applying .cinema-copy{padding:12px;overflow-y:auto;overscroll-behavior:contain}.applying .cinema-copy h2{font-size:18px;margin-bottom:9px}.applying .cinema-nav{padding-top:8px;position:sticky;bottom:-12px;background:#131f10;padding-bottom:7px;z-index:5}.resume-form{flex:1;margin:0;padding:10px;min-height:0}.resume-form.hidden{display:none}.resume-grid{grid-template-columns:1fr 1fr;gap:9px}.resume-form label{font-size:10px;gap:4px;min-width:0}.resume-form input,.resume-form select{padding:5px 7px;min-height:33px;width:100%;font-size:16px;border-width:1px}.resume-form select{font-size:13px}.resume-photo{grid-template-columns:82px 1fr;gap:9px;margin-top:10px}.portrait-stage{height:130px;border-width:2px}.portrait-stage .avatar{transform:scale(.48);left:calc(50% - 93px);bottom:0}.resume-photo>div:first-child>.photo-help{font-size:9px;line-height:1.5;margin:5px 0}.preset-row{gap:5px;margin-bottom:8px}.preset-row>.photo-help{display:none}.preset-row .reset{font-size:10px;padding:6px 9px;min-height:30px}.face-fields{grid-template-columns:1fr 1fr;gap:7px}.photo-actions{gap:5px;margin:8px 0}.photo-actions .reset{padding:7px;font-size:9px;min-height:32px}.resume-photo .photo-help{font-size:9px;line-height:1.6}.camera-video{max-height:85px}.resume-error{font-size:10px;margin-top:5px}
@media(max-width:430px){.wrap{padding-left:9px;padding-right:9px;gap:7px}header{padding:6px 8px}.brand{font-size:13px}header button.reset{font-size:9px;padding:6px 7px}#stats{gap:10px}.grid>aside>.panel{padding:9px 10px}.event{padding:11px 12px}.event h2{font-size:18px}.desc{font-size:12px;line-height:1.7}.choice{padding:8px 10px;min-height:56px}.choice b{font-size:12px}.choice small{font-size:9px}.choices{padding-top:8px;gap:7px}.scene{height:clamp(90px,17dvh,130px)}.bubble{font-size:10px}.cinema-copy{padding:14px}.cinema-copy h2{font-size:19px}.cinema-copy #intro-text{font-size:12px}.chat-person{height:185px}.chat-device{min-height:175px}.office-speaker{height:185px}.scene>.avatar{right:3%}.bottom-nav button{min-height:40px;padding:9px}}
@media(max-height:680px){.wrap{gap:6px;padding-top:max(6px,env(safe-area-inset-top));padding-bottom:max(6px,env(safe-area-inset-bottom))}.grid{gap:6px}header{min-height:34px;padding-top:4px;padding-bottom:4px}.grid>aside>.panel{padding:7px 10px}.week-progress{padding-top:5px;margin-top:6px}.stat-line{margin-bottom:4px}.scene{height:75px}.scene-label{display:none}.scene>.avatar{transform:scale(.36)}.bubble{max-width:71%;font-size:9px;line-height:1.5;padding:5px 8px;bottom:7px}.bubble small{display:none}.event{padding:9px 10px}.event h2{font-size:17px;margin:6px 0}.desc{font-size:11px;line-height:1.6}.choice{min-height:48px;padding:6px 9px}.choice b{font-size:11px}.choice small{font-size:9px;line-height:1.4;margin-top:2px}.choices{gap:5px;padding-top:6px}.choice .reward-hint{margin-top:2px;font-size:9px}.bottom-nav button{min-height:34px;padding:7px;font-size:11px}.cinema-art{flex-basis:140px}.cinema-copy{padding:12px}.cinema-copy h2{font-size:17px;margin-bottom:9px}.cinema-copy #intro-text{font-size:12px;line-height:1.7}.chat-person,.office-speaker{height:138px;width:100px}.chat-device{min-height:120px;width:130px;padding:6px 10px;border-width:3px}.device-speaker{margin-bottom:5px}.device-contact{font-size:12px;margin:4px}.device-mode{font-size:9px}.device-message{font-size:10px;line-height:1.4;margin-top:5px;padding:6px}.call-symbol{font-size:16px;margin-top:3px}.hand-phone{top:55%;left:calc(50% - 54px)}.cinema-top{padding:6px}.cinema-top button{min-height:29px;padding:5px;font-size:9px}.story-tools{margin:6px 0}.cinema-nav .primary{min-height:38px;padding:9px 12px}.applying .cinema-copy h2{font-size:16px}.resume-form{padding:7px}.resume-grid{gap:6px}.resume-photo{margin-top:7px}.resume-photo .photo-help{font-size:8px}.face-fields{gap:5px}.resume-form input,.resume-form select{min-height:29px}.preset-row .reset{min-height:27px;padding:5px 8px}.photo-actions .reset{min-height:28px;padding:5px}.portrait-stage{height:118px}.resume-photo>div:last-child>.photo-help:last-child{display:none}}
@media(orientation:landscape) and (max-height:500px){.wrap{max-width:1050px}.main-play{flex-direction:row}.scene{height:100%;width:32%;flex:none;background-position:60% center}.event{flex:1}.scene>.avatar{bottom:20px;transform:scale(.65)}.bubble{max-width:90%;left:5%;bottom:8px}.desc{font-size:11px}.choice{min-height:36px;padding:4px 8px}.choice .reward-hint{display:none}.choices{gap:4px}.choice small{font-size:9px}.cinema{width:94%;height:calc(100dvh - 16px);display:grid;grid-template-columns:38% 62%;grid-template-rows:auto 1fr}.cinema-top{grid-column:1/-1}.cinema-art{height:100%;min-height:0}.cinema-copy{min-height:0}.banquet-playing .cinema{display:flex}.applying .cinema{display:flex}.applying .cinema-copy{overflow-y:auto}.cinema-copy #intro-text{font-size:11px}.cinema-copy h2{font-size:15px}.cinema-nav{min-height:34px}.cinema-nav .primary{min-height:32px;font-size:10px}.story-tools{margin:3px 0}.story-tools button{min-height:25px;padding:5px 8px}}
/* Opening fit: preserve complete composition */
.banquet-prologue{display:flex;flex-direction:column;justify-content:center;align-items:center;background:#040904;overflow:hidden}.banquet-prologue.hidden{display:none}.banquet-picture{flex:none;width:100%;height:auto;min-height:0;aspect-ratio:16/9;background-size:100% 100%;background-position:center;animation:none;overflow:hidden}.banquet-alice,.banquet-jensen{position:absolute;width:17%;height:auto;aspect-ratio:80/112;object-fit:contain;bottom:31%;image-rendering:pixelated;animation:banquetSway 3s steps(2,end) infinite}.banquet-alice{left:55%}.banquet-jensen{left:33%;animation-delay:-1.5s}.banquet-table-edge{left:29%;width:49%;height:4%;bottom:29%;border-top-width:2px}.banquet-skip{right:14px;bottom:14px;min-height:38px;font-size:11px}.cinema-art{overflow:hidden}.message-scene{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:10px 18px;align-items:center;justify-items:center}.chat-person{width:100%;max-width:150px;height:100%;max-height:calc(34dvh - 20px);object-fit:contain}.chat-device{width:100%;max-width:170px;min-height:0;align-self:center;padding:8px 10px;border-width:4px;box-sizing:border-box}.device-speaker{margin-bottom:7px}.device-contact{font-size:13px;margin:6px 0}.device-message{font-size:11px;line-height:1.6;margin-top:8px;padding:7px}.device-mode{font-size:10px}.call-symbol{font-size:19px;margin-top:5px}.hand-phone{left:39%;top:54%;width:13px;height:22px}.office-conversation{gap:25px;padding:6px 15px}.office-speaker{width:40%;max-width:160px;height:100%;max-height:calc(34dvh - 12px);object-fit:contain}.handoff>.avatar{left:5%;right:auto;bottom:0;transform:scale(.7)}.handoff>.jacket{left:73%;top:48%;width:190px;height:180px;animation:none;transform:translate(-50%,-40%) scale(.65)}.wear .avatar{bottom:0;transform:scale(.8);transform-origin:bottom;animation:none}.wear-word{left:12%;top:30%;font-size:44px}.private-jet{max-height:80%;object-fit:contain}
@media(max-height:680px){.message-scene{gap:10px;padding:7px 14px}.chat-person{max-height:130px;max-width:100px}.chat-device{max-width:145px;min-height:0;padding:6px 9px;border-width:3px}.device-speaker{margin-bottom:4px}.device-mode{font-size:9px}.device-contact{font-size:11px;margin:3px}.device-message{font-size:10px;line-height:1.4;margin-top:4px;padding:5px}.call-symbol{font-size:15px;margin-top:3px}.office-speaker{max-height:130px;max-width:100px}.handoff>.avatar{left:0;transform:scale(.54)}.handoff>.jacket{left:76%;top:46%;transform:translate(-50%,-40%) scale(.5)}.wear .avatar{transform:scale(.55)}.wear-word{font-size:32px}}
@media(orientation:landscape) and (max-height:500px){.banquet-picture{width:auto;height:100%;max-width:100%;max-height:100%;aspect-ratio:16/9;background-size:contain;background-repeat:no-repeat}.banquet-prologue{justify-content:center}.chat-person,.office-speaker{max-height:100%;height:100%;width:100%;object-fit:contain}.message-scene{padding:8px;gap:8px}.chat-device{padding:5px 7px}.device-message{font-size:9px}.handoff>.avatar{left:-10%;transform:scale(.6)}.handoff>.jacket{left:78%;transform:translate(-50%,-40%) scale(.48)}}
@media(prefers-reduced-motion:reduce){.banquet-jensen,.banquet-alice{animation:none}}

/* Anonymous AI guests at the opening dinner. */
.banquet-ai-guest{position:absolute;width:17%;height:auto;aspect-ratio:80/112;object-fit:contain;left:33%;bottom:31%;image-rendering:pixelated;animation:banquetSway 3s steps(2,end) infinite;animation-delay:-1.5s}@media(prefers-reduced-motion:reduce){.banquet-ai-guest{animation:none}}

/* Unified seated banquet: every guest and glass uses the same scene coordinates. */
.banquet-picture{background:none;animation:none;aspect-ratio:16/9;position:relative}.banquet-party-scene{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.banquet-picture:after{display:none}@media(orientation:landscape) and (max-height:500px){.banquet-picture{background:none}}

/* Keep resume narration visible above the form without stretching the column. */
.applying .cinema-copy #intro-text{display:block;flex:0 0 auto;min-height:36px;margin:0 0 10px;padding:8px 10px;background:#0c180b;border-left:2px solid #8acb3b;font-size:12px;line-height:1.7;cursor:pointer}
@media(max-height:680px){.applying .cinema-copy #intro-text{font-size:11px;line-height:1.6;margin-bottom:7px;padding:6px 8px}}
/* Application rejection: pixel resume drops, red stamp lands, sad music replaces BGM. */
.rejection-scene{display:grid;place-items:center;background:radial-gradient(ellipse at center,#40302a,#101a10 75%)}.rejected-resume{position:relative;width:118px;height:142px;background:#ded8b8;border:4px solid #8e9274;box-shadow:6px 6px #060c08;transform:rotate(-7deg);animation:resumeRejected .8s steps(8,end) both}.resume-lines{position:absolute;inset:18px 14px;background:repeating-linear-gradient(0deg,transparent 0 9px,#7a886866 9px 12px)}.rejected-stamp{position:absolute;top:52px;left:-17px;white-space:nowrap;border:4px solid #b3443c;color:#b3443c;padding:7px 13px;font-size:24px;font-weight:900;background:#e2d9b7dd;transform:rotate(-12deg);animation:rejectStamp .65s steps(5,end) .2s both}.rejected-caption{position:absolute;bottom:10px;color:#d8bba1;font-size:11px}.application-failed .cinema-copy h2{color:#edb59e}.application-failed .story-tools{display:flex}@keyframes resumeRejected{from{opacity:0;translate:0 -60px;rotate:10deg}to{opacity:1;translate:0 0;rotate:0deg}}@keyframes rejectStamp{from{opacity:0;scale:2.2}to{opacity:1;scale:1}}@media(max-height:680px){.rejected-resume{width:78px;height:102px}.rejected-stamp{font-size:17px;top:35px;left:-16px;padding:4px 9px;border-width:3px}.resume-lines{inset:12px}.rejected-caption{bottom:5px;font-size:9px}}@media(prefers-reduced-motion:reduce){.rejected-resume,.rejected-stamp{animation:none}}
/* Simplified resume: immutable hobby, identity and glasses controls. */
.fixed-field{display:flex;align-items:center;min-height:33px;padding:5px 8px;border:1px solid #3f572f;background:#101b0d;color:#b4d194;font-size:14px;border-radius:4px}.face-fields>label:last-child{grid-column:1/-1}.player-avatar .glasses.ai-glasses{color:#97f1bc;text-shadow:1px 0 #153b2b,-1px 0 #153b2b,0 0 5px #6ee1a766}.player-avatar .glasses.optical-glasses{color:#303936;text-shadow:0 1px #b8c1ac;letter-spacing:-7px}.resume-form .face-fields{gap:9px}.photo-actions .reset{font-size:9px}@media(max-height:680px){.fixed-field{min-height:29px;font-size:13px}.resume-form .face-fields{gap:6px}}
/* Scene-driven gameplay and a readable, independently scrollable story region. */
.scene{position:relative;isolation:isolate;height:clamp(88px,18dvh,145px)}.scene .bubble,.scene .building{display:none}.stage-visual{position:absolute;inset:0;z-index:0;overflow:hidden}.stage-visual svg{display:block;width:100%;height:100%;image-rendering:pixelated}.scene>.avatar{z-index:2;right:0;bottom:10px;transform:scale(.49);animation:none!important;pointer-events:none}.stage-caption{position:absolute;left:10px;bottom:8px;max-width:70%;z-index:3;padding:5px 8px;border:1px solid #719354;background:#091609ec;color:#d2edb0;font-size:10px;line-height:1.6;pointer-events:none}.stage-enter svg{animation:stageArrival .55s ease both}.stage-result svg{animation:stageConsequence .6s ease both}.scene-chart{transform-box:fill-box;transform-origin:bottom;animation:chartGrow .7s ease both}.scene-box{animation:boxArrive .8s ease both}.scene-code{animation:codeAppear .8s steps(2,end) both}.scene-attendee{animation:attendeeNod 2.4s steps(2,end) infinite}.scene-led{animation:ledBlink 1.3s steps(2,end) infinite}.scene-light{animation:lightPulse 2s steps(2,end) infinite}.scene-message{animation:boxArrive .65s ease both}.scene-paper{animation:boxArrive .65s ease both}.scene-chip{animation:lightPulse 1.8s steps(2,end) infinite}.scene-sleep{animation:sleepRise 2.4s ease infinite}.scene-result-mark{animation:resultStamp .5s ease both}.scene-spark{animation:sparkFade 1s ease both}.event{overflow:hidden;gap:0}.event .desc{flex:1 1 0;min-height:60px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#719354 #14200f;padding-right:5px;touch-action:pan-y;font-size:13px;line-height:1.85;white-space:normal;overflow-wrap:anywhere}.event .desc:focus-visible{outline:1px solid #9cce5e;outline-offset:2px}.choices{flex:none;min-height:0;margin-top:0;padding-top:10px;gap:7px}.choice{min-height:57px;padding:8px 11px}.choice b{font-size:12px}.choice small{font-size:10px}.choice .reward-hint{line-height:1.3;font-size:9px}.event #result{min-height:0}.event.is-result .desc{display:none}.event.is-result #result{display:flex;flex-direction:column;flex:1;min-height:0}.event.is-result .choices{display:none}.event.is-result .toast{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;line-height:1.85;font-size:12px}.event.is-result #next{flex:none;min-height:44px}.event h2{font-size:19px;margin:7px 0 8px}.scene-caption{font-size:10px}@keyframes stageArrival{from{opacity:0;transform:translateX(13px)}to{opacity:1;transform:translateX(0)}}@keyframes stageConsequence{from{opacity:.2;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes chartGrow{from{transform:scaleY(.08)}to{transform:scaleY(1)}}@keyframes boxArrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes codeAppear{from{opacity:0}to{opacity:1}}@keyframes attendeeNod{50%{transform:translateY(2px)}}@keyframes ledBlink{50%{opacity:.35}}@keyframes lightPulse{50%{opacity:.6}}@keyframes sleepRise{0%{opacity:0;transform:translateY(5px)}50%{opacity:1}100%{opacity:0;transform:translateY(-9px)}}@keyframes resultStamp{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}@keyframes sparkFade{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-15px)}}
@media(max-width:430px){.event{padding:10px 11px}.event .desc{font-size:12px;line-height:1.8;min-height:64px}.event h2{font-size:18px;margin:6px 0 7px}.choice{min-height:56px;padding:7px 9px}.choices{gap:6px;padding-top:8px}.choice small{font-size:9px}.stage-caption{max-width:70%;font-size:9px}.scene>.avatar{transform:scale(.45)}}
@media(max-height:680px){.scene{height:76px}.scene>.avatar{transform:scale(.31);bottom:5px}.stage-caption{font-size:9px;padding:3px 6px;bottom:5px;max-width:75%}.event h2{font-size:16px;margin:5px 0 6px}.event .desc{min-height:57px;font-size:12px;line-height:1.65}.choice{min-height:49px;padding:5px 8px}.choice b{font-size:11px}.choice small{font-size:9px}.choices{padding-top:7px;gap:5px}.event .toast{padding:9px;margin-top:7px}.event #next{margin-top:9px}}
@media(orientation:landscape) and (max-height:500px){.main-play .scene{height:100%;width:30%}.scene>.avatar{transform:scale(.48);bottom:12px}.stage-caption{max-width:94%;left:3%;bottom:5px}.event .desc{min-height:35px;font-size:11px;line-height:1.5}.event h2{font-size:15px;margin:4px 0}.choice{min-height:35px;padding:4px 7px}.choices{padding-top:5px;gap:4px}.choice .reward-hint{display:none}}
@media(prefers-reduced-motion:reduce){.stage-visual svg,.stage-visual svg *{animation:none!important}}
/* Five compact vitals; names and values stack so the disguise label stays visible. */
#stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.stat-line{flex-direction:column;align-items:center;justify-content:center;gap:2px;margin-bottom:4px;line-height:1.25}.stat-line>span:first-child{font-size:10px;white-space:nowrap}.stat-line>span:last-child{font-size:12px}.stat:nth-child(5) .fill{background:#a8be79!important;box-shadow:inset 0 2px #d7e6b2,inset 0 -2px #6c8c4c}.stat.stat-low .fill{background:#ed9471!important;box-shadow:inset 0 2px #ffd0a0,inset 0 -2px #ac5c43}.week-progress{margin-top:7px;padding-top:6px}@media(max-width:350px){#stats{gap:6px}.stat-line>span:first-child{font-size:9px}.stat-line>span:last-child{font-size:11px}}
/* Minimal gameplay: artwork, one short prompt, three plain actions. */
.event .event-top,.stage-caption,.choice small{display:none}.scene{height:clamp(120px,28dvh,235px)}.scene>.avatar{transform:scale(.72);bottom:0;right:5%}.event-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;flex:none}.event-heading h2{font-size:20px;line-height:1.4;margin:0}.event-heading button{font-size:10px;padding:6px 9px;min-height:32px;flex:none;border-color:#425b32;color:#a7bd99;background:#121e0f;box-shadow:none}.event .desc{flex:0 1 auto;min-height:0;max-height:5.5em;font-size:14px;line-height:1.8;padding:0;overflow-y:auto;margin-bottom:12px;color:#d3dec9}.event{padding:17px 18px}.choices{margin-top:auto;padding-top:8px;gap:10px}.choice{min-height:49px;padding:12px 14px;border-width:1px;box-shadow:2px 2px #040b05}.choice b{font-size:14px;font-weight:500;line-height:1.5}.choice .arrow{font-size:13px}.event.is-result .toast{padding:0;margin-top:12px;border:0;background:none;display:flex;align-items:center;font-size:15px;line-height:1.9;overflow:auto}.event.is-result .toast strong{font-weight:500}.event.is-result #next{margin-top:16px}.event.is-result .event-heading{margin-bottom:0}.full-event-story{color:#cdddc0;font-size:13px;line-height:2}.event-detail-option{border-top:1px solid #33492b;padding:13px 0;font-size:12px;color:#d8ebc5}.event-detail-option p{font-size:11px;color:#acbc9e;line-height:1.8;margin:7px 0}.event-detail-option small{font-size:10px;color:#bedb8b}@media(max-width:430px){.scene{height:clamp(115px,25dvh,200px)}.scene>.avatar{transform:scale(.65);right:0}.event{padding:15px}.event-heading h2{font-size:18px}.event .desc{font-size:13px;line-height:1.8}.choice{min-height:48px;padding:11px 12px}.choice b{font-size:13px}.choices{gap:9px}}@media(max-height:680px){.scene{height:110px}.scene>.avatar{transform:scale(.45)}.event{padding:12px}.event-heading{margin-bottom:7px}.event-heading h2{font-size:17px}.event .desc{font-size:12px;margin-bottom:8px;line-height:1.7}.choice{min-height:44px;padding:9px 11px}.choice b{font-size:12px}.choices{gap:7px;padding-top:6px}.event.is-result .toast{font-size:13px}}@media(orientation:landscape) and (max-height:500px){.main-play .scene{height:100%;width:38%}.scene>.avatar{transform:scale(.7)}.event-heading h2{font-size:15px}.event .desc{font-size:11px;line-height:1.5;margin-bottom:6px}.event{padding:10px}.choice{min-height:34px;padding:6px 9px}.choice b{font-size:11px}.choices{gap:5px;padding-top:5px}.event-heading button{min-height:27px;font-size:9px;padding:4px 7px}}
/* Show the ten-point cap without adding another row of explanatory text. */
.stat-line>span:last-child>span{display:inline;font-size:9px;color:#8da580!important}.stat-line>span:last-child{white-space:nowrap}

.choice-feedback{position:fixed;z-index:1000;pointer-events:none;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px;animation:choice-score-float 1.9s ease both;font-size:13px;line-height:1.4;font-weight:700;text-shadow:0 1px 4px #000}
.choice-feedback span{padding:4px 7px;border-radius:8px;background:#102017b8;backdrop-filter:blur(3px)}
.choice-feedback .score-up{color:#beff79}.choice-feedback .score-down{color:#ffaf96}.choice-feedback .reward-earned{flex-basis:100%;text-align:right;color:#ffe5a2;background:#182218a8}
@keyframes choice-score-float{0%{opacity:0;transform:translateY(8px)}18%,70%{opacity:1}100%{opacity:0;transform:translateY(-24px)}}
.choice:disabled{cursor:default;opacity:.65}.pocket-tip{max-width:340px}.pocket-tip p{line-height:1.7;color:#bdc9b1}.pocket-tip .primary{width:100%}
@media(prefers-reduced-motion:reduce){.choice-feedback{animation-name:choice-score-still}@keyframes choice-score-still{0%,100%{opacity:0}15%,80%{opacity:1}}}

/* The shift clock controls the environment; event type controls its animation. */
body[data-period=morning]{background-color:#162c20;background-image:radial-gradient(ellipse at 80% 0,#4f76524d,transparent 65%),linear-gradient(#192e22,#0b1b13)}
body[data-period=afternoon]{background-color:#302c1b;background-image:radial-gradient(ellipse at 85% 10%,#d3995540,transparent 65%),linear-gradient(#342f1e,#181e13)}
body[data-period=night]{background-color:#0b1523;background-image:radial-gradient(ellipse at 80% 0,#39638e33,transparent 65%),linear-gradient(#111f31,#080f18)}
body[data-period=morning] .event{background:linear-gradient(#203c2b,#14291d)}
body[data-period=afternoon] .event{background:linear-gradient(#39351f,#23291b)}
body[data-period=night] .event{background:linear-gradient(#192b39,#111f29)}
body[data-period=morning] header,body[data-period=morning] aside>.panel{background:#1d3425}
body[data-period=afternoon] header,body[data-period=afternoon] aside>.panel{background:#343321}
body[data-period=night] header,body[data-period=night] aside>.panel{background:#142333}
body[data-period=night] .choice{background:#1d3338;border-color:#628578}
body[data-period=afternoon] .choice{background:#343b23;border-color:#8b9160}

/* Larger opening narration, with readable wrapping on small screens. */
#intro-screen .cinema-copy h2{font-size:26px;line-height:1.45}
#intro-screen .cinema-copy #intro-text{font-size:19px;line-height:1.85;overflow-y:auto;overflow-wrap:anywhere;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}
#intro-screen.applying .cinema-copy h2{font-size:23px}
#intro-screen.applying .cinema-copy #intro-text{font-size:16px;line-height:1.75}
@media(max-width:430px){#intro-screen .cinema-copy h2{font-size:24px}#intro-screen .cinema-copy #intro-text{font-size:18px}#intro-screen.applying .cinema-copy h2{font-size:21px}#intro-screen.applying .cinema-copy #intro-text{font-size:16px}}
@media(max-height:680px){#intro-screen .cinema-copy h2{font-size:22px;margin-bottom:9px}#intro-screen .cinema-copy #intro-text{font-size:17px;line-height:1.75}#intro-screen.applying .cinema-copy h2{font-size:20px}#intro-screen.applying .cinema-copy #intro-text{font-size:15px;line-height:1.7}}
@media(orientation:landscape) and (max-height:500px){#intro-screen .cinema-copy h2{font-size:21px}#intro-screen .cinema-copy #intro-text{font-size:16px;line-height:1.7}}

/* Decision effects stay visible; reward hints remain in the details panel. */
.choice .option-effects{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:11px;line-height:1.5;margin-top:5px;font-weight:500}
.option-effects .effect-positive{color:#c6efa0}.option-effects .effect-negative{color:#f1b69a}.option-effects>span{white-space:nowrap}
.choice{min-height:62px;padding:10px 12px}.choices{gap:8px}
@media(max-height:680px){.choice{min-height:55px;padding:7px 10px}.choice .option-effects{font-size:10px;gap:1px 8px;margin-top:3px}.choices{gap:6px}}
@media(orientation:landscape) and (max-height:500px){.choice{min-height:43px;padding:5px 8px}.choice .option-effects{font-size:10px;margin-top:2px;gap:1px 7px}.choices{gap:5px}}

/* Full event narrative is the main story; no separate details drawer. */
.event .desc{flex:1 1 auto;max-height:none;min-height:0;line-height:1.75;margin-bottom:10px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.event-heading{margin-bottom:8px}.choices{margin-top:0;flex:none}
@media(max-height:680px) and (orientation:portrait){.main-play .scene{height:80px}.event .desc{font-size:12px;line-height:1.65;margin-bottom:6px}.event-heading h2{font-size:16px}.event-heading{margin-bottom:5px}.choices{padding-top:4px}}

/* WeChat/mobile: the story owns its natural height; artwork yields space first. */
.wrap{height:100vh;height:var(--game-height,100dvh)}
.main-play .scene{height:clamp(72px,15dvh,120px)}
.event .desc{flex:0 0 auto;overflow:visible;max-height:none;min-height:0;line-height:1.65;margin:0 0 9px;font-size:14px}
.event .choices{margin-top:auto;padding-top:4px;gap:7px}
.event-heading h2{font-size:19px;line-height:1.35}
.event .choice{min-height:58px;padding:8px 11px}.event .choice b{line-height:1.4;font-size:13px}
.event.is-result #result{flex:1}.event.is-result .toast{overflow:visible;flex:0 0 auto;margin-top:6px;font-size:14px;line-height:1.7}.event.is-result #next{margin-top:auto}
.event.layout-overflow{overflow-y:auto;overscroll-behavior:contain}
.layout-tight .event{padding:9px 11px}.layout-tight .event .desc{font-size:13px;line-height:1.6;margin-bottom:6px}.layout-tight .event-heading{margin-bottom:5px}.layout-tight .choice{min-height:51px;padding:6px 9px}.layout-tight .choices{gap:5px}
.layout-small .event .desc{font-size:12px;line-height:1.55}.layout-small .event-heading h2{font-size:16px}.layout-small .event .choice b{font-size:12px}.layout-small .event .option-effects{font-size:10px;margin-top:2px}.layout-small .event .choice{min-height:45px;padding:5px 8px}
@media(max-width:600px){.wrap{gap:5px;padding-top:max(5px,env(safe-area-inset-top));padding-bottom:max(5px,env(safe-area-inset-bottom))}.grid{gap:5px}header{min-height:32px;padding:3px 8px}.grid>aside>.panel{padding:7px 9px}.stat-line{flex-direction:row;gap:3px;margin-bottom:3px}.stat-line>span:first-child{font-size:10px}.stat-line>span:last-child{font-size:11px}.stat-line>span:last-child>span{display:none}.bar{height:6px}.week-progress{padding-top:4px;margin-top:5px}.week-line{margin-bottom:3px}.bottom-nav button{min-height:34px;padding:6px}.event{padding:11px 12px}.scene>.avatar{transform:scale(.4)}.event-heading h2{font-size:18px}}
/* Daily vignettes reuse the player's chosen skin, shirt and glasses. */
.is-routine>.avatar{display:none}.daily-backdrop,.daily-player{position:absolute;inset:0}.daily-backdrop svg{width:100%;height:100%;display:block;image-rendering:pixelated}.daily-player{pointer-events:none;left:30%;width:1px;inset-block:0}.daily-player .player-avatar{bottom:9%;left:-93px;right:auto;transform:scale(.4);transform-origin:bottom center;animation:daily-breathe 2s steps(2,end) infinite!important}.daily-asleep .player-avatar{transform:scale(.32) rotate(-82deg);bottom:-1%;left:-120px;animation:none!important}.daily-guest{animation:daily-breathe 2s steps(2,end) infinite}.daily-phone,.daily-map,.daily-gift{animation:daily-bob 2.4s steps(3,end) infinite}.daily-flash{animation:daily-flash 2.8s steps(1,end) infinite}.daily-robot{animation:daily-deliver 3s steps(6,end) infinite}.daily-coffee{animation:daily-flash 1.8s steps(2,end) infinite}.daily-duck,.daily-cat{animation:daily-bob 1.8s steps(2,end) infinite}.daily-zzz{animation:sleepRise 2.4s ease infinite}.daily-wife{animation:daily-flash 4s steps(1,end) infinite}
@keyframes daily-breathe{50%{translate:0 2px}}@keyframes daily-bob{50%{translate:0 -4px}}@keyframes daily-flash{0%,35%,100%{opacity:0}40%,75%{opacity:1}}@keyframes daily-deliver{50%{translate:12px 0}}
@media(prefers-reduced-motion:reduce){.daily-player .player-avatar,.daily-backdrop svg *{animation:none!important}}
.main-play .scene>.avatar{transform:scale(var(--scene-person-scale,.4));bottom:0}
.daily-player .player-avatar{transform:scale(var(--scene-person-scale,.4))}
.daily-asleep .player-avatar{transform:scale(var(--scene-person-scale,.32)) rotate(-82deg)}
/* Wake, stretch, then don the jacket: two outfits share the same chosen avatar. */
.main-play .scene.is-routine:has(.daily-waking){height:clamp(120px,25dvh,190px)}
.daily-waking .player-avatar.outfit-casual{animation:daily-stretch 1.8s steps(4,end) both!important}
.daily-waking .player-avatar.outfit-jacket{animation:daily-put-on .7s steps(5,end) 1.8s both!important}
.daily-coat-hook{animation:daily-coat-away .5s steps(3,end) 1.8s both}
.event .wake-quote{font-size:21px;line-height:1.8;padding-top:20px;color:#d5efaa}
@keyframes daily-stretch{0%{opacity:1;rotate:0deg}25%{rotate:-7deg;translate:0 -3px}55%{rotate:7deg;translate:0 -5px}85%{opacity:1;rotate:0deg}100%{opacity:0}}
@keyframes daily-put-on{from{opacity:0;translate:0 -10px}to{opacity:1;translate:0 0}}
@keyframes daily-coat-away{to{opacity:0;translate:-50px 0}}
@media(prefers-reduced-motion:reduce){.daily-waking .player-avatar.outfit-casual{display:none}.daily-waking .player-avatar.outfit-jacket{animation:none!important}.daily-coat-hook{display:none}}

/* Persistent game title above the opening animation and its controls. */
.cinema-game-title{flex:none;grid-column:1/-1;margin:0;padding:10px 12px 7px;font-size:28px;line-height:1;letter-spacing:5px;text-align:center;color:#c9f58c;text-shadow:2px 2px #142909,-1px 0 #71cdbc,1px 0 #b17c9755;border-bottom:1px solid #587437;background:#162a1b}
#intro-screen .cinema-art{flex-basis:clamp(130px,calc(34dvh - 40px),235px)}
@media(max-height:680px){.cinema-game-title{font-size:23px;padding:8px 10px 6px}#intro-screen .cinema-art{flex-basis:108px}}
@media(orientation:landscape) and (max-height:500px){.cinema{grid-template-rows:auto auto 1fr}.cinema-game-title{font-size:20px;padding:5px 10px}#intro-screen .cinema-art{flex-basis:auto}}

/* The language selector is visible during the tavern prologue and every intro frame. */
.cinema-masthead{position:relative;flex:none;grid-column:1/-1}.cinema-masthead .cinema-game-title{text-align:left;padding-right:140px;font-size:25px;letter-spacing:3px}
.intro-language{position:absolute;right:9px;top:50%;transform:translateY(-50%);display:flex;gap:4px;align-items:center}.intro-language a{display:block;padding:6px 7px;border:1px solid #516b39;background:#0c1c13;color:#b7cba0;text-decoration:none;font-size:11px;line-height:1.2;white-space:nowrap;border-radius:5px}.intro-language a[aria-current=page]{background:#8bbd43;color:#15250f;border-color:#b2d377}.intro-language a:focus-visible{outline:2px solid #e6f8c7;outline-offset:2px}
@media(max-width:350px){.cinema-masthead .cinema-game-title{font-size:22px;padding-right:130px}.intro-language a{font-size:10px;padding:6px}}
@media(orientation:landscape) and (max-height:500px){.cinema-masthead .cinema-game-title{font-size:20px;padding-top:5px;padding-bottom:5px}.intro-language a{padding:4px 7px}}
/* English takes more horizontal space, so artwork yields before narrative text. */
html[lang=en] .cinema-masthead .cinema-game-title{font-size:16px;letter-spacing:.4px;line-height:1.3}
html[lang=en] .brand{font-size:12px;letter-spacing:0}html[lang=en] #stats{gap:4px}html[lang=en] .stat-line>span:first-child{font-size:9px}html[lang=en] .stat-line{gap:2px}
html[lang=en] .event-heading h2{font-size:18px;line-height:1.25}html[lang=en] .event .desc{font-size:13px;line-height:1.5}html[lang=en] .event .choice b{font-size:12px;line-height:1.3}html[lang=en] .choice .option-effects{font-size:10px;gap:2px 9px}
html[lang=en] .layout-tight .event .desc{font-size:12px;line-height:1.4}html[lang=en] .layout-small .event .desc{font-size:11px;line-height:1.35}html[lang=en] .layout-small .event-heading h2{font-size:15px}
html[lang=en] .event .wake-quote{font-size:19px;line-height:1.6}html[lang=en] .cinema-copy #intro-text{font-size:17px;line-height:1.65}html[lang=en] .cinema-copy h2{font-size:23px}html[lang=en] .cinema-nav .primary{font-size:11px}
html[lang=en] .applying .cinema-copy #intro-text{font-size:14px;line-height:1.5}html[lang=en] .applying .cinema-copy h2{font-size:20px}html[lang=en] .device-message{font-size:12px;line-height:1.5}html[lang=en] .device-contact{font-size:15px}
@media(max-width:600px){html[lang=en] .stat-line{flex-direction:column}html[lang=en] .cinema-masthead .cinema-game-title{font-size:14px;letter-spacing:0}html[lang=en] .bottom-nav button{font-size:10px}}

/* Tavern title and language choices sit beneath the scene, above the skip control. */
.banquet-playing .cinema{position:relative}
.banquet-playing .cinema-top{order:0}
.banquet-playing .banquet-prologue{order:1;position:static}
.banquet-playing .cinema-masthead{order:2;display:flex;flex-direction:column;align-items:center;gap:12px;padding:0 12px 70px;background:#040904}
.banquet-playing .cinema-masthead .cinema-game-title{padding:0;border:0;background:none;text-align:center;font-size:28px;letter-spacing:4px;line-height:1.2}
.banquet-playing .intro-language{position:static;transform:none;justify-content:center;gap:12px}
.banquet-playing .intro-language a{min-width:88px;min-height:38px;display:grid;place-items:center;padding:8px 14px;font-size:13px;box-sizing:border-box}
html[lang=en] .banquet-playing .cinema-masthead .cinema-game-title{font-size:23px;letter-spacing:1px}
@media(max-height:600px){.banquet-playing .cinema-masthead{gap:8px;padding-bottom:56px}.banquet-playing .cinema-masthead .cinema-game-title{font-size:24px}html[lang=en] .banquet-playing .cinema-masthead .cinema-game-title{font-size:20px}.banquet-playing .intro-language a{min-height:34px}}
@media(orientation:landscape) and (max-height:500px){.banquet-playing .banquet-prologue{overflow:hidden}.banquet-playing .cinema-masthead{flex-direction:row;justify-content:center;gap:20px;padding:8px 12px 12px}.banquet-playing .cinema-masthead .cinema-game-title{font-size:20px}.banquet-playing .intro-language a{min-height:30px;padding:5px 9px;min-width:68px;font-size:11px}.banquet-playing .banquet-skip{right:8px;bottom:8px}}
