﻿/* =========================================================
   صفحه‌های لیگ و مسابقات
   ========================================================= */
:root {
    --lg-primary: #5b5bd6;
    --lg-primary-2: #9b5de5;
    --lg-gold: #ffb300;
    --lg-bg: #f4f5fb;
    --lg-card: #ffffff;
    --lg-text: #1f2340;
    --lg-muted: #7a7f9a;
    --lg-border: #e6e8f2;
    --lg-radius: 18px;
    --lg-shadow: 0 6px 24px rgba(31, 35, 64, .08);
    --lg-shadow-hover: 0 14px 34px rgba(31, 35, 64, .16);
}

.lg-page {
    padding: 12px;
    color: var(--lg-text);
}

/* ---------- هدر ---------- */
.lg-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px 28px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(120deg, #3a1c71 0%, #5b5bd6 45%, #d76d77 100%);
    box-shadow: 0 12px 30px rgba(91, 91, 214, .35);
    margin-bottom: 18px;
}

    .lg-hero::after {
        content: "";
        position: absolute;
        left: -60px;
        top: -60px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .08);
    }

    .lg-hero::before {
        content: "";
        position: absolute;
        left: 120px;
        bottom: -90px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .06);
    }

.lg-hero-small {
    padding: 20px 24px;
}

.lg-hero-text {
    flex: 1 1 240px;
    position: relative;
    z-index: 1;
}

.lg-hero-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: white;
}

.lg-hero-sub {
    opacity: .85;
    margin-top: 6px;
    color: white;
}

.lg-hero-stats {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.lg-stat {
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    padding: 10px 16px;
    text-align: center;
    min-width: 92px;
}

    .lg-stat b {
        display: block;
        font-size: 1.5rem;
        color: white;
    }

    .lg-stat span {
        font-size: .8rem;
        opacity: .9;
        color: white;
    }

.lg-hero .lg-btn {
    position: relative;
    z-index: 1;
}

/* ---------- دکمه‌ها ---------- */
.lg-btn {
    border: none;
    border-radius: 12px;
    padding: 9px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    font-family: inherit;
    white-space: nowrap;
}

    .lg-btn:hover:not(:disabled) {
        transform: translateY(-2px);
    }

    .lg-btn:disabled {
        opacity: .6;
        cursor: default;
    }

.lg-btn-primary {
    background: linear-gradient(135deg, var(--lg-primary), var(--lg-primary-2));
    color: #fff;
    box-shadow: 0 6px 16px rgba(91, 91, 214, .35);
}

.lg-btn-light {
    background: #fff;
    color: var(--lg-primary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.lg-btn-gold {
    background: linear-gradient(135deg, #ffd54f, #ff8f00);
    color: #3e2700;
    box-shadow: 0 6px 16px rgba(255, 143, 0, .4);
}

.lg-btn-ghost {
    background: #eef0fb;
    color: var(--lg-primary);
}

.lg-btn-danger {
    background: #e53935;
    color: #fff;
}

.lg-btn-icon {
    padding: 9px 11px;
}

.lg-btn-block {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 1rem;
}

/* ---------- تب‌ها ---------- */
.lg-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lg-tab {
    border: 1px solid var(--lg-border);
    background: #fff;
    color: var(--lg-muted);
    border-radius: 999px;
    padding: 7px 16px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all .15s;
}

    .lg-tab.active {
        background: var(--lg-text);
        color: #fff;
        border-color: var(--lg-text);
    }

/* ---------- کارت لیگ ---------- */
.lg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.lg-card {
    background: var(--lg-card);
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
    animation: lg-fade-up .4s ease both;
}

    .lg-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--lg-shadow-hover);
    }

.lg-card-top {
    position: relative;
    color: #fff;
    padding: 18px 18px 16px;
    min-height: 112px;
}

.lg-card-icon {
    position: absolute;
    left: 14px;
    top: 10px;
    font-size: 2.6rem;
    opacity: .9;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2));
}

.lg-card-title {
    font-size: 1.2rem;
    font-weight: 900;
    margin-top: 12px;
    padding-left: 56px;
    color: white;
}

.lg-card-meta {
    opacity: .9;
    font-size: .85rem;
    margin-top: 4px;
    color: white;
}

.lg-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
}

.lg-status-1 {
    background: #00e676;
    color: #003d1a;
    box-shadow: 0 0 0 0 rgba(0, 230, 118, .6);
    animation: lg-pulse 2s infinite;
}

.lg-status-2 {
    background: #ffd54f;
    color: #4a3500;
}

.lg-card-body {
    padding: 14px 18px;
    flex: 1;
}

.lg-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 18px 16px;
    flex-wrap: wrap;
}

.lg-avatars {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.lg-stack {
    margin-left: -10px;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.lg-avatars .lg-stack:first-child {
    margin-left: 0;
}

.lg-more {
    width: 36px;
    height: 36px;
    background: #eef0fb !important;
    color: var(--lg-primary) !important;
    font-size: .75rem;
}

.lg-avatars-count {
    margin-right: 14px;
    color: var(--lg-muted);
    font-size: .85rem;
}

.lg-info-row {
    font-size: .88rem;
    color: var(--lg-muted);
    margin: 4px 0;
}

    .lg-info-row b {
        color: var(--lg-text);
    }

.lg-progress {
    height: 8px;
    border-radius: 999px;
    background: #eef0fb;
    margin-top: 12px;
    overflow: hidden;
}

.lg-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00c6ff, #5b5bd6);
    transition: width .6s;
}

.lg-progress-text {
    font-size: .78rem;
    color: var(--lg-muted);
    margin-top: 5px;
}

.lg-champion {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border: 1px solid #ffe082;
}

.lg-champion-label {
    font-size: .75rem;
    color: #a07800;
    font-weight: 700;
}

.lg-champion-name {
    font-weight: 900;
}

/* ---------- آواتار ---------- */
.gm-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ---------- حالت خالی و اسکلت ---------- */
.lg-empty {
    text-align: center;
    padding: 50px 16px;
    background: #fff;
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
}

.lg-empty-icon {
    font-size: 3.5rem;
    animation: lg-bounce 1.6s infinite;
}

.lg-empty-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-top: 8px;
}

