.bl-hist-bar {
    display: flex; align-items: center; gap: 10px; height: 56px; margin-bottom: 12px; padding: 0 8px 0 14px;
    border-radius: 18px; background: rgba(17,10,34,.55);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 1px 0 rgba(255,255,255,.05), 0 12px 28px -20px rgba(0,0,0,.9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.bl-hist-k {
    flex: none; display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(225,215,255,.5);
}
.bl-hist-k svg { width: 15px; height: 15px; }

.bl-hist-bar .h {
    --c: #fff; flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; color: var(--c);
    background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 10%, transparent) 70%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 42%, transparent);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.bl-hist-bar .h > svg { width: 19px; height: 19px; filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--c) 55%, transparent)); }
.bl-hist-bar .h:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 75%, transparent), 0 6px 16px -6px var(--c); }
.bl-hist-bar .h.gold {
    color: #fff3c4;
    background:
        linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%) 0 0 / 300% 100%,
        radial-gradient(circle at 50% 30%, #ffd86b, #c58a12 80%);
    box-shadow: inset 0 0 0 1px #ffe8a3, 0 0 14px rgba(255,211,107,.55);
    animation: blHistGold 2.8s linear infinite;
}
.bl-hist-bar .h.gold > svg { filter: drop-shadow(0 1px 2px rgba(110,60,0,.6)); }
@keyframes blHistGold { from { background-position: 100% 0, 0 0; } to { background-position: -200% 0, 0 0; } }
.bl-hist-bar .h em {
    position: absolute; right: -4px; top: -4px; width: 16px; height: 16px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; background: #241640;
    box-shadow: 0 0 0 2px rgba(17,10,34,.9), inset 0 0 0 1px rgba(255,255,255,.25);
}
.bl-hist-bar .h em svg { width: 10px; height: 10px; }

