:root {
    color-scheme: dark;
    --bg: #050403;
    --panel: #0d0b08;
    --panel-soft: #15100a;
    --card: rgba(12, 10, 7, 0.94);
    --card-strong: rgba(18, 14, 9, 0.98);
    --section-band: rgba(255, 247, 230, 0.018);
    --section-surface: rgba(15, 12, 8, 0.88);
    --section-surface-strong: rgba(21, 16, 10, 0.94);
    --text: #fff7e6;
    --muted: #b8aa92;
    --line: rgba(197, 151, 69, 0.32);
    --line-strong: rgba(230, 177, 82, 0.56);
    --accent: #d6a344;
    --accent-strong: #f4c96b;
    --danger: #f43f5e;
    font-size: 17px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 0, rgba(214, 163, 68, 0.22), transparent 24rem),
        radial-gradient(circle at 88% 0, rgba(244, 201, 107, 0.14), transparent 24rem),
        linear-gradient(180deg, transparent 0 26rem, rgba(255, 247, 230, 0.018) 26rem 47rem, transparent 47rem 69rem, rgba(214, 163, 68, 0.018) 69rem 92rem, transparent 92rem),
        linear-gradient(180deg, #020201 0, var(--bg) 28rem),
        var(--bg);
    color: var(--text);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.app-shell {
    display: grid;
    gap: 1.15rem;
    width: min(100%, 1300px);
    margin: 0 auto;
    padding: calc(0.7rem + env(safe-area-inset-top, 0px)) 0.75rem calc(3.6rem + env(safe-area-inset-bottom, 0px));
}

.hero-card,
.card {
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    background: var(--card);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 1.25rem 3rem rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(1rem);
}

.app-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: start center;
    padding: max(5rem, env(safe-area-inset-top, 0px)) 1rem 1rem;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(0.35rem);
}

.app-dialog {
    display: grid;
    gap: 0.8rem;
    width: min(100%, 22rem);
    padding: 1rem;
    border: 1px solid rgba(244, 201, 107, 0.42);
    border-radius: 0.95rem;
    background: #0d0b08;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.62);
}

.app-dialog h2,
.app-dialog p {
    margin: 0;
}

.app-dialog h2 {
    color: #fff7e6;
    font-size: 1rem;
}

.app-dialog p,
.app-dialog__field span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.app-dialog__field {
    display: grid;
    gap: 0.35rem;
}

.app-dialog__field input {
    min-height: 2.8rem;
    border: 1px solid rgba(244, 201, 107, 0.52);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 0 0.75rem;
}

.app-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.app-dialog__actions button {
    min-height: 2.2rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
}

.app-dialog__confirm {
    background: #fff2cc;
    color: #130d05;
}

.app-dialog__cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #fff7e6;
}

.hero-card {
    position: sticky;
    top: 0;
    z-index: 5;
    overflow: visible;
    width: 100%;
    margin-bottom: 0.65rem;
    padding: 0.9rem 1rem 1.05rem;
    background:
        linear-gradient(135deg, rgba(2, 2, 1, 0.98), rgba(17, 13, 8, 0.96)),
        var(--card);
}

.hero-card::before,
.hero-card::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.hero-card::before {
    inset: 2.4rem auto 0.8rem 0.8rem;
    width: 12rem;
    opacity: 0.5;
    background-image: radial-gradient(rgba(214, 163, 68, 0.5) 1px, transparent 1px);
    background-size: 0.45rem 0.45rem;
    mask-image: linear-gradient(90deg, #000, transparent);
}

.hero-card::after {
    right: 0.8rem;
    bottom: 1rem;
    width: 6rem;
    height: 2rem;
    opacity: 0.6;
    background: repeating-linear-gradient(135deg, rgba(244, 201, 107, 0.65) 0 2px, transparent 2px 0.65rem);
}

.hero-card__topline,
.card__header,
.price-row,
.queue-row,
.leaderboard li,
.hero-grid,
.status-grid {
    display: flex;
    align-items: center;
}

.hero-card__topline {
    position: relative;
    z-index: 50;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.621rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark {
    width: 1.65rem;
    height: 1.65rem;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 0.35rem 0.8rem rgba(0, 0, 0, 0.45));
}

.live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.8s infinite;
}

#event-status[data-status="starting-soon"] + .build-badge,
#event-status[data-status="ended"] + .build-badge {
    margin-left: 0.2rem;
}

.live-dot:has(+ #event-status[data-status="starting-soon"]) {
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.72);
}

.live-dot:has(+ #event-status[data-status="ended"]) {
    background: #94a3b8;
    box-shadow: none;
    animation: none;
}

.hero-card__main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0.55rem;
}

.hero-card__content {
    min-width: 0;
}

.hero-card__kicker {
    margin: 0 0 0.12rem;
    color: #fff2cc;
    font-size: 0.772rem;
    font-weight: 900;
}

