/* SnapEX Pay home page (resources/views/pay-landing/index.blade.php, body.lvb.lb1): design B1 "storyboard", picked by the owner 30.10.
   Only the home page's own sections; the shared base (tokens, header, footer, sections, questions, modal) is pay-site.css. */

/* ——— The product slab (the product's own page background) ——— */

.lvb-stage {
    margin: 0;
    padding: clamp(14px, 2vw, 26px);
    border-radius: var(--r-stage);
    background: var(--p-bg);
    box-shadow: var(--shadow-stage);
    color: var(--p-body);
    font-family: var(--f-product);
    font-size: 14px;
    line-height: 1.45;
    min-width: 0;
}

.lvb-stage--stack {
    display: grid;
    gap: 16px;
}

.lvb-card {
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    padding: 18px;
    min-width: 0;
}

.lvb-p-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--p-text);
    letter-spacing: -0.01em;
}

.lvb-p-label {
    display: block;
    margin: 14px 0 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--p-muted);
}

.lvb-p-small {
    display: block;
    font-size: 12.5px;
    color: var(--p-muted);
}

.lvb-p-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--p-accent-ink);
    color: var(--p-on-accent);
    font-weight: 600;
    font-size: 14.5px;
}

.lvb-p-btn--ghost {
    background: var(--p-card);
    color: var(--p-text);
    border: 1px solid var(--p-border-2);
}

.lvb code {
    font-family: var(--f-mono);
    font-size: 12.5px;
}

.lvb-stage code {
    padding: 2px 6px;
    border: 1px solid var(--p-border);
    border-radius: 6px;
    background: var(--p-chip);
    color: var(--p-text);
}

/* ——— Invoice mark ——— */

.lvb-inv__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--p-accent-ink);
    color: var(--p-on-accent);
    font-weight: 700;
    font-size: 13px;
    flex: 0 0 auto;
}

.lvb-methods {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lvb-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    background: var(--p-card);
}

.lvb-method.is-picked {
    border-color: var(--p-accent);
    box-shadow: 0 0 0 3px var(--p-accent-soft);
}

.lvb-method__sym {
    font-weight: 600;
    color: var(--p-text);
}

.lvb-method__sym small {
    margin-inline-start: 4px;
    font-weight: 500;
    font-size: 12px;
    color: var(--p-muted);
}

.lvb-coins {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lvb-coins li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--p-border);
    border-radius: 10px;
    background: var(--p-card);
    font-weight: 600;
    font-size: 13px;
    color: var(--p-text);
}

.lvb-dep__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lvb-qr {
    padding: 8px;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    background: var(--p-card);
}

.lvb-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

.lvb-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 12px;
    border: 1px solid var(--p-border);
    border-radius: 10px;
    background: var(--p-bg);
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--p-text);
    min-width: 0;
}

[dir="rtl"] .lvb-copy {
    padding: 8px 12px 8px 8px;
}

.lvb-copy > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lvb-copy__btn {
    display: grid;
    place-items: center;
    margin-inline-start: auto;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    color: var(--p-muted);
    border: 1px solid var(--p-border-2);
    border-radius: 7px;
    background: var(--p-card);
    font: 600 12px/1.2 var(--f-product);
}

.lvb-dep__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--p-border);
}

.lvb-dep__foot b {
    font-family: var(--f-mono);
    font-weight: 500;
    color: var(--p-text);
}

.lvb-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--p-body);
}

.lvb-pulse::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p-accent);
    animation: lvb-pulse 1.6s ease-in-out infinite;
}

@keyframes lvb-pulse {
    50% {
        opacity: 0.35;
        transform: scale(0.8);
    }
}

.lvb-check__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lvb-spin {
    width: 22px;
    height: 22px;
    border: 2.5px solid var(--p-accent-soft);
    border-top-color: var(--p-accent);
    border-radius: 50%;
    animation: lvb-spin 0.9s linear infinite;
    flex: 0 0 auto;
}

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

