.boss-collection-summary{margin:12px 0;padding:15px;border:1px solid #726342;border-radius:9px;background:#201e19;color:#e8dec9}.boss-collection-summary>div{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.boss-collection-summary span,.boss-collection-summary p,.boss-collection-summary summary{font-size:12px;line-height:1.6}.boss-collection-summary>button{margin-top:12px}.boss-collection-summary p{margin:9px 0;color:#c9c4b5}.boss-quality-ranges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 14px}.boss-quality-ranges span{display:flex;justify-content:space-between;gap:10px}.boss-item-quality{display:inline-block;font-size:13px;white-space:nowrap;color:#ecd49b}.boss-box-panel{text-align:center;padding:22px 12px 18px;max-width:580px;margin:auto}.boss-box-panel h3{font-size:23px;color:#f2e5c6;margin:5px 0 12px}.boss-box-panel p{line-height:1.65}.boss-box-eyebrow{font-size:12px;color:#d8b678;letter-spacing:.08em}.boss-box-count{color:#d9c89f}.boss-box-open-button{padding:12px 34px!important;margin:8px 0;border-color:#d2b678!important}.boss-box-footnote{font-size:12px;color:#c7c3b6;margin:15px auto 0;max-width:440px}.boss-quality-value{font-size:clamp(22px,5vw,35px);font-weight:700;color:#f3dea5;font-variant-numeric:tabular-nums;margin:12px 0}.boss-effect-change{border-top:1px solid #514932;border-bottom:1px solid #514932;padding:8px 0;margin:15px 0;font-size:14px;color:#eee7d6}.boss-effect-change .boss-effect-old{color:#aaa79b;font-size:12px}.boss-box-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:20px}.boss-box-error{padding:10px;color:#f0c1a8;background:#462821;border-radius:6px;font-size:13px}.boss-chest{height:97px;width:124px;position:relative;margin:8px auto 22px;filter:drop-shadow(0 6px 12px #0007)}.boss-chest-body{position:absolute;left:13px;right:13px;top:35px;bottom:6px;border:2px solid #b49450;border-radius:4px 4px 12px 12px;background:linear-gradient(110deg,#34372f,#252b26);box-shadow:inset 11px 0 #55482c,inset -11px 0 #55482c}.boss-chest-lid{position:absolute;left:8px;right:8px;top:17px;height:29px;border:2px solid #c6a85d;border-radius:14px 14px 3px 3px;background:linear-gradient(#696043,#393b30);z-index:2;transform-origin:center bottom}.boss-chest b{position:absolute;left:47px;top:48px;width:30px;color:#e9d598;font-size:25px;line-height:30px;z-index:3}.boss-chest.is-open .boss-chest-lid{transform:translateY(-14px) rotate(-8deg)}.boss-chest.is-open{animation:boss-reveal .5s ease-out}.boss-box-result.first .boss-chest{filter:drop-shadow(0 0 15px #d0ac4c66)}.boss-box-result:focus{outline:none}.boss-box-result.kept .boss-quality-value{color:#c7ccbb}@keyframes boss-reveal{from{opacity:.35;transform:translateY(7px) scale(.95)}to{opacity:1;transform:none}}@media(max-width:480px){.boss-box-panel{padding:12px 0}.boss-quality-ranges{grid-template-columns:1fr}.boss-quality-value{font-size:25px}.boss-box-actions>button{min-height:42px}.boss-collection-summary{padding:12px}}@media(prefers-reduced-motion:reduce){.boss-chest.is-open{animation:none}}

/* Region chest controls flow in map order, wrapping without a nested scroll area. */
.boss-collection-summary>.boss-box-map-choices{display:block;margin-top:10px;min-width:0;max-width:100%}.boss-box-map-rail{display:flex;flex-wrap:wrap;align-items:stretch;gap:6px;min-width:0;max-width:100%;overflow:visible;padding:0}.boss-box-map-rail>.modal-button{flex:0 1 auto;min-width:0;max-width:100%;min-height:44px;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;line-height:1.5;margin:0}
/* Keep two natural-width choices per phone row; longer text wraps inside. */
@media(min-width:320px) and (max-width:480px){.boss-box-map-rail>.modal-button{max-width:calc(50% - 3px)}}

/* The result reads top to bottom: item, actual owned effect, old/new roll, actions. */
.boss-box-result:not(.is-first-presentation) .boss-chest.is-open,.boss-box-result.kept .boss-chest.is-open{animation:none}.boss-result-effect{font-size:14px;color:#eee7d6;margin:8px auto 20px;max-width:480px}.boss-quality-comparison{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:10px;padding:18px 8px;border-top:1px solid #514932;border-bottom:1px solid #514932}.boss-quality-comparison>div{min-width:0}.boss-quality-comparison>div>span{display:block;color:#c7c3b6;font-size:14px;line-height:1.5;margin-bottom:6px}.boss-quality-comparison strong{display:block;font-size:clamp(20px,4vw,28px);line-height:1.35;color:#f3dea5;font-variant-numeric:tabular-nums;white-space:nowrap}.boss-quality-arrow{font-size:23px;color:#b8bda7}.boss-result-actions{flex-wrap:nowrap;gap:8px}.boss-result-actions>button{flex:1 1 0;min-width:0;padding:10px 8px!important;white-space:nowrap;font-size:14px!important}.boss-result-actions>button:disabled{opacity:.45;cursor:default}.boss-result-effect>span{display:block;font-size:12px;color:#c7c3b6;margin-bottom:4px}.boss-result-message{font-size:14px;color:#d9dfce;margin:14px 0 0}.boss-quality-new.is-improved strong{color:#bcdbaf}.boss-quality-new.is-revealing strong{animation:relic-quality-reveal .75s ease-out}@keyframes relic-quality-reveal{0%{color:#e0f4d5;text-shadow:0 0 12px #bceba880}100%{color:#bcdbaf;text-shadow:none}}#modal[data-view="bossBox"] #modal-eyebrow{display:none}@media(max-width:480px){.boss-quality-comparison{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:6px;padding:15px 0}.boss-quality-comparison strong{font-size:21px}.boss-quality-comparison>div>span{font-size:14px}.boss-result-actions{gap:6px}.boss-result-actions>button{padding:10px 5px!important;font-size:14px!important}}@media(prefers-reduced-motion:reduce){.boss-quality-new.is-revealing strong{animation:none}}

/* Batch actions stay beside single opening; the collection layout is unchanged. */
.boss-box-open-actions{gap:8px;margin-top:0}.boss-box-open-actions>.boss-box-open-button{flex:1 1 0;min-width:0;max-width:160px;padding:12px 16px!important;white-space:normal}.boss-box-panel button:disabled{opacity:.45;cursor:default}.boss-result-actions.boss-batch-actions{flex-wrap:wrap}.boss-result-actions.boss-batch-actions>.modal-button{flex:1 1 96px;white-space:normal;margin:0;overflow-wrap:anywhere}.boss-box-batch h3{font-size:21px}.boss-batch-summary{font-size:13px;color:#d9c89f}.boss-batch-results{list-style:none;margin:12px 0;padding:0;text-align:left}.boss-batch-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #514932;min-width:0}.boss-batch-number{flex:0 0 18px;color:#aaa79b;font-size:12px;text-align:center}.boss-batch-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.boss-batch-row b,.boss-batch-row>div>span{display:block;font-size:13px;line-height:1.5}.boss-batch-row>div>span{font-size:12px;color:#c7c3b6}.boss-batch-row.first b,.boss-batch-row.upgrade b{color:#bcdbaf}.boss-batch-row>.modal-button{flex:0 0 auto;min-height:40px;padding:8px!important;font-size:12px!important}.boss-box-batch .boss-box-actions{margin-top:12px}
