/* NHL scores (Phase 4): the scoreboard, the score cards and hero, the game page, the shot map
   and play feed, and the team picker. Carried over from 17k's Lamplighter styles and redrawn on
   look A's tokens (css/lamplit.css), which this file only reads. Every animation here is
   covered by lamplit.css's reduced-motion block. */

/* ---------------------------------------------------------------------------------------
   Small parts
   --------------------------------------------------------------------------------------- */

.ll-small {
    font-size: 13px;
}

.ll-sub {
    font-size: 12px;
    color: var(--ll-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ll-tag {
    padding: 0 6px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--ll-accent) 18%, transparent);
    color: var(--ll-text);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

/* Text buttons in look A: glass, 44 px tall. */
.ll-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--ll-radius-sm);
    border: 1px solid var(--ll-line);
    background: transparent;
    color: var(--ll-text);
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.ll-button--primary {
    border-color: transparent;
    background: var(--ll-accent);
    color: #FFFFFF;
    font-weight: 700;
}

.ll-button--grow {
    flex: 1;
}

.ll-button.is-on {
    border-color: color-mix(in srgb, var(--ll-live) 60%, transparent);
    background: color-mix(in srgb, var(--ll-accent) 16%, transparent);
}

.ll-button:disabled {
    cursor: progress;
    opacity: .7;
}

.ll-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 4px;
}

/* ---------------------------------------------------------------------------------------
   The day strip
   --------------------------------------------------------------------------------------- */

.ll-days {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ll-days .ll-icon-button {
    height: 40px;
    border-radius: 12px;
}

.ll-days .ll-icon-button:disabled {
    opacity: .4;
    cursor: default;
}

.ll-day {
    flex: 1;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ll-text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

/* ---------------------------------------------------------------------------------------
   Score cards
   --------------------------------------------------------------------------------------- */

.ll-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ll-score-card {
    position: relative;
    border-radius: var(--ll-radius);
    overflow: hidden;
}

/* The away team's colour into the home team's, along the top. */
.ll-score-stripe {
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--away), var(--home));
    pointer-events: none;
}

.ll-card--hero .ll-score-stripe {
    height: 3px;
}

.ll-score-card.is-followed {
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ll-live) 55%, transparent) inset;
}