.lg-empty-sub {
    color: var(--lg-muted);
    margin: 6px 0 18px;
}

.lg-skeleton {
    min-height: 260px;
    background: linear-gradient(90deg, #eef0f6 25%, #f8f9fc 50%, #eef0f6 75%);
    background-size: 400% 100%;
    animation: lg-shimmer 1.3s infinite;
}

.lg-muted {
    color: var(--lg-muted);
    padding: 10px;
}

/* ---------- فرم ساخت لیگ ---------- */
.lg-form {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start;
}

.lg-form-side {
    position: sticky;
    top: 12px;
}

.lg-section {
    background: #fff;
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    padding: 20px;
    margin-bottom: 16px;
    animation: lg-fade-up .4s ease both;
}

    .lg-section label {
        display: block;
        font-weight: 700;
        margin: 12px 0 8px;
        color: var(--lg-text);
    }

.lg-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.lg-step {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lg-primary), var(--lg-primary-2));
    color: #fff;
    font-size: 1rem;
}

.lg-counter {
    margin-right: auto;
    font-size: .8rem;
    font-weight: 700;
    background: #eef0fb;
    color: var(--lg-primary);
    padding: 4px 12px;
    border-radius: 999px;
}

.lg-input {
    width: 100%;
    border: 2px solid var(--lg-border);
    border-radius: 12px;
    padding: 10px 14px;
    font-family: inherit;
    transition: border .15s, box-shadow .15s;
    background: #fbfbfe;
}

    .lg-input:focus {
        outline: none;
        border-color: var(--lg-primary);
        box-shadow: 0 0 0 4px rgba(91, 91, 214, .12);
        background: #fff;
    }

.lg-input-big {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 14px 16px;
}

.lg-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.lg-tiles-2 {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    margin-top: 0;
}

.lg-tile {
    position: relative;
    border: 2px solid var(--lg-border);
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    transition: all .18s;
    background: #fff;
}

    .lg-tile:hover {
        border-color: #c5c8ef;
        transform: translateY(-2px);
    }

    .lg-tile.selected {
        border-color: var(--lg-primary);
        background: #f5f4ff;
        box-shadow: 0 8px 20px rgba(91, 91, 214, .18);
    }

        .lg-tile.selected::after {
            content: "✓";
            position: absolute;
            left: 10px;
            top: 10px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--lg-primary);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .8rem;
            font-weight: 900;
        }

.lg-tile-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}

.lg-tile-title {
    font-weight: 900;
}

.lg-tile-sub {
    font-size: .8rem;
    color: var(--lg-muted);
    margin-top: 4px;
    line-height: 1.6;
}

.lg-row {
    margin-top: 14px;
}

.lg-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
}

.lg-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

    .lg-points label {
        font-size: .85rem;
        margin: 0 0 6px;
    }

.lg-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lg-chip, .lg-day {
    border: 2px solid var(--lg-border);
    background: #fff;
    border-radius: 12px;
    padding: 8px 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    color: var(--lg-muted);
    transition: all .15s;
}

    .lg-chip.selected, .lg-day.selected {
        background: linear-gradient(135deg, var(--lg-primary), var(--lg-primary-2));
        border-color: transparent;
        color: #fff;
        box-shadow: 0 6px 14px rgba(91, 91, 214, .3);
    }

.lg-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.lg-day {
    padding: 12px 4px;
    font-size: .85rem;
}

.lg-switch {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600 !important;
}

    .lg-switch input {
        display: none;
    }

.lg-switch-slider {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #d5d8e8;
    transition: background .2s;
    flex-shrink: 0;
}

    .lg-switch-slider::after {
        content: "";
        position: absolute;
        top: 3px;
        right: 3px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        transition: right .2s;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    }

.lg-switch input:checked + .lg-switch-slider {
    background: var(--lg-primary);
}

    .lg-switch input:checked + .lg-switch-slider::after {
        right: 23px;
    }

.lg-player-tools {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.lg-players {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding: 4px;
}

.lg-player {
    text-align: center;
    padding: 12px 6px;
    border-radius: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

    .lg-player:hover {
        background: #f5f6fb;
    }

    .lg-player.selected {
        background: #f5f4ff;
        border-color: var(--lg-primary);
    }

.lg-player-pic {
    position: relative;
    display: inline-block;
}

.lg-player.selected .gm-avatar {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--lg-primary);
}

.lg-player-check {
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00c853;
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: lg-pop .25s ease;
}

.lg-player-name {
    font-size: .82rem;
    font-weight: 700;
    margin-top: 8px;
    line-height: 1.4;
    text-align: center;
}

/* کارت خلاصه کنار فرم */
.lg-summary {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 22px;
    color: #fff;
    box-shadow: 0 14px 34px rgba(91, 91, 214, .35);
}

    .lg-summary::after {
        content: "";
        position: absolute;
        left: -40px;
        bottom: -40px;
        width: 160px;
        height: 160px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .1);
    }

