/* Animate shells, not the artwork transforms that fit the screen. */
@keyframes bxlr-veil { from { opacity:0; } to { opacity:1; } }
@keyframes bxlr-arrive { 0% { opacity:0;translate:0 65px;scale:.87; } 68% {opacity:1;translate:0 -7px;scale:1.025;} 100% {opacity:1;translate:0 0;scale:1;} }
@keyframes bxlr-reveal { from {opacity:0;translate:0 26px;} to {opacity:1;translate:0 0;} }
@keyframes bxlr-highlight { 0%,100% {filter:brightness(1);} 40% {filter:brightness(1.4);} }
.bxlr-failure-layer { animation:bxlr-veil .3s ease-out both; }
.bxlr-failure-shell { animation:bxlr-arrive .65s cubic-bezier(.2,.8,.3,1) both; }
.bxlr-failure-layer:not(.is-try) .bxlr-failure-shell { animation:bxlr-arrive .55s ease-out both; }
.bxlr-failure-title { animation:bxlr-reveal .4s .18s both; }
.bxlr-failure-body,.bxlr-failure-actions { animation:bxlr-reveal .4s .3s both; }
.bxlr-results-enter .bxlr-scoreboard-shell { animation:bxlr-arrive .65s ease-out both; }
.bxlr-results-enter .bxlr-scoreboard-right { animation:bxlr-reveal .45s .22s both; }
.bxlr-results-enter .bxlr-scoreboard-left { animation:bxlr-reveal .5s .4s both; }
.bxlr-results-enter .bxlr-breakdown-row { animation:bxlr-reveal .35s .4s both; }
.bxlr-results-enter .bxlr-breakdown-row:nth-child(2) {animation-delay:.52s;}
.bxlr-results-enter .bxlr-breakdown-row:nth-child(3) {animation-delay:.64s;}
.bxlr-results-enter .bxlr-breakdown-row:nth-child(4) {animation-delay:.76s;}
.bxlr-results-enter .bxlr-breakdown-row:nth-child(5) {animation-delay:.88s;}
.bxlr-results-enter .bxlr-breakdown-row.is-total {animation-delay:1s;}
.bxlr-results-enter .bxlr-scoreboard-time {animation:bxlr-highlight .65s 1.6s both;}
.bxlr-score-row.is-current { animation:bxlr-highlight .85s ease-out; }
.bxlr-failure-actions button,.bxlr-art-button,.bxlr-conversion-kick { transition:scale .1s ease-out,filter .1s ease-out; }
.bxlr-failure-actions button:active,.bxlr-art-button:active,.bxlr-conversion-kick:active {scale:.97;}
.game-wrap[data-bxlr-theme="hard"] { --bxlr-mode-accent:#ff8558;box-shadow:0 0 0 2px #be593955; }
.game-wrap[data-bxlr-theme="easy"] { --bxlr-mode-accent:#b8f20f; }
.bxlr-power-status { position:absolute;left:3%;top:18%;z-index:102;max-width:62%;border-left:3px solid var(--bxlr-mode-accent,#50dfff);padding:6px 10px;background:#06141ddc;color:#fff;font:800 clamp(10px,1.05cqw,17px)/1.2 Arial,sans-serif;border-radius:4px;pointer-events:none; }
.bxlr-power-status:empty,.bxlr-power-status[hidden] {display:none;}
.bxlr-power-callout { position:absolute;left:50%;top:27%;translate:-50% 5px;z-index:115;max-width:75%;padding:8px 16px;border-radius:8px;background:#07151eec;text-align:center;font:900 clamp(12px,1.7cqw,27px)/1.15 'Arial Black',Arial,sans-serif;opacity:0;transition:opacity .16s,translate .16s;pointer-events:none; }
.bxlr-power-callout.is-visible {opacity:1;translate:-50% 0;}
.bxlr-scoreboard-art .bxlr-achievement { position:absolute;left:48px;top:122px;width:616px;height:32px;color:#b8f20f;font:900 20px/1.25 Arial,sans-serif;letter-spacing:.5px;animation:bxlr-veil .4s both; }
.bxlr-effects-control {display:grid;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid #657c8655;}
.bxlr-effects-control select {width:100%;min-height:36px;color:#fff;background:#263239;border:1px solid #93a1a4;border-radius:5px;padding:4px;font:700 12px Arial,sans-serif;touch-action:manipulation;}
.bxlr-effects-control p {margin:0;font:400 11px/1.4 Arial,sans-serif;color:#b5cbd1;}
.bxlr-sound-panel {max-height:calc(100% - var(--bxlr-corner-size) - var(--bxlr-corner-top) - 16px);overflow-y:auto;touch-action:pan-y;}
.bxlr-lab-label { position:absolute;bottom:2%;left:50%;translate:-50% 0;padding:6px 12px;background:#07151ee6;border:1px solid #50dfff66;border-radius:20px;color:#bbdbe8;font:700 clamp(10px,1cqw,15px) Arial,sans-serif;white-space:nowrap; }
.bxlr-polish-tools {display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:9px;background:#07151e;color:#a8dfed;font:700 12px Arial,sans-serif;}
.bxlr-polish-tools button {padding:8px 11px;border:1px solid #3d6470;border-radius:6px;background:#183440;color:#fff;cursor:pointer;}
.bxlr-polish-tools button:hover {background:#295467;}
/* A single panel-local highlight replaces the screen-wide paper confetti. */
.bxlr-victory-light {position:absolute;inset:2%;z-index:3;overflow:hidden;pointer-events:none;border-radius:clamp(8px,1cqw,20px);box-shadow:inset 0 0 28px -10px var(--victory-glow);animation:bxlr-victory-glow 1.6s ease-out both;}
.bxlr-victory-light::after {content:"";position:absolute;inset:-30% auto -30% 0;width:32%;background:linear-gradient(105deg,transparent 15%,#fff2 40%,#ffe7a54d 50%,#fff2 60%,transparent 85%);animation:bxlr-victory-sweep 1.1s .2s ease-in-out both;}
.bxlr-scoreboard-heading .bxlr-victory-light {inset:5% 1.5%;border-radius:20px;}
@keyframes bxlr-victory-glow {0%{opacity:0;} 25%{opacity:.9;} 65%{opacity:.65;} 100%{opacity:0;}}
@keyframes bxlr-victory-sweep {from{translate:-130% 0;} to{translate:430% 0;}}
.game-wrap[data-bxlr-motion="reduced"] :is(.bxlr-failure-layer,.bxlr-failure-shell,.bxlr-failure-title,.bxlr-failure-body,.bxlr-failure-actions,
  .bxlr-results-enter .bxlr-scoreboard-shell,.bxlr-results-enter .bxlr-scoreboard-right,.bxlr-results-enter .bxlr-scoreboard-left,
  .bxlr-results-enter .bxlr-breakdown-row,.bxlr-scoreboard-time,.bxlr-score-row.is-current,.bxlr-achievement) {animation:none!important;}
.game-wrap[data-bxlr-motion="reduced"] :is(.bxlr-power-callout,.bxlr-failure-actions button,.bxlr-art-button,.bxlr-conversion-kick) {transition:none;}
.game-wrap[data-bxlr-motion="reduced"] .bxlr-victory-light {display:none;}
@media(prefers-reduced-motion:reduce) {
  .game-wrap:not([data-bxlr-motion="full"]) :is(.bxlr-failure-layer,.bxlr-failure-shell,.bxlr-failure-title,.bxlr-failure-body,.bxlr-failure-actions,
  .bxlr-results-enter .bxlr-scoreboard-shell,.bxlr-results-enter .bxlr-scoreboard-right,.bxlr-results-enter .bxlr-scoreboard-left,
  .bxlr-results-enter .bxlr-breakdown-row,.bxlr-scoreboard-time,.bxlr-score-row.is-current,.bxlr-achievement) {animation:none!important;}
  .game-wrap:not([data-bxlr-motion="full"]) :is(.bxlr-power-callout,.bxlr-failure-actions button,.bxlr-art-button,.bxlr-conversion-kick) {transition:none;}
  .game-wrap:not([data-bxlr-motion="full"]) .bxlr-victory-light {display:none;}
}
