/* =========================================================
   HEROES DUTY — escenario, HUD y pantallas
   El escenario mide 960x540 y se escala para entrar en la ventana.
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    width: 100%; height: 100%; overflow: hidden;
    background: #050b0b;
    font-family: 'Orbitron', 'Trebuchet MS', sans-serif;
    color: #dfffe0;
    -webkit-user-select: none; user-select: none;
    touch-action: none;
}
button { font-family: inherit; cursor: pointer; }

#stage {
    --glow: #5dff4a;
    --sky1: #07131a;
    --sky2: #123033;
    position: absolute; left: 50%; top: 50%;
    width: 960px; height: 540px;
    transform-origin: 50% 50%;
    overflow: hidden;
    cursor: none;
    background: #0b1a1a;
    box-shadow: 0 0 60px rgba(93,255,74,.15);
}
#stage.menu { cursor: default; }
#stage.shake { animation: shake .35s linear; }

.back-home {
    position: fixed; left: 10px; top: 8px; z-index: 50;
    color: #9dffa0; text-decoration: none; font-weight: 800; font-size: 13px;
    background: rgba(0,0,0,.55); padding: 6px 12px; border-radius: 20px;
    border: 1px solid rgba(93,255,74,.4);
}
.credits {
    position: fixed; right: 10px; bottom: 6px; z-index: 50;
    font-size: 10px; color: rgba(200,255,200,.55);
}

/* ---------------- FONDO ---------------- */
.bg, .bg > * { position: absolute; }
.bg { inset: 0; }
.bg-sky {
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(93,255,74,.18), rgba(0,0,0,0) 45%),
        linear-gradient(180deg, var(--sky1), var(--sky2) 42%, #0a1414 44%);
}
.bg-towers { left: 0; right: 0; top: 0; height: 238px; }
.bg-towers span {
    position: absolute; bottom: 0;
    background:
        repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 10px, rgba(93,255,74,.18) 10px 12px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 8px, rgba(0,0,0,.6) 8px 14px),
        linear-gradient(180deg, #1a2e2e, #0c1818);
    border-top: 2px solid rgba(93,255,74,.35);
    opacity: .75;
}
.bg-beacon-tower {
    left: 470px; top: 90px; width: 20px; height: 150px;
    background: linear-gradient(90deg, #0c1616, #2a4444, #0c1616);
}
.bg-beacon-tower i {
    position: absolute; left: -8px; top: -14px; width: 36px; height: 18px;
    border-radius: 50% 50% 4px 4px;
    background: radial-gradient(circle, #fff, var(--glow) 50%, rgba(0,0,0,0) 72%);
    animation: beaconIdle 1.6s ease-in-out infinite;
}
.bg-floor {
    left: -300px; right: -300px; top: 238px; bottom: 0;
    perspective: 260px; overflow: hidden;
    background: linear-gradient(180deg, #0e1f1f, #0a1212);
}
.bg-floor .grid {
    position: absolute; left: 0; right: 0; top: -40px; height: 700px;
    transform: rotateX(62deg); transform-origin: 50% 0;
    background:
        repeating-linear-gradient(90deg, rgba(93,255,74,.35) 0 2px, rgba(0,0,0,0) 2px 70px),
        repeating-linear-gradient(0deg, rgba(93,255,74,.3) 0 2px, rgba(0,0,0,0) 2px 70px);
    animation: gridMove 2.4s linear infinite;
    opacity: .6;
}
.bg-horizon {
    left: 0; right: 0; top: 232px; height: 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(93,255,74,.45), rgba(0,0,0,0));
    filter: blur(2px);
}
.bg-girder {
    top: 0; bottom: 0; width: 70px;
    background:
        repeating-linear-gradient(45deg, rgba(0,0,0,0) 0 22px, rgba(0,0,0,.55) 22px 28px),
        linear-gradient(90deg, #1b2626, #33403f 50%, #141c1c);
    box-shadow: 0 0 20px rgba(0,0,0,.8);
}
.bg-girder::after {
    content: ''; position: absolute; top: 40px; bottom: 40px; width: 4px;
    background: var(--glow); box-shadow: 0 0 10px var(--glow);
    opacity: .7;
}
.bg-girder.left  { left: -30px; transform: skewX(-6deg); }
.bg-girder.left::after  { right: 10px; }
.bg-girder.right { right: -30px; transform: skewX(6deg); }
.bg-girder.right::after { left: 10px; }
.bg-dust {
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(140,255,120,.7) 1px, rgba(0,0,0,0) 2px),
        radial-gradient(circle, rgba(140,255,120,.45) 1px, rgba(0,0,0,0) 2px);
    background-size: 130px 110px, 190px 170px;
    background-position: 0 0, 60px 40px;
    animation: dust 14s linear infinite;
    opacity: .6;
}

/* temas por piso */
#stage.lvl-2 { --sky2: #10283a; }
#stage.lvl-3 { --sky2: #262a2e; --glow: #9dff4a; }
#stage.lvl-4 { --sky2: #1b3318; --glow: #b4ff3a; }
#stage.lvl-4 .bg-floor { background: radial-gradient(ellipse at 50% 80%, #1f4a18, #0a1409 70%); }
#stage.lvl-5 { --sky1: #12061a; --sky2: #2a0f33; --glow: #d05bff; }
#stage.lvl-6 { --sky1: #1a0505; --sky2: #3a0d10; --glow: #ffd84a; }
#stage.lvl-6 .bg-floor { background: radial-gradient(ellipse at 50% 60%, #4a1414, #120404 75%); }
#stage.lvl-5 .bg-floor { background: radial-gradient(ellipse at 50% 60%, #3a1446, #0d0512 75%); }

/* ---------------- CAPAS ---------------- */
.layer { position: absolute; inset: 0; pointer-events: none; }
#fxLayer { z-index: 400; }

.calhoun-spot {
    position: absolute; left: 10px; bottom: -20px;
    width: 220px; height: 270px;
    z-index: 500; pointer-events: none;
    filter: drop-shadow(0 0 14px rgba(0,0,0,.8));
}

.speech {
    position: absolute; left: 200px; bottom: 210px; z-index: 510;
    max-width: 280px; padding: 10px 14px;
    background: rgba(5, 20, 12, .9);
    border: 2px solid var(--glow); border-radius: 12px 12px 12px 0;
    font-size: 13px; font-weight: 800; color: #eaffea;
    box-shadow: 0 0 14px rgba(93,255,74,.4);
    opacity: 0; transform: translateY(8px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}
.speech.show { opacity: 1; transform: none; }

.crosshair {
    position: absolute; left: 0; top: 0; width: 56px; height: 56px;
    margin: -28px 0 0 -28px; z-index: 600; pointer-events: none;
    border: 2px solid var(--glow); border-radius: 50%;
    box-shadow: 0 0 10px var(--glow), inset 0 0 8px rgba(93,255,74,.4);
}
.crosshair::before, .crosshair::after {
    content: ''; position: absolute; background: var(--glow);
}
.crosshair::before { left: 50%; top: -10px; bottom: -10px; width: 2px; margin-left: -1px; }
.crosshair::after  { top: 50%; left: -10px; right: -10px; height: 2px; margin-top: -1px; }
.crosshair i {
    position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px;
    border-radius: 50%; background: #fff;
}
.crosshair.on-target { border-color: #ff4a3a; box-shadow: 0 0 12px #ff4a3a; transform: scale(.85); }
#stage.menu .crosshair { display: none; }
#stage.menu .speech { display: none; }

.hurt-flash {
    position: absolute; inset: 0; z-index: 550; pointer-events: none;
    background: radial-gradient(ellipse, rgba(255,0,0,0) 40%, rgba(255,0,0,.6));
    opacity: 0;
}
.hurt-flash.on { animation: hurtFlash .45s ease-out; }

/* ---------------- HUD ---------------- */
.hud {
    position: absolute; left: 0; right: 0; top: 0; z-index: 700;
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 10px 14px; pointer-events: none;
    text-shadow: 0 0 6px rgba(93,255,74,.6);
}
#stage.menu .hud, #stage.menu .beacon-btn { display: none; }
#stage.title .calhoun-spot { display: none; }
.hud-shield { width: 220px; margin-top: 26px; }
.hud-label { font-size: 11px; font-weight: 800; letter-spacing: 2px; margin-bottom: 4px; }
.bar {
    height: 16px; border: 2px solid var(--glow); border-radius: 4px;
    background: rgba(0,0,0,.6); overflow: hidden;
    transform: skewX(-18deg);
}
.bar .fill {
    height: 100%; width: 100%;
    background: repeating-linear-gradient(90deg, var(--glow) 0 10px, rgba(0,0,0,0) 10px 13px);
    transition: width .25s;
}
.bar.low .fill { background: repeating-linear-gradient(90deg, #ff4a3a 0 10px, rgba(0,0,0,0) 10px 13px); animation: chBlink .5s steps(2) infinite; }
.hud-center { text-align: center; flex: 1; }
.hud-floor { font-family: 'Black Ops One', sans-serif; font-size: 20px; letter-spacing: 1px; }
.hud-floor span { font-family: 'Orbitron', sans-serif; font-size: 13px; opacity: .85; }
.hud-left { font-size: 12px; font-weight: 800; margin-top: 2px; }
.boss-bar {
    display: none; position: relative;
    width: 360px; height: 18px; margin: 6px auto 0;
    border: 2px solid #d05bff; border-radius: 4px; background: rgba(0,0,0,.6);
    overflow: hidden;
}
.boss-bar.show { display: block; }
.boss-bar .fill { height: 100%; width: 100%; background: linear-gradient(90deg, #7a1bb3, #ff4ad8); transition: width .2s; }
.boss-bar span {
    position: absolute; inset: 0; z-index: 1; font-size: 10px; font-weight: 800;
    letter-spacing: 3px; line-height: 14px; color: #fff;
}
.hud-right { text-align: right; width: 220px; margin-top: 26px; }
.hud-score { font-size: 18px; font-weight: 800; }
.hud-medals { margin-top: 4px; font-size: 16px; letter-spacing: 2px; }

.icon-btn {
    position: absolute; top: 8px; z-index: 720;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,.55); border: 2px solid rgba(93,255,74,.5);
    color: #fff; font-size: 15px;
}
.icon-btn.music { right: 54px; z-index: 950; }
.icon-btn.pause { right: 12px; }
#stage.menu .icon-btn.pause { display: none; }

.beacon-btn {
    position: absolute; right: 18px; bottom: 18px; z-index: 720;
    width: 96px; height: 96px; border-radius: 50%;
    background: radial-gradient(circle, rgba(20,50,30,.9), rgba(0,0,0,.8));
    border: none; color: #9dffa0;
    font-weight: 800; font-size: 14px; letter-spacing: 2px;
}
.beacon-btn svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.beacon-btn circle { fill: none; stroke-width: 8; }
.beacon-btn .ring-bg { stroke: rgba(93,255,74,.18); }
.beacon-btn .ring {
    stroke: var(--glow); stroke-dasharray: 276.5; stroke-dashoffset: 276.5;
    stroke-linecap: round; transition: stroke-dashoffset .3s;
    filter: drop-shadow(0 0 4px var(--glow));
}
.beacon-btn span { position: relative; }
.beacon-btn.ready { color: #fff; animation: beaconReady .7s ease-in-out infinite; }

/* ---------------- EFECTOS ---------------- */
.laser {
    position: absolute; height: 5px; margin-top: -2.5px;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(180,255,140,.2), #eaffd8 40%, var(--glow));
    box-shadow: 0 0 10px var(--glow), 0 0 20px var(--glow);
    border-radius: 3px;
    animation: laser .12s linear forwards;
}
.spark {
    position: absolute; width: 8px; height: 8px; margin: -4px;
    border-radius: 50%; background: #eaffc8; box-shadow: 0 0 8px var(--glow);
    animation: spark .35s ease-out forwards;
}
.boom {
    position: absolute; width: 120px; height: 120px; margin: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 5%, #d8ff8a 20%, rgba(93,255,74,.7) 40%, rgba(93,255,74,0) 70%);
    animation: boom .45s ease-out forwards;
}
.boom.purple { background: radial-gradient(circle, #fff 5%, #f0b0ff 20%, rgba(208,91,255,.7) 40%, rgba(208,91,255,0) 70%); }
.shard {
    position: absolute; width: 10px; height: 26px; margin: -13px -5px;
    background: linear-gradient(0deg, rgba(90,255,90,.2), #8dff5a);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    animation: shard .7s ease-out forwards;
}
.goo {
    position: absolute; width: 80px; height: 30px; margin: -15px -40px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(140,255,80,.8), rgba(140,255,80,0) 70%);
    animation: goo .8s ease-out forwards;
}
.popup {
    position: absolute; transform: translate(-50%, -50%);
    font-weight: 800; font-size: 18px; color: #fff;
    text-shadow: 0 0 6px var(--glow), 0 2px 0 #000;
    animation: popup .8s ease-out forwards; white-space: nowrap;
}
.popup.bad { color: #ff6a5a; text-shadow: 0 0 6px #f00, 0 2px 0 #000; }
.claw {
    position: absolute; width: 200px; height: 160px; margin: -80px -100px;
    z-index: 560; pointer-events: none;
    animation: claw .6s ease-out forwards;
}
.claw i {
    position: absolute; top: 0; width: 8px; height: 160px; border-radius: 4px;
    background: linear-gradient(180deg, rgba(255,60,40,0), #ff3a2a 40%, rgba(255,60,40,0));
    transform: rotate(25deg);
}
.claw i:nth-child(1) { left: 60px; } .claw i:nth-child(2) { left: 95px; } .claw i:nth-child(3) { left: 130px; }

/* cápsulas que se disparan para recogerlas */
.pickup {
    position: absolute; width: 44px; height: 44px; margin: -22px;
    border-radius: 50%; z-index: 350;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    background: radial-gradient(circle, rgba(255,255,255,.3), rgba(40,120,255,.5) 60%, rgba(40,120,255,0) 72%);
    border: 2px solid #7fc8ff;
    box-shadow: 0 0 14px #4aa8ff;
    animation: pickPulse .6s ease-in-out infinite;
}
.pickup.beacon { border-color: var(--glow); box-shadow: 0 0 14px var(--glow); background: radial-gradient(circle, rgba(255,255,255,.3), rgba(93,255,74,.5) 60%, rgba(93,255,74,0) 72%); }

/* el faro: columna de luz que atrae a los Cy-Bugs */
.beacon-beam {
    position: absolute; left: 480px; top: -40px; bottom: 300px; width: 160px; margin-left: -80px;
    z-index: 300; pointer-events: none; opacity: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(220,255,200,.9) 40%, #fff 50%, rgba(220,255,200,.9) 60%, rgba(255,255,255,0));
    filter: blur(3px);
    transform-origin: 50% 100%;
}
.beacon-beam.on { animation: beam 1.8s ease-out forwards; }
#stage.beacon-flash .bg-sky { filter: brightness(2.2); transition: filter .2s; }

/* ---------------- PANTALLAS ---------------- */
.overlay {
    position: absolute; inset: 0; z-index: 900;
    display: none; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; text-align: center;
    background: radial-gradient(ellipse at 50% 40%, rgba(10,40,25,.88), rgba(0,6,4,.96));
    cursor: default;
}
.overlay.show { display: flex; animation: fadeIn .3s ease-out; }
#introScreen { background: rgba(0,0,0,.5); pointer-events: none; }

.logo h1 {
    font-family: 'Black Ops One', 'Impact', sans-serif; font-weight: 400;
    font-size: 58px; letter-spacing: 3px; line-height: 1;
    color: #eaffea;
    text-shadow: 0 0 10px var(--glow), 0 0 26px rgba(93,255,74,.6), 0 4px 0 #0a3a14;
}
.logo-small { font-size: 11px; letter-spacing: 4px; color: #9dffa0; }
.logo-sub { font-size: 13px; letter-spacing: 8px; color: #ff4a3a; font-weight: 800; text-shadow: 0 0 8px #f00; }
#titleScreen { justify-content: flex-start; padding-top: 34px; gap: 10px; }

.fichas { display: flex; gap: 18px; }
.ficha {
    width: 380px; height: 196px; display: flex;
    background: linear-gradient(135deg, #0f2a2a, #081414);
    border: 3px solid #c8202a;
    box-shadow: 0 0 0 2px #000, 0 0 18px rgba(200,32,42,.4);
    text-align: left; overflow: hidden;
}
.ficha-bug { border-color: var(--glow); box-shadow: 0 0 0 2px #000, 0 0 18px rgba(93,255,74,.35); }
.ficha-portrait {
    width: 140px; flex: none; position: relative; overflow: hidden;
    background: radial-gradient(circle at 50% 40%, #2f5a5a, #0b1c1c 70%);
}
.ficha-portrait .calhoun { position: absolute; left: -68px; top: -8px; transform: scale(.95); transform-origin: 50% 0; }
.ficha-portrait .calhoun .ch-arm { display: none; }
.ficha-portrait.bugport .cybug { left: 0; top: 30px; transform: scale(1.05); }
.ficha-info { padding: 8px 12px; flex: 1; }
.ficha-info h2 { font-family: 'Black Ops One', sans-serif; font-weight: 400; font-size: 22px; line-height: 1; color: #fff; }
.ficha-info p { font-size: 9px; line-height: 1.35; color: #7fe0e0; margin: 5px 0 6px; font-family: 'Trebuchet MS', sans-serif; font-weight: 700; }
.stats > div { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; margin-bottom: 3px; }
.stats span { width: 64px; }
.stats i {
    flex: 1; height: 8px; position: relative;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 6px, rgba(0,0,0,0) 6px 9px);
}
.stats i::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%);
    background: repeating-linear-gradient(90deg, #fff 0 6px, rgba(0,0,0,0) 6px 9px);
}
.stats.bad i::after { background: repeating-linear-gradient(90deg, var(--glow) 0 6px, rgba(0,0,0,0) 6px 9px); }
.stats em { width: 34px; text-align: right; font-style: normal; }

.medal-wall { display: flex; gap: 14px; margin-top: 2px; }
.medal-slot {
    width: 76px; background: none; border: none; color: #cfe;
    display: flex; flex-direction: column; align-items: center;
    font-size: 9px; font-weight: 800;
}
.medal-slot .medal { transform: scale(.42); margin: -48px -34px -46px; }
.medal-slot:disabled { cursor: not-allowed; opacity: .6; }
.medal-slot:not(:disabled):hover .medal { transform: scale(.48); }
.medal-slot.next { color: var(--glow); }
.medal-slot.next .medal { animation: nextPulse 1s ease-in-out infinite; }

.big-btn {
    font-family: 'Black Ops One', sans-serif; font-size: 24px; letter-spacing: 2px;
    padding: 10px 34px; color: #06200c;
    background: linear-gradient(180deg, #b8ff9a, var(--glow));
    border: 3px solid #eaffea; border-radius: 6px;
    box-shadow: 0 0 20px rgba(93,255,74,.6), 0 4px 0 #1b6a14;
    transform: skewX(-8deg);
}
.big-btn:hover { filter: brightness(1.15); }
.big-btn:active { transform: skewX(-8deg) translateY(3px); box-shadow: 0 0 20px rgba(93,255,74,.6), 0 1px 0 #1b6a14; }
.big-btn.small { font-size: 18px; padding: 8px 22px; }
.big-btn.ghost { background: rgba(0,0,0,.4); color: #cfe; border-color: rgba(93,255,74,.6); }
.title-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.controls-hint { font-size: 10px; color: #9dc; font-family: 'Trebuchet MS', sans-serif; }
.row-btns { display: flex; gap: 16px; margin-top: 6px; }

.intro-floor { font-family: 'Black Ops One', sans-serif; font-size: 70px; color: #fff; text-shadow: 0 0 20px var(--glow); animation: introIn .6s ease-out; }
.intro-name { font-size: 26px; font-weight: 800; color: var(--glow); letter-spacing: 3px; }
.intro-line { font-size: 16px; color: #eaffea; background: rgba(0,0,0,.6); padding: 8px 16px; border-left: 4px solid #c8202a; font-family: 'Trebuchet MS', sans-serif; font-weight: 700; }

.win-title { font-family: 'Black Ops One', sans-serif; font-size: 50px; color: #fff; text-shadow: 0 0 18px var(--glow); }
.win-title.gold { color: #ffe68a; text-shadow: 0 0 18px #f2b82c, 0 4px 0 #7a4a06; }
.win-title.red { color: #ff6a5a; text-shadow: 0 0 18px #f00; }
.win-sub { font-size: 15px; font-family: 'Trebuchet MS', sans-serif; font-weight: 700; line-height: 1.5; }
.win-stats { display: flex; gap: 22px; font-size: 13px; font-weight: 800; }
.win-stats b { display: block; font-size: 22px; color: var(--glow); }
.win-stats .stars { font-size: 26px; color: #ffd84a; letter-spacing: 4px; }
.medal-stage { height: 170px; display: flex; justify-content: center; }
.medal-stage .medal { animation: medalDrop .9s cubic-bezier(.2,1.6,.4,1) both, medalShine 2s 1s ease-in-out infinite; }
.medal-stage.ten {
    height: 250px; display: grid; grid-template-columns: repeat(5, 76px); gap: 0 10px;
    justify-items: center; align-content: center;
}
.medal-stage.ten .medal { scale: .6; margin: -34px -24px; }
.medal-slot.final .medal .disk { box-shadow: inset 0 0 0 5px #ffd95a, inset 0 0 0 7px #b07412, 0 0 18px #ffd84a; }
.medal-slot .x10 { color: #ffd84a; font-size: 11px; }
.medal-stage.huge { height: 250px; }
.medal-stage.ten {
    height: 250px; display: grid; grid-template-columns: repeat(5, 76px); gap: 0 10px;
    justify-items: center; align-content: center;
}
.medal-stage.ten .medal { scale: .6; margin: -34px -24px; }
.medal-slot.final .medal .disk { box-shadow: inset 0 0 0 5px #ffd95a, inset 0 0 0 7px #b07412, 0 0 18px #ffd84a; }
.medal-slot .x10 { color: #ffd84a; font-size: 11px; }
.medal-stage.huge .medal { transform-origin: 50% 0; scale: 1.45; }

/* ---------------- GIRAR EL CELULAR ---------------- */
#rotate-hint {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: #050b0b; color: #dfffe0;
    flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    text-align: center; padding: 20px;
}
.rotate-phone { font-size: 70px; animation: rotatePhone 1.6s ease-in-out infinite; }
@media (orientation: portrait) and (max-width: 700px) {
    #rotate-hint { display: flex; }
}

/* ---------------- ANIMACIONES ---------------- */
@keyframes shake {
    20% { transform: translate(calc(-50% - 8px), calc(-50% + 4px)) scale(var(--sc)); }
    40% { transform: translate(calc(-50% + 7px), calc(-50% - 5px)) scale(var(--sc)); }
    60% { transform: translate(calc(-50% - 5px), calc(-50% + 3px)) scale(var(--sc)); }
    80% { transform: translate(calc(-50% + 3px), -50%) scale(var(--sc)); }
}
@keyframes gridMove { to { background-position: 0 70px, 0 70px; } }
@keyframes dust { to { background-position: 130px -440px, 250px -300px; } }
@keyframes beaconIdle { 50% { opacity: .5; transform: scale(.85); } }
@keyframes beaconReady { 50% { box-shadow: 0 0 26px var(--glow); transform: scale(1.06); } }
@keyframes laser { to { opacity: 0; height: 1px; } }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes boom { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(var(--s, 1.4)); opacity: 0; } }
@keyframes shard { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
@keyframes goo { 0% { transform: scale(.3); } 30% { transform: scale(1.2); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes popup { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -160%); } }
@keyframes hurtFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes claw { 0% { opacity: 0; transform: scale(.6); } 20% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes pickPulse { 50% { transform: scale(1.12); } }
@keyframes beam {
    0% { opacity: 0; transform: scaleX(.1); }
    15% { opacity: 1; transform: scaleX(1.1); }
    70% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(.3); }
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes introIn { from { transform: scale(2); opacity: 0; } }
@keyframes medalDrop { from { transform: translateY(-260px) rotate(-30deg); opacity: 0; } }
@keyframes medalShine { 50% { filter: brightness(1.25) drop-shadow(0 0 16px #ffd84a); } }
@keyframes nextPulse { 50% { filter: drop-shadow(0 0 12px var(--glow)); } }
@keyframes rotatePhone { 50% { transform: rotate(90deg); } }
#stage.lvl-7 { --sky1: #2a0f3a; --sky2: #6a2a7a; --glow: #ff7ac8; }
#stage.lvl-7 .bg-floor { background: radial-gradient(ellipse at 50% 60%, #ff9acb, #5a1a5a 75%); }
