        :root {
            --home-bg: #ecf0ff;
            --home-text: #0f172a;
            --home-muted: #667085;
            --home-card: rgba(255, 255, 255, 0.92);
            --home-border: #dbe4f0;
            --home-blue: #2563eb;
            --home-blue-dark: #1d4ed8;
            --home-soft: #f3f6fa;
        }

        body {
            background: var(--home-bg);
            color: var(--home-text);
            font-family: "Tektur", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        .home-page {
            min-height: 100vh;
            padding:6px;
        }

        .home-container {
            width: min(1180px, 100%);
            margin: 0 auto;
        }

        .home-hero {
            position: relative;
            overflow: hidden;
            border: 1px solid var(--home-border);
            border-radius: 17px;
            padding: 34px;
            background:
                radial-gradient(circle at 12% 20%, rgba(37, 99, 235, 0.18), transparent 30%),
                radial-gradient(circle at 90% 10%, rgba(244, 63, 94, 0.14), transparent 28%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
        }

        .home-hero-grid {
            display: grid;
            grid-template-columns: 1.35fr 0.65fr;
            gap: 28px;
            align-items: center;
        }

        .home-kicker {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 999px;
            background: #8BC34A;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 18px;
        }

        .home-title {
            margin: 0;
            font-size: clamp(34px, 6vw, 68px);
            line-height: 0.95;
            letter-spacing: -0.05em;
            text-transform: uppercase;
        }

        .home-title span {
            color: var(--home-blue);
        }

        .home-subtitle {
            max-width: 720px;
            margin: 18px 0 0;
            font-size: 17px;
            line-height: 1.55;
            color: var(--home-muted);
        }

        .home-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 26px;
        }

        .home-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            min-height: 48px;
            padding: 0 18px;
            border-radius: 8px;
            border: 1px solid transparent;
            text-decoration: none;
            font-weight: 800;
            cursor: pointer;
            transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
        }

        .home-btn:hover {
            transform: translateY(-1px);
        }

        .home-btn-primary {
            background: var(--home-blue);
            color: #fff;
            box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
        }

        .home-btn-primary:hover {
            background: var(--home-blue-dark);
        }

        .home-btn-secondary {
            background: #fff;
            color: var(--home-text);
            border-color: var(--home-border);
        }

        .home-stat-card {
            border-radius: 13px;
            padding: 24px;
            background: rgba(255, 255, 255, 0.78);
            border: 1px solid var(--home-border);
        }

        .home-stat-number {
            font-size: 56px;
            line-height: 1;
            font-weight: 900;
            color: var(--home-blue);
        }

        .home-stat-label {
            margin-top: 8px;
            color: var(--home-muted);
            font-size: 14px;
        }

        .home-section {
            margin-top: 26px;
            border: 1px solid var(--home-border);
            border-radius: 14px;
            background: var(--home-card);
            box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
            overflow: hidden;
        }

        .home-section-head {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 16px;
            padding: 24px 26px;
            border-bottom: 1px solid var(--home-border);
        }

        .home-section-title {
            margin: 0;
            font-size: 28px;
            letter-spacing: -0.03em;
            text-transform: uppercase;
        }

        .home-section-desc {
            margin: 6px 0 0;
            color: var(--home-muted);
            font-size: 14px;
        }

        .tournament-table-wrap {
            overflow-x: auto;
        }

        .tournament-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 760px;
        }

        .tournament-table th,
        .tournament-table td {
            padding: 16px 18px;
            border-bottom: 1px solid var(--home-border);
            text-align: left;
            vertical-align: middle;
        }

        .tournament-table th {
            background: #f6f8fb;
            color: #475467;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        .tournament-table tr:last-child td {
            border-bottom: 0;
        }

        .tournament-table tr:hover td {
            background: rgba(37, 99, 235, 0.035);
        }

        .tournament-date {
            white-space: nowrap;
            color: #475467;
            font-size: 14px;
        }

        .tournament-title-link {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: var(--home-text);
            text-decoration: none;
            font-size: 17px;
            font-weight: 900;
        }

        .tournament-title-link:hover {
            color: var(--home-blue);
        }

        .tournament-logo-mini {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            object-fit: cover;
            background: var(--home-soft);
            border: 1px solid var(--home-border);
            flex: 0 0 auto;
        }

        .tournament-logo-fallback {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--home-soft);
            border: 1px solid var(--home-border);
            flex: 0 0 auto;
        }

        .tournament-place {
            color: var(--home-muted);
            font-size: 14px;
        }

        .author-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 62px;
            padding: 7px 10px;
            border-radius: 999px;
            background: rgba(37, 99, 235, 0.09);
            color: var(--home-blue);
            font-weight: 800;
            font-size: 13px;
        }

        .open-link {
            color: var(--home-blue);
            text-decoration: none;
            font-weight: 900;
            white-space: nowrap;
        }

        .open-link:hover {
            text-decoration: underline;
        }

        .create-section {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 24px;
            align-items: center;
            padding: 28px;
            background:
                radial-gradient(circle at 0% 100%, rgba(34, 197, 94, 0.14), transparent 30%),
                rgba(255, 255, 255, 0.92);
        }

        .create-title {
            margin: 0;
            font-size: 30px;
            letter-spacing: -0.035em;
            text-transform: uppercase;
        }

        .create-text {
            margin: 8px 0 0;
            color: var(--home-muted);
            line-height: 1.55;
        }

        .empty-tournaments {
            padding: 36px 26px;
            text-align: center;
            color: var(--home-muted);
        }

        .home-user {
            margin-top: 16px;
            color: var(--home-muted);
            font-size: 14px;
        }

        .home-user a {
            color: var(--home-blue);
            font-weight: 800;
            text-decoration: none;
        }

        @media (max-width: 820px) {
            .home-hero {
                padding: 24px;
                border-radius: 13px;
            }

            .home-hero-grid {
                grid-template-columns: 1fr;
            }

            .create-section {
                grid-template-columns: 1fr;
            }

            .home-section-head {
                align-items: flex-start;
                flex-direction: column;
            }
        }
		
		/* =========================================================
   Home tournaments table mobile
========================================================= */