.ll-score-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ll-side {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ll-side.is-home {
    justify-content: flex-end;
    text-align: right;
}

.ll-side-mark {
    position: relative;
    display: inline-flex;
    flex: none;
}

.ll-side-siren {
    position: absolute;
    left: 50%;
    top: -16px;
    transform: translateX(-50%);
    pointer-events: none;
}

.ll-side-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ll-abbrev {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.1;
}

.ll-fav-mark {
    margin-inline: 3px;
    color: var(--ll-gold);
    font-size: 14px;
}

.ll-score {
    margin-left: auto;
    font-family: var(--ll-font-cond);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ll-side.is-home .ll-score {
    margin-left: 0;
    margin-right: auto;
}

.ll-score.is-lost {
    color: var(--ll-muted);
}

.ll-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 76px;
    text-align: center;
}

.ll-middle .ll-live-label {
    font-size: 11px;
}

.ll-status {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.ll-following {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ll-live);
    font-weight: 700;
}

.ll-mark {
    display: block;
    object-fit: contain;
    flex: none;
}

.ll-score-detail {
    border-top: 1px solid var(--ll-line);
    padding: 12px 14px 14px;
}

.ll-score-names {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ll-score-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ll-goals {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ll-goal {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: 8px;
    align-items: baseline;
    font-size: 14px;
}

.ll-goal-team {
    font-weight: 800;
    white-space: nowrap;
}

.ll-goal-who {
    min-width: 0;
}

.ll-goal-scorer {
    font-weight: 700;
}

.ll-goal-assists {
    display: block;
    font-size: 12px;
    color: var(--ll-muted);
}

.ll-goal-when {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    color: var(--ll-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ll-goal-score {
    font-weight: 700;
    color: var(--ll-text);
}

@media (max-width: 420px) {
    .ll-score-main {
        padding-inline: 10px;
        gap: 6px;
    }

    .ll-score {
        font-size: 24px;
    }

    .ll-middle {
        min-width: 64px;
    }

    .ll-goal {
        grid-template-columns: 2.6rem minmax(0, 1fr);
    }

    .ll-goal-when {
        grid-column: 2;
    }
}

/* ---------------------------------------------------------------------------------------
   My team's hero card
   --------------------------------------------------------------------------------------- */

.ll-hero {
    overflow: hidden;
}

.ll-hero-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ll-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ll-hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    margin-top: 12px;
}

.ll-hero-team {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    text-align: center;
}

.ll-hero-abbrev {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .03em;
}

.ll-hero-siren {
    position: absolute;
    left: 50%;
    top: -22px;
    transform: translateX(-50%);
    pointer-events: none;
}

.ll-hero-score {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
    font-family: var(--ll-font-cond);
    font-size: clamp(48px, 15vw, 64px);
    font-weight: 800;
    line-height: 1;
}

.ll-hero-dash {
    font-size: .5em;
    color: var(--ll-muted);
}

.ll-hero-at {
    font-family: var(--ll-font-cond);
    font-size: 26px;
    font-weight: 800;
    color: var(--ll-muted);
    white-space: nowrap;
}

.ll-hero-goal {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--ll-accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--ll-accent) 35%, transparent);
    font-size: 13px;
    line-height: 1.35;
    color: var(--ll-text);
}

.ll-hero-goal svg {
    flex: none;
    color: var(--ll-live);
}

/* ---------------------------------------------------------------------------------------
   Goal moments, silent, in the spiced-up versions (LAMPLIT-PLAN.md → Icons and animation)
   --------------------------------------------------------------------------------------- */

/* Ours: the red light sweeps across the card three times... */
.ll-sweep {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    overflow: hidden;
}

.ll-sweep::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70%;
    left: -70%;
    background: linear-gradient(90deg, transparent, rgba(255, 45, 61, .55), rgba(255, 210, 122, .35), rgba(255, 45, 61, .55), transparent);
    animation: ll-sweep 1.05s ease-in-out 3;
}

@keyframes ll-sweep {
    to { left: 115%; }
}

/* ...and the edge glows in the scoring team's colours. */
.ll-edge {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 1.5px var(--scorer-1), 0 0 34px 6px color-mix(in srgb, var(--scorer-1) 70%, transparent), 0 0 18px 2px color-mix(in srgb, var(--scorer-2) 45%, transparent) inset;
    animation: ll-edge .45s ease-in-out 7 alternate;
}

@keyframes ll-edge {
    from { opacity: .15; }
    to { opacity: 1; }
}

/* Against: the card desaturates and shakes, and a thumbs-down drops in. */
.ll-score-card.is-against,
.ll-hero.is-against {
    animation: ll-against 1s ease-in-out forwards;
}

@keyframes ll-against {
    0% { filter: none; transform: none; }
    20% { filter: grayscale(1) brightness(.7); transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
    100% { filter: grayscale(.55) brightness(.85); transform: none; }
}

.ll-thumb {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border-radius: 50%;
    background: var(--ll-surface);
    border: 1px solid var(--ll-line);
    color: var(--ll-text);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: ll-drop .7s cubic-bezier(.3, 1.6, .5, 1);
}

@keyframes ll-drop {
    from { transform: translateY(-34px) rotate(-20deg); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ll-sweep {
        background: rgba(255, 40, 30, .16);
    }

    .ll-score-card.is-against,
    .ll-hero.is-against {
        filter: grayscale(.6);
    }
}

/* ---------------------------------------------------------------------------------------
   My teams and the picker
   --------------------------------------------------------------------------------------- */

.ll-mine {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ll-mine-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ll-mine-label {
    margin: 0;
    white-space: nowrap;
}

.ll-mine-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.ll-mine-team {
    display: inline-flex;
    padding: 2px;
    border-radius: 50%;
}

.ll-mine-team.is-mine {
    box-shadow: 0 0 0 2px var(--ll-gold);
}

.ll-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px;
}

.ll-pick {
    position: relative;
    border: 1px solid var(--ll-line);
    border-radius: 14px;
    background: var(--ll-fill);
    opacity: .75;
    transition: opacity .15s ease, border-color .15s ease, background-color .15s ease;
}

.ll-pick:hover {
    opacity: 1;
}

.ll-pick.is-on {
    opacity: 1;
    border-color: color-mix(in srgb, var(--ll-live) 65%, transparent);
    background: color-mix(in srgb, var(--ll-accent) 12%, transparent);
}

.ll-pick.is-mine {
    border-color: var(--ll-gold);
    background: color-mix(in srgb, var(--ll-gold) 14%, transparent);
}

.ll-pick-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-height: 76px;
    padding: 10px 4px 8px;
    border: 0;
    background: none;
    color: var(--ll-text);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.ll-pick-star {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: var(--ll-muted);
    cursor: pointer;
}

.ll-pick:not(.is-on) .ll-pick-star {
    opacity: .55;
}

.ll-pick-main:disabled,
.ll-pick-star:disabled {
    cursor: progress;
}

/* ---------------------------------------------------------------------------------------
   The game page
   --------------------------------------------------------------------------------------- */

.ll-game-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ll-game-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding-top: 22px;
    overflow: hidden;
}

.ll-game-hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    min-width: 0;
}

.ll-game-hero-team .ll-side-mark {
    margin-bottom: 6px;
}

.ll-game-hero-name {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.ll-game-hero-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ll-game-hero-status {
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.ll-situation {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--ll-accent);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
}

.ll-game-hero-foot {
    grid-column: 1 / -1;
    order: 3;
    text-align: center;
    font-size: 12px;
    color: var(--ll-muted);
}

.ll-section {
    padding: 14px;
}

.ll-h {
    margin: 0 0 10px;
    font-family: var(--ll-font-cond);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ll-views,
.ll-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ll-chips {
    margin-bottom: 10px;
}

.ll-chips--tight {
    margin: 0;
}

.ll-chip {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ll-line);
    border-radius: 999px;
    background: var(--ll-glass);
    color: var(--ll-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.ll-chip.is-on {
    border-color: color-mix(in srgb, var(--ll-live) 65%, transparent);
    background: color-mix(in srgb, var(--ll-accent) 18%, transparent);
    color: var(--ll-text);
}

.ll-table-wrap {
    overflow-x: auto;
}

.ll-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ll-table th,
.ll-table td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid var(--ll-line);
}

.ll-table th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--ll-muted);
}

.ll-table .is-name {
    text-align: left;
    position: sticky;
    left: 0;
    background: var(--ll-surface);
}

.ll-table .is-strong {
    font-weight: 800;
}

.ll-table .is-gap {
    width: 12px;
    border-bottom: 0;
}

.ll-table .is-dim {
    opacity: .55;
}

.ll-table-group td {
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ll-muted);
}

