/* Smart-TV safe styles — no CSS variables, clamp(), or min() */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: #f5f5f5;
}

.tv-body {
    background-color: #0a1628;
    color: #f5f5f5;
}

.tv-bg-layer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.tv-bg-layer.hidden {
    display: none !important;
}

.tv-bg-idle-fallback {
    width: 100%;
    height: 100%;
    background-color: #0a1628;
    background-image: -webkit-radial-gradient(circle at center, #1a2f4d 0%, #0a1628 72%);
    background-image: radial-gradient(circle at center, #1a2f4d 0%, #0a1628 72%);
}

.tv-bg-idle-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.tv-bg-idle-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-bg-play {
    background-color: #0a1628;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.tv-bg-play-default {
    background-image: none;
    background-color: #0a1628;
    background-image: -webkit-radial-gradient(circle at center, #1a4d2e 0%, #0a1628 70%);
    background-image: radial-gradient(circle at center, #1a4d2e 0%, #0a1628 70%);
}

.tv-bg-video {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.tv-body.tv-body-custom-bg::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 0;
}

#tv-app {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 100%;
}

.tv-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 24px 32px;
}

.tv-header-brand {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    min-width: 0;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
}

.tv-header-logo-wrap {
    max-width: none;
}

.tv-header-logo-wrap.hidden {
    display: none !important;
}

#venue-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.venue-name {
    font-size: 28px;
    font-weight: 600;
    color: #f5f5f5;
}

.venue-name.hidden {
    display: none !important;
}

.game-logo-wrap--setup {
    position: fixed;
    top: 72px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    pointer-events: none;
    margin: 0;
    width: 100%;
    max-width: 90vw;
}

.game-logo-wrap--play {
    position: fixed;
    top: 104px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    pointer-events: none;
}

.game-logo-wrap.hidden {
    display: none !important;
}

.game-logo {
    display: block;
    margin: 0 auto;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mute-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #f5f5f5;
    font-size: 28px;
    padding: 12px 20px;
    border-radius: 8px;
}

.tv-phase {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    min-height: 70%;
    color: #f5f5f5;
}

.tv-phase.hidden {
    display: none !important;
}

.idle-logo {
    font-size: 72px;
    font-weight: 800;
    color: #f4c430;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 16px;
}

.idle-text {
    font-size: 36px;
    color: #f5f5f5;
    opacity: 0.8;
    margin-top: 16px;
}

.setup-title {
    font-size: 48px;
    color: #f5f5f5;
    margin: 0 0 20px;
}

.setup-players-panel {
    display: inline-block;
    width: 90%;
    max-width: 560px;
    margin: 0 auto 28px;
    padding: 28px 32px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.setup-player-counter {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: none;
    text-align: center;
}

.setup-player-count {
    font-size: 32px;
    font-weight: 700;
    color: #f4c430;
    margin-bottom: 12px;
}

.setup-player-count.is-empty {
    color: rgba(245, 245, 245, 0.75);
    font-weight: 600;
}

.setup-player-names {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    text-align: left;
}

.setup-player-names li {
    font-size: 28px;
    color: #f5f5f5;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.setup-player-names li:last-child {
    border-bottom: none;
}

.setup-player-names li.setup-player-empty {
    text-align: center;
    font-size: 22px;
    color: rgba(245, 245, 245, 0.7);
    border-bottom: none;
    padding: 4px 0 0;
}

.setup-player-number {
    display: inline-block;
    min-width: 2.5em;
    color: rgba(244, 196, 48, 0.9);
    font-weight: 700;
}

.setup-join-wrap {
    position: fixed;
    right: 24px;
    bottom: 80px;
    margin: 0;
    text-align: right;
    z-index: 6;
}

.setup-join-wrap .qr-link-panel {
    max-width: 300px;
    padding: 20px 22px;
    text-align: center;
}

.setup-join-wrap .join-link-label {
    font-size: 22px;
    margin-bottom: 12px;
}

.setup-join-wrap .join-link-url {
    font-size: 16px;
    padding: 0;
    margin-top: 12px;
}

.setup-join-wrap.hidden {
    display: none !important;
}

#phase-setup {
    padding-bottom: 96px;
}

.setup-ticker {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.82);
    border-top: 2px solid rgba(244, 196, 48, 0.35);
    overflow: hidden;
    z-index: 5;
}