.lvb-progress {
    display: grid;
    gap: 0;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.lvb-progress li {
    position: relative;
    padding: 9px 0;
    padding-inline-start: 32px;
    color: var(--p-muted);
}

.lvb-progress li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 9px;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--p-border-2);
    border-radius: 50%;
    background: var(--p-card);
}

.lvb-progress li + li::after {
    content: "";
    position: absolute;
    inset-inline-start: 8.5px;
    top: -9px;
    width: 1.5px;
    height: 18px;
    background: var(--p-border-2);
}

.lvb-progress li.is-done {
    color: var(--p-body);
}

.lvb-progress li.is-done::before {
    border-color: var(--p-accent-ink);
    background: var(--p-accent-ink);
}

.lvb-progress li svg {
    position: absolute;
    z-index: 1;
    inset-inline-start: 4px;
    top: 13px;
    width: 10px;
    height: 10px;
    fill: none;
    stroke: var(--p-on-accent);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lvb-progress li.is-now {
    color: var(--p-text);
    font-weight: 600;
}

.lvb-progress li.is-now::before {
    border-color: var(--p-accent);
    box-shadow: 0 0 0 3px var(--p-accent-soft);
}

[data-pane="done"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
}

.lvb-paid__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--p-accent-ink);
    color: var(--p-on-accent);
}

.lvb-paid__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lvb-paid__icon--sm {
    width: 36px;
    height: 36px;
}

.lvb-paid__icon--sm svg {
    width: 18px;
    height: 18px;
}

@keyframes lvb-pop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }
}

.lvb-paid__title {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--p-text);
}

.lvb-paid__sum {
    margin-top: 8px;
    font-family: var(--f-mono);
    font-size: 15px;
    color: var(--p-accent-ink);
}

/* ——— The story ——— */

.lvb-step {
    border-top: 1px solid var(--line);
    padding-block: clamp(56px, 8vw, 104px);
}

.lvb-step__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: start;
}

.lvb-step__text {
    position: sticky;
    top: 100px;
}

.lvb-step__n {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.lvb-step h2 {
    margin-top: 10px;
    font-size: clamp(1.75rem, 2.8vw, 2.375rem);
    line-height: 1.12;
}

.lvb-step__text p {
    margin-top: 16px;
    max-width: 26em;
    color: var(--ink-2);
}

.lvb-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px;
    border-radius: 12px;
    background: var(--p-chip);
}

.lvb-tabs button {
    min-height: 34px;
    padding: 6px 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--p-muted);
    font: 600 13px/1.2 var(--f-product);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lvb-tabs button:hover {
    color: var(--p-text);
}

.lvb-tabs button[aria-selected="true"] {
    background: var(--p-card);
    color: var(--p-text);
    box-shadow: var(--shadow-card);
}

.lvb-create {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.lvb-form .lvb-p-title + .lvb-p-label {
    margin-top: 12px;
}

.lvb-input {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--p-border-2);
    border-radius: 10px;
    background: var(--p-card);
    color: var(--p-text);
}

.lvb-input {
    white-space: nowrap;
}

.lvb-input--ph {
    white-space: normal;

    color: var(--p-muted);
}

.lvb-input--select {
    position: relative;
    padding-inline-end: 30px;
}

.lvb-input--select::after {
    content: "";
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--p-muted);
    border-bottom: 1.5px solid var(--p-muted);
    transform: translateY(-70%) rotate(45deg);
}

.lvb-seg {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    background: var(--p-chip);
}

.lvb-seg span {
    padding: 5px 12px;
    border-radius: 8px;
    color: var(--p-muted);
    font-weight: 500;
}

.lvb-seg .is-on {
    background: var(--p-card);
    color: var(--p-text);
    box-shadow: var(--shadow-card);
}

.lvb-form__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
}

.lvb-form__btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lvb-form--payout {
    max-width: 540px;
}

.lvb-form--payout .lvb-p-label:first-child {
    margin-top: 0;
}

