/* Run-only relics deliberately use gold/teal, not permanent-amethyst purple. */
.run-treasure-panel{top:112px;right:92px;width:min(430px,calc(100vw - 90px));max-height:calc(100dvh - 160px);overflow:auto;touch-action:pan-y;padding:18px;color:#e6ead5;border-color:#a28d50}
.run-treasure-panel h2{font-size:21px;margin:3px 0}.treasure-rule{font-size:11px;line-height:1.8;color:#b2cbb9}.treasure-summary{padding:10px;background:#203d34;border:1px solid #70885b;border-radius:6px;font-size:12px;line-height:1.7;white-space:pre-line}
.treasure-card{display:flex;align-items:center;gap:10px;background:#19372e;border:1px solid #786e48;border-radius:7px;padding:11px;margin:9px 0;overflow-wrap:anywhere}.treasure-card>span{color:#e5c572;font-size:25px}.treasure-card>div{flex:1;min-width:0}.treasure-card b{font-size:13px;color:#f2d992}.treasure-card p{font-size:11px;line-height:1.7;margin:5px 0;color:#c5d8c4}.treasure-card small{font-size:10px;color:#b6c6af}.treasure-card button{flex-shrink:0;font-size:11px;padding:8px 10px}.treasure-latest{font-size:12px;line-height:1.7;color:#f4d67c;background:#33462b;border-left:3px solid #d5b667;padding:9px;overflow-wrap:anywhere}.treasure-empty{font-size:13px;line-height:1.8;padding:20px 0;color:#b3c9b6}
@media(max-width:600px){.run-treasure-panel{top:90px;right:64px;padding:12px;max-height:calc(100dvh - 115px);width:calc(100vw - 78px)}.treasure-card{padding:9px;gap:6px}.merchant-tabs{flex-wrap:wrap}.merchant-tabs button{min-width:56px}.treasure-card button{padding:7px}.escape-heading nav{flex-wrap:wrap}}
@media(max-height:500px){.run-treasure-panel{max-height:calc(100dvh - 100px)}}

.treasure-award-banner{position:fixed;z-index:65;top:100px;left:50%;transform:translateX(-50%);width:max-content;max-width:min(650px,calc(100vw - 32px));box-sizing:border-box;background:#244632f5;border:2px solid #d4b86e;box-shadow:0 6px 25px #0008;padding:12px 18px;border-radius:9px;color:#ffe29a;font-size:14px;font-weight:600;line-height:1.6;text-align:center;pointer-events:none;overflow-wrap:anywhere}.treasure-award-banner[hidden]{display:none!important}
@media(max-width:600px){.treasure-award-banner{top:88px;font-size:12px;padding:9px 12px}}
/* Earned run relics: a separate single horizontal track, never personal passives. */
.run-treasure-icons{position:fixed;z-index:22;left:12px;top:105px;max-width:calc(100vw - 124px);width:max-content;box-sizing:border-box;padding:5px 7px;background:#172c23ed;border:1px solid #9b8651;border-radius:7px;pointer-events:auto;color:#ead69e}
.run-treasure-icons[hidden]{display:none!important}.run-treasure-icons h2{font-size:10px;line-height:13px;font-weight:500;margin:0 0 4px;white-space:nowrap}.run-treasure-icon-list{display:flex;gap:5px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-width:100%;overscroll-behavior:contain;touch-action:pan-x;scrollbar-width:thin;padding:2px}
.treasure-icon{position:relative;flex:0 0 48px;width:48px;height:48px;min-height:48px;padding:0;overflow:hidden;border:1px solid #b39855;border-radius:6px;background:#10271e;cursor:help;line-height:1}.treasure-icon img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.treasure-icon-count{position:absolute;right:0;bottom:0;min-width:15px;padding:2px 3px;background:#101b13e8;border-radius:4px 0 0 0;color:#fff2c5;font-size:11px;font-weight:700;line-height:12px;pointer-events:none}.treasure-icon:focus-visible{outline:2px solid #ffe29a;outline-offset:-3px}
.treasure-icon-detail{z-index:111}.treasure-icon-detail strong{display:block;color:#ffe2a0;font-size:13px}.treasure-card>img{width:48px;height:48px;flex:0 0 48px;border-radius:5px;object-fit:cover}
@media(max-width:600px){.run-treasure-icons{left:9px;max-width:calc(100vw - 120px);padding:4px}.run-treasure-icons h2{font-size:9px}}
@media(max-height:500px){.run-treasure-icons{padding:2px 4px}.run-treasure-icons h2{font-size:9px;line-height:11px;margin-bottom:1px}.run-treasure-icon-list{gap:3px}.treasure-icon{width:40px;height:40px;min-height:40px;flex-basis:40px}}