.lg-summary-icon {
    font-size: 2.6rem;
}

.lg-summary-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-top: 6px;
    word-break: break-word;
    color: white;
}

.lg-summary-meta {
    opacity: .9;
    margin-top: 4px;
    color: white;
}

.lg-summary-list {
    margin: 16px 0 6px;
    background: rgba(255, 255, 255, .15);
    border-radius: 14px;
    padding: 12px 14px;
    line-height: 2.1;
    position: relative;
    z-index: 1;
}

    .lg-summary-list div {
        color: white;
    }

        .lg-summary-list div b {
            color: white;
        }

.lg-summary-hint {
    opacity: .85;
    font-size: .88rem;
    line-height: 1.8;
    color: white;
}

.lg-summary-errors {
    background: rgba(255, 255, 255, .92);
    color: #c62828;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: .85rem;
    line-height: 1.9;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.lg-summary .lg-btn {
    position: relative;
    z-index: 1;
}

/* ---------- انیمیشن‌ها ---------- */
@keyframes lg-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes lg-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, .6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

@keyframes lg-bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes lg-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

@keyframes lg-pop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* ---------- موبایل ---------- */
@media (max-width: 900px) {
    .lg-form {
        grid-template-columns: 1fr;
    }

    .lg-form-side {
        position: static;
    }
}

@media (max-width: 600px) {
    .lg-hero {
        padding: 20px;
        border-radius: 18px;
    }

    .lg-hero-title {
        font-size: 1.35rem;
    }

    .lg-row-2 {
        grid-template-columns: 1fr;
    }

    .lg-weekdays {
        grid-template-columns: repeat(4, 1fr);
    }

    .lg-players {
        grid-template-columns: repeat(3, 1fr);
    }
}



/* =========================================================
   مرحله ۸: صفحه لیگ، کارت بازی، براکت، جدول امتیاز
   ========================================================= */

/* ---------- هدر صفحه لیگ ---------- */
.lv-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #fff;
    border-radius: 24px;
    padding: 26px 28px;
    margin-bottom: 18px;
    box-shadow: 0 14px 34px rgba(31, 35, 64, .25);
}

    .lv-hero::after {
        content: "";
        position: absolute;
        left: -70px;
        top: -70px;
        width: 240px;
        height: 240px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .1);
    }

.lv-hero-icon {
    font-size: 4rem;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25));
    position: relative;
    z-index: 1;
    animation: lg-bounce 3s infinite;
}

.lv-hero-main {
    flex: 1 1 300px;
    position: relative;
    z-index: 1;
}

.lv-hero-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.lv-chip {
    font-size: .78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}

.lv-hero-title {
    font-size: 1.9rem;
    font-weight: 900;
    margin: 10px 0 12px;
    color: white;
}

.lv-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    overflow: hidden;
    max-width: 520px;
}

.lv-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, .8);
    transition: width .8s;
}

.lv-progress-text {
    font-size: .82rem;
    opacity: .92;
    margin-top: 6px;
    color: white;
}

.lv-hero .lg-btn {
    position: relative;
    z-index: 1;
}

/* ---------- قهرمان ---------- */
.lv-champion {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px;
    margin-bottom: 18px;
    border-radius: 22px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, #fff8e1 0%, #ffe082 60%, #ffca28 100%);
    border: 2px solid #ffd54f;
    box-shadow: 0 14px 34px rgba(255, 179, 0, .35);
    animation: lg-fade-up .5s ease both;
}

.lv-champion-trophy {
    font-size: 3.4rem;
    animation: lv-shine 2.4s infinite;
}

.lv-champion-pic {
    box-shadow: 0 0 0 5px #fff, 0 0 0 9px #ffb300, 0 10px 24px rgba(0, 0, 0, .2);
}

.lv-champion-label {
    font-weight: 700;
    color: #8d6e00;
}

.lv-champion-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: #3e2700;
}

.lv-confetti {
    position: absolute;
    right: 18px;
    top: 10px;
    font-size: 2rem;
    animation: lg-bounce 1.8s infinite;
}

.lv-confetti-2 {
    right: auto;
    left: 18px;
    top: auto;
    bottom: 10px;
    animation-delay: .6s;
}

/* ---------- بازی بعدی من ---------- */
.lv-next {
    margin-bottom: 18px;
}

.lv-next-title {
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.lv-next .mc-card {
    max-width: 560px;
}

.lv-manage-hint {
    background: #fff8e1;
    border: 1px dashed #ffb300;
    color: #6d4c00;
    padding: 10px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-weight: 600;
}

.lv-panel {
    background: #fff;
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    padding: 18px;
    animation: lg-fade-up .4s ease both;
}

/* ---------- برنامه روزها ---------- */
.lv-day {
    position: relative;
    padding-right: 22px;
    margin-bottom: 18px;
}

    .lv-day::before {
        content: "";
        position: absolute;
        right: 6px;
        top: 26px;
        bottom: -18px;
        width: 2px;
        background: #dfe2f0;
    }

    .lv-day:last-child::before {
        display: none;
    }

.lv-day-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    margin-bottom: 10px;
    position: relative;
}

.lv-day-dot {
    position: absolute;
    right: -22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #c5c8ef;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #c5c8ef;
}

.lv-day-today .lv-day-dot {
    background: #00c853;
    box-shadow: 0 0 0 2px #00c853;
    animation: lg-pulse 2s infinite;
}

