/**
 * Swiss key visual identity — scoped under .snooker-swiss so RR stays unchanged.
 */

.snooker-swiss {
    --snooker-swiss-amber: #e8b84a;
    --snooker-swiss-amber-dim: rgba(232, 184, 74, 0.35);
    --snooker-swiss-gold: #d4a017;
    --snooker-swiss-silver: #a8b0bc;
    --snooker-swiss-bronze: #c47a3a;
    --snooker-swiss-felt: radial-gradient(120% 80% at 10% 0%, rgba(61, 214, 198, 0.12), transparent 55%),
        linear-gradient(155deg, #0c1614 0%, #15241f 42%, #101820 100%);
    background: var(--snooker-swiss-felt);
}

.snooker-swiss__toolbar {
    gap: 0.65rem 1rem;
    align-items: flex-start;
}

.snooker-swiss__toolbar-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
}

.snooker-swiss__title {
    font-size: 16px;
    letter-spacing: 0.04em;
}

.snooker-swiss__rounds-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0c1614;
    background: linear-gradient(135deg, var(--snooker-rr-accent), #2bb8a8);
    box-shadow: 0 0 0 1px rgba(61, 214, 198, 0.35);
}

.snooker-swiss__progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    min-width: 140px;
    max-width: 220px;
    flex: 1 1 140px;
}

.snooker-swiss__progress-track {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.snooker-swiss__progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--snooker-rr-accent), var(--snooker-swiss-amber));
    transition: width 0.45s ease;
}

.snooker-swiss__progress-label {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--snooker-swiss-amber);
    min-width: 2.5em;
    text-align: right;
}

.snooker-swiss__hint {
    opacity: 0.85;
}

.snooker-swiss__layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
}

.snooker-swiss--standings-hidden .snooker-swiss__layout {
    grid-template-columns: minmax(0, 1fr);
}

.snooker-swiss--standings-hidden .snooker-swiss__standings-panel {
    display: none;
}

@media (max-width: 900px) {
    .snooker-swiss__layout {
        grid-template-columns: 1fr;
    }

    .snooker-swiss .snooker-rr__group.is-active .snooker-swiss__layout {
        flex-direction: column;
        height: auto;
        min-height: min(72vh, 820px);
    }

    .snooker-swiss__standings-panel {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        max-height: 240px;
    }

    .snooker-swiss__viewport {
        min-height: min(60vh, 640px);
    }

    .snooker-swiss__progress {
        margin-left: 0;
        max-width: none;
        width: 100%;
    }
}

.snooker-swiss__standings-panel {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.snooker-swiss__standings {
    position: static;
    top: auto;
    max-height: none;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-color: rgba(61, 214, 198, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.snooker-swiss__standings-head {
    position: sticky;
    top: 0;
    z-index: 1;
    flex: 0 0 auto;
    background: rgba(12, 22, 20, 0.92);
    backdrop-filter: blur(6px);
}

.snooker-swiss__standings-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.snooker-swiss__standings-toggle {
    margin-left: 4px;
}

.snooker-swiss__standings .name {
    max-width: 140px;
}

.snooker-swiss__player {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
}

.snooker-swiss__standing-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.snooker-swiss__standing-avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.snooker-swiss__player-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snooker-swiss__pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35em;
}

.snooker-swiss__pts-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6em;
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 11px;
    background: rgba(61, 214, 198, 0.16);
    color: #fff;
    border: 1px solid rgba(61, 214, 198, 0.35);
}

.snooker-swiss__standing-row {
    transition: background 0.18s ease;
}

.snooker-swiss__standing-row:hover {
    background: rgba(61, 214, 198, 0.08);
}

.snooker-swiss__standing-row.is-podium-1,
.snooker-swiss__standing-row.is-podium-2,
.snooker-swiss__standing-row.is-podium-3 {
    position: relative;
}

.snooker-swiss__standing-row.is-podium-1::before,
.snooker-swiss__standing-row.is-podium-2::before,
.snooker-swiss__standing-row.is-podium-3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 0 2px 2px 0;
}

.snooker-swiss__standing-row.is-podium-1::before {
    background: var(--snooker-swiss-gold);
}

.snooker-swiss__standing-row.is-podium-2::before {
    background: var(--snooker-swiss-silver);
}

.snooker-swiss__standing-row.is-podium-3::before {
    background: var(--snooker-swiss-bronze);
}

.snooker-swiss__standing-row.is-podium-1 .snooker-swiss__pos {
    color: var(--snooker-swiss-gold);
}

