/*
 * 🛒 live-buy 2.0.0 — the buy sheet in the light design (2026-12-03, board "QR15").
 * White sheet with a handle · EN VIVO strip · the product with its price + "Ahorras" ·
 * the QR inside a red ring that empties with the clock (--ring, set by live-app.js) ·
 * "¡APÚRATE, SE TE ESCAPA!" in the last 15 s (CSS :has, no JS) · 3 steps · "dejar mi lugar".
 * Replaces live-buy_1-0-0.css (kept for rollback). No inline styles (CSP).
 */

html.cs-lv-noscroll,
html.cs-lv-noscroll body {
    overflow: hidden;
}

#cshow-live.cs-screen .cs-lv-hidden-link { display: none; }

/* ---------------------------------------------------------------- frame */

#cshow-live.cs-screen .cs-lv-sheet-wrap {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

#cshow-live.cs-screen .cs-lv-sheet-wrap .cs-lv-sheet-back {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 22, 0.55);
    animation: cs-fade-in 0.2s ease-out;
}

#cshow-live.cs-screen .cs-lv-sheet-wrap .cs-lv-sheet {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 94vh;
    max-height: 94dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #FFFFFF;
    color: var(--lv-ink);
    box-shadow: 0 -16px 40px rgba(20, 20, 22, 0.25);
    animation: cs-lv-slide-up 0.25s ease-out;
}

#cshow-live.cs-screen .cs-lv-sheet-wrap .cs-lv-sheet.is-win { overflow: hidden; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-grab {
    display: block;
    width: 44px;
    height: 5px;
    margin: 0 auto 8px;
    border-radius: 3px;
    background: #D4D4DA;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-strip .cs-lv-onair { font-size: 13px; padding: 4px 9px; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-x {
    width: 38px;
    height: 38px;
    border: 1px solid var(--lv-line);
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--lv-ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-in {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
}