.lvb-form--payout > .lvb-p-small {
    margin-top: 8px;
}

.lvb-made {
    display: grid;
    gap: 10px;
    border-color: var(--p-accent);
    box-shadow: 0 0 0 3px var(--p-accent-soft), var(--shadow-card);
}

.lvb-code {
    border-radius: 14px;
    background: var(--code-bg);
    color: var(--code-text);
    padding: 14px 18px;
    overflow-x: auto;
    text-align: left;
}

.lvb-code pre {
    margin: 0 0 6px;
    font: 13px/1.6 var(--f-mono);
    white-space: pre;
}

.lvb-code code {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: inherit;
}

.lvb-code__cap {
    margin: 4px 0 8px;
    font: 500 12px/1.4 var(--f-product);
    color: var(--code-dim);
}

.lvb-code .k {
    color: var(--code-key);
}

.lvb-code .s {
    color: var(--code-str);
}

.lvb-code .c {
    color: var(--code-dim);
}

.lvb-table-card {
    padding: 6px 4px;
    overflow-x: auto;
}

.lvb-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.lvb-table th {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--p-muted);
    text-align: start;
    border-bottom: 1px solid var(--p-border);
}

.lvb-table td {
    padding: 11px 14px;
    color: var(--p-text);
    border-bottom: 1px solid var(--p-border);
}

.lvb-table tr:last-child td {
    border-bottom: 0;
}

.lvb-table tr.is-fresh td {
    background: var(--p-accent-soft);
}

.lvb-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--p-chip);
    color: var(--p-body);
    font-size: 12px;
    font-weight: 600;
}

.lvb-badge--ok {
    background: var(--p-accent-soft);
    color: var(--p-accent-ink);
}

.lvb-badge--wait {
    background: var(--p-warn-soft);
    color: var(--p-warn-ink);
}

.lvb-bal__top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.lvb-bal__top .lvb-p-label {
    margin-top: 0;
}

.lvb-bal__sum {
    display: block;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--p-text);
    line-height: 1.15;
}

.lvb-bal__sum small {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--p-muted);
}

.lvb-bal__sum--sm {
    font-size: 22px;
    color: var(--p-muted);
}

.lvb-bal__top .lvb-p-small {
    margin-top: 6px;
}

.lvb-bal__hist {
    margin-top: 22px;
}

.lvb-hist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lvb-hist li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--p-border);
    color: var(--p-text);
}

.lvb-sec__more {
    margin-top: 24px;
}