.hero-card h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.788rem, 7vw, 2.918rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.hero-grid,
.status-grid {
    gap: 0.5rem;
}

.hero-grid > div,
.status-grid > div {
    flex: 1;
    min-width: 0;
    padding: 0.68rem 0.75rem;
    border: 1px solid rgba(197, 151, 69, 0.18);
    border-radius: 0.55rem;
    background: rgba(148, 163, 184, 0.08);
}

.label {
    display: block;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.label i {
    margin-right: 0.28rem;
    color: var(--accent);
}

.hero-grid strong,
.status-grid strong {
    display: block;
    margin-top: 0.12rem;
    overflow: hidden;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-bookmark {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: center;
    width: 100%;
    min-height: 1.95rem;
    margin-top: 0.55rem;
    border: 1px solid rgba(244, 201, 107, 0.36);
    border-radius: 999px;
    background: linear-gradient(135deg, #8a5f18, #d6a344 55%, #f4c96b);
    color: #130d05;
    font-size: 0.715rem;
    font-weight: 900;
    text-decoration: none;
}

.action-bookmark:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.card {
    position: relative;
    isolation: isolate;
    margin: 0;
    padding: 1rem;
    border-color: rgba(197, 151, 69, 0.18);
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at 18% 0, rgba(244, 201, 107, 0.06), transparent 16rem),
        linear-gradient(180deg, rgba(255, 247, 230, 0.055), rgba(255, 247, 230, 0.015) 34%, rgba(0, 0, 0, 0.08)),
        var(--section-surface);
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 230, 0.055),
        inset 0 -1.5rem 3rem rgba(0, 0, 0, 0.1),
        0 1.4rem 3.4rem rgba(0, 0, 0, 0.24);
}

.section-card {
    scroll-margin-top: 8.5rem;
}

.section-card::before {
    position: absolute;
    inset: -0.5rem -0.35rem;
    z-index: -1;
    border-radius: 1.55rem;
    background:
        radial-gradient(circle at 8% 0, rgba(244, 201, 107, 0.045), transparent 14rem),
        linear-gradient(180deg, var(--section-band), transparent 76%);
    pointer-events: none;
    content: "";
}

.section-card--primary {
    padding: 1.1rem;
    border-color: rgba(244, 201, 107, 0.3);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 16% 0, rgba(244, 201, 107, 0.105), transparent 16rem),
        radial-gradient(circle at 92% 0, rgba(255, 247, 230, 0.055), transparent 15rem),
        linear-gradient(180deg, rgba(255, 247, 230, 0.07), rgba(255, 247, 230, 0.018) 42%, rgba(0, 0, 0, 0.08)),
        var(--section-surface-strong);
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 230, 0.08),
        inset 0 -2rem 4rem rgba(0, 0, 0, 0.12),
        0 1.8rem 4.6rem rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(244, 201, 107, 0.08);
}

.section-card--primary::before {
    inset: -0.7rem -0.45rem;
    border-radius: 1.8rem;
    background:
        radial-gradient(circle at 12% 0, rgba(244, 201, 107, 0.08), transparent 17rem),
        linear-gradient(180deg, rgba(214, 163, 68, 0.04), transparent 80%);
}

.section-card--secondary {
    background:
        radial-gradient(circle at 82% 0, rgba(255, 247, 230, 0.035), transparent 14rem),
        linear-gradient(180deg, rgba(255, 247, 230, 0.045), rgba(255, 247, 230, 0.012) 45%, rgba(0, 0, 0, 0.06)),
        rgba(11, 9, 6, 0.91);
}

.section-card--tertiary {
    opacity: 0.96;
    background:
        linear-gradient(180deg, rgba(255, 247, 230, 0.032), rgba(255, 247, 230, 0.008)),
        rgba(10, 8, 6, 0.86);
}

.section-card--queue {
    margin-top: 0.15rem;
}

.section-card--entry {
    margin-top: 0.3rem;
    scroll-margin-top: clamp(13.5rem, 36vw, 17rem);
}

.section-card--media {
    padding: 0.95rem;
}

.card__header {
    position: relative;
    display: block;
    margin-bottom: 0.9rem;
    padding-left: 0.85rem;
}

.card__header::before,
.participant-card__header::before {
    position: absolute;
    top: 0.18rem;
    bottom: 0.14rem;
    left: 0;
    width: 0.22rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-strong), rgba(214, 163, 68, 0.24));
    box-shadow: 0 0 1.2rem rgba(244, 201, 107, 0.2);
    content: "";
}

.participant-card__header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    padding-left: 0.85rem;
}

.participant-card__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
}

.participant-card__header h2 {
    margin: 0;
}

.card h2,
.leaderboard h3 {
    margin: 0;
}

.card h2 {
    font-size: clamp(1.12rem, 2.6vw, 1.42rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    margin: 0 0 0.26rem;
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 0 1rem rgba(244, 201, 107, 0.32);
    content: "";
}

.env-menu-shell {
    position: relative;
    display: inline-flex;
    margin-left: auto;
}

.env-menu-shell[hidden] {
    display: none !important;
}

.env-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border: 0;
    border-radius: 999px;
    background: #991b1b;
    color: #fee2e2;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
}

