/* Goblin Arena: going down (js/arena/wasted.js). The view drains to grey, a dark band, and GOBBLED drips in. */
#gsview canvas { transition: filter 0.3s ease-out; }
#gsview.wasted canvas { filter: grayscale(1) contrast(1.15) brightness(0.78) sepia(0.12); transition: filter 1.6s ease-out; }
#gswasted { position: absolute; inset: 0; pointer-events: none; display: none; z-index: 4; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%); }
#gswasted.show { display: block; animation: wsfade 1.4s ease-out both; }
#gswasted .wsband { position: absolute; left: 0; right: 0; top: 52%; height: 118px; transform: translateY(-50%); background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(4, 10, 2, 0.72) 22%, rgba(4, 10, 2, 0.72) 78%, rgba(0, 0, 0, 0)); opacity: 0; }
#gswasted.show .wsband { animation: wsband 0.5s ease-out 0.5s both; }
#gswasted b { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); white-space: nowrap; font: 84px var(--f-head); letter-spacing: 3px; color: #6fae2e; text-shadow: 0 0 22px rgba(80, 160, 20, 0.45), 3px 3px 0 #0b1a02, -1px -1px 0 #0b1a02; opacity: 0; }
#gswasted.show b { animation: wsword 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) 0.55s both; }
#gswasted span { position: absolute; left: 50%; top: calc(52% + 56px); transform: translateX(-50%); width: calc(100% - 32px); text-align: center; font: bold 17px var(--f-ui); color: #e8ead8; text-shadow: 1px 1px 0 #000; opacity: 0; }
#gswasted.show span { animation: wsfade 0.6s ease-out 1.1s both; }
#scopes.wasted :is(#gscross, #gsweapon, #gshitdir, #gshurt, #gstarget, #gsblood) { display: none; }
@keyframes wsfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wsband { from { opacity: 0; transform: translateY(-50%) scaleY(0.2); } to { opacity: 1; transform: translateY(-50%) scaleY(1); } }
@keyframes wsword { from { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
/* phones: a smaller word, and up out of the way of the loadout picker on short screens */
@media (max-width: 760px) { #gswasted b { font-size: clamp(40px, 13vw, 84px); letter-spacing: 1px; } #gswasted .wsband { height: 84px; } #gswasted span { top: calc(52% + 40px); font-size: 14px; } }
@media (max-height: 520px) { #gswasted b, #gswasted .wsband { top: 20%; } #gswasted b { font-size: clamp(36px, 10vh, 64px); } #gswasted .wsband { height: 70px; } #gswasted span { top: calc(20% + 30px); font-size: 13px; } }
