/* Full-page rooms (owner, 2026-11-26): the Deck Builder room, the Trade Shop and the Re-Up Shop fill the whole screen on
   phones, tablets and computers instead of sitting in a page. A slim header on top; the picture as big as the screen
   allows (the whole picture always shows); any space left at the sides is the same picture, blurred, so it feels like
   one full page. Phones held upright are asked to turn sideways. Loaded only by deck-builder.html, shop.html and
   reup-shop.html. */
:root{--scene-header:48px}
body.scene-page{margin:0;min-height:100dvh;background:#07060a;overflow-x:hidden}
body.scene-page::before{content:"";position:fixed;inset:-40px;z-index:-1;background:var(--scene-art) center/cover no-repeat;filter:blur(22px) brightness(.42) saturate(1.2)}
body.scene-deck{--scene-art:url("assets/shop/deck-builder-scene.webp")}
body.scene-trade{--scene-art:url("assets/shop/trade-shop-scene.webp?v=1")}
body.scene-reup{--scene-art:url("assets/shop/reup-shop-scene.webp?v=1")}
body.scene-page>header{min-height:var(--scene-header);height:var(--scene-header);padding:4px 16px;gap:12px;border-bottom:0;background:#07060acc;backdrop-filter:blur(6px);box-sizing:border-box}
body.scene-page>header h1{margin:0;font-size:clamp(18px,2.6vw,28px);line-height:1}
body.scene-page>header h1 img{height:calc(var(--scene-header) - 12px);width:auto}
body.scene-page>header a{white-space:nowrap}
body.scene-page>main{max-width:none!important;margin:0!important;padding:0!important}

/* The picture: full width, or full height when the screen is wider than the picture. */
body.scene-page .trade-shop-framewrap,body.scene-reup .reup-scene{width:100%!important;max-width:min(100vw,calc((100dvh - var(--scene-header)) * 1672 / 941))!important;margin:0 auto!important}
body.scene-page .trade-shop-frame{border:0!important;border-radius:0!important;background:transparent!important}
body.scene-reup .reup-scene-frame{border-radius:0;box-shadow:none}

/* Re-Up Shop: the picture first, then the notes. */
body.scene-reup main{display:flex;flex-direction:column}
body.scene-reup main>p{order:2;margin:10px 16px 0;color:#d8d2c8}
body.scene-reup main>.page-guide-dock{order:3;margin:10px 16px}
body.scene-reup [data-reup-shop]{display:flex;flex-direction:column}
body.scene-reup [data-reup-shop]>.reup-scene{order:-1;margin-top:0!important}
body.scene-reup [data-reup-shop]>:not(.reup-scene){margin-inline:16px}
body.scene-reup .reup-shop-status{margin-top:10px}

/* Trade Shop: page messages sit under the picture, not above it. */
body.scene-trade main{display:flex;flex-direction:column}
body.scene-trade main>#shopStatus{order:2;margin:10px 16px 0}
body.scene-trade main>#shopView{order:1}
body.scene-trade main>:not(#shopStatus):not(#shopView){order:3}

/* Phones held upright: turn sideways (the Trade Shop and Deck Builder already ask; the Re-Up Shop too). */
@media (orientation:portrait) and (max-width:760px){
 body.scene-reup .reup-scene-frame{aspect-ratio:auto;min-height:220px;border:2px dashed #ff2ca8;border-radius:12px;background:#0d0b11}
 body.scene-reup .reup-scene-frame>*{visibility:hidden}
 body.scene-reup .reup-scene-frame::before{content:"↻  TURN YOUR PHONE SIDEWAYS";position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:center;padding:16px;text-align:center;
  font:400 26px/1.2 CCMarker,Impact,sans-serif;letter-spacing:.04em;color:#ff2ca8;text-shadow:2px 2px 0 #000}
}
@media (max-height:500px) and (orientation:landscape){:root{--scene-header:40px}body.scene-page>header{padding:2px 12px;font-size:14px}}
/* MY PEOPLE shares the header row, so the room fits the screen under one slim bar (owner, 2026-11-26). */
body.scene-page:has(#crewBar)>header{padding-left:150px}
body.scene-page #crewBar{position:fixed;top:0;left:0;z-index:950;min-height:0;height:var(--scene-header);padding:0 0 0 12px;border:0;background:transparent;width:auto}
body.scene-page #crewBar>button{min-height:0;height:calc(var(--scene-header) - 12px);padding:0 12px;font-size:13px}
body.scene-page #crewBar>.crew-panel{position:fixed;top:var(--scene-header);left:12px}
/* Tall screens (tablets held upright): the room sits in the middle, not stuck to the top. */
@media (min-aspect-ratio:1/10) and (max-aspect-ratio:1/1) and (min-width:761px){body.scene-deck>main{min-height:calc(100dvh - var(--scene-header));display:flex;flex-direction:column;justify-content:center;align-items:stretch}body.scene-deck>main>*{width:100%}}
/* Deck Builder on a phone held upright: turn sideways, like the two shops (owner, 2026-11-26). */
@media (orientation:portrait) and (max-width:760px){
 body.scene-deck #deckBuilderScene::before{display:none!important}
 body.scene-deck #deckBuilderScene .trade-shop-framewrap{min-width:0!important;max-width:none!important;height:260px;min-height:220px;margin:16px!important;width:auto!important;border:2px dashed #ff2ca8;border-radius:12px;background:#0d0b11;overflow:hidden}
 body.scene-deck #deckBuilderScene .trade-shop-framewrap>*{visibility:hidden!important}
 body.scene-deck #deckBuilderScene .trade-shop-framewrap::before{content:"↻  TURN YOUR PHONE SIDEWAYS";position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:16px;text-align:center;
  font:400 26px/1.2 CCMarker,Impact,sans-serif;letter-spacing:.04em;color:#ff2ca8;text-shadow:2px 2px 0 #000;visibility:visible}
 body.scene-deck #deckBuilderScene .trade-shop-swipe,body.scene-deck #deckBuilderScene .db-swipe{display:none!important}
}

/* Stretch to the whole screen (owner, 2026-11-26): no side bands. On screens shaped differently from the picture it
   stretches a little; buttons and cards are placed in % of the picture and the cards follow the stretched slots.
   Very tall screens (tablets held upright) keep the whole picture centred instead of stretching it tall. */
@media (min-aspect-ratio:13/10){
 body.scene-page .trade-shop-framewrap,body.scene-reup .reup-scene{width:100vw!important;max-width:none!important;height:calc(100dvh - var(--scene-header));margin:0!important}
 body.scene-page .trade-shop-frame{height:100%;overflow:hidden!important}
 body.scene-page .trade-shop-scene{aspect-ratio:auto;height:100%;min-width:0!important}
 body.scene-reup .reup-scene-frame{aspect-ratio:auto;height:100%}
 body.scene-page .shop-pan{display:none!important}
}
