/* Things drawn over the game canvas: goal track, name tags, POW, banner, HUD. */

.track { position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 4; pointer-events: none; }
.track .line { position: absolute; left: 2%; right: 1.8%; top: 32px; height: 3px; border-radius: 2px; background: #8fe9ff; box-shadow: 0 0 6px #4fd2ff, 0 0 12px rgba(79,210,255,.6); }
.track .fill { position: absolute; left: 2%; top: 32px; height: 3px; border-radius: 2px; background: #ffd21f; box-shadow: 0 0 8px #ffd21f; transition: width 2.4s cubic-bezier(.3,.7,.3,1); }
.track .node { position: absolute; top: 33.5px; width: 0; height: 0; }
.track .dot { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: #0f3f86; border: 3.5px solid #c9f3ff; box-shadow: 0 0 6px rgba(120,220,255,.9); }
.track .node.reached .dot { background: #1fe3a3; border-color: #e6fff6; box-shadow: 0 0 8px rgba(31,227,163,.9); }
@keyframes nodePulse { 50% { box-shadow: 0 0 20px rgba(255,210,31,1) } }
.track .lbl { position: absolute; left: 0; top: 23px; transform: translateX(-50%); font: 400 19px 'Silkscreen', monospace; color: #fff; white-space: nowrap; text-shadow: 0 2px 0 rgba(8,30,70,.8); }
.track .node.next .lbl { color: #fff; }
.track .marker { position: absolute; top: 33.5px; width: 0; height: 0; z-index: 2; transition: left 2.4s cubic-bezier(.3,.7,.3,1); }
.track .marker .dot { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, #ffd21f 0 38%, #141a26 40% 55%, #ffc21a 57% 78%, #7a5200 80%); box-shadow: 0 0 10px rgba(255,210,31,.8); animation: nodePulse 1.4s ease-in-out infinite; }

.fx { position: absolute; inset: 0; z-index: 5; pointer-events: none; font-family: 'Press Start 2P', monospace; }
.fx .tag { position: absolute; transform: translate(-50%, -100%); padding: 5px 8px 4px; font-size: 11px; color: #fff; background: rgba(16,14,30,.82); border: 2px solid #fff; border-radius: 3px; white-space: nowrap; box-shadow: 0 3px 0 rgba(0,0,0,.35); transition: opacity .3s; }
.fx .tag::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -5px; border: 5px solid transparent; border-top: 5px solid #fff; }
.fx .tag.hide { opacity: 0; }
.fx .pow { position: absolute; transform: translate(-50%, -50%); font-size: 34px; color: #ffe14a; letter-spacing: 2px;
  text-shadow: 3px 0 0 #b3160f, -3px 0 0 #b3160f, 0 3px 0 #b3160f, 0 -3px 0 #b3160f, 3px 3px 0 #b3160f, 6px 6px 0 rgba(0,0,0,.45); animation: pow .9s cubic-bezier(.2,1.8,.4,1) forwards; }
@keyframes pow { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-12deg) } 25% { transform: translate(-50%, -50%) scale(1.25) rotate(4deg) } 45% { transform: translate(-50%, -50%) scale(1) rotate(-3deg) } 80% { opacity: 1 } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1) rotate(-3deg) } }

.fx .banner { position: absolute; left: 50%; top: 90px; transform: translateX(-50%); text-align: center; padding: 14px 22px 12px; background: rgba(12,10,26,.84); border: 3px solid #ffd23f; border-radius: 6px;
  box-shadow: 0 0 0 3px #1b1430, 0 6px 0 rgba(0,0,0,.35), 0 0 30px rgba(255,210,63,.35); animation: bannerIn .6s cubic-bezier(.2,1.6,.4,1) both; min-width: 60%; }
.fx .banner.out { animation: bannerOut .45s ease-in forwards; }
.fx .banner .b1 { font-size: 22px; color: #ffd23f; text-shadow: 3px 3px 0 #7a3b00; animation: blink .5s steps(2) 4; }
.fx .banner .b2 { margin-top: 12px; font-size: 12px; color: #d9f7e6; line-height: 1.7; }
.fx .banner .b2 em { color: #3ee07f; font-style: normal; }
@keyframes bannerIn { from { transform: translate(-50%, -140%) } }
@keyframes bannerOut { to { transform: translate(-50%, -160%); opacity: 0 } }
@keyframes blink { 50% { opacity: .25 } }

.hud { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; z-index: 6; display: flex; justify-content: space-between; align-items: center; padding: 6px 18px 0; pointer-events: none;
  font: 11px 'Press Start 2P'; color: #fff; text-shadow: 2px 2px 0 #3a1a04, 0 0 6px rgba(0,0,0,.6); }
.hud-coins { display: flex; align-items: center; gap: 8px; }
.hud-coins i { width: 12px; height: 16px; background: #ffcf33; box-shadow: inset 2px 0 0 #fff3b0, inset -2px 0 0 #c98a0b, 0 0 0 2px #7a4a05; }
.press-start { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); z-index: 7; border: 0; background: rgba(12,10,26,.55); padding: 8px 12px 6px; border-radius: 4px; cursor: pointer;
  font: 11px 'Press Start 2P'; color: #fff; letter-spacing: 1px; animation: blink 1.1s steps(2) infinite; }
.press-start[hidden] { display: none; }
.sim-badge { position: absolute; right: 12px; top: 84px; z-index: 7; font: 9px 'Press Start 2P'; color: #fff; background: #7b4dff; padding: 5px 7px 4px; border-radius: 3px; box-shadow: 0 2px 0 #3d1fa8; }
.sim-badge[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .bar em, .neon-eth g, .glow-neon, .bokeh i, .led.live, .track .marker .dot, .press-start { animation: none !important; }
}
