/* The village clock, readable signs and direct manipulation share a pixel-paper UI. */
.game-dialog[data-panel="home"]{width:min(940px,calc(100vw - 32px));height:min(690px,calc(100svh - 36px))}.game-dialog[data-panel="home"] .mini-home-body{grid-template-columns:176px minmax(0,1fr);gap:16px}.game-dialog[data-panel="home"] .mini-home-tabs{padding-left:192px}.game-dialog[data-panel="home"] .mini-room-stage .pixel-room{max-width:960px;touch-action:none}.mini-room-buttons{justify-content:flex-start;flex-wrap:wrap;gap:8px}.mini-room-buttons .text-button:last-child{margin-left:auto}.mini-room-stage{padding-bottom:45px}.mini-home-body .mini-room-note{font-size:10px}.minihome.room-focused .mini-about{display:none}.game-dialog[data-panel="home"] .room-focused .mini-home-body{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr)}.minihome.room-focused .mini-home-tabs{padding-left:0}.furniture-choice[data-room-item],.avatar-part{touch-action:none;cursor:grab}.is-home-dragging,.is-home-dragging *{cursor:grabbing!important}.home-drag-ghost{position:fixed;left:0;top:0;z-index:1000;pointer-events:none;background:#fff1d8;border:2px solid #aa92ae;box-shadow:3px 3px 0 #9b879a55;padding:10px 14px;font:12px var(--pixel-type);color:#7c6582;max-width:160px}.is-home-dragging .mini-room-stage{outline:2px dashed #9ab78d;outline-offset:-5px}
.avatar-workshop{display:grid;grid-template-columns:minmax(170px,.8fr) minmax(0,1.2fr);gap:20px;min-height:0}.avatar-fitting{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#e4e8da;border:2px dashed #b8b6a7;padding:15px;min-height:0}.avatar-fitting canvas{image-rendering:pixelated;width:100%;max-width:280px;max-height:calc(100% - 60px);object-fit:contain;pointer-events:none}.avatar-fitting>small{text-align:center;font-size:11px;line-height:1.8;color:#84917b;position:absolute;bottom:16px}.avatar-zone{position:absolute;right:7px;font:9px var(--pixel-type);padding:4px 5px;background:#f9f1d8a8;color:#978497;border:1px dashed #c0b6bb;pointer-events:none}.avatar-zone.hair{top:18%}.avatar-zone.outfit{top:45%}.avatar-zone.pantsColor{top:62%}.avatar-zone.shoesColor{top:73%}.is-home-dragging .avatar-fitting{border-color:#ad8cb2;background:#e8dceb}.avatar-parts{min-width:0;display:flex;flex-direction:column;gap:14px}.avatar-category-tabs{display:flex;gap:5px;flex-wrap:wrap}.avatar-category-tabs>button{font:10px var(--pixel-type);background:#f0e6d8;border:1px solid #c0acb9;padding:7px 9px;color:#90748d}.avatar-category-tabs>button.selected{background:#d9cbe3;color:#785d86;border-color:#ad90b8}.avatar-part-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.avatar-part{display:flex;flex-direction:column;gap:6px;justify-content:center;align-items:center;min-height:80px;background:#fff3e2;border:1px solid #cbb8c3;box-shadow:2px 2px 0 #e1d0d7;padding:8px 3px;color:#8a7489}.avatar-part.selected{background:#e1d4e9;border-color:#ad8fba}.avatar-part canvas{width:48px;height:54px;image-rendering:pixelated;pointer-events:none}.avatar-part span{font-size:9px}.avatar-part i{width:30px;height:30px;border:2px solid #fff5df;outline:1px solid #bfafb7;box-shadow:3px 3px 0 #c8b9bd44;pointer-events:none}.avatar-parts>p{font:10px/1.8 var(--pixel-type);color:#9d8896}.avatar-parts>.primary-button{margin-top:auto}
.village-time-hud{position:absolute;right:24px;top:98px;z-index:6;border:2px solid #b4a7a8;box-shadow:3px 3px 0 #8b7f9244;background:#fff2dbe8;padding:10px 13px;min-width:208px;color:#7e7282;font-family:var(--pixel-type);pointer-events:none}.village-time-hud>b{font-size:18px;font-weight:500;letter-spacing:1px}.village-time-hud>span{display:block;font-size:8px;margin-top:6px;color:#998696}.village-time-hud>div{border-top:1px dashed #cdbbbb;margin-top:10px;padding-top:9px;display:flex;justify-content:space-between;gap:12px;align-items:center}.village-time-hud small{font-size:8px;max-width:110px;line-height:1.7}.village-time-hud strong{font-size:12px;font-weight:500;white-space:nowrap}.is-arriving .village-time-hud,.is-arriving .plot-labels,.is-arriving .work-progress{visibility:hidden;pointer-events:none}
.markers .marker{font-family:var(--pixel-type);font-size:12px;color:#5c6857;display:flex;gap:6px;align-items:center;min-height:27px;padding:5px 9px;border:1px solid #9eae90;background:#fff4dcee;border-radius:0;box-shadow:2px 2px 0 #7c8b6c55;white-space:nowrap;width:auto;height:auto;opacity:1;overflow:visible}.markers .marker span:last-child{display:block;opacity:1;visibility:visible;position:static;transform:none;background:none;box-shadow:none;border:0;padding:0;font:inherit;color:inherit;white-space:nowrap}.markers .marker .marker-dot{width:5px;height:5px;min-width:5px;display:block;background:#92ac7e;border:0;box-shadow:none;border-radius:0}.markers .marker.my-home-marker{background:#d9ead5;border:2px solid #829f72;color:#526a46;font-weight:700}.markers .marker.hall-marker{background:#efdfbe;border:2px solid #b79c69;color:#79613e;font-weight:700;font-size:13px}.markers .marker.is-selected{outline:2px solid #e0b2c8;outline-offset:2px}.plot-labels{position:absolute;inset:0;pointer-events:none;z-index:4}.plot-status-label{position:absolute;left:0;top:0;padding:4px 6px;background:#faf0d8eb;border:1px solid #bba17d;font:9px var(--pixel-type);color:#987b5f;white-space:nowrap;box-shadow:2px 2px 0 #967b6740}.plot-status-label[data-status="ready"]{color:#76612d;background:#f7e6b9;border-color:#c1a458}.plot-status-label[data-status="working"]{color:#82668e;background:#e6d6ed;border:2px solid #ad89b6}.plot-status-label[data-status="growing"]{background:#dbe7cf;color:#69815a;border-color:#a0b48b}.farm-hud header{flex-wrap:wrap}.farm-hud #farm-work-state{font:8px var(--pixel-type);padding:3px 5px;background:#e8ddc5;border:1px solid #c1ab88;color:#9c8059}.farm-hud[data-work="working"]{border-color:#af91bd;background:#eee1f0f2}.farm-hud[data-work="working"] #farm-work-state{background:#d7bee4;border-color:#aa86b8;color:#805b8f}.farm-hud[data-work="done"] #farm-work-state{background:#cbe0bd;border-color:#9eb489;color:#658251}.work-progress{position:absolute;bottom:220px;left:50%;transform:translateX(-50%);z-index:8;width:300px;background:#fcf0ddf5;border:2px solid #aa8cb4;box-shadow:4px 4px 0 #8d6f9c44;padding:13px 15px;font:11px var(--pixel-type);color:#84658e;pointer-events:none}.work-progress>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.work-progress b{font-size:12px}.work-progress>div{height:12px;padding:2px;border:1px solid #b799c0;background:#e9d6ec}.work-progress i{display:block;background:#b69cc9;height:100%;width:0}.work-progress>small{display:block;font-size:8px;margin-top:9px;color:#ad91ae}.work-progress+.joystick{z-index:8}
.place-intro{text-align:center;border-bottom:1px dashed #cdb8c1;padding-bottom:20px;margin-bottom:24px}.place-intro>span{font-size:42px;color:#b49cbd}.place-intro h3{font-size:24px;margin:13px 0}.place-intro p{font-size:12px;color:#9d8998}.listening-record{display:flex;align-items:center;gap:25px;background:#e3eadb;border:2px solid #adbea2;padding:25px;margin-bottom:25px}.listening-record>span{font-size:65px;color:#92a68d}.listening-record h4{font-size:21px;margin:10px 0}.listening-record small{font-size:10px}.listening-record p{font-size:12px}.photo-sample,.picnic-setting{text-align:center;font-size:64px;color:#b49cbd;padding:26px;background:#efe2e7;border:2px dashed #c6aebf;margin-bottom:22px}.photo-sample p,.picnic-setting p{font-size:13px;margin-bottom:0}.wish-notes{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;margin:20px 0}.wish-notes article{border:1px solid #cbb5c5;background:#f5e5eb;padding:15px}.wish-notes b{font-size:11px}.wish-notes p{font-size:12px;overflow-wrap:anywhere}.meal-names{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.meal-names span{font-size:11px;padding:7px 11px;background:#e6ead7;border:1px solid #b4c39e}.world-clock-note{font:11px/1.9 var(--pixel-type);color:#8f8090}
@media(max-width:800px){.avatar-workshop{grid-template-columns:150px minmax(0,1fr);gap:13px}.avatar-part-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.avatar-part{min-height:69px}.avatar-part canvas{width:38px;height:43px}.game-dialog[data-panel="home"] .mini-home-body{grid-template-columns:155px minmax(0,1fr);gap:12px}.game-dialog[data-panel="home"] .mini-home-tabs{padding-left:167px}.mini-room-buttons{gap:5px}.mini-room-buttons .secondary-button,.mini-room-buttons .primary-button{font-size:9px;padding:5px 7px}.mini-room-stage{padding-bottom:67px}}
@media(max-width:600px){.game-dialog[data-panel="home"]{width:calc(100vw - 20px);height:calc(100svh - 24px)}.game-dialog[data-panel="home"] .mini-home-body{grid-template-columns:1fr;grid-template-rows:104px minmax(0,1fr);gap:10px}.game-dialog[data-panel="home"] .mini-home-tabs{padding-left:0}.mini-about{grid-template-rows:58px 24px}.mini-portrait{height:58px}.mini-portrait canvas{height:58px;width:67px;max-width:none}.mini-about-actions{top:55px}.game-dialog[data-panel="home"] .mini-home-body:has(.avatar-workshop){grid-template-rows:0 minmax(0,1fr);gap:0}.mini-home-body:has(.avatar-workshop) .mini-about{visibility:hidden}.avatar-workshop{grid-template-columns:112px minmax(0,1fr);gap:9px}.avatar-fitting{padding:6px}.avatar-fitting>small{font-size:8px;bottom:12px;line-height:1.7}.avatar-fitting canvas{width:100%;max-height:calc(100% - 75px)}.avatar-zone{right:4px;font-size:7px;padding:3px}.avatar-zone.hair{top:16%}.avatar-zone.outfit{top:40%}.avatar-zone.pantsColor{top:54%}.avatar-zone.shoesColor{top:64%}.avatar-parts{gap:10px}.avatar-category-tabs{gap:4px}.avatar-category-tabs>button{font-size:8px;padding:5px 6px}.avatar-part-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.avatar-part{min-height:62px;padding:5px 2px;gap:4px}.avatar-part canvas{width:33px;height:37px}.avatar-part span{font-size:7px}.avatar-part i{width:22px;height:22px}.avatar-parts>p{font-size:8px;line-height:1.7;margin:0}.avatar-parts>.primary-button{font-size:9px;padding:7px}.mini-room-buttons{left:7px;right:7px;bottom:7px;gap:5px}.mini-room-buttons .secondary-button,.mini-room-buttons .primary-button{font-size:8px;padding:4px 6px;min-height:23px}.mini-room-buttons .text-button{font-size:8px}.mini-room-stage{padding-bottom:60px}.mini-home-body .mini-room-note{font-size:8px}.village-time-hud{top:89px;right:12px;min-width:160px;padding:8px 9px;border-width:1px}.village-time-hud>b{font-size:14px}.village-time-hud>span{font-size:7px;margin-top:4px}.village-time-hud>div{padding-top:6px;margin-top:7px;gap:8px}.village-time-hud small{font-size:7px;max-width:88px}.village-time-hud strong{font-size:10px}.markers .marker{font-size:9px;padding:4px 6px;min-height:22px;gap:4px;box-shadow:2px 2px 0 #7c8b6c55}.markers .marker.hall-marker{font-size:10px;border-width:1px}.markers .marker.my-home-marker{border-width:1px}.plot-status-label{font-size:8px;padding:3px 5px}.work-progress{bottom:210px;width:250px;padding:11px 12px}.work-progress b{font-size:11px}.work-progress>header{font-size:10px}.work-progress>div{height:10px}.home-drag-ghost{font-size:10px;padding:8px 11px}.place-intro h3{font-size:20px}.place-intro p{font-size:11px}.listening-record{padding:18px;gap:15px}.listening-record h4{font-size:17px}.listening-record p{font-size:11px}.listening-record>span{font-size:45px}.wish-notes{grid-template-columns:1fr}.world-clock-note{font-size:10px}}
@media(max-height:600px) and (min-width:601px){.avatar-part-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.avatar-part{min-height:56px}.avatar-part canvas{width:30px;height:34px}.avatar-parts{gap:8px}.avatar-category-tabs>button{font-size:8px;padding:5px 7px}.avatar-parts>p{margin:0}.avatar-fitting>small{font-size:9px}.village-time-hud{top:85px}}
.arrival-world-counts{position:absolute;top:6%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:40px;padding:15px 28px;background:#fff0d3dc;border:1px solid #c8b9ae;box-shadow:3px 3px 0 #b69aaf33;color:#8b748c;font-family:var(--pixel-type);white-space:nowrap}.arrival-world-counts>span{font-size:12px;display:flex;align-items:baseline;gap:9px}.arrival-world-counts b{font-size:25px;font-weight:500;color:#8f7196}.arrival-world-counts small{font-size:10px;color:#a58b99}.arrival-world-counts>div{border-left:1px dashed #cfb9c6;padding-left:25px;display:flex;flex-direction:column;gap:6px}.arrival-world-counts strong{font-size:15px;font-weight:500;letter-spacing:2px}.header-sound{position:absolute;right:46px;top:0;width:36px;height:36px;background:#f3edceec;border:1px solid #a4b08d;box-shadow:2px 2px 0 #73876344}.header-sound svg{width:18px;height:18px}.village-time-hud>small{display:block;font-size:8px;color:#94858f;margin-top:5px}.game-controls-hint{background:#f4eed8be;padding:8px 12px;border:1px solid #b9baa8;max-width:460px}.village-app{height:100svh;height:100dvh}.village-dock{padding-bottom:max(10px,env(safe-area-inset-bottom))}.scene-toolbar,.mini-map-hud,.compass{display:none!important}
@media(max-width:700px){.arrival-world-counts{top:max(6%,env(safe-area-inset-top));gap:18px;padding:12px 15px;width:max-content;max-width:92vw}.arrival-world-counts>span{font-size:9px;gap:5px}.arrival-world-counts b{font-size:20px}.arrival-world-counts small{font-size:8px}.arrival-world-counts>div{padding-left:15px;gap:4px}.arrival-world-counts strong{font-size:12px;letter-spacing:1px}.header-sound{right:38px;width:31px;height:31px}.header-sound svg{width:16px;height:16px}.game-controls-hint{display:none}.village-time-hud{top:calc(82px + env(safe-area-inset-top));right:11px}.game-hud.app-header{top:calc(12px + env(safe-area-inset-top))}.joystick{left:21px;bottom:calc(105px + env(safe-area-inset-bottom));width:112px;height:112px;touch-action:none}.interaction-hud{right:18px;left:auto;bottom:calc(130px + env(safe-area-inset-bottom));transform:none;max-width:calc(100vw - 160px)}.interact-button{padding:12px 14px;min-height:52px;gap:9px;max-width:100%;font-size:10px}.interact-button span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.interact-button svg{display:none}.interact-button kbd{font-size:12px;min-width:23px;min-height:23px}.work-progress{bottom:calc(218px + env(safe-area-inset-bottom));width:250px}.farm-hud{left:12px;bottom:calc(298px + env(safe-area-inset-bottom));width:207px}.farm-hud header{gap:5px;margin-bottom:8px}.farm-hud header b{font-size:9px}.farm-hud header kbd{display:none}.farm-hud>p{font-size:9px;min-height:0}.farm-hud>small{font-size:7px}.village-dock{bottom:calc(15px + env(safe-area-inset-bottom))}.daily-note{bottom:calc(81px + env(safe-area-inset-bottom))}.save-status{display:none}.walk-status{bottom:calc(215px + env(safe-area-inset-bottom));font-size:9px}.markers .marker{pointer-events:auto}}
@media(max-width:360px){.arrival-world-counts{gap:12px;padding:10px 12px}.arrival-world-counts>div{padding-left:11px}.arrival-world-counts b{font-size:18px}.village-time-hud{min-width:145px}.joystick{width:100px;height:100px;left:15px}.interaction-hud{max-width:calc(100vw - 139px);right:12px}.interact-button{padding:11px;gap:7px}.farm-hud{width:190px}.avatar-part-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.avatar-part{min-height:55px}.avatar-part canvas{width:28px;height:32px}.avatar-parts{gap:7px}.avatar-workshop{grid-template-columns:96px minmax(0,1fr)}}
@media(max-height:550px) and (orientation:landscape){.village-time-hud{top:77px;font-size:9px;min-width:150px}.village-time-hud>b{font-size:14px}.village-time-hud>div{margin-top:6px;padding-top:6px}.village-time-hud>span,.village-time-hud>small{font-size:7px}.farm-hud{bottom:135px;width:180px;left:15px}.farm-hud>p{font-size:8px;min-height:0;margin:7px 0}.farm-hud>small{display:none}.farm-seed-tool{padding:6px 4px}.farm-seed-tool>span{font-size:17px}.work-progress{bottom:145px;width:230px}.daily-note,.game-controls-hint{display:none}.joystick{bottom:85px;width:96px;height:96px}.interaction-hud{bottom:100px;right:20px;left:auto;transform:none}.arrival-world-counts{top:5%;padding:8px 16px}.arrival-world-counts b{font-size:18px}.arrival-copy h1{font-size:20px!important}.arrival-copy{bottom:8%!important}}
/* Personal shortcuts stay at the top; farm tools belong to the physical garden. */
.hud-shortcuts{position:absolute;top:0;right:87px;display:flex;gap:6px;pointer-events:auto}.hud-shortcut{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:45px;min-height:49px;padding:7px 9px;background:#f5eddaef;border:1px solid #aab297;box-shadow:2px 2px 0 #7f89774d;color:#697b5d;font-family:var(--pixel-type)}.hud-shortcut svg{width:21px;height:21px}.hud-shortcut>span{font-size:9px;line-height:1.3;white-space:nowrap}.hud-shortcut:hover{background:#e6ebd6}.hud-shortcut.selected{background:#e6d7e9;border-color:#b295bc;color:#876d92}.hud-shortcut:focus-visible{outline:2px dashed #a88ab5;outline-offset:3px}.hud-shortcut>small{position:absolute;right:3px;top:3px;background:#dfcadf;color:#896b90;padding:1px 3px;font-size:8px;line-height:1.2;min-width:12px;text-align:center}.hud-shortcut>small:empty{display:none}.is-arriving .hud-shortcuts{visibility:hidden;pointer-events:none}.farm-ready-badge{width:6px;height:6px;background:#d9b76b;border:1px solid #b5934d;display:inline-block;flex-shrink:0}.interaction-hud{bottom:30px}.farm-hud{bottom:112px}.work-progress{bottom:126px}.walk-status{bottom:120px}
@media(max-width:700px){.hud-shortcuts{right:0;top:0;gap:5px}.hud-shortcut{min-width:44px;min-height:47px;padding:6px;gap:4px}.hud-shortcut svg{width:20px;height:20px}.hud-shortcut>span{font-size:8px}.game-hud .player-bar{max-width:calc(100% - 154px);padding:6px;gap:6px}.game-hud .profile-pill{gap:6px;min-width:0}.game-hud .tiny-avatar{width:30px;height:34px;flex-shrink:0;border-width:1px}.game-hud .player-info{min-width:46px}.game-hud .player-info b{font-size:11px;max-width:69px}.game-hud .player-info small{font-size:7px}.game-hud .xp-track{width:55px}.game-hud .currency{padding-left:6px;gap:3px}.game-hud .currency b{font-size:11px}.game-hud .currency svg{width:13px;height:13px}.game-hud .currency>span{font-size:7px}.game-hud .header-sound{top:57px;right:38px}.game-hud .hud-settings.icon-button{position:absolute;top:57px;right:0;margin:0}.app-header.game-hud .zone-title{top:70px;left:0;right:auto;transform:none;text-align:left;padding:0;background:none;box-shadow:none;border:0}.app-header.game-hud .zone-title>span{font-size:13px}.app-header.game-hud .zone-title small{font-size:7px}.village-time-hud{top:calc(115px + env(safe-area-inset-top))}.daily-note{left:12px;right:auto;top:calc(146px + env(safe-area-inset-top));bottom:auto;min-width:140px;max-width:165px;padding:9px;gap:6px}.daily-note b{font-size:9px}.daily-note small{font-size:7px}.daily-note .daily-icon{font-size:18px}.daily-note #goal-count{font-size:7px}.joystick{bottom:calc(27px + env(safe-area-inset-bottom))}.interaction-hud{right:18px;bottom:calc(50px + env(safe-area-inset-bottom))}.farm-hud{bottom:calc(220px + env(safe-area-inset-bottom))}.work-progress{bottom:calc(153px + env(safe-area-inset-bottom))}.walk-status{bottom:calc(155px + env(safe-area-inset-bottom))}}
@media(max-width:360px){.hud-shortcuts{gap:4px}.hud-shortcut{padding:6px 4px}.game-hud .player-info b{max-width:52px}.game-hud .player-info{min-width:43px}.game-hud .xp-track{width:45px}.game-hud .player-bar{gap:4px;padding:5px}.game-hud .currency{padding-left:4px}.daily-note{max-width:142px;min-width:0}.village-time-hud{min-width:145px}.interaction-hud{right:12px}}
@media(max-height:550px) and (orientation:landscape){.hud-shortcuts{right:81px;top:0}.hud-shortcut{min-width:40px;min-height:40px;padding:5px}.hud-shortcut svg{width:17px;height:17px}.hud-shortcut>span{font-size:7px}.game-hud .header-sound,.game-hud .hud-settings.icon-button{top:0}.village-time-hud{top:77px}.farm-hud{bottom:126px}.joystick{bottom:22px}.interaction-hud{bottom:41px}.work-progress{bottom:130px}.walk-status{bottom:127px}.daily-note{display:none}}
.mini-profile-image{display:block;width:160px;max-width:100%;height:140px;object-fit:cover;object-position:center;border:0}.mini-portrait{position:relative}.profile-image-edit{position:absolute;right:5px;top:5px;padding:5px 7px;background:#fff3dfe8;border:1px solid #c0a6ba;color:#8d6e8f;font:8px var(--pixel-type);box-shadow:2px 2px 0 #9d87a03d}.mini-portrait:has(.mini-profile-image)>span{margin:5px 0 2px}.avatar-part-pages{display:flex;justify-content:center;gap:10px;align-items:center}.avatar-part-pages button{border:1px solid #bea9c4;background:#f9eedd;color:#9a7e9f;min-width:27px;min-height:26px;font-size:15px}.avatar-part-pages span{font:10px var(--pixel-type);color:#9a839d}.avatar-part-pages button:disabled{opacity:.4}.avatar-workshop .avatar-part-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.avatar-workshop .avatar-parts{gap:11px}
.game-dialog[data-studio="true"]{width:min(1150px,calc(100vw - 32px));height:min(820px,calc(100svh - 35px))}.game-dialog[data-studio="true"] .panel-body{overflow:hidden;display:flex;flex-direction:column}.photo-booth{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:20px;min-height:0;flex:1}.studio-main{display:flex;flex-direction:column;min-height:0;gap:13px}.studio-stage{position:relative;width:100%;aspect-ratio:3/2;min-height:0;flex:1;background:#e9e1d7;border:2px solid #bea8be;box-shadow:inset 0 0 0 3px #fff2dc;overflow:hidden}.studio-stage>canvas{position:absolute;inset:0;width:100%;height:100%;display:block;image-rendering:pixelated;touch-action:none}.studio-countdown{position:absolute;inset:0;z-index:2;display:grid;place-items:center;font:700 74px var(--pixel-type);color:#fff6e5;text-shadow:3px 3px 0 #9a7ea1;pointer-events:none}.studio-flash{position:absolute;inset:0;z-index:3;background:#fff9ed;opacity:0;pointer-events:none}.studio-shot-status{display:flex;align-items:center;justify-content:space-between;gap:12px}.studio-shot-status>span{font-size:11px;line-height:1.6;color:#9b829e}.studio-shot-status button{white-space:nowrap}.studio-note{font-size:10px;line-height:1.8!important;color:#a18d9e;margin:0}.studio-options{min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px}.studio-options h3{font-size:12px!important;margin:0!important;color:#947997}.studio-options h3 small{font-size:8px;color:#ae95af;margin-left:7px}.studio-backdrops{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.studio-backdrops button{border:1px solid #c7b3ca;background:#fbf0dd;padding:3px;color:#99809c;min-width:0}.studio-backdrops button[aria-pressed="true"]{border:2px solid #ad87b7;background:#e9d9ed;padding:2px}.studio-backdrops img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block;image-rendering:pixelated}.studio-backdrops span{font:8px var(--pixel-type);display:block;margin:6px 0 3px;white-space:nowrap}.studio-cast{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.studio-cast button{display:flex;flex-direction:column;gap:4px;align-items:center;padding:9px 5px;background:#fff2df;border:1px solid #cab9c9;color:#9d829e;min-width:0}.studio-cast span{font-size:10px}.studio-cast small{font-size:7px}.studio-cast button[aria-pressed="true"]{background:#dbdfce;border:1px solid #a1ae90;color:#728361;box-shadow:inset 0 0 0 1px #eff0db}.studio-cast button:disabled{opacity:1}.studio-poses{display:flex;flex-direction:column;gap:6px}.studio-poses button{border:1px solid #c5afc7;background:#fff2de;color:#957899;font:10px var(--pixel-type);padding:8px}.studio-poses button[aria-pressed="true"]{background:#e6d6eb;border-color:#b596bf}.studio-options .disclosure{font-size:9px;line-height:1.7;margin:0;margin-top:auto}
@media(max-width:700px){.mini-profile-image{width:80px;height:58px}.mini-portrait:has(.mini-profile-image)>span{position:absolute;bottom:0;left:0;right:0;margin:0}.profile-image-edit{top:3px;right:3px;padding:3px 4px;font-size:7px}.avatar-workshop .avatar-parts{gap:8px}.avatar-part-pages{gap:8px}.avatar-part-pages button{min-height:24px;min-width:27px}.game-dialog[data-studio="true"]{width:calc(100vw - 20px);height:calc(100svh - 25px)}.game-dialog[data-studio="true"] .panel-body{padding:10px 11px;overflow:auto}.photo-booth{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:13px;flex:none}.studio-stage{flex:none;min-height:185px;max-height:320px;aspect-ratio:3/2}.studio-main{gap:9px}.studio-shot-status>span{font-size:9px}.studio-shot-status button{font-size:10px!important;padding:7px 9px!important}.studio-note{display:none}.studio-options{display:grid;grid-template-columns:1fr;gap:8px}.studio-options h3{font-size:10px!important}.studio-backdrops{gap:7px}.studio-backdrops img{max-height:62px}.studio-backdrops span{font-size:8px;margin:4px 0 2px}.studio-cast{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.studio-cast button{padding:6px 3px;gap:3px}.studio-cast span{font-size:9px}.studio-cast small{font-size:6px}.studio-poses{flex-direction:row;gap:5px}.studio-poses button{flex:1;font-size:9px;padding:7px 4px}.studio-options .disclosure{font-size:8px;margin-top:3px}.studio-countdown{font-size:58px}}
@media(max-height:550px) and (orientation:landscape){.game-dialog[data-studio="true"] .panel-body{overflow:auto}.photo-booth{grid-template-columns:minmax(0,1fr) 230px;gap:14px}.studio-stage{min-height:180px;max-height:260px}.studio-cast{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-backdrops img{max-height:42px}.studio-options{gap:7px}.studio-poses{flex-direction:row}.studio-poses button{font-size:8px}}

/* Larger, tightly framed native pixel room; the saved furniture grid is unchanged. */
.game-dialog[data-panel="home"] .mini-room-stage .pixel-room{max-width:none;aspect-ratio:640/432}
@media(min-width:801px){.game-dialog[data-panel="home"]{width:min(940px,calc(100vw - 24px));height:min(690px,calc(100svh - 24px))}.game-dialog[data-panel="home"] .mini-home-body{grid-template-columns:160px minmax(0,1fr)}.game-dialog[data-panel="home"] .mini-home-tabs{padding-left:176px}.game-dialog[data-panel="home"] .room-focused .mini-home-body{grid-template-columns:1fr}.game-dialog[data-panel="home"] .room-focused .mini-home-tabs{padding-left:0}}