.lvb-price {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.lvb-price .lvb-price__fee {
    font-size: clamp(5rem, 11vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

[dir="rtl"] .lvb-price .lvb-price__fee {
    text-align: right;
}

.lvb-price__label {
    margin-top: 14px;
    font-size: 1.25rem;
    font-weight: 500;
}

.lvb-price__main p:last-child {
    margin-top: 10px;
    max-width: 28em;
    color: var(--ink-2);
}

.lvb-live__nums {
    display: grid;
    gap: 16px;
    margin: 8px 0 18px;
}

.lvb-live__nums dt {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

[dir="rtl"] .lvb-live__nums dt {
    text-align: right;
}

.lvb-live__nums dd {
    margin: 2px 0 0;
    font-size: 15px;
    color: var(--ink-3);
}

@media (max-width: 860px) {
    .lvb-step__grid,
    .lvb-price {
        grid-template-columns: minmax(0, 1fr);
    }

    .lvb-step__text {
        position: static;
    }

    .lvb-create {
        grid-template-columns: minmax(0, 1fr);
    }

}

@media (max-width: 640px) {

    .lvb-card {
        padding: 14px;
    }

    .lvb-coins li {
        padding: 6px 8px;
        gap: 6px;
    }

    .lvb-table th:nth-child(3),
    .lvb-table td:nth-child(3) {
        display: none;
    }

    .lvb-table {
        white-space: normal;
    }

    .lvb-table th,
    .lvb-table td {
        padding-inline: 8px;
    }

    .lvb-table code {
        font-size: 11px;
        white-space: nowrap;
    }

    .lvb-code pre {
        font-size: 12px;
    }

    .lvb-form__row,
    .lvb-form__btns {
        grid-template-columns: minmax(0, 1fr);
    }

    .lvb-hist li {
        gap: 10px;
    }

}
/* ——— First screen: the storyboard ——— */

.lb1-hero {
    padding-block: clamp(20px, 3.2vw, 44px) clamp(48px, 7vw, 96px);
}

.lb1-title {
    font-size: clamp(2.125rem, 4.1vw, 3.5rem);
    line-height: 1.06;
}

/* One row under the heading: the line on one side, the button and notes on the other. */
.lb1-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 40px;
    margin-top: 18px;
}

.lb1-line {
    flex: 1 1 26em;
    max-width: 38em;
    font-size: 1.0625rem;
    color: var(--ink-2);
}

.lb1-act {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
}

.lb1-notes {
    margin: 0;
    flex-direction: column;
    gap: 2px;
    font-size: 0.875rem;
}

/* ——— The reel: one flat slab of the product, the invoice line on top, four frames below ——— */

.lb1-reel {
    margin: clamp(22px, 2.6vw, 34px) 0 0;
    padding: 14px clamp(12px, 1.4vw, 18px) clamp(14px, 1.6vw, 20px);
    border: 1px solid var(--line);
    border-radius: var(--r-stage);
    background: var(--p-bg);
    color: var(--p-body);
    font-family: var(--f-product);
    font-size: 13.5px;
    line-height: 1.45;
    --gap: clamp(10px, 1.2vw, 16px);
}

.lb1-inv {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 0 4px 12px;
    border-bottom: 1px dashed var(--p-border-2);
}

.lb1-inv .lvb-inv__mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 11.5px;
}

.lb1-inv__name {
    font-weight: 600;
    color: var(--p-text);
}

.lb1-inv__desc {
    color: var(--p-body);
}

.lb1-inv__meta {
    margin-inline-start: auto;
}

.lb1-inv__label {
    color: var(--p-muted);
    font-size: 12.5px;
}

.lb1-inv__meta code {
    font-size: 11.5px;
    padding: 2px 6px;
    border: 1px solid var(--p-border);
    border-radius: 6px;
    background: var(--p-chip);
    color: var(--p-text);
}

.lb1-inv__due b {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--p-text);
}

.lb1-frames {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.lb1-frame {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lb1-frame__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 4px 10px;
    border: 0;
    background: none;
    color: var(--p-muted);
    font: 600 13px/1.2 var(--f-product);
    text-align: start;
    cursor: pointer;
}

.lb1-frame__dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--p-border-2);
    border-radius: 50%;
    background: var(--p-card);
    font-size: 11px;
    flex: 0 0 auto;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.lb1-frame__dot svg {
    position: absolute;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lb1-frame__n {
    transition: opacity 0.2s ease;
}

/* The progress line: one track per frame, reaching across the gap to the next, so the four read as one line. */
.lb1-track {
    position: relative;
    display: block;
    height: 3px;
    margin: 0 0 12px;
    margin-inline-end: calc(-1 * var(--gap));
    border-radius: 3px;
    background: var(--p-border-2);
    overflow: hidden;
}

.lb1-frame:last-child .lb1-track {
    margin-inline-end: 0;
}

.lb1-track__fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 100%;
    background: var(--p-accent-ink);
}

.lb1-frame__body {
    flex: 1 1 auto;
    padding: 14px;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease, filter 0.35s ease;
}

.lb1-frame__body .lvb-p-title {
    font-size: 14.5px;
}

.lb1-frame__body .lvb-p-label {
    margin: 12px 0 6px;
    font-size: 11.5px;
}

.lb1-frame__body .lvb-methods {
    margin-top: 10px;
    gap: 5px;
}

.lb1-frame__body .lvb-method {
    padding: 6px 10px;
    border-radius: 10px;
    gap: 8px;
}

.lb1-frame__body .lvb-coins {
    gap: 5px;
}

.lb1-frame__body .lvb-coins li {
    padding: 5px 7px;
    gap: 6px;
    font-size: 12px;
    border-radius: 8px;
}

.lb1-dep {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 10px;
}

.lb1-dep .lvb-qr {
    padding: 5px;
    border-radius: 9px;
}

.lb1-dep__fields .lvb-p-label:first-child {
    margin-top: 0;
}

.lb1-frame__body .lvb-copy {
    padding: 5px 5px 5px 9px;
    font-size: 12px;
    border-radius: 8px;
}

[dir="rtl"] .lb1-frame__body .lvb-copy {
    padding: 5px 9px 5px 5px;
}

.lb1-frame__body .lvb-copy__btn {
    width: 24px;
    height: 24px;
}

.lb1-frame__body .lvb-copy__btn svg {
    width: 12px;
    height: 12px;
}

.lb1-frame__body .lvb-dep__foot {
    margin-top: 12px;
    padding-top: 10px;
}

.lb1-frame__body .lvb-progress {
    margin-top: 10px;
}

.lb1-frame__body .lvb-progress li {
    padding-block: 6px;
}

.lb1-frame__body .lvb-progress li::before {
    top: 6px;
}

.lb1-frame__body .lvb-progress li svg {
    top: 10px;
}

.lb1-frame__body .lvb-progress li + li::after {
    top: -6px;
    height: 12px;
}

.lb1-paid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    text-align: center;
}