.lv-today-tag {
    background: #00c853;
    color: #fff;
    font-size: .72rem;
    padding: 2px 10px;
    border-radius: 999px;
}

.lv-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.lv-play {
    width: 100%;
    font-size: 1rem;
    animation: lv-glow 1.6s infinite;
}

/* ---------- کارت بازی ---------- */
.mc-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--lg-shadow);
    padding: 12px 14px 14px;
    border: 2px solid transparent;
    transition: transform .18s, box-shadow .18s;
    animation: lg-fade-up .35s ease both;
}

    .mc-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--lg-shadow-hover);
    }

.mc-mine {
    border-color: #c5c8ef;
    background: linear-gradient(180deg, #f7f6ff 0%, #fff 60%);
}

.mc-today {
    border-color: #00c853;
}

.mc-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: var(--lg-muted);
}

.mc-round {
    font-weight: 800;
    color: var(--lg-text);
}

.mc-date {
}

.mc-status {
    margin-right: auto;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
    background: #eef0fb;
    color: var(--lg-primary);
}

.mc-st-finished {
    background: #eceff1;
    color: #546e7a;
}

.mc-st-today {
    background: #00c853;
    color: #fff;
    animation: lg-pulse 2s infinite;
}

.mc-st-live {
    background: #e53935;
    color: #fff;
    animation: lg-pulse 1.2s infinite;
}

.mc-st-overdue {
    background: #fff3e0;
    color: #e65100;
}

.mc-st-bye {
    background: #e8f5e9;
    color: #2e7d32;
}

.mc-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.mc-player {
    position: relative;
    text-align: center;
    transition: opacity .2s;
}

.mc-name {
    font-weight: 800;
    font-size: .88rem;
    margin-top: 6px;
    line-height: 1.4;
    text-align: center;
}

.mc-win .gm-avatar {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #00c853;
}

.mc-win .mc-name {
    color: #1b5e20;
    text-align: center;
}

.mc-lose {
    opacity: .5;
}

.mc-crown {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    animation: lg-pop .3s ease;
}

.mc-center {
    min-width: 84px;
    text-align: center;
}

.mc-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 1.8rem;
    font-weight: 900;
}

    .mc-score i {
        font-style: normal;
        color: #b0b5cc;
        font-size: 1.3rem;
    }

.mc-vs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6a00, #ee0979);
    color: #fff;
    font-weight: 900;
    font-size: .9rem;
    font-style: italic;
    box-shadow: 0 6px 16px rgba(238, 9, 121, .35);
}

.mc-live {
    color: #e53935;
    font-weight: 900;
    animation: lv-blink 1s infinite;
}

.mc-note {
    margin-top: 8px;
    font-size: .78rem;
    color: #e65100;
    text-align: center;
}

.mc-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

    .mc-actions > .lg-btn {
        flex: 1;
    }

/* ---------- براکت ---------- */
.br-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
}

.br-wrap {
    display: flex;
    gap: 34px;
    min-width: max-content;
    padding: 6px 4px;
}

.br-col {
    display: flex;
    flex-direction: column;
    width: 220px;
}

.br-col-title {
    text-align: center;
    font-weight: 900;
    font-size: .85rem;
    margin-bottom: 12px;
    padding: 6px;
    border-radius: 10px;
    background: #eef0fb;
    color: var(--lg-primary);
}

.br-col-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.br-pair {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

    .br-pair > .br-match {
        margin: 10px 0;
    }
    /* خط عمودی که دو بازی را به بازی دور بعد وصل می‌کند */
    .br-pair:not(.br-final)::after {
        content: "";
        position: absolute;
        left: -18px;
        top: 25%;
        bottom: 25%;
        border: 2px solid #c5c8ef;
        border-right: none;
        border-radius: 8px 0 0 8px;
        width: 0;
    }

.br-col:not(:first-child) .br-match::before {
    content: "";
    position: absolute;
    right: -18px;
    top: 50%;
    width: 16px;
    border-top: 2px solid #c5c8ef;
}

.br-pair:not(.br-final) > .br-match::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    width: 16px;
    border-top: 2px solid #c5c8ef;
}

.br-final > .br-match::after {
    content: "";
    position: absolute;
    left: -36px;
    top: 50%;
    width: 34px;
    border-top: 2px dashed #ffb300;
}

.br-match {
    position: relative;
    background: #fff;
    border-radius: 14px;
    border: 2px solid var(--lg-border);
    box-shadow: 0 4px 12px rgba(31, 35, 64, .06);
    padding: 6px 8px;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
}

    .br-match:hover {
        transform: scale(1.03);
        border-color: #c5c8ef;
    }

.br-mine {
    border-color: var(--lg-primary);
    box-shadow: 0 6px 16px rgba(91, 91, 214, .25);
}

.br-bye {
    opacity: .7;
    border-style: dashed;
}

.br-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
    border-radius: 8px;
}

    .br-row + .br-row {
        border-top: 1px solid #f0f1f7;
    }