.env-badge:hover,
.env-badge:focus-visible {
    background: #b91c1c;
    outline: 2px solid rgba(254, 226, 226, 0.45);
    outline-offset: 2px;
}

.env-tools-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 20;
    display: grid;
    gap: 0.25rem;
    width: min(16rem, calc(100vw - 2rem));
    padding: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 0.65rem;
    background: rgba(248, 250, 252, 0.96);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
    color: #0f172a;
}

.env-tools-menu[hidden] {
    display: none !important;
}

.env-tools-menu button {
    width: 100%;
    padding: 0.38rem 0.55rem;
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 0.4rem;
    background: #fff;
    color: #134e4a;
    font-size: 0.78rem;
    text-align: left;
}

.env-tools-menu button:hover,
.env-tools-menu button:focus-visible {
    background: #ecfeff;
    outline: 2px solid rgba(15, 118, 110, 0.18);
    outline-offset: 1px;
}

.env-tools-menu__meta {
    display: grid;
    gap: 0.1rem;
    padding: 0.15rem 0.25rem 0.1rem;
    color: #475569;
    font-size: 0.68rem;
    text-transform: none;
}

.env-tools-menu__meta div {
    overflow-wrap: anywhere;
}

.build-badge {
    display: inline-block;
    padding: 0.08rem 0.38rem;
    border: 1px solid rgba(244, 201, 107, 0.5);
    border-radius: 999px;
    background: rgba(214, 163, 68, 0.16);
    color: #f8d783;
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.build-badge:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.operator-menu-shell {
    position: relative;
    margin-left: auto;
    z-index: 200;
}

.env-menu-shell:not([hidden]) + .operator-menu-shell {
    margin-left: 0.35rem;
}

.operator-menu-shell[hidden] {
    display: none !important;
}

.operator-menu-toggle {
    display: inline-grid;
    width: 5.25rem;
    height: 3.2rem;
    min-width: 5.25rem;
    min-height: 3.2rem;
    padding: 0;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    background: transparent;
    color: transparent;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    pointer-events: auto;
    touch-action: manipulation;
    user-select: none;
}

.operator-menu-toggle.is-unlocked:hover,
.operator-menu-toggle.is-unlocked:focus-visible {
    background: rgba(138, 95, 24, 0.35);
    outline: 2px solid rgba(244, 201, 107, 0.35);
    outline-offset: 2px;
}

.operator-menu-toggle.is-unlocked {
    border-color: rgba(244, 201, 107, 0.42);
    background: rgba(18, 14, 9, 0.72);
    color: #fff2cc;
    box-shadow: 0 0.75rem 1.8rem rgba(0, 0, 0, 0.28);
    opacity: 1;
}

.operator-menu {
    position: fixed;
    top: calc(3.9rem + env(safe-area-inset-top, 0px));
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    z-index: 1000;
    display: grid;
    gap: 0.28rem;
    width: min(17rem, calc(100vw - 1.3rem));
    max-width: calc(100vw - 1.3rem);
    max-height: calc(100dvh - 4.7rem);
    padding: 0.4rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(244, 201, 107, 0.72);
    border-radius: 0.7rem;
    background: #fffaf0;
    background-clip: padding-box;
    box-shadow:
        0 1.2rem 2.8rem rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(255, 255, 255, 0.68) inset;
    color: #1b1307;
}

.operator-menu::-webkit-scrollbar {
    width: 0.35rem;
}

.operator-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(84, 61, 24, 0.24);
}

.operator-menu[hidden] {
    display: none !important;
}

.operator-menu button {
    width: 100%;
    min-height: 2.15rem;
    padding: 0.38rem 0.55rem;
    border: 1px solid rgba(84, 61, 24, 0.18);
    border-radius: 0.45rem;
    background: #fff5dc;
    color: #1b1307;
    font-size: 0.72rem;
    font-weight: 900;
    text-align: left;
    text-shadow: none;
}

.operator-menu button:hover,
.operator-menu button:focus-visible {
    border-color: rgba(173, 119, 24, 0.68);
    background: #ffe9b2;
    outline: 2px solid rgba(214, 163, 68, 0.45);
    outline-offset: 1px;
}

.operator-menu .operator-menu__danger {
    border-color: rgba(159, 18, 57, 0.28);
    background: #9f1239;
    color: #fff1f2;
}

.operator-menu .operator-menu__muted {
    border-color: rgba(84, 61, 24, 0.16);
    background: #f3ead8;
    color: #4f3f25;
}

.operator-menu .form-note {
    color: #6b5a3b;
}

.app-settings-form {
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem;
    border: 1px solid rgba(84, 61, 24, 0.14);
    border-radius: 0.55rem;
    background: #fffdf7;
}