.ll-sweater {
    display: inline-block;
    min-width: 1.8em;
    color: var(--ll-muted);
}

.ll-stat {
    display: grid;
    grid-template-columns: 4rem 1fr 4rem;
    align-items: center;
    row-gap: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.ll-stat-value {
    font-family: var(--ll-font-cond);
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ll-stat-value.is-home {
    text-align: right;
}

.ll-stat-label {
    text-align: center;
    font-size: 12px;
    color: var(--ll-muted);
}

.ll-stat-bar {
    grid-column: 1 / -1;
    display: flex;
    gap: 3px;
    height: 6px;
}

.ll-stat-bar span {
    border-radius: 3px;
}

.ll-stat-bar .is-away {
    background: var(--away);
}

.ll-stat-bar .is-home {
    background: var(--home);
}

.ll-section .ll-stat-bar .is-away {
    background: color-mix(in srgb, var(--ll-text) 70%, transparent);
}

.ll-section .ll-stat-bar .is-home {
    background: var(--ll-accent);
}

.ll-leader {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
}

.ll-leader .is-home {
    text-align: right;
}

.ll-goalies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ll-goalie {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
    font-size: 14px;
}

.ll-sgoal {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ll-line);
}

.ll-sgoal:last-of-type {
    border-bottom: 0;
}

.ll-sgoal-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ll-face {
    border-radius: 50%;
    background: var(--ll-fill);
    object-fit: cover;
}

.ll-face.is-big {
    width: 64px;
    height: 64px;
}

.ll-clip {
    color: var(--ll-live);
    font-weight: 700;
    text-decoration: none;
}

.ll-penalties {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--ll-line);
}

.ll-penalty {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    color: inherit;
    text-decoration: none;
}

.ll-penalty > .ll-goal-when {
    flex: 0 0 2.8rem;
}

.ll-penalty > .ll-goal-team {
    flex: 0 0 2.6rem;
}

.ll-penalty-what {
    flex: 1;
    min-width: 0;
}

