/* R3: 住处、独立日程和独立通告。旧剧情及档案保持原样。 */
@media(max-height:580px) and (min-width:650px){.ah-home-scene .ah-guide-note{display:none}}
@media(max-height:580px) and (min-width:650px){.ah-daily-page.ah-paper-page{padding-top:16px}.ah-daily-page>.ah-page-title{margin-bottom:14px}.ah-daily-page>.ah-page-title h1{font-size:21px;margin:5px 0}.ah-daily-page>.ah-page-title p{display:none}.ah-routine-config>header{padding-bottom:10px}.ah-routine-config>header h2{font-size:16px}}
.actor-home[data-page="intro"] .ah-topbar{background:transparent!important;color:#fff7e8!important;border-color:#ffffff26!important}.actor-home[data-page="intro"] .ah-resources{display:none}
.ah-time-slot>span{white-space:nowrap;display:flex;flex-direction:column;gap:5px}.ah-time-slot>span>small{font:9px/1.5 var(--ah-sans);letter-spacing:.12em;opacity:.6}.ah-time-slot>span>b{font:400 17px/1.5 var(--ah-serif)}
.ah-view{inset:86px 0 102px}.ah-paper-page{padding-top:30px}
.ah-nav>a{position:relative;display:grid;place-items:center;gap:5px;min-width:85px;padding:8px 11px;border-radius:5px;color:#9e947f}.ah-nav>a i{font:22px/1 Georgia,serif;font-style:normal}.ah-nav>a span{font-size:9px;letter-spacing:.04em}.ah-nav>a:hover{color:#735d3d;background:#e4dac480}.ah-nav>button{min-width:85px}
.ah-right-tools{position:absolute;right:28px;bottom:18px;z-index:35;display:flex;align-items:flex-end;gap:14px}.ah-right-tools .ah-testbar{position:static;gap:5px}.ah-phone-entry{position:relative;display:grid;place-items:center;gap:4px;width:61px;height:66px;border:1px solid #e1d1b4;border-radius:13px;background:#f6efdfed;color:#927950;box-shadow:0 5px 20px #112a2933}.ah-phone-entry i{font:29px/1 Georgia,serif;font-style:normal}.ah-phone-entry span{font-size:8px}.ah-phone-entry >#ahPhoneBadge{position:absolute;right:-5px;top:-6px;min-width:18px;height:18px;border:2px solid #fbf6ea;border-radius:12px;padding:0 3px;background:#b47366;color:#fff9ec;font-size:9px;display:grid;place-items:center;pointer-events:none}.ah-phone-entry>*{pointer-events:none}
.ah-in-scene .ah-right-tools{display:none}.ah-home-upgrade{padding:10px 16px;border:1px solid #dec89f88;border-radius:4px;background:#f6eddbeb;color:#89704c;font-size:11px;margin-top:5px;box-shadow:0 6px 20px #11262422}.ah-greeting h1{font-size:clamp(30px,3.6vw,48px)}.ah-greeting p{max-width:315px}
.ah-today{width:340px;padding:24px 25px 0;top:9%}.ah-today h2{font-size:25px}.ah-today-heading>span{font-size:9px}.ah-home-steps{display:grid;border-top:1px solid #d9cfbd}.ah-home-steps>button{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid #d9cfbd;background:none;text-align:left}.ah-home-steps>button:last-child{border-bottom:0}.ah-home-steps i{font:25px/1 Georgia,serif;font-style:normal;color:#a48a5c}.ah-home-steps span{display:grid;gap:7px}.ah-home-steps strong{font-size:13px;font-weight:500}.ah-home-steps small{font-size:10px;color:#9a947e}.ah-home-steps b{font-size:16px;font-weight:400;color:#a1885d;margin-left:auto}
.ah-guide-note{position:absolute;left:7%;bottom:13%;max-width:370px;padding:17px 20px;background:#f8f2e5ed;border-left:3px solid #b59963;color:#7a785f;box-shadow:0 8px 30px #132a2a33}.ah-guide-note small{font-size:9px;letter-spacing:.1em;color:#a48654}.ah-guide-note p{font-size:12px;line-height:1.8;margin:9px 0}.ah-guide-note .ah-button{font-size:10px;min-height:32px}.ah-guide-schedule [data-nav="schedule"]{box-shadow:0 0 0 2px #d9b76d inset;background:#ead5ab88;color:#87683c}
.actor-home[data-page="intro"] .ah-view{inset:0}.actor-home[data-page="intro"] .home-background{filter:none!important;opacity:1!important}.actor-home[data-page="intro"] .home-atmosphere{background:linear-gradient(90deg,#1927289e,#1b292d2e),linear-gradient(0deg,#152c30b3,transparent)!important}.actor-home[data-page="intro"] .ah-topbar{color:#faf6eb;background:transparent;border-color:#ffffff26}
.ah-arrival{position:relative;width:100%;height:100%;min-height:320px;color:#fbf5e8}.ah-arrival-label{position:absolute;top:20%;left:8%}.ah-arrival-label>small{font-size:8px;letter-spacing:.2em;color:#d9c49b}.ah-arrival-label h1{font:400 clamp(26px,3.2vw,44px)/1.8 var(--ah-serif);margin:18px 0;text-shadow:0 3px 15px #18363355}.ah-arrival-copy{position:absolute;bottom:9%;left:8%;right:8%;padding:25px 30px;border-top:2px solid #bba374;background:#f6f0e5f0;color:#425348;box-shadow:0 18px 55px #142d2d22}.ah-arrival-copy>small{font-size:11px;color:#a08256}.ah-arrival-copy>p{font:19px/2 var(--ah-serif);margin:16px 0 20px;min-height:76px}.ah-arrival-copy>footer{display:flex;justify-content:space-between;align-items:center}.ah-arrival-copy footer>span{font-size:9px;color:#a09276}
.ah-routine-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.85fr);gap:42px;align-items:start}.ah-routine-config>header{display:flex;align-items:center;justify-content:space-between;padding:0 0 16px;border-bottom:1px solid var(--ah-line)}.ah-routine-config h2{font:400 22px/1.5 var(--ah-serif);margin:0}.ah-routine-config header>span{font-size:11px;color:#a08b68}
.ah-time-slot{display:grid;grid-template-columns:75px 1fr;align-items:center;gap:10px 18px;padding:19px 0;border-bottom:1px solid var(--ah-line)}.ah-time-slot>span{grid-row:span 4;font:400 17px/1.6 var(--ah-serif);color:#a28b63;align-self:start;margin-top:18px}.ah-time-slot>label{font-size:10px;color:#a69a82}.ah-time-slot select{width:100%;min-height:41px;padding:8px 12px;border:1px solid #ccbfa4;border-radius:4px;background:#fffaf0;color:#516451;font-size:13px}.ah-time-slot p{font-size:11px;line-height:1.8;color:#8f927f;margin:0}.ah-time-slot>small{font-size:10px;color:#b08f5e;line-height:1.8}.ah-time-slot.is-done{opacity:.65}.ah-routine-actions{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}.ah-routine-actions .ah-button{flex:1;min-width:140px}.ah-routine-config>.ah-fineprint{font-size:10px;line-height:1.9;color:#a79e85}
.ah-growth{position:sticky;top:0;background:#fffaf070;border:1px solid #ded3bc;border-radius:5px;padding:24px}.ah-growth>small{font-size:8px;letter-spacing:.15em;color:#a89165}.ah-growth>h2{font:400 24px/1.5 var(--ah-serif);margin:12px 0 20px}.ah-growth-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px 22px}.ah-growth-stats>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}.ah-growth-stats span{font-size:11px;color:#9a957f}.ah-growth-stats strong{font:400 25px/1.2 var(--ah-serif);color:#92764d}.ah-growth-stats meter{grid-column:span 2;width:100%;height:5px;border:0;border-radius:3px;background:#e6dfcf}.ah-growth-stats meter::-webkit-meter-bar{background:#e6dfcf;border:0}.ah-growth-stats meter::-webkit-meter-optimum-value{background:#a5af94;border-radius:3px}.ah-growth-wallet{display:flex;justify-content:space-between;gap:15px;padding:20px 0;font-size:10px;color:#a29579}.ah-growth-wallet b{display:block;font-size:13px;font-weight:500;color:#7c876d;margin-top:6px}.ah-routine-progress{border-block:1px solid var(--ah-line);padding:14px 0;font-size:11px;line-height:1.8;color:#a1875e}.ah-routine-records article{padding:19px 0 0}.ah-routine-records small{font-size:10px;color:#a48a5c}.ah-routine-records p{font:14px/1.9 var(--ah-serif);color:#71816e;margin:10px 0}.ah-routine-records span{font-size:10px;color:#a08351;line-height:1.7}.ah-routine-records em{display:block;font-size:9px;color:#b3a386;font-style:normal;margin-top:6px}
.ah-current-works{padding:20px 23px;background:#e7dfcc66;border:1px solid #d4c5a6;border-radius:5px}.ah-current-works>small{font-size:10px;color:#a28a5e}.ah-current-works article{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:17px 0;border-bottom:1px solid #d8ccb5}.ah-current-works article:last-child{border-bottom:0;padding-bottom:0}.ah-current-works h2{font:400 20px/1.5 var(--ah-serif);margin:0 0 7px}.ah-current-works p{font-size:11px;color:#869078;margin:0 0 8px}.ah-current-works article span{font-size:10px;color:#a39578}.ah-current-works .ah-button{flex:none}
.ah-housing-list{display:grid;grid-template-columns:1fr 1fr;gap:28px}.ah-house{border:1px solid #d9ccb1;background:#fbf7ecaa;border-radius:5px;overflow:hidden}.ah-house.is-current{border-color:#a79976;box-shadow:0 0 0 2px #bbab8130}.ah-house>img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.ah-house>div{padding:22px}.ah-house small{font-size:8px;color:#b09a70;letter-spacing:.06em}.ah-house h2{font:400 25px/1.5 var(--ah-serif);margin:10px 0}.ah-house p{font-size:12px;line-height:1.9;color:#8b927d;min-height:45px}.ah-house div>span{display:block;font-size:10px;color:#a08a62;margin:15px 0}.ah-house .ah-button{min-width:160px}.ah-house em{font-size:10px;font-style:normal;color:#b0876c;margin-left:12px}.ah-lab-money{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px;padding-top:20px;border-top:1px dashed #cdbd9c;color:#a2967d;font-size:10px;line-height:1.8}.ah-lab-money .ah-button{flex:none;font-size:10px}
@media(max-width:1000px){.ah-today{width:310px;right:4%;top:6%}.ah-greeting{max-width:300px}.ah-greeting h1{font-size:36px}.ah-greeting p{max-width:255px}.ah-guide-note{left:6%;max-width:310px;bottom:10%;padding:13px 16px}.ah-guide-note p{font-size:11px}.ah-routine-layout{gap:25px;grid-template-columns:1.1fr .9fr}.ah-growth{padding:20px}.ah-time-slot{grid-template-columns:62px 1fr;gap:8px 12px}.ah-right-tools{right:20px}.ah-nav>a,.ah-nav>button{min-width:75px;padding:8px 10px}}
@media(max-height:580px) and (min-width:650px){.ah-view{inset:66px 0 78px}.ah-today{width:280px;padding:15px 18px 0;top:4%;max-height:96%;overflow:auto}.ah-today h2{font-size:20px;margin:13px 0 8px}.ah-today>p{margin-bottom:13px}.ah-home-steps>button{padding:12px 0;gap:10px}.ah-home-steps strong{font-size:11px}.ah-home-steps small{font-size:9px}.ah-home-steps i{font-size:21px}.ah-greeting{top:8%}.ah-greeting h1{font-size:28px;line-height:1.5}.ah-greeting p{max-width:260px;font-size:10px}.ah-home-upgrade{font-size:10px;padding:8px 12px}.ah-guide-note{bottom:4%;padding:10px 14px;max-width:300px}.ah-guide-note p{font-size:10px;margin:5px 0}.ah-guide-note small{font-size:8px}.ah-guide-note .ah-button{font-size:9px;min-height:28px;padding:5px 10px}.ah-right-tools{bottom:12px;right:16px;gap:10px}.ah-phone-entry{width:49px;height:52px;border-radius:10px}.ah-phone-entry i{font-size:24px}.ah-phone-entry span{font-size:7px}.ah-right-tools .ah-testbar>button{font-size:9px;min-height:30px;padding:5px 10px}.ah-nav>a,.ah-nav>button{min-width:65px;padding:6px 8px}.ah-nav>a i{font-size:19px}.ah-nav>a span{font-size:8px}.ah-arrival-label{top:22%;left:6%}.ah-arrival-label h1{font-size:25px;line-height:1.5;margin:10px 0}.ah-arrival-label>small{font-size:7px}.ah-arrival-copy{bottom:6%;padding:15px 20px;left:6%;right:6%}.ah-arrival-copy>p{font-size:14px;line-height:1.8;min-height:48px;margin:9px 0 12px}.ah-arrival-copy>small{font-size:9px}.ah-arrival-copy .ah-button{font-size:10px;min-height:31px;padding:6px 12px}.ah-routine-layout{gap:22px}.ah-time-slot{padding:14px 0}.ah-growth{padding:18px}.ah-growth>h2{font-size:21px;margin:8px 0 15px}.ah-growth-stats{gap:12px 18px}.ah-growth-stats strong{font-size:21px}.ah-growth-wallet{padding:15px 0}.ah-house>div{padding:17px}.ah-house h2{font-size:22px}.ah-house p{font-size:11px}.ah-current-works h2{font-size:18px}}
@media(max-width:760px) and (min-width:650px){.ah-nav>a,.ah-nav>button{min-width:59px;padding:6px 7px}.ah-right-tools{gap:8px}.ah-today{width:260px}.ah-guide-note{max-width:270px}.ah-routine-layout{grid-template-columns:1fr 1fr;gap:18px}.ah-growth{padding:15px}.ah-time-slot{grid-template-columns:45px 1fr;gap:7px 10px}.ah-time-slot>span{font-size:14px}.ah-time-slot select{font-size:11px}.ah-growth-stats{gap:13px}.ah-current-works article{align-items:start;gap:14px}.ah-current-works .ah-button{font-size:9px;min-width:110px}}
@media(max-width:649px){.ah-view{inset:76px 0 157px}.ah-nav{left:12px;right:12px;bottom:12px;justify-content:space-between}.ah-nav>a,.ah-nav>button{min-width:0;flex:1;padding:7px 4px}.ah-nav>a i{font-size:18px}.ah-nav>a span{font-size:8px}.ah-nav>button span{font-size:8px}.ah-right-tools{bottom:82px;right:14px;gap:12px}.ah-right-tools .ah-testbar{display:grid;gap:4px;justify-items:end}.ah-right-tools .ah-testbar>button{min-height:31px;font-size:9px}.ah-phone-entry{width:54px;height:56px}.ah-greeting{position:relative;top:auto;left:auto;max-width:none;padding:32px 8% 0}.ah-greeting h1{font-size:34px;line-height:1.5}.ah-greeting p{max-width:85%;font-size:11px}.ah-home-scene{min-height:100%;padding-bottom:24px}.ah-today{position:relative;top:auto;right:auto;width:86%;max-height:none;margin:35px 7% 0;padding:22px 23px 0}.ah-today h2{font-size:24px}.ah-guide-note{position:relative;left:auto;bottom:auto;max-width:none;width:86%;margin:20px 7% 0}.ah-home-caption{display:none}.ah-routine-layout{grid-template-columns:1fr;gap:26px}.ah-growth{position:relative;top:auto}.ah-time-slot{grid-template-columns:62px 1fr}.ah-time-slot select{font-size:13px}.ah-housing-list{grid-template-columns:1fr;gap:23px}.ah-house>div{padding:20px}.ah-lab-money{align-items:start;flex-direction:column;gap:13px}.ah-current-works article{display:grid;gap:15px}.ah-current-works .ah-button{justify-self:start}.ah-arrival-label{left:8%;top:17%}.ah-arrival-label h1{font-size:31px;line-height:1.8}.ah-arrival-copy{left:6%;right:6%;bottom:8%;padding:23px;max-height:51%;overflow:auto}.ah-arrival-copy>p{font-size:17px;min-height:110px;line-height:2}.ah-arrival-copy footer{gap:20px}.ah-arrival-copy footer .ah-button{font-size:11px}}

/* Source V2 narrative: retain the existing home style with full touch targets. */
.ah-scene-page.source-v2 button{min-height:44px}
.ah-scene-page.source-v2 .ah-dialogue-meta>small{font-size:10px}
@media(max-height:500px) and (orientation:landscape){
 .ah-scene-page.source-v2 .ah-dialogue{padding:8px 14px}
 .ah-scene-page.source-v2 .ah-dialogue-line{min-height:0;gap:8px}
 .ah-scene-page.source-v2 .ah-dialogue-line>p{margin:4px 0}
 .ah-scene-page.source-v2[data-phase="choice"] .ah-dialogue-line{display:none}
 .ah-scene-page.source-v2 .ah-scene-choices .ah-button{min-height:44px;font-size:12px}
}