.app-settings-form[hidden] {
    display: none !important;
}

.app-settings-form strong {
    color: #1b1307;
    font-size: 0.76rem;
}

.app-settings-form label {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #4f3f25;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.35;
}

.app-settings-form input {
    flex: 0 0 auto;
    width: 1rem;
    min-height: 1rem;
    margin-top: 0.12rem;
}

.app-settings-form .app-settings-form__field {
    display: grid;
}

.app-settings-form__field input {
    width: 100%;
    min-height: 2rem;
    margin-top: 0.2rem;
    border-color: rgba(84, 61, 24, 0.18);
    background: #fff;
    color: #1b1307;
}

.operator-menu .app-settings-form__button {
    min-height: 2rem;
    border-color: rgba(84, 61, 24, 0.18);
    border-radius: 0.45rem;
    background: #1b1307;
    color: #fffaf0;
    font-size: 0.72rem;
    font-weight: 900;
}

.operator-challenge-form {
    display: grid;
    gap: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(148, 163, 184, 0.34);
}

.operator-challenge-form strong {
    color: #0f172a;
    font-size: 0.85rem;
}

.operator-challenge-form input,
.operator-challenge-form select,
.operator-challenge-form textarea {
    min-height: 2.45rem;
    border-color: rgba(15, 118, 110, 0.2);
    background: #fff;
    color: #0f172a;
    font-size: 0.82rem;
}

.operator-challenge-form textarea {
    min-height: 4.5rem;
}

.operator-challenge-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.operator-challenge-form label span {
    color: #475569;
    font-size: 0.72rem;
}

.join-form {
    display: grid;
    gap: 0.9rem;
}

label span,
legend {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

small {
    color: var(--muted);
    font-weight: 500;
}

input,
select,
textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 3.15rem;
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 0 0.95rem;
    outline: none;
}

textarea {
    min-height: 5.5rem;
    padding-top: 0.8rem;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(214, 163, 68, 0.16);
}

select option {
    background: #fff7e6;
    color: #130d05;
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.challenge-list {
    display: grid;
    gap: 0.55rem;
}

.challenge-pill {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-height: 3.5rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
}

.challenge-pill input {
    width: 1.1rem;
    min-height: auto;
}

.challenge-pill span {
    display: grid;
    gap: 0.15rem;
    margin: 0;
    color: var(--text);
}

.challenge-pill strong,
.challenge-pill small,
.challenge-pill em {
    display: block;
}

.challenge-pill small,
.challenge-pill em {
    color: var(--muted);
    font-size: 0.78rem;
}

.challenge-pill em {
    font-style: normal;
}

.price-row {
    justify-content: space-between;
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.price-row strong {
    font-size: 1.6rem;
}

.primary-action,
.secondary-action,
.danger-action,
.operator-actions button {
    width: 100%;
    min-height: 3.2rem;
    border-radius: 1rem;
    color: #130d05;
    font-weight: 900;
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-strong), #fde047);
}

.secondary-action,
.operator-actions button {
    background: #fff2cc;
}

.secondary-action--quiet {
    min-height: 2.25rem;
    border: 1px solid rgba(244, 201, 107, 0.35);
    border-radius: 0.55rem;
    background: rgba(138, 95, 24, 0.86);
    color: #fff7e6;
    font-size: 0.82rem;
}

.status-card .secondary-action--quiet + .secondary-action--quiet {
    margin-top: 0.45rem;
    background: rgba(18, 14, 9, 0.76);
}

.participant-add-action {
    display: inline-flex;
    min-height: 1.8rem;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.65rem;
    border: 1px solid rgba(244, 201, 107, 0.38);
    border-radius: 999px;
    background: rgba(214, 163, 68, 0.14);
    color: #f8d783;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.participant-list {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.participant-summary-stack {
    display: grid;
    gap: 0.45rem;
}

.participant-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
    padding: 0.55rem;
    border: 1px solid rgba(197, 151, 69, 0.22);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.04);
}

.participant-summary__main {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
}

.participant-summary__topline {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.participant-summary__topline strong,
.participant-summary__main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-summary__main small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.participant-summary__pause {
    display: inline-flex;
    min-height: 1.45rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.45rem;
    border: 1px solid rgba(244, 201, 107, 0.3);
    border-radius: 999px;
    color: #f8d783;
    font-size: 0.66rem;
    font-weight: 900;
    white-space: nowrap;
}

.participant-summary__pause {
    min-height: 1.25rem;
    padding: 0 0.5rem;
    background: rgba(138, 95, 24, 0.5);
    color: #fff7e6;
    font-size: 0.62rem;
}

.danger-action {
    background: var(--danger);
    color: white;
}

.form-note {
    min-height: 1.25rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.status-card .form-note:empty,
.participant-operator-editor[hidden] + .form-note:empty {
    min-height: 0;
}

.form-note.is-error {
    color: #fecdd3;
}

.queue-stack,
.leaderboard-stack,
.paused-stack {
    display: grid;
    gap: 0.75rem;
}

.queue-row {
    position: relative;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) auto auto;
    gap: 0.45rem;
    align-items: center;
    padding: 0.52rem 0.6rem;
    border: 1px solid rgba(197, 151, 69, 0.18);
    border-radius: 0.55rem;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.11), rgba(148, 163, 184, 0.05));
    animation: rise 220ms ease-out;
}