.br-name {
    flex: 1;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.br-score {
    font-weight: 900;
    min-width: 18px;
    text-align: center;
}

.br-win {
    background: linear-gradient(90deg, transparent, #e8f5e9);
}

    .br-win .br-name, .br-win .br-score {
        color: #1b5e20;
    }

.br-lose {
    opacity: .45;
}

.br-date {
    font-size: .68rem;
    color: var(--lg-muted);
    text-align: center;
    margin-top: 2px;
}

.br-col-champ {
    width: 170px;
}

    .br-col-champ .br-col-title {
        background: #fff3c4;
        color: #8d6e00;
    }

.br-champ {
    margin: auto 0;
    text-align: center;
    padding: 18px 10px;
    border-radius: 20px;
    border: 2px dashed #ffd54f;
    background: #fffdf3;
}

.br-champ-on {
    border-style: solid;
    background: radial-gradient(circle at 50% 0%, #fff8e1, #ffe082);
    box-shadow: 0 10px 26px rgba(255, 179, 0, .35);
}

.br-trophy {
    font-size: 2.8rem;
}

.br-champ-on .br-trophy {
    animation: lv-shine 2.4s infinite;
}

.br-champ-pic {
    margin-top: 6px;
    box-shadow: 0 0 0 4px #fff, 0 0 0 7px #ffb300;
}

.br-champ-name {
    font-weight: 900;
    margin-top: 8px;
}

.br-champ-wait {
    font-size: 2rem;
    color: #ffca28;
    font-weight: 900;
}

/* ---------- جدول امتیاز ---------- */
.st-wrap {
    overflow-x: auto;
}

.st-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}

    .st-table th {
        font-size: .78rem;
        color: var(--lg-muted);
        font-weight: 800;
        padding: 6px 8px;
        text-align: center;
    }

    .st-table td {
        background: #fafbff;
        padding: 10px 8px;
        text-align: center;
        font-weight: 700;
    }

        .st-table td:first-child {
            border-radius: 0 12px 12px 0;
        }

        .st-table td:last-child {
            border-radius: 12px 0 0 12px;
        }

    .st-table tbody tr {
        transition: transform .15s;
        animation: lg-fade-up .35s ease both;
    }

        .st-table tbody tr:hover {
            transform: scale(1.01);
        }

.st-player-col {
    text-align: right !important;
}

.st-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.st-rank {
    font-size: 1.2rem;
    width: 44px;
}

.st-me {
    font-size: .7rem;
    background: var(--lg-primary);
    color: #fff;
    padding: 1px 8px;
    border-radius: 999px;
}

.st-top1 td {
    background: linear-gradient(90deg, #fffdf3, #fff3c4);
}

.st-top2 td {
    background: #f5f7fa;
}

.st-top3 td {
    background: #fdf3ec;
}

.st-mine td {
    box-shadow: inset 0 2px 0 var(--lg-primary), inset 0 -2px 0 var(--lg-primary);
}

.st-pos {
    color: #2e7d32;
}

.st-neg {
    color: #c62828;
}

.st-points {
    display: inline-block;
    min-width: 38px;
    padding: 4px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--lg-primary), var(--lg-primary-2));
    color: #fff;
    font-weight: 900;
}

.st-form {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.st-f {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: .62rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.st-f-W {
    background: #00c853;
}

.st-f-D {
    background: #90a4ae;
}

.st-f-L {
    background: #ef5350;
}

/* ---------- فرم ثبت نتیجه ---------- */
.re-box {
    width: 100%;
    background: #f7f8fc;
    border-radius: 14px;
    padding: 12px;
}

.re-scores {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
}

.re-side {
    text-align: center;
}

.re-label {
    font-size: .8rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.re-stepper {
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--lg-border);
    background: #fff;
    direction: ltr;
}

    .re-stepper button {
        border: none;
        background: #eef0fb;
        color: var(--lg-primary);
        width: 34px;
        height: 40px;
        font-size: 1.2rem;
        font-weight: 900;
        cursor: pointer;
    }

    .re-stepper input {
        width: 48px;
        border: none;
        text-align: center;
        font-size: 1.2rem;
        font-weight: 900;
        -moz-appearance: textfield;
    }

        .re-stepper input::-webkit-outer-spin-button, .re-stepper input::-webkit-inner-spin-button {
            -webkit-appearance: none;
        }

.re-dash {
    font-size: 1.6rem;
    font-weight: 900;
    padding-bottom: 6px;
}

.re-tie {
    margin-top: 10px;
    background: #fff3e0;
    color: #6d4c00;
    border-radius: 12px;
    padding: 10px;
    font-size: .85rem;
    text-align: center;
}

.re-tie-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.re-title {
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.re-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

/* ---------- انیمیشن‌های جدید ---------- */
@keyframes lv-shine {
    0%, 100% {
        transform: rotate(-8deg) scale(1);
    }

    50% {
        transform: rotate(8deg) scale(1.12);
    }
}

@keyframes lv-glow {
    0%, 100% {
        box-shadow: 0 6px 16px rgba(255, 143, 0, .4);
    }

    50% {
        box-shadow: 0 6px 28px rgba(255, 143, 0, .85);
    }
}

@keyframes lv-blink {
    50% {
        opacity: .35;
    }
}

@media (max-width: 600px) {
    .lv-hero {
        padding: 20px;
    }

    .lv-hero-icon {
        font-size: 3rem;
    }

    .lv-hero-title {
        font-size: 1.4rem;
    }

    .lv-day-grid {
        grid-template-columns: 1fr;
    }

    .st-hide-sm {
        display: none;
    }

    .st-table td, .st-table th {
        padding: 8px 4px;
    }
}


/* =========================================================
   مرحله ۹: صفحه بازی آنلاین و بازی با بالاهوش
   ========================================================= */
.gp-page {
    max-width: 900px;
    margin: 0 auto;
}

.gp-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--lg-shadow);
    padding: 16px;
}

.gp-player {
    text-align: center;
    padding: 10px 6px;
    border-radius: 18px;
    border: 3px solid transparent;
    transition: all .25s;
}

.gp-player-name {
    font-weight: 900;
    margin-top: 6px;
    font-size: .95rem;
}

.gp-player-tags {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.gp-tag {
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef0fb;
    color: var(--lg-muted);
}

.gp-online {
    background: #e8f5e9;
    color: #2e7d32;
}

.gp-offline {
    background: #f5f5f5;
    color: #9e9e9e;
}

.gp-ready-tag {
    background: #00c853;
    color: #fff;
    animation: lg-pop .3s ease;
}

.gp-p1 .gm-avatar {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2196f3;
}

.gp-p2 .gm-avatar {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #f44336;
}

.gp-p1.gp-turn {
    border-color: #2196f3;
    background: rgba(33, 150, 243, .08);
    animation: gp-turn-blue 1.6s infinite;
}

.gp-p2.gp-turn {
    border-color: #f44336;
    background: rgba(244, 67, 54, .08);
    animation: gp-turn-red 1.6s infinite;
}

/*.gp-robot {
    background: linear-gradient(135deg, #8e9eab, #eef2f3) !important;
}*/

.gp-mid {
    text-align: center;
    min-width: 130px;
}

.gp-league {
    font-size: .78rem;
    font-weight: 800;
    color: var(--lg-primary);
    cursor: pointer;
    margin-bottom: 4px;
}

.gp-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.1;
}

    .gp-score i {
        font-style: normal;
        color: #c5c8d8;
        font-size: 2rem;
    }

.gp-s1 {
    color: #1e88e5;
}

.gp-s2 {
    color: #e53935;
}

.gp-timer {
    position: relative;
    width: 52px;
    height: 52px;
    margin: 6px auto 0;
}

    .gp-timer svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

.gp-timer-bg {
    fill: none;
    stroke: #eef0fb;
    stroke-width: 3.5;
}

.gp-timer-fg {
    fill: none;
    stroke: var(--lg-primary);
    stroke-width: 3.5;
    stroke-linecap: round;
    transition: stroke-dasharray 1s linear;
}

.gp-timer span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: .95rem;
}

.gp-timer-low .gp-timer-fg {
    stroke: #e53935;
}

.gp-timer-low span {
    color: #e53935;
    animation: lv-blink .8s infinite;
}

.gp-status {
    text-align: center;
    font-weight: 900;
    font-size: 1.1rem;
    margin: 16px 0 10px;
    min-height: 28px;
}

.gp-board {
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--lg-shadow);
    padding: 14px;
    transition: box-shadow .3s;
}