.bl-hist-last {
    --c: #fff; flex: none; display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px 0 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--c) 6%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 38%, transparent), 0 8px 22px -14px var(--c);
}
.bl-hist-last[hidden] { display: none; }
.bl-hist-last .h { width: 32px; height: 32px; color: #fff; background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000)); box-shadow: none; }
.bl-hist-last .h > svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.bl-hist-last .h:hover { transform: none; box-shadow: none; }
.bl-hist-last .t { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.bl-hist-last .t b { font-size: 13px; font-weight: 800; color: #fff; }
.bl-hist-last .t small { font-size: 11px; font-weight: 600; color: rgba(225,215,255,.55); font-variant-numeric: tabular-nums; }
.bl-hist-last.gold .t b { color: #ffe08a; }
.bl-hist-last.new { animation: blHistPop .55s var(--ease); }
@keyframes blHistPop { 0% { transform: scale(.85); opacity: 0; } 60% { transform: scale(1.04); } }
.bl-hist {
    flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 8px;
    border-left: 1px solid rgba(255,255,255,.07);
    overflow-x: auto; scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 82%, transparent);
}
.bl-hist::-webkit-scrollbar { display: none; }
.bl-hist .h.new { animation: blHistIn .5s var(--ease); }
@keyframes blHistIn { from { transform: translateX(-24px) scale(.6); opacity: 0; } }
@media (max-width: 720px) {
    .bl-hist-bar { height: 48px; gap: 8px; padding: 0 6px 0 8px; border-radius: 16px; }
    .bl-hist-k { display: none; }
    .bl-hist-last { height: 36px; padding: 0 3px; gap: 0; }
    .bl-hist-last .t { display: none; }
    .bl-hist-bar .h { width: 28px; height: 28px; }
    .bl-hist-bar .h > svg { width: 17px; height: 17px; }
    .bl-hist { gap: 6px; padding-left: 6px; }
}
@media (prefers-reduced-motion: reduce) { .bl-hist-bar .h.gold, .bl-hist-last.new, .bl-hist .h.new { animation: none; } }

.bl-stage {
    --finish: 122px; --gh: 92px; --lane-l: 132px; --lane-r: 72px; --bw-max: 88px; --bw: 70px; --ph: 172px;
    --sky-y: 0px; --gy: 0px;
    position: relative; overflow: hidden; height: 600px; border-radius: var(--r-xl);
    background: #2a1650;
    box-shadow: var(--sh-screen), inset 0 0 0 1px rgba(255,190,150,.14);
    isolation: isolate; user-select: none;
}
.bl-stage[data-gold="1"] { box-shadow: var(--sh-screen), inset 0 0 0 1px rgba(255,211,107,.45), 0 0 40px -10px rgba(255,211,107,.5); }
.bl-stage::before {
    content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(14,6,34,.55), transparent 16%),
        radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(14,6,34,.45));
}
.bl-stage::after {
    content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background: radial-gradient(90% 70% at 50% 30%, rgba(10,6,30,.25), rgba(4,2,14,.8));
    opacity: 0; transition: opacity .5s;
}
.bl-stage[data-storm="1"]::after { opacity: 1; transition-duration: .12s; }

.bl-sky {
    position: absolute; left: 0; right: 0; bottom: 0; height: var(--sky-h, 200%); z-index: 0;
    background: url(../assets/art/balloon/sky.webp) center bottom / cover no-repeat;
    transform: translate3d(0, var(--sky-y), 0); will-change: transform;
}
.bl-stage[data-phase="betting"] .bl-sky { transition: transform 1.4s cubic-bezier(.4,0,.2,1); }
.bl-stage[data-gold="1"] .bl-sky { filter: saturate(1.15) sepia(.22) brightness(1.06); }

.bl-clouds { position: absolute; inset: 0; pointer-events: none; }
.bl-clouds.far { z-index: 1; }
.bl-clouds.near { z-index: 4; }
.bl-cloud { position: absolute; left: 0; top: 0; width: 210px; height: auto; will-change: transform; transform-origin: 0 0; }
.bl-clouds.far .bl-cloud { opacity: .62; filter: saturate(.85) brightness(.92); }
.bl-clouds.near .bl-cloud { opacity: .88; }

.bl-ground {
    position: absolute; left: -2%; width: 104%; z-index: 2; pointer-events: none;
    aspect-ratio: 1600 / 484; top: calc(100% - var(--gh) + 26px);
    background: url(../assets/art/balloon/ground.webp) center top / 100% 100% no-repeat;
    transform: translate3d(0, calc(-56% + var(--gy)), 0); will-change: transform;
    filter: brightness(.9) saturate(.95);
}
.bl-stage[data-phase="betting"] .bl-ground { transition: transform 1.2s cubic-bezier(.4,0,.2,1); }

.bl-beam {
    position: absolute; top: 0; bottom: 0; left: var(--bx, 50%); width: 260px; margin-left: -130px; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c, #fff) 40%, rgba(255,255,255,.7)), color-mix(in srgb, var(--c, #fff) 25%, transparent) 55%, transparent 88%);
    clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
    mix-blend-mode: screen; opacity: 0; transition: opacity .6s;
}
.bl-beam.on { opacity: .55; animation: blBeam 3s ease-in-out infinite; }
@keyframes blBeam { 50% { opacity: .38; } }

.bl-fx, .bl-rope { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bl-rope { z-index: 4; }
.bl-fx { z-index: 6; }

.bl-finish { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bl-pylon {
    position: absolute; top: calc(var(--finish) - var(--ph) * .242); height: var(--ph); aspect-ratio: 127 / 420;
    filter: drop-shadow(0 10px 16px rgba(30,8,50,.45));
}
.bl-pylon.l { left: 6px; }
.bl-pylon.r { right: 6px; transform: scaleX(-1); }
.bl-pylon img { width: 100%; height: 100%; display: block; }
.bl-pylon .hook { position: absolute; left: 72.9%; top: 24.2%; width: 2px; height: 2px; }

.bl-pylon .lamp {
    position: absolute; left: 42%; top: 14.3%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,246,210,.95), rgba(255,200,90,.45) 40%, transparent);
    mix-blend-mode: screen; animation: blLamp 2.4s ease-in-out infinite;
}
@keyframes blLamp { 50% { opacity: .45; transform: scale(.8); } }
.bl-stage.near .bl-pylon .lamp { animation-duration: .5s; }
.bl-finish.won .bl-pylon .lamp {
    background: radial-gradient(closest-side, #fff, color-mix(in srgb, var(--wc, #ffd36b) 70%, transparent) 40%, transparent);
    width: 110px; height: 110px; margin: -55px 0 0 -55px; animation: blLampWin .6s ease-in-out 5;
}
@keyframes blLampWin { 50% { opacity: .35; transform: scale(.7); } }

.bl-zone {
    position: absolute; left: 0; right: 0; top: var(--finish); height: 90px;
    background: linear-gradient(180deg, rgba(255,211,107,.22), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    opacity: .5; transition: opacity .5s;
}
.bl-stage.near .bl-zone { opacity: 1; animation: blZone .5s ease-in-out infinite alternate; }
@keyframes blZone { to { opacity: .6; } }
.bl-finish.won .bl-zone { opacity: 0; animation: none; }

.bl-laser {
    position: absolute; left: 30px; right: 30px; top: calc(var(--finish) - 1px); height: 2px; border-radius: 1px;
    background: linear-gradient(90deg, transparent, #ffe28a 6%, #fff8e0 50%, #ffe28a 94%, transparent);
    box-shadow: 0 0 8px #ffd36b, 0 0 20px rgba(255,211,107,.55);
}
.bl-stage.near .bl-laser, .bl-finish.won .bl-laser { animation: blLaser .45s ease-in-out infinite alternate; }
@keyframes blLaser { to { opacity: .55; } }

.bl-sign {
    --sc: #ffd36b;
    position: absolute; left: 50%; top: calc(var(--finish) - 70px); transform: translateX(-50%); transform-origin: 50% -60px;
}
.bl-sign::before, .bl-sign::after {
    content: ''; position: absolute; bottom: 100%; width: 2px; height: 80px;
    background: linear-gradient(180deg, transparent, rgba(255,230,190,.55));
}
.bl-sign::before { left: 18%; } .bl-sign::after { right: 18%; }
.bl-sign .face {
    position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 20px; border-radius: 12px; white-space: nowrap;
    font-family: var(--f-display); font-size: 15px; letter-spacing: .28em; text-transform: uppercase; color: #fff;
    background: linear-gradient(180deg, #2c1646, #170b27);
    box-shadow: 0 0 0 2px #c9922e, 0 0 0 4px #2a1540, 0 0 0 5px rgba(255,211,107,.5), 0 12px 30px -8px rgba(10,2,20,.8), 0 0 30px -6px color-mix(in srgb, var(--sc) 60%, transparent);
    text-shadow: 0 0 12px color-mix(in srgb, var(--sc) 80%, transparent);
}
.bl-sign .face i { font-style: normal; letter-spacing: 0; font-size: 14px; }
.bl-sign .face::before {
    content: ''; position: absolute; inset: 3px; border-radius: 9px; pointer-events: none;
    background:
        radial-gradient(circle, var(--sc) 1.6px, transparent 2.4px) 0 0 / 12px 100% repeat-x,
        radial-gradient(circle, var(--sc) 1.6px, transparent 2.4px) 6px 100% / 12px 6px repeat-x;
    mask-image: linear-gradient(180deg, #000 6px, transparent 6px, transparent calc(100% - 6px), #000 calc(100% - 6px));
    animation: blBulbs 1.2s linear infinite; opacity: .9;
}
@keyframes blBulbs { to { background-position: 12px 0, -6px 100%; } }
.bl-stage.near .bl-sign .face::before { animation-duration: .35s; }
.bl-sign.win { --sc: var(--wc, #ffd36b); animation: blSignSwing 2.2s cubic-bezier(.3,.6,.3,1); }
.bl-sign.win .face { color: #fff; font-size: 16px; letter-spacing: .14em; background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 40%, #2c1646), #170b27); }
.bl-sign.win .face b { color: color-mix(in srgb, var(--sc) 55%, #fff); font-weight: inherit; }
@keyframes blSignSwing { 0% { transform: translateX(-50%) rotate(0); } 12% { transform: translateX(-50%) rotate(-7deg) translateY(-6px); } 30% { transform: translateX(-50%) rotate(5deg); } 50% { transform: translateX(-50%) rotate(-3deg); } 70% { transform: translateX(-50%) rotate(1.5deg); } 100% { transform: translateX(-50%) rotate(0); } }
.bl-sign.flip .face { animation: blSignFlip .5s ease-in-out; }
@keyframes blSignFlip { 50% { transform: rotateX(90deg); } }

.bl-track { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bl-ball {
    position: absolute; left: 0; top: 0; width: var(--bw); height: calc(var(--bw) * 1.565);
    will-change: transform; transform-origin: 50% 90%;
}
.bl-ball .body { position: absolute; inset: 0; }
.bl-ball img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(40,10,40,.35)); }
.bl-ball.gold { width: calc(var(--bw) * 1.18); height: calc(var(--bw) * 1.18 * 1.2); margin-left: calc(var(--bw) * -.09); margin-top: calc(var(--bw) * .1); }
.bl-ball.gold img { filter: drop-shadow(0 0 18px rgba(255,211,107,.75)) drop-shadow(0 10px 14px rgba(60,30,0,.35)); }

.bl-ball .burn {
    position: absolute; left: 50%; top: 72%; width: 30%; height: 16%; transform: translate(-50%, -50%);
    border-radius: 50%; background: radial-gradient(closest-side, #fff6c8, #ffb03a 45%, rgba(255,90,20,.0));
    opacity: calc(.15 + var(--burn, 0) * .85); mix-blend-mode: screen; filter: blur(1px);
    animation: blFlick .12s steps(2) infinite;
}
.bl-ball.gold .burn { top: 40%; opacity: calc(var(--burn, 0) * .6); }
@keyframes blFlick { 50% { transform: translate(-50%, -52%) scale(1.12); } }
.bl-ball .body.ignite .burn { animation: blIgnite .9s ease-out, blFlick .12s steps(2) infinite; }
@keyframes blIgnite { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(2.4); } }
.bl-ball .pad {
    position: absolute; left: 50%; bottom: -9px; width: 104%; height: 18px; transform: translateX(-50%); z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(20,8,30,.55) 55%, color-mix(in srgb, var(--c) 85%, #fff) 72%, color-mix(in srgb, var(--c) 40%, transparent) 86%, transparent);
    box-shadow: 0 0 22px -2px var(--c);
    opacity: .9; transition: opacity .4s, transform .4s;
}
.bl-ball .pad::after {
    content: ''; position: absolute; left: 22%; right: 22%; bottom: 50%; height: calc(var(--bw) * 1.3);
    background: linear-gradient(0deg, color-mix(in srgb, var(--c) 45%, transparent), transparent);
    filter: blur(4px); opacity: .55; animation: blPadGlow 2.6s ease-in-out infinite;
}
@keyframes blPadGlow { 50% { opacity: .2; } }
.bl-stage:not([data-phase="betting"]) .bl-ball .pad::after { opacity: 0; animation: none; }
.bl-ball.air .pad { opacity: 0; transform: translateX(-50%) scale(.6); }

.bl-ball .tag {
    position: absolute; left: 50%; bottom: 100%; margin-bottom: 6px; transform: translateX(-50%);
    display: grid; justify-items: center; gap: 1px; white-space: nowrap; transition: opacity .3s;
}
.bl-ball .tag b {
    font-family: var(--f-display); font-size: 12px; color: #fff; padding: 2px 8px; border-radius: 999px;
    background: color-mix(in srgb, var(--c) 75%, #120820); box-shadow: 0 2px 8px -2px var(--c);
}
.bl-ball .tag small { font-size: 10.5px; font-weight: 700; color: rgba(255,240,245,.85); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.bl-ball.air .tag { opacity: 0; }
.bl-ball .me {
    position: absolute; left: 50%; bottom: 100%; margin-bottom: 44px; transform: translateX(-50%);
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
    padding: 2px 7px; border-radius: 999px; color: #1b0f00; background: #ffd36b; box-shadow: 0 0 10px rgba(255,211,107,.8);
}
.bl-ball.bet .body { animation: blBet .5s var(--ease); }
@keyframes blBet { 40% { transform: translateY(-10px) scale(1.06); } }

.bl-ball .ev {
    position: absolute; left: 50%; top: 100%; margin-top: 4px; z-index: 2; white-space: nowrap;
    padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff;
    background: rgba(18,8,34,.72); box-shadow: 0 4px 14px -4px rgba(0,0,0,.6);
    opacity: 0; transform: translate(-50%, 6px) scale(.8); transition: opacity .25s, transform .3s var(--ease);
    pointer-events: none;
}
.bl-ball .ev.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.bl-ball .ev.wind { background: linear-gradient(160deg, #37b6ff, #2166d9); box-shadow: 0 0 16px rgba(80,180,255,.7); }
.bl-ball .ev.bird { background: linear-gradient(160deg, #ff8a4d, #d23d52); box-shadow: 0 0 16px rgba(255,110,80,.6); }

.bl-stage.can-bet .bl-ball { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.bl-stage.can-bet .bl-ball .body { transition: filter .2s; }
@media (hover: hover) {
    .bl-stage.can-bet .bl-ball:hover .body { filter: brightness(1.12) drop-shadow(0 0 16px var(--c)); }
    .bl-stage.can-bet .bl-ball:hover .tag b { box-shadow: 0 0 0 2px #fff, 0 4px 14px -2px var(--c); }
}
.bl-ball .bl-fly { top: -14px; }

.bl-ball .medal {
    position: absolute; left: 50%; top: 22%; z-index: 2; width: 30px; height: 30px; margin-left: -15px;
    display: grid; place-items: center; border-radius: 50%; font-family: var(--f-display); font-size: 15px; font-weight: 700;
    color: #3a2400; background: radial-gradient(circle at 35% 30%, #fff6d0, #ffd36b 55%, #d99a1e);
    box-shadow: 0 0 0 2px #fff, 0 6px 16px -4px rgba(0,0,0,.5);
    opacity: 0; transform: scale(.3) rotate(-30deg); pointer-events: none;
}
.bl-ball .medal.on { opacity: 1; transform: none; transition: opacity .25s, transform .5s cubic-bezier(.3,1.6,.5,1); }
.bl-ball .medal.p2 { background: radial-gradient(circle at 35% 30%, #fff, #d7dde8 55%, #97a2b5); color: #26303f; }
.bl-ball .medal.p3 { background: radial-gradient(circle at 35% 30%, #ffe2c4, #e2995a 55%, #a45f2a); color: #3a1c05; }
.bl-ball .medal.p4 { width: 22px; height: 22px; margin-left: -11px; font-size: 11px; color: #fff; background: rgba(18,8,34,.7); box-shadow: 0 0 0 1.5px rgba(255,255,255,.5); }
.bl-ball.winner .medal { width: 38px; height: 38px; margin-left: -19px; font-size: 19px; box-shadow: 0 0 0 3px #fff, 0 0 24px rgba(255,211,107,.9); }
.bl-ball.shock .body { animation: blShock .6s steps(6); }
@keyframes blShock { 20% { transform: translateX(-4px); filter: brightness(1.8); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); filter: brightness(1.5); } 80% { transform: translateX(2px); } }
.bl-ball.winner .body { animation: blWin 1.2s ease-in-out infinite; }
.bl-ball.winner img { filter: drop-shadow(0 0 20px var(--c)) drop-shadow(0 0 40px rgba(255,255,255,.35)); }
@keyframes blWin { 50% { transform: scale(1.06); } }
.bl-ball.lost { opacity: .55; transition: opacity .8s; }

.bl-bird { position: absolute; left: 0; top: 0; z-index: 4; width: 44px; height: 28px; pointer-events: none; will-change: transform; }
.bl-bird.perch .w1, .bl-bird.perch .w2 { animation-duration: .5s; }
.bl-bird svg { width: 100%; height: 100%; fill: #2a1638; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.bl-bird .beak { fill: #ffb03a; }
.bl-bird .w1, .bl-bird .w2 { transform-box: fill-box; animation: blFlap .22s ease-in-out infinite alternate; }
.bl-bird .w1 { transform-origin: 100% 100%; } .bl-bird .w2 { transform-origin: 0 100%; }
@keyframes blFlap { to { transform: scaleY(-.6); } }

.bl-board {
    position: absolute; left: 12px; top: calc(var(--finish) + var(--ph) * .76 + 14px); z-index: 7; width: 108px; height: calc(6 * 26px);
    opacity: .0; transform: translateX(-10px); transition: opacity .4s, transform .4s var(--ease);
}
.bl-board.on { opacity: 1; transform: none; }
.bl-board .row {
    position: absolute; left: 0; right: 0; top: 0; height: 22px; display: flex; align-items: center; gap: 6px;
    padding: 0 8px 0 4px; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: #fff;
    background: rgba(18,8,34,.6); backdrop-filter: blur(8px);
    box-shadow: inset 3px 0 0 var(--c), inset 0 0 0 1px rgba(255,255,255,.06);
    transform: translateY(calc(var(--r, 0) * 26px)); transition: transform .45s var(--ease);
}
.bl-board .row .n { width: 14px; text-align: center; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.bl-board .row i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); flex: none; }
.bl-board .row.lead { background: color-mix(in srgb, var(--c) 40%, rgba(18,8,34,.6)); }

.bl-head {
    position: absolute; left: 12px; right: 12px; top: 12px; z-index: 8;
    display: flex; align-items: center; gap: 8px; font-size: 12px; pointer-events: none;
}
.bl-head .rid { font-weight: 800; color: #fff; padding: 4px 10px; border-radius: 999px; background: rgba(18,8,34,.5); backdrop-filter: blur(6px); }
.bl-head .hash { margin-left: auto; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,235,245,.5); font-family: var(--f-mono, monospace); font-size: 10.5px; }
.bl-gold-tag {
    font-weight: 800; color: #2a1600; padding: 4px 11px; border-radius: 999px;
    background: linear-gradient(90deg, #ffe7a0, #ffc44d, #ffe7a0); background-size: 200% 100%;
    box-shadow: 0 0 18px rgba(255,211,107,.7); animation: blShine 2s linear infinite;
}
@keyframes blShine { to { background-position: -200% 0; } }

.bl-center {
    position: absolute; left: 50%; top: 39%; z-index: 7; transform: translate(-50%, -50%);
    display: grid; justify-items: center; gap: 6px; pointer-events: none;
    transition: opacity .4s, transform .4s var(--ease);
}
.bl-stage:not([data-phase="betting"]) .bl-center { opacity: 0; transform: translate(-50%, -70%) scale(.8); }

.bl-ring {
    position: relative; width: 134px; height: 134px; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 2px;
    background: radial-gradient(circle, rgba(24,10,44,.62) 58%, rgba(24,10,44,.25) 70%, transparent 71%);
    backdrop-filter: blur(6px);
}
.bl-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.bl-ring circle { fill: none; stroke-width: 6; }
.bl-ring .tr { stroke: rgba(255,255,255,.12); }
.bl-ring .pr { stroke: #ffc65a; stroke-linecap: round; stroke-dasharray: 100; filter: drop-shadow(0 0 6px rgba(255,190,90,.8)); }
.bl-center .cap { position: relative; color: rgba(255,240,245,.75); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 9.5px; }
.bl-timer { position: relative; font-family: var(--f-display); font-size: 40px; line-height: 1; color: #fff; text-shadow: 0 4px 24px rgba(120,20,80,.6); font-variant-numeric: tabular-nums; }
.bl-taphint {
    margin-top: 4px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
    color: #fff; background: rgba(18,8,34,.45); backdrop-filter: blur(6px);
}

.bl-stage.hurry .bl-timer { color: #ffd6dd; text-shadow: 0 0 26px rgba(255,61,94,.75); animation: blHurry 1s ease-in-out infinite; }
.bl-stage.hurry .bl-ring .pr { stroke: #ff4d6d; filter: drop-shadow(0 0 8px rgba(255,61,94,.9)); }
@keyframes blHurry { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.07); } }

.bl-caster { position: absolute; left: 6px; bottom: 4px; z-index: 8; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; }
.bl-caster img {
    width: 118px; height: 118px; object-fit: contain; flex: none; transform-origin: 50% 100%;
    filter: drop-shadow(0 6px 12px rgba(20,5,30,.5)); animation: blIdle 3.2s ease-in-out infinite;
}
@keyframes blIdle { 50% { transform: translateY(-3px) rotate(-1.5deg); } }
.bl-caster.talk img { animation: blTalk .9s ease-in-out, blIdle 3.2s ease-in-out .9s infinite; }
@keyframes blTalk { 20% { transform: scale(1.06) rotate(2deg); } 45% { transform: scale(.98) rotate(-1deg); } 70% { transform: scale(1.04); } }
.bl-caster .say {
    position: relative; margin-bottom: 10px; max-width: 300px; padding: 9px 13px; border-radius: 14px 14px 14px 4px;
    font-size: 13px; font-weight: 700; line-height: 1.3; color: #1d0e2a; background: #fff;
    box-shadow: 0 8px 22px -6px rgba(20,5,30,.55);
}
.bl-caster .say.pop { animation: blSay .4s var(--ease); }
@keyframes blSay { from { transform: scale(.6) translateY(8px); opacity: 0; transform-origin: 0 100%; } }

.bl-track, .bl-fx, .bl-rope, .bl-finish { transform-origin: var(--zx, 50%) var(--zy, 0); transition: scale 1s cubic-bezier(.4,0,.2,1); }
.bl-stage[data-photo="1"] :is(.bl-track, .bl-fx, .bl-rope, .bl-finish) { scale: 1.16; }
.bl-cine { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.bl-cine i { position: absolute; left: 0; right: 0; height: 13%; background: #07030d; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.bl-cine .t { top: 0; transform: translateY(-100%); }
.bl-cine .b { bottom: 0; transform: translateY(100%); }
.bl-cine .rec {
    position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%); white-space: nowrap;
    display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: #fff; opacity: 0; transition: opacity .3s;
}
.bl-cine .rec b { width: 8px; height: 8px; border-radius: 50%; background: #ff3d5e; box-shadow: 0 0 8px #ff3d5e; animation: blRec 1.2s ease-in-out infinite; }
@keyframes blRec { 50% { opacity: .2; } }
.bl-stage[data-photo="1"] .bl-cine i { transform: none; }
.bl-stage[data-photo="1"] .bl-cine .rec { opacity: 1; }
.bl-stage[data-photo="1"] .bl-caster, .bl-stage[data-photo="1"] .bl-board { opacity: 0; transition: opacity .3s; }

.bl-snap {
    --off: 12px;
    position: absolute; left: 50%; top: 50%; z-index: 9; width: 250px; padding: 10px 10px 12px; border-radius: 6px;
    background: #fbf7ee; box-shadow: 0 30px 60px -18px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.1);
    transform: translate(-50%, -50%) rotate(-3deg) scale(.4); opacity: 0; pointer-events: none;
    transition: transform .8s cubic-bezier(.5,0,.2,1), opacity .3s, top .8s cubic-bezier(.5,0,.2,1), left .8s cubic-bezier(.5,0,.2,1);
}
.bl-snap.in, .bl-snap.done { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg); }
.bl-snap.in:not(.mini) { transition: transform .5s cubic-bezier(.3,1.5,.5,1), opacity .2s; }
.bl-snap.mini { left: calc(100% - 96px); top: calc(100% - 96px); transform: translate(-50%, -50%) rotate(4deg) scale(.5); }
.bl-snap .pic {
    position: relative; height: 170px; overflow: hidden; border-radius: 2px; display: flex; justify-content: center; align-items: flex-start; gap: 18px;
    background: linear-gradient(180deg, #4a3560, #b86a6e 70%, #e7a877); filter: sepia(.45) contrast(1.05);
}
.bl-snap .pic::after {
    content: ''; position: absolute; inset: 0; opacity: .18; mix-blend-mode: overlay;
    background: repeating-radial-gradient(circle at 30% 40%, #000 0 1px, transparent 1px 3px);
}
.bl-snap .line { position: absolute; left: 0; right: 0; top: 40px; height: 2px; background: #ff2d4d; box-shadow: 0 0 6px #ff2d4d; z-index: 2; }
.bl-snap .pb { position: relative; width: 70px; margin-top: 40px; }
.bl-snap .pb.b { margin-top: calc(40px + var(--off)); }
.bl-snap .pb img { width: 100%; height: auto; display: block; }
.bl-snap .pb em {
    position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(2.4) rotate(-12deg); opacity: 0;
    font-style: normal; font-family: var(--f-display); font-size: 24px; color: #fff; width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 50%; border: 3px solid #fff; background: rgba(255,45,77,.8); box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.bl-snap .pb.b em { background: rgba(60,70,90,.8); font-size: 18px; width: 32px; height: 32px; }
.bl-snap .pb svg { position: absolute; left: -12px; top: -10px; width: calc(100% + 24px); height: 72%; overflow: visible; z-index: 3; }
.bl-snap .pb svg ellipse { fill: none; stroke: #ff2d4d; stroke-width: 4; stroke-dasharray: 300; stroke-dashoffset: 300; stroke-linecap: round; }

.bl-snap .scan { position: absolute; left: 0; right: 0; top: 0; height: 40px; z-index: 4; border-bottom: 2px solid #7df9ff;
    background: linear-gradient(180deg, transparent, rgba(125,249,255,.25)); box-shadow: 0 4px 14px rgba(125,249,255,.6); transform: scaleY(0); transform-origin: 0 0; }
.bl-snap.in .scan { animation: blScan 1.2s .25s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes blScan { 0% { transform: scaleY(0); opacity: 1; } 85% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.bl-snap.done .pb svg ellipse { stroke-dashoffset: 0; transition: stroke-dashoffset .5s ease-out; }
.bl-snap.done .pb em { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg); transition: transform .35s cubic-bezier(.3,1.6,.5,1) .15s, opacity .1s .15s; }
.bl-snap.done .pb.b img { filter: grayscale(.4) brightness(.85); }
.bl-snap .cap { display: grid; gap: 2px; margin-top: 9px; text-align: center; color: #2a1d33; }
.bl-snap .cap b { font-family: var(--f-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.bl-snap .cap span { font-size: 12.5px; font-weight: 700; color: #6b5670; }
.bl-shutter, .bl-flash { position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; }
.bl-shutter { background: #fff; z-index: 10; }
.bl-shutter.on { animation: blShutter .7s ease-out; }
@keyframes blShutter { 0% { opacity: .95; } 100% { opacity: 0; } }
.bl-flash { background: radial-gradient(circle at 50% 10%, #fff, rgba(190,220,255,.6) 40%, transparent 75%); }
.bl-flash.on { animation: blFlash .55s ease-out; }
@keyframes blFlash { 0%, 30% { opacity: 1; } 10% { opacity: .3; } 100% { opacity: 0; } }
.bl-stage.shake { animation: blShake .45s; }
@keyframes blShake { 20% { transform: translate(-5px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, -1px); } }

.bl-result {
    --c: #ffd36b;
    position: absolute; left: 50%; bottom: 16px; z-index: 8; width: min(470px, calc(100% - 290px)); transform: translateX(-50%);
    padding: 12px 14px 12px; border-radius: 20px; pointer-events: none;
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%),
        linear-gradient(180deg, rgba(34,16,58,.86), rgba(18,8,32,.9));
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, rgba(255,255,255,.1)), 0 24px 50px -16px rgba(0,0,0,.8), 0 0 40px -18px var(--c);
    animation: blResIn .6s cubic-bezier(.2,1.2,.4,1);
}
@keyframes blResIn { from { opacity: 0; transform: translate(-50%, 26px) scale(.94); } }
.bl-result .rs-win { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.bl-result .rs-art {
    position: relative; width: 50px; height: 58px; display: grid; place-items: center; border-radius: 14px;
    background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%);
}
.bl-result .rs-art img { width: 40px; height: 54px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); animation: blWin 1.4s ease-in-out infinite; }
.bl-result .rs-art::after {
    content: '1'; position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    font: 700 12px/1 var(--f-display); color: #3a2400; background: radial-gradient(circle at 35% 30%, #fff6d0, #ffd36b 55%, #d99a1e); box-shadow: 0 0 0 2px #fff;
}
.bl-result .rs-nm { display: grid; min-width: 0; }
.bl-result .rs-nm small { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,240,250,.6); }
.bl-result .rs-nm b { font: 700 24px/1.1 var(--f-display); color: color-mix(in srgb, var(--c) 55%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 22px color-mix(in srgb, var(--c) 60%, transparent); }
.bl-result em {
    font: 700 18px/1 var(--f-display); font-style: normal; color: #1d1003; padding: 8px 11px; border-radius: 12px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); box-shadow: 0 8px 20px -8px var(--c);
}
.bl-result .rs-pl { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.bl-result .rs-pl span {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 5px; min-width: 0;
    padding: 5px 7px; border-radius: 10px; background: rgba(255,255,255,.05); box-shadow: inset 2px 0 0 var(--c);
    animation: blResPl .4s var(--ease) backwards;
}
.bl-result .rs-pl span i { grid-row: span 2; font: 700 13px/1 var(--f-display); font-style: normal; color: rgba(255,255,255,.55); }
.bl-result .rs-pl span b { font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: color-mix(in srgb, var(--c) 40%, #fff); }
.bl-result .rs-pl span small { font-size: 10px; font-weight: 700; color: rgba(255,240,250,.5); font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes blResPl { from { opacity: 0; transform: translateY(8px); } }
.bl-result .rs-me { margin-top: 9px; padding-top: 9px; border-top: 1px dashed rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; }
.bl-result .rs-me:empty { display: none; }
.bl-result .rs-me .won { font: 700 17px/1 var(--f-display); color: var(--mint, #36d89a); text-shadow: 0 0 18px rgba(54,216,154,.5); }
.bl-result .rs-me .lost { font-weight: 700; color: rgba(255,240,250,.55); }
.bl-result .rs-me small { color: rgba(255,240,250,.6); font-weight: 700; }
.bl-result.gold { --c: #ffd36b; }
.bl-result.gold .rs-nm b { background: linear-gradient(90deg, #fff1c2, #ffc44d, #fff1c2); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: blShine 2s linear infinite; }
.bl-stage[data-phase="done"] .bl-caster .say { opacity: 0; }
.bl-stage[data-phase="done"] .bl-board { opacity: 0; }

.rail .fish-bar.bl-bet {
    background:
        radial-gradient(80% 60% at 50% -10%, rgba(255,122,89,.2), transparent 60%),
        linear-gradient(170deg, #2a1838, #1a1226 70%);
    border-color: rgba(255,160,130,.22);
}
.bl-bet .acts .btn:disabled { opacity: .4; pointer-events: none; }
.mk-c.placed, .mk-b.placed, .bl-dock-picks button.placed { animation: blPlaced .35s var(--ease); }
@keyframes blPlaced { 30% { transform: scale(1.05); filter: brightness(1.25); } }
.bl-fly {
    position: absolute; left: 50%; top: 0; z-index: 3; pointer-events: none; font-style: normal;
    padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap;
    color: #1a1204; background: linear-gradient(180deg, #ffe08a, #f0a62c); box-shadow: 0 6px 16px -6px rgba(0,0,0,.6);
    animation: blFly .8s var(--ease) forwards;
}
@keyframes blFly { from { transform: translate(-50%, 4px) scale(.7); opacity: 0; } 25% { opacity: 1; transform: translate(-50%, -18px) scale(1); } to { opacity: 0; transform: translate(-50%, -38px); } }

.bl-slip {
    position: relative; padding: 16px; overflow: visible;
    background:
        radial-gradient(120% 60% at 50% -12%, rgba(255,122,89,.22), transparent 55%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.016) 0 26px, transparent 26px 52px),
        linear-gradient(175deg, #2a1834, #17101f 72%);
    border: 1px solid rgba(255,160,130,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 26px 50px -30px rgba(0,0,0,.95);
}
.bl-slip-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bl-slip-h b { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 16px; }
.bl-slip-h b::before {
    content: '🎈'; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 15px;
    background: linear-gradient(160deg, #ff8a5c, #d9366b); box-shadow: 0 6px 14px -6px rgba(255,110,90,.9);
}
.bl-slip-h small { color: var(--faint); font-size: 10.5px; font-weight: 700; text-align: right; line-height: 1.3; max-width: 55%; }

.bl-slip .bl-bet { padding: 0; margin: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
.bl-slip .bl-bet .chips { display: flex; justify-content: space-between; gap: 4px; padding: 10px 2px 6px; overflow: visible; }
.bl-slip .bl-bet .chips .c { width: 42px; height: 42px; font-size: 11px; flex: none; }
.bl-slip .bl-bet .fb-own { margin-top: 8px; }
.bl-slip .bl-bet .fb-amt, .bl-slip .bl-bet .fb-own > button { height: 42px; }
.bl-slip .bl-bet .fb-amt { background: rgba(0,0,0,.3); }
.bl-slip .bl-bet .fb-amt input { font-size: 18px; }

.bl-slip .bl-bet .fb-total, .bl-slip .bl-bet .acts { display: none; }

.bl-mk .mk-h { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px; }
.bl-mk .mk-h span { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,240,250,.9); }
.bl-mk .mk-h small { font-size: 10.5px; color: var(--faint); font-weight: 600; }

.mk-row { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; }
.mk-c {
    position: relative; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 4px;
    min-height: 74px; padding: 7px 2px 8px; border: 0; border-radius: 14px; color: #fff; cursor: pointer;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, #221430), #140d1d);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
    touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .15s, box-shadow .2s, filter .2s;
}
.mk-c img { width: 24px; height: 33px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); transition: transform .3s var(--ease); }
.mk-c b {
    padding: 2px 6px; border-radius: 8px; background: rgba(0,0,0,.3);
    font: 800 12.5px/1.15 var(--f-display); color: color-mix(in srgb, var(--c) 45%, #fff); white-space: nowrap;
}
.mk-c small {
    position: absolute; left: 50%; bottom: -8px; z-index: 2; transform: translateX(-50%);
    padding: 1px 6px; border-radius: 999px; white-space: nowrap;
    font-size: 10px; font-weight: 800; line-height: 1.4; color: #1b0f00; background: linear-gradient(180deg, #ffe08a, #f0b43c);
    box-shadow: 0 4px 10px -4px rgba(0,0,0,.6); font-variant-numeric: tabular-nums;
}
.mk-c small:empty { display: none; }
.mk-c.gold { background: linear-gradient(180deg, rgba(255,211,107,.42), #2a1a08); box-shadow: inset 0 0 0 1.5px #ffd36b, 0 0 16px -6px #ffd36b; }
.mk-c.gold b { color: #ffe08a; }
.mk-c.off {
    cursor: default; color: var(--faint); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
    font-weight: 800; display: grid; place-items: center;
}

.mk-row.is-place .mk-c { min-height: 42px; display: flex; justify-content: center; align-items: center; gap: 3px; padding: 5px 2px; border-radius: 12px; }
.mk-row.is-place .mk-c img { width: 14px; height: 20px; }
.mk-row.is-place .mk-c b { padding: 0; background: none; font-size: 12px; }
@media (hover: hover) {
    .mk-c:hover:not(:disabled), .mk-b:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--c, #ff7a59), 0 14px 26px -14px var(--c, #ff7a59); }
    .mk-c:hover:not(:disabled) img { transform: translateY(-3px) rotate(-5deg) scale(1.06); }
}
.mk-c:active:not(:disabled), .mk-b:active:not(:disabled) { transform: translateY(1px) scale(.96); }
.mk-c:disabled, .mk-b:disabled { filter: grayscale(.45) brightness(.72); cursor: default; }
.mk-c.has, .mk-b.has { box-shadow: inset 0 0 0 2px #ffd36b, 0 0 22px -8px #ffd36b; }

.mk-ext { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mk-b {
    --c: #ff7a59; position: relative; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
    min-height: 46px; padding: 7px 12px 7px 8px; border: 0; border-radius: 14px; color: #fff; cursor: pointer; text-align: left;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 24%, #1f1329), #140d1d);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px color-mix(in srgb, var(--c) 36%, transparent);
    touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .15s, box-shadow .2s, filter .2s;
}
.mk-b.photo { grid-column: 1 / -1; --c: #ffb86b; }
.mk-b:not(.photo) { min-height: 42px; gap: 6px; padding: 6px 9px; }
.mk-b:not(.photo) b { font-size: 14px; }
.mk-b:not(.photo) .ico { width: 10px; height: 10px; background: none; }
.mk-b:not(.photo) .nm small { display: none; }
.mk-b .ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 17px; background: color-mix(in srgb, var(--c) 22%, rgba(0,0,0,.3)); }
.mk-b .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.mk-b .nm { display: grid; min-width: 0; font-size: 12.5px; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-b .nm small { font-size: 10.5px; font-weight: 600; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-b b { font: 800 15px/1 var(--f-display); color: color-mix(in srgb, var(--c) 45%, #fff); white-space: nowrap; }
.mk-b .mine {
    position: absolute; right: 10px; bottom: -8px; z-index: 2; font-style: normal; white-space: nowrap;
    padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 1.4;
    color: #1b0f00; background: linear-gradient(180deg, #ffe08a, #f0b43c); box-shadow: 0 4px 10px -4px rgba(0,0,0,.6);
}

.bl-extras {
    margin-top: 16px; padding: 14px 18px 18px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 4px 22px;
    background:
        radial-gradient(70% 90% at 0% 0%, rgba(255,122,89,.12), transparent 60%),
        linear-gradient(175deg, #221529, #17101f 72%);
    border: 1px solid rgba(255,160,130,.18);
}
.bl-extras .bl-ex-col { min-width: 0; }
.bl-extras .mk-h { margin-top: 4px; }
.bl-extras .mk-row.is-place .mk-c { min-height: 48px; gap: 5px; }
.bl-extras .mk-row.is-place .mk-c img { width: 17px; height: 24px; }
.bl-extras .mk-row.is-place .mk-c b { font-size: 13px; }

.bl-extras .mk-ext { grid-template-columns: 1.35fr 1fr 1fr; }
.bl-extras .mk-b.photo { grid-column: auto; min-height: 48px; padding: 6px 10px 6px 7px; }
.bl-extras .mk-b.photo .ico { width: 28px; height: 28px; font-size: 15px; }
.bl-extras .mk-b:not(.photo) { min-height: 48px; }

.bl-ticket {
    position: relative; margin: 18px -4px 0; padding: 12px 14px 10px; border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,226,190,.09), rgba(255,226,190,.04));
    box-shadow: inset 0 0 0 1px rgba(255,200,140,.2);
}
.bl-tk-list { display: grid; gap: 2px; max-height: 232px; overflow: auto; scrollbar-width: thin; }
.bl-tk-row {
    display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 9px;
    padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); animation: blTkIn .3s var(--ease);
}
.bl-tk-row:last-child { border-bottom: 0; }
@keyframes blTkIn { from { opacity: 0; transform: translateX(-8px); } }
.bl-tk-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.bl-tk-row .nm { display: grid; min-width: 0; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-tk-row .nm small { font-size: 10.5px; font-weight: 600; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.bl-tk-row b { font: 700 14px/1 var(--f-display); color: var(--gold-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-tk-row.won b { color: var(--mint); }
.bl-tk-row.lost { opacity: .45; }
.bl-tk-empty { display: flex; align-items: center; gap: 10px; padding: 6px 0 8px; color: var(--dim); font-size: 12px; font-weight: 600; line-height: 1.35; }
.bl-tk-empty b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; background: rgba(255,255,255,.06); animation: blTkBob 1.8s ease-in-out infinite; }
@keyframes blTkBob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.bl-tk-sum {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; padding-top: 10px;
    border-top: 1.5px dashed rgba(255,200,140,.25);
}

.bl-tk-sum::before, .bl-tk-sum::after {
    content: ''; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%;
    background: #17101f; box-shadow: inset 0 0 0 1px rgba(255,200,140,.2);
}
.bl-tk-sum::before { left: -22px; clip-path: inset(0 0 0 50%); }
.bl-tk-sum::after { right: -22px; clip-path: inset(0 50% 0 0); }
.bl-tk-sum small { display: block; color: var(--gold-warm); font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bl-tk-sum b { display: block; margin-top: 2px; font: 700 19px/1.1 var(--f-display); color: var(--gold-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-tk-sum .pot { text-align: right; }
.bl-tk-sum .pot b { color: var(--mint); }
.bl-tk-sum .pot b.zero { color: var(--faint); }
.bl-tk-acts { display: flex; justify-content: space-between; gap: 4px; margin-top: 10px; }
.bl-tk-acts button {
    flex: 1; height: 32px; border: 0; border-radius: 9px; cursor: pointer; white-space: nowrap;
    font-size: 11.5px; font-weight: 800; color: var(--text); background: rgba(255,255,255,.06); transition: background .15s, opacity .15s;
}
.bl-tk-acts button:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.bl-tk-acts button.clr { color: var(--pink); }
.bl-tk-acts button:disabled, .bl-tk-acts button.is-off { opacity: .35; cursor: default; pointer-events: none; }
html.is-lite .bl-tk-empty b { animation: none; }
@media (prefers-reduced-motion: reduce) { .bl-tk-empty b, .bl-tk-row { animation: none; } }

.bl-list { display: grid; gap: 4px; max-height: 320px; overflow: auto; scrollbar-width: thin; }
.bl-list .row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: 12.5px; background: var(--panel-2); animation: blRowIn .35s var(--ease); }
.bl-list .row .av { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; background: var(--a); flex: none; }
.bl-list .row .n { flex: 1; min-width: 0; display: grid; overflow: hidden; color: var(--text); font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.bl-list .row .n small { display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.bl-list .row .n small i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.bl-list .row b { font-variant-numeric: tabular-nums; }
.bl-list .row.me { box-shadow: inset 0 0 0 1px rgba(255,211,107,.5); }
.bl-list .row.won b { color: var(--mint); }
.bl-list .row.lost { opacity: .5; }
.bl-list .empty { color: var(--faint); font-size: 12.5px; text-align: center; padding: 16px 0; }
@keyframes blRowIn { from { transform: translateY(-6px); opacity: 0; } }

.bl-stats .bar { display: grid; grid-template-columns: 86px 1fr 30px; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 7px; }
.bl-stats .bar .nm { color: var(--dim); font-weight: 600; }
.bl-stats .bar i { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.bl-stats .bar s { display: block; height: 100%; border-radius: 4px; background: var(--c); box-shadow: 0 0 8px -1px var(--c); transition: width .6s var(--ease); }
.bl-stats .bar b { text-align: right; font-variant-numeric: tabular-nums; }
.bl-srow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: var(--dim); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bl-srow b { display: block; font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; margin-top: 2px; }

.bl-dock-picks { display: flex; gap: 5px; flex: 1; min-width: 0; }
.bl-dock-picks button {
    position: relative; flex: 1; min-width: 0; min-height: 56px; border: 0; border-radius: 12px; padding: 4px 0 5px; color: #fff;
    display: grid; justify-items: center; align-content: center; gap: 0;
    background: linear-gradient(170deg, color-mix(in srgb, var(--c) 55%, #1a1226), color-mix(in srgb, var(--c) 22%, #120c1c));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent);
    touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .12s, filter .2s;
}
.bl-dock-picks button img { width: 18px; height: 24px; object-fit: contain; }
.bl-dock-picks button b { font-family: var(--f-display); font-size: 12.5px; font-weight: 700; line-height: 1.1; }
.bl-dock-picks button small { font-size: 9.5px; font-weight: 800; color: #ffe08a; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bl-dock-picks button small:empty { display: none; }
.bl-dock-picks button.has { box-shadow: inset 0 0 0 2px #ffd36b, 0 0 14px -4px #ffd36b; }
.bl-dock-picks button.gold { background: linear-gradient(170deg, #ffd36b, #b97a14); }
.bl-dock-picks button.gold b { color: #2a1600; }
.bl-dock-picks button.gold small { color: #2a1600; }
.bl-dock-picks button:active { transform: scale(.95); }
.bl-dock-picks button:disabled { filter: grayscale(.6) brightness(.6); }
.bl-dock-picks .bl-fly { top: -8px; }

@media (max-width: 720px) {
    .bl-stage { --finish: 110px; --gh: 96px; --lane-l: 30px; --lane-r: 30px; --bw-max: 58px; --ph: 112px; height: 460px; }
    .bl-pylon.l { left: 0; } .bl-pylon.r { right: 0; }
    .bl-pylon .lamp { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
    .bl-sign { top: calc(var(--finish) - 46px); }
    .bl-sign::before, .bl-sign::after { display: none; }
    .bl-sign .face { padding: 5px 13px; font-size: 11.5px; letter-spacing: .2em; gap: 6px; border-radius: 9px; }
    .bl-sign .face i { font-size: 11px; }
    .bl-sign .face::before { display: none; }
    .bl-sign.win .face { font-size: 12px; }
    .bl-ring { width: 104px; height: 104px; }
    .bl-center .cap { font-size: 8.5px; letter-spacing: .1em; }

    .bl-taphint { display: none; }
    .bl-cloud { width: 150px; }
    .bl-ball .pad::after { display: none; }
    .bl-result { width: calc(100% - 16px); bottom: 8px; padding: 10px 11px; border-radius: 16px; }
    .bl-result .rs-nm b { font-size: 20px; }
    .bl-result em { font-size: 15px; padding: 7px 9px; }
    .bl-result .rs-pl span { padding: 4px 5px; }
    .bl-result .rs-pl span b { font-size: 10.5px; }
    .bl-board {
        left: 8px; right: 8px; top: 42px; width: auto; height: 20px; display: flex;
    }
    .bl-board .row {
        width: calc((100% - 5 * 4px) / 6); height: 20px; padding: 0 4px; justify-content: center; gap: 3px; font-size: 10px;
        transform: translateX(calc(var(--r, 0) * (100% + 4px)));
    }
    .bl-board .row .nm { display: none; }
    .bl-caster img { width: 72px; height: 72px; }
    .bl-caster .say { margin-bottom: 6px; max-width: calc(100vw - 130px); font-size: 11.5px; padding: 6px 10px; }
    .bl-ball .ev { font-size: 10px; padding: 2px 7px; }
    .bl-taphint { font-size: 10.5px; }
    .bl-timer { font-size: 31px; }
    .bl-center { top: 41%; }
    .bl-ball .tag small { display: none; }
    .bl-head .hash { display: none; }
    .bl-snap { width: 210px; } .bl-snap .pic { height: 150px; } .bl-snap .pb { width: 58px; }
    .bl-snap.mini { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
    .bl-ball .medal { width: 24px; height: 24px; margin-left: -12px; font-size: 12px; }
    .bl-ball.winner .medal { width: 30px; height: 30px; margin-left: -15px; font-size: 15px; }
    .bl-stage[data-phase="done"] .bl-caster { opacity: 0; transition: opacity .3s; }

    .bl-extras { margin-top: 12px; padding: 12px 14px 16px; }
    .bl-extras .mk-ext { grid-template-columns: 1fr 1fr; }
    .bl-extras .mk-b.photo { grid-column: 1 / -1; }
}

html.is-lite :is(.bl-caster img, .bl-ball .burn, .bl-ball .pad::after, .bl-pylon .lamp, .bl-sign .face::before, .bl-beam.on) { animation: none; }
html.is-lite .bl-clouds .bl-cloud { filter: none; }
html.is-lite .bl-ball .burn { filter: none; mix-blend-mode: normal; }
html.is-lite .bl-ring, html.is-lite .bl-result { backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) {
    .bl-stage.shake, .bl-ball .body, .bl-caster img, .bl-sign, .bl-sign .face, .bl-sign .face::before, .bl-pylon .lamp { animation: none !important; }
}

@media (max-width: 760px) {
    .bl-slip { display: none; }
}
@media (max-width: 720px) {

    .dock .dock-main:has(.bl-dock-picks) .info { display: none; }

    .bl-dock-picks button { min-height: 50px; }
}

.is-wait .mk-c:disabled, .is-wait .mk-b:disabled, .is-wait .bl-dock-picks button:disabled { filter: none; }

.bl-stage > .brandmark { z-index: 5; }
@media (max-width: 760px) {

    .bl-stage > .brandmark { top: 3.5%; bottom: auto; }
}