.setup-ticker-track {
    width: 100%;
    height: 64px;
    overflow: hidden;
}

.setup-ticker-content {
    display: inline-block;
    white-space: nowrap;
    height: 64px;
    line-height: 64px;
    -webkit-animation: setup-ticker-scroll 35s linear infinite;
    animation: setup-ticker-scroll 35s linear infinite;
}

.setup-ticker-content.setup-ticker-content-static {
    display: block;
    width: 100%;
    text-align: center;
    -webkit-animation: none;
    animation: none;
}

.setup-ticker-run {
    display: inline-block;
    white-space: nowrap;
}

.setup-ticker-item {
    display: inline-block;
    margin: 0 40px;
    font-size: 32px;
    font-weight: 700;
    color: #f5f5f5;
    vertical-align: middle;
}

.setup-ticker-item.setup-ticker-empty {
    font-size: 24px;
    font-weight: 600;
    color: rgba(245, 245, 245, 0.75);
}

.setup-ticker-sep {
    display: inline-block;
    margin: 0 8px;
    color: rgba(244, 196, 48, 0.55);
}

@-webkit-keyframes setup-ticker-scroll {
    0% { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes setup-ticker-scroll {
    0% { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

.player-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 48px;
    color: #f5f5f5;
    max-height: 55vh;
    overflow: hidden;
}

.player-list li {
    padding: 10px 0;
}

.player-list.players-medium {
    font-size: 40px;
}

.player-list.players-medium li {
    padding: 8px 0;
}

.player-list.players-many {
    font-size: 32px;
}

.player-list.players-many li {
    padding: 6px 0;
}

.player-list.players-crowded {
    font-size: 26px;
}

.player-list.players-crowded li {
    padding: 4px 0;
}

.player-list li.setup-empty {
    font-size: 28px;
    opacity: 0.75;
}

.control-link-wrap,
.join-link-wrap {
    margin-top: 32px;
    text-align: center;
}

.qr-link-panel {
    display: inline-block;
    max-width: 520px;
    padding: 28px 32px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.control-link-label,
.join-link-label {
    font-size: 28px;
    color: #f5f5f5;
    margin: 0 0 16px;
}

.control-qr,
.join-qr {
    display: block;
    margin: 0 auto 16px;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
}

.control-link-url,
.join-link-url {
    font-size: 20px;
    color: #f4c430;
    word-break: break-all;
    padding: 0;
    margin: 0;
}

.player-number {
    font-size: 32px;
    font-weight: 600;
    color: rgba(245, 245, 245, 0.72);
    line-height: 1.2;
    margin: 8px 0 24px;
}

.player-name {
    font-size: 120px;
    font-weight: 900;
    color: #f4c430;
    line-height: 1;
}

.player-on-table-badge {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f5f5f5;
    background: rgba(26, 77, 46, 0.92);
    border: 2px solid rgba(244, 196, 48, 0.65);
    display: inline-block;
    padding: 10px 28px;
    border-radius: 999px;
    margin: 16px 0 12px;
}

.player-on-table-badge.hidden {
    display: none !important;
}

.player-lives {
    margin-top: 8px;
}

#phase-draw {
    text-align: center;
    padding-top: 10vh;
}

.draw-spinner-label {
    font-size: 36px;
    color: rgba(245, 245, 245, 0.72);
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}

.draw-spinner-frame {
    min-height: 220px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.draw-player-name {
    font-size: 192px;
    font-weight: 800;
    color: #f5f5f5;
    line-height: 1.05;
    max-width: 92vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-transition: color 0.12s ease-out, -webkit-transform 0.12s ease-out;
    transition: color 0.12s ease-out, transform 0.12s ease-out;
}

.draw-spinner-frame.is-tick .draw-player-name {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
}

.draw-spinner-frame.is-landed .draw-player-name {
    color: #f4c430;
    -webkit-transform: scale(1.04);
    transform: scale(1.04);
    -webkit-animation: draw-name-land 0.55s ease-out;
    animation: draw-name-land 0.55s ease-out;
}

@-webkit-keyframes draw-name-land {
    0% { -webkit-transform: scale(0.98); transform: scale(0.98); }
    45% { -webkit-transform: scale(1.08); transform: scale(1.08); }
    100% { -webkit-transform: scale(1.04); transform: scale(1.04); }
}

@keyframes draw-name-land {
    0% { -webkit-transform: scale(0.98); transform: scale(0.98); }
    45% { -webkit-transform: scale(1.08); transform: scale(1.08); }
    100% { -webkit-transform: scale(1.04); transform: scale(1.04); }
}

.minimized-bar {
    background: rgba(0, 0, 0, 0.5);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 36px;
    color: #f5f5f5;
}

#phase-minimized {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 96px;
    min-height: 0;
    padding: 0 32px;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 3;
}

#phase-minimized .minimized-bar {
    pointer-events: auto;
}

.awaiting-text {
    font-size: 28px;
    color: #f5f5f5;
    opacity: 0.7;
    margin-top: 16px;
}

.catchphrase {
    font-size: 72px;
    font-weight: 800;
    color: #f4c430;
}

.black-ball-badge {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #111;
    background: #f4c430;
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.black-ball-player-number {
    font-size: 48px;
    color: rgba(245, 245, 245, 0.75);
    margin-bottom: 8px;
}

.black-ball-player-name {
    font-size: 96px;
    font-weight: 900;
    color: #f4c430;
    line-height: 1.05;
    margin-bottom: 24px;
}

.black-ball-catchphrase {
    font-size: 56px;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 28px;
}

.black-ball-lives {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

#phase-black-ball {
    text-align: center;
    padding-top: 8vh;
}

.bye-message {
    font-size: 96px;
    font-weight: 900;
    color: #e74c3c;
}

.podium-title {
    font-size: 56px;
    color: #f4c430;
    margin-bottom: 32px;
}

.podium-list {
    width: 90%;
    max-width: 600px;
}

.podium-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 24px 32px;
    border-radius: 12px;
    font-size: 36px;
    color: #f5f5f5;
    margin-bottom: 16px;
}

.podium-item.place-1 { border: 3px solid #f4c430; }
.podium-item.place-2 { border: 3px solid #c0c0c0; }
.podium-item.place-3 { border: 3px solid #cd7f32; }

.stats-table {
    position: fixed;
    left: 24px;
    top: 80px;
    width: 340px;
    max-height: calc(100vh - 180px);
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    padding: 20px;
    font-size: 22px;
    color: #f5f5f5;
    z-index: 4;
}

.stats-table.hidden {
    display: none !important;
}

.stats-table h3 {
    margin: 0 0 6px;
    font-size: 20px;
    text-transform: uppercase;
    color: #f4c430;
    opacity: 0.95;
}

.stats-table-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: stats-rank;
}

.stats-table-list li {
    counter-increment: stats-rank;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-table-list li::before {
    content: counter(stats-rank) '.';
    -webkit-flex: 0 0 28px;
    flex: 0 0 28px;
    font-weight: 800;
    color: rgba(244, 196, 48, 0.85);
}

.stats-table-list li.stats-rank-1::before {
    color: #f4c430;
}

.stats-table-list li.stats-rank-2::before {
    color: #d8d8d8;
}

.stats-table-list li.stats-rank-3::before {
    color: #cd7f32;
}

.stats-table-body {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}

.stats-table-name {
    display: block;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    word-break: break-word;
}

.stats-table-list li.stats-table-join-item::before {
    content: none;
}

.stats-table-list li.stats-table-empty {
    counter-increment: none;
}

.stats-table-list li.stats-table-empty::before {
    content: none;
}

.stats-table-stats {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    color: rgba(245, 245, 245, 0.72);
}

.stats-table-empty {
    font-size: 16px;
    color: rgba(245, 245, 245, 0.6);
    padding: 8px 0;
}

.scoreboard {
    position: fixed;
    right: 24px;
    top: 80px;
    width: 420px;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    padding: 22px;
    font-size: 26px;
    color: #f5f5f5;
    z-index: 4;
}

.scoreboard.scoreboard-left {
    left: 24px;
    right: auto;
    overflow: hidden;
}

.scoreboard.scoreboard-right {
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.scoreboard.players-medium {
    width: 400px;
    padding: 20px;
    font-size: 24px;
}

.scoreboard.players-many {
    width: 380px;
    padding: 18px;
    font-size: 22px;
}

.scoreboard.players-crowded {
    width: 360px;
    padding: 16px;
    font-size: 20px;
}

.scoreboard.scoreboard-expanded {
    left: auto;
    right: 24px;
    width: 680px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.scoreboard.scoreboard-expanded.scoreboard-left {
    display: none !important;
}

.scoreboard.scoreboard-expanded.players-crowded,
.scoreboard.scoreboard-expanded.players-overflow {
    font-size: 13px;
    padding: 12px 16px;
}

.scoreboard.players-overflow {
    width: auto;
    font-size: 12px;
    padding: 10px 14px;
}

.scoreboard.scoreboard-expanded ul {
    display: block;
    -webkit-column-count: 2;
    column-count: 2;
    -webkit-column-gap: 20px;
    column-gap: 20px;
}

.scoreboard.scoreboard-expanded li {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}

.scoreboard.hidden {
    display: none !important;
}

.round-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 14px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
    background: #f4c430;
    border: 2px solid rgba(255, 255, 255, 0.35);
    padding: 8px 22px;
    border-radius: 999px;
    text-align: center;
}

.round-badge.hidden {
    display: none !important;
}

.scoreboard h3 {
    margin: 0 0 14px;
    font-size: 22px;
    text-transform: uppercase;
    color: #f4c430;
    opacity: 0.95;
    text-align: center;
}

.scoreboard.players-medium h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.scoreboard.players-many h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.scoreboard.players-crowded h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.scoreboard ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scoreboard li {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #f5f5f5;
    gap: 12px;
}

.scoreboard-name {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    text-align: left;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
}

.scoreboard-goes {
    display: inline-block;
    font-size: 0.48em;
    font-weight: 500;
    line-height: 1.1;
    color: rgba(245, 245, 245, 0.62);
    vertical-align: baseline;
    margin-left: 0.2em;
    white-space: nowrap;
}

.scoreboard-lives {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
}

.scoreboard.players-medium li {
    padding: 8px 0;
}

.scoreboard.players-many li {
    padding: 6px 0;
}

.scoreboard.players-crowded li {
    padding: 4px 0;
}

.scoreboard li.eliminated {
    opacity: 0.35;
    text-decoration: line-through;
}

.scoreboard-list-wrap {
    margin: 0;
    padding: 0;
}

.scoreboard-scroll-viewport {
    overflow: hidden;
    max-height: 780px;
}

.scoreboard.players-medium .scoreboard-scroll-viewport {
    max-height: 750px;
}

.scoreboard.players-many .scoreboard-scroll-viewport,
.scoreboard.players-crowded .scoreboard-scroll-viewport {
    max-height: 720px;
}

.scoreboard.players-overflow .scoreboard-scroll-viewport {
    max-height: 700px;
}

.scoreboard-scroll-content {
    will-change: transform;
    -webkit-animation: scoreboard-scroll-vertical 60s linear infinite;
    animation: scoreboard-scroll-vertical 60s linear infinite;
}

.scoreboard-scroll-chunk {
    margin: 0;
    padding: 0;
}

.stats-table-list-wrap {
    margin: 0;
    padding: 0;
}

.stats-table-scroll-viewport {
    overflow: hidden;
    max-height: 620px;
}

.stats-table-scroll-content {
    will-change: transform;
    -webkit-animation: scoreboard-scroll-vertical 60s linear infinite;
    animation: scoreboard-scroll-vertical 60s linear infinite;
}

.stats-table-scroll-chunk {
    margin: 0;
    padding: 0;
}

@-webkit-keyframes scoreboard-scroll-vertical {
    0% { -webkit-transform: translateY(0); transform: translateY(0); }
    100% { -webkit-transform: translateY(-50%); transform: translateY(-50%); }
}

@keyframes scoreboard-scroll-vertical {
    0% { -webkit-transform: translateY(0); transform: translateY(0); }
    100% { -webkit-transform: translateY(-50%); transform: translateY(-50%); }
}

.stats-table-list li.eliminated {
    opacity: 0.45;
}

.stats-table-scope {
    margin: -8px 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.62);
}

.stats-panel-scope {
    padding: 8px 24px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 196, 48, 0.8);
    text-align: center;
}

.stats-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.82);
    border-top: 2px solid rgba(244, 196, 48, 0.35);
    overflow: hidden;
    z-index: 5;
}

.stats-panel.hidden {
    display: none !important;
}

.stats-leaders {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 80px;
    padding: 14px 40px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-leader {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 24px;
    min-width: 0;
    padding: 0 8px;
}

.stats-leader-rank {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    min-width: 3.25em;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stats-leader-1 .stats-leader-rank {
    color: #f4c430;
}

.stats-leader-2 .stats-leader-rank {
    color: #d8d8d8;
}

.stats-leader-3 .stats-leader-rank {
    color: #cd7f32;
}

.stats-leader-name {
    font-size: 24px;
    font-weight: 700;
    color: #f5f5f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.stats-goes-count {
    font-size: 16px;
    font-weight: 400;
    color: rgba(245, 245, 245, 0.72);
    margin-left: 8px;
}

.stats-ticker-item .stats-goes-count {
    font-size: 18px;
}

.stats-leader-name.empty {
    opacity: 0.35;
}

.stats-ticker-track {
    width: 100%;
    height: 56px;
    overflow: hidden;
}

.stats-ticker-content {
    display: inline-block;
    white-space: nowrap;
    height: 56px;
    line-height: 56px;
    -webkit-animation: stats-ticker-scroll 45s linear infinite;
    animation: stats-ticker-scroll 45s linear infinite;
}

.stats-ticker-run {
    display: inline-block;
    white-space: nowrap;
}

.stats-ticker-item {
    display: inline-block;
    margin: 0 40px;
    font-size: 24px;
    color: #f5f5f5;
    vertical-align: middle;
}

.stats-ticker-item.eliminated {
    opacity: 0.45;
}

.stats-ticker-sep {
    display: inline-block;
    margin: 0 8px;
    color: rgba(244, 196, 48, 0.55);
}

@-webkit-keyframes stats-ticker-scroll {
    0% { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes stats-ticker-scroll {
    0% { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

.sponsor-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.sponsor-overlay.hidden {
    display: none !important;
}

.sponsor-overlay-inner {
    width: 100%;
    max-width: 960px;
    text-align: center;
}

.sponsor-badge {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #f4c430;
    margin-bottom: 24px;
    opacity: 0.85;
}

.sponsor-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    margin-bottom: 20px;
}

.sponsor-media img,
.sponsor-media video {
    max-width: 100%;
    max-height: 62vh;
    border-radius: 12px;
}

.sponsor-title {
    font-size: 32px;
    font-weight: 700;
    color: #f5f5f5;
}
