/* Qiyun Atelier · the approved warm-gold iPhone art direction.
   Additive presentation layer. Game state and event handlers remain in game.js. */
:root{--premium-ink:#61341f;--premium-muted:#8e674e;--premium-cream:#fff3da;--premium-gold:#d99b48;--premium-line:#f7d69a}
.premium-ui #sceneHome .play-merge-btn .pm-text small{text-wrap:balance}
.premium-ui{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;color:var(--premium-ink);background:#e9c8a8}
.premium-ui button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.premium-ui [hidden]{display:none!important}
.premium-ui button:focus-visible{outline:3px solid #633d20;outline-offset:3px}
.premium-ui .stage-bg{background:radial-gradient(ellipse at 50% 25%,#efe0cc,#b18a6c);min-height:var(--app-height,100dvh)}
.premium-ui #phoneFrame{isolation:isolate;width:100%;max-width:460px;height:calc(var(--app-height,100dvh) - var(--platform-footer-space,0px));max-height:none;border-radius:0;overflow:hidden;background:#d4ad8c;box-shadow:0 20px 100px #5f321a33}
.premium-ui #phoneFrame.in-home{--brand-space:150px;--chapter-h:58px;--tab-h:44px;--task-h:64px;--play-h:74px;--dock-h:58px;--home-gutter:16px}
.premium-ui .premium-brand{display:none}
.premium-ui #phoneFrame.in-home .premium-brand{display:flex;position:absolute;z-index:8;top:calc(13px + env(safe-area-inset-top,0px));left:50%;width:200px;height:78px;transform:translateX(-50%);flex-direction:column;align-items:center;justify-content:center;pointer-events:none;color:#fff2cb;text-align:center;filter:drop-shadow(0 3px 2px #54291280)}
.premium-brand::before{content:"";position:absolute;width:154px;height:63px;top:7px;border:1px solid #ffe7a8;transform:rotate(-5deg);border-radius:42% 42% 40% 40%;opacity:.7}
.premium-brand .brand-owner{font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:17px;font-weight:800;line-height:1.05;letter-spacing:2px;text-shadow:1px 1px #895022;position:relative}
.premium-brand h1{font-family:"Songti SC","Noto Serif CJK SC",serif;font-weight:800;font-size:36px;letter-spacing:3px;line-height:1.12;margin:2px 0 0;text-shadow:0 1px #8a4015,0 -1px #fff9e8,1px 2px #7b3a12;position:relative}
.premium-brand .brand-edition{font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:12px;letter-spacing:4px;line-height:1.5;font-weight:800;color:#713c1b;min-width:108px;padding:0 13px;border:1px solid #ffe4a0;border-radius:30px;background:linear-gradient(#fff8df,#f9d38a);box-shadow:0 2px 0 #a7642e,inset 0 0 0 2px #fff5d080;position:relative}
.premium-ui #phoneFrame.in-home .hud-top{z-index:10;position:absolute;top:calc(100px + env(safe-area-inset-top,0px));left:0;right:0;height:44px;min-height:44px;padding:0 12px;display:flex;gap:5px;background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.premium-ui #phoneFrame.in-home .level-badge{height:36px;min-width:128px;flex:1;display:flex;align-items:center;gap:4px;position:relative;padding:3px 8px 3px 52px;border:1px solid #fff5dc;border-radius:25px;background:linear-gradient(135deg,#fff8e9,#f6d7ad);box-shadow:0 2px 5px #814e293b,inset 0 0 0 1px #d1a16d}
.premium-ui .premium-avatar{display:none}
.premium-ui #phoneFrame.in-home .premium-avatar{display:block;position:absolute;left:-2px;top:-9px;width:52px;height:52px;border:2px solid #fff3c9;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#fff4d2,#dfa353);box-shadow:0 0 0 2px #bb792d,0 2px 6px #6d301b70;cursor:pointer}
.premium-avatar img{width:100%;height:110%;object-fit:contain;object-position:center bottom;display:block}
.premium-ui #phoneFrame.in-home .lvl-star{flex:none;min-width:28px;width:auto;height:25px;padding:0 3px;color:#6b3819;background:none;box-shadow:none;font-size:14px;font-weight:800;border:0}
.premium-ui #phoneFrame.in-home .lvl-star::before{content:"Lv.";font-size:11px;margin-right:1px}
.premium-ui #phoneFrame.in-home .lvl-bar-wrap{display:block;height:7px;flex:1;min-width:25px;width:auto;margin-top:11px;overflow:visible;position:relative;border-radius:8px;border:1px solid #c59e78;background:#ceb091;box-shadow:inset 0 1px 2px #70421c4d}
.premium-ui #phoneFrame.in-home .lvl-bar-fill{border-radius:6px;background:linear-gradient(#9ce3cf,#3ca88e);box-shadow:inset 0 1px #d5fff5;height:100%;max-width:100%}
.premium-ui .premium-xp{display:none}
.premium-ui #phoneFrame.in-home .premium-xp{display:block;position:absolute;bottom:9px;left:0;right:0;font:700 9px/1.1 -apple-system,sans-serif;color:#6e402a;text-align:center;white-space:nowrap}
.premium-ui #phoneFrame.in-home .hud-resources{flex:none;gap:5px;min-width:0}
.premium-ui #phoneFrame.in-home .hud-pill{height:34px;min-height:34px;border-radius:22px;padding:0 7px;gap:4px;border:1px solid #fff3d9;background:linear-gradient(135deg,#fff8eb,#f4dbb5);box-shadow:0 2px 5px #814e294d,inset 0 0 0 1px #e9bd80;color:#663415;font-size:16px;font-weight:800}
.premium-ui #phoneFrame.in-home .hud-pill img{width:23px;height:23px;object-fit:contain}
.premium-ui #phoneFrame.in-home .hud-pill.energy{color:#fff3ce;background:linear-gradient(150deg,#967044,#734421);border-color:#ca9d63;padding:0 7px;font-size:19px}
.premium-ui #phoneFrame.in-home .hud-pill .ico{display:grid;place-items:center;width:20px;height:24px}
.premium-ui #phoneFrame.in-home .hud-pill .ico svg{width:23px;height:25px}
.premium-ui #phoneFrame.in-home .coin-shop-plus{font-size:13px;width:17px;height:17px;display:grid;place-items:center;background:#a96533;box-shadow:inset 0 1px #f4c68c;color:#fff6df;flex:none}
.premium-ui #phoneFrame.in-home .hud-right-btns{position:absolute;right:11px;top:-52px;gap:7px;display:flex}
.premium-ui #phoneFrame.in-home .hud-circle-btn{height:35px;width:35px;padding:7px;border-radius:50%;border:1px solid #ffeaca;color:#fff7e4;background:linear-gradient(135deg,#bd9770,#72492d);box-shadow:0 0 0 2px #a7794f88,inset 0 0 0 2px #dbb58a,0 3px 5px #70432348}
.premium-ui #phoneFrame.in-home .hud-circle-btn:active{transform:translateY(1px);filter:brightness(.95)}
.premium-ui #sceneHome{position:absolute;inset:0;padding:calc(var(--brand-space) + env(safe-area-inset-top,0px)) var(--home-gutter) calc(14px + env(safe-area-inset-bottom,0px));background:none;gap:0;overflow:hidden;color:var(--premium-ink)}
.premium-ui #sceneHome.active{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(90px,1fr) var(--task-h) auto;grid-template-areas:"summary" "space" "social" "actions"}
.premium-ui #sceneHome .home-summary{grid-area:summary;z-index:5;display:grid;grid-template-rows:var(--tab-h) var(--chapter-h);gap:10px;min-width:0}
.premium-ui #sceneHome .home-room-switcher{height:var(--tab-h);display:flex;position:relative;inset:auto;transform:none;width:100%;margin:0;padding:3px;gap:0;overflow:visible;border-radius:30px;border:1px solid #fff1d3;background:linear-gradient(180deg,#bc936f99,#704b33c9);box-shadow:0 2px 8px #82513138,inset 0 0 0 2px #d6ae83,inset 0 6px 12px #f9e0b066;backdrop-filter:blur(9px)}
.premium-ui #sceneHome .room-chip{flex:1;min-width:0;height:calc(var(--tab-h) - 6px);min-height:0;margin:0;padding:0 4px;border-radius:23px;border:1px solid transparent;background:none;box-shadow:none;color:#fff7e4;font-size:16px;font-weight:750;line-height:1;white-space:nowrap;display:flex;gap:6px;align-items:center;justify-content:center;text-shadow:0 1px 2px #4b261c80;opacity:1}
.premium-ui #sceneHome .room-chip.active{color:#fffaf1;border-color:#fff4c6;background:linear-gradient(165deg,#ffe99f 0%,#f7bb51 16%,#df8a25 62%,#f9c363 100%);box-shadow:0 0 0 1px #d59141,0 2px 6px #8a451c66,inset 0 2px 2px #fff1b1,inset 0 -2px 2px #c97929;font-weight:850}
.premium-ui #sceneHome .room-chip.locked svg{width:17px;height:17px;color:#fff4dc}
.premium-ui #sceneHome .room-chip:not(:last-child):not(.active){border-right:1px solid #edd6b66b;border-radius:0}
.premium-ui #sceneHome .home-chapter-pill{height:var(--chapter-h);min-height:var(--chapter-h);position:relative;inset:auto;transform:none;display:grid;grid-template-columns:79px minmax(0,1fr) auto;grid-template-rows:1fr;gap:7px;padding:8px 9px;border-radius:24px;background:linear-gradient(115deg,#fff9e8f5,#f8e2c4ed);border:1px solid #fffaea;box-shadow:0 3px 9px #85502e25,inset 0 0 0 1px #e9c395;backdrop-filter:blur(8px);white-space:normal}
.premium-ui #sceneHome .premium-chapter-name{display:flex;flex-direction:column;justify-content:center;text-align:center;position:relative;color:#61341f;border-right:1px solid #c7a17d75;padding-right:7px;font-family:"Songti SC","Noto Serif CJK SC",serif;font-weight:800;font-size:15px;line-height:1.3;white-space:nowrap}
.premium-ui #sceneHome .premium-chapter-name small{font:650 10px/1.4 -apple-system,sans-serif;letter-spacing:2px}
.premium-ui #sceneHome .ch-status,.premium-ui #sceneHome .ch-sep,.premium-ui #sceneHome #homeChapterText{display:none}
.premium-ui #sceneHome .crisis-ticker{display:flex;position:static;inset:auto;transform:none;align-items:center;height:auto;min-width:0;padding:0;border:0;background:none;color:#70442c;font-size:10px;line-height:1.55;overflow:hidden;white-space:normal;text-overflow:clip;box-shadow:none;font-weight:600;margin:0;max-height:none}
.premium-ui #sceneHome .chapter-actions{display:flex;position:static;gap:4px;align-items:center;justify-content:flex-end;flex-wrap:nowrap;min-width:0}
.premium-ui #sceneHome .chapter-actions .chapter-sep{display:none}
.premium-ui #sceneHome .chapter-recall,.premium-ui #sceneHome .compare-chip{height:32px;min-height:32px;min-width:37px;padding:0 6px;display:flex;align-items:center;justify-content:center;gap:3px;position:relative;border:1px solid #d9ab72;border-radius:20px;color:#66391f;background:linear-gradient(#fffbea,#f4d7a5);box-shadow:0 2px 2px #b77c3e44,inset 0 1px #fff;font-size:10px;font-weight:750;line-height:1;white-space:nowrap}
.premium-ui #sceneHome .chapter-recall::before,.premium-ui #sceneHome .compare-chip::before{content:"";position:absolute;inset:-6px -1px}
.premium-ui #sceneHome .chapter-icon{height:15px;width:15px;flex:none}
.premium-ui #sceneHome .home-canvas,.premium-ui #sceneHome .home-canvas[data-furnished="true"]{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;overflow:hidden;z-index:0;display:block;background:#d2ad91;border:0;border-radius:0;box-shadow:none;pointer-events:none;container-type:size}
.premium-ui #sceneHome .home-room-img{position:absolute;inset:0;left:0;top:0;width:100%!important;height:100%!important;max-width:none;max-height:none;object-fit:cover;object-position:center 50%;transform:none!important;filter:none!important;mask:none!important;-webkit-mask:none!important;animation:none!important;opacity:1;transition:opacity .25s}
.premium-ui #sceneHome .home-vignette{display:block;position:absolute;inset:0;background:linear-gradient(180deg,#6f35152a 0,transparent 30%,transparent 65%,#a7693420 100%);pointer-events:none}
.premium-ui #sceneHome .room-atmosphere,.premium-ui #sceneHome #ambientCanvas{pointer-events:none}
.premium-ui #sceneHome .home-pins{position:absolute;inset:0;pointer-events:none;z-index:3;transform:none!important}
.premium-ui #sceneHome .renovate-pin{left:var(--premium-pin-x,74%);top:var(--premium-pin-y,60%);width:48px;height:58px;min-height:58px;min-width:48px;transform:translate(-50%,-50%);padding:0;pointer-events:auto;background:none;border:0;z-index:5}
.premium-ui #sceneHome .renovate-pin .pin-site{width:38px;height:38px;border:2px solid #fff6d9;background:radial-gradient(circle at 35% 20%,#fff3b1,#f3b634 44%,#d88a20 80%);box-shadow:0 0 0 2px #dea343,0 0 14px #ffeb9c,0 3px 8px #73411e44;display:grid;place-items:center;position:relative;color:#fff9e9}
.premium-ui #sceneHome .renovate-pin .pin-site::before{content:"";position:absolute;left:12px;bottom:-10px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:10px solid #ffeeb2}
.premium-ui #sceneHome .renovate-pin .pin-site svg{width:23px;height:23px;filter:drop-shadow(0 1px 1px #9b591f)}
.premium-ui #sceneHome .renovate-pin.locked .pin-site{background:radial-gradient(circle at 35% 20%,#f9dfac,#bd925e);box-shadow:0 0 0 2px #b18550,0 3px 8px #73411e44;color:#fff8e8}
.premium-ui #sceneHome .home-social{grid-area:social;position:relative;height:var(--task-h);min-height:var(--task-h);width:100%;display:block;z-index:6;background:none;border:0;padding:0;margin:0;align-self:end;opacity:1;transform:none;pointer-events:auto;box-shadow:none}
.premium-ui #sceneHome .resident-hero{position:absolute;inset:auto auto calc(100% - 3px) -12px;align-self:auto;width:104px;height:142px;min-width:0;z-index:3;cursor:pointer;background:none;box-shadow:none;border:0;transform:none;display:block;overflow:visible}
.premium-ui #sceneHome .hero-avatar-wrap{position:relative;width:104px;height:142px;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;inset:auto}
.premium-ui #sceneHome .hero-avatar-wrap img{width:100%;height:100%;object-fit:contain;object-position:left bottom;filter:drop-shadow(0 1px 1px #fff3cc);display:block;border:0;border-radius:0}
.premium-ui #sceneHome .hero-heart{display:none}
.premium-ui #sceneHome .hero-speech{position:absolute;bottom:46px;top:auto;left:99px;right:auto;width:153px;max-width:calc(100vw - 135px);min-height:42px;padding:9px 12px;border:1px solid #fff8e5;border-radius:23px;background:linear-gradient(140deg,#fffcefef,#f9e2c0f2);box-shadow:0 2px 12px #94603927,inset 0 0 0 1px #eecda6;color:#6a3a23;font-size:11px;line-height:1.55;font-weight:650;white-space:normal;text-align:left;pointer-events:none;transform:translateY(5px);opacity:0;z-index:10}
.premium-ui #sceneHome .hero-speech.show{opacity:1;transform:translateY(0)}
.premium-ui #sceneHome .hero-speech::after{content:"";position:absolute;left:-5px;bottom:13px;width:10px;height:10px;background:#fff1d9;border-left:1px solid #fff8e5;transform:rotate(-30deg)}
.premium-ui #sceneHome .premium-cat-rest{position:absolute;bottom:calc(100% + 1px);left:91px;width:76px;height:52px;object-fit:contain;object-position:center bottom;pointer-events:none;filter:drop-shadow(0 2px 3px #946b3b30)}
.premium-ui #sceneHome .lucky-cat{position:absolute;bottom:calc(100% + 1px);top:auto;left:91px;right:auto;width:76px;height:56px;display:none;border:0;background:none;box-shadow:none;border-radius:0;z-index:8;margin:0;padding:0;transform:none}
.premium-ui #sceneHome .lucky-cat.show{display:block;animation:premiumCatBob 2.5s ease-in-out infinite}
.premium-ui #sceneHome .lucky-cat .cat-face{display:block;width:100%;height:100%}
.premium-ui #sceneHome .lucky-cat .cat-face img{width:100%;height:100%;object-fit:contain}
.premium-ui #sceneHome .lucky-cat .cat-bubble{position:absolute;left:48px;right:auto;top:-14px;bottom:auto;white-space:nowrap;padding:4px 7px;border:1px solid #ffe2a3;border-radius:12px;color:#74421e;font-size:10px;background:#fff0cc;box-shadow:0 2px 5px #7c4b2826}
.premium-ui #sceneHome .home-social:has(.lucky-cat.show) .premium-cat-rest{visibility:hidden}
.premium-ui #sceneHome .home-task-bar{height:100%;width:100%;display:flex;position:relative;gap:6px;align-items:center;min-width:0;border:1px solid #fff5dc;border-radius:22px;background:linear-gradient(112deg,#fff8eaf5,#f8e2c2f5);box-shadow:0 0 0 2px #deb5828c,0 5px 12px #89522f35,inset 0 0 0 2px #ffedcf;backdrop-filter:blur(8px);padding:6px 9px}
.premium-ui #sceneHome .home-next-pill{position:relative;display:grid;grid-template-columns:43px minmax(0,1fr) auto;align-items:center;gap:5px;flex:1;min-width:0;width:auto;height:100%;min-height:44px;margin:0;padding:0;border:0;border-radius:14px;background:none;box-shadow:none;color:#63341e;font-size:17px;font-weight:850;text-align:left}
.premium-ui #sceneHome .premium-task-sample{width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 2px 1px #9e694e22)}
.premium-ui #sceneHome .task-pill-text{white-space:pre-line;font-size:17px;line-height:1.15;font-weight:800;overflow:visible;text-overflow:clip;overflow-wrap:normal;letter-spacing:0;min-width:0}
.premium-ui #sceneHome .task-pill-text::before{content:"下一步装修";display:block;font-size:10px;line-height:1.6;font-weight:600;letter-spacing:.3px;margin-bottom:1px}
.premium-ui #sceneHome .task-pill-divider{display:none}
.premium-ui #sceneHome .task-pill-cost{gap:3px;font-size:20px;white-space:nowrap;margin-left:0;align-items:center;display:flex;line-height:1;color:#63341e}
.premium-ui #sceneHome .task-pill-cost img{width:25px;height:25px}
.premium-ui #sceneHome .task-pill-cost em{font-style:normal;font-size:20px;font-weight:800}
.premium-ui #sceneHome .home-style-btn{height:37px;min-height:37px;min-width:94px;flex:none;display:flex;align-items:center;justify-content:center;gap:4px;padding:0 9px;margin:0;border:1px solid #ffefbc;border-radius:25px;background:linear-gradient(155deg,#fff5c7 5%,#ffd67b 40%,#f3b345 100%);box-shadow:0 2px 0 #b67534,inset 0 0 0 1px #d99b47;color:#6d3c20;font-size:14px;font-weight:800;position:relative}
.premium-ui #sceneHome .home-style-btn::before{content:"";position:absolute;inset:-4px 0}
.premium-ui #sceneHome .home-style-btn::after{content:"›";font-size:22px;line-height:1;margin-left:1px;font-weight:500}
.premium-ui #sceneHome .home-style-btn .style-fan-svg{width:21px;height:21px;flex:none;color:#965230}
.premium-ui #sceneHome .home-style-btn:disabled{opacity:.65;box-shadow:none}
.premium-ui #sceneHome .home-actions{grid-area:actions;position:relative;z-index:6;margin-top:13px;display:grid;grid-template-rows:var(--play-h) var(--dock-h);gap:15px;padding:0;min-width:0;align-self:end}
.premium-ui #sceneHome .play-merge-btn{position:relative;inset:auto;width:calc(100% - 12px);height:var(--play-h);min-height:var(--play-h);margin:0 6px;padding:8px 29px 8px 30px;display:flex;align-items:center;justify-content:center;gap:13px;border:2px solid #ffedb3;border-radius:50px;background:linear-gradient(155deg,#fff0a0 0%,#ffcf50 14%,#f6a522 38%,#ed8615 80%,#eeb347 100%);color:#fff9ec;box-shadow:0 0 0 2px #d4913a,0 0 0 4px #fff0b66b,0 6px 10px #91512c4d,inset 0 3px 3px #fff4c6,inset 0 -4px 3px #c97018;animation:none;overflow:hidden;transform:none}
.premium-ui #sceneHome .play-merge-btn::before,.premium-ui #sceneHome .play-merge-btn::after{content:"";position:absolute;top:13px;bottom:13px;width:22px;opacity:.88;background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url("../assets/ui/laurel.svg");pointer-events:none}
.premium-ui #sceneHome .play-merge-btn::before{left:10px;transform:scaleX(-1)}
.premium-ui #sceneHome .play-merge-btn::after{right:10px}
.premium-ui #sceneHome .play-merge-btn img{flex:none;width:51px;height:51px;object-fit:contain;filter:drop-shadow(0 3px 2px #9b4f1c55)}
.premium-ui #sceneHome .play-merge-btn .pm-sep{display:block;width:1px;height:38px;background:#ffe8a3;box-shadow:1px 0 #b36a273b;flex:none}
.premium-ui #sceneHome .play-merge-btn .pm-text{flex:0 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0;text-align:center}
.premium-ui #sceneHome .play-merge-btn .pm-text strong{font-size:27px;font-weight:850;line-height:1.15;color:#fffaf0;letter-spacing:1px;white-space:nowrap;text-shadow:0 2px #b35d22,0 -1px #fff9ce}
.premium-ui #sceneHome .play-merge-btn .pm-text small{font-size:11px;line-height:1.35;color:#fff7dc;text-shadow:0 1px #a35721;white-space:normal;overflow:visible}
.premium-ui #sceneHome .play-merge-btn .pm-shine{display:none}
.premium-ui #sceneHome .play-merge-btn .badge-pill{position:absolute;right:10px;top:5px}
.premium-ui #sceneHome .play-merge-btn:active{transform:translateY(2px);filter:brightness(.98)}
.premium-ui #sceneHome .home-dock-left{position:relative;inset:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;height:var(--dock-h);margin:0;padding:5px 4px;gap:0;border:1px solid #fff4dd;border-radius:27px;background:linear-gradient(125deg,#fff8e9ec,#f9dfbcdf);box-shadow:0 2px 9px #9d663122,inset 0 0 0 1px #eac69b;backdrop-filter:blur(9px)}
.premium-ui #sceneHome .dock-btn{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:44px;height:100%;min-width:0;border:0;border-radius:0;background:none;box-shadow:none;color:#825133;padding:0 2px;line-height:1;opacity:1}
.premium-ui #sceneHome .dock-btn:not(:last-child)::after{content:"";position:absolute;right:0;top:12px;bottom:7px;width:1px;background:#c5946a8c}
.premium-ui #sceneHome .dock-btn.active{color:#8b4a1d;background:radial-gradient(ellipse at 50% 65%,#ffe789b3,transparent 70%)}
.premium-ui #sceneHome .dock-btn .dock-svg{width:25px;height:25px;stroke-width:1.65;filter:drop-shadow(0 1px 0 #fffaf1)}
.premium-ui #sceneHome .dock-btn .dock-lbl{font-size:12px;font-weight:650;line-height:1.2;white-space:nowrap;letter-spacing:.2px}
.premium-ui #sceneHome .dock-btn.active .dock-lbl{font-weight:850}
.premium-ui #sceneHome .red-dot{top:2px;right:22%;border:1px solid #fff2d8}
.premium-ui .game-modal,.premium-ui .story-sheet{color:#683c24;border:1px solid #fff2d8;background:linear-gradient(135deg,#fff9ec,#f6e2c5);box-shadow:0 18px 60px #4d26186b,inset 0 0 0 2px #d2a776;border-radius:24px}
.premium-ui .gm-head{color:#63371f}
.premium-ui .modal-mask{background:#2f1c1557;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.premium-ui .style-card{background:#fffaf0;border-color:#e3bf8c;border-radius:18px;color:#663f29;overflow:hidden}
.premium-ui .style-preview{background:#ead5bb;border-radius:12px;overflow:hidden}
.premium-ui .style-preview img{object-fit:cover;object-position:center;max-width:100%}
.premium-ui .style-detail{color:#805d43}
.premium-ui .style-name{color:#6a3a20}
.premium-ui .style-modal .gm-head{flex:none}
.premium-ui .premium-error{display:none;position:absolute;z-index:12;top:40%;left:12%;right:12%;padding:14px;border-radius:18px;background:#fff6e7eF;border:1px solid #e7c59c;text-align:center;color:#724427;font-size:13px}
.premium-ui .premium-error.show{display:block}
@keyframes premiumCatBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(min-width:700px) and (min-height:700px){.premium-ui .stage-bg{display:grid;grid-template-columns:minmax(0,1fr);place-items:center}.premium-ui #phoneFrame{max-width:430px;height:min(932px,var(--app-height,100dvh));border-radius:26px}}
@media(max-height:760px) and (orientation:portrait){
 .premium-ui #phoneFrame.in-home{--brand-space:121px;--chapter-h:49px;--tab-h:39px;--task-h:58px;--play-h:65px;--dock-h:53px;--home-gutter:13px}
 .premium-ui #phoneFrame.in-home .premium-brand{height:61px;top:5px;width:180px}.premium-brand h1{font-size:29px}.premium-brand .brand-owner{font-size:14px}.premium-brand .brand-edition{font-size:10px;min-width:90px}.premium-brand::before{height:52px;width:140px}
 .premium-ui #phoneFrame.in-home .hud-top{top:calc(72px + env(safe-area-inset-top,0px))}.premium-ui #phoneFrame.in-home .hud-right-btns{top:-41px}.premium-ui #phoneFrame.in-home .hud-circle-btn{width:32px;height:32px;padding:6px}
 .premium-ui #sceneHome .home-summary{gap:7px}.premium-ui #sceneHome .home-chapter-pill{padding:5px 7px;grid-template-columns:70px minmax(0,1fr) auto;gap:5px}.premium-ui #sceneHome .premium-chapter-name{font-size:13px}.premium-ui #sceneHome .premium-chapter-name small{font-size:9px}
 .premium-ui #sceneHome .resident-hero,.premium-ui #sceneHome .hero-avatar-wrap{width:84px;height:113px}.premium-ui #sceneHome .hero-speech{left:79px;bottom:34px;width:150px;font-size:10px;padding:8px 10px}.premium-ui #sceneHome .premium-cat-rest,.premium-ui #sceneHome .lucky-cat{left:75px;width:65px;height:45px}
 .premium-ui #sceneHome .home-actions{gap:11px;margin-top:11px}.premium-ui #sceneHome .play-merge-btn .pm-text strong{font-size:25px}.premium-ui #sceneHome .play-merge-btn img{width:44px;height:44px}.premium-ui #sceneHome .task-pill-text{font-size:15px}.premium-ui #sceneHome .task-pill-text::before{font-size:9px}.premium-ui #sceneHome .home-next-pill{grid-template-columns:36px minmax(0,1fr) auto}.premium-ui #sceneHome .premium-task-sample{width:35px;height:35px}.premium-ui #sceneHome .home-style-btn{min-width:85px;font-size:13px}
}
@media(max-width:350px){
 .premium-ui #phoneFrame.in-home{--home-gutter:10px}.premium-ui #phoneFrame.in-home .hud-top{padding-inline:9px;gap:4px}.premium-ui #phoneFrame.in-home .hud-resources{gap:4px}.premium-ui #phoneFrame.in-home .level-badge{min-width:106px;padding-left:44px;padding-right:5px;gap:0}.premium-ui #phoneFrame.in-home .premium-avatar{width:45px;height:45px;top:-5px}.premium-ui #phoneFrame.in-home .lvl-star{font-size:12px;min-width:25px}.premium-ui #phoneFrame.in-home .hud-pill{padding:0 5px;font-size:14px;gap:3px}.premium-ui #phoneFrame.in-home .hud-pill.energy{font-size:17px}.premium-ui #phoneFrame.in-home .hud-pill img{width:20px;height:20px}.premium-ui #phoneFrame.in-home .hud-circle-btn{width:29px;height:29px}.premium-ui #phoneFrame.in-home .hud-right-btns{gap:5px;right:9px}.premium-ui #phoneFrame.in-home .premium-brand{left:45%}
 .premium-ui #sceneHome .home-chapter-pill{grid-template-columns:62px minmax(0,1fr) auto}.premium-ui #sceneHome .premium-chapter-name{font-size:12px}.premium-ui #sceneHome .chapter-actions{gap:2px}.premium-ui #sceneHome .chapter-recall,.premium-ui #sceneHome .compare-chip{padding:0 4px;font-size:9px}.premium-ui #sceneHome .chapter-icon{display:none}.premium-ui #sceneHome .crisis-ticker{font-size:9px}.premium-ui #sceneHome .room-chip{font-size:14px}
 .premium-ui #sceneHome .home-task-bar{padding:5px 7px;gap:4px}.premium-ui #sceneHome .home-next-pill{grid-template-columns:28px minmax(0,1fr) auto;gap:3px}.premium-ui #sceneHome .premium-task-sample{width:27px;height:32px}.premium-ui #sceneHome .task-pill-text{font-size:14px}.premium-ui #sceneHome .task-pill-cost,.premium-ui #sceneHome .task-pill-cost em{font-size:18px}.premium-ui #sceneHome .task-pill-cost img{width:22px;height:22px}.premium-ui #sceneHome .home-style-btn{min-width:75px;padding:0 5px;font-size:12px}.premium-ui #sceneHome .home-style-btn .style-fan-svg{width:17px;height:17px}
 .premium-ui #sceneHome .play-merge-btn{gap:9px;padding-inline:26px}.premium-ui #sceneHome .play-merge-btn .pm-text strong{font-size:23px}.premium-ui #sceneHome .play-merge-btn .pm-text small{font-size:9px}.premium-ui #sceneHome .dock-btn .dock-lbl{font-size:10px}
}
@media(max-height:620px) and (orientation:portrait){
 .premium-ui #phoneFrame.in-home{--brand-space:103px;--chapter-h:43px;--tab-h:35px;--task-h:53px;--play-h:57px;--dock-h:48px}
 .premium-ui #phoneFrame.in-home .premium-brand{top:3px;height:47px}.premium-brand h1{font-size:25px}.premium-brand .brand-owner{font-size:11px}.premium-brand .brand-edition{font-size:8px;line-height:1.35;min-width:74px}.premium-brand::before{height:43px;width:125px}
 .premium-ui #phoneFrame.in-home .hud-top{top:calc(54px + env(safe-area-inset-top,0px));height:41px;min-height:41px}.premium-ui #phoneFrame.in-home .hud-right-btns{top:-38px}.premium-ui #phoneFrame.in-home .hud-circle-btn{width:28px;height:28px}
 .premium-ui #sceneHome{padding-bottom:calc(9px + env(safe-area-inset-bottom,0px))}.premium-ui #sceneHome .home-summary{gap:6px}.premium-ui #sceneHome .home-chapter-pill{border-radius:19px;padding-block:4px}.premium-ui #sceneHome .crisis-ticker{line-height:1.35}.premium-ui #sceneHome .home-actions{gap:9px;margin-top:9px}.premium-ui #sceneHome .resident-hero,.premium-ui #sceneHome .hero-avatar-wrap{width:64px;height:87px}.premium-ui #sceneHome .hero-speech{left:60px;bottom:24px;width:135px;font-size:9px;line-height:1.5;padding:7px 9px}.premium-ui #sceneHome .premium-cat-rest,.premium-ui #sceneHome .lucky-cat{left:57px;width:53px;height:36px}.premium-ui #sceneHome .play-merge-btn img{width:39px;height:39px}.premium-ui #sceneHome .play-merge-btn .pm-text strong{font-size:23px}.premium-ui #sceneHome .play-merge-btn .pm-sep{height:30px}.premium-ui #sceneHome .dock-btn{gap:1px}.premium-ui #sceneHome .dock-btn .dock-svg{width:22px;height:22px}.premium-ui #sceneHome .home-dock-left{padding-block:2px}
}
@media(orientation:landscape) and (max-height:600px){
 .premium-ui #phoneFrame{max-width:none;width:100%;height:calc(var(--app-height,100dvh) - var(--platform-footer-space,0px));border-radius:0;--land-panel:350px}
 .premium-ui #phoneFrame.in-home{--brand-space:0px;--chapter-h:44px;--tab-h:35px;--task-h:52px;--play-h:55px;--dock-h:47px;--home-gutter:12px}
 .premium-ui #phoneFrame.in-home .premium-brand{left:145px;top:4px;transform:translateX(-50%);height:39px;width:170px}.premium-brand h1{font-size:24px;line-height:1}.premium-brand .brand-owner{font-size:10px}.premium-brand .brand-edition{display:none}.premium-brand::before{height:34px;width:133px;top:1px}
 .premium-ui #phoneFrame.in-home .hud-top{top:47px;right:auto;left:0;width:var(--land-panel);height:38px;min-height:38px;padding-inline:12px;gap:4px}.premium-ui #phoneFrame.in-home .hud-right-btns{top:-40px;right:12px;gap:5px}.premium-ui #phoneFrame.in-home .hud-circle-btn{width:29px;height:29px}.premium-ui #phoneFrame.in-home .level-badge{min-width:120px;padding-left:43px}.premium-ui #phoneFrame.in-home .hud-pill{height:31px;min-height:31px;padding-inline:6px;font-size:14px}.premium-ui #phoneFrame.in-home .hud-resources{gap:4px}.premium-ui #phoneFrame.in-home .premium-avatar{width:43px;height:43px;top:-4px}
 .premium-ui #sceneHome.active{display:grid;grid-template-columns:calc(var(--land-panel) - 24px) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) var(--task-h) auto;grid-template-areas:"summary space" ". space" "social space" "actions space";gap:0 16px;padding:92px 12px 9px}
 .premium-ui #sceneHome .home-summary{gap:6px}.premium-ui #sceneHome .home-chapter-pill{grid-template-columns:63px minmax(0,1fr) auto;padding:4px 6px;gap:4px}.premium-ui #sceneHome .premium-chapter-name{font-size:12px}.premium-ui #sceneHome .premium-chapter-name small{font-size:9px}.premium-ui #sceneHome .crisis-ticker{font-size:9px;line-height:1.4}.premium-ui #sceneHome .chapter-icon{display:none}.premium-ui #sceneHome .chapter-recall,.premium-ui #sceneHome .compare-chip{font-size:9px;padding-inline:5px}
 .premium-ui #sceneHome .home-canvas{left:var(--land-panel);width:calc(100% - var(--land-panel));height:100%;}.premium-ui #sceneHome::before{content:"";position:absolute;z-index:0;left:0;top:0;bottom:0;width:var(--land-panel);background:linear-gradient(145deg,#d9b291,#c3946e)}
 .premium-ui #sceneHome .home-room-img{object-position:center 49%}.premium-ui #sceneHome .resident-hero{position:absolute;left:calc(100% + 12px);bottom:-103px;width:80px;height:108px}.premium-ui #sceneHome .hero-avatar-wrap{width:80px;height:108px}.premium-ui #sceneHome .hero-speech{left:77px;bottom:28px;width:148px;max-width:none;font-size:10px}.premium-ui #sceneHome .premium-cat-rest,.premium-ui #sceneHome .lucky-cat{left:calc(100% + 87px);bottom:-103px;width:59px;height:43px}
 .premium-ui #sceneHome .home-actions{margin-top:8px;gap:8px}.premium-ui #sceneHome .play-merge-btn{width:calc(100% - 4px);margin-inline:2px;gap:10px;padding:6px 25px}.premium-ui #sceneHome .play-merge-btn img{width:38px;height:38px}.premium-ui #sceneHome .play-merge-btn .pm-text strong{font-size:22px}.premium-ui #sceneHome .play-merge-btn .pm-text small{font-size:9px}.premium-ui #sceneHome .play-merge-btn .pm-sep{height:29px}.premium-ui #sceneHome .task-pill-text{font-size:14px}.premium-ui #sceneHome .home-next-pill{grid-template-columns:32px minmax(0,1fr) auto}.premium-ui #sceneHome .premium-task-sample{width:30px;height:34px}.premium-ui #sceneHome .home-style-btn{min-width:81px;font-size:12px}.premium-ui #sceneHome .home-dock-left{padding-block:2px}.premium-ui #sceneHome .dock-btn{gap:1px}.premium-ui #sceneHome .dock-btn .dock-lbl{font-size:10px}.premium-ui #sceneHome .dock-btn .dock-svg{width:22px;height:22px}
}
@media(prefers-reduced-motion:reduce){.premium-ui *, .premium-ui *::before,.premium-ui *::after{animation-duration:.001ms!important;transition-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}

/* Final small-screen legibility and honest completed-state controls. */
.premium-ui #sceneHome .home-task-bar[data-completed="true"] .task-pill-text::before{content:"本章纪念"}
@media(max-width:350px){
 .premium-ui #phoneFrame.in-home .hud-pill{font-size:13px;padding-inline:4px;gap:3px}
 .premium-ui #phoneFrame.in-home .hud-pill img{width:18px;height:18px}
 .premium-ui #phoneFrame.in-home .coin-shop-plus{width:14px;height:14px;font-size:11px}
 .premium-ui #phoneFrame.in-home .hud-pill.energy{width:35px;padding:0 4px;font-size:15px;gap:1px}
 .premium-ui #phoneFrame.in-home .hud-pill.energy .ico{width:14px}
 .premium-ui #phoneFrame.in-home .lvl-bar-wrap{min-width:18px}
 .premium-ui #phoneFrame.in-home .premium-xp{font-size:8px}
}
@media(max-height:620px) and (orientation:portrait){
 .premium-ui #phoneFrame.in-home .premium-brand{top:calc(4px + env(safe-area-inset-top,0px))}
 .premium-brand h1{font-size:23px}.premium-brand .brand-owner{font-size:10px}
}
/* The visual capsules keep full touch targets at every supported size. */
.premium-ui #sceneHome .home-style-btn{height:44px;min-height:44px}
.premium-ui #phoneFrame.in-home .hud-circle-btn{min-width:32px;min-height:32px}
@media(max-width:420px) and (orientation:portrait){
 .premium-ui #phoneFrame.in-home .hud-resources{gap:4px}
 .premium-ui #phoneFrame.in-home .hud-pill{font-size:14px;padding-inline:6px;gap:3px}
 .premium-ui #phoneFrame.in-home .hud-pill img{width:21px;height:21px}
 .premium-ui #phoneFrame.in-home .hud-pill.energy{font-size:17px;padding-inline:5px}
 .premium-ui #phoneFrame.in-home .coin-shop-plus{width:15px;height:15px}
}
@media(max-width:350px){
 .premium-ui #phoneFrame.in-home .hud-pill{font-size:13px;padding-inline:4px}
 .premium-ui #phoneFrame.in-home .hud-pill img{width:18px;height:18px}
 .premium-ui #phoneFrame.in-home .hud-pill.energy{font-size:15px;padding-inline:4px}
 .premium-ui #phoneFrame.in-home .coin-shop-plus{width:14px;height:14px}
 .premium-ui #phoneFrame.in-home .lvl-bar-wrap{min-width:22px}
}
@media(orientation:landscape) and (max-height:600px){
 .premium-ui #phoneFrame.in-home .hud-resources{gap:4px}
 .premium-ui #phoneFrame.in-home .hud-pill{font-size:13px;padding-inline:4px;gap:3px}
 .premium-ui #phoneFrame.in-home .hud-pill img{width:18px;height:18px}
 .premium-ui #phoneFrame.in-home .hud-pill.energy{font-size:15px;width:35px;padding-inline:4px;gap:1px}
 .premium-ui #phoneFrame.in-home .hud-pill.energy .ico{width:14px}
 .premium-ui #phoneFrame.in-home .coin-shop-plus{width:14px;height:14px;font-size:11px}
}

/* GPT combat interaction: stable hit targets and compact, unobstructed status. */
.premium-ui .scene-board .board-shake{animation:none}
.premium-ui .scene-board .merge-grid{touch-action:none}
.premium-ui #sceneBoard .boss-strip{display:flex;flex:0 0 32px;min-height:32px;height:32px;max-height:32px;gap:5px}
.premium-ui #sceneBoard .boss-stage-name{font-size:10px;line-height:12px}
.premium-ui #sceneBoard .boss-countdown{font-size:12px;line-height:14px;font-weight:750}
.premium-ui #sceneBoard .boss-info{flex:1;min-width:0}
.premium-ui #sceneBoard .boss-strip .combo-pill{display:flex;align-items:center;justify-content:center;flex:none;min-width:47px;font-size:11px;line-height:15px;padding:3px 5px;white-space:nowrap}
.premium-ui #phoneFrame[data-board-density="compact"] #sceneBoard .boss-strip{display:flex}
.premium-ui #phoneFrame[data-board-orientation="landscape"] #sceneBoard .boss-strip{height:32px;min-height:32px;max-height:32px}
.premium-ui #sceneBoard .orders-belt{margin-right:54px;width:calc(100% - 54px);box-sizing:border-box}
.premium-ui #sceneBoard .rush-anchor-btn{right:4px;top:4px;width:46px;min-height:44px;padding:2px;font-size:10px;line-height:14px}
.premium-ui #pendingGenBanner{position:static;transform:none;max-width:none;width:100%;min-height:44px;height:44px;flex:0 0 44px;padding:3px 8px;border-radius:12px;font-size:12px;line-height:1.2;box-shadow:0 2px 5px #80432130;z-index:auto}
.premium-ui #sceneBoard #pendingGenBanner{width:calc(100% - 16px);margin:0 8px}
.premium-ui #sceneHome .home-actions:has(>#pendingGenBanner){grid-template-rows:44px var(--play-h) var(--dock-h);gap:7px}
.premium-ui #phoneFrame[data-board-orientation="landscape"] #sceneBoard:has(>#pendingGenBanner){grid-template-rows:44px 74px 32px 25px minmax(44px,1fr) 44px;grid-template-areas:"pending board" "orders board" "boss board" "fever board" "info board" "footer board"}
.premium-ui #phoneFrame[data-board-orientation="landscape"] #sceneBoard #pendingGenBanner{grid-area:pending;width:100%;margin:0}
.premium-ui #phoneFrame[data-board-orientation="landscape"] #sceneBoard{grid-template-rows:74px 32px 25px minmax(54px,1fr) 44px}
.premium-ui #phoneFrame[data-board-orientation="landscape"] #sceneBoard:has(>#pendingGenBanner){grid-template-rows:44px 74px 32px 25px minmax(44px,1fr) 44px}
.premium-ui #phoneFrame[data-board-density="compact"] #sceneBoard .board-status-note{display:none}

/* v49: preserve full-size targets, avoid clipped decorations and tiny board cells. */
.premium-ui #phoneFrame.in-home .hud-circle-btn{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px}
.premium-ui #phoneFrame.in-home .hud-right-btns{top:-49px}
@media(max-height:760px) and (orientation:portrait){.premium-ui #phoneFrame.in-home .hud-right-btns{top:-46px}}
@media(max-height:620px) and (orientation:portrait){.premium-ui #phoneFrame.in-home .hud-right-btns{top:-48px}}
@media(orientation:landscape) and (max-height:600px){.premium-ui #phoneFrame.in-home .hud-right-btns{top:-46px}}
.premium-ui .intro-mood{right:0;top:0;line-height:1;animation:none}
.premium-ui #sceneHome .play-merge-btn{border-radius:18px}
.premium-ui #phoneFrame[data-board-scroll="true"] #sceneBoard .board-stage{overflow-y:auto;overflow-x:hidden;align-items:flex-start;justify-content:center;touch-action:pan-y;overscroll-behavior:contain;scrollbar-width:thin}
.premium-ui #phoneFrame[data-board-scroll="true"] #sceneBoard .board-wood-frame{max-height:none}
@media(min-width:700px) and (min-height:700px){.premium-ui #phoneFrame{height:min(932px,calc(var(--app-height,100dvh) - var(--platform-footer-space,0px)))}}

/* Keep landscape home camera identical after furnishing and fit every 44px dock target. */
@media(orientation:landscape) and (max-height:600px){
 .premium-ui #phoneFrame.in-home{--chapter-h:44px;--tab-h:35px;--task-h:46px;--play-h:48px;--dock-h:50px}
 .premium-ui #sceneHome.active{padding-top:88px;padding-bottom:8px}
 .premium-ui #sceneHome .home-summary{gap:4px}
 .premium-ui #sceneHome .home-actions{margin-top:4px;gap:4px}
 .premium-ui #sceneHome .home-actions:has(>#pendingGenBanner){gap:4px}
 .premium-ui #sceneHome .home-canvas,.premium-ui #sceneHome .home-canvas[data-furnished="true"]{left:var(--land-panel);width:calc(100% - var(--land-panel));height:100%}
 .premium-ui #sceneHome .home-dock-left{padding-block:2px}
}