.snooker-swiss__standing-row.is-podium-2 .snooker-swiss__pos {
    color: var(--snooker-swiss-silver);
}

.snooker-swiss__standing-row.is-podium-3 .snooker-swiss__pos {
    color: var(--snooker-swiss-bronze);
}

.snooker-swiss .snooker-rr__standings tr.is-highlight {
    background: rgba(232, 184, 74, 0.14);
    box-shadow: inset 3px 0 0 var(--snooker-swiss-amber);
}

.snooker-swiss__column {
    animation: snooker-swiss-col-in 0.4s ease both;
    animation-delay: calc(var(--snooker-swiss-col-i, 0) * 45ms);
}

@keyframes snooker-swiss-col-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .snooker-swiss__column {
        animation: none;
    }

    .snooker-swiss__match {
        transition: none;
    }
}

.snooker-swiss__column-title {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 2px;
    align-items: center;
    margin-bottom: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: none;
    letter-spacing: 0.02em;
}

.snooker-swiss__column-step {
    grid-row: 1 / span 2;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #0c1614;
    background: rgba(255, 255, 255, 0.75);
}

.snooker-swiss__column-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--snooker-rr-text);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.snooker-swiss__column-meta {
    grid-column: 2;
    margin: 0;
    font-size: 10px;
    color: var(--snooker-rr-muted);
    letter-spacing: 0.03em;
    text-transform: none;
    font-weight: 500;
}

.snooker-swiss__latest-tag {
    display: inline-flex;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1408;
    background: var(--snooker-swiss-amber);
}

.snooker-swiss__column.is-latest {
    position: relative;
}

.snooker-swiss__column.is-latest .snooker-swiss__column-title {
    border-color: var(--snooker-swiss-amber-dim);
    box-shadow: 0 0 0 1px rgba(232, 184, 74, 0.12), 0 0 18px rgba(232, 184, 74, 0.12);
}

