/* One natural inventory scroll region. Wide views fit the keepsake grid;
   narrow/short views retain native wheel, touch and keyboard scrolling. */
.panel.paperboard-panel:has(.backpack-stage){position:relative;width:100%;max-width:920px;max-height:min(92dvh,calc(100dvh - 32px));padding:clamp(18px,2.6vw,28px);overflow:auto;scrollbar-gutter:auto;scrollbar-width:thin;scrollbar-color:#b39766 #edddba;overscroll-behavior:contain}
.panel.paperboard-panel:has(.backpack-stage)::-webkit-scrollbar{width:11px;height:11px;background:#edddba}
.panel.paperboard-panel:has(.backpack-stage)::-webkit-scrollbar-track{background:linear-gradient(90deg,#e4cda2,#f0e1c0);border-left:1px solid #c2a578;border-radius:6px}
.panel.paperboard-panel:has(.backpack-stage)::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#af8d59,#d0ad72);border:3px solid #edddba;border-radius:7px}
.panel.paperboard-panel:has(.backpack-stage)::-webkit-scrollbar-thumb:hover{background:#a9824c}
.panel.paperboard-panel:has(.backpack-stage)::-webkit-scrollbar-corner{background:#edddba}
.panel.paperboard-panel:has(.backpack-stage):focus-visible{outline:2px solid #a58552;outline-offset:3px}
.paperboard-panel .backpack-stage{min-height:0;grid-template-columns:minmax(0,24%) minmax(0,1fr);grid-template-rows:auto auto;gap:8px 14px}
.paperboard-panel .backpack-toggle{width:100%;max-width:185px;height:190px;min-width:0;justify-self:center}
.paperboard-panel .bag-treasures{min-width:0;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-height:none;overflow:visible}
.paperboard-panel .bag-item{min-width:0;min-height:88px;height:auto;padding:4px}
.paperboard-panel .bag-item img{max-width:100%;width:58px;height:50px;flex-shrink:0}
.paperboard-panel .bag-item span{max-width:100%;overflow-wrap:anywhere;white-space:normal}
.paperboard-panel .bag-mystery-v15{min-height:88px}
.paperboard-panel .bag-mystery-v15>span{font-size:48px;line-height:1}
.paperboard-panel .bag-invitation{min-width:0}
.paperboard-panel .bag-fact{min-height:0;padding:12px 8px;margin-top:8px;min-width:0}
.paperboard-panel .bag-fact>div{min-width:0;overflow-wrap:anywhere}
.paperboard-panel .bag-fact>img{flex-shrink:0}
@media(max-width:850px){.paperboard-panel .bag-treasures{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:550px){.paperboard-panel .backpack-stage{grid-template-columns:minmax(0,23%) minmax(0,1fr);gap:8px}.paperboard-panel .backpack-toggle{height:155px}.paperboard-panel .bag-treasures{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}}
@media(max-width:380px){.paperboard-panel .bag-treasures{grid-template-columns:repeat(2,minmax(0,1fr))}}

.paperboard-panel .bag-fact:focus-visible{outline:2px solid #a58552;outline-offset:3px}
