/* BASC Lotto draw show (draw-show 20261122). Used by the home page and /draws. */
@font-face {
    font-family: 'BL Draw Mono';
    src: url('/fonts/JetBrainsMono-Bold.ttf') format('truetype');
    font-weight: 700 800;
    font-display: swap;
}
html.bl-ds-open, html.bl-ds-open body { overflow: hidden; }

.bl-ds {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: radial-gradient(60% 50% at 50% 30%, rgba(80, 40, 160, 0.35), transparent 70%), rgba(3, 5, 18, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: bl-ds-fade 0.3s ease;
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #fff6ea;
    text-align: center;
    line-height: 1.4;
}
@keyframes bl-ds-fade { from { opacity: 0; } to { opacity: 1; } }
.bl-ds *, .bl-ds *::before, .bl-ds *::after { box-sizing: border-box; }

.bl-ds > .bl-ds-box {
    position: relative;
    margin: auto !important;
    flex-shrink: 0;
    width: min(100%, 560px);
    max-height: none !important;
    padding: clamp(14px, 3.4vw, 26px);
    border-radius: 22px;
    overflow: hidden;
    background: radial-gradient(80% 40% at 50% 0%, rgba(153, 69, 255, 0.24), transparent 70%), linear-gradient(160deg, #141b4d 0%, #1a1440 55%, #20153a 100%);
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 34px rgba(255, 200, 60, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: bl-ds-in 0.45s cubic-bezier(.2, .8, .2, 1);
}
@keyframes bl-ds-in { from { transform: translateY(18px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.bl-ds-box.is-flash::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.42), transparent 60%);
    animation: bl-ds-flash 0.45s ease-out forwards;
}
@keyframes bl-ds-flash { from { opacity: 1; } to { opacity: 0; } }
.bl-ds-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

.bl-ds-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bl-ds-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #ffe28a;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bl-ds-badge > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bl-ds-badge i { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #9945ff; box-shadow: 0 0 8px #9945ff; }
.bl-ds-badge.is-live i { background: #ff4d5e; box-shadow: 0 0 8px #ff4d5e; animation: bl-ds-live 1.2s ease-in-out infinite; }
@keyframes bl-ds-live { 50% { opacity: 0.25; } }
.bl-ds-tools { display: flex; gap: 6px; flex: 0 0 auto; }
.bl-ds-tool {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 246, 234, 0.85);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}
.bl-ds-tool[aria-pressed="true"] { border-color: #14f195; color: #8ff7c6; }
.bl-ds-x { width: 32px; padding: 0; font-size: 1.25rem; }
.bl-ds-tool:focus-visible, .bl-ds-btn:focus-visible { outline: 2px solid #00c2ff; outline-offset: 2px; }

.bl-ds-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 6px; }
.bl-ds-main, .bl-ds-side { min-width: 0; }
.bl-ds-title {
    margin: 10px 0 2px;
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    font-weight: 900;
    line-height: 1.15;
    color: #ffc24a;
    text-wrap: balance;
    text-shadow: 0 0 18px rgba(255, 194, 74, 0.25);
}
.bl-ds-sub { margin: 0; font-size: 0.88rem; color: rgba(255, 226, 180, 0.72); }

.bl-ds-reels { display: flex; justify-content: center; gap: clamp(8px, 2.4vw, 14px); margin: 16px 0 8px; }
.bl-ds-reel {
    position: relative;
    width: clamp(66px, 19vw, 96px);
    height: clamp(90px, 25vw, 124px);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #0b0f2a, #161c48 50%, #0b0f2a);
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: inset 0 10px 18px rgba(0, 0, 0, 0.6), inset 0 -10px 18px rgba(0, 0, 0, 0.6);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.bl-ds-reel::before, .bl-ds-reel::after { content: ""; position: absolute; left: 0; right: 0; height: 26%; z-index: 2; pointer-events: none; }
.bl-ds-reel::before { top: 0; background: linear-gradient(180deg, rgba(8, 10, 30, 0.95), transparent); }
.bl-ds-reel::after { bottom: 0; background: linear-gradient(0deg, rgba(8, 10, 30, 0.95), transparent); }
.bl-ds-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.bl-ds-strip b {
    display: grid;
    place-items: center;
    height: clamp(90px, 25vw, 124px);
    font-family: 'BL Draw Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-weight: 800;
    font-size: clamp(2.9rem, 12vw, 4.4rem);
    line-height: 1;
    color: #fff;
}
.bl-ds-reel.is-done {
    border-color: #ffc24a;
    box-shadow: inset 0 10px 18px rgba(0, 0, 0, 0.6), inset 0 -10px 18px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 194, 74, 0.55);
}
.bl-ds-reel.is-done b { color: #ffe28a; text-shadow: 0 0 16px rgba(255, 194, 74, 0.7); }
.bl-ds-reel.is-thump { animation: bl-ds-thump 0.35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bl-ds-thump { from { transform: scale(1.12); } to { transform: none; } }

.bl-ds-inplay { margin: 4px 0 8px; min-height: 2.7em; }
.bl-ds-inplay strong { display: block; font-size: 1.02rem; font-weight: 900; }
.bl-ds-inplay em {
    font-style: normal;
    font-family: 'BL Draw Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 1.3rem;
    background: linear-gradient(90deg, #9945ff, #00c2ff, #14f195);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bl-ds-inplay-sub { display: block; font-size: 0.84rem; color: rgba(255, 226, 180, 0.7); }
.bl-ds-inplay.is-nodata strong { visibility: hidden; }
.bl-ds-you {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    background: rgba(20, 241, 149, 0.12);
    border: 1px solid rgba(20, 241, 149, 0.55);
    color: #8ff7c6;
}
.bl-ds-you[hidden] { display: none; }
.bl-ds-you.is-out { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 226, 180, 0.7); }

.bl-ds-grid {
    display: grid;
    grid-template-columns: repeat(var(--bl-ds-cols-m, 30), minmax(0, 1fr));
    gap: 2px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.bl-ds-grid span {
    aspect-ratio: 1;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.6s ease, box-shadow 0.6s ease;
}
.bl-ds-grid span.is-sold { background: linear-gradient(135deg, #9945ff, #00c2ff); }
.bl-ds-grid span.is-mine { background: #14f195; box-shadow: 0 0 6px #14f195; }
.bl-ds-grid span.is-out { opacity: 0.12; transform: scale(0.6); }
.bl-ds-grid span.is-hit { position: relative; z-index: 2; opacity: 1; border-radius: 50%; background: #ffc24a; box-shadow: 0 0 10px #ffc24a, 0 0 22px #ffc24a; transform: scale(1.9); }
.bl-ds-grid span.is-hit.is-miss { background: #a66bff; box-shadow: 0 0 10px #a66bff, 0 0 22px #a66bff; }
.bl-ds-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 8px; font-size: 0.74rem; color: rgba(255, 226, 180, 0.7); }
.bl-ds-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: rgba(255, 255, 255, 0.14); }
.bl-ds-legend i.is-sold { background: linear-gradient(135deg, #9945ff, #00c2ff); }
.bl-ds-legend i.is-mine { background: #14f195; }

.bl-ds-final { display: grid; justify-items: center; gap: 8px; margin-top: 6px; animation: bl-ds-rise 0.6s cubic-bezier(.2, .8, .2, 1); }
.bl-ds-final[hidden] { display: none; }
@keyframes bl-ds-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.bl-ds-ball {
    width: clamp(78px, 22vw, 100px);
    height: clamp(78px, 22vw, 100px);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'BL Draw Mono', ui-monospace, Menlo, Consolas, monospace;
    font-weight: 800;
    font-size: clamp(1.5rem, 6vw, 1.95rem);
    color: #1b1030;
    background: radial-gradient(circle at 32% 28%, #fff 0 10%, #fff0b8 26%, #ffc24a 58%, #a35c06 100%);
    box-shadow: 0 0 34px rgba(255, 194, 74, 0.7);
    animation: bl-ds-pop 0.7s cubic-bezier(.2, 1.6, .4, 1);
}
.bl-ds-ball.is-miss { color: #fff; background: radial-gradient(circle at 32% 28%, #fff 0 8%, #d7b8ff 24%, #9945ff 60%, #3a1477 100%); box-shadow: 0 0 34px rgba(153, 69, 255, 0.7); }
@keyframes bl-ds-pop { from { transform: scale(0.2) rotate(-200deg); } to { transform: none; } }
.bl-ds-head { margin: 4px 0 0; font-size: clamp(1.35rem, 5vw, 1.8rem); font-weight: 900; line-height: 1.15; }
.bl-ds-amount {
    font-size: clamp(2rem, 8.5vw, 2.9rem);
    font-weight: 900;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    color: #ffe28a;
    text-shadow: 0 0 22px rgba(255, 194, 74, 0.45);
}
.bl-ds-amount small { margin-left: 6px; font-size: 0.42em; color: #ffc24a; }
.bl-ds-amount.is-roll { color: #7fd8ff; text-shadow: 0 0 22px rgba(0, 194, 255, 0.4); }
.bl-ds-amount.is-roll small { color: #b993ff; }
.bl-ds-wallet {
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'BL Draw Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    color: #ffe28a;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.35);
    overflow-wrap: anywhere;
}
.bl-ds-note { margin: 0; max-width: 46ch; font-size: 0.88rem; color: rgba(255, 226, 180, 0.75); }
.bl-ds-note.is-claim { color: #8ff7c6; font-weight: 700; }
/* Claim hint: a clear pill, not muted body text. */
.bl-ds-note.bl-ds-hint {
    max-width: 44ch;
    padding: 8px 14px;
    border-radius: 14px;
    background: rgba(20, 241, 149, 0.12);
    border: 1px solid rgba(20, 241, 149, 0.5);
    color: #e9fff4;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 0 18px rgba(20, 241, 149, 0.12);
}
.bl-ds-hint strong { color: #ffffff; font-weight: 900; }
.bl-ds-hint .bl-ds-hint-date { color: #ffd979; font-weight: 800; white-space: nowrap; }
.bl-ds-note.bl-ds-hint.is-paid { color: #b9fbd9; font-weight: 800; background: rgba(20, 241, 149, 0.16); border-color: rgba(20, 241, 149, 0.7); }
.bl-ds-note.bl-ds-hint.is-claim { background: rgba(20, 241, 149, 0.18); border-color: rgba(20, 241, 149, 0.75); color: #f2fff8; }
.bl-ds-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.bl-ds-btn {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #ffd27a, #ff9a2e);
    color: #1b1030;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}
.bl-ds-btn.is-ghost { background: transparent; color: #fff6ea; border-color: rgba(255, 255, 255, 0.28); }
/* Keep the site's global purple button:hover out of the show. */
.bl-ds-btn:hover { background: linear-gradient(135deg, #ffe09a, #ffae4d); transform: translateY(-1px); }
.bl-ds-btn.is-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.bl-ds-btn.is-claim {
    flex: 1 0 100%;
    min-height: 50px;
    border-color: rgba(134, 239, 172, 0.75);
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.45);
    animation: bl-ds-claim 1.8s ease-in-out infinite;
}
.bl-ds-btn.is-claim:hover { background: linear-gradient(135deg, #22c55e, #4ade80); }
@keyframes bl-ds-claim { 50% { box-shadow: 0 0 34px rgba(34, 197, 94, 0.75); } }
.bl-ds-tool:hover { background: rgba(255, 255, 255, 0.12); transform: none; }
.bl-ds-extra { display: grid; gap: 8px; margin-top: 12px; text-align: left; }
.bl-ds-extra[hidden] { display: none; }

.bl-ds-bingo {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.85), rgba(4, 120, 87, 0.9));
    border: 1px solid rgba(110, 231, 183, 0.7);
    color: #ecfdf5;
    font-size: 0.88rem;
}
.bl-ds-bingo strong { color: #d1fae5; font-weight: 900; }

/* Phones and tablets in portrait: one column; at the finale the ticket map steps aside. */
@media (max-width: 899px) {
    .bl-ds-box.is-final .bl-ds-side,
    .bl-ds-box.is-final .bl-ds-inplay { display: none; }
}
@media (max-width: 360px) {
    .bl-ds-tool:not(.bl-ds-x) { padding: 0 9px; font-size: 0.68rem; }
    .bl-ds-badge { font-size: 0.62rem; letter-spacing: 0.1em; }
    .bl-ds-badge-x { display: none; }
}

/* Laptops and big screens: show on the left, ticket map on the right. */
@media (min-width: 900px) {
    .bl-ds > .bl-ds-box { width: min(100%, 1000px); padding: 26px 28px 28px; }
    .bl-ds-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 28px; align-items: center; }
    .bl-ds-grid { grid-template-columns: repeat(var(--bl-ds-cols-d, 21), minmax(0, 1fr)); gap: 3px; padding: 12px; }
    .bl-ds-box.is-final .bl-ds-inplay { display: none; }
    .bl-ds-reels { margin: 18px 0 10px; }
}
@media (min-width: 900px) and (max-height: 760px) {
    .bl-ds-reel { height: 96px; width: 78px; }
    .bl-ds-strip b { height: 96px; font-size: 3.4rem; }
    .bl-ds-title { margin-top: 6px; }
    .bl-ds-box.is-final .bl-ds-reels { margin: 10px 0 4px; }
}
@media (min-width: 1500px) and (min-height: 860px) {
    .bl-ds > .bl-ds-box { width: min(100%, 1160px); padding: 32px 36px 34px; }
    .bl-ds-title { font-size: 2.1rem; }
    .bl-ds-reel { width: 112px; height: 144px; }
    .bl-ds-strip b { height: 144px; font-size: 5rem; }
    .bl-ds-ball { width: 116px; height: 116px; font-size: 2.2rem; }
    .bl-ds-amount { font-size: 3.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bl-ds, .bl-ds > .bl-ds-box, .bl-ds-final, .bl-ds-ball, .bl-ds-reel.is-thump, .bl-ds-badge.is-live i, .bl-ds-btn.is-claim { animation: none; }
    .bl-ds-grid span { transition: none; }
}

/* Replay show buttons outside the modal (Last Winner, Winners History, /draws). */
.bl-replay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.55);
    background: linear-gradient(135deg, rgba(255, 210, 122, 0.18), rgba(153, 69, 255, 0.22));
    color: #ffe28a;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bl-replay-btn::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.bl-replay-btn:hover { background: linear-gradient(135deg, rgba(255, 210, 122, 0.28), rgba(153, 69, 255, 0.32)); transform: translateY(-1px); box-shadow: 0 0 16px rgba(255, 194, 74, 0.35); }
.bl-replay-btn:focus-visible { outline: 2px solid #00c2ff; outline-offset: 2px; }
/* === end draw-show 20261122 === */

/* ================= Burn ceremony (burn-show 20261122) ================= */
.bl-ds.bl-bs { background: radial-gradient(60% 50% at 50% 70%, rgba(255, 90, 20, 0.28), transparent 70%), rgba(8, 3, 6, 0.84); }
.bl-ds > .bl-ds-box.bl-bs-box {
    width: min(100%, 500px);
    padding: clamp(16px, 3.6vw, 26px);
    border-color: rgba(255, 140, 40, 0.65);
    background: radial-gradient(90% 55% at 50% 100%, rgba(255, 80, 20, 0.28), transparent 70%), radial-gradient(70% 40% at 50% 0%, rgba(255, 170, 60, 0.12), transparent 70%), linear-gradient(170deg, #1d0f1f 0%, #2a1018 55%, #1a0a12 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 110, 30, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.bl-bs-fire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.bl-bs-box > .bl-ds-top, .bl-bs-stage { position: relative; z-index: 1; }
.bl-bs-badge { color: #ffc58a; background: rgba(255, 110, 30, 0.14); border-color: rgba(255, 140, 40, 0.55); }
.bl-bs-badge i { background: #ff6a1a; box-shadow: 0 0 10px #ff6a1a; animation: bl-ds-live 1.1s ease-in-out infinite; }
.bl-bs-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; }
.bl-bs-title { color: #ffb347; text-shadow: 0 0 22px rgba(255, 120, 30, 0.45); }
.bl-bs-stage .bl-ds-sub { max-width: 40ch; color: rgba(255, 220, 190, 0.8); }

.bl-bs-coin {
    --heat: 0;
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(108px, 30vw, 132px);
    height: clamp(108px, 30vw, 132px);
    margin: 10px 0 2px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff6c8 0%, #ffd45a 28%, #f0a321 62%, #b8660c 100%);
    box-shadow: 0 0 calc(24px + var(--heat) * 50px) rgba(255, calc(190 - var(--heat) * 110), 40, calc(0.45 + var(--heat) * 0.45)), inset 0 -8px 18px rgba(120, 50, 0, 0.45), inset 0 6px 14px rgba(255, 255, 255, 0.45);
    transition: transform 0.9s cubic-bezier(.4, 0, .2, 1), opacity 0.9s ease, filter 0.9s ease;
}
.bl-bs-coin::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px dashed rgba(120, 60, 0, 0.45);
}
.bl-bs-coin::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 85%, rgba(255, 60, 0, 0.9), rgba(60, 10, 0, 0.85) 60%, rgba(20, 5, 0, 0.9));
    opacity: calc(var(--heat) * 0.55);
    mix-blend-mode: multiply;
}
.bl-bs-coin span {
    position: relative;
    z-index: 1;
    font-family: 'BL Draw Mono', ui-monospace, Menlo, Consolas, monospace;
    font-weight: 800;
    font-size: clamp(1.05rem, 4.4vw, 1.3rem);
    color: #6b3505;
    text-shadow: 0 1px 0 rgba(255, 240, 200, 0.7);
}
.bl-bs-box.is-burning .bl-bs-coin { --heat: 1; animation: bl-bs-shake 0.16s linear infinite; }
@keyframes bl-bs-shake {
    0% { transform: translate(0, 0) rotate(0); }
    25% { transform: translate(-2px, 1px) rotate(-2deg); }
    50% { transform: translate(1px, -2px) rotate(1deg); }
    75% { transform: translate(2px, 1px) rotate(2deg); }
    100% { transform: translate(0, 0) rotate(0); }
}
.bl-bs-box.is-done .bl-bs-coin { animation: none; transform: scale(0.15) translateY(-40px); opacity: 0; filter: blur(6px) brightness(2); }

.bl-bs-amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.bl-bs-amount span {
    font-family: 'BL Draw Mono', ui-monospace, Menlo, Consolas, monospace;
    font-weight: 800;
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1;
    background: linear-gradient(180deg, #fff3b0, #ffb347 55%, #ff6a1a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(255, 120, 30, 0.45));
}
.bl-bs-amount small { color: #ffb347; font-weight: 800; font-size: 0.95rem; }
.bl-bs-coin.is-gone { display: none; }
.bl-bs-box.is-done .bl-bs-amount { margin-top: 10px; }
.bl-bs-box.is-done .bl-bs-amount span { animation: bl-bs-glow 1.6s ease-in-out infinite; }
@keyframes bl-bs-glow { 50% { filter: drop-shadow(0 0 26px rgba(255, 120, 30, 0.85)); } }

.bl-bs-facts { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 5px; font-size: 0.88rem; color: rgba(255, 232, 210, 0.9); text-align: left; }
.bl-bs-facts li { display: flex; align-items: center; gap: 8px; }
.bl-bs-facts li::before { content: "\1F525"; font-size: 0.82rem; }
.bl-bs-facts[hidden] { display: none; }
.bl-bs-status { margin: 0; min-height: 1.4em; max-width: 42ch; font-size: 0.9rem; font-weight: 700; color: #ffd2a6; }
.bl-bs-box.is-burning .bl-bs-status { animation: bl-bs-pulse 1.2s ease-in-out infinite; }
@keyframes bl-bs-pulse { 50% { opacity: 0.55; } }
.bl-bs-after { display: grid; gap: 6px; justify-items: center; }
.bl-bs-after[hidden] { display: none; }
.bl-bs-total { margin: 0; font-size: 0.95rem; color: rgba(255, 232, 210, 0.9); }
.bl-bs-total strong { font-family: 'BL Draw Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; color: #ffcf6b; font-variant-numeric: tabular-nums; }
.bl-bs-tx { font-size: 0.84rem; color: #9fd8ff; text-decoration: none; border-bottom: 1px dashed rgba(159, 216, 255, 0.5); }
.bl-bs-tx:hover { color: #d2ecff; }

.bl-bs-actions { width: 100%; margin-top: 4px; }
.bl-bs-hold {
    --p: 0;
    position: relative;
    flex: 1 0 100%;
    min-height: 58px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(255, 150, 60, 0.8);
    background: linear-gradient(135deg, #5a1408, #8a1f0a);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 0 22px rgba(255, 90, 20, 0.35);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.bl-bs-hold:hover { background: linear-gradient(135deg, #6a180a, #9a240c); transform: none; }
.bl-bs-hold.is-holding { transform: scale(0.98); box-shadow: 0 0 40px rgba(255, 120, 30, 0.7); }
.bl-bs-hold:focus-visible { outline: 2px solid #ffd27a; outline-offset: 3px; }
.bl-bs-hold-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--p) * 100%);
    background: linear-gradient(90deg, #ff3d00, #ff8a00 60%, #ffd23f);
    box-shadow: 0 0 18px rgba(255, 160, 40, 0.8);
}
.bl-bs-hold-text { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.bl-bs-hold-text::before { content: "\1F525  "; }
.bl-bs-box .bl-ds-btn.is-ghost { background: rgba(24, 8, 12, 0.78); }
.bl-bs-box .bl-ds-btn.is-ghost:hover { background: rgba(48, 16, 20, 0.85); }
.bl-bs-status, .bl-bs-total, .bl-bs-tx, .bl-bs-hint { text-shadow: 0 1px 4px rgba(10, 2, 4, 0.9); }
.bl-bs-hint { color: rgba(255, 220, 190, 0.65); font-size: 0.78rem; }
.bl-bs-hint[hidden] { display: none; }
.bl-bs-box.is-wait .bl-bs-title { color: #ffd27a; }
.bl-bs-box.is-error .bl-bs-title { color: #ff8a8a; }
.bl-bs-box.is-error .bl-bs-status { color: #ffb4b4; font-weight: 500; }
.bl-bs-box.is-wait .bl-bs-status { color: #ffe3b0; font-weight: 500; }
@media (max-width: 360px) {
    .bl-bs-facts { font-size: 0.82rem; }
    .bl-bs-hold { font-size: 0.9rem; letter-spacing: 0.06em; }
}
@media (prefers-reduced-motion: reduce) {
    .bl-bs-badge i, .bl-bs-box.is-burning .bl-bs-coin, .bl-bs-box.is-burning .bl-bs-status, .bl-bs-box.is-done .bl-bs-amount span { animation: none; }
    .bl-bs-coin { transition: none; }
}

/* ================= Speaker switch (sound 20261122) ================= */
.bl-sound-btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
    color: #ffe6a8;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bl-sound-btn svg { width: 18px; height: 18px; display: block; }
.bl-sound-btn:hover { background: rgba(255, 255, 255, 0.14); transform: none; }
.bl-sound-btn.is-off { color: rgba(255, 255, 255, 0.55); }
.bl-sound-btn:focus-visible { outline: 2px solid #00c2ff; outline-offset: 2px; }
.bl-ds-tool.bl-ds-snd { width: 32px; min-height: 32px; height: 32px; padding: 0; }
.bl-cd-snd { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(10, 12, 30, 0.45); }
@media (max-width: 480px) {
    .bl-cd-snd { top: 10px; right: 10px; width: 32px; height: 32px; }
}

/* ================= Purchased tickets reveal (tickets-show 20261122) ================= */
.bl-ds.bl-ts { background: radial-gradient(60% 50% at 50% 30%, rgba(20, 241, 149, 0.16), transparent 70%), radial-gradient(50% 40% at 50% 80%, rgba(153, 69, 255, 0.22), transparent 70%), rgba(3, 5, 18, 0.84); }
.bl-ts-badge { color: #b9fbd9; background: rgba(20, 241, 149, 0.12); border-color: rgba(20, 241, 149, 0.55); }
.bl-ts-badge i { background: #14f195; box-shadow: 0 0 10px #14f195; }
.bl-ts-stage { position: relative; display: flex; justify-content: center; margin: 16px 0 12px; perspective: 900px; }

.bl-ts-card {
    --notch: 13px;
    position: relative;
    width: min(100%, 330px);
    padding: 12px 22px 12px;
    border-radius: 14px;
    overflow: hidden;
    color: #2a1600;
    background: linear-gradient(125deg, #fff1bd 0%, #ffd56b 30%, #ffc24a 55%, #ff9f2e 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 34px rgba(255, 194, 74, 0.3);
    -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle var(--notch) at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
    transform-style: preserve-3d;
}
.bl-ts-card.is-next { animation: bl-ts-deal 0.42s cubic-bezier(.2, .9, .25, 1.15); }
@keyframes bl-ts-deal { from { transform: translateY(26px) rotateX(38deg) scale(0.92); opacity: 0.3; } to { transform: none; opacity: 1; } }
.bl-ts-card-head, .bl-ts-card-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.bl-ts-card-head { padding-bottom: 8px; border-bottom: 2px dashed rgba(60, 30, 0, 0.35); }
.bl-ts-card-foot { padding-top: 8px; border-top: 2px dashed rgba(60, 30, 0, 0.35); font-weight: 800; letter-spacing: 0.06em; text-transform: none; color: rgba(42, 22, 0, 0.78); }
.bl-ts-brand { color: #5b2a00; }
.bl-ts-round { color: #7a3b00; }
.bl-ts-reels { display: flex; justify-content: center; gap: 8px; margin: 12px 0; }
.bl-ts-reel {
    position: relative;
    width: clamp(52px, 15vw, 64px);
    height: clamp(68px, 19vw, 82px);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #0b0f2a, #1a1650 50%, #0b0f2a);
    box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.65), inset 0 -8px 14px rgba(0, 0, 0, 0.65), 0 2px 0 rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.25s ease;
}
.bl-ts-reel::before, .bl-ts-reel::after { content: ""; position: absolute; left: 0; right: 0; height: 24%; z-index: 2; pointer-events: none; }
.bl-ts-reel::before { top: 0; background: linear-gradient(180deg, rgba(8, 10, 30, 0.95), transparent); }
.bl-ts-reel::after { bottom: 0; background: linear-gradient(0deg, rgba(8, 10, 30, 0.95), transparent); }
.bl-ts-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.bl-ts-strip b {
    display: grid;
    place-items: center;
    height: clamp(68px, 19vw, 82px);
    font-family: 'BL Draw Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-weight: 800;
    font-size: clamp(2.3rem, 9vw, 2.9rem);
    line-height: 1;
    color: #fff;
}
.bl-ts-reel.is-done, .bl-ts-card.is-stamped .bl-ts-reel { box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.65), inset 0 -8px 14px rgba(0, 0, 0, 0.65), 0 0 0 2px #14f195, 0 0 16px rgba(20, 241, 149, 0.6); }
.bl-ts-reel.is-done b, .bl-ts-card.is-stamped .bl-ts-reel b { color: #b9fbd9; text-shadow: 0 0 14px rgba(20, 241, 149, 0.75); }
.bl-ts-stamp {
    position: absolute;
    right: 16px;
    bottom: 7px;
    z-index: 3;
    padding: 3px 9px;
    border: 3px solid #0b7a43;
    border-radius: 8px;
    color: #0b7a43;
    background: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: rotate(-7deg) scale(2.2);
}
.bl-ts-card.is-stamped .bl-ts-stamp { opacity: 0.95; transform: rotate(-7deg) scale(1); transition: transform 0.22s cubic-bezier(.3, 1.6, .5, 1), opacity 0.12s ease; }
.bl-ts-card-foot span:last-child { transition: opacity 0.15s ease; }
.bl-ts-card.is-stamped .bl-ts-card-foot span:last-child { opacity: 0; }
.bl-ts-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 48%, transparent 60%); transform: translateX(-120%); }
.bl-ts-card.is-stamped .bl-ts-shine { animation: bl-ts-shine 0.9s ease-out; }
@keyframes bl-ts-shine { to { transform: translateX(120%); } }

.bl-ts-trayhead { display: flex; justify-content: space-between; align-items: baseline; max-width: 420px; margin: 0 auto 6px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 226, 180, 0.75); }
.bl-ts-trayhead b { font-family: 'BL Draw Mono', ui-monospace, Menlo, Consolas, monospace; color: #8ff7c6; letter-spacing: 0; font-size: 0.9rem; }
.bl-ts-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 420px; min-height: 34px; margin: 0 auto; padding: 8px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.06); }
.bl-ts-chip, .bl-ts-fly {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 7px;
    font-family: 'BL Draw Mono', ui-monospace, Menlo, Consolas, monospace;
    font-weight: 800;
    font-size: 0.88rem;
    color: #2a1600;
    background: linear-gradient(125deg, #fff1bd, #ffc24a 60%, #ff9f2e);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.35);
}
.bl-ts-chip.is-pop { animation: bl-ts-pop 0.38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bl-ts-pop { from { transform: scale(0.4); opacity: 0.4; } to { transform: none; opacity: 1; } }
.bl-ts-fly { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; box-shadow: 0 0 22px rgba(255, 194, 74, 0.85); }
.bl-ts-skip { display: block; margin: 10px auto 0; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: rgba(255, 246, 234, 0.8); font: inherit; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.bl-ts-skip:hover { background: rgba(255, 255, 255, 0.12); transform: none; }
.bl-ts-skip[hidden] { display: none; }

.bl-ts-grid span.is-sold { background: linear-gradient(135deg, rgba(153, 69, 255, 0.7), rgba(0, 194, 255, 0.7)); }
.bl-ts-grid span.is-mine-old { background: rgba(20, 241, 149, 0.45); }
.bl-ts-grid span.is-new { position: relative; z-index: 2; background: #14f195; box-shadow: 0 0 8px #14f195; transform: scale(1.3); border-radius: 3px; }
.bl-ts-grid span.is-ping { animation: bl-ts-ping 0.85s ease-out; }
@keyframes bl-ts-ping { 0% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.95), 0 0 8px #14f195; transform: scale(2.2); } 100% { box-shadow: 0 0 0 14px rgba(20, 241, 149, 0), 0 0 8px #14f195; transform: scale(1.3); } }
.bl-ts .bl-ds-legend i.is-new { background: #14f195; box-shadow: 0 0 6px #14f195; }
.bl-ts .bl-ds-legend i.is-mine-old { background: rgba(20, 241, 149, 0.45); }
.bl-ts .bl-ds-legend i.is-sold { background: linear-gradient(135deg, rgba(153, 69, 255, 0.7), rgba(0, 194, 255, 0.7)); }
.bl-ts-soldline { margin: 6px 0 0; font-size: 0.76rem; color: rgba(255, 226, 180, 0.6); }

.bl-ts-final { margin-top: 12px; }
.bl-ts-odds { display: grid; justify-items: center; gap: 2px; }
.bl-ts-odds-num { font-family: 'BL Draw Mono', ui-monospace, Menlo, Consolas, monospace; font-size: clamp(2.2rem, 9vw, 2.8rem); font-weight: 800; line-height: 1; color: #8ff7c6; text-shadow: 0 0 22px rgba(20, 241, 149, 0.45); }
.bl-ts-odds-num small { margin-left: 2px; font-size: 0.55em; color: #14f195; }
.bl-ts-odds-label { font-size: 0.84rem; font-weight: 800; color: #fff6ea; }
.bl-ts-odds-sub { max-width: 44ch; font-size: 0.78rem; color: rgba(255, 226, 180, 0.7); }
.bl-ds-note.bl-ds-hint.bl-ts-when { color: #ffe9b8; font-weight: 700; }
.bl-ts-box.is-final .bl-ts-stage { margin: 10px 0 8px; }

@media (max-width: 899px) {
    .bl-ts-box.is-final .bl-ds-side { display: block; }
    .bl-ts .bl-ds-side { max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (min-width: 900px) {
    .bl-ts .bl-ds-cols { align-items: start; }
    .bl-ts .bl-ds-side { margin-top: 18px; }
}
@media (max-width: 360px) {
    .bl-ts-card { padding: 10px 16px; }
    .bl-ts-stamp { right: 10px; font-size: 0.68rem; }
    .bl-ts-chip { font-size: 0.8rem; padding: 0 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .bl-ts-card.is-next, .bl-ts-chip.is-pop, .bl-ts-grid span.is-ping, .bl-ts-card.is-stamped .bl-ts-shine { animation: none; }
    .bl-ts-card.is-stamped .bl-ts-stamp { transition: none; }
}

/* clarity 20261122: Close turns reddish on hover. */
.bl-ds-btn.is-close { transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease; }
.bl-ds-btn.is-close:hover,
.bl-ds-btn.is-ghost.is-close:hover,
.bl-bs-box .bl-ds-btn.is-close:hover {
    background: linear-gradient(135deg, #ff5a5f, #d7263d);
    border-color: rgba(255, 150, 150, 0.85);
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 77, 94, 0.45);
}
.bl-ds-tool.bl-ds-x:hover { background: rgba(255, 77, 94, 0.28); border-color: rgba(255, 130, 140, 0.9); color: #fff; }