.queue-row.is-editing {
    border-color: rgba(245, 158, 11, 0.7);
}

.queue-row.is-draggable {
    grid-template-columns: max-content max-content minmax(0, 1fr) auto auto;
    border-style: dashed;
    border-color: rgba(244, 201, 107, 0.38);
    background:
        repeating-linear-gradient(90deg, rgba(244, 201, 107, 0.08) 0 1px, transparent 1px 0.7rem),
        linear-gradient(90deg, rgba(148, 163, 184, 0.11), rgba(148, 163, 184, 0.05));
    cursor: grab;
}

.queue-row.is-dragging {
    border-style: dotted;
    border-color: rgba(244, 201, 107, 0.9);
    cursor: grabbing;
    opacity: 0.5;
}

.queue-row.is-drop-target {
    border-color: rgba(245, 158, 11, 0.85);
    border-style: dotted;
    background:
        repeating-linear-gradient(90deg, rgba(245, 158, 11, 0.16) 0 2px, transparent 2px 0.55rem),
        linear-gradient(90deg, rgba(245, 158, 11, 0.24), rgba(148, 163, 184, 0.08));
    box-shadow:
        inset 0 0 0 2px rgba(245, 158, 11, 0.24),
        0 0 0 2px rgba(245, 158, 11, 0.2);
}

.queue-row.is-drop-target::before {
    position: absolute;
    top: -0.42rem;
    right: 0.6rem;
    left: 0.6rem;
    height: 0;
    border-top: 2px dotted rgba(244, 201, 107, 0.95);
    content: "";
}

.paused-row {
    display: grid;
    gap: 0.18rem;
    padding: 0.6rem;
    border: 1px solid rgba(244, 201, 107, 0.24);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.04);
}

.paused-row__topline {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.paused-row__topline strong,
.paused-row small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.paused-row small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.paused-row__resume {
    min-height: 1.25rem;
    padding: 0 0.5rem;
    border: 1px solid rgba(244, 201, 107, 0.38);
    border-radius: 999px;
    background: rgba(214, 163, 68, 0.14);
    color: #f8d783;
    font-size: 0.62rem;
    font-weight: 900;
    white-space: nowrap;
}

.queue-row--current {
    border-color: rgba(245, 158, 11, 0.38);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(148, 163, 184, 0.06));
}

.queue-row--deck {
    border-color: rgba(244, 201, 107, 0.48);
}

.queue-drag-handle,
.queue-row > span,
.queue-row small {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.queue-drag-handle,
.queue-row > span {
    display: grid;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.35rem;
    place-items: center;
    border: 1px solid rgba(244, 201, 107, 0.45);
    border-radius: 999px;
    color: #f8d783;
    line-height: 1;
    text-transform: none;
}

.queue-drag-handle {
    border-style: dashed;
    background: rgba(244, 201, 107, 0.12);
    color: #fff2cc;
    cursor: grab;
}

.queue-drag-handle:active {
    cursor: grabbing;
}

.queue-row strong {
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-quick-actions {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: flex-end;
}

.queue-quick-actions button,
.queue-edit-action,
.bottom-video-carousel__edit,
.bottom-video-carousel__fullscreen,
.bottom-video-carousel__nav-button,
.leaderboard-info-action,
.leaderboard-edit-action,
.finished-history-edit-action {
    display: inline-grid;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    padding: 0;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(244, 201, 107, 0.45);
    border-radius: 999px;
    background: rgba(214, 163, 68, 0.14);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

.queue-quick-actions button i,
.queue-edit-action i,
.leaderboard-info-action i,
.leaderboard-edit-action i,
.finished-history-edit-action i,
.bottom-video-carousel__fullscreen i,
.bottom-video-carousel__nav-button i,
.bottom-video-carousel__edit i,
.payment-badge i {
    display: inline-grid;
    width: 1em;
    height: 1em;
    place-items: center;
    line-height: 1;
    text-align: center;
}

.queue-quick-actions button i::before,
.queue-edit-action i::before,
.leaderboard-info-action i::before,
.leaderboard-edit-action i::before,
.finished-history-edit-action i::before,
.bottom-video-carousel__fullscreen i::before,
.bottom-video-carousel__nav-button i::before,
.bottom-video-carousel__edit i::before,
.payment-badge i::before {
    display: block;
    line-height: 1;
}

.queue-quick-actions .queue-quick-action--pause {
    border-color: rgba(167, 139, 250, 0.55);
    background: rgba(167, 139, 250, 0.16);
    color: #ddd6fe;
}

.queue-quick-actions .queue-quick-action--warning {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
}

.queue-quick-actions .queue-quick-action--danger {
    border-color: rgba(251, 113, 133, 0.55);
    background: rgba(251, 113, 133, 0.16);
    color: #fecdd3;
}

.queue-editor {
    display: grid;
    grid-column: 1 / -1;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.payment-badge {
    display: inline-grid;
    width: 1.2rem;
    height: 1.2rem;
    margin-left: 0.25rem;
    place-items: center;
    border-radius: 999px;
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.payment-badge--paid {
    border: 1px solid rgba(244, 201, 107, 0.4);
    background: rgba(214, 163, 68, 0.16);
    color: #f8d783;
}

.payment-badge--pending {
    border: 1px solid rgba(251, 191, 36, 0.34);
    background: rgba(251, 191, 36, 0.18);
    color: #fde68a;
}

.payment-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: end;
}

.payment-editor label {
    display: grid;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.live-cams-card {
    overflow: hidden;
    scroll-margin-top: 8rem;
}

#bottom-video-carousel-root {
    scroll-margin-top: 8rem;
}

.bottom-video-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: blur(1rem);
}

.bottom-video-carousel__header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.1rem 0 0.85rem 0.85rem;
    color: #fff2cc;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bottom-video-carousel__header::before {
    position: absolute;
    top: 0.14rem;
    bottom: 0.82rem;
    left: 0;
    width: 0.22rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-strong), rgba(214, 163, 68, 0.2));
    box-shadow: 0 0 1.2rem rgba(244, 201, 107, 0.2);
    content: "";
}

