.adventure-panel{color:#835f83;background:linear-gradient(135deg,#fff8e7,#f9e9f4);padding:18px;border:3px solid #dfbadb;border-radius:24px}.adventure-panel h2{color:#97658f}.adventure-panel button{border:2px solid #dfbfd9;border-radius:13px;background:#fff9ec;color:#825b81;min-height:40px}.adventure-panel button:hover,.bag-item.selected{outline:3px solid #f0c765!important;background:#fff0c7}.adventure-options{display:flex;flex-wrap:wrap;gap:8px}.bag-grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-template-rows:repeat(var(--rows),48px);gap:3px;padding:8px;background:#dec9e0;border-radius:16px;margin:12px 0}.bag-cell{min-width:0!important;min-height:0!important;border:1px dashed #ccacd0!important;background:#fff8f0!important;padding:0!important}.bag-item{z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:2px!important;overflow:hidden;background:linear-gradient(135deg,#fff2bd,#f3dbea)!important}.bag-item span{font-size:24px}.bag-item small{font-size:10px}.bag-item b{font-size:10px;align-self:flex-end}.gear-card,.control-card{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;background:#fffcf1;border:2px solid #ecd8e4;border-radius:16px;margin:9px 0}.control-card kbd{background:#edb5d8;color:#674a76;border-radius:8px;padding:10px;box-shadow:0 3px #c493bc}.gear-card strong{margin-right:auto}#gearPreview{width:100%;max-height:230px;object-fit:contain}.adventure-shortcuts{display:flex;gap:5px;justify-content:flex-end;margin:4px 0}.town-controls{gap:5px!important;flex-wrap:wrap}.town-controls button{padding:7px 9px!important;font-size:12px}@media(max-width:600px){.bag-grid{grid-template-rows:repeat(var(--rows),39px);gap:2px}.bag-item small{font-size:8px}.bag-item span{font-size:18px}.adventure-panel{padding:8px}.town-controls span{display:none}}
/* Inventory has its own spacious presentation; other dialogs retain their size. */
dialog:has(#bagGrid){width:min(1180px,96vw);max-width:96vw;max-height:94dvh;padding:14px;background:#fff6ed;border:3px solid #dcbad5;border-radius:28px}
dialog:has(#bagGrid) .adventure-panel{padding:24px 28px;border:0;background:linear-gradient(120deg,#fff8e9,#f7edf6)}
dialog:has(#bagGrid) h2{font-size:26px;margin:6px 0 12px}
dialog:has(#bagGrid) .bag-grid{grid-template-rows:repeat(var(--rows),clamp(44px,7vh,72px));gap:5px;padding:12px}
dialog:has(#bagGrid) .bag-item{touch-action:none;user-select:none;cursor:grab}
dialog:has(#bagGrid) .bag-item span{font-size:32px}
dialog:has(#bagGrid) .bag-item small,dialog:has(#bagGrid) .bag-item b{font-size:12px}
.bag-item.dragging{opacity:.3}.bag-cell.drop-ok{background:#cce9d6!important;outline:2px solid #8db49f}.bag-cell.drop-no{background:#f1c9d2!important;outline:2px solid #cf8fa5}
.bag-drag-ghost{position:fixed!important;z-index:100;pointer-events:none;opacity:.85;transform:none!important;box-shadow:0 8px 22px #73536c40}
@media(max-height:550px){dialog:has(#bagGrid){max-height:98dvh}dialog:has(#bagGrid) .adventure-panel{padding:8px}dialog:has(#bagGrid) h2{font-size:20px}dialog:has(#bagGrid) .bag-grid{grid-template-rows:repeat(var(--rows),44px)}}
.quest-complete{text-align:center}.quest-complete h2{font-size:30px;color:#a86d97}.quest-rewards{display:grid;gap:10px;padding:20px;margin:16px 0;background:#fff9e3;border:2px dashed #e6c88f;border-radius:18px}.quest-rewards strong{font-size:20px;color:#a77550}.quest-confetti{font-size:32px;color:#d99ebe;animation:quest-pop .4s ease-out}@keyframes quest-pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.quest-confetti{animation:none}}
.atlas-category{width:100%;padding:12px 16px;background:#fffaf0;border:1px solid #e5d3df;border-radius:15px}.atlas-category h3{margin:0;color:#97658f;font-size:18px}.atlas-category h3 small{font-size:12px;color:#927b8c}.atlas-category p{margin:5px 0 10px;color:#877483;font-size:12px}.atlas-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:7px}.atlas-links button{text-align:left}dialog:has(#townAtlas){width:min(980px,95vw);max-width:95vw;max-height:92dvh}
.day-review{text-align:center}.review-money{font-size:32px;color:#a47792}.day-review canvas{display:block;max-width:100%;margin:auto}.day-review button+button{margin-top:8px}
