/* Goblin Arena: killstreaks. The HUD slots (bottom right, above the gun), the banners when one's ready or called in,
   and the picker in the loadout. */

#gsstreaks { position: absolute; right: 18px; bottom: 88px; display: none; flex-direction: column; align-items: flex-end; gap: 5px; pointer-events: none; }
#gsstreaks.show { display: flex; }
#gsstreaks.deny .gsstk { animation: gsstkdeny 0.4s ease-out; }
.gsstk { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 6px; border-radius: 10px; background: rgba(10, 12, 6, 0.62); border: 1px solid rgba(255, 255, 255, 0.12); color: #d8e0c0; opacity: 0.78; transition: opacity 0.2s, transform 0.2s; max-width: min(260px, 46vw); }
.gsstkicon { font-size: 20px; line-height: 1; filter: grayscale(0.7); }
.gsstkinfo { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.gsstkinfo b { font: bold 12px var(--f-ui); white-space: nowrap; overflow: visible; text-shadow: 0 1px 2px #000; }
.gsstkpips { display: flex; gap: 3px; margin-top: 3px; }
.gsstkpips i { width: 9px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.gsstkpips i.on { background: #f2a03c; box-shadow: 0 0 4px rgba(242, 160, 60, 0.8); }
.gsstk.spent { opacity: 0.45; }
.gsstk.spent .gsstkpips i.on { background: #8a8270; box-shadow: none; }
/* ready: lit up, pulsing, with its key */
.gsstk.ready { opacity: 1; border-color: #f2b632; background: rgba(60, 44, 8, 0.78); color: #fff3b0; animation: gsstkpulse 1.2s ease-in-out infinite; }
.gsstk.ready .gsstkicon { filter: none; font-size: 24px; }
.gsstk.ready.sel { border-width: 2px; box-shadow: 0 0 14px rgba(242, 182, 50, 0.75); transform: scale(1.06); transform-origin: right center; }
.gsstkkey { font: bold 11px var(--f-ui); color: #f2b632; white-space: nowrap; }
.gsstk.fresh { animation: gsstkfresh 0.9s ease-out, gsstkpulse 1.2s ease-in-out 0.9s infinite; }
/* just called in: a white flash outward */
.gsstk.used { opacity: 1; animation: gsstkused 1.1s ease-out; }
.gsstkhint { font: bold 10px var(--f-ui); color: #c8c0a0; text-shadow: 0 1px 2px #000; white-space: nowrap; }
@keyframes gsstkpulse { 0%, 100% { box-shadow: 0 0 6px rgba(242, 182, 50, 0.35); } 50% { box-shadow: 0 0 18px rgba(242, 182, 50, 0.9); } }
@keyframes gsstkfresh { 0% { transform: scale(1.6); background: rgba(242, 182, 50, 0.9); } 100% { transform: scale(1); } }
@keyframes gsstkused { 0% { transform: scale(1.35); background: rgba(255, 255, 255, 0.85); color: #1a1408; box-shadow: 0 0 30px #fff; } 100% { transform: scale(1); } }
@keyframes gsstkdeny { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); border-color: #d8262a; } 75% { transform: translateX(6px); } }
@media (max-width: 600px) { #gsstreaks { bottom: 76px; right: 10px; } .gsstk { padding: 3px 8px 3px 5px; } .gsstkicon { font-size: 16px; } .gsstkinfo b { font-size: 11px; } }

/* the banners: gold when it's yours, red and shaking when it's coming for you */
#gsbanner.gsstreakbanner b { color: #f2b632; text-shadow: 0 0 20px rgba(242, 180, 40, 0.7), 3px 3px 0 #1a1000; }
#gsbanner.gsstreakwarn b { color: #ff3a24; animation: gsstkwarn 0.25s linear 6; }
#gsbanner.gsstreakbanner b, #gsbanner.gsstreakwarn b { font-size: clamp(28px, 7vw, 52px); }
@keyframes gsstkwarn { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

/* the picker, in the loadout */
.gsstkpick { margin-top: 10px; }
.gsstkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.gsstkopt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.3); color: #fff3b0; cursor: pointer; text-align: left; font: inherit; }
.gsstkopt:hover { border-color: #f2a03c; }
.gsstkopt.on { border-color: #f2a03c; background: rgba(242, 160, 60, 0.16); box-shadow: inset 3px 0 0 #f2a03c; }
.gsstkoicon { font-size: 22px; }
.gsstkotext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gsstkotext b { font-size: 12px; } .gsstkotext small { font-size: 10px; color: #b8b09a; line-height: 1.25; }
.gsstkokills { font-style: normal; font-size: 10px; font-weight: bold; color: #f2a03c; white-space: nowrap; }

/* calling one in: the map it's aimed on (js/arena/streak-aim-draw.js), over the whole screen, buttons along the bottom
   for fingers and a free mouse (a mouse locked to the game uses its keys and clicks, so they're put away) */
#gsaim { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; gap: 8px; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: rgba(8, 10, 5, 0.95); color: #fff3b0; touch-action: none; user-select: none; -webkit-user-select: none; box-sizing: border-box; }
.gsaimtop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.gsaimtop b { font: bold clamp(18px, 4vw, 26px) var(--f-ui); color: #f2b632; text-shadow: 0 0 14px rgba(242, 180, 40, 0.5); }
.gsaimhelp { flex: 1 1 260px; font-size: 13px; color: #d8d0b0; line-height: 1.35; }
.gsaiminfo { font: bold 15px var(--f-ui); color: #fff; }
.gsaimmap { flex: 1; min-height: 0; position: relative; }
.gsaimmap canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.gsaimbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gsaimbtn { min-width: 52px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 2px solid rgba(242, 182, 50, 0.55); background: rgba(18, 20, 26, 0.7); color: #fff3b0; font: bold 16px var(--f-ui); cursor: pointer; touch-action: none; }
.gsaimbtn.down, .gsaimbtn:active { background: rgba(242, 182, 50, 0.5); transform: scale(0.95); }
.gsaimbtn.place { background: rgba(60, 110, 30, 0.75); border-color: #7ee07a; }
.gsaimbtn.fire { background: rgba(179, 32, 44, 0.7); min-width: 120px; }
#gsaim.flying .gsaimbtn.left, #gsaim.flying .gsaimbtn.right { min-width: 88px; font-size: 22px; }
.gsaimbtn.turnl, .gsaimbtn.turnr { font-size: 24px; }
#gsaim.locked .gsaimbtns { display: none; }
@media (max-width: 600px) { .gsaimhelp { font-size: 12px; } .gsaimbtn { padding: 0 12px; font-size: 14px; } }
