/* EVO armory: build, sockets, active bonuses, then the collection. */
#modal-root .modal.medal-modal,body.scp-menu-open #modal-root .modal.medal-modal{width:min(1120px,100%);max-height:94dvh;padding:24px 28px;background:linear-gradient(145deg,#14222e,#0d1721 70%);border:1px solid #4b6075;border-top:2px solid #cead6d;border-radius:14px;scrollbar-color:#526b87 #0a121d;overscroll-behavior:contain}
.medal-modal .subtitle{max-width:760px}
.medal-modal button:hover{transform:none}
.medal-toolbar{display:grid;grid-template-columns:minmax(160px,1fr) auto auto;align-items:end;gap:16px;margin:18px 0 8px}
.medal-toolbar label{display:flex;flex-direction:column;gap:6px;min-width:0;max-width:330px;font-size:10px;letter-spacing:1.2px;color:#a9bed0}
.medal-toolbar select{width:100%;min-width:0;min-height:44px;padding:10px 32px 10px 12px;border-radius:7px;color:#edf5fc;border:1px solid #526e86;background:#102031;font-family:inherit;font-size:13px;font-weight:600;letter-spacing:0}
.medal-toolbar select:disabled{opacity:1;color:#bcd2e2;border-style:dashed}
.medal-active-count{display:flex;align-items:center;gap:17px;min-height:44px;padding:4px 0;font-size:11px;white-space:nowrap}
.medal-active-count>span{display:flex;align-items:center;gap:7px}
.medal-active-count strong{font-size:21px;line-height:1.1;color:#ecd099;font-variant-numeric:tabular-nums}
.medal-active-count strong small{display:inline;font-size:11px;color:#a2b7ca;margin-left:3px}
.medal-active-count b{font-size:11px;color:#bfd1df;font-weight:500}
.medal-active-count .is-current strong,.medal-active-count .is-current b{color:#9ce8c8}
.medal-toolbar .medal-close-top{display:flex;align-items:center;justify-content:center;gap:12px;min-width:92px;min-height:44px;padding:10px 14px;border:1px solid #6d9ba5;border-radius:7px;background:#1f3b45;color:#dbf8f3;font-size:12px}
.medal-close-top span{font-size:21px;line-height:1}
.medal-session-note{font-size:11px;line-height:1.5;color:#acc3d4}
.medal-socket-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.medal-socket-heading h3{font-size:14px;color:#e0eaf4}
.medal-socket-heading>span{font-size:11px;color:#a8bdce;text-align:right}
.medal-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:10px 0 12px}
.medal-slot{position:relative;display:flex;align-items:center;flex-direction:column;min-width:0;min-height:164px;padding:12px 8px 10px;background:#142432;border:1px solid #435e73;border-radius:9px;text-align:center;transition:border-color .15s,background .15s;isolation:isolate}
.medal-slot .medal-icon{width:48px;height:57px;margin:4px auto 7px}
.medal-slot>small:first-child{color:#a7bfd0;font-size:10px;letter-spacing:1px;font-weight:700}
.medal-slot strong{font-size:12px;line-height:1.25;display:block;margin-top:2px;overflow-wrap:anywhere}
.medal-slot .medal-skill-label{color:#b0c3d4;font-size:10px;line-height:1.3;margin-top:5px}
.medal-slot .medal-status{display:flex;align-items:center;justify-content:center;gap:4px;min-height:16px;margin-top:auto;padding-top:7px;color:#b8c9d7;font-size:10px;line-height:1.2}
.medal-status i{display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-size:13px}
.medal-status svg,.medal-note-symbol svg{width:12px;height:12px;flex:none}
.medal-slot.is-locked{border-style:dashed;background:#101c29}
.medal-slot.is-locked .medal-icon{opacity:.6}
.medal-slot.is-locked .medal-status{color:#bcc3d2}
.medal-slot.is-prepared .medal-status{color:#e7cb97}
.medal-slot.is-active{border-color:#69ab96;background:#173039}
.medal-slot.is-active .medal-status{color:#a7f3d4}
.medal-slot.is-ready .medal-status{color:#9ddded}
.medal-slot.is-selected,.medal-slot[aria-pressed="true"]{border-color:#efc77e;box-shadow:inset 0 0 0 1px #efc77e55;background:#283434}
.medal-slot:focus-visible{outline:2px solid #ffe1a4;outline-offset:3px}
.medal-slot:disabled{opacity:.7}
.medal-note{display:flex;align-items:flex-start;gap:10px;font-size:11px;line-height:1.5;padding:11px 13px;background:#192c3c;border:1px solid #405c71;border-radius:8px;color:#c3d5e4;margin:12px 0}
.medal-note-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 18px;margin-top:2px;color:#f1d39b;font-size:16px;line-height:1.2}
.medal-note strong{color:#f1d39b;font-size:12px}
.medal-note p{margin-top:3px}
.medal-note small{display:block;margin-top:5px;font-size:10px;color:#c0d3e5}
.medal-message{min-height:18px;font-size:12px;line-height:1.5;color:#e7d5a4;margin:12px 0}
.medal-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #385064;padding-top:16px;margin-bottom:13px}
.medal-section-heading h3{font-size:14px;color:#e0eaf4}
.medal-section-heading h3 span{display:inline-block;margin-left:7px;font-size:10px;padding:2px 6px;border:1px solid #4a657b;border-radius:5px;color:#bad2e6}
.medal-section-heading>small{font-size:11px;line-height:1.4;color:#a5bdcf;text-align:right}
.medal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.medal-card{--medal-color:#a9c1e3;min-width:0;position:relative;display:grid;grid-template-columns:60px minmax(0,1fr);grid-template-rows:auto auto 1fr auto;column-gap:10px;row-gap:3px;padding:15px 13px 12px;background:#122231;border:1px solid #344d65;border-radius:9px;overflow:hidden}
.medal-card::before{position:absolute;content:"";left:0;top:0;width:2px;height:100%;background:var(--medal-color);opacity:.7}
.medal-card.is-equipped{border-color:#a18b56;background:#252d2d}
.medal-card .medal-art{grid-column:1;grid-row:1/4;display:flex;align-items:center;justify-content:center}
.medal-card .medal-icon{width:58px;height:68px}
.medal-card .medal-category{grid-column:2;color:var(--medal-color);font-size:9px;letter-spacing:1px;text-transform:uppercase}
.medal-card h3{grid-column:2;font-size:13px;line-height:1.3;margin:2px 0 4px;color:#f0f4fa}
.medal-card p{grid-column:2;line-height:1.5;font-size:11px;color:#bccddb;min-height:32px;margin:0 0 10px}
.medal-card .medal-card-action{grid-column:1/-1;min-width:0;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #3c516277;padding-top:10px;gap:8px}
.medal-card-action small{font-size:10px;line-height:1.4;color:#c3d1de}
.medal-card-action button{font-size:11px;line-height:1.2;min-width:74px;min-height:36px;padding:8px 12px;border-radius:6px;background:#263e52;border-color:#608099;color:#e7f4ff;font-weight:650}
.medal-card-action button:not(:disabled):hover{background:#3b5871;border-color:#c0d3e1}
.medal-card.is-equipped .medal-card-action button{border-color:#a18b56;background:#413c2b;color:#f4dfb6}
.medal-card-action button:disabled{opacity:.58}
.medal-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px;padding-top:16px;border-top:1px solid #385064}
.medal-actions p{font-size:11px;line-height:1.5;max-width:700px;color:#a6bdce}
.medal-actions button{white-space:nowrap;padding:10px 20px;min-height:44px;font-size:12px}
.medal-toolbar select:focus-visible,.medal-card-action button:focus-visible{outline:2px solid #a2f4e8;outline-offset:3px}
.medal-icon{display:block;flex:none;overflow:visible}
/* The run strip keeps the original position and marks state with a shape. */
.medal-hud{display:flex;gap:5px;align-items:center;pointer-events:auto}
.medal-hud-slot{position:relative;width:35px;height:39px;min-width:0;padding:2px;display:grid;place-items:center;border-radius:6px;border:1px solid #647b8b;background:#0b1825ed}
.medal-hud-slot .medal-icon{width:27px;height:32px}
.medal-hud-slot.is-locked{border-style:dashed}
.medal-hud-slot.is-locked>.medal-icon{opacity:.5}
.medal-hud-slot.is-active{border-color:#b1e6c7}
.medal-hud-label{font-size:9px;color:#bfd1e5;letter-spacing:1px;margin-right:5px}
.medal-hud-state{position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;width:14px;height:14px;border:1px solid #5b7183;border-radius:4px;background:#0a1823;color:#c4d1df;font-size:12px;line-height:1;pointer-events:none}
.medal-hud-state svg{width:10px;height:10px}
.medal-hud-slot.is-active .medal-hud-state{border-color:#7fbea4;color:#b3f9d5}
body.scp-menu-open #modal-root .medal-modal button:not(:disabled){transform:none}
body.scp-menu-open #modal-root .medal-modal .medal-slot{border-radius:9px}
body.scp-menu-open #modal-root .medal-modal .medal-card-action button{border-radius:6px}
body.scp-menu-open #modal-root .medal-modal .medal-slot.is-selected{border-color:#efc77e;background:#283434}
#medal-hud-slots{position:absolute;bottom:140px;left:50%;transform:translateX(-50%);padding:5px 7px;background:#0b1723ed;border:1px solid #41576a;border-radius:8px;z-index:3}
#medal-menu{color:#e9cb93}
#medal-hud{color:#f3cf8d}
#hud .active-effects{bottom:200px}
@media(max-width:800px){
 #modal-root .modal.medal-modal,body.scp-menu-open #modal-root .modal.medal-modal{padding:20px}
 .medal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .medal-toolbar{gap:12px}
 .medal-slots{gap:6px}
 .medal-slot{min-height:156px;padding:10px 5px 9px}
 .medal-slot strong{font-size:11px}
 .medal-slot .medal-skill-label{font-size:9px}
 .medal-slot .medal-icon{width:43px;height:51px}
}
@media(max-width:520px){
 #modal-root .modal.medal-modal,body.scp-menu-open #modal-root .modal.medal-modal{padding:16px 13px;border-radius:11px;max-height:96dvh}
 .medal-toolbar{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:15px}
 .medal-toolbar label{grid-column:1;grid-row:1;max-width:none}
 .medal-toolbar select{font-size:12px;padding-right:24px}
 .medal-toolbar .medal-close-top{grid-column:2;grid-row:1;min-width:80px;padding:10px 12px}
 .medal-active-count{grid-column:1/-1;grid-row:2;min-height:25px;padding:0;gap:20px}
 .medal-active-count strong{font-size:18px}
 .medal-active-count b{font-size:11px}
 .medal-session-note{font-size:10px}
 .medal-socket-heading h3{font-size:13px}
 .medal-socket-heading>span{font-size:10px}
 .medal-slots{gap:4px;margin-top:10px}
 .medal-slot{min-height:137px;padding:9px 3px 8px;border-radius:7px}
 .medal-slot .medal-icon{width:34px;height:40px;margin:7px auto}
 .medal-slot strong{font-size:10px}
 .medal-slot>small:first-child{font-size:9px;letter-spacing:.5px}
 .medal-slot .medal-skill-label{display:none}
 .medal-slot .medal-status{font-size:9px;line-height:1.25;flex-direction:column;gap:3px}
 .medal-status i{font-size:12px}
 .medal-note{padding:10px 11px;font-size:11px}
 .medal-note strong{font-size:12px}
 .medal-section-heading h3{font-size:13px}
 .medal-section-heading>small{font-size:10px;max-width:110px}
 .medal-grid{grid-template-columns:1fr;gap:10px}
 .medal-card{grid-template-columns:51px minmax(0,1fr);gap:3px 11px;padding:13px 12px 11px}
 .medal-card .medal-icon{width:49px;height:58px}
 .medal-card p{font-size:11px;min-height:0}
 .medal-card-action button{min-height:44px;min-width:96px;font-size:12px}
 .medal-actions{align-items:flex-start;gap:12px}
 .medal-actions p{font-size:10px}
 .medal-actions button{padding:10px 14px}
}
@media(max-width:600px){
 #medal-hud-slots{bottom:160px;left:auto;right:24px;transform:none;padding:4px 5px;gap:4px}
 .medal-hud-slot{width:32px;height:36px}
 .medal-hud-slot .medal-icon{width:25px;height:30px}
 .medal-hud-label{display:none}
 #hud .guide{bottom:115px}
 #hud .active-effects{bottom:239px}
}
@media(max-height:540px) and (min-width:601px){
 #medal-hud-slots{bottom:82px;padding:4px 5px}
 .medal-hud-slot{width:32px;height:36px}
 .medal-hud-slot .medal-icon{width:25px;height:30px}
 #hud .active-effects{bottom:132px}
}
@media(prefers-reduced-motion:reduce){.medal-slot{transition:none}}

.medal-tier-key{display:flex;flex-wrap:wrap;gap:6px 14px;margin:8px 0 16px}
.medal-tier-key span{font-size:11px;color:#dce4ee;border-bottom:2px solid var(--rim);padding:3px 0}
.medal-card .medal-tier-info b{color:#eee4cd}
.medal-card .medal-next-effect{grid-column:1/-1;min-height:0;margin:2px 0 6px}
.medal-card [data-medal-forge],#medal-forge-jump{min-height:44px;padding:7px 10px;border:1px solid #ba985e;border-radius:6px;background:#372f26;color:#fae5b4;font-weight:650}
.medal-card [data-medal-forge]{grid-column:1/-1;margin-bottom:5px;white-space:normal}
.medal-card [data-medal-forge]:disabled{opacity:.55}
#medal-forge-jump{margin-top:8px}

.forge-inventory,.forge-recipe ul{list-style:none;padding:0;margin:0}
.forge-inventory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:6px;margin:10px 0 14px}
.forge-inventory li,.forge-recipe li{display:flex;align-items:center;gap:6px;color:#e3e9ed;line-height:1.25}
.forge-inventory li{background:#17232d;border:1px solid #42515b;padding:5px 8px;border-radius:6px;font-size:13px}
.forge-inventory li b,.forge-recipe li b{margin-left:auto;font-variant-numeric:tabular-nums}
.forge-ore{flex:0 0 auto;width:24px;height:24px;display:inline-block;background-image:url("forge-minerals.webp");background-size:300% 200%;background-repeat:no-repeat}
.forge-mining-note{color:#c1d1d7;margin:6px 0;font-size:14px}
.medal-card .forge-recipe{grid-column:1/-1;padding-top:6px;border-top:1px solid #3a4750;font-size:13px}
.forge-recipe .forge-ore{width:20px;height:20px}
.medal-card .forge-recipe p{margin:5px 0;color:#f3d790}
.medal-card .forge-short,.medal-card .forge-recipe p.forge-short{color:#ffc1a9}
.medal-card .forge-recipe button{width:100%}
