.episode-two-actor{position:absolute;inset:0;pointer-events:none}
.episode-two-scene .scene-art{object-position:center top}
.episode-two-night .scene-art-layer{filter:brightness(.43) saturate(.65)}
.episode-two-help:empty{display:none}
.episode-two-help .episode-hint{margin-right:16px}
/* Announce pending work without inserting a transient line into the dialogue.
   Existing disabled controls show progress while their dimensions stay fixed. */
.episode-two-scene .episode-status{position:absolute;width:1px;height:1px;margin:0!important;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Keep the newly supplied serving tray visible below the dialogue. */
.episode-two-scene[data-scene-id=serving] .episode-pane{position:absolute;top:43%;margin-top:0;max-height:28%;padding-bottom:16px}
.episode-two-scene[data-scene-id=serving] .scene-shade{background:linear-gradient(180deg,#11131718 0%,transparent 34%,#111317a6 44%,#111317b8 67%,#11131720 77%,#11131726 100%)}
.episode-two-ending h1{font-size:34px;font-weight:400;margin:10px 0 20px}
/* The ending sits on busy room art: give its text a reading surface. */
.episode-two-scene .episode-two-ending{background:linear-gradient(180deg,#0f0d0b00 0,#0f0d0bd9 48px,#0f0d0bf2 100%);padding-top:56px}
.episode-two-scene .episode-two-ending{max-height:calc(100% - 90px)}
.episode-two-ending .episode-two-vocabulary{display:grid;gap:8px;list-style:none;margin:0 0 24px;padding:0;font-size:20px;line-height:1.5;overflow-wrap:anywhere}
.episode-two-link{display:block;text-align:center;text-decoration:none}
.episode-two-actions{position:fixed;z-index:80;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:calc(100vw - 24px)}
.episode-two-dev{max-width:230px;background:#171b20e8;color:#efdbb7;border:1px solid #b6976570;border-radius:8px;padding:8px;font:12px/1.7 Arial,sans-serif}
.episode-two-dev label,.episode-two-dev button,.episode-two-dev a{display:block;margin-top:8px}
.episode-two-dev select{background:#24262b;color:inherit;max-width:170px}
.episode-two-dev summary{cursor:pointer}
@media(max-width:639px){.episode-two-dev{font-size:10px}.episode-two-dev:not([open]){opacity:.7}.episode-two-scene .scene-caption{left:16px;right:180px;top:max(18px,calc(env(safe-area-inset-top) + 6px));text-align:left}}
@media(prefers-reduced-motion:reduce){.episode-two-scene .line-rise{animation:none}}

/* The player's phone sits in the established room. All chat text stays live DOM. */
.episode-phone-stage{align-items:center;justify-content:center;padding:82px 22px 28px;box-sizing:border-box}
.episode-two-scene .episode-phone{--phone-paper:#f5f0e7;--phone-ink:#302d29;--phone-muted:#746d62;--phone-gold:#ead5ac;position:relative;flex:1;width:100%;max-width:360px;max-height:720px;min-height:0;margin:0;padding:7px;border:1px solid #9b8d7c;border-radius:38px;background:#252526;box-shadow:0 24px 50px #0007,inset 0 0 0 2px #494744;overflow:visible;color:var(--phone-ink);font-family:'K Hada Sans',Arial,sans-serif}
.episode-phone::before{content:'';position:absolute;right:-4px;top:120px;width:3px;height:46px;background:#55504a;border-radius:0 2px 2px 0}
.episode-phone-screen{height:100%;min-height:0;display:flex;flex-direction:column;border-radius:30px;overflow:hidden;background:var(--phone-paper)}
.episode-phone-status{position:relative;flex:none;height:34px;display:flex;align-items:center;justify-content:space-between;padding:7px 20px 0;font-size:11px;font-weight:600}
.episode-phone-camera{position:absolute;width:66px;height:17px;left:50%;top:8px;transform:translateX(-50%);border-radius:99px;background:#252526}
.episode-phone-battery{width:20px;height:9px;border:1px solid #514e46;border-radius:3px;position:relative;padding:1px}
.episode-phone-battery::before{content:'';display:block;width:13px;height:5px;border-radius:1px;background:#514e46}
.episode-phone-battery::after{content:'';position:absolute;right:-3px;top:2px;width:2px;height:3px;background:#514e46;border-radius:0 1px 1px 0}
.episode-phone-header{display:flex;align-items:center;gap:11px;padding:12px 17px 14px;border-bottom:1px solid #dfd6c9;flex:none}
.episode-phone-avatar{position:relative;display:block;flex:none;width:43px;height:43px;border-radius:50%;overflow:hidden;background:#504030;box-shadow:0 0 0 2px #fff8}
.episode-phone-avatar img{position:absolute;width:180%;height:auto;max-width:none;left:-25%;top:-8%}
.episode-phone-contact{min-width:0}
.episode-phone-header .episode-phone-name{font-size:17px;font-weight:600;line-height:1.4;margin:0}
.episode-phone-header .episode-phone-account{font-size:11px;line-height:1.5;margin:2px 0 0;color:var(--phone-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.episode-phone-thread{flex:1;min-height:80px;overflow-y:auto;overscroll-behavior:contain;padding:16px 14px;scrollbar-width:thin;scrollbar-color:#b7a485 transparent}
.episode-phone-date{font-size:9px;letter-spacing:.16em;text-align:center;color:var(--phone-muted);margin:0 0 19px}
.episode-phone-messages{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:15px}
.episode-phone-message{display:flex;flex-direction:column;align-items:flex-start;max-width:90%;align-self:flex-start;gap:4px;min-width:0}
.episode-phone-message.is-outgoing{align-items:flex-end;align-self:flex-end}
.episode-phone-sender{font-size:10px;line-height:1.5;color:var(--phone-muted);padding:0 3px;overflow-wrap:anywhere;max-width:100%}
.episode-phone .episode-phone-bubble{font-size:14px;line-height:1.55;margin:0;padding:11px 13px;background:#fffdf9;border:1px solid #e7dfd2;border-radius:3px 16px 16px;white-space:pre-wrap;overflow-wrap:anywhere}
.episode-phone .is-outgoing .episode-phone-bubble{background:var(--phone-gold);border-color:#dfc695;border-radius:16px 3px 16px 16px}
.episode-phone-controls{flex:none;max-height:55%;overflow-y:auto;padding:12px 14px;background:#fcf9f2;border-top:1px solid #dfd6c9;scrollbar-width:thin}
.episode-phone .episode-choices{margin:0;gap:6px}
.episode-phone .episode-choice{font-family:inherit;font-size:13px;line-height:1.4;min-height:44px;border:1px solid #c6b797;border-radius:13px;padding:9px 12px;background:transparent;color:#443a2c;backdrop-filter:none}
.episode-phone .episode-choice:hover{background:#eee2ca;border-color:#9b804f}
.episode-phone .episode-choice small{font-size:11px;color:#6d6557}
.episode-phone .episode-reply{margin:10px 0 0;padding:0;border:0;gap:7px;align-items:flex-end}
.episode-phone .episode-reply textarea{font-size:16px;line-height:1.4;min-height:48px;height:48px;max-height:96px;padding:11px 12px;resize:none;border-radius:15px;border:1px solid #c9bda6;background:#fffefb;color:var(--phone-ink)}
.episode-phone .episode-reply textarea::placeholder{color:#797163;opacity:1;font-size:12px}
.episode-phone .episode-reply button{min-width:45px;min-height:46px;border:0;border-radius:14px;background:#78603d;color:white;font-size:12px}
.episode-phone .episode-continue{min-height:44px;margin:0;border:0;border-radius:14px;background:#3e3932;color:#fffaf1;font:13px/1.5 'K Hada Sans',Arial,sans-serif;backdrop-filter:none}
.episode-phone .episode-status{font-size:12px;color:#6e6454;margin:0 0 9px}
.episode-phone .episode-error{color:#883d2a;margin:0 0 10px}
.episode-phone .episode-error .episode-hint{color:#883d2a}
.episode-phone-home{height:4px;width:90px;margin:7px auto 9px;border-radius:99px;background:#3e3932;flex:none}
.episode-phone :is(button,textarea):focus-visible{outline-color:#8a6334;outline-offset:2px}
@media(max-height:700px){.episode-phone-stage{padding:68px 18px 18px}.episode-phone-header{padding:8px 14px}.episode-phone-thread{padding:12px}.episode-phone-controls{padding:10px 12px}}
.episode-portrait[data-keyboard-open=true] .episode-phone-stage{padding:68px 18px 12px}
.episode-portrait[data-keyboard-open=true] .episode-phone{background:#252526}
.episode-portrait[data-keyboard-open=true] .episode-phone .episode-choices{display:none}
.episode-portrait[data-keyboard-open=true] .episode-phone-status{display:none}
.episode-portrait[data-keyboard-open=true] .episode-phone .episode-reply{position:static;background:transparent;padding:0}
