:root{--ink:#343a30;--muted:#75786b;--green:#415c48;--paper:#f9f6ed;--line:#dedbcf;--glass:rgba(250,247,238,.93);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:#e8dfcd;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,a,select,input{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #749a80;outline-offset:4px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.study-shell{position:relative;min-height:720px;height:100dvh;overflow:hidden;background:#dfd3bb}.scene{position:absolute;inset:0}.scene canvas{display:block;width:100%;height:100%;outline:0}.scene-fallback{position:absolute;inset:0;background:linear-gradient(135deg,#e8dfcf,#c9b38b)}.fallback-window{position:absolute;width:28%;height:48%;left:27%;top:9%;border:12px solid #ae8657;background:linear-gradient(#9dbdcd,#f9e6b6);box-shadow:0 0 90px #fce9ba}.fallback-window:after{content:"";position:absolute;left:48%;width:8px;height:100%;background:#ae8657}.fallback-desk{position:absolute;top:61%;left:20%;width:60%;height:18%;background:#ad7c4d;transform:perspective(800px) rotateX(45deg);box-shadow:0 60px 0 -20px #987147}.topbar{position:absolute;inset:20px 28px auto;display:flex;align-items:center;gap:14px;z-index:3;pointer-events:none}.topbar>*{pointer-events:auto}.home-link{color:#4b483c;text-decoration:none;font-size:13px;padding:10px 13px;border-radius:50px;background:var(--glass)}.room-title{font-size:12px;letter-spacing:.12em;background:rgba(250,247,238,.75);border-radius:20px;padding:9px 13px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-actions{margin-left:auto;display:flex;gap:7px}.quiet-button,.text-button,.icon-button{border:0;background:transparent;border-radius:24px;padding:10px 15px;min-height:42px}.quiet-button{background:var(--glass);display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px}.quiet-button:hover,.text-button:hover{background:#eceadd}.presence-light{width:7px;height:7px;border-radius:50%;background:#a5a59a;box-shadow:0 0 0 3px #e0e0d6}.presence-light.online{background:#7ea77b;box-shadow:0 0 0 3px #e1e9dc}.save-status{position:absolute;left:31px;top:67px;font-size:11px;color:#5a584e;max-width:calc(100% - 60px);z-index:2;background:rgba(251,248,239,.8);padding:5px 9px;border-radius:12px}.save-status.error{color:#854b35}.monitor-display{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);width:260px;min-height:240px;display:flex;align-items:center;flex-direction:column;justify-content:center;padding:18px;background:#f6f3e9;box-shadow:0 14px 40px #51453135;border:6px solid #56594b;border-radius:8px;z-index:1;pointer-events:none}.monitor-display.projected{border:0;box-shadow:none;border-radius:0;min-height:0;padding:6px 8px;background:rgba(247,246,233,.97);transform:translate(-50%,-50%)}.timer-phase{font-size:11px;letter-spacing:.08em;color:#687260}.timer-ring{position:relative;width:160px;height:160px;display:grid;place-items:center}.timer-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.ring-track,.ring-progress{fill:none;stroke-width:3}.ring-track{stroke:#dde1d3}.ring-progress{stroke:#647c5f;stroke-dasharray:458.67;stroke-dashoffset:0;stroke-linecap:round}.timer-value{font:600 37px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:-1.5px;font-variant-numeric:tabular-nums;color:#425340}.timer-subject{font-size:10px;max-width:95%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#78806f}.projected .timer-ring{width:76%;height:auto;aspect-ratio:1;max-width:140px}.projected .timer-value{font-size:clamp(22px,2.8vw,38px)}.projected .timer-phase{font-size:10px}.projected .timer-subject{font-size:9px}.door-hotspot{position:absolute;right:7%;top:40%;border:1px solid #dad2bb;background:rgba(250,245,227,.91);border-radius:6px;min-height:44px;padding:10px 15px;display:flex;gap:10px;align-items:center;color:#655638;z-index:2;font-size:13px;box-shadow:0 3px 16px #50380d15}.door-hotspot:hover{background:#fff9e5}.roof-toolbar{position:absolute;left:28px;top:113px;z-index:2;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.points-pill{display:flex;gap:6px;background:var(--glass);border-radius:24px;padding:12px 18px;font-size:12px}.points-pill strong{font-size:16px}.bottom-area{position:absolute;bottom:18px;left:50%;width:min(790px,calc(100% - 40px));transform:translateX(-50%);z-index:3}.timer-controls{background:rgba(250,247,239,.96);border:1px solid #e6dfc9;border-radius:22px;padding:14px 18px 10px;box-shadow:0 10px 40px #463f3724;backdrop-filter:blur(12px)}.timer-setup{display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:10px}.timer-setup input,.timer-setup select{border:1px solid transparent;background:#eeede3;border-radius:9px;padding:10px;font-size:12px;max-width:100%;min-height:40px}.subject-field{flex:1;max-width:215px}.subject-field input{width:100%}.transport{display:flex;justify-content:center;align-items:center;gap:8px}.primary-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #365340;border-radius:50px;background:var(--green);color:#fff8e8;min-height:46px;padding:12px 30px;font-size:14px;text-decoration:none;box-shadow:0 3px 8px #384c3220}.primary-button:hover{background:#344f3a}.text-button{font-size:12px;padding:10px 12px}.mode-note{text-align:center;font-size:10px;line-height:1.5;color:#838272;margin:8px 0 0}.footnote{display:flex;justify-content:space-between;align-items:center;margin:8px 8px 0;color:#514d41;font-size:10px;text-shadow:0 1px 3px #fff}.footnote button{border:0;background:rgba(250,247,238,.8);padding:5px 9px;border-radius:12px;font-size:10px}.round-summary{background:#f8f3e1;border:1px solid #dac99e;border-radius:14px;margin:0 0 10px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.round-summary>button{white-space:nowrap;border:0;background:#e7e3ce;border-radius:9px;padding:9px}.panel-backdrop{position:fixed;inset:0;background:#282b292a;backdrop-filter:blur(3px);z-index:20}.side-panel{position:fixed;right:18px;top:18px;bottom:18px;width:min(440px,calc(100vw - 36px));padding:26px;background:var(--paper);border:1px solid #ece7d8;border-radius:24px;box-shadow:0 24px 80px #242b2530;z-index:21;overflow:auto;overscroll-behavior:contain}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}.panel-heading h2{font-size:23px;font-weight:550;letter-spacing:-.6px;margin:6px 0}.overline{font-size:10px;color:#8d917b;letter-spacing:.08em}.icon-button{font-size:24px;padding:2px 10px;min-width:38px;min-height:38px;background:#edeade}.muted{color:var(--muted);font-size:12px;line-height:1.8}.side-panel h3{font-size:14px;font-weight:600;margin:22px 0 12px}.inventory-summary{display:flex;align-items:baseline;gap:10px;margin-top:20px}.inventory-summary strong{font-size:44px;font-weight:450;letter-spacing:-2px}.inventory-summary span{font-size:12px;color:var(--muted)}.collection-progress{margin:20px 0;font-size:11px;color:#6b7663}.collection-progress progress{width:100%;height:5px;border:0;display:block;margin-top:8px;accent-color:#708467}.collection-progress progress::-webkit-progress-bar{background:#e4e4d6;border-radius:4px}.collection-progress progress::-webkit-progress-value{background:#8e9f75;border-radius:4px}.tab-row{display:flex;gap:4px;background:#ebe9de;border-radius:12px;padding:4px;margin-bottom:18px}.tab-row button{flex:1;border:0;border-radius:9px;background:none;padding:10px;font-size:12px}.tab-row [aria-selected="true"]{background:#fffdf5;box-shadow:0 2px 6px #343a3010}.catalog-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.item-card{background:#fffcf4;border:1px solid #e5e1d4;border-radius:14px;padding:14px;min-width:0;display:flex;flex-direction:column;gap:8px}.item-art{height:62px;display:grid;place-items:center;background:#eceade;border-radius:9px;font-size:24px;color:#6e795a;font-family:Georgia,serif}.item-art svg{width:52px;height:52px;stroke:#6f785e;fill:#dadcc8;stroke-width:1.6}.item-card h4{font-size:13px;margin:0}.item-card p{font-size:11px;line-height:1.6;color:#7c7f6e;margin:0;min-height:32px}.item-card button{font-size:11px;border:1px solid #d7dcc9;background:#edf0e1;border-radius:8px;min-height:36px;padding:8px;margin-top:auto}.item-card .secondary-item{background:none}.item-card .level{font-size:10px;color:#77916a}.placement-box{border:1px solid #d2d9c0;padding:14px;border-radius:12px;margin-top:18px;background:#edf0e2}.placement-slots{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.placement-slots button{min-height:42px;border:1px solid #cbd4be;border-radius:7px;background:#fafbf4;font-size:11px}.pet-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.pet-choice{border:1px solid #e0ddce;background:#fffcf3;border-radius:16px;padding:20px 12px;display:flex;align-items:center;flex-direction:column;gap:14px}.pet-choice.selected{border:2px solid #7c936e;padding:19px 11px;background:#f0f2e5}.pet-choice>span:last-child{font-size:11px;line-height:1.7;color:#888574}.pet-portrait{display:block;position:relative;width:72px;height:62px;background:#be925c;border-radius:45% 45% 40% 40%;border-bottom:10px solid #e5c79b;box-shadow:inset -10px 0 0 #aa7d4b}.pet-portrait:before{content:"";position:absolute;left:12px;right:12px;top:29px;height:3px;border-left:9px solid #473a29;border-right:9px solid #473a29}.pet-portrait:after{content:"";position:absolute;left:4px;right:4px;top:-12px;height:30px;border-left:18px solid #be925c;border-right:18px solid #a5794a;clip-path:polygon(0 0,30% 60%,70% 60%,100% 0,100% 100%,0 100%)}.dog-portrait{background:#9c7349;border-bottom-color:#ddc59f;box-shadow:inset -10px 0 0 #8d6039}.dog-portrait:after{clip-path:none;border-radius:30%;left:-10px;right:-10px;top:4px;height:42px;border-left-color:#684d38;border-right-color:#684d38}.accessories{display:flex;gap:8px;flex-wrap:wrap}.accessories button{border:1px solid #dedbcf;background:#fffaf0;border-radius:12px;padding:11px;font-size:12px}.accessories button.selected{border-color:#708866;background:#e7eddc}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:13px;padding:18px 0;border-bottom:1px solid #e5e1d5}.setting-row select{padding:8px;border:1px solid #d4d4c4;border-radius:8px;background:#fffaf0}.setting-row input[type="checkbox"]{width:20px;height:20px;accent-color:#597650}.setting-row input[type="range"]{width:50%;accent-color:#597650}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:26px 0}.stats-grid>div{border-radius:14px;background:#eeede1;padding:20px;display:flex;flex-direction:column;gap:8px}.stats-grid strong{font-size:30px;font-weight:450}.stats-grid span{color:var(--muted);font-size:11px}.login-link{margin:20px 0 12px;width:100%}.friend-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid #e5e1d6}.friend-avatar{width:36px;height:36px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:#dadfc9;font-size:14px;object-fit:cover}.friend-info{flex:1;min-width:100px}.friend-info strong{font-size:12px;font-weight:600}.friend-info p{font-size:10px;margin:5px 0;color:#7b816d}.friend-actions{display:flex;gap:4px}.friend-actions button{border:1px solid #d8ddcd;background:#f6f7ed;min-height:32px;padding:5px 8px;border-radius:7px;font-size:10px}.inbox-card{padding:14px;background:#efeede;border-radius:10px;margin-bottom:8px;font-size:12px;line-height:1.7}.inbox-card button{border:0;background:#dce5cf;border-radius:6px;padding:7px 10px;margin-top:8px}.empty-state{padding:20px 0;font-size:12px;line-height:1.9;color:#818673}.focus-fullscreen{position:fixed;inset:0;z-index:60;background:#181e1a;color:#f1f0de;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:30px;padding:30px}.focus-fullscreen.light{background:#f7f5eb;color:#34432f}.focus-fullscreen>strong{font:500 clamp(80px,18vw,240px) ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:-.05em;font-variant-numeric:tabular-nums}.focus-fullscreen>span{font-size:15px;opacity:.65}.focus-fullscreen progress{width:min(60%,600px);height:3px;border:0;accent-color:#95b48c}.full-actions{display:flex;gap:12px}.full-actions button{background:transparent;border:1px solid currentColor;color:inherit;opacity:.8;border-radius:10px;padding:12px 18px}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:80;padding:14px 22px;border-radius:12px;background:#343e31;color:#fff9e8;box-shadow:0 8px 35px #0002;font-size:13px;max-width:90vw;text-align:center;line-height:1.7}.scene-error .monitor-display{left:50%!important;top:40%!important;width:260px!important;height:240px!important}.visiting .save-status{top:75px}#gx-lang-toggle{right:auto!important;left:26px!important;bottom:15px!important;top:auto!important;font-size:10px!important;z-index:5!important}.scene-loaded #sceneFallback{display:none}.scene-loaded .scene canvas{animation:scene-in .7s ease both}@keyframes scene-in{from{opacity:0}to{opacity:1}}@media(max-width:900px){.topbar{inset:15px 18px auto}.save-status{left:20px}.study-shell{min-height:650px}.bottom-area{bottom:12px;width:calc(100% - 28px)}.timer-controls{padding:12px;border-radius:18px}.timer-setup{flex-wrap:wrap}.subject-field{max-width:none;flex:1 1 160px}.transport{gap:2px}.primary-button{padding:12px 24px}.roof-toolbar{left:20px;top:105px}.timer-value{font-size:34px}.side-panel{right:12px;top:12px;bottom:12px;padding:24px}.door-hotspot{right:4%;top:36%}}@media(max-width:600px){.study-shell{min-height:740px}.topbar{gap:7px}.home-link span{display:none}.quiet-button{padding:9px 12px;font-size:11px}.room-title{max-width:100px}.timer-setup{gap:5px}.timer-setup label:first-child{flex-basis:100%;max-width:none}.timer-setup input,.timer-setup select{font-size:11px;padding:8px}.transport{flex-wrap:wrap}.primary-button{min-width:160px}.text-button{font-size:11px;padding:8px 10px}.monitor-display{top:38%}.door-hotspot{top:48%;right:4%;font-size:11px}.side-panel{inset:auto 0 0;width:100%;max-height:88dvh;border-radius:22px 22px 0 0;padding:24px}.roof-toolbar{top:103px;right:15px;left:15px}.footnote{font-size:9px}.full-actions{flex-wrap:wrap;justify-content:center}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* 像素场景中的时间由画布贴在显示器上，HTML 副本保留读屏语义。 */
.pixel-scene .monitor-display{width:1px!important;height:1px!important;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
.roof-clock{display:flex;align-items:center;gap:9px;background:var(--glass);border-radius:24px;padding:10px 16px;color:var(--green)}
.roof-clock strong{font:600 18px ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums}
.roof-clock span{font-size:10px}
.door-hotspot.projected-door{right:auto;transform:translate(-50%,-50%);box-shadow:0 3px 15px #33261525;background:rgba(250,247,237,.9)}
.pixel-scene .topbar .gx-lang{position:static!important;margin:0!important;min-height:38px;border:1px solid #e6dfc9;background:var(--glass);font-size:11px}
@media(min-width:601px) and (max-aspect-ratio:5/4){
 .study-shell{min-height:100dvh;background:#f0e9d9}
 .scene{top:112px;bottom:auto;height:56.25vw}
 .bottom-area{top:calc(56.25vw + 136px);bottom:auto;width:calc(100% - 40px)}
 .roof-toolbar{top:66px;left:auto;right:20px;gap:5px;max-width:70%;justify-content:flex-end}
 .roof-toolbar .quiet-button{font-size:11px;min-height:36px;padding:7px 10px}
 .roof-toolbar .points-pill,.roof-clock{padding:8px 12px}
 .save-status{max-width:27%;font-size:10px;top:67px}
}
.door-hotspot{white-space:nowrap;min-width:94px;flex-shrink:0}

/* 2026-09-27：控制留在电脑里；提示消失后仍保留真实、可聚焦的场景入口。 */
.computer-hotspot{position:absolute;left:41%;top:33%;width:21%;height:21%;z-index:2;display:grid;place-items:center;padding:0;border:0;background:transparent;border-radius:3px}
.computer-hotspot:disabled{opacity:1;cursor:wait}
.scene-hint{display:inline-flex;gap:8px;align-items:center;justify-content:center;padding:10px 14px;background:rgba(249,247,233,.96);color:#47533b;border:1px solid #b5ba9c;border-radius:8px;box-shadow:0 3px 15px #33261522;font-size:12px;white-space:nowrap;pointer-events:none}
.computer-hotspot .scene-hint{position:absolute;bottom:-36px;left:50%;transform:translateX(-50%)}
.computer-hotspot .scene-hint:before{content:"";position:absolute;width:8px;height:8px;background:#f9f7e9;border-left:1px solid #b5ba9c;border-top:1px solid #b5ba9c;transform:rotate(45deg);top:-5px;left:calc(50% - 4px)}
.door-hotspot,.door-hotspot.projected-door,.door-hotspot:hover{border:0;box-shadow:none;background:transparent;padding:0;min-width:96px;min-height:72px;justify-content:center}
.scene-footnote{position:absolute;right:28px;bottom:20px;z-index:2}
.scene-footnote button{border:0;background:rgba(250,247,238,.82);padding:7px 10px;border-radius:15px;font-size:10px}
.computer-opening .topbar,.computer-opening .save-status,.computer-opening .door-hotspot,.computer-opening .computer-hotspot,.computer-opening .scene-footnote{opacity:0;pointer-events:none}
.computer-panel{position:fixed;inset:0;z-index:40;overflow:auto;overscroll-behavior:contain;background:#f5f4e7;color:#40513d;animation:computer-reveal .18s ease-out}
.computer-header{position:absolute;inset:max(24px,env(safe-area-inset-top)) max(32px,env(safe-area-inset-right)) auto;display:flex;align-items:center;justify-content:space-between;font-size:13px;letter-spacing:.08em}
.computer-header .text-button{font-size:12px;color:#71806a}
.computer-content{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:90px 24px 64px;gap:26px}
.computer-clock-wrap{text-align:center}
.computer-phase{display:block;font-size:13px;color:#7e8874;letter-spacing:.16em;margin-bottom:8px}
.computer-clock{display:block;border:0;padding:8px 18px;background:transparent;border-radius:20px;color:inherit;font:500 clamp(72px,13vw,180px)/1.15 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:-.075em;font-variant-numeric:tabular-nums}
.computer-controls{width:min(760px,100%)}
.computer-panel .timer-controls{border:0;box-shadow:none;background:transparent;backdrop-filter:none;padding:0;border-radius:0}
.computer-panel .timer-setup{gap:8px;margin-bottom:22px;flex-wrap:wrap}
.computer-panel .timer-setup input,.computer-panel .timer-setup select{background:#e9ebde;border:1px solid #dde1d1;padding:12px;font-size:13px;border-radius:10px;min-height:44px}
.computer-panel .subject-field{flex:1;min-width:170px;max-width:260px}
.computer-panel .subject-field input{width:100%}
.computer-panel .transport{gap:8px;flex-wrap:wrap}
.computer-panel .primary-button{min-width:160px;min-height:48px;background:#425d48;color:#fff;font-size:15px}
.computer-panel .text-button{font-size:12px}
.computer-panel .mode-note{font-size:11px;margin-top:18px;color:#8a917d}
.computer-panel .round-summary{margin-top:24px;background:#e9edde;box-shadow:none;border:1px solid #dde2d1;color:#4c6046}
.computer-panel.clock-only .computer-content{padding:24px}
.computer-panel.clock-only .computer-clock{font-size:clamp(90px,18vw,270px)}
.computer-panel.clock-only .computer-phase{display:none}
body.computer-open{overflow:hidden}
@keyframes computer-reveal{from{opacity:0}to{opacity:1}}
@media(max-width:700px){.computer-content{padding:80px 20px 36px;gap:22px}.computer-header{left:20px;right:20px;top:16px}.computer-panel .subject-field{min-width:100%;max-width:none}.computer-panel .timer-setup label:not(.subject-field){flex:1;min-width:100px}.computer-panel .timer-setup select{width:100%;font-size:12px}.computer-panel .timer-setup{gap:6px}.scene-hint{font-size:10px;padding:8px 10px}.scene-footnote{right:18px;bottom:18px}}
@media(max-height:560px){.computer-content{padding-top:64px;gap:12px}.computer-clock{font-size:75px}.computer-panel .timer-setup{margin-bottom:12px}.computer-header{top:10px}.computer-panel .mode-note{margin-top:10px}}

/* 2026-09-27 v4：固定区域成长，六格展示柜承接独立收藏。 */
.roof-wallet{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.roof-wallet .inventory-summary{margin-top:4px}.roof-wallet>span{font-size:11px;color:#7c826e;max-width:140px;text-align:right;line-height:1.6;padding-bottom:8px}
.roof-stage-list{display:grid;gap:10px}.roof-stage{display:flex;align-items:flex-start;gap:13px;padding:16px 14px;border:1px solid #e6e0d2;border-radius:14px;background:#eeebe2;color:#8c8c7c}.roof-stage.is-unlocked{background:#f8f8eb;color:#425440;border-color:#dce3cc}.roof-stage.is-next{background:#fffdf3;border-color:#a4b68d;box-shadow:inset 3px 0 #829975}.stage-order{flex:none;display:grid;place-items:center;width:30px;height:30px;border:1px solid currentColor;border-radius:50%;font:500 14px ui-monospace,monospace;opacity:.65}.stage-title{display:flex;gap:9px;align-items:center;justify-content:space-between}.roof-stage>div{flex:1;min-width:0}.stage-title h3{margin:2px 0 0;font-size:14px}.stage-title>span{font-size:9px;white-space:nowrap}.roof-stage p{font-size:11px;line-height:1.7;margin:7px 0}.roof-stage small{font-size:10px;letter-spacing:.025em}
.collection-sprite{display:block;width:100%;height:100%;background-image:url('assets/study/collections-20260927pixel3.webp?v=be1fe8d6ffe8ab48');background-size:400% 400%;background-position:var(--art-x) var(--art-y);background-repeat:no-repeat;image-rendering:pixelated}.item-art{height:112px;background:radial-gradient(ellipse at center,#eee9d9,#f6f3e9);overflow:hidden}.item-art>.collection-sprite{width:106px;height:106px}.item-card p{min-height:0}.item-card button:disabled{cursor:default}.item-card .level{min-height:14px}.cabinet-heading{display:flex;justify-content:space-between;align-items:center}.cabinet-heading h3{margin:0;font-size:15px}.cabinet-heading>span{font:11px ui-monospace,monospace;color:#817458}.cabinet-section{padding-bottom:22px}.cabinet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;background:#9f754d;padding:13px;border:6px solid #ac8056;border-radius:8px;box-shadow:inset 0 3px 9px #62442c40}.cabinet-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:96px;border:1px solid #765434;border-bottom:4px solid #c09a70;border-radius:3px;background:linear-gradient(#85613f,#9b7854);color:#faf0d9;position:relative;padding:3px}.cabinet-cell>.collection-sprite{width:70px;height:70px;flex:none}.cabinet-cell>span:last-child{font-size:9px;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cabinet-cell .cabinet-empty{display:grid;place-items:center;height:70px;font-size:24px;opacity:.5;font-weight:200}.cabinet-cell.selected{outline:3px solid #c8d5a7;outline-offset:1px}.cabinet-cell:disabled{opacity:.45;cursor:default}.placement-slots{grid-template-columns:repeat(3,1fr)}
.roof-weather{padding:9px 12px;font-size:11px;background:var(--glass);border-radius:24px;color:#62735f}.resources-entry{position:absolute;right:32px;bottom:24px;border:1px solid #cfd7c2;background:#eef0e3;border-radius:20px;padding:10px 15px;color:#68765e;font-size:12px;z-index:1}.resources-entry:hover{background:#e3e9d5}
.pixel-scene[data-room="roof"] .study-shell{min-height:650px;background:#d6caaa}body[data-room="roof"] .roof-toolbar{left:24px;top:112px;right:auto;max-width:220px;justify-content:flex-start}.roof-toolbar .roof-clock{white-space:nowrap}
@media(max-width:1000px){body[data-room="roof"] .roof-toolbar{left:20px;right:20px;top:101px;max-width:none;justify-content:flex-start}.roof-toolbar .quiet-button,.roof-weather{font-size:10px;padding:8px 10px}.roof-toolbar .points-pill,.roof-toolbar .roof-clock{padding:8px 10px}}
@media(max-width:600px){.resources-entry{right:20px;bottom:20px}.cabinet-cell>.collection-sprite{width:64px;height:64px}}

/* Weather belongs to every study room; the clock shares the scene's local time. */
.scene-conditions{position:absolute;left:26px;top:96px;z-index:3;display:flex;align-items:center;gap:10px;max-width:calc(100% - 52px);padding:8px 12px;border:1px solid #ddd8c6;border-radius:12px;background:var(--glass);font-size:11px;color:var(--green);pointer-events:none}
.scene-conditions time{font:600 15px ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums}
body[data-room="roof"] .scene-conditions{top:70px}
.weather-free-note{padding:13px 15px;border-radius:12px;background:#e9efe3;border:1px solid #d4decb;color:#415c48;font-size:12px;line-height:1.8}
.sound-panel{width:420px}.sound-time{display:flex;gap:10px;align-items:center;padding:12px 0;font-size:11px;color:var(--muted)}.sound-time time{font:600 19px ui-monospace,monospace;color:var(--green)}.free-label{margin-left:auto;padding:4px 9px;border-radius:12px;background:#e7eedf;color:#415c48;white-space:nowrap}
.sound-library{display:grid;gap:14px;margin:18px 0}.sound-card{overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fffdf7;padding:0 15px 13px;transition:border-color .2s,box-shadow .2s}.sound-card.is-active{border-color:#718e78;box-shadow:0 0 0 2px #718e7820}.sound-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.sound-card h3{margin:0;font-size:16px}.sound-card button{padding:7px 11px;border-radius:8px;border:1px solid #d5dace;background:#f0f3eb;font-size:12px;color:#415c48}.sound-card button[aria-pressed="true"]{color:#fff;background:#415c48;border-color:#415c48}.sound-description{font-size:12px;color:var(--muted);line-height:1.8;margin:6px 0 10px}.sound-detail{font-size:11px;color:#526b56;margin:0;line-height:1.7}.sound-filename{font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin:3px 0 8px}.sound-filename:empty{display:none}.sound-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.sound-card-actions button{background:transparent;color:var(--muted)}.sound-status{font-size:12px;color:var(--green);line-height:1.7;min-height:21px;margin-bottom:3px}.sound-status.error{color:#a34632}.sound-storage-note{font-size:11px;color:var(--muted);line-height:1.9;padding:12px;background:#efeee5;border-radius:10px}.sound-art{height:57px;margin:0 -15px;position:relative;overflow:hidden;background:linear-gradient(170deg,#718d95,#a5bbaf)}.sound-art:before{content:"";position:absolute;inset:32px -10px -30px;background:#526f75;transform:skewY(-5deg);opacity:.5}.sound-art:after{content:"";position:absolute;right:30px;bottom:0;width:21px;height:35px;background:linear-gradient(90deg,#b2a58b 40%,#dfc695 40%,#dfc695 54%,#b2a58b 54%);opacity:.7}.sound-art i{position:absolute;top:5px;left:14%;width:1px;height:17px;background:#eaf8f1;opacity:.6;transform:rotate(15deg)}.sound-art i:nth-child(2){left:33%;top:24px;height:11px}.sound-art i:nth-child(3){left:56%;top:8px;height:21px}.sound-art i:nth-child(4){left:74%;top:30px;height:13px}.sound-art i:nth-child(5){left:91%;top:13px}.sound-art-snow{background:linear-gradient(170deg,#8c9daa,#dce7e4)}.sound-art-snow:before{background:#eef1e8;opacity:.85}.sound-art-snow i{width:3px;height:3px!important;border-radius:50%;box-shadow:13px 20px 0 0 #f6fbf6,-15px 29px 0 -1px #fff;opacity:.9;transform:none}
@media(max-width:600px){.scene-conditions{left:18px;top:84px;max-width:calc(100% - 36px);font-size:10px;padding:7px 9px}.sound-panel{width:100%}body[data-room="roof"] .scene-conditions{top:72px}.sound-time{flex-wrap:wrap}}

/* A permanent, quiet way back to the pixel guide. */
.scene-help-actions{display:flex;align-items:center;gap:8px;pointer-events:auto}.scene-help-actions .tutorial-entry{border-radius:3px;border:1px solid #657b60;box-shadow:2px 2px 0 #657b6044;color:#3d5744;padding:7px 12px;background:#fbf6df;letter-spacing:.04em}.scene-help-actions button{white-space:nowrap}

.study-reduced-motion .study-tutorial *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
/* Fullscreen the document so the computer, panels and tutorial stay interactive. */
html:fullscreen{width:100vw;height:100dvh;overflow:hidden;background:#dfd3bb}
html:fullscreen body{height:100dvh;overflow:hidden}
html:fullscreen .study-shell{width:100vw;height:100dvh;min-height:0;overflow:hidden;background:#dfd3bb}
html:fullscreen::backdrop{background:#dfd3bb}
@media(max-width:600px){
  .topbar{gap:5px}
  .top-actions{gap:4px}
  .top-actions .quiet-button{padding:8px 9px;min-height:38px}
  .room-title{padding:8px 9px}
}

/* Phone landscape shell: reserve one compact, persistent control row. */
html.study-mobile-view,html.study-mobile-view body{width:100%;height:100%;overflow:hidden}
.study-mobile .study-shell{height:100dvh;min-height:0!important}
.study-mobile .scene{inset:0;height:100%!important}
.study-mobile .topbar{position:fixed;inset:10px 12px auto;z-index:72;min-height:44px;gap:8px;pointer-events:auto}
.study-mobile .home-link{width:44px;min-width:44px;height:44px;padding:0;display:flex;align-items:center;justify-content:center;background:var(--glass);border-radius:14px}
.study-mobile .home-link span{display:none}
.study-mobile .top-actions{flex:1;min-width:0;gap:6px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end}
.study-mobile .top-actions .quiet-button{height:44px;min-height:44px;min-width:44px;padding:8px 12px;font-size:12px;flex-shrink:0}
.study-mobile .top-actions .mobile-start{height:44px;min-height:44px;min-width:118px;max-width:170px;flex:1;padding:9px 14px;font-size:13px;white-space:nowrap}
.study-mobile #accountButton{background:#f8f4e9;color:#354a3e;border:1px solid #cbd3c1}
.study-mobile #moreButton{font-size:20px;letter-spacing:2px}
.study-mobile #startButton{display:none}
.study-mobile .panel-backdrop{top:62px;z-index:70}
.study-mobile .side-panel{inset:66px 12px 12px auto;width:min(430px,calc(100vw - 24px));max-height:none;padding:20px;border-radius:20px;z-index:75;overflow:auto}
.study-mobile .computer-header{inset:70px 26px auto}
.study-mobile .computer-content{padding:112px 26px 24px;gap:18px;min-height:100%}
.study-mobile .computer-panel.clock-only .computer-content{padding:92px 24px 24px}
.study-mobile .computer-panel .timer-setup{flex-wrap:wrap}
.study-mobile .computer-panel input,.study-mobile .side-panel input,.study-mobile .side-panel textarea{font-size:16px}
.study-mobile .computer-opening .topbar,.study-mobile.computer-opening .topbar{opacity:1;pointer-events:auto}
.study-mobile .save-status{top:64px;left:14px}
.study-mobile .roof-toolbar{top:64px;right:14px}
.study-mobile .focus-fullscreen{padding-top:74px}
.study-mobile .mobile-room-name{padding:8px 0 20px;border-bottom:1px solid #deded0;margin-bottom:16px}
.study-mobile .mobile-room-name .room-title{display:block;padding:10px 0 0;background:none;border:0;box-shadow:none;color:var(--ink);font-size:20px;white-space:normal}
.study-mobile .mobile-more-actions{display:grid;gap:10px}
.study-mobile .mobile-more-actions .quiet-button,.study-mobile .mobile-more-actions .gx-lang{position:static;width:100%;min-height:48px;padding:12px;font-size:14px;justify-content:flex-start}
@media(max-width:600px){
 .study-mobile .topbar{inset:8px 8px auto;gap:6px}
 .study-mobile .top-actions{gap:4px}
 .study-mobile .top-actions .quiet-button{padding:8px 10px}
 .study-mobile .top-actions .mobile-start{min-width:105px}
 .study-mobile .computer-header{left:20px;right:20px;top:66px}
 .study-mobile .computer-content{padding:106px 20px 20px}
}

.study-mobile .study-resources{padding-top:64px}

/* 场景上的导航和浮层保留软光；电脑控制页和内容卡保持原有实心底。 */
:root { --study-frost: rgba(250, 247, 238, .8); --study-frost-edge: rgba(255, 252, 244, .64); }
.study-shell .topbar :is(.home-link, .quiet-button, .room-title, .gx-lang),
.study-shell :is(.save-status, .points-pill, .roof-clock, .scene-hint),
.study-shell .scene-footnote button, .side-panel {
  background: var(--study-frost);
  -webkit-backdrop-filter: blur(26px) saturate(115%);
  backdrop-filter: blur(26px) saturate(115%);
  box-shadow: inset 0 1px 0 var(--study-frost-edge), 0 8px 24px rgba(59, 53, 39, .08);
}
.side-panel { border-color: var(--study-frost-edge); }
.side-panel .muted { color: #606452; }
/* 提示尾巴只取薄底色，避免双层滤镜。 */
.study-shell .scene-hint::before { background: rgba(250, 247, 238, .82); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --study-frost: var(--paper); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --study-frost: var(--paper); }
  .study-shell .topbar :is(.home-link, .quiet-button, .room-title, .gx-lang),
  .study-shell :is(.save-status, .points-pill, .roof-clock, .scene-hint),
  .study-shell .scene-footnote button, .side-panel { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* 浮窗内的小字不再用半透明灰；3D 场景、电脑正文与普通卡片不改色。 */
.side-panel { --muted: #4b5040; }
.side-panel :is(.muted, .overline, .friend-info p, .empty-state, .collection-progress) { color: #4b5040; }
.study-shell .save-status { color: #4b5040; }
.study-shell .save-status.error, .side-panel .sound-status.error { color: #743527; }