.bottom-video-carousel__header strong {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.bottom-video-carousel__header .live-dot {
    width: 0.45rem;
    height: 0.45rem;
}

.bottom-video-carousel__header small {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.56rem;
    font-weight: 800;
}

.bottom-video-carousel__edit {
    margin-left: 0.25rem;
}

.bottom-video-carousel__track {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0 0 0.5rem;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.bottom-video-carousel__track::-webkit-scrollbar {
    display: none;
}

.bottom-video-carousel__tile {
    position: relative;
    flex: 0 0 100%;
    max-width: none;
    height: clamp(13rem, 42vw, 24rem);
    overflow: hidden;
    border: 1px solid rgba(197, 151, 69, 0.28);
    border-radius: 0.95rem;
    background: rgba(18, 14, 9, 0.94);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    scroll-snap-align: center;
}

.bottom-video-carousel__tile.is-portrait-media {
    height: clamp(18rem, 72vw, 34rem);
}

.camera-player,
.camera-tile-placeholder {
    position: absolute;
    inset: 0;
}

.camera-player {
    z-index: 2;
}

.camera-player:empty {
    z-index: 0;
}

.camera-player:not(:empty) + .camera-tile-placeholder {
    display: none;
}

.camera-player video,
.camera-player iframe,
.camera-player img,
.camera-tile-placeholder img,
.camera-tile-placeholder__gradient {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.camera-player__loading,
.camera-player__fallback,
.camera-tile-placeholder__gradient {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(184, 170, 146, 0.22), rgba(18, 14, 9, 0.28)),
        rgba(44, 35, 21, 0.72);
    color: var(--muted);
    font-weight: 900;
}

.camera-player__fallback {
    position: relative;
    overflow: hidden;
    text-align: left;
}

.camera-player__fallback img {
    position: absolute;
    inset: 0;
    opacity: 0.32;
}

.camera-player__fallback div {
    position: relative;
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
}

.camera-player__fallback strong {
    color: #fff7e6;
}

.camera-player__fallback span {
    color: var(--muted);
    font-size: 0.8rem;
}

.bottom-video-carousel__empty-state {
    flex: 0 0 100%;
    display: grid;
    min-height: 7rem;
    place-items: center;
    padding: 1rem;
    border: 1px dashed rgba(244, 201, 107, 0.34);
    border-radius: 0.95rem;
    background: rgba(214, 163, 68, 0.08);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.bottom-video-carousel__tile video,
.bottom-video-carousel__tile img,
.bottom-video-carousel__empty {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    pointer-events: none;
}

.camera-player video,
.bottom-video-carousel__tile video {
    background: #050403;
    object-fit: contain;
}

.bottom-video-carousel__tile iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.bottom-video-carousel__empty {
    display: block;
    background:
        linear-gradient(135deg, rgba(214, 163, 68, 0.16), rgba(244, 201, 107, 0.12)),
        rgba(18, 14, 9, 0.9);
}

.bottom-video-carousel__overlay,
.bottom-video-carousel__fallback {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 1.4rem 0.65rem 0.55rem;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
    pointer-events: none;
    z-index: 3;
}

.bottom-video-carousel__overlay strong,
.bottom-video-carousel__fallback strong {
    overflow: hidden;
    color: #fff7e6;
    font-size: 0.76rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-video-carousel__badge {
    flex: 0 0 auto;
    padding: 0.1rem 0.38rem;
    border: 1px solid rgba(34, 197, 94, 0.42);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.22);
    color: #bbf7d0;
    font-size: 0.52rem;
    font-weight: 900;
    line-height: 1.2;
}

.bottom-video-carousel__badge.is-muted {
    border-color: rgba(148, 163, 184, 0.36);
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

.bottom-video-carousel__fallback {
    top: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0.8rem;
    background:
        linear-gradient(135deg, rgba(18, 14, 9, 0.9), rgba(5, 4, 3, 0.96)),
        rgba(18, 14, 9, 0.96);
}

.bottom-video-carousel__fallback span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.bottom-video-carousel__tile.has-feed-error .bottom-video-carousel__overlay {
    display: none;
}

.bottom-video-carousel__tile.has-feed-error .bottom-video-carousel__fallback {
    display: flex;
}

.bottom-video-carousel__fullscreen {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 4;
    border-color: rgba(244, 201, 107, 0.38);
    background: rgba(5, 4, 3, 0.72);
    color: #fff7e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
}

.bottom-video-carousel__fullscreen:hover,
.bottom-video-carousel__fullscreen:focus-visible {
    background: rgba(138, 95, 24, 0.72);
    outline: 2px solid rgba(244, 201, 107, 0.42);
    outline-offset: 2px;
}

.bottom-video-carousel__nav-button {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    border-color: rgba(244, 201, 107, 0.5);
    background: rgba(5, 4, 3, 0.72);
    color: #fff7e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
    transform: translateY(-50%);
}

.bottom-video-carousel__nav-button--previous {
    left: 0.55rem;
}

.bottom-video-carousel__nav-button--next {
    right: 0.55rem;
}

.bottom-video-carousel__nav-button:hover,
.bottom-video-carousel__nav-button:focus-visible {
    background: rgba(138, 95, 24, 0.78);
    outline: 2px solid rgba(244, 201, 107, 0.42);
    outline-offset: 2px;
}

.bottom-video-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.32rem;
    padding-top: 0.05rem;
}

.bottom-video-carousel__dots button {
    width: 0.34rem;
    height: 0.34rem;
    padding: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.5);
}

.bottom-video-carousel__dots button[aria-current="true"] {
    width: 1rem;
    background: var(--accent);
}

#video-feed-editor-root {
    margin-top: 0.75rem;
}

.video-feed-editor {
    display: grid;
    gap: 0.65rem;
    width: 100%;
    max-height: none;
    margin: 0;
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid rgba(244, 201, 107, 0.32);
    border-radius: 1rem;
    background: rgba(12, 10, 7, 0.96);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1rem);
}

