/* Short, decorative scenes live in the upper edge of a settled round. */
.bv-scene {
  --bv-shade: 15, 24, 29;
  position: absolute; z-index: 6; inset: 0 0 auto; height: min(31%, 107px);
  overflow: hidden; isolation: isolate; pointer-events: none; user-select: none;
  background: linear-gradient(to bottom, rgba(var(--bv-shade),.94), rgba(var(--bv-shade),.76) 54%, rgba(var(--bv-shade),.37) 79%, transparent);
  animation: bv-life calc(1.1s * var(--bebeto-motion-factor, 1.25)) linear both;
}
.bv-scene i,.bv-scene img { display: block; pointer-events: none; }
.bv-scene img { width: 100%; height: 100%; object-fit: contain; }
@keyframes bv-life { 0% {opacity:0} 12%,81% {opacity:1} 100% {opacity:0} }

/* A midnight-blue engine hauls two lit Pullman cars past the platform. */
.bv-goldline {--bv-shade:30,26,34}
.bv-rail {
  position: absolute; inset: auto 0 25%; height: 2px;
  background: linear-gradient(90deg,#635345,#f3c473 40%,#716859 90%); box-shadow: 0 2px 2px #131219;
}
.bv-consist {
  position: absolute; height: 78%; bottom: 25%; left: 0; display: flex!important; align-items: flex-end;
  animation: bv-train calc(1.1s * var(--bebeto-motion-factor, 1.25)) cubic-bezier(.18,.3,.75,.8) both;
}
.bv-coach {
  position:relative; width: clamp(32px,9cqw,70px); margin-right: 1px; height: 35%; margin-bottom: 3px;
  border: 1px solid #a58a56; border-radius: 6% 8% 3% 4%; background: linear-gradient(#656474 0%,#1d2a39 17%,#324059 72%,#b18a4a 75%,#1c2736 82%);
  box-shadow: inset 0 1px #cbb594;
}
.bv-coach:before {
  content: ''; position:absolute; inset:19% 8% 38%;
  background:repeating-linear-gradient(90deg,#c7965c 0 5%,#ffe1a0 6% 11%,#79674c 12% 14%,#293440 15% 21%);
}
.bv-coach:after {
  content:''; position:absolute; height:4px; width:4px; bottom:-4px; left:11%; border-radius:50%;
  background:#2b2931; box-shadow:0 0 0 1px #837356,3.8cqw 0 0 #2b2931,3.8cqw 0 0 1px #837356;
}
.bv-coach.rear {opacity:.82}
.bv-engine {position:relative;height:100%;width:clamp(48px,16cqw,109px);margin-left:-1%}
.bv-engine img {position:relative;z-index:1;object-position:bottom;transform:translateY(13%);filter:drop-shadow(0 2px 1px #101522)}
.bv-steam {
  position:absolute; left:62%; top:34%; width:22%; height:22%; border-radius:50%;
  background:radial-gradient(ellipse at 45% 60%,#deebeeaa 5%,#b1becb8c 37%,#9aafb33b 60%,transparent 75%);
  animation:bv-steam calc(.75s * var(--bebeto-motion-factor, 1.25)) ease-out both; animation-delay:calc(var(--i)*-.17s * var(--bebeto-motion-factor, 1.25)); animation-iteration-count:3;
}
@keyframes bv-train {from {transform:translateX(-41cqw)} to {transform:translateX(99cqw)}}
@keyframes bv-steam {0% {transform:translate(0,0) scale(.4);opacity:.15} 20% {opacity:.8} 100% {transform:translate(-240%,-210%) scale(2.25);opacity:0}}

/* Five little reef fish move as a school, distinct from the five paying symbols. */
.bv-reef {--bv-shade:7,36,57}
.bv-shoal {position:absolute;left:0;top:12%;width:44%;height:69%;animation:bv-shoal calc(1.1s * var(--bebeto-motion-factor, 1.25)) ease-in-out both}
.bv-fish {
  --x:0; --y:45; --scale:1;
  position:absolute;left:calc(var(--x)*1%);top:calc(var(--y)*1%);
  width:clamp(20px,7cqw,43px);aspect-ratio:2.2;
  transform:scale(var(--scale)); animation:bv-fin calc(.45s * var(--bebeto-motion-factor, 1.25)) ease-in-out alternate 3; animation-delay:calc(var(--i)*-.11s * var(--bebeto-motion-factor, 1.25));
}
.bv-fish:nth-child(2) {--x:25;--y:2;--scale:.85}
.bv-fish:nth-child(3) {--x:43;--y:50;--scale:.96}
.bv-fish:nth-child(4) {--x:63;--y:12;--scale:.76}
.bv-fish:nth-child(5) {--x:80;--y:67;--scale:.66}
.bv-scales {position:absolute;inset:7% 0 4% 14%;border-radius:52% 59% 48% 57%;
  background:radial-gradient(circle at 82% 38%,#142239 0 4%,#fff5cb 5% 7%,transparent 8%),
  linear-gradient(113deg,transparent 29%,#257582 31% 37%,transparent 41% 49%,#3e929d 52% 57%,transparent 61%),
  linear-gradient(#8fdeea 0%,#72d0d0 25%,#e6e6bd 51%,#dba75c 82%,#756a64 100%)}
.bv-fins {position:absolute;inset:1% 14% 0 0;
  background:linear-gradient(35deg,#c87945,#f3b66b 45%,#77b6a6 80%);
  clip-path:polygon(0 9%,28% 42%,52% 31%,47% 0,70% 16%,94% 57%,67% 70%,53% 98%,47% 75%,28% 61%,3% 96%,9% 52%)}
.bv-bubble {
  position:absolute;bottom:0;left:calc(24% + var(--i)*13%);width:clamp(4px,.85cqw,8px);aspect-ratio:1;border-radius:50%;
  border:1px solid #9de1e377;box-shadow:inset 1px 1px 1px #e4ffff77;animation:bv-bubble calc(1s * var(--bebeto-motion-factor, 1.25)) ease-out both;animation-delay:calc(var(--i)*.045s * var(--bebeto-motion-factor, 1.25))}
@keyframes bv-shoal {0% {transform:translate(-39cqw,6%)} 50% {transform:translate(27cqw,0)} 100% {transform:translate(94cqw,-6%)}}
@keyframes bv-fin {from {transform:translateY(-7%) scale(var(--scale)) rotate(-4deg)} to {transform:translateY(7%) scale(var(--scale)) rotate(4deg)}}
@keyframes bv-bubble {0% {transform:translate(0,0);opacity:0} 20% {opacity:.7} 100% {transform:translate(5px,-60px);opacity:0}}

/* Silk lanterns sway on fine threads at different depths. */
.bv-jade {--bv-shade:31,29,30}
.bv-lantern {
  position:absolute;top:0;left:calc(17% + var(--i)*29%);height:84%;aspect-ratio:.64;transform-origin:50% -12%;
  animation:bv-drift calc(1.1s * var(--bebeto-motion-factor, 1.25)) cubic-bezier(.17,.47,.57,.94) both;
}
.bv-lantern:nth-child(2) {height:65%;opacity:.87}
.bv-lantern:nth-child(3) {height:75%;opacity:.93}
.bv-lantern:before {content:'';position:absolute;top:-16%;bottom:66%;left:50%;width:1px;background:#d2b779}
.bv-lantern:after {content:'';position:absolute;inset:-3% -30% -12%;z-index:-1;background:radial-gradient(ellipse,#fa805c55,transparent 66%)}
.bv-lantern img {position:absolute;top:11%;height:89%;filter:drop-shadow(0 1px 1px #130c0c)}
@keyframes bv-drift {
  0% {transform:translate(-11cqw,-8%) rotate(-15deg)}
  48% {transform:translate(-1cqw,4%) rotate(10deg)}
  100% {transform:translate(9cqw,-4%) rotate(-3deg)}
}

/* Falcon banks through the sun. The near wing catches bronze light; the far wing folds. */
.bv-scarab {--bv-shade:50,45,36}
.bv-sun-disc {position:absolute;left:68%;top:5%;height:67%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#f8dea0,#ddb979 63%,#a5875a 92%);box-shadow:0 0 18px #d5a05e55;opacity:.75}
.bv-falcon {position:absolute;left:0;top:2%;height:88%;width:clamp(65px,22cqw,135px);animation:bv-glide calc(1.1s * var(--bebeto-motion-factor, 1.25)) ease-in-out both}
.bv-wing {position:absolute;left:0;bottom:40%;width:52%;height:50%;transform-origin:100% 80%;animation:bv-bank calc(1.1s * var(--bebeto-motion-factor, 1.25)) ease-in-out both}
.bv-wing.reflected {left:48%;transform-origin:0% 80%;animation-name:bv-bank-far}
.bv-plumes {width:100%;height:100%;background:
  repeating-linear-gradient(15deg,transparent 0 10%,#c19660 12%,transparent 15%),
  linear-gradient(145deg,#e3bc73,#805a3d 35%,#292633 72%,#9b795c);
  clip-path:polygon(100% 95%,81% 80%,64% 59%,46% 48%,17% 13%,0 0,8% 21%,23% 37%,6% 26%,17% 45%,34% 59%,16% 50%,29% 66%,48% 77%,35% 71%,45% 83%,67% 91%,80% 100%)}
.bv-wing.reflected .bv-plumes {transform:scaleX(-1);filter:brightness(.75)}
.bv-falcon-body {position:absolute;left:44%;top:19%;width:16%;height:60%;
  background:linear-gradient(100deg,#ac7944,#d3b079 36%,#332c31 73%);clip-path:polygon(48% 0,71% 7%,76% 13%,98% 20%,78% 21%,80% 52%,66% 80%,53% 100%,30% 85%,18% 58%,18% 29%,25% 12%)}
.bv-falcon-tail {position:absolute;left:43%;bottom:8%;width:18%;height:37%;
  background:repeating-linear-gradient(78deg,#4d403b 0 18%,#a7825b 21% 24%);
  clip-path:polygon(39% 0,63% 0,100% 85%,75% 99%,55% 100%,37% 97%,6% 82%)}
@keyframes bv-glide {0% {transform:translate(-17cqw,23%) rotate(13deg)} 50% {transform:translate(40cqw,2%) rotate(6deg)} 100% {transform:translate(100cqw,-21%) rotate(-13deg)}}
@keyframes bv-bank {0%,100% {transform:rotate(-9deg) scaleY(.78)} 48% {transform:rotate(3deg) scaleY(1.18)}}
@keyframes bv-bank-far {0%,100% {transform:rotate(10deg) scaleY(.82)} 48% {transform:rotate(-10deg) scaleY(.62)}}

/* A single meteor crosses a finely engraved meridian scale. */
.bv-orrery {--bv-shade:22,20,49}
.bv-meridian {position:absolute;inset:-180% -5% 24%;border-bottom:1px dashed #caaf8177;border-radius:0 0 50% 50%;transform:rotate(-6deg)}
.bv-comet-flight {position:absolute;left:0;top:30%;width:31%;height:16%;transform-origin:96% 50%;animation:bv-meteor calc(1.1s * var(--bebeto-motion-factor, 1.25)) cubic-bezier(.35,.05,.56,.92) both}
.bv-comet-tail {position:absolute;inset:18% 2% 0 0;background:linear-gradient(90deg,transparent,#657bcb70 21%,#9bc6e1 75%,#f6e3bf);
  clip-path:polygon(0 90%,58% 19%,96% 15%,100% 47%,97% 66%,41% 72%,21% 97%,40% 62%)}
.bv-comet-core {position:absolute;right:0;top:10%;height:80%;aspect-ratio:1.4;
  background:linear-gradient(135deg,#fff1ca,#facf9c 45%,#bd87ae);border-radius:72% 54% 54% 60%;
  box-shadow:0 0 5px #fae5c9,0 0 11px #bb9acc}
@keyframes bv-meteor {0% {transform:translate(-35cqw,135%) rotate(-9deg)} 45%{transform:translate(24cqw,12%) rotate(-9deg)} 100%{transform:translate(99cqw,-140%) rotate(-9deg)}}

@media (prefers-reduced-motion:reduce) {
  .pg-game .bv-scene,.pg-game .bv-scene * {
    animation-duration:1.1s!important;animation-play-state:paused!important;animation-delay:-.52s!important;
  }
}
