        .welcome {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 16px;
            padding: clamp(12px, 2.5vw, 18px);
            border-radius: var(--radius-lg);
            background: var(--panel);
            border: 1px solid var(--panel-border);
            box-shadow: 0 12px 32px rgba(10, 12, 20, 0.55);
        }

        .welcome h1 {
            font-size: clamp(1.4rem, 2.4vw, 1.9rem);
            margin-bottom: 8px;
        }

        .welcome p {
            color: var(--text-muted);
            max-width: 520px;
        }

        .news-copy a {
            color: #4fdcd1bd;
            text-decoration: underline;
            text-decoration-thickness: 1px;
        }

        .news-copy a:hover {
            color: #8ffff1;
        }

        .news-list {
            list-style: none;
            margin: 12px 0 0;
            padding: 0;
            display: grid;
            gap: 8px;
        }

        .news-list li {
            position: relative;
            padding-left: 22px;
            color: var(--text-muted);
        }

        .news-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 10px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #4fdcd1bd;
            box-shadow: 0 0 8px rgba(79, 220, 209, 0.6);
        }

        .cta-row {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 16px 0;
        }

        .welcome-metrics {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
        }

        .welcome-card {
            padding: 12px;
            border-radius: var(--radius-md);
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: var(--panel-soft);
        }

        .welcome-card span {
            display: block;
            font-size: 0.7rem;
            letter-spacing: 0.18em;
            color: var(--text-muted);
        }

        .welcome-card strong {
            font-size: 1.3rem;
        }

        .welcome-slot {
            border-radius: var(--radius-lg);
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: radial-gradient(circle at 18% 18%, rgba(88, 212, 255, 0.14), transparent 42%),
                        radial-gradient(circle at 82% 12%, rgba(92, 120, 255, 0.12), transparent 40%),
                        linear-gradient(145deg, rgba(18, 22, 32, 0.96), rgba(8, 10, 18, 0.9));
            box-shadow: 0 18px 42px rgba(5, 8, 16, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
            padding: clamp(16px, 2.6vw, 22px);
            min-height: 96px;
            overflow: hidden;
            max-height: fit-content;
        }

        .winner-slider {
            display: flex;
            flex-direction: column;
            gap: 18px;
            height: auto;
        }

        .winner-stage {
            position: relative;
            overflow: hidden;
            border-radius: var(--radius-lg);
            background: radial-gradient(circle at 22% 20%, rgba(88, 212, 255, 0.09), transparent 42%),
                        radial-gradient(circle at 78% 12%, rgba(92, 120, 255, 0.08), transparent 40%),
                        linear-gradient(135deg, rgba(9, 12, 22, 0.94), rgba(6, 9, 18, 0.9));
            border: 1px solid rgba(88, 212, 255, 0.28);
            box-shadow: 0 16px 40px rgba(4, 7, 15, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
            padding: 0;
            min-height: 320px;
            backdrop-filter: blur(6px);
            display: flex;
            align-items: center;
        }

        .winner-track {
            display: flex;
            width: 100%;
            min-height: 100%;
            transition: transform 0.6s ease;
            align-items: stretch;
        }

        .winner-card {
            flex: 0 0 100%;
            width: 100%;
            padding: clamp(20px, 5vw, 36px) clamp(30px, 5.8vw, 56px);
            display: grid;
            grid-template-columns: minmax(150px, 200px) 1fr;
            gap: clamp(18px, 3.6vw, 30px);
            align-items: center;
            border-radius: var(--radius-lg);
            background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(8, 14, 26, 0.9));
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 14px 32px rgba(4, 7, 15, 0.55);
        }

        .winner-left {
            display: flex;
            flex-direction: column;
            gap: 16px;
            min-height: clamp(150px, 18vw, 220px);
            align-items: center;
            justify-content: center;
        }

        .winner-avatar {
            width: clamp(118px, 14vw, 150px);
            height: clamp(118px, 14vw, 150px);
            border-radius: 34px;
            background: none;
            border: none;
            box-shadow: 0 14px 32px rgba(5, 8, 16, 0.5);
        }

        .winner-label {
            display: flex;
            flex-direction: column;
            gap: 4px;
            font-size: 0.85rem;
        }

        .winner-label span {
            text-transform: uppercase;
            letter-spacing: 0.28em;
            font-size: 0.68rem;
            color: var(--text-muted);
        }

        .winner-timestamp {
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .winner-details {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: clamp(18px, 3vw, 26px);
            border-radius: var(--radius-lg);
            background: linear-gradient(160deg, rgba(10, 14, 26, 0.92), rgba(14, 20, 34, 0.86));
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 12px 32px rgba(4, 7, 15, 0.48);
        }

        .winner-name {
            font-weight: 800;
            font-size: 1.35rem;
            letter-spacing: 0.01em;
        }

        .winner-stats {
            color: rgba(152, 166, 196, 0.88);
            font-size: 0.98rem;
        }

        .winner-match {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .winner-match span {
            text-transform: uppercase;
            letter-spacing: 0.25em;
            font-size: 0.65rem;
            color: var(--text-muted);
        }

        .winner-match-link {
            display: inline-flex;
            flex-direction: column;
            font-weight: 700;
            color: var(--accent-strong);
            padding: 10px 14px;
            border-radius: var(--radius-sm);
            background: rgba(88, 212, 255, 0.08);
            border: 1px solid rgba(88, 212, 255, 0.2);
            box-shadow: 0 8px 18px rgba(4, 7, 15, 0.4);
            max-width: 220px;
        }

        .winner-match-link small {
            font-size: 0.7rem;
            color: var(--text-muted);
            letter-spacing: 0.12em;
        }

        .winner-indicators {
            position: absolute;
            left: 50%;
            bottom: 8px;
            transform: translateX(-50%);
            display: inline-flex;
            flex-direction: row;
            gap: 6px;
            padding: 6px 18px;
            min-width: 160px;
            justify-content: center;
            align-items: center;
            height: 20px;
            border-radius: 14px;
            background: rgba(4, 7, 15, 0.72);
            border: 1px solid rgba(88, 212, 255, 0.2);
            box-shadow: 0 6px 14px rgba(4, 7, 15, 0.45);
            backdrop-filter: blur(8px);
        }

        .winner-indicators button {
            all: unset;
            width: 6px;
            height: 6px;
            display: block;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.26);
            background: rgba(255, 255, 255, 0.32);
            cursor: pointer;
            transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
        }

        .winner-indicators button.is-active {
            background: var(--accent-strong);
            border-color: rgba(88, 212, 255, 0.78);
            box-shadow: 0 0 0 4px rgba(88, 212, 255, 0.1);
            transform: scale(1.35);
        }

        @media (max-width: 900px) {
            .winner-card {
                grid-template-columns: 1fr;
            }

            .winner-left {
                flex-direction: row;
                align-items: center;
                min-height: auto;
            }

            .winner-label {
                margin-left: 18px;
            }

            .winner-indicators {
                position: static;
                transform: none;
                flex-direction: row;
                justify-content: center;
                background: transparent;
                margin-top: 8px;
            }
        }

        @media (max-width: 540px) {
            .winner-card {
                padding: 20px;
            }

            .winner-left {
                flex-direction: column;
                align-items: flex-start;
                width: 100%;
                gap: 12px;
            }

            .winner-avatar {
                width: 96px;
                height: 96px;
            }

            .winner-label {
                margin-left: 0;
            }

            .winner-match {
                width: 100%;
            }
        }

        .matches {
            border-radius: var(--radius-lg);
            background: var(--panel);
            border: 1px solid var(--panel-border);
            padding: clamp(24px, 5vw, 48px);
        }

        .matches + .matches {
            margin-top: clamp(24px, 5vw, 48px);
        }

        .private-upload {
            border-radius: var(--radius-lg);
            border: 1px solid var(--panel-border);
            background: linear-gradient(145deg, rgba(16, 19, 31, 0.95), rgba(11, 14, 24, 0.92));
            padding: clamp(24px, 5vw, 48px);
        }

        .upload-card {
            border-radius: var(--radius-md);
            border: 1px dashed rgba(255, 255, 255, 0.14);
            padding: clamp(18px, 4vw, 32px);
            background: rgba(255, 255, 255, 0.02);
            display: grid;
            gap: 16px;
        }

        .upload-card form {
            display: grid;
            gap: 16px;
        }

        .upload-card input[type="file"] {
            padding: 12px;
            border-radius: var(--radius-sm);
            border: 1px solid rgba(255, 255, 255, 0.18);
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-primary);
        }

        .upload-card .button-row {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .upload-card .uplbutton {
            padding: 12px 24px;
            border-radius: var(--radius-sm);
            background: linear-gradient(120deg, var(--accent), var(--accent-strong));
            color: var(--bg-primary);
            font-weight: 600;
            border: none;
            cursor: pointer;
        }

        .upload-card .customFieldCont {
            margin-top: 8px;
        }

        .upload-card .customF {
            width: 100%;
            margin-top: 8px;
            padding: 10px;
            border-radius: var(--radius-sm);
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.02);
            color: var(--text-primary);
        }

        .upload-card .gcapcontainer {
            margin-top: 8px;
            width: 100%;
            overflow: hidden;
        }

        .upload-card .gcapcontainer iframe,
        .upload-card .gcapcontainer div {
            max-width: 100%;
        }

        .matches-header {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 24px;
        }

        .matches-header h2 {
            font-size: clamp(1.7rem, 4vw, 2.6rem);
        }

        .match-table-wrap {
            border-radius: var(--radius-md);
            border: 1px solid rgba(255, 255, 255, 0.05);
            background: var(--panel-soft);
            overflow-x: auto;
        }

        .match-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 100%;
        }

        .match-table th,
        .match-table td {
            padding: 14px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            text-align: left;
            word-break: break-word;
            white-space: normal;
        }

        .match-table th {
            text-transform: uppercase;
            letter-spacing: 0.18em;
            font-size: 0.78rem;
            color: var(--text-muted);
        }

        .match-table tr:last-child th,
        .match-table tr:last-child td {
            border-bottom: none;
        }

        .match-id a {
            color: #54b3d6;
            font-weight: 600;
            text-decoration: underline dotted #555555;
            word-break: break-all;
        }

        .match-id a:hover {
            color: #8ddcff;
            text-decoration-color: #8ddcff;
        }

        .legend-server,
        .match-table td,
        .match-table th {
            max-width: 100%;
            word-break: break-word;
        }

        .match-tag {
            display: inline-flex;
            gap: 8px;
            align-items: center;
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.04);
            font-size: 0.85rem;
        }

        .match-badge {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.06);
        }

        .match-empty {
            padding: 32px;
            text-align: center;
            color: var(--text-muted);
        }

        .legend-server {
            max-width: 240px;
            position: relative;
        }

        .server-name {
            position: relative;
            display: inline-flex;
            align-items: center;
            max-width: 100%;
            width: 100%;
            gap: 6px;
        }

        .server-label {
            display: inline-flex;
            align-items: center;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .server-popover {
            position: absolute;
            left: 0;
            right: 0;
            margin: 0 auto;
            bottom: calc(100% + 10px);
            background: rgba(4, 7, 15, 0.96);
            border: 1px solid rgba(88, 212, 255, 0.5);
            border-radius: var(--radius-sm);
            padding: 14px 18px;
            box-shadow: 0 18px 42px rgba(4, 7, 15, 0.65);
            width: min(520px, 90vw);
            max-width: 90vw;
            opacity: 0;
            pointer-events: none;
            transform: translateY(8px);
            transition: opacity 0.18s ease, transform 0.18s ease;
            z-index: 25;
            white-space: normal;
            user-select: text;
            word-break: break-word;
        }

        .server-popover span {
            display: block;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            font-size: 0.68rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .server-popover strong {
            font-size: 0.95rem;
            color: var(--text-primary);
            word-break: break-word;
        }

        .server-name:hover .server-popover,
        .server-name:focus-within .server-popover {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .server-popover.is-visible {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .reveal-handle {
            color: var(--text-primary);
        }

        .reveal-handle:hover {
            color: var(--accent-strong);
        }

        .match-pagination {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 18px;
        }

        .match-pagination a,
        .match-pagination button {
            padding: 8px 14px;
            border-radius: var(--radius-sm);
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.02);
            color: var(--text-primary);
        }

        .match-pagination a.is-active {
            border-color: var(--accent);
            color: var(--accent-strong);
        }

        .match-pagination input {
            width: 80px;
            padding: 8px 10px;
            border-radius: var(--radius-sm);
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.02);
            color: var(--text-primary);
        }

        @media (max-width: 760px) {
            .site-shell {
                padding: 16px;
            }

            header {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }

            .brand img {
                width: 42px;
                height: 42px;
            }

            .brand-title {
                font-size: 1rem;
            }

            .brand-subtitle {
                font-size: 0.72rem;
            }

            .matches,
            .private-upload {
                padding: 16px;
            }

            .match-table-wrap {
                overflow: visible;
            }

            .match-table thead {
                display: none;
            }

            .match-table tbody {
                display: grid;
                gap: 14px;
            }

            .match-table tr {
                display: grid;
                gap: 8px;
                padding: 16px;
                border: 1px solid rgba(255, 255, 255, 0.05);
                border-radius: var(--radius-md);
                background: rgba(33, 37, 54, 0.6);
            }

            .match-table td {
                border-bottom: none;
                padding: 6px 0;
                display: grid;
                grid-template-columns: max-content 1fr;
                gap: 8px;
            }

            .match-table td::before {
                content: attr(data-label);
                text-transform: uppercase;
                letter-spacing: 0.2em;
                font-size: 0.65rem;
                color: var(--text-muted);
            }

            .match-id a {
                word-break: break-all;
            }

            .legend-server {
                max-width: 100%;
                white-space: normal;
            }

            input[type="text"],
            input[type="search"],
            input[type="number"],
            input[type="file"],
            select {
                width: 100%;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .upload-card .button-row {
                gap: 10px;
            }

            .match-tag {
                flex-wrap: wrap;
                max-width: 100%;
            }

            .server-name {
                flex-wrap: wrap;
            }

            .server-label {
                white-space: normal;
                word-break: break-word;
            }

            .server-popover {
                position: absolute;
                left: 0;
                right: 0;
                margin: 0 auto;
                width: auto;
                max-width: calc(100vw - 20px);
                bottom: calc(100% + 6px);
                transform: none;
                white-space: normal;
                word-break: break-all;
            }
        }

        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            border: 0;
        }

.custom-score-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-score-fields {
    display: none;
}
