    body {
        font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
        color: #eef6f0;
    }

    .home-wrap {
        min-height: calc(100vh - var(--app-header-h) - var(--app-footer-h));
        padding: clamp(8px, 1.6vw, 14px);
        color: #f4fff7;
    }

    .home-grid {
        width: 100%;
        max-width: 1240px;
        margin: 0 auto;
        display: grid;
        gap: 18px;
        min-width: 0;
    }

    .home-card {
        width: 100%;
        min-width: 0;
        background: linear-gradient(160deg, rgba(42, 45, 52, 0.94), rgba(24, 27, 33, 0.95));
        border: 1px solid rgba(244, 198, 89, 0.52);
        border-radius: 12px;
        padding: 28px;
        box-shadow:
            inset 0 1px 0 rgba(255, 238, 194, 0.14),
            inset 0 -1px 0 rgba(8, 10, 15, 0.62),
            0 10px 24px rgba(7, 9, 14, 0.34),
            0 0 8px rgba(246, 201, 95, 0.18);
    }

    .home-stats {
        margin-top: 0;
    }

    .home-stats h2 {
        margin: 0 0 10px;
        font-size: 18px;
    }

    .stats-note {
        margin: 0 0 10px;
        color: #d3e5d9;
        font-size: 13px;
    }

    .guest-auth-actions {
        display: flex;
        gap: 10px;
        margin-top: 14px;
        flex-wrap: wrap;
    }

    .guest-auth-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 110px;
        padding: 10px 16px;
        border-radius: 10px;
        border: 1px solid rgba(244, 198, 89, 0.68);
        background: linear-gradient(180deg, rgba(74, 80, 92, 0.5), rgba(42, 48, 60, 0.56));
        color: #ffe2a5;
        text-decoration: none;
        font-size: 14px;
        font-weight: 700;
        transition: transform 120ms ease, box-shadow 180ms ease, background 180ms ease;
        box-shadow:
            inset 0 1px 0 rgba(255, 227, 162, 0.12),
            0 0 0 1px rgba(108, 84, 35, 0.3);
    }

    .guest-auth-link:hover {
        transform: translateY(-1px);
        background: linear-gradient(180deg, rgba(86, 94, 108, 0.56), rgba(52, 60, 74, 0.62));
        box-shadow:
            0 4px 14px rgba(10, 12, 19, 0.4),
            0 0 18px rgba(247, 197, 82, 0.3);
    }

    .guest-auth-link-secondary {
        border-color: rgba(255, 255, 255, 0.18);
        color: #ecf1f8;
        background: rgba(255, 255, 255, 0.06);
    }

    .stats-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .stats-table th,
    .stats-table td {
        text-align: left;
        padding: 10px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .stats-table th:last-child,
    .stats-table td:last-child {
        text-align: right;
    }
    .stats-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    .player-cell {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .player-avatar {
        width: 36px;
        height: 36px;
        border-radius: 999px;
        object-fit: cover;
        border: 1px solid rgba(255, 255, 255, 0.28);
        background: rgba(255, 255, 255, 0.12);
    }

    .my-stats-title {
        margin: 0 0 10px;
        font-size: 18px;
    }

    .my-user-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 14px;
        min-width: 0;
    }

    .my-user-row > div {
        min-width: 0;
    }

    .my-avatar {
        width: 56px;
        height: 56px;
        border-radius: 999px;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.28);
        background: rgba(255, 255, 255, 0.12);
    }


    .my-name {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

    .my-sub {
        margin: 2px 0 0;
        color: #d3e5d9;
        font-size: 13px;
    }

    .kpi-grid {
        margin-bottom: 14px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .kpi-card {
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.06);
        padding: 12px 14px;
    }

    .kpi-label {
        margin: 0 0 6px;
        color: #bdd2c5;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-weight: 700;
    }

    .kpi-value {
        margin: 0;
        color: #f3fbf6;
        font-size: 28px;
        font-weight: 800;
        line-height: 1;
    }

    .kpi-sub {
        margin: 6px 0 0;
        color: #c8dbd1;
        font-size: 13px;
    }

    .kpi-ranking-row {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 0;
        align-items: start;
    }

    .kpi-ranking-row .kpi-label {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
    }

    .kpi-ranking-row .kpi-value {
        grid-column: 1;
        grid-row: 2;
    }

    .kpi-ranking-row .card-sign {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
    }

    .card-sign {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 88px;
        min-height: 88px;
        padding: 10px;
        border-radius: 999px;
        border: 3px solid rgba(255, 226, 138, 0.92);
        font-size: 36px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        box-shadow:
            inset 0 2px 0 rgba(255, 247, 214, 0.82),
            inset 0 -3px 0 rgba(120, 77, 8, 0.55),
            inset 0 0 0 4px rgba(176, 126, 22, 0.58),
            inset 0 0 0 7px rgba(96, 61, 8, 0.34),
            0 0 0 2px rgba(66, 42, 4, 0.52),
            0 14px 26px rgba(6, 10, 16, 0.34);
        position: relative;
        overflow: hidden;
        text-shadow:
            -1px -1px 0 rgba(255, 248, 222, 0.7),
            1.5px 1.5px 0 rgba(106, 63, 7, 0.72),
            2px 2px 4px rgba(56, 34, 3, 0.26);
    }

    .card-sign::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 28% 24%, rgba(255, 252, 236, 0.62), rgba(255, 252, 236, 0) 28%),
            radial-gradient(circle at 70% 76%, rgba(120, 73, 8, 0.2), rgba(120, 73, 8, 0) 34%),
            radial-gradient(circle at 50% 50%, rgba(76, 46, 6, 0) 68%, rgba(76, 46, 6, 0.34) 100%),
            linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
        pointer-events: none;
    }

    .card-sign > * {
        position: relative;
        z-index: 1;
    }

    .card-red {
        color: #f6d28d;
        border-color: rgba(255, 159, 177, 0.48);
        text-shadow:
            -1px -1px 0 rgba(255, 238, 198, 0.64),
            1.5px 1.5px 0 rgba(113, 63, 20, 0.74),
            2px 2px 4px rgba(73, 37, 12, 0.24);
        background:
            radial-gradient(circle at 30% 30%, rgba(255, 240, 208, 0.38), rgba(255, 240, 208, 0) 26%),
            radial-gradient(circle at 50% 52%, #d8a72a 0%, #bb8420 40%, #8f4f12 68%, #5f2813 100%);
    }

    .card-black {
        color: #f3cd78;
        border-color: rgba(255, 212, 122, 0.5);
        text-shadow:
            -1px -1px 0 rgba(255, 243, 204, 0.68),
            1.5px 1.5px 0 rgba(116, 71, 9, 0.76),
            2px 2px 4px rgba(68, 41, 4, 0.24);
        background:
            radial-gradient(circle at 30% 30%, rgba(255, 244, 214, 0.42), rgba(255, 244, 214, 0) 24%),
            radial-gradient(circle at 50% 52%, #efc14b 0%, #ca9729 42%, #875d16 70%, #4c3209 100%);
    }

    .card-silver {
        color: #d8e0ea;
        border-color: rgba(228, 236, 248, 0.92);
        box-shadow:
            inset 0 2px 0 rgba(255, 255, 255, 0.9),
            inset 0 -3px 0 rgba(101, 113, 129, 0.55),
            inset 0 0 0 4px rgba(181, 193, 210, 0.58),
            inset 0 0 0 7px rgba(88, 99, 115, 0.3),
            0 0 0 2px rgba(42, 49, 61, 0.42),
            0 14px 26px rgba(6, 10, 16, 0.34);
        text-shadow:
            -1px -1px 0 rgba(255, 255, 255, 0.84),
            1.5px 1.5px 0 rgba(114, 126, 141, 0.78),
            2px 2px 4px rgba(42, 49, 61, 0.24);
        background:
            radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0) 24%),
            radial-gradient(circle at 50% 52%, #eef3fa 0%, #c9d3df 38%, #97a6b8 68%, #556171 100%);
    }

    .card-bronze {
        color: #e8bc97;
        border-color: rgba(231, 177, 125, 0.92);
        box-shadow:
            inset 0 2px 0 rgba(255, 236, 214, 0.82),
            inset 0 -3px 0 rgba(121, 67, 28, 0.55),
            inset 0 0 0 4px rgba(176, 104, 48, 0.56),
            inset 0 0 0 7px rgba(102, 56, 24, 0.32),
            0 0 0 2px rgba(68, 35, 16, 0.42),
            0 14px 26px rgba(6, 10, 16, 0.34);
        text-shadow:
            -1px -1px 0 rgba(255, 236, 214, 0.76),
            1.5px 1.5px 0 rgba(124, 67, 29, 0.8),
            2px 2px 4px rgba(61, 31, 14, 0.24);
        background:
            radial-gradient(circle at 30% 30%, rgba(255, 235, 216, 0.48), rgba(255, 235, 216, 0) 24%),
            radial-gradient(circle at 50% 52%, #d9a06d 0%, #b87445 40%, #8f542d 68%, #5e341b 100%);
    }

    .card-onyx {
        color: #b8c0ca;
        border-color: rgba(90, 98, 110, 0.9);
        box-shadow:
            inset 0 0 0 3px rgba(48, 54, 62, 0.7),
            0 0 0 1px rgba(10, 12, 16, 0.62),
            0 10px 18px rgba(6, 10, 16, 0.28);
        text-shadow:
            -1px -1px 0 rgba(216, 223, 232, 0.12),
            1.5px 1.5px 0 rgba(12, 14, 18, 0.72);
        background: #262b31;
    }

    .card-onyx::before {
        display: none;
    }

    .my-table-wrap {
        width: 100%;
        max-width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        background: rgba(0, 0, 0, 0.2);
        -webkit-overflow-scrolling: touch;
    }

    .my-table {
        width: max-content;
        min-width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .my-table th,
    .my-table td {
        text-align: center;
        padding: 11px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        white-space: nowrap;
        border-right: 1px solid rgba(255, 255, 255, 0.16);
    }

    .my-table th:first-child,
    .my-table td:first-child {
        border-left: 1px solid rgba(255, 255, 255, 0.16);
    }

    .my-table th {
        color: #d7e8de;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.05);
    }

    @media (max-width: 860px) {
        .kpi-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 767px) {
        .home-card {
            padding: 18px;
        }

        .card-sign {
            min-width: 72px;
            min-height: 72px;
            font-size: 28px;
        }

        .my-table {
            width: 100%;
            min-width: 0;
            table-layout: fixed;
            font-size: 12px;
        }

        .my-table th,
        .my-table td {
            padding: 9px 6px;
            white-space: normal;
            overflow-wrap: anywhere;
        }
    }