.snooker-swiss__column.is-latest .snooker-swiss__column-step {
    background: linear-gradient(145deg, var(--snooker-swiss-amber), #f0d078);
}

.snooker-swiss__match {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.snooker-swiss__match:hover {
    transform: translateY(-2px);
    border-color: rgba(61, 214, 198, 0.35);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(61, 214, 198, 0.12);
}

.snooker-swiss .is-filtering .snooker-swiss__match.is-related,
.snooker-swiss .snooker-rr__match.is-related {
    border-color: var(--snooker-swiss-amber-dim);
    box-shadow: 0 0 0 1px rgba(232, 184, 74, 0.25);
}

.snooker-swiss__badge {
    display: inline-flex;
    align-items: center;
    max-width: 70%;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid transparent;
}

.snooker-swiss__badge.is-done {
    color: #0c1614;
    background: rgba(61, 214, 198, 0.85);
    border-color: rgba(61, 214, 198, 0.5);
}

.snooker-swiss__badge.is-wo {
    color: #1a1408;
    background: rgba(232, 184, 74, 0.9);
    border-color: rgba(232, 184, 74, 0.5);
}

.snooker-swiss__badge.is-scheduled {
    color: var(--snooker-rr-muted);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.snooker-swiss .snooker-rr__slot.is-winner {
    background: rgba(61, 214, 198, 0.14);
}

.snooker-swiss .snooker-rr__slot.is-loser {
    opacity: 0.72;
}

/* Worlds-style Swiss record flow (visual only; rules unchanged) */
.snooker-swiss__worlds-board {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
}

.snooker-swiss__worlds-track {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 52px;
    min-width: min-content;
    min-height: 420px;
    padding: 8px 8px 16px;
}

.snooker-swiss__worlds-svg {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.snooker-swiss__worlds-path {
    fill: none;
    stroke: rgba(61, 214, 198, 0.45);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(61, 214, 198, 0.2));
}

.snooker-swiss__worlds-path.is-win {
    stroke: rgba(61, 214, 198, 0.7);
}

.snooker-swiss__worlds-path.is-lose {
    stroke: rgba(232, 184, 74, 0.45);
}

.snooker-swiss__worlds-path.is-outcome {
    stroke: rgba(168, 120, 255, 0.55);
}

.snooker-swiss__worlds-col {
    flex: 0 0 auto;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.snooker-swiss__worlds-col-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    flex: 0 0 auto;
}

.snooker-swiss__worlds-col-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #e8f4f1;
}

.snooker-swiss__worlds-buckets {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: stretch;
    gap: 28px;
    flex: 1 1 auto;
    min-height: 0;
}

.snooker-swiss__worlds-buckets--outcome {
    justify-content: space-around;
    gap: 18px;
}

.snooker-swiss__record-bucket {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(61, 214, 198, 0.2);
    border-radius: 10px;
    background: rgba(8, 14, 13, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    flex: 0 0 auto;
}

.snooker-swiss__record-bucket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(90deg, rgba(61, 214, 198, 0.14), transparent 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.snooker-swiss__record-label {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    color: var(--snooker-swiss-amber);
}

.snooker-swiss__record-meta {
    font-size: 10px;
    font-weight: 600;
    color: var(--snooker-rr-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.snooker-swiss__record-matches {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
}

.snooker-swiss__worlds-col--outcome {
    width: 240px;
}

.snooker-swiss__outcome-box {
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(61, 214, 198, 0.45);
    background: linear-gradient(160deg, rgba(18, 72, 64, 0.7), rgba(12, 28, 26, 0.9));
    box-shadow: 0 0 0 1px rgba(61, 214, 198, 0.12), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.snooker-swiss__outcome-box--eliminate {
    border-color: rgba(232, 120, 90, 0.5);
    background: linear-gradient(160deg, rgba(92, 36, 28, 0.65), rgba(28, 14, 12, 0.9));
    box-shadow: 0 0 0 1px rgba(232, 120, 90, 0.12), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.snooker-swiss__outcome-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e8f8f4;
    margin-bottom: 6px;
}

.snooker-swiss__outcome-box--eliminate .snooker-swiss__outcome-title {
    color: #ffe8e0;
}

.snooker-swiss__outcome-hint {
    margin: 0 0 10px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(232, 244, 241, 0.72);
}

.snooker-swiss__outcome-box--eliminate .snooker-swiss__outcome-hint {
    color: rgba(255, 232, 224, 0.72);
}

.snooker-swiss__outcome-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.snooker-swiss__outcome-list li {
    display: grid;
    grid-template-columns: 1.4em 1fr auto;
    gap: 6px;
    align-items: center;
    padding: 5px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
}

.snooker-swiss__outcome-rank {
    font-weight: 800;
    color: var(--snooker-swiss-amber);
    font-variant-numeric: tabular-nums;
}

.snooker-swiss__outcome-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

.snooker-swiss__outcome-wl {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.snooker-swiss__outcome-empty {
    margin: 0;
    font-size: 12px;
    color: rgba(232, 244, 241, 0.65);
}

.snooker-swiss__outcome-box--eliminate .snooker-swiss__outcome-empty {
    color: rgba(255, 232, 224, 0.65);
}

.snooker-swiss__standing-row.is-advanced .snooker-swiss__pos,
.snooker-swiss__standing-row.is-advancer .snooker-swiss__pos {
    color: var(--snooker-swiss-amber);
}

.snooker-swiss__standing-row.is-eliminated {
    opacity: 0.72;
}

.snooker-swiss__status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(232, 244, 241, 0.85);
}

.snooker-swiss__status-badge.is-advanced {
    background: rgba(61, 214, 198, 0.2);
    color: #9cf0e4;
}

.snooker-swiss__status-badge.is-eliminated {
    background: rgba(232, 120, 90, 0.22);
    color: #ffc4b0;
}

@media (max-width: 900px) {
    .snooker-swiss__worlds-col,
    .snooker-swiss__worlds-col--outcome {
        width: 240px;
    }
}

.snooker-swiss__match--placeholder {
    opacity: 0.55;
    border-style: dashed;
}

.snooker-swiss .snooker-rr__slot.is-tbd {
    opacity: 0.7;
}
/* --- Pan/zoom viewport + compact rounds + fullscreen --- */
.snooker-swiss__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.snooker-swiss__controls .btn {
    min-width: 34px;
    border-radius: 8px;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
}

.snooker-swiss__controls .btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(61, 214, 198, 0.35);
}

.snooker-swiss .snooker-rr__group.is-active .snooker-swiss__layout {
    height: min(72vh, 820px);
    min-height: 0;
    display: flex !important;
    align-items: stretch;
    gap: 12px;
}

.snooker-swiss__standings-panel {
    flex: 0 0 260px;
    width: 260px;
    max-width: 260px;
    min-height: 0;
    height: auto;
    align-self: stretch;
}

.snooker-swiss--standings-hidden .snooker-swiss__standings-panel {
    display: none;
}

.snooker-swiss__viewport {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    align-self: stretch;
    cursor: grab;
    overflow: hidden;
    user-select: none;
    border-radius: 12px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61, 214, 198, 0.08), transparent 55%),
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255, 255, 255, 0.02) 40px, rgba(255, 255, 255, 0.02) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255, 255, 255, 0.02) 40px, rgba(255, 255, 255, 0.02) 41px);
}

/* Must come AFTER pan/zoom desktop flex rules (same selectors would otherwise keep 260px on mobile). */
@media (max-width: 900px) {
    .snooker-swiss .snooker-rr__group.is-active .snooker-swiss__layout {
        flex-direction: column;
        height: auto;
        min-height: min(72vh, 820px);
    }

    .snooker-swiss__standings-panel {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        max-height: 240px;
        align-self: stretch;
    }

    .snooker-swiss__viewport {
        min-height: min(60vh, 640px);
        flex: 1 1 auto;
        width: 100%;
    }
}

.snooker-swiss__viewport.is-dragging {
    cursor: grabbing;
}

.snooker-swiss__sheet {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    will-change: transform;
}

.snooker-swiss__worlds-board {
    overflow: visible !important;
    padding: 0 !important;
}

.snooker-swiss__worlds-track {
    display: flex;
    align-items: stretch;
    min-height: 480px !important;
    max-height: none;
    gap: 48px !important;
    padding: 16px 20px 24px !important;
}

.snooker-swiss__worlds-col {
    width: 248px !important;
    min-height: 100%;
    gap: 8px !important;
    display: flex;
    flex-direction: column;
}

.snooker-swiss__worlds-buckets {
    flex: 1 1 auto;
    min-height: 420px;
    justify-content: space-evenly !important;
    gap: 20px !important;
}

.snooker-swiss__record-bucket {
    max-height: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.snooker-swiss__record-matches {
    overflow: visible;
    max-height: none;
    padding: 8px !important;
    gap: 8px !important;
}

/* Avoid RR min-width forcing horizontal scroll inside narrow columns */
.snooker-swiss__worlds-board .snooker-rr__match,
.snooker-swiss__worlds-board .snooker-swiss__match {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.snooker-swiss__match .snooker-rr__slot {
    min-height: 32px;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Fullscreen Swiss: fill the page with a 2-row grid (toolbar + board). */
.sc-bracket-only-page .snooker-swiss {
    margin: 0;
    height: 100% !important;
    min-height: 0;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
    border-radius: 12px;
    overflow: hidden;
}

.sc-bracket-only-page .snooker-swiss__toolbar {
    grid-row: 1;
    flex: none;
}

.sc-bracket-only-page .snooker-swiss .snooker-rr__group:not(.is-active) {
    display: none !important;
}

.sc-bracket-only-page .snooker-swiss .snooker-rr__group.is-active {
    grid-row: 2;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    position: relative;
    padding: 8px 16px 12px !important;
    box-sizing: border-box;
    overflow: hidden;
}

.sc-bracket-only-page .snooker-swiss .snooker-rr__group.is-active .snooker-swiss__layout {
    position: static !important;
    inset: auto !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    box-sizing: border-box;
    padding: 0 !important;
}

.sc-bracket-only-page .snooker-swiss__standings-panel {
    flex: 0 0 260px;
    width: 260px;
    max-width: 260px;
    max-height: none;
    height: 100% !important;
    align-self: stretch;
    min-height: 0;
}

.sc-bracket-only-page .snooker-swiss--standings-hidden .snooker-swiss__standings-panel {
    display: none !important;
}

.sc-bracket-only-page .snooker-swiss__viewport {
    position: relative !important;
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    /* Explicit floor so pan/zoom never collapses to ~padding height */
    min-height: calc(100vh - 160px) !important;
    height: 100% !important;
    align-self: stretch !important;
}

.sc-bracket-only-page .snooker-swiss__worlds-track {
    max-height: none;
    min-height: 560px !important;
}

.sc-bracket-only-page .snooker-swiss__worlds-buckets {
    min-height: 500px;
}

@media (max-width: 900px) {
    .sc-bracket-only-page .snooker-swiss .snooker-rr__group.is-active .snooker-swiss__layout {
        flex-direction: column !important;
        height: auto !important;
    }

    .sc-bracket-only-page .snooker-swiss__standings-panel {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        max-height: 240px;
        height: auto !important;
    }

    .sc-bracket-only-page .snooker-swiss__viewport {
        min-height: min(60vh, 640px) !important;
        height: auto !important;
        width: 100% !important;
    }
}