.lb1-paid .lvb-paid__icon {
    width: 46px;
    height: 46px;
}

.lb1-paid .lvb-paid__icon svg {
    width: 23px;
    height: 23px;
}

.lb1-paid .lvb-paid__title {
    font-size: 19px;
}

/* ——— States. Without scripting (or with reduced motion) no frame is current: all four stand in full colour, the line full. ——— */

/* Current frame: the payment page's green ring; its part of the line fills while it is on. */
.lb1-reel[data-at] .lb1-frame.is-now .lb1-frame__body {
    border-color: var(--p-accent);
    box-shadow: 0 0 0 3px var(--p-accent-soft);
}

.lb1-reel[data-at] .lb1-frame.is-now .lb1-frame__head {
    color: var(--p-text);
}

.lb1-reel[data-at] .lb1-frame.is-now .lb1-frame__dot {
    border-color: var(--p-accent);
    color: var(--p-accent-ink);
    box-shadow: 0 0 0 3px var(--p-accent-soft);
}

/* The other frames step back: no colour, flat, the pictures faded. Text keeps its contrast. */
.lb1-reel[data-at] .lb1-frame:not(.is-now) .lb1-frame__body {
    background: var(--p-bg);
    box-shadow: none;
    filter: grayscale(1);
}

.lb1-reel[data-at] .lb1-frame:not(.is-now) .lb1-frame__body :is(img, .lvb-qr, .lvb-paid__icon, .lvb-spin, .lvb-copy__btn) {
    opacity: 0.5;
}

.lb1-reel[data-at] .lb1-frame:not(.is-now) .lvb-spin,
.lb1-reel[data-at] .lb1-frame:not(.is-now) .lvb-pulse::before {
    animation-play-state: paused;
}

/* Passed frames: a green check in the dot, their line full. */
.lb1-frame.is-past .lb1-frame__dot {
    background: var(--p-accent-ink);
    border-color: var(--p-accent-ink);
    color: var(--p-on-accent);
}

.lb1-frame.is-past .lb1-frame__n {
    opacity: 0;
}

.lb1-frame.is-past .lb1-frame__dot svg {
    opacity: 1;
}

.lb1-frame.is-past .lb1-frame__head {
    color: var(--p-body);
}

.lb1-reel[data-at] .lb1-frame:not(.is-past, .is-now) .lb1-track__fill {
    width: 0;
}