/* ---------------------------------------------------------------- the product card */

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-prod {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--lv-line);
    border-radius: 14px;
    background: var(--lv-soft);
    text-align: left;
    font-size: 14px;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-prod img,
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-prod .cs-lv-sheet-prod-none {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #FFFFFF;
    object-fit: contain;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-prod-txt { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-prod-name {
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-cond { color: var(--lv-dim); font-size: 12px; font-weight: 600; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-cond.is-used { color: var(--lv-used); font-weight: 800; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-prod-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-prod-price b { color: var(--lv-red); font-family: var(--lv-cond); font-size: 22px; font-weight: 800; line-height: 1; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-prod-price span.is-usd { color: var(--lv-dim); font-size: 13px; font-weight: 700; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-prod-price s { color: var(--lv-mute); font-size: 12px; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-save {
    flex: 0 0 auto;
    padding: 6px 8px;
    border: 1px solid var(--lv-green-line);
    border-radius: 10px;
    background: var(--lv-green-bg);
    color: var(--lv-green);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

/* ---------------------------------------------------------------- texts */

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-title {
    margin: 2px 0 0;
    font-family: var(--lv-cond);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-title.cs-lv-sheet-title-turn {
    color: var(--lv-red);
    font-size: 38px;
    animation: cs-pulse 0.8s ease-in-out 3;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-text { margin: 0; color: var(--lv-ink-2); font-size: 15px; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-text.cs-lv-sheet-good { color: var(--lv-green); font-weight: 800; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-text.cs-lv-sheet-strong { font-weight: 800; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-text.cs-lv-sheet-how { color: var(--lv-dim); font-size: 13px; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-small { margin: 0; color: var(--lv-dim); font-size: 13px; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-small b { color: var(--lv-ink); }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-note {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #F6C6C6;
    border-radius: 10px;
    background: #FFF4F4;
    color: var(--lv-red-2);
    font-size: 14px;
    font-weight: 700;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-amount { margin: 0; font-size: 18px; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-amount b { color: var(--lv-red); font-family: var(--lv-cond); font-size: 30px; font-weight: 800; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-clock-inline { font-size: inherit; color: var(--lv-red); }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-clock-inline .cs-lv-clock-icon { font-size: 22px; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-clock { justify-content: center; font-size: 40px; color: var(--lv-red); }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-kicker { margin: 6px 0 0; font-size: 18px; font-weight: 800; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-place {
    margin: 0;
    color: var(--lv-red);
    font-family: var(--lv-cond);
    font-size: 88px;
    font-weight: 800;
    line-height: 1;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-wait { margin: 18px 0; color: var(--lv-dim); font-weight: 700; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-tip { margin: 0; color: var(--lv-dim); font-size: 13px; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-tip.is-on {
    padding: 8px 10px;
    border: 1px solid #F1E3B5;
    border-radius: 10px;
    background: #FFFBEB;
    color: var(--lv-ink);
}

#cshow-live.cs-screen .cs-lv-spin {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: -3px;
    border: 3px solid #E4E4EA;
    border-top-color: var(--lv-red);
    border-radius: 50%;
    animation: cs-lv-spin 0.8s linear infinite;
}

/* ---------------------------------------------------------------- headline: calm → ¡APÚRATE! (last 15 s) */

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-head { display: flex; flex-direction: column; gap: 4px; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-urgent { display: none; color: var(--lv-red); }
#cshow-live.cs-screen .cs-lv-sheet:has(.cs-lv-clock.is-last15) .cs-lv-qr-urgent { display: block; animation: cs-pulse 0.9s ease-in-out infinite; }
#cshow-live.cs-screen .cs-lv-sheet:has(.cs-lv-clock.is-last15) .cs-lv-qr-calm { display: none; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-alert {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--lv-red);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-alert i { font-style: normal; }
#cshow-live.cs-screen .cs-lv-sheet:has(.cs-lv-clock.is-last15) .cs-lv-qr-alert { display: flex; animation: cs-lv-blink 0.7s ease-in-out infinite; }

/* ---------------------------------------------------------------- the QR in its ring */

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-wrap {
    position: relative;
    align-self: center;
    margin: 18px 0 4px;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-ring {
    --ring: 100%;
    padding: 6px;
    border-radius: 26px;
    background: conic-gradient(var(--lv-red) var(--ring), #ECECF1 0);
    box-shadow: 0 0 24px rgba(224, 11, 10, 0.25);
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr {
    position: relative;
    width: min(64vw, 220px);
    padding: 12px;
    border-radius: 20px;
    background: #FFFFFF;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr.is-wait { display: flex; align-items: center; justify-content: center; min-height: 196px; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr img {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr .cs-lv-qr-test {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 999px;
    background: #FF7A1A;
    color: #000000;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/* the clock pinned on top of the ring */
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-clock {
    position: absolute;
    top: -16px;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--lv-red);
    color: #FFFFFF;
    transform: translateX(-50%);
    box-shadow: 0 6px 16px rgba(224, 11, 10, 0.35);
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-clock .cs-lv-sheet-clock { font-size: 22px; color: #FFFFFF; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-clock .cs-lv-clock-icon { display: none; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-clock .cs-lv-clock.is-last10 { color: #FFFFFF; }

/* "5 personas esperan que se libere" */
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #F6C6C6;
    border-radius: 12px;
    background: #FFF4F4;
    font-size: 13px;
    text-align: left;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-line-left { color: var(--lv-dim); }

/* ---------------------------------------------------------------- the 3 steps */

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--lv-mute);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-step-n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ECECF1;
    color: var(--lv-dim);
    font-weight: 800;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-step.is-done { color: var(--lv-green); }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-step.is-done .cs-lv-step-n { background: var(--lv-green); color: #FFFFFF; }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-step.is-now { color: var(--lv-ink); }
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-step.is-now .cs-lv-step-n { background: var(--lv-red); color: #FFFFFF; animation: cs-pulse 1.2s ease-in-out infinite; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-qr-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    color: var(--lv-dim);
    font-size: 13px;
    font-weight: 600;
}

/* ---------------------------------------------------------------- buttons */

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--lv-line);
    border-radius: 14px;
    background: #FFFFFF;
    color: var(--lv-ink);
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sbtn:disabled { opacity: 0.6; cursor: default; }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sbtn.cs-lv-sbtn-main {
    min-height: 60px;
    border: 0;
    background: linear-gradient(180deg, var(--lv-red-hi) 0%, var(--lv-red) 55%, var(--lv-red-2) 100%);
    color: #FFFFFF;
    font-family: var(--lv-cond);
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(224, 11, 10, 0.35);
}

/* 💬 WhatsApp after a win: the one thing the winner MUST tap (owner 2026-12-03).
   Big green, bubble icon, 2 lines + arrow, it pumps, glows and a light sweeps across it. */
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sbtn.cs-lv-sbtn-wa {
    position: relative;
    justify-content: space-between;
    gap: 12px;
    min-height: 74px;
    overflow: hidden;
    padding: 10px 12px 10px 14px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #2EE674 0%, #25D366 50%, #1DA851 100%);
    color: #FFFFFF;
    text-align: left;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
    animation: cs-lv-wa-pump 1.6s ease-in-out infinite, cs-lv-wa-glow 1.6s ease-in-out infinite;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sbtn.cs-lv-sbtn-wa::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: cs-lv-sweep 2.6s ease-in-out infinite;
}

#cshow-live.cs-screen .cs-lv-sbtn-wa .cs-lv-wa-txt { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; }
#cshow-live.cs-screen .cs-lv-sbtn-wa .cs-lv-wa-txt b { font-family: var(--lv-cond); font-size: 23px; font-weight: 800; line-height: 1; letter-spacing: 0.02em; }
#cshow-live.cs-screen .cs-lv-sbtn-wa .cs-lv-wa-txt small { font-size: 13px; font-weight: 600; opacity: 0.95; }

#cshow-live.cs-screen .cs-lv-sbtn-wa .cs-lv-wa-go {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #FFFFFF;
    color: #1DA851;
    font-size: 26px;
    font-weight: 900;
    animation: cs-lv-wa-nudge 1.6s ease-in-out infinite;
}

#cshow-live.cs-screen .cs-lv-sbtn-wa .cs-lv-wa-ico { width: 40px; height: 40px; flex: 0 0 auto; }

/* "¡ÚLTIMO PASO! Sin este mensaje no podemos entregarte tu producto." */
#cshow-live.cs-screen .cs-lv-sheet .cs-lv-wa-step {
    margin: 4px 0 0;
    padding: 8px 10px;
    border: 1px solid var(--lv-green-line);
    border-radius: 12px;
    background: var(--lv-green-bg);
    color: var(--lv-ink);
    font-size: 14px;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-wa-step b { color: var(--lv-green); }

@keyframes cs-lv-wa-pump {
    0%, 100% { transform: scale(1); }
    12%      { transform: scale(1.04); }
    24%      { transform: scale(1); }
    36%      { transform: scale(1.025); }
    48%      { transform: scale(1); }
}

@keyframes cs-lv-wa-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.0), 0 8px 22px rgba(37, 211, 102, 0.40); }
    15%      { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0.30), 0 10px 30px rgba(37, 211, 102, 0.70); }
}

@keyframes cs-lv-wa-nudge {
    0%, 100% { transform: translateX(0); }
    15%      { transform: translateX(5px); }
    30%      { transform: translateX(0); }
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sbtn.cs-lv-sbtn-link {
    min-height: 40px;
    border: 0;
    background: transparent;
    color: var(--lv-dim);
    font-weight: 600;
    text-decoration: underline;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sbtn.cs-lv-sbtn-danger { border-color: var(--lv-red); color: var(--lv-red); }

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-ask {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--lv-line);
    border-radius: 14px;
    background: var(--lv-soft);
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-ask p { grid-column: 1 / -1; margin: 0; font-size: 14px; }

/* ---------------------------------------------------------------- ¡GANASTE! */

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-win-title {
    margin: 8px 0 0;
    color: var(--lv-green);
    font-family: var(--lv-cond);
    font-size: 56px;
    font-weight: 800;
    animation: cs-pulse 0.9s ease-in-out 3;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-code {
    align-self: center;
    margin: 0;
    padding: 6px 18px;
    border: 2px dashed var(--lv-green);
    border-radius: 12px;
    background: var(--lv-green-bg);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

#cshow-live.cs-screen .cs-lv-sheet .cs-lv-confetti {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit {
    position: absolute;
    top: -20px;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    animation-name: cs-lv-fall;
    animation-timing-function: linear;
    animation-iteration-count: 2;
    opacity: 0;
}

#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(1) { left: 37%; background: #FF1744; animation-delay: 0.7s; animation-duration: 2.05s; transform: rotate(47deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(2) { left: 74%; background: #FFE600; animation-delay: 0.4s; animation-duration: 2.30s; transform: rotate(94deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(3) { left: 11%; background: #00E676; animation-delay: 0.1s; animation-duration: 2.55s; transform: rotate(141deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(4) { left: 48%; background: #141416; animation-delay: 0.8s; animation-duration: 2.80s; transform: rotate(188deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(5) { left: 85%; background: #2E9BFF; animation-delay: 0.5s; animation-duration: 1.80s; transform: rotate(235deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(6) { left: 22%; background: #FFC83D; animation-delay: 0.2s; animation-duration: 2.05s; transform: rotate(282deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(7) { left: 59%; background: #FF1744; animation-delay: 0.9s; animation-duration: 2.30s; transform: rotate(329deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(8) { left: 96%; background: #FFE600; animation-delay: 0.6s; animation-duration: 2.55s; transform: rotate(16deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(9) { left: 33%; background: #00E676; animation-delay: 0.3s; animation-duration: 2.80s; transform: rotate(63deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(10) { left: 70%; background: #141416; animation-delay: 0.0s; animation-duration: 1.80s; transform: rotate(110deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(11) { left: 7%; background: #2E9BFF; animation-delay: 0.7s; animation-duration: 2.05s; transform: rotate(157deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(12) { left: 44%; background: #FFC83D; animation-delay: 0.4s; animation-duration: 2.30s; transform: rotate(204deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(13) { left: 81%; background: #FF1744; animation-delay: 0.1s; animation-duration: 2.55s; transform: rotate(251deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(14) { left: 18%; background: #FFE600; animation-delay: 0.8s; animation-duration: 2.80s; transform: rotate(298deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(15) { left: 55%; background: #00E676; animation-delay: 0.5s; animation-duration: 1.80s; transform: rotate(345deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(16) { left: 92%; background: #141416; animation-delay: 0.2s; animation-duration: 2.05s; transform: rotate(32deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(17) { left: 29%; background: #2E9BFF; animation-delay: 0.9s; animation-duration: 2.30s; transform: rotate(79deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(18) { left: 66%; background: #FFC83D; animation-delay: 0.6s; animation-duration: 2.55s; transform: rotate(126deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(19) { left: 3%; background: #FF1744; animation-delay: 0.3s; animation-duration: 2.80s; transform: rotate(173deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(20) { left: 40%; background: #FFE600; animation-delay: 0.0s; animation-duration: 1.80s; transform: rotate(220deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(21) { left: 77%; background: #00E676; animation-delay: 0.7s; animation-duration: 2.05s; transform: rotate(267deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(22) { left: 14%; background: #141416; animation-delay: 0.4s; animation-duration: 2.30s; transform: rotate(314deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(23) { left: 51%; background: #2E9BFF; animation-delay: 0.1s; animation-duration: 2.55s; transform: rotate(1deg); }
#cshow-live.cs-screen .cs-lv-confetti .cs-lv-confetti-bit:nth-child(24) { left: 88%; background: #FFC83D; animation-delay: 0.8s; animation-duration: 2.80s; transform: rotate(48deg); }

/* ---------------------------------------------------------------- the pill: "your QR" while the sheet is closed */

#cshow-live.cs-screen .cs-lv-pill {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 35;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 92vw;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    transform: translateX(-50%);
    background: var(--lv-ink);
    color: #FFFFFF;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(20, 20, 22, 0.35);
    cursor: pointer;
}

#cshow-live.cs-screen.has-buybar .cs-lv-pill { bottom: calc(96px + env(safe-area-inset-bottom)); }
#cshow-live.cs-screen .cs-lv-pill.is-qr { background: var(--lv-red); }
#cshow-live.cs-screen .cs-lv-pill.is-turn { background: var(--lv-yellow); color: var(--lv-ink); animation: cs-pulse 0.7s ease-in-out infinite; }
#cshow-live.cs-screen .cs-lv-pill.is-win { background: #25D366; animation: cs-lv-wa-pump 1.6s ease-in-out infinite, cs-lv-wa-glow 1.6s ease-in-out infinite; }
#cshow-live.cs-screen .cs-lv-pill .cs-lv-pill-clock { font-size: 16px; color: inherit; }

/* ---------------------------------------------------------------- desktop: a centered card */

@media (min-width: 700px) {
    #cshow-live.cs-screen .cs-lv-sheet-wrap { align-items: center; }
    #cshow-live.cs-screen .cs-lv-sheet-wrap .cs-lv-sheet { border-radius: 24px; }
    #cshow-live.cs-screen .cs-lv-sheet .cs-lv-sheet-grab { display: none; }
}

/* ---------------------------------------------------------------- motion */

@keyframes cs-lv-spin { to { transform: rotate(360deg); } }

@keyframes cs-lv-fall {
    0%   { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0.9; transform: translateY(110vh) rotate(540deg); }
}

@media (prefers-reduced-motion: reduce) {
    #cshow-live.cs-screen .cs-lv-confetti { display: none; }
}