.gp-board-myturn {
    box-shadow: 0 0 0 3px rgba(91, 91, 214, .35), var(--lg-shadow-hover);
}

.gp-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

/* اتاق انتظار */
.gp-lobby {
    text-align: center;
    padding: 40px 20px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #3a1c71, #5b5bd6, #9b5de5);
    box-shadow: 0 14px 34px rgba(91, 91, 214, .35);
}

.gp-lobby-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
}

.gp-lobby-sub {
    opacity: .88;
    margin: 8px 0 22px;
    color: white;
}

.gp-ready {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 900;
    padding: 16px 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd54f, #ff8f00);
    color: #3e2700;
    box-shadow: 0 10px 26px rgba(255, 143, 0, .5);
    animation: gp-heart 1.4s infinite;
}

.gp-wait {
    font-size: 1.15rem;
    font-weight: 800;
}

.gp-dots i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 2px;
    border-radius: 50%;
    background: #fff;
    animation: lg-bounce 1s infinite;
}

    .gp-dots i:nth-child(2) {
        animation-delay: .15s;
    }

    .gp-dots i:nth-child(3) {
        animation-delay: .3s;
    }

/* پایان بازی */
.gp-over {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 22, 45, .55);
    backdrop-filter: blur(3px);
    animation: lg-fade-up .3s ease;
    padding: 16px;
}

.gp-over-card {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 26px;
    padding: 30px 34px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
    animation: lg-pop .35s ease;
    max-width: 380px;
    width: 100%;
}

.gp-over-emoji {
    font-size: 4rem;
    animation: lv-shine 2.4s infinite;
}

.gp-over-title {
    font-size: 1.7rem;
    font-weight: 900;
    margin-top: 6px;
}

.gp-over-score {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--lg-primary);
    margin: 8px 0 18px;
}

.gp-over-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.gp-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

    .gp-confetti i {
        position: absolute;
        top: -20px;
        width: 10px;
        height: 16px;
        border-radius: 3px;
        animation: gp-fall 2.8s linear infinite;
    }

/* صفحه شروع بازی با بالاهوش */
.gc-resume {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border: 1px solid #ffe082;
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 16px;
    animation: lg-fade-up .4s ease both;
}

.gc-resume-title {
    font-weight: 900;
    font-size: 1.05rem;
}

.gc-resume-sub {
    color: #8d6e00;
    font-size: .85rem;
}

.gc-setup {
    max-width: 720px;
    margin: 0 auto;
}

.gc-mt {
    margin-top: 22px;
}

.gc-start {
    font-size: 1.2rem;
    padding: 14px;
    margin-top: 24px;
}

@keyframes gp-turn-blue {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, .45);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(33, 150, 243, 0);
    }
}

@keyframes gp-turn-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, .45);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(244, 67, 54, 0);
    }
}

@keyframes gp-heart {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }
}

@keyframes gp-fall {
    0% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }

    100% {
        transform: translateY(105vh) rotate(720deg);
        opacity: .6;
    }
}