.lb1-reel[data-at] .lb1-frame.is-now .lb1-track__fill {
    width: 0;
}

.lb1-reel[data-at] .lb1-frame.is-now.is-run .lb1-track__fill {
    width: 100%;
    transition: width var(--dwell, 3s) linear;
}

.lb1-reel[data-at] .lb1-frame.is-now.is-held .lb1-track__fill {
    width: 100%;
}

.lb1-reel[data-at="done"] .lb1-frame.is-now .lb1-frame__dot {
    background: var(--p-accent-ink);
    border-color: var(--p-accent-ink);
    color: var(--p-on-accent);
}

.lb1-reel[data-at="done"] .lb1-frame.is-now .lb1-frame__n {
    opacity: 0;
}

.lb1-reel[data-at="done"] .lb1-frame.is-now .lb1-frame__dot svg {
    opacity: 1;
}

.lb1-reel[data-at="done"] .lb1-frame.is-now .lvb-paid__icon {
    animation: lvb-pop 0.45s var(--ease) both;
}

.lb1-frame__head:hover .lb1-frame__dot {
    border-color: var(--p-accent);
}

.lb1-frame__head:focus-visible {
    outline: 2px solid var(--p-accent-ink);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ——— Narrower screens ——— */

@media (max-width: 1080px) {
    .lb1-inv__desc {
        display: none;
    }

}

/* Tablet and phone: the strip becomes a swipe, one frame and the edge of the next in view. */
@media (max-width: 900px) {
    .lb1-reel {
        padding-inline: 0;
        overflow: hidden;
    }

    .lb1-inv {
        margin-inline: 14px;
        padding-inline: 0;
    }

    .lb1-frames {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 14px;
        padding-inline: 14px;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .lb1-frames::-webkit-scrollbar {
        display: none;
    }

    .lb1-frame {
        flex: 0 0 min(300px, 78%);
        scroll-snap-align: start;
        padding-inline-end: var(--gap);
    }

    .lb1-frame:last-child {
        flex-basis: calc(min(300px, 78%) - var(--gap));
        padding-inline-end: 0;
    }

    .lb1-track {
        margin-inline-end: calc(-1 * var(--gap));
    }

    .lb1-notes {
        flex-direction: row;
        gap: 4px 18px;
    }

}

@media (max-width: 640px) {
    .lb1-title {
        font-size: clamp(1.875rem, 8.4vw, 2.25rem);
    }

    .lb1-bar {
        margin-top: 12px;
        gap: 14px;
    }

    .lb1-line {
        flex-basis: 100%;
        font-size: 1rem;
    }

    .lb1-act .lvb-btn {
        width: 100%;
    }

    .lb1-inv__meta {
        display: none;
    }

    .lb1-inv__due {
        margin-inline-start: auto;
    }

    .lb1-reel {
        margin-top: 18px;
    }

}

/* Above the heading: what this is, and the giveaway while it runs. */
.lb1-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin-bottom: 16px;
}

.lb1-eyebrow {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-3);
}

.lb1-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--p-card);
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.lb1-pill:hover {
    border-color: var(--ink-3);
}

/* The old hero's numbers, one quiet row under the reel. */
.lb1-nums {
    display: flex;
    flex-wrap: wrap;
    gap: 14px clamp(24px, 4vw, 56px);
    margin: clamp(22px, 2.6vw, 32px) 0 0;
}

