.bl-surface {
  --bl-ink: #f4feff; --bl-accent: #fff355; --bl-track: rgba(0, 74, 92, 0.56);
  position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box;
  width: 100%; height: 100%; color: var(--bl-ink); background: #009bb4;
  font: 20px/1.15 system-ui, -apple-system, "PingFang SC", sans-serif;
  font-size: clamp(13px, min(4.3vw, 3vh), 28px);
  text-align: left; text-shadow: none; letter-spacing: normal;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transform: translateZ(0);
}
.bl-surface *, .bl-surface *::before, .bl-surface *::after { box-sizing: border-box; }
.bl-surface.bl-fullscreen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2147483646; }
.bl-surface.bl-contained { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 10; }
.bl-layout {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 20px 18px 40px;
  padding: max(20px, env(safe-area-inset-top)) 18px calc(40px + env(safe-area-inset-bottom, 0px));
}
.bl-top-spacer { height: 1px; flex: none; }
.bl-stage {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; margin-top: 8px;
}
.bl-art { width: 13em; height: 9em; position: relative; flex: none; transform: translateZ(0); }
/* Silhouette of the supplied mark, in the coordinate system of its square canvas. */
.bl-art {
  --bl-mark: polygon(44.6% 6%,55.7% 6.1%,57.3% 6.4%,58.8% 7.2%,59.9% 8.7%,60.4% 10.5%,60.1% 12.8%,57.4% 23.6%,84.3% 32.9%,85.3% 33.6%,85.8% 34.9%,85.6% 36.3%,81% 51.9%,80.4% 52.8%,79.3% 53.2%,78.1% 53.2%,77.7% 54.1%,76.2% 55.1%,77.1% 57.2%,77.8% 59.8%,77.7% 80.8%,77.4% 82.8%,76.4% 84.2%,54.3% 93.5%,52.4% 94%,50.5% 93.8%,48.7% 93.2%,26.5% 85.6%,24.6% 84.5%,23.4% 82.9%,23% 80.9%,22.8% 61.1%,23.2% 58.4%,24.1% 55.8%,22.7% 55.9%,21.5% 55.3%,20.8% 54.4%,19.8% 54.2%,19.4% 53.1%,14.1% 36.7%,14% 35.5%,14.4% 34.6%,15.2% 34.1%,39.7% 23.8%,41% 23.8%,41.9% 24.2%,43.2% 27.4%,40.5% 12.6%,40.4% 10.7%,40.7% 9.1%,41.6% 7.8%,43% 6.7%);
}
.bl-art img { clip-path: var(--bl-mark); display: block; width: 100%; height: 100%; margin: 0; max-width: none; object-fit: cover; }
.bl-meter {
  position: relative; width: 60%; max-width: 246px; margin-top: 10px; flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  will-change: transform, opacity;
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1) 70ms, opacity 210ms ease-out 70ms;
}
.bl-line { text-align: center; margin: 0; line-height: 1; }
.bl-signature-wrap {
  flex: none; display: flex; align-items: center; justify-content: center; width: 100%;
  will-change: transform, opacity;
  transition: opacity 420ms ease-out, transform 480ms cubic-bezier(.22, 1, .36, 1);
}
.bl-signature {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 21px; font-size: clamp(18px, 5.6vw, 21px);
  padding: 0.48em 1.38em; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.204);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bl-signature-text {
  font-size: 1em; font-weight: 700; line-height: 1.05;
  letter-spacing: 0.36em; margin-right: -0.36em;
  color: rgba(255, 255, 255, 0.55);
  -webkit-text-stroke: 0.09px rgba(255, 255, 255, 0.55); paint-order: stroke fill;
  white-space: nowrap;
}
.bl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bl-failed .bl-label { position: static; display: block; width: auto; height: auto; clip-path: none; margin-top: .25em; text-align: center; font-size: 13px; font-size: max(12px, .6em); }
.bl-number {
  font: 600 17px/1.05 ui-monospace, "SF Mono", "SFMono-Regular", Menlo, monospace;
  font-size: clamp(14.5px, 4.5vw, 17px); font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.78);
  -webkit-text-stroke: 0.04px rgba(255, 255, 255, 0.78); paint-order: stroke fill;
  text-shadow: 0 1px 8px rgba(0, 50, 66, 0.28);
}
.bl-track {
  position: relative; height: 6.5px; width: 100%; overflow: hidden;
  border-radius: 999px; background: rgba(0, 72, 90, 0.56);
  box-shadow: inset 0 1px 2px rgba(0, 36, 48, 0.30);
}
.bl-fill {
  display: block; height: 100%; width: 0; position: relative; background: var(--bl-accent);
  border-radius: inherit; overflow: hidden; will-change: width;
  box-shadow: 0 0 11px rgba(255, 243, 85, 0.46);
}
.bl-surface[data-rhythm="steps"] .bl-fill { transition: width 75ms cubic-bezier(.18,.68,.3,1); }
.bl-surface[data-rhythm="ribbon"] .bl-fill::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -18px; right: -18px;
  background: repeating-linear-gradient(115deg, transparent 0, transparent 5px, rgba(35, 21, 37, 0.17) 5px, rgba(35, 21, 37, 0.17) 10px);
  background-size: 11px 100%; animation: bl-stream 0.95s linear infinite;
}
@keyframes bl-stream { to { transform: translateX(-11px); } }
.bl-surface[data-rhythm="steps"] .bl-track { border-radius: 0; -webkit-mask-image: repeating-linear-gradient(90deg,#000 0,#000 calc(12.5% - 2px),transparent calc(12.5% - 2px),transparent 12.5%); mask-image: repeating-linear-gradient(90deg,#000 0,#000 calc(12.5% - 2px),transparent calc(12.5% - 2px),transparent 12.5%); }
.bl-surface.bl-ready .bl-fill { background: #fffb99; box-shadow: 0 0 14px rgba(255, 252, 160, 0.85); }
.bl-surface.bl-ready .bl-meter { transform: translate3d(0, 6px, 0) scale(.97); opacity: 0; }

.bl-surface[data-theme="pop"] {
  background: radial-gradient(ellipse 92% 76% at 50% 44%, #30b1bf 0%, #249dad 46%, #0c849b 78%, #04677c 100%);
}
.bl-surface[data-theme="pop"]::after {
  content: ""; pointer-events: none; position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; left: 0; opacity: 1;
  background:
    radial-gradient(ellipse 70% 44% at 50% 20%, rgba(255, 255, 255, 0.08), transparent 72%),
    radial-gradient(ellipse 110% 96% at 50% 50%, transparent 58%, rgba(0, 40, 54, 0.24) 100%);
}
.bl-emblem { position: absolute; width: 9.6em; height: 9.6em; left: calc(50% - 4.8em); top: calc(50% - 4.8em); animation: bl-bob 2.67s ease-in-out infinite; filter: drop-shadow(0 .34em .28em rgba(0,61,80,.27)); }
.bl-spark { position: absolute; width: .76em; height: 1.18em; z-index: 1; background: #fff88b; clip-path: polygon(50% 0,63% 38%,100% 50%,63% 61%,50% 100%,37% 62%,0 50%,37% 39%); }
.bl-spark-a { top: .95em; left: 1.15em; transform: rotate(10deg); }
.bl-spark-b { right: .9em; bottom: 1.3em; width: .55em; height: .8em; }
@keyframes bl-bob { 50% { transform: translateY(-.16em) rotate(1.5deg); } }

.bl-surface[data-loop] { --bl-cycle: 2.67s; }
.bl-surface[data-loop] .bl-art { height: 10em; }
.bl-surface[data-loop] .bl-emblem {
  width: 8.6em; height: 8.6em; top: calc(50% - 4.3em); left: calc(50% - 4.3em);
  transform-origin: 50% 88%; filter: drop-shadow(0 .28em .23em rgba(0,70,83,.32));
}

.bl-launch-pad,.bl-pad-shadow,.bl-shock {
  position: absolute; left: calc(50% - 2.8em); bottom: .12em; width: 5.6em; height: 1.08em; border-radius: 50%;
}
.bl-pad-shadow { background: rgba(0,86,104,.34); transform: translateY(.26em) scaleX(1.12); filter: blur(.14em); }
.bl-launch-pad {
  border: .09em solid #6f4db4; background: radial-gradient(ellipse,#a189cf 0 47%,#f8eb82 49% 61%,#ad90e8 64% 77%,#624094 80%);
  box-shadow: 0 .14em #6a4597,0 .23em #563a7d; animation: bl-pad-press var(--bl-cycle) ease-in-out infinite;
}
.bl-shock { border: .13em solid #fff789; opacity: 0; animation: bl-land-ring var(--bl-cycle) ease-out infinite; }
.bl-poster[data-loop="spring"] .bl-art { transform: scale(.94); transform-origin: 50% 79%; }
.bl-surface[data-loop="spring"] .bl-emblem { animation: bl-hop var(--bl-cycle) ease-in-out infinite; }
.bl-box,.bl-bang { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.bl-box { clip-path: var(--bl-mark); }
.bl-art .bl-box img {
  clip-path: polygon(0 0,40% 0,40.3% 11.7%,41% 15.7%,46.6% 37.8%,47.5% 39.5%,49% 40.4%,50.5% 40.7%,52% 40.3%,53.4% 39.3%,54.2% 37.8%,60.5% 12%,60.6% 0,100% 0,100% 100%,0 100%);
}
.bl-art .bl-bang {
  clip-path: polygon(44% 5.9%,56.7% 5.9%,58.4% 6.7%,59.5% 7.9%,60.3% 10%,60.4% 12%,54% 38%,53.4% 39.3%,52% 40.3%,50.5% 40.7%,49% 40.4%,47.5% 39.5%,46.6% 37.8%,40.3% 12%,40.4% 10%,41% 8.3%,42.4% 6.7%);
  transform-origin: 50% 42%; animation: bl-bang-hop var(--bl-cycle) ease-in-out infinite;
}
.bl-action-lines { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.bl-action-lines i {
  position: absolute; width: .14em; height: .95em; top: 36%; border-radius: 1em; background: #fff59e;
  transform: rotate(30deg); opacity: 0; animation: bl-hop-lines var(--bl-cycle) ease-out infinite;
}
.bl-action-lines i:nth-child(1) { left: 18%; --bl-slant: -32deg; }
.bl-action-lines i:nth-child(2) { left: 13%; top: 46%; height: .52em; --bl-slant: -58deg; }
.bl-action-lines i:nth-child(3) { right: 16%; --bl-slant: 28deg; }
.bl-action-lines i:nth-child(4) { right: 11%; top: 46%; height: .52em; --bl-slant: 52deg; }
@keyframes bl-hop {
  0%,9%,93%,100% { transform: translateY(.34em); }
  22% { transform: translateY(.53em) scale(1.12,.80) rotate(-4deg); }
  30% { transform: translateY(-.48em) scale(.93,1.08) rotate(1deg); }
  41% { transform: translateY(-1.10em) rotate(5deg); }
  57% { transform: translateY(.50em) scale(1.10,.86) rotate(-2deg); }
  68% { transform: translateY(-.02em) scale(.97,1.04) rotate(1deg); }
  79% { transform: translateY(.38em) scale(1.025,.97); }
}
@keyframes bl-bang-hop {
  0%,10%,88%,100% { transform: none; }
  22% { transform: translateY(.20em) scaleY(.88); }
  38% { transform: translateY(-.40em) scaleY(1.09) rotate(-3deg); }
  54% { transform: translateY(-.13em) rotate(3deg); }
  60% { transform: translateY(.14em) scaleY(.92); }
  73% { transform: translateY(-.08em); }
}
@keyframes bl-pad-press { 0%,12%,43%,75%,100% { transform: none; } 23%,57% { transform: translateY(.08em) scale(1.06,.82); } }
@keyframes bl-land-ring { 0%,55% { opacity: 0; transform: scale(.7); } 58% { opacity: .82; transform: scale(.85); } 83%,100% { opacity: 0; transform: scale(2.05,1.9); } }
@keyframes bl-hop-lines { 0%,23%,55%,100% { opacity: 0; transform: translateY(.55em) rotate(var(--bl-slant)) scaleY(.55); } 32% { opacity: .93; } 49% { opacity: 0; transform: translateY(-.48em) rotate(var(--bl-slant)); } }

.bl-comets,.bl-streamers { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; }
.bl-comets-front { clip-path: polygon(0 69%,100% 31%,100% 100%,0 100%); }
.bl-comets .bl-rail { stroke: #a9f3eb; stroke-width: 1; opacity: .58; }
.bl-comets .bl-tail,.bl-comets .bl-tip {
  --bl-phase: 0px; stroke: #fff394; stroke-width: 4; stroke-dasharray: 11 89;
  animation: bl-comet-lap var(--bl-cycle) linear infinite;
}
.bl-comets .bl-tail { opacity: .68; }
.bl-comets .bl-tip { --bl-phase: -11px; stroke: #fffbc4; stroke-width: 8; stroke-dasharray: .25 99.75; }
.bl-comets .bl-violet { --bl-phase: -50px; stroke: #b296ff; }
.bl-comets .bl-tip.bl-violet { --bl-phase: -61px; stroke: #ecdaff; }
.bl-surface[data-loop="comets"] .bl-emblem { animation: bl-sway var(--bl-cycle) ease-in-out infinite; }
.bl-surface[data-loop="comets"] .bl-art::before {
  content: ""; position: absolute; width: 7.7em; height: 7.7em; left: calc(50% - 3.85em); top: calc(50% - 3.85em);
  border-radius: 50%; border: 1px dashed rgba(174,243,235,.44); background: radial-gradient(ellipse,rgba(174,255,241,.21),transparent 70%);
}
.bl-surface[data-loop="comets"] .bl-spark { animation: bl-twinkle calc(var(--bl-cycle) / 2) ease-in-out infinite alternate; }
.bl-surface[data-loop="comets"] .bl-spark-b { animation-direction: alternate-reverse; }
@keyframes bl-comet-lap { from { stroke-dashoffset: var(--bl-phase); } to { stroke-dashoffset: calc(var(--bl-phase) - 100px); } }
@keyframes bl-sway { 0%,100% { transform: translate(.08em,.08em) rotate(-4deg); } 50% { transform: translate(-.08em,-.18em) rotate(4deg); } }
@keyframes bl-twinkle { from { opacity: .55; transform: scale(.68) rotate(-10deg); } to { opacity: 1; transform: scale(1.05) rotate(8deg); } }

.bl-shower { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.bl-shower i {
  --bl-turn: 210deg; --bl-ink: #ffea71; --bl-delay: 0s;
  position: absolute; left: 50%; top: 51%; width: .32em; height: .57em; border-radius: .06em; background: var(--bl-ink);
  opacity: 0; animation: bl-paper var(--bl-cycle) cubic-bezier(.24,.48,.37,.96) var(--bl-delay) infinite;
}
.bl-shower i:nth-child(1) { --bl-x: -4.5em; --bl-y: -3.4em; }
.bl-shower i:nth-child(2) { --bl-x: 4.25em; --bl-y: -3.65em; --bl-ink: #ffb3e1; }
.bl-shower i:nth-child(3) { --bl-x: -5.6em; --bl-y: -1.9em; --bl-ink: #e8ddff; --bl-turn: -148deg; }
.bl-shower i:nth-child(4) { --bl-x: 5.7em; --bl-y: -1.7em; }
.bl-shower i:nth-child(5) { --bl-x: 3.1em; --bl-y: -4.6em; --bl-delay: .08s; }
.bl-shower i:nth-child(6) { --bl-x: -2.8em; --bl-y: -4.7em; --bl-ink: #f6b0de; --bl-delay: .12s; }
.bl-shower i:nth-child(7) { --bl-x: 5em; --bl-y: -2.7em; --bl-ink: #e7d3ff; --bl-delay: .2s; }
.bl-shower i:nth-child(8) { --bl-x: -4em; --bl-y: -3.9em; --bl-ink: #e1fffd; --bl-delay: .19s; }
.bl-shower i:nth-child(9) { --bl-x: 2.2em; --bl-y: -5em; --bl-ink: #fff9d0; --bl-delay: .18s; }
.bl-shower i:nth-child(10) { --bl-x: -5.9em; --bl-y: -.75em; --bl-delay: .08s; }
.bl-shower i:nth-child(11) { --bl-x: 5.8em; --bl-y: -.6em; --bl-ink: #fffce3; --bl-delay: .12s; }
.bl-shower i:nth-child(12) { --bl-x: -1.4em; --bl-y: -4.9em; --bl-ink: #c7b0ff; }
.bl-shower i:nth-child(3n) { width: .55em; height: .55em; clip-path: polygon(50% 0,65% 34%,100% 50%,65% 66%,50% 100%,35% 66%,0 50%,35% 34%); }
.bl-shower i:nth-child(4n) { width: .26em; height: .26em; border-radius: 50%; }
.bl-streamers path { stroke: #fff08b; stroke-width: 2.8; stroke-dasharray: 100 102; opacity: 0; animation: bl-unroll var(--bl-cycle) ease-in-out infinite; }
.bl-streamers path+path { stroke: #efd2ff; animation-delay: .14s; }
.bl-surface[data-loop="confetti"] .bl-art::before {
  content: ""; position: absolute; top: 3%; right: 9%; bottom: 5%; left: 9%; border-radius: 50%; background: radial-gradient(ellipse,rgba(255,245,172,.27),transparent 68%);
}
.bl-surface[data-loop="confetti"] .bl-emblem { animation: bl-party-pop var(--bl-cycle) ease-in-out infinite; }
@keyframes bl-paper {
  0%,14% { opacity: 0; transform: translate(0,.2em) scale(.3); }
  20% { opacity: 1; }
  44% { opacity: 1; transform: translate(var(--bl-x),var(--bl-y)) rotate(var(--bl-turn)); }
  62% { opacity: .95; }
  88%,100% { opacity: 0; transform: translate(calc(var(--bl-x) * 1.13),calc(var(--bl-y) + 4.9em)) rotate(calc(var(--bl-turn) + 155deg)) scale(.65); }
}
@keyframes bl-unroll {
  0%,13% { stroke-dashoffset: 100; opacity: 0; } 19% { opacity: .9; }
  44% { stroke-dashoffset: 0; opacity: .95; } 77%,100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes bl-party-pop {
  0%,8%,100% { transform: rotate(-2deg); }
  16% { transform: rotate(-7deg) scale(1.07,.89); }
  27% { transform: translateY(-.29em) rotate(6deg) scale(.98,1.04); }
  41% { transform: rotate(-4deg); } 56% { transform: rotate(1.8deg); } 76% { transform: rotate(-2deg); }
}

.bl-surface[data-theme="pocket"] {
  --bl-ink: #303c2d; --bl-accent: #52693d; --bl-track: #c8ccad;
  background-color: #e2e5cd;
  background-image: linear-gradient(rgba(94,112,79,.11) 1px,transparent 1px),linear-gradient(90deg,rgba(94,112,79,.11) 1px,transparent 1px),radial-gradient(ellipse at 54% 35%,#faf8e0,transparent 72%);
  background-size: 1.05em 1.05em,1.05em 1.05em,100% 100%;
}
.bl-surface[data-theme="pocket"] .bl-number {
  color: rgba(48, 60, 45, 0.82);
  -webkit-text-stroke-color: rgba(48, 60, 45, 0.82);
  text-shadow: none;
}
.bl-surface[data-theme="pocket"] .bl-track {
  background: var(--bl-track);
  box-shadow: inset 0 1px 2px rgba(48, 60, 45, 0.16);
}
.bl-surface[data-theme="pocket"] .bl-signature {
  background: rgba(82, 105, 61, 0.08);
  border-color: rgba(82, 105, 61, 0.22);
  box-shadow: none;
}
.bl-surface[data-theme="pocket"] .bl-signature-text {
  color: rgba(48, 60, 45, 0.62);
  -webkit-text-stroke-color: rgba(48, 60, 45, 0.62);
}
.bl-console {
  position: absolute; height: 8.45em; width: 10.15em; top: .2em; left: calc(50% - 5.075em);
  transform: rotate(-8deg); border-radius: .6em .6em 1.55em .63em; border: .1em solid #6c755b;
  background: linear-gradient(155deg,#f6f1ce 12%,#e3e3bd 69%,#d1d3af 100%);
  box-shadow: inset .12em .13em .07em #ffffe9,inset -.13em -.17em .1em #b8bf9d,.1em .28em 0 #889477,.32em .52em 0 rgba(62,82,47,.15);
}
.bl-screen { position: absolute; top: .62em; left: .72em; right: .72em; height: 5.3em; border: .3em solid #404d42; border-radius: .26em .26em .65em .26em; background: #94ab71; box-shadow: inset 0 .14em .35em #5f7550, 0 .07em #ffffdb; }
.bl-screen img { height: 88%; width: auto; margin: .28em auto 0; filter: grayscale(1) invert(1) contrast(1.1) brightness(.88); transform: scale(1.12); mix-blend-mode: multiply; image-rendering: pixelated; }
.bl-screen::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: repeating-linear-gradient(0deg,transparent 0 2px,rgba(55,70,42,.12) 2px 3px); }
.bl-led { position: absolute; width: .19em; height: .19em; border-radius: 50%; background: #bccb78; left: 1.22em; top: 1.14em; box-shadow: 0 0 0 .09em #677756; animation: bl-led 2.1s ease-in-out infinite alternate; }
@keyframes bl-led { to { background: #efffa8; box-shadow: 0 0 .28em #e1f783; } }
.bl-pad { position: absolute; left: 1.07em; bottom: .47em; width: 1.55em; height: 1.55em; filter: drop-shadow(.05em .07em 0 #888e76); }
.bl-pad::before,.bl-pad::after { content: ""; position: absolute; left: 34%; top: 0; width: 34%; height: 100%; border-radius: .08em; background: #475346; }
.bl-pad::after { transform: rotate(90deg); }
.bl-key { position: absolute; right: .92em; bottom: 1.14em; width: .81em; height: .81em; border-radius: 50%; background: #a5607d; box-shadow: inset 0 -.1em #73475c,-1.12em .46em 0 #a5607d; }
.bl-slot { position: absolute; height: .15em; width: .71em; bottom: .73em; left: 4.1em; transform: rotate(-12deg); border-radius: 1em; background: #77846d; box-shadow: .97em 0 #77846d; }

.bl-surface[data-theme="orbit"] {
  --bl-ink: #f0e9ff; --bl-accent: #d7b5ff; --bl-track: #494264;
  background-color: #1d1933;
  background-image: radial-gradient(ellipse at 50% 42%,#514472 0%,transparent 60%),radial-gradient(circle at 14% 24%,#d7cbed 0 1px,transparent 1.6px),radial-gradient(circle at 72% 64%,#9a88b0 0 1px,transparent 1.4px);
  background-size: 100% 100%,4.9em 5.7em,7.3em 4em;
}
.bl-system { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.bl-orbit { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-20deg); width: 13.7em; height: 5.15em; border: 1px solid rgba(216,195,255,.5); border-radius: 50%; }
.bl-orbit-b { transform: translate(-50%,-50%) rotate(35deg); width: 10.6em; height: 7.25em; border: 1px dashed rgba(216,195,255,.34); }
.bl-orbit-c { width: 14.7em; height: 6.3em; border-color: rgba(216,195,255,.17); }
.bl-moon { position: absolute; top: .34em; right: .9em; width: .68em; height: .68em; border-radius: 50%; background: radial-gradient(circle at 30% 27%,#fffbb8,#f5c55b 58%,#a76745); box-shadow: 0 0 .75em rgba(226,179,83,.32); }
.bl-planet { position: absolute; width: 7.16em; height: 7.16em; left: calc(50% - 3.58em); top: calc(50% - 3.58em); padding: .48em; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 46% 41%,#7565ab 25%,#53407e 65%,#a789d7 94%); border: .08em solid #ae94d3; box-shadow: inset .13em .18em .28em rgba(212,182,243,.5),inset -.2em -.2em .7em #29223e,0 .38em 1.6em rgba(16,12,32,.66); animation: bl-bob 3.5s ease-in-out infinite; }
.bl-planet img { filter: drop-shadow(0 .13em .2em #342a58); }
.bl-system::after { content: ""; position: absolute; width: 13.7em; height: 5.15em; top: 50%; left: 50%; border: 1px solid transparent; border-bottom-color: #d2b7f7; border-radius: 50%; transform: translate(-50%,-50%) rotate(-20deg); }

.bl-retry { display: block; width: 100%; border-radius: .55em; margin-top: .8em; padding: .5em; border: 0; font: 650 14px/1.3 system-ui, sans-serif; font-size: max(14px, .7em); background: var(--bl-ink); color: #074454; cursor: pointer; }
.bl-failed *, .bl-failed *::after { animation-play-state: paused !important; }
.bl-failed .bl-meter { transform: none; opacity: 1; }

/* Rendered 3D studio loops — balanced proportion & pure GPU opacity layers. */
.bl-surface.bl-rendered .bl-art {
  width: 75vw; height: 75vw; max-width: 340px; max-height: 340px;
  width: min(75vw, 48vh, 340px); height: min(75vw, 48vh, 340px);
  will-change: transform, opacity;
}
.bl-surface.bl-rendered .bl-meter { margin-top: 10px; }
.bl-surface.bl-rendered .bl-art::before {
  content: ""; position: absolute; left: 25%; right: 21%; bottom: 7%; height: 7.5%;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 56, 74, 0.34), transparent 72%); transform: rotate(-3deg);
}
.bl-toy-film, .bl-toy-film img, .bl-flip-gl, .bl-flip-freeze {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transform: translateZ(0);
}
.bl-art .bl-toy-film img { clip-path: none; object-fit: contain; }
.bl-loop-img, .bl-flip-gl, .bl-flip-freeze { opacity: 0; }
.bl-loop-img, .bl-flip-freeze { pointer-events: none; }
.bl-flip-gl { cursor: pointer; }
.bl-film-ready .bl-loop-img, .bl-film-ready .bl-flip-gl { opacity: 1; }
.bl-film-ready .bl-toy-pose { opacity: 0; }
.bl-toy-film.bl-frozen-3d .bl-flip-freeze { opacity: 1; }
.bl-toy-film.bl-frozen-3d .bl-flip-gl,
.bl-toy-film.bl-frozen-3d .bl-toy-pose { opacity: 0; pointer-events: none; }
.bl-toy-film.bl-settled .bl-toy-pose { opacity: 1; }
.bl-toy-film.bl-settled .bl-loop-img,
.bl-toy-film.bl-settled .bl-flip-gl { opacity: 0; pointer-events: none; }

.bl-pose-bounce .bl-toy-pose { animation: bl-pose-hop 1.2s cubic-bezier(.28,.84,.42,1) infinite; transform-origin: 50% 82%; }
@keyframes bl-pose-hop {
  0%, 100% { transform: translateY(0) scale(1); }
  18% { transform: translateY(3%) scale(1.05, .94); }
  46% { transform: translateY(-7%) scale(.97, 1.04); }
  74% { transform: translateY(1.5%) scale(1.02, .98); }
}
.bl-failed .bl-loop-img, .bl-failed .bl-flip-gl { opacity: 0; pointer-events: none; }
.bl-failed .bl-toy-pose { opacity: 1; animation: none; }

/* Compact gallery poster thumbnails */
.bl-poster .bl-layout { padding: 8px 10px 10px; }
.bl-poster .bl-stage { margin-top: 0; }
.bl-poster.bl-rendered .bl-art { width: 7.4em; height: 7.4em; }
.bl-poster .bl-meter { width: 7.6em; margin-top: 0.2em; gap: 4px; }
.bl-poster .bl-number { font-size: max(11px, 0.68em); }
.bl-poster .bl-track { height: 4.5px; }
.bl-poster .bl-signature { font-size: max(10px, 0.58em); padding: 0.34em 1.05em; }

.bl-surface[data-loop="flipbox"] {
  background: radial-gradient(ellipse 92% 76% at 50% 44%, #30b1bf 0%, #249dad 46%, #0c849b 78%, #04677c 100%);
}
.bl-surface[data-loop="flipbox"] .bl-loop-img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 80%, transparent 99%);
  mask-image: radial-gradient(ellipse 50% 50% at center, #000 80%, transparent 99%);
}

@media (orientation: landscape) and (min-aspect-ratio: 4/3) {
  .bl-surface:not(.bl-poster) .bl-layout {
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(28px, calc(28px + env(safe-area-inset-bottom, 0px)));
  }
  .bl-surface:not(.bl-poster) .bl-stage { margin-top: 4px; }
  .bl-surface.bl-rendered:not(.bl-poster) .bl-art {
    width: min(50vh, 320px); height: min(50vh, 320px);
  }
}
@media (max-height: 540px) {
  .bl-surface:not(.bl-poster) .bl-layout {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .bl-surface.bl-rendered:not(.bl-poster) .bl-art {
    width: min(44vh, 220px); height: min(44vh, 220px);
  }
  .bl-surface:not(.bl-poster) .bl-signature {
    font-size: 16px; padding: 0.4em 1.2em;
  }
}

/* Exit choreographies — unhurried, velvety GPU-only curves with zero mid-transition layer creation. */
.bl-leaving { pointer-events: none; will-change: transform, opacity; animation: bl-fade 520ms cubic-bezier(.33, 0, .2, 1) both; }
.bl-leaving .bl-signature-wrap { opacity: 0; transform: translate3d(0, 6px, 0); }
.bl-leaving[data-exit="lift"] { animation: bl-lift 620ms cubic-bezier(.22, 1, .36, 1) both; }
.bl-leaving[data-exit="zoom"] { animation: bl-zoom 580ms cubic-bezier(.33, 0, .2, 1) both; }
.bl-leaving[data-exit="portal"] {
  transform-origin: 50% 44%;
  animation: bl-portal-surface 680ms cubic-bezier(.33, 0, .2, 1) both;
}
.bl-leaving[data-exit="portal"] .bl-art {
  animation: bl-portal-art 560ms cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes bl-fade { to { opacity: 0; } }
@keyframes bl-lift { to { transform: translate3d(0, -101%, 0); } }
@keyframes bl-zoom { to { transform: scale(1.12); opacity: 0; } }
@keyframes bl-portal-surface {
  0% { transform: scale(1) translateZ(0); opacity: 1; }
  22% { opacity: .92; }
  100% { transform: scale(1.06) translateZ(0); opacity: 0; }
}
@keyframes bl-portal-art {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  100% { transform: translate3d(0, -22px, 0) scale(1.16); opacity: 0; }
}

/* Pre-promoted GPU compositor transitions (armed while loader is still 100% opaque -> zero Frame-1 jank). */
html[data-bl-stage="armed"] #title .xf-card-shell,
html[data-bl-stage="armed"] #startScreen .xf-card-shell,
html[data-bl-stage="armed"] #welcome .xf-card-shell,
html[data-bl-stage="armed"] .start-card {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(.975);
  will-change: transform, opacity;
}
html[data-bl-stage="armed"] #settings,
html[data-bl-stage="armed"] #title .xf-rank-top,
html[data-bl-stage="armed"] #startScreen .xf-rank-top {
  opacity: 0;
  transform: translate3d(0, -10px, 0);
  will-change: transform, opacity;
}

html[data-bl-stage="revealing"] #title .xf-card-shell,
html[data-bl-stage="revealing"] #startScreen .xf-card-shell,
html[data-bl-stage="revealing"] #welcome .xf-card-shell,
html[data-bl-stage="revealing"] .start-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform, opacity;
  transition: transform 560ms cubic-bezier(.22, 1, .36, 1), opacity 440ms ease-out;
}
html[data-bl-stage="revealing"] #settings,
html[data-bl-stage="revealing"] #title .xf-rank-top,
html[data-bl-stage="revealing"] #startScreen .xf-rank-top {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  transition: transform 480ms cubic-bezier(.22, 1, .36, 1) 90ms, opacity 380ms ease-out 90ms;
}

@media (prefers-reduced-motion: reduce) {
  .bl-surface *, .bl-surface *::after, .bl-surface.bl-leaving,
  html[data-bl-stage] #title .xf-card-shell,
  html[data-bl-stage] #startScreen .xf-card-shell,
  html[data-bl-stage] #welcome .xf-card-shell,
  html[data-bl-stage] .start-card,
  html[data-bl-stage] #settings,
  html[data-bl-stage] #title .xf-rank-top,
  html[data-bl-stage] #startScreen .xf-rank-top {
    animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important;
  }
}