.ll-penalty > .ll-tag {
    flex: none;
    white-space: nowrap;
}

.ll-series {
    border-radius: 8px;
}

.ll-series.is-this {
    font-weight: 800;
}

.ll-stars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    text-align: center;
}

.ll-star-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.ll-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ll-box-head .ll-h {
    margin: 0;
}

.ll-info div {
    margin-bottom: 6px;
    font-size: 13px;
}

/* ---------------------------------------------------------------------------------------
   Shot map and play feed
   --------------------------------------------------------------------------------------- */

.ll-rink-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 800;
    color: var(--ll-muted);
}

.ll-rink {
    display: block;
    width: 100%;
    height: auto;
}

.ll-rink-ice {
    fill: #E9F2FB;
    stroke: color-mix(in srgb, var(--ll-text) 45%, transparent);
    stroke-width: .8;
}

:root:not([data-theme="light"]) .ll-rink-ice {
    fill: #C9D6E4;
}

.ll-rink-red {
    stroke: #D32F2F;
    stroke-width: 1;
    opacity: .8;
}

.ll-rink-blue {
    stroke: #2A5FD6;
    stroke-width: 1;
    opacity: .8;
}

.ll-rink-goal {
    stroke: #D32F2F;
    stroke-width: .35;
}

.ll-rink-circle {
    fill: none;
    stroke: #D32F2F;
    stroke-width: .35;
    opacity: .7;
}

.ll-rink-circle.is-blue {
    stroke: #2A5FD6;
}

.ll-rink-dot {
    fill: #D32F2F;
}

.ll-rink-crease {
    fill: #9CC9F2;
    stroke: #D32F2F;
    stroke-width: .3;
}

.ll-rink-net {
    fill: none;
    stroke: #55595E;
    stroke-width: .4;
}

.ll-shot-on {
    stroke: #FFFFFF;
    stroke-width: .4;
}

.ll-shot-miss,
.ll-shot-block {
    fill: none;
    stroke-width: .6;
}

.ll-shot-goal {
    stroke: #FFFFFF;
    stroke-width: .8;
}

.ll-shot-ring {
    fill: none;
    stroke: var(--ll-red-glow);
    stroke-width: .6;
}

.ll-mark-shot.is-selected circle:first-child,
.ll-mark-shot.is-selected path:first-child {
    stroke: var(--ll-gold);
    stroke-width: 1;
}

.ll-pick-detail {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--ll-fill);
    font-size: 13px;
}

.ll-shot-totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
}

.ll-shot-totals div {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
}

.ll-feed-period {
    margin: 12px 0 4px;
    font-family: var(--ll-font-cond);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ll-muted);
}

.ll-feed-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 4px;
    border-bottom: 1px solid color-mix(in srgb, var(--ll-line) 60%, transparent);
    font-size: 13px;
}

.ll-feed-row > .ll-goal-when {
    flex: 0 0 2.8rem;
}

.ll-feed-icon {
    flex: 0 0 1.3rem;
    text-align: center;
}

.ll-feed-what {
    flex: 1;
    min-width: 0;
}

.ll-feed-row.is-goal {
    background: color-mix(in srgb, var(--ll-accent) 12%, transparent);
    border-radius: 8px;
}

/* ---------------------------------------------------------------------------------------
   Phone alerts (Phase 5)
   --------------------------------------------------------------------------------------- */

.ll-alerts-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ll-alerts-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ll-alerts-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.ll-alerts.is-compact {
    padding: 10px 12px 10px 14px;
}

.ll-alerts.is-compact .ll-score-actions {
    margin-top: 10px;
}

.ll-alerts-on {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    color: var(--ll-live);
    font-weight: 700;
}

/* The switch: 52 × 32, goal-light red when on. */
.ll-switch {
    position: relative;
    flex: none;
    width: 52px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: color-mix(in srgb, var(--ll-text) 18%, transparent);
    cursor: pointer;
}

.ll-switch[aria-checked="true"] {
    background: var(--ll-accent);
}

.ll-switch-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    transition: transform .2s var(--ll-spring);
}

.ll-switch[aria-checked="true"] .ll-switch-knob {
    transform: translateX(20px);
}

.ll-switch:disabled {
    cursor: progress;
    opacity: .7;
}

.ll-switch:focus-visible {
    outline: 2px solid var(--ll-red-glow);
    outline-offset: 2px;
}
