.held-view{position:fixed;right:10%;bottom:75px;width:min(31vw,300px);height:min(36vh,280px);z-index:1;pointer-events:none;filter:drop-shadow(0 12px 8px #152f3b55);transform-origin:80% 100%}
.modal{z-index:20}
.held-view svg{width:100%;height:100%;overflow:visible;transform:translate(var(--held-x,0px),var(--held-y,0px)) rotate(var(--held-tilt,0deg));transition:transform .07s linear}
.held-view.swing{animation:held-swing .4s cubic-bezier(.18,.8,.35,1)}
.held-view.throw-bow{animation:bow-release .58s ease-out}
.held-view.throw-spear{animation:spear-throw .64s ease-out}
.held-label{position:absolute;right:8px;bottom:4px;background:#173e33c9;color:#fff;padding:4px 8px;border-radius:8px;font-size:11px;font-weight:700}
.hit-feedback{position:fixed;left:50%;top:39%;transform:translate(-50%,0);z-index:5;color:#fff;font-weight:900;font-size:24px;text-align:center;pointer-events:none;text-shadow:0 2px 4px #411616,0 0 12px #f23c30;animation:hit-rise .65s ease-out forwards}
.hit-cross{position:fixed;left:50%;top:50%;width:23px;height:23px;transform:translate(-50%,-50%) rotate(45deg);z-index:5;pointer-events:none;border:3px solid #ffbd65;box-shadow:0 0 12px #fd3939;border-radius:3px;animation:hit-cross .45s ease-out forwards}
@keyframes held-swing{0%{transform:translate(0,0) rotate(0)}25%{transform:translate(17px,14px) rotate(17deg)}58%{transform:translate(-45px,-44px) rotate(-36deg)}78%{transform:translate(-18px,-20px) rotate(-12deg)}100%{transform:translate(0,0) rotate(0)}}
@keyframes bow-release{0%{transform:translate(0,0) rotate(0)}35%{transform:translate(36px,20px) rotate(12deg)}52%{transform:translate(-22px,-26px) rotate(-10deg)}100%{transform:translate(0,0) rotate(0)}}
@keyframes spear-throw{0%{transform:translate(0,0) rotate(0)}30%{transform:translate(40px,28px) rotate(30deg)}54%{transform:translate(-70px,-55px) rotate(-38deg)}100%{transform:translate(0,0) rotate(0)}}
@keyframes hit-rise{0%{opacity:0;transform:translate(-50%,16px) scale(.65)}15%{opacity:1}100%{opacity:0;transform:translate(-50%,-45px) scale(1.15)}}
@keyframes hit-cross{0%{opacity:1;scale:.6}100%{opacity:0;scale:1.5}}
@media(max-width:600px){.held-view{right:9%;bottom:70px;width:150px;height:150px;opacity:.95}.held-label{font-size:9px}.hit-feedback{top:35%;font-size:20px}}

.slot .found-count{position:absolute;top:0;left:2px;background:#eecb70;color:#342d1a;border-radius:6px;padding:1px 3px;font-size:9px;font-weight:900}

.audio-controls{display:flex;gap:8px;margin-top:12px}.audio-controls button{flex:1;border:1px solid #b7d8b2;background:#fff;color:#286243;border-radius:9px;padding:9px 5px;font-size:12px;font-weight:750}.audio-controls button[aria-pressed="false"]{background:#e7eae3;color:#6c756b}

/* Keep the held model above the interactive inventory and mobile controls. */
.held-view{bottom:185px;right:7%;width:min(26vw,245px);height:min(28vh,220px)}
.held-label{bottom:16px}
@media(max-width:650px){.held-view{right:8px;bottom:calc(238px + env(safe-area-inset-bottom));width:115px;height:115px;opacity:.87}.held-label{right:0;bottom:4px;font-size:9px}}
@media(max-width:650px) and (max-height:600px){.held-view{right:8px;bottom:155px;width:90px;height:90px}.held-label{display:none}}
/* Bigger faceted equipment reads as a held model rather than an inventory swatch. */
.held-view{width:min(31vw,295px);height:min(35vh,275px);bottom:170px;filter:drop-shadow(0 16px 12px #0a243882) drop-shadow(0 0 4px #fff4c24a)}
.held-view svg{overflow:visible;transform:perspective(700px) translate3d(var(--held-x,0px),var(--held-y,0px),0) rotate(var(--held-tilt,0deg)) rotateY(-8deg);transform-origin:65% 78%}
.held-label{background:#173b47e8;border:1px solid #e6cf8b;color:#fff3ce;box-shadow:0 3px 12px #132b3c77}
@media(max-width:650px){.held-view{right:8px;bottom:calc(225px + env(safe-area-inset-bottom));width:142px;height:145px}}
@media(max-width:650px) and (max-height:600px){.held-view{bottom:152px;width:96px;height:98px}}
@media(prefers-reduced-motion:reduce){.held-view svg{transition:none}}
.held-view.model-3d svg{visibility:hidden}.held-view.model-3d{filter:none}
.held-view.third-person{display:none}

/* Compact fallback for browsers without the WebGL held model. */
.held-view{width:min(19vw,175px);height:min(22vh,165px);right:5%;bottom:125px}
@media(max-width:650px){.held-view{width:88px;height:93px;right:5px;bottom:calc(180px + env(safe-area-inset-bottom))}}