.lb1-nums div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.lb1-nums dt {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.lb1-nums dd {
    margin: 0;
    color: var(--ink-2);
}

.lb1-nums a {
    color: inherit;
    text-decoration: none;
}

.lb1-nums a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lvb-step__ticks {
    margin-top: 22px;
    max-width: 26em;
    font-size: 0.9375rem;
    gap: 10px;
}

.lvb-step__text .lvb-step__more {
    margin-top: 20px;
}

.lvb-feats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(24px, 3vw, 48px);
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.lvb-feat {
    padding: 24px 0 28px;
    border-top: 1px solid var(--line);
}

.lvb-feat__icon {
    display: block;
    width: 26px;
    height: 26px;
    margin-bottom: 14px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lvb-feat p,
.lvb-how p {
    margin-top: 8px;
    font-size: 0.9375rem;
    color: var(--ink-2);
}

.lvb-how {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 48px);
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.lvb-how li {
    padding-top: 20px;
    border-top: 2px solid var(--ink);
}

.lvb-how h3 {
    margin-top: 8px;
}

/* The archive and the repository of a module: small links under its name. */
.lvb-mod__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding-block: 0 14px;
    padding-inline: calc(12px + 32px + 14px) 12px;
    margin-top: -6px;
    font-size: 14px;
}

.lvb-mod__links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-2);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
}

.lvb-mod__links a:hover {
    color: var(--ink);
    text-decoration-color: currentColor;
}

.lvb-mod__links svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lvb-mod__links .pl-gh {
    fill: currentColor;
    stroke: none;
}

.lvb-sec__more {
    color: var(--ink-2);
}

.lvb-price__act {
    display: flex;
    align-items: flex-start;
}

.lvb-merch {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(28px, 5vw, 80px);
    margin-top: 40px;
    align-items: start;
}

.lvb-merch .lvb-live__nums {
    margin: 0;
    gap: 20px;
}

.lvb-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.lvb-top li {
    border-bottom: 1px solid var(--line);
}

.lvb-top__item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    height: 100%;
    padding: 14px 12px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.lvb-top__item:hover {
    background: var(--bench-2);
}

.lvb-top__logo {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.lvb-top__name {
    font-weight: 500;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lvb-top__meta {
    font-size: 14px;
    color: var(--ink-3);
}

.lvb-give {
    background: var(--bench-2);
}

.lvb-give__in {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}

.lvb-give__kicker {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-3);
}

.lvb-give h2 {
    margin-top: 10px;
}

.lvb-give__body > p:not(.lvb-give__kicker) {
    margin-top: 14px;
    max-width: 36em;
    color: var(--ink-2);
}

.lvb-give .lvb-link--under {
    white-space: normal;
    text-align: start;
}

.lvb-give__side {
    display: grid;
    gap: 6px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--bench);
}

.lvb-give__label {
    font-size: 14px;
    color: var(--ink-3);
}

.lvb-give__count {
    font-size: 1.25rem;
    color: var(--ink-2);
}

.lvb-give__count b {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.lvb-give__prize {
    margin-top: 8px;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
}

[dir="rtl"] .lvb-give__count,
[dir="rtl"] .lvb-give__prize {
    text-align: right;
}

.lb1-pill:focus-visible,
.lb1-nums a:focus-visible,
.lvb-mod__links a:focus-visible,
.lvb-top__item:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

/* ——— Narrower screens: the added blocks ——— */

@media (max-width: 1080px) {
    .lvb-feats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 860px) {
    .lvb-how,
    .lvb-merch,
    .lvb-give__in {
        grid-template-columns: minmax(0, 1fr);
    }

    .lvb-merch .lvb-live__nums {
        grid-template-columns: repeat(3, minmax(0, auto));
        justify-content: start;
        column-gap: 32px;
    }

}

@media (max-width: 640px) {
    .lvb-feats,
    .lvb-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .lvb-feat {
        padding: 20px 0 22px;
    }

    .lvb-mod__links {
        padding-inline: 8px;
        margin-top: -4px;
    }

    .lb1-nums {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 16px;
    }

    .lb1-nums div {
        display: grid;
        gap: 2px;
    }

    .lb1-nums dd {
        font-size: 14px;
    }

    .lvb-merch .lvb-live__nums {
        grid-template-columns: minmax(0, 1fr);
    }

    .lvb-price__act .lvb-btn,
    .lvb-give .lvb-btn {
        width: 100%;
    }

}