@media (max-width: 600px) {
    .gp-top {
        padding: 10px;
        gap: 4px;
    }

    .gp-player-name {
        font-size: .8rem;
    }

    .gp-mid {
        min-width: 90px;
    }

    .gp-score {
        font-size: 2rem;
    }

    .gp-board {
        padding: 6px;
        border-radius: 16px;
    }

    .gp-ready {
        font-size: 1.15rem;
        padding: 14px 32px;
    }
}


/* =========================================================
   مرحله ۱۰: ویجت داشبورد و صفحه «مسابقات من»
   ========================================================= */
.mw-card {
    background: var(--lg-card);
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    padding: 16px 18px;
    color: var(--lg-text);
    direction: rtl;
}

.mw-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.mw-title {
    font-size: 1.15rem;
    font-weight: 900;
}

.mw-head-btns {
    display: flex;
    gap: 6px;
}

.mw-link {
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: #eef0fb;
    color: var(--lg-primary);
    font-size: .8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    transition: background .2s, transform .2s;
}

    .mw-link:hover {
        background: #dfe2fa;
        transform: translateY(-1px);
    }

.mw-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f7f8fd;
    border-radius: 14px;
    padding: 16px;
    color: var(--lg-muted);
}

    .mw-empty > span {
        font-size: 2.2rem;
        animation: lg-bounce 1.6s infinite;
    }

    .mw-empty b {
        color: var(--lg-text);
    }

/* کارت بازی امروز */
.mw-today {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    color: #fff;
    background: linear-gradient(120deg, #ff512f, #dd2476 55%, #5b5bd6);
    box-shadow: 0 10px 24px rgba(221, 36, 118, .35);
}

    .mw-today::after {
        content: "";
        position: absolute;
        left: -40px;
        top: -40px;
        width: 140px;
        height: 140px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .12);
    }

.mw-today-label {
    font-weight: 900;
    font-size: .9rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    color: white;
}

.mw-today-body {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

    .mw-today-body .gm-avatar {
        border: 3px solid rgba(255, 255, 255, .85);
    }

.mw-today-vs {
    font-weight: 900;
    font-size: .85rem;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 4px 10px;
    animation: mw-vs 1.4s ease-in-out infinite;
    color: white;
}

@keyframes mw-vs {
    50% {
        transform: scale(1.15);
    }
}

.mw-today-info {
    flex: 1 1 140px;
}

.mw-today-opp {
    font-weight: 900;
    font-size: 1.05rem;
    color: white;
}

.mw-today-league {
    font-size: .82rem;
    opacity: .9;
    margin-top: 2px;
    color: white;
}

.mw-play {
    animation: lg-pulse 2s infinite;
}

/* دو ستون: بعدی و نتایج */
.mw-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mw-col-title {
    font-weight: 900;
    font-size: .9rem;
    margin-bottom: 8px;
    color: var(--lg-muted);
}

.mw-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    cursor: pointer;
    background: #f7f8fd;
    margin-bottom: 7px;
    transition: background .2s, transform .2s;
}

    .mw-row:hover {
        background: #eef0fb;
        transform: translateX(-3px);
    }

.mw-row-main {
    flex: 1;
    min-width: 0;
}