.tournament-table {
    width: 100%;
    border-collapse: collapse;
}

.tournament-table th,
.tournament-table td {
    vertical-align: middle;
}

.tournament-date {
    white-space: nowrap;
    width: 1%;
}

.date-stack {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.tournament-title-link {
    min-width: 0;
}

.tournament-title-link span {
    min-width: 0;
}

/* <= 600px: минимальная таблица */
@media (max-width: 600px) {
    .home-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .home-section {
        border-radius: 16px;
    }

    .home-section-head {
        padding: 18px 14px;
    }

    .home-section-title {
        font-size: 22px;
    }

    .home-section-desc {
        font-size: 13px;
    }

    .tournament-table-wrap {
        overflow-x: hidden;
    }

    .tournament-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }

    /*
       Оставляем только:
       1. Дата
       2. Название
    */
    .tournament-table th:nth-child(3),
    .tournament-table th:nth-child(4),
    .tournament-table th:nth-child(5),
    .tournament-table td:nth-child(3),
    .tournament-table td:nth-child(4),
    .tournament-table td:nth-child(5) {
        display: none;
    }

    .tournament-table th,
    .tournament-table td {
        padding: 10px 8px;
    }

    .tournament-table th:first-child,
    .tournament-table td:first-child {
        width: 76px;
        min-width: 76px;
        max-width: 76px;
    }

    .tournament-table th:nth-child(2),
    .tournament-table td:nth-child(2) {
        width: auto;
    }

    .tournament-date {
        width: 76px;
        font-size: 11px;
        line-height: 1.15;
        color: var(--text-muted, #667085);
    }

    .date-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        white-space: normal;
    }

    .date-stack-separator {
        display: none;
    }

    .tournament-title-link {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        max-width: 100%;
        font-size: 14px;
        line-height: 1.2;
    }

    .tournament-title-link span {
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .tournament-logo-mini,
    .tournament-logo-fallback {
        width: 34px;
        height: 34px;
        min-width: 34px;
        max-width: 34px;
        border-radius: 9px;
    }
}

/* Совсем маленькие телефоны */
@media (max-width: 380px) {
    .tournament-table th:first-child,
    .tournament-table td:first-child {
        width: 68px;
        min-width: 68px;
        max-width: 68px;
    }

    .tournament-date {
        width: 68px;
        font-size: 10px;
    }

    .tournament-title-link {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 7px;
        font-size: 13px;
    }

    .tournament-logo-mini,
    .tournament-logo-fallback {
        width: 30px;
        height: 30px;
        min-width: 30px;
        max-width: 30px;
        border-radius: 8px;
    }
}


.tournament-row {
    cursor: pointer;
}

/* =========================================================
   Home footer
========================================================= */

.home-footer {
    position: relative;
    overflow: hidden;
    margin-top: 26px;
    border: 1px solid var(--home-border, #dbe4f0);
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.16), transparent 32%),
        radial-gradient(circle at 92% 10%, rgba(34, 197, 94, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.home-footer-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-footer-ball {
    position: absolute;
    border-radius: 999px;
    filter: blur(1px);
    opacity: 0.5;
}

.home-footer-ball-1 {
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -70px;
    background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb);
}

.home-footer-ball-2 {
    width: 120px;
    height: 120px;
    right: 8%;
    top: -50px;
    background: radial-gradient(circle at 30% 30%, #34d399, #16a34a);
}

.home-footer-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    
    padding: 28px;
}

.home-footer-brand {
    display: flex;
    
    gap: 16px;
    min-width: 0;
}

.home-footer-logo {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    
    border: 1px solid var(--home-border, #dbe4f0);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.home-footer-logo img {
    width: 38px;
    height: 38px;
    display: block;
}

.home-footer-title {
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--home-text, #0f172a);
}

.home-footer-text {
    max-width: 520px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--home-muted, #667085);
}

.home-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-footer-link {
    min-width: 0;
    min-height: 94px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--home-border, #dbe4f0);
    color: var(--home-text, #0f172a);
    text-decoration: none;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.home-footer-link:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.32);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.09);
}

.home-footer-link-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--home-blue, #2563eb);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.home-footer-link-vk .home-footer-link-icon {
    background: #0077ff;
}

.home-footer-link strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
}

.home-footer-link small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--home-muted, #667085);
}

.home-footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 28px;
    border-top: 1px solid var(--home-border, #dbe4f0);
    color: var(--home-muted, #667085);
    font-size: 13px;
}

.home-footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-footer-bottom-links span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--home-blue, #2563eb);
    font-weight: 800;
}

/* Tablet */
@media (max-width: 920px) {
    .home-footer-main {
        grid-template-columns: 1fr;
    }

    .home-footer-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 640px) {
    .home-footer {
        border-radius: 20px;
        margin-top: 20px;
    }

    .home-footer-main {
        padding: 20px 16px;
        gap: 18px;
    }

    .home-footer-brand {
        align-items: flex-start;
    }

    .home-footer-logo {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 15px;
    }

    .home-footer-logo img {
        width: 32px;
        height: 32px;
    }

    .home-footer-title {
        font-size: 24px;
    }

    .home-footer-text {
        font-size: 13px;
    }

    .home-footer-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-footer-link {
        min-height: 74px;
        border-radius: 16px;
    }

    .home-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 16px 18px;
    }
}