.video-feed-editor__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.video-feed-editor__header strong {
    color: #fff2cc;
}

.video-feed-editor__header button {
    display: grid;
    width: 1.9rem;
    height: 1.9rem;
    place-items: center;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    color: #fff2cc;
    font-weight: 900;
}

.video-feed-editor__list,
.video-feed-form {
    display: grid;
    gap: 0.55rem;
}

.video-feed-form {
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
}

.video-feed-form label {
    display: grid;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.video-feed-form__grid,
.video-feed-form__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.video-feed-form__toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
}

.video-feed-form__toggles label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.video-feed-form__toggles input {
    width: auto;
    min-height: auto;
}

.video-feed-form__actions button {
    min-height: 2.4rem;
    border-radius: 999px;
    background: #fff2cc;
    color: #130d05;
    font-size: 0.82rem;
    font-weight: 900;
}

.video-feed-form__actions .danger-action {
    background: var(--danger);
    color: #fff;
}

.participant-operator-editor {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.participant-operator-editor[hidden] {
    display: none !important;
}

.participant-operator-editor select {
    width: 100%;
    min-height: 3rem;
    padding: 0 0.85rem;
    border: 1px solid rgba(244, 201, 107, 0.45);
    border-radius: 0.85rem;
    background: #fff2cc;
    color: #130d05;
    font-weight: 800;
}

.participant-operator-actions {
    display: grid;
}

.participant-operator-actions button {
    min-height: 2.35rem;
    border-radius: 999px;
    background: #be123c;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
}

.score-grid {
    display: grid;
    gap: 0.65rem;
}

.finished-history-card {
    display: grid;
    gap: 0.65rem;
}

.finished-history-stack {
    display: grid;
    gap: 0.5rem;
}

.finished-history-row {
    display: grid;
    gap: 0.45rem;
    padding: 0.6rem;
    border: 1px solid rgba(197, 151, 69, 0.24);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.04);
}

.finished-history-row.is-editing {
    border-color: rgba(245, 158, 11, 0.64);
}

.finished-history-row__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.finished-history-row__summary div {
    min-width: 0;
}

.finished-history-row strong,
.finished-history-row small,
.finished-history-row p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finished-history-row strong {
    display: block;
    font-size: 0.88rem;
}