.mw-row-name {
    font-weight: 700;
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-row-sub {
    font-size: .75rem;
    color: var(--lg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-date {
    font-size: .75rem;
    font-weight: 700;
    color: var(--lg-primary);
    background: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}

.mw-res {
    font-size: .72rem;
    font-weight: 900;
    border-radius: 10px;
    padding: 6px 8px;
    min-width: 46px;
    text-align: center;
}

.mw-res-W {
    background: #00c853;
    color: #fff;
}

.mw-res-D {
    background: #ffd54f;
    color: #4a3500;
}

.mw-res-L {
    background: #ff5252;
    color: #fff;
}

.mw-score {
    font-weight: 900;
    font-size: 1rem;
    white-space: nowrap;
}

.mw-none {
    font-size: .82rem;
    color: var(--lg-muted);
    padding: 10px;
    background: #f7f8fd;
    border-radius: 12px;
    text-align: center;
}

/* ---------- صفحه مسابقات من ---------- */
.my-hero {
    background: linear-gradient(120deg, #11998e 0%, #3a7bd5 50%, #5b5bd6 100%);
}

.my-hero-avatar {
    position: relative;
    z-index: 1;
    border: 4px solid rgba(255, 255, 255, .8);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

.my-stat-gold {
    background: rgba(255, 213, 79, .3) !important;
}

.my-top {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 18px;
    margin-bottom: 20px;
    align-items: stretch;
}

.my-top-main {
    min-width: 0;
}

.my-practice {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--lg-radius);
    padding: 22px 20px;
    color: #fff;
    text-align: center;
    background: linear-gradient(150deg, #232526, #414345 40%, #5b5bd6);
    box-shadow: 0 12px 28px rgba(35, 37, 38, .35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform .25s, box-shadow .25s;
}

    .my-practice:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 34px rgba(35, 37, 38, .45);
    }

.my-practice-dots {
    position: absolute;
    inset: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    opacity: .18;
    pointer-events: none;
}

    .my-practice-dots span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #fff;
        justify-self: center;
        align-self: center;
    }

.my-practice-icon {
    font-size: 3rem;
    animation: lg-bounce 1.8s infinite;
    position: relative;
}

.my-practice-title {
    font-weight: 900;
    font-size: 1.2rem;
    position: relative;
    color: white;
}

.my-practice-sub {
    font-size: .85rem;
    opacity: .85;
    margin-bottom: 8px;
    position: relative;
    color: white;
    text-align: center;
}

.my-practice .lg-btn {
    position: relative;
}

.my-league {
    cursor: pointer;
}

.my-league-mine {
    outline: 3px solid transparent;
    box-shadow: 0 0 0 3px rgba(91, 91, 214, .25), var(--lg-shadow);
}

.my-badge-in {
    margin-right: 6px;
    background: rgba(255, 255, 255, .92);
    color: #5b5bd6;
}

.my-status {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.my-status-icon {
    font-size: 1.8rem;
}

.my-status-title {
    font-weight: 900;
}

.my-status-sub {
    font-size: .78rem;
    opacity: .8;
    margin-top: 2px;
}

.my-status-gold {
    background: linear-gradient(135deg, #fff8e1, #ffe082);
    color: #6d4c00;
}

.my-status-good {
    background: #e8f5e9;
    color: #1b5e20;
}

.my-status-info {
    background: #eef0fb;
    color: #3a3a8c;
}

.my-status-out {
    background: #fdecea;
    color: #b71c1c;
}

.my-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 900;
    font-size: 1.05rem;
    margin: 18px 4px 10px;
}

    .my-group-title .lg-badge {
        font-size: .7rem;
    }

.my-matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

@media (max-width: 900px) {
    .my-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .mw-cols {
        grid-template-columns: 1fr;
    }

    .my-hero {
        justify-content: center;
        text-align: center;
    }

        .my-hero .lg-hero-stats {
            justify-content: center;
        }

    .my-matches {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   بالاهوش: آیکن جدید + گزارش بازی‌ها
   ========================================================= */
.bh-av {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: #0b1240;
}

.bh-glow {
    box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(0, 174, 255, .55);
    animation: bh-pulse 2.4s ease-in-out infinite;
}

@keyframes bh-pulse {
    50% {
        box-shadow: 0 0 0 3px #fff, 0 0 30px rgba(0, 174, 255, .9);
    }
}

.lg-hero-title .bh-av, .lg-chip .bh-av, .gp-league .bh-av {
    margin-left: 6px;
}

/* ---------- گزارش ---------- */
.bh-hero {
    background: linear-gradient(120deg, #0b1240 0%, #1c3fb8 55%, #22b8cf 100%);
}

    .bh-hero .bh-av {
        position: relative;
        z-index: 1;
    }

.br-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.br-kpi {
    background: #fff;
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .br-kpi b {
        display: block;
        font-size: 1.6rem;
        font-weight: 900;
        line-height: 1.2;
    }

    .br-kpi small {
        color: var(--lg-muted);
        font-size: .8rem;
    }

.br-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

    .br-tools .lg-chips {
        margin: 0;
    }

.br-search {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--lg-border);
    border-radius: 12px;
    padding: 4px 12px;
}

    .br-search input {
        border: 0;
        outline: 0;
        flex: 1;
        font: inherit;
        padding: 6px 0;
        background: transparent;
    }

    .br-search .mud-icon-root {
        color: var(--lg-muted);
    }

.br-table-wrap {
    background: #fff;
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    overflow-x: auto;
}

.br-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

    .br-table th {
        background: #f7f8fd;
        color: var(--lg-muted);
        font-size: .8rem;
        font-weight: 700;
        padding: 12px 10px;
        text-align: center;
        white-space: nowrap;
    }

        .br-table th:nth-child(2) {
            text-align: right;
        }

    .br-table td {
        padding: 10px;
        border-top: 1px solid var(--lg-border);
        text-align: center;
        font-weight: 700;
    }

    .br-table tr:hover td {
        background: #fafbff;
    }

.br-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef0fb;
    color: var(--lg-muted);
    font-size: .85rem;
}

    .br-rank.r1 {
        background: linear-gradient(135deg, #ffd54f, #ff9800);
        color: #fff;
    }

    .br-rank.r2 {
        background: linear-gradient(135deg, #cfd8dc, #90a4ae);
        color: #fff;
    }

    .br-rank.r3 {
        background: linear-gradient(135deg, #ffab91, #d84315);
        color: #fff;
    }

.br-person {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
}

.br-name {
    font-weight: 800;
}

.br-company {
    color: var(--lg-muted);
    font-size: .75rem;
    font-weight: 500;
}

.br-role {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.br-role-customer {
    background: #fff4e6;
    color: #e8590c;
}

.br-role-staff {
    background: #e7f5ff;
    color: #1971c2;
}

.br-role-admin {
    background: #f3f0ff;
    color: #6741d9;
}

.br-num {
    display: inline-block;
    min-width: 34px;
    padding: 3px 8px;
    border-radius: 10px;
    background: #eef0fb;
    color: var(--lg-primary);
}

    .br-num.zero {
        background: transparent;
        color: #c5c8d8;
    }

.br-total {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--lg-text);
}

.br-win {
    color: #12b886;
}

.br-last {
    color: var(--lg-muted);
    font-size: .78rem;
    font-weight: 500;
    white-space: nowrap;
}

.br-empty {
    padding: 40px;
    text-align: center;
    color: var(--lg-muted);
}

@media (max-width: 600px) {
    .br-kpis {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .br-kpi {
        padding: 12px;
        gap: 8px;
    }

        .br-kpi b {
            font-size: 1.3rem;
        }

    .br-table th:nth-child(1), .br-table td:nth-child(1) {
        display: none;
    }
}