.collection-room-launch{display:flex;align-items:flex-start;gap:10px;margin:10px 0}.collection-room-launch .collection-set-browser{flex:1;min-width:0}.collection-room-launch>button{min-height:44px;padding:8px 12px;border:1px solid #d7be79;border-radius:12px;background:linear-gradient(135deg,#17546a,#102b41);color:#f4dfaa;font-weight:700;white-space:nowrap}.collection-room-launch>button[hidden]{display:none!important}
.pokemon-room.pcr-mansion .pcr-room-nav span{font-size:12px;min-width:0;text-align:center}.pcr-mansion nav[aria-label="Mansion rooms"] button[aria-current="page"]{border-color:#f2d48f;background:#725831;color:#fff5da}
.pcr-decorate-launch[hidden]{display:none!important}
dialog.pokemon-room{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#071b29;color:#e2f4f5;z-index:10000;overscroll-behavior:contain}dialog.pokemon-room::backdrop{background:#05111d}.pcr-shell{position:relative;max-width:580px;margin:auto;padding: max(10px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom));font:14px/1.4 system-ui,sans-serif;min-height:100%;box-sizing:border-box;background:radial-gradient(ellipse at top,#17485b,#071b29 65%)}.pokemon-room button,.pokemon-room select{font:inherit;min-height:44px;border:1px solid #668a94;border-radius:10px;background:#123548;color:#e2f4f5;padding:8px 12px;cursor:pointer}.pokemon-room button:disabled{opacity:.45;cursor:default}.pokemon-room button:focus-visible,.pokemon-room select:focus-visible{outline:3px solid #67ead8;outline-offset:3px}.pcr-shell>header{display:flex;gap:10px;align-items:center;justify-content:space-between}.pcr-shell>header>span:nth-child(2){letter-spacing:2px;color:#e9cb7e;font-size:10px}.pcr-shell>header b{letter-spacing:0;font-size:16px;color:#e6f5f6}.pcr-count{font-size:12px;color:#72dace;text-align:right}.pcr-filter{margin:10px 0;color:#a8c9cf;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pcr-stage{position:relative;max-width:390px;margin:auto;border:3px solid #d0b775;border-radius:8px;padding:5px;background:#0d2939;box-shadow:0 0 24px #2ccec31c}.pcr-stage canvas{display:block;width:100%;height:auto;image-rendering:pixelated}.pcr-loading{position:absolute;inset:12px;display:grid;place-content:center;text-align:center;padding:16px;background:#082332ee;overflow:auto}.pcr-loading[hidden],.pcr-reveal[hidden]{display:none!important}.pcr-room-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px auto;max-width:400px}.pcr-room-nav span{font:12px monospace;color:#edce7b}.pcr-prompt{min-height:40px;margin:8px 0;text-align:center;color:#c7e8e8}.pcr-controls{display:flex;align-items:center;justify-content:space-around;gap:24px}.pcr-pad{display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(3,44px);gap:2px;touch-action:none;user-select:none}.pcr-pad button{padding:0;border-radius:7px;font-size:20px;box-shadow:0 3px #04151f}.pcr-pad [data-dir=up]{grid-column:2}.pcr-pad [data-dir=left]{grid-row:2;grid-column:1}.pcr-pad i{grid-row:2;grid-column:2;display:grid;place-content:center;color:#446a78;font-style:normal;background:#123548}.pcr-pad [data-dir=right]{grid-row:2;grid-column:3}.pcr-pad [data-dir=down]{grid-row:3;grid-column:2}.pokemon-room .pcr-action{width:90px;height:90px;border-radius:50%;border:2px solid #f0d081;background:linear-gradient(135deg,#24b4ad,#146275);box-shadow:0 5px #041b29,0 0 20px #45d3bf26;display:grid;place-content:center}.pcr-action b{font-size:30px;line-height:1}.pcr-action span{font-size:12px}.pcr-help{display:block;margin:12px auto 0;text-align:center;max-width:390px;font-size:11px;color:#8eafb9}.pcr-reveal{position:absolute;inset:0;min-height:100%;z-index:2;background:radial-gradient(ellipse at 50% 30%,#1f6970,#071b29 70%);padding:max(16px,env(safe-area-inset-top)) 20px 30px;box-sizing:border-box;text-align:center}.pcr-reveal>[data-back]{display:block;margin-bottom:18px}.pcr-card-image{height:min(52dvh,510px);display:grid;place-items:center;color:#d5b86e}.pcr-card-image img{max-width:100%;max-height:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 14px #e0c06b60);animation:pcr-reveal .28s ease-out}.pcr-reveal h2{font-size:23px;margin:16px 0 5px;color:#f4dea0}.pcr-reveal p{color:#bad7da}.pcr-reveal label{display:grid;gap:5px;text-align:left;margin:18px auto;max-width:370px;color:#a9cbd1}.pcr-reveal select{width:100%}.pcr-reveal>[data-history]{border-color:#d7bb72;color:#efdc9e}@keyframes pcr-reveal{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.pcr-card-image img{animation:none}}@media(max-width:359px){.collection-room-launch{gap:4px}.collection-room-launch>button{font-size:12px;padding:8px}.pcr-shell{padding-left:8px;padding-right:8px}.pcr-shell>header b{font-size:13px}.pcr-shell>header>button{font-size:12px}.pcr-count{font-size:10px}}@media(max-height:760px){.pcr-stage{max-width:265px}.pcr-help{margin-top:8px}.pcr-prompt{font-size:12px;min-height:32px}.pcr-pad{grid-template-columns:repeat(3,44px)}}
/* Trainer care and walk-through gallery exits. */
.pcr-trainer-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0}.pcr-trainer-bar .pcr-filter{margin:0;flex:1;min-width:0}.pokemon-room .pcr-level{flex:none;min-height:36px;padding:6px 10px;border-color:#d4b66f;color:#f3d989;background:linear-gradient(135deg,#205365,#122f43);font-size:12px;border-radius:18px}.pcr-level-status{margin:4px 0 8px;text-align:center;color:#ffe39a;font-size:13px}.pcr-level-status:empty{display:none}.pcr-level-up{box-shadow:0 0 16px #edd37c66}.pcr-stage{box-shadow:0 0 0 2px #082332,0 0 26px #56c7bb22,inset 0 0 12px #d7ba6c26}.pcr-room-nav button{font-size:12px;min-height:36px;background:#0c2b3d;border-color:#426c7b}.pcr-room-arrive{animation:pcr-arrive .22s ease-out}@keyframes pcr-arrive{from{opacity:.55}to{opacity:1}}
.pcr-card-stage{position:relative;height:min(46dvh,430px);max-width:380px;margin:0 auto}.pcr-card-stage .pcr-card-image{height:100%}.pcr-care-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}.pcr-care-actions{display:flex;justify-content:center;gap:12px;margin:14px 0 0}.pokemon-room .pcr-care-actions button{min-width:110px;min-height:48px;border-color:#d5ba74;color:#ffebba;background:linear-gradient(145deg,#1d686b,#123c50);font-size:16px;font-weight:700;box-shadow:0 3px #061b29}.pcr-reveal .pcr-care-status{min-height:20px;margin:9px 0 4px;color:#95e7d8;font-size:13px}.pcr-reveal h2{margin-top:8px}.pcr-caring .pcr-card-image img{filter:drop-shadow(0 0 18px #f2d27e99)}@media(prefers-reduced-motion:reduce){.pcr-room-arrive{animation:none}}@media(max-width:359px){.pokemon-room .pcr-level{font-size:10px;padding:6px 8px}.pcr-card-stage{height:40dvh}.pcr-care-actions{gap:8px}.pokemon-room .pcr-care-actions button{min-width:100px}.pcr-reveal{padding-left:12px;padding-right:12px}}

/* Personal trainer, saved decor shop and protected treasure vault. */
.pcr-room-nav span{font-size:18px;font-weight:800;letter-spacing:.5px}.pcr-trainer-info,.pcr-wallet{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0}.pcr-trainer-info strong{color:#f5dca1;overflow-wrap:anywhere;min-width:0}.pcr-trainer-info [data-hp]{border-bottom:5px solid #62d9aa;padding:4px 9px;border-radius:6px;background:#153d4b;white-space:nowrap;font-weight:700}.pcr-wallet{font-size:12px;color:#d5ddc9}.pcr-wallet button{border-color:#c5aa6c;color:#f5dca1}.pcr-shop[hidden]{display:none!important}.pcr-shop{position:absolute;inset:0;min-height:100%;z-index:3;background:linear-gradient(145deg,#153f50,#071b29 65%);padding:20px 16px 40px;box-sizing:border-box}.pcr-shop h2{color:#f5dca1;font-size:26px}.pcr-shop>p{color:#bad4d8;font-size:13px}.pcr-shop [data-shop-wallet]{font-size:18px;font-weight:bold;color:#f3d88f}.pcr-shop label{display:flex;align-items:center;gap:10px}.pcr-shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.pcr-shop-item{min-width:0;padding:12px;border:1px solid #ad975f;border-radius:14px;background:#0b2839;box-shadow:inset 0 1px #ffe6a233;display:flex;flex-direction:column;align-items:center;text-align:center}.pcr-shop-item canvas{width:96px;max-width:100%;height:64px;image-rendering:pixelated;border-radius:6px}.pcr-shop-item h3{font-size:14px;line-height:1.3;margin:10px 0 4px;color:#e5eeee}.pcr-shop-item p{font-size:13px;color:#f1d182;margin:5px 0 10px}.pcr-shop-item button{margin-top:auto;width:100%;font-size:13px;border-color:#bfa36a}.pcr-shop [data-shop-status]{min-height:20px;color:#8ae6ce}@media(max-width:359px){.pcr-room-nav span{font-size:16px}.pcr-trainer-info{font-size:12px}.pcr-shop-grid{gap:8px}.pcr-shop-item{padding:8px}}

.pcr-stage{max-width:min(390px,max(180px,calc((100dvh - 500px)*.8125)))}.pcr-shop>[data-shop-back]{position:sticky;top:8px;z-index:1;box-shadow:0 4px 14px #061b29}

/* Bound decoded high-resolution artwork independently of grid intrinsic sizing. */
.pcr-card-stage{isolation:isolate;overflow:hidden}.pcr-card-stage .pcr-card-image{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden}.pcr-card-stage .pcr-card-image img{display:block;position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain}.pcr-care-actions{position:relative;z-index:1}

.pcr-neighborhood-status{font-size:12px;line-height:1.4;color:#b9e4d0;margin:8px 0}.pcr-neighborhood-status[hidden],[data-neighborhood-retry][hidden]{display:none!important}[data-neighborhood-retry]{font-size:12px;min-height:36px;padding:7px 12px}.pcr-shop h2{margin-bottom:8px}

/* Handheld-style dialogue frames, kept outside the movement controls. */
.pcr-dialogue{margin:10px 0 14px;padding:10px 13px;background:#f1edda;color:#173643;border:3px solid #173643;border-radius:7px;box-shadow:0 0 0 2px #ead18d,inset 0 0 0 2px #b7c7be;text-align:left;font-family:ui-monospace,monospace;position:relative}.pcr-dialogue:after{content:'▾';position:absolute;right:9px;bottom:3px;color:#426f73;font-size:12px}.pcr-dialogue .pcr-prompt{margin:4px 0;padding:0 6px 4px 0;min-height:0;color:#173643;font-size:12px;line-height:1.4;text-align:left}.pcr-dialogue .pcr-neighborhood-status{color:#42636a;font-size:10px;line-height:1.3;margin:0 0 7px;padding-bottom:7px;border-bottom:1px solid #a8b9ad}.pcr-help{border:1px solid #708c91;border-radius:6px;padding:8px 10px;background:#102c3b;font-family:ui-monospace,monospace;font-size:10px;line-height:1.4}.pcr-outdoors .pcr-stage{max-width:min(390px,max(180px,calc((100dvh - 540px)*.8125)))}

/* Native Android WebViews can report a zero inset even under the status bar. */
.pokemon-room{--pcr-safe-top:max(48px,env(safe-area-inset-top,0px));scroll-padding-top:var(--pcr-safe-top)}
.pokemon-room .pcr-shell{padding-top:calc(var(--pcr-safe-top) + 10px)}
.pokemon-room .pcr-shop,.pokemon-room .pcr-reveal{padding-top:calc(var(--pcr-safe-top) + 12px)}
.pokemon-room .pcr-shop>[data-shop-back]{top:calc(var(--pcr-safe-top) + 8px)}
.pokemon-room .pcr-stage{max-width:min(390px,max(160px,calc((100dvh - 560px)*.8125)))}
.pokemon-room.pcr-outdoors .pcr-stage{max-width:min(390px,max(160px,calc((100dvh - 600px)*.8125)))}
@media(min-width:768px){.pokemon-room{--pcr-safe-top:env(safe-area-inset-top,0px)}}

/* Compact home access and clearer handheld route labels. */
.pcr-header-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.pokemon-room [data-home]{min-height:36px;padding:6px 10px;font-size:12px;line-height:1.2;border-color:#d9bc78;color:#ffe9b4;background:linear-gradient(145deg,#245c63,#123646);white-space:nowrap}.pcr-shop>[data-home],.pcr-reveal>[data-home]{float:right;position:sticky;top:calc(var(--pcr-safe-top) + 8px);z-index:2}.pcr-room-nav span{color:#ffe4a0;text-shadow:0 2px #071b29;font-size:19px}.pcr-dialogue .pcr-prompt{font-size:13px}.pcr-stage{border-color:#edd194;box-shadow:0 0 0 2px #082332,0 5px 0 #041b29,0 0 24px #65cbb32b}.pcr-header-tools .pcr-count{font-size:11px}@media(max-width:420px){.pcr-header-tools{max-width:82px;gap:4px}.pokemon-room .pcr-shell>header{gap:8px}.pcr-room-nav span{font-size:16px}}


/* Keep the house and connected districts inside the same phone viewport. */
dialog.pokemon-room{overflow:hidden}.pokemon-room .pcr-shell{height:100dvh;min-height:0;display:flex;flex-direction:column;gap:4px;padding:max(48px,env(safe-area-inset-top)) 10px max(24px,env(safe-area-inset-bottom))}.pcr-shell>*{flex-shrink:0}.pokemon-room .pcr-stage,.pokemon-room.pcr-outdoors .pcr-stage{flex:1 1 0;min-height:0;max-width:none;width:100%;margin:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.pcr-stage canvas{width:100%;height:100%;object-fit:contain}.pcr-shell>.world-explore{margin:0;min-height:32px;padding:4px;font-size:12px}.pcr-trainer-bar,.pcr-trainer-info,.pcr-wallet{margin:0}.pcr-trainer-info{font-size:12px}.pcr-shell .pcr-room-nav{width:100%;margin:0}.pcr-shell .pcr-dialogue{margin:0;padding:4px 8px;max-height:62px;overflow:auto}.pcr-dialogue .pcr-prompt{font-size:11px;margin:0}.pcr-shell .pcr-help{display:none}.pcr-shell .pcr-pad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);gap:2px}.pcr-shell .pcr-controls{gap:12px}.pcr-shell .pcr-wallet button{min-height:32px;padding:4px 8px;font-size:11px}.pcr-shell .pcr-reveal,.pcr-shell .pcr-shop{position:fixed;inset:0;min-height:0;max-height:100dvh;overflow:auto;padding-top:max(48px,env(safe-area-inset-top))}.pcr-controls,.pcr-controls *,.pokemon-room button,.pcr-stage{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.pcr-controls button{touch-action:none}

/* Flexible shop cards: shared by Furniture, House, Outdoor, Decor and seasonal shops.
   Never compress item explanations beneath their purchase buttons on narrow Android screens. */
.pokemon-room .pcr-shop{padding-bottom:max(96px,calc(env(safe-area-inset-bottom,0px) + 68px));overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}
.pokemon-room .pcr-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-items:stretch;gap:14px;overflow:visible}
.pokemon-room .pcr-shop-item{box-sizing:border-box;display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;height:auto;max-height:none;padding:13px;overflow:visible;justify-content:flex-start}
.pokemon-room .pcr-shop-item>*{box-sizing:border-box;min-width:0;max-width:100%;flex-shrink:0}
.pokemon-room .pcr-shop-item canvas{display:block;align-self:center;height:64px;max-width:100%;object-fit:contain}
.pokemon-room .pcr-shop-item h3{margin:0;color:#e5eeee;line-height:1.4;font-size:14px;overflow-wrap:anywhere}
.pokemon-room .pcr-shop-item p{margin:0;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
.pokemon-room .pcr-shop-item-actions{width:100%;margin-top:auto;padding-top:10px;display:flex;flex-direction:column;align-items:stretch;gap:10px;border-top:1px solid #406478;min-height:0}
.pokemon-room .pcr-shop-item-actions .pcr-shop-item-price{margin:0;font-size:14px;font-weight:700;color:#f1d182;line-height:1.35}
.pokemon-room .pcr-shop-item-actions button{position:static;display:block;flex:0 0 auto;align-self:stretch;width:100%;height:auto;min-height:48px;margin:0;padding:10px 8px;font-size:13px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-align:center}
.pokemon-room .pcr-shop-item-actions button:disabled{opacity:.52}
@media(max-width:460px){
 .pokemon-room .pcr-shop-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 .pokemon-room .pcr-shop-item{padding:14px}
 .pokemon-room .pcr-shop-item canvas{height:72px}
 .pokemon-room .pcr-shop-item-actions button{font-size:14px}
}
@media(min-width:461px) and (max-width:600px){
 .pokemon-room .pcr-shop-item{padding:10px;gap:7px}
 .pokemon-room .pcr-shop-grid{gap:10px}
}