.finished-history-row small,
.finished-history-row p {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.finished-history-row__summary button:not(.finished-history-edit-action),
.finished-history-editor .operator-actions button {
    min-height: 1.85rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: #fff2cc;
    color: #130d05;
    font-size: 0.7rem;
    font-weight: 900;
}

.finished-history-editor {
    display: grid;
    gap: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
}

.leaderboard {
    padding: 0.78rem;
    border: 1px solid rgba(197, 151, 69, 0.16);
    border-radius: 0.85rem;
    background:
        radial-gradient(circle at 100% 0, rgba(244, 201, 107, 0.055), transparent 10rem),
        linear-gradient(180deg, rgba(255, 247, 230, 0.045), rgba(255, 247, 230, 0.012)),
        rgba(8, 7, 5, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 230, 0.045),
        0 0.85rem 1.8rem rgba(0, 0, 0, 0.15);
}

.leaderboard__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.leaderboard__title {
    display: grid;
    min-width: 0;
    gap: 0.35rem;
}

.leaderboard__header h3 {
    margin: 0;
    font-size: 0.9rem;
}

.leaderboard__prizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.leaderboard__prizes span {
    display: inline-flex;
    min-height: 1.25rem;
    align-items: center;
    padding: 0 0.42rem;
    border: 1px solid rgba(244, 201, 107, 0.26);
    border-radius: 999px;
    background: rgba(214, 163, 68, 0.11);
    color: #f8d783;
    font-size: 0.62rem;
    font-weight: 900;
    white-space: nowrap;
}

.leaderboard__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.28rem;
}

.leaderboard__details {
    margin: 0 0 0.55rem;
    padding: 0.55rem;
    border: 1px solid rgba(197, 151, 69, 0.18);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.62rem;
    line-height: 1.35;
}

.leaderboard__details[hidden] {
    display: none !important;
}

.leaderboard-add-action {
    min-height: 2rem;
    border: 1px dashed rgba(244, 201, 107, 0.45);
    border-radius: 0.55rem;
    background: rgba(214, 163, 68, 0.08);
    color: #f8d783;
    font-size: 0.76rem;
    font-weight: 900;
}

.leaderboard--add {
    padding: 0.8rem;
}

.challenge-editor {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem 0 0.8rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.challenge-editor__grid,
.challenge-editor__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.challenge-editor__actions {
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
}

.challenge-editor button {
    min-height: 2.75rem;
    border-radius: 0.8rem;
    background: #fff2cc;
    color: #130d05;
    font-weight: 900;
}

.leaderboard ol {
    display: grid;
    gap: 0.36rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.leaderboard li {
    gap: 0.5rem;
}

.leaderboard li span {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    border-radius: 999px;
    background: rgba(214, 163, 68, 0.16);
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 900;
}

.leaderboard li strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard li em {
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 900;
}

.empty-state {
    margin: 0;
    color: var(--muted);
}

.operator-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 0.7rem rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(0.35rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 44rem) {
    .app-shell {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        align-items: start;
        gap: 1.35rem;
        padding-top: 1rem;
    }

    .hero-card,
    .app-shell > .card {
        grid-column: 1 / -1;
    }

    .hero-card h1 {
        max-width: 38rem;
    }

    .hero-grid {
        max-width: 26rem;
    }
}

@media (min-width: 62rem) {
    .leaderboard-stack {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }

    .leaderboard--add,
    .leaderboard-add-action {
        grid-column: 1 / -1;
    }

    .bottom-video-carousel__track {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        overflow: visible;
    }

    .bottom-video-carousel__tile {
        width: 100%;
        max-width: none;
        height: clamp(16rem, 30vw, 26rem);
    }

    .bottom-video-carousel__tile.is-portrait-media {
        height: clamp(24rem, 52vw, 42rem);
    }

    .bottom-video-carousel__tile:not(.is-active) {
        display: none;
    }

    .bottom-video-carousel__tile.is-active {
        display: block;
    }
}

@media (min-width: 78rem) {
    .app-shell {
        gap: 1.65rem;
        padding-inline: 1rem;
    }

    .hero-card {
        padding: 0.9rem 1.1rem 1.1rem;
    }

    .card {
        padding: 1.15rem;
    }

    .section-card--primary {
        padding: 1.3rem;
    }

    .section-card--entry {
        scroll-margin-top: 10rem;
    }

    .section-card::before {
        inset: -0.7rem -0.55rem;
    }

    .status-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.7fr);
        column-gap: 0.7rem;
    }

    .status-card .participant-card__header,
    .status-card .status-grid,
    .status-card .participant-list,
    .status-card .participant-operator-editor,
    .status-card .form-note {
        grid-column: 1 / -1;
    }

    .status-card .secondary-action--quiet {
        grid-column: 2;
    }
}

@media (max-width: 34rem) {
    .hero-grid,
    .status-grid {
        display: grid;
    }

    .participant-summary__main {
        grid-column: 1 / -1;
    }
}
