/**
 * =====================================================
 * XPZone Main Styles v3.1
 * =====================================================
 *
 * يحتوي فقط على:
 * - القواعد العامة المشتركة.
 * - بطاقات الألعاب.
 * - الموسم والميداليات.
 * - الفوتر.
 * - نافذة تأكيد الإشعارات.
 * - تصميم الصفحة الرئيسية الحالي v3.
 *
 * تنسيق الهيدر والإشعارات موجود في:
 * css/header.css
 */


/* =====================================================
 * Theme
 * ===================================================== */

:root {
    --bg-main: #071126;
    --bg-card: #111b3a;
    --cyan: #00e5ff;
    --purple: #8b5cf6;
    --gold: #ffd700;
    --white: #f8fafc;
    --text-muted: #94a3b8;
}


/* =====================================================
 * Reset
 * ===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    color: var(--white);
    background: var(--bg-main);

    font-family:
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin-inline: auto;
}


/* =====================================================
 * Section Titles
 * ===================================================== */

.games-section {
    scroll-margin-top: 100px;
}

.section-header {
    margin-bottom: 16px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;
}

.section-kicker,
.hero-kicker {
    display: inline-block;

    color: var(--cyan);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;

    text-transform: uppercase;
}

.section-kicker {
    margin-bottom: 5px;
    color: var(--purple);
}

.games-section h2 {
    position: relative;

    margin-bottom: 0;
    padding-right: 15px;

    color: var(--white);

    font-size: 22px;
}

.games-section h2::before {
    content: "";

    position: absolute;

    top: 20%;
    right: 0;

    width: 4px;
    height: 60%;

    border-radius: 2px;

    background: var(--purple);
}


/* =====================================================
 * Games
 * ===================================================== */

.games-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    align-items: stretch;

    gap: 14px;
}

.game-card-premium {
    position: relative;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 15px;

    background: var(--bg-card);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.game-card-premium:hover {
    border-color: rgba(0, 229, 255, 0.3);

    transform: translateY(-4px);

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.25);
}

.game-card-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.game-card-link:focus-visible {
    border-color: var(--cyan);
    outline: 3px solid rgba(0, 229, 255, 0.28);
    outline-offset: 3px;

    transform: translateY(-4px);

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.25);
}

.game-card-premium.is-coming-soon {
    cursor: default;
}

.game-card-premium.is-coming-soon:hover {
    border-color: rgba(148, 163, 184, 0.14);
    transform: none;
    box-shadow: none;
}

.game-card-link:hover .btn-play-now,
.game-card-link:focus-visible .btn-play-now {
    background: #9d72f7;

    transform: translateY(-1px);

    box-shadow:
        0 0 15px rgba(139, 92, 246, 0.4);
}

.game-badge-size {
    position: absolute;

    z-index: 4;

    top: 10px;
    left: 10px;

    max-width: calc(100% - 20px);
    padding: 4px 9px;

    overflow: hidden;

    border: 1px solid rgba(0, 229, 255, 0.5);
    border-radius: 999px;

    color: var(--cyan);
    background: rgba(5, 14, 32, 0.9);

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.2);

    backdrop-filter: blur(8px);

    font-size: 9.5px;
    font-weight: 850;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-badge-size[data-size-category="medium"] {
    border-color: rgba(250, 204, 21, 0.56);
    color: #fde047;
}

.game-badge-size[data-size-category="large"] {
    border-color: rgba(251, 146, 60, 0.6);
    color: #fb923c;
}

.game-badge-size[data-size-category="very-large"] {
    border-color: rgba(248, 113, 113, 0.62);
    color: #fca5a5;
}

.game-size-label {
    font-weight: 900;
}

.game-size-value {
    color: rgba(226, 232, 240, 0.88);
    font-weight: 750;
}

.game-cover {
    position: relative;

    min-height: 128px;
    max-height: 175px;
    aspect-ratio: 16 / 8.4;

    overflow: hidden;

    display: grid;
    place-items: center;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 229, 255, 0.12),
            transparent 62%
        ),
        linear-gradient(
            145deg,
            rgba(17, 27, 58, 0.98),
            rgba(7, 17, 38, 0.98)
        );
}

.game-cover-fallback {
    position: absolute;

    z-index: 0;

    inset: 0;

    display: grid;
    place-items: center;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 229, 255, 0.13),
            transparent 52%
        ),
        linear-gradient(
            145deg,
            rgba(17, 27, 58, 0.98),
            rgba(7, 17, 38, 0.98)
        );
}

.game-controller-icon {
    width: 58px;
    height: 58px;

    display: block;

    color: var(--cyan);
    background: currentColor;

    opacity: 0.82;

    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.5 6.5h9A5.5 5.5 0 0 1 22 12v2.1a3.9 3.9 0 0 1-7.07 2.27L13.7 14.7h-3.4l-1.23 1.67A3.9 3.9 0 0 1 2 14.1V12a5.5 5.5 0 0 1 5.5-5.5Zm.25 3a.75.75 0 0 0-.75.75V11H6.25a.75.75 0 0 0 0 1.5H7v.75a.75.75 0 0 0 1.5 0v-.75h.75a.75.75 0 0 0 0-1.5H8.5v-.75a.75.75 0 0 0-.75-.75Zm8.5.75a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm2.25 2.25a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z'/%3E%3C/svg%3E")
        center / contain no-repeat;

    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.5 6.5h9A5.5 5.5 0 0 1 22 12v2.1a3.9 3.9 0 0 1-7.07 2.27L13.7 14.7h-3.4l-1.23 1.67A3.9 3.9 0 0 1 2 14.1V12a5.5 5.5 0 0 1 5.5-5.5Zm.25 3a.75.75 0 0 0-.75.75V11H6.25a.75.75 0 0 0 0 1.5H7v.75a.75.75 0 0 0 1.5 0v-.75h.75a.75.75 0 0 0 0-1.5H8.5v-.75a.75.75 0 0 0-.75-.75Zm8.5.75a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm2.25 2.25a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z'/%3E%3C/svg%3E")
        center / contain no-repeat;

    filter:
        drop-shadow(
            0 0 15px rgba(0, 229, 255, 0.22)
        );
}

.game-cover::after {
    content: "";

    position: absolute;

    z-index: 3;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(3, 8, 22, 0.04) 44%,
            rgba(3, 8, 22, 0.46) 100%
        );

    transition: opacity 0.25s ease;
}

.game-coming-soon-badge {
    position: absolute;
    z-index: 5;
    inset-inline-end: 10px;
    bottom: 10px;

    padding: 5px 10px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;

    color: var(--white);
    background: rgba(6, 12, 29, 0.72);

    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(7px);
}

.game-cover img {
    position: absolute;

    z-index: 2;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.game-card-premium:hover .game-cover img,
.game-card-premium:focus-within .game-cover img,
.game-card-link:focus-visible .game-cover img {
    transform: scale(1.045);
    filter: saturate(1.06) brightness(1.03);
}

.game-card-premium.is-coming-soon .game-cover img,
.game-card-premium.is-coming-soon:hover .game-cover img,
.game-card-premium.is-coming-soon:focus-within .game-cover img {
    transform: scale(1.02);
    filter: blur(1.4px) saturate(0.9) brightness(0.78);
}

.game-info-box {
    min-width: 0;
    flex: 1;

    padding: 13px;
}

.game-title-row {
    margin-bottom: 6px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;
}

.game-info-box h3 {
    min-width: 0;

    overflow: hidden;

    color: var(--white);

    font-size: 16px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-difficulty-chip {
    flex-shrink: 0;

    padding: 3px 8px;

    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;

    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.1);

    font-size: 10px;
    font-weight: 900;
    line-height: 1.3;
}

.game-difficulty-chip[data-difficulty="progressive"] {
    border-color: rgba(0, 229, 255, 0.28);
    color: #67e8f9;
    background: rgba(0, 229, 255, 0.08);
}

.game-difficulty-chip[data-difficulty="selectable"] {
    border-color: rgba(167, 139, 250, 0.32);
    color: #c4b5fd;
}

.game-info-box p {
    min-height: 38px;

    margin-bottom: 11px;

    display: -webkit-box;
    overflow: hidden;

    color: var(--text-muted);

    font-size: 11.5px;
    line-height: 1.65;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.game-footer-row {
    padding-top: 11px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.best-score {
    color: var(--text-muted);

    font-size: 11px;
}

.best-score strong {
    min-width: 3ch;
    margin-right: 5px;

    display: inline-block;

    color: var(--white);

    font-size: 13px;
    text-align: end;
}

.best-score strong[data-score-loading="true"] {
    color: rgba(148, 163, 184, 0.72);
}

.btn-play-now {
    min-height: 34px;

    padding: 6px 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 8px;

    color: var(--white);
    background: var(--purple);

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn-play-now:hover:not(:disabled) {
    background: #9d72f7;

    transform: translateY(-1px);

    box-shadow:
        0 0 15px rgba(139, 92, 246, 0.4);
}

.btn-play-now.is-coming-soon,
.btn-play-now:disabled {
    border: 1px solid rgba(148, 163, 184, 0.16);

    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.08);

    box-shadow: none;

    cursor: not-allowed;
}


/* =====================================================
 * Sidebar Widgets
 * ===================================================== */

.sidebar-widget {
    padding: 25px;

    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 16px;

    background: var(--bg-card);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.2);
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    color: var(--white);

    font-size: 18px;
}

.season-widget {
    border-color: rgba(139, 92, 246, 0.2);

    text-align: center;

    background:
        linear-gradient(
            180deg,
            rgba(139, 92, 246, 0.1),
            var(--bg-card)
        );
}

.season-badge {
    margin-bottom: 15px;
    padding: 3px 12px;

    display: inline-block;

    border-radius: 999px;

    color: var(--white);
    background: var(--purple);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
}

.season-widget h3 {
    margin: 0;
    padding: 0;

    border: 0;

    color: var(--gold);

    font-size: 28px;
    font-weight: 900;
}

.season-widget h4 {
    margin-bottom: 12px;

    color: var(--cyan);

    font-size: 18px;
    letter-spacing: 1px;
}

.season-widget p {
    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.7;
}


/* =====================================================
 * Medals
 * ===================================================== */

.medals-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.medal-card {
    padding: 12px;

    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;

    text-align: center;

    background: rgba(7, 17, 38, 0.5);

    transition: background 0.2s ease;
}

.medal-card:hover {
    background: rgba(7, 17, 38, 0.8);
}

.medal-card.rare {
    grid-column: span 2;

    border-style: dashed;
    border-color: rgba(0, 229, 255, 0.3);
}

.medal-icon {
    margin-bottom: 5px;

    display: block;

    font-size: 26px;
}

.medal-name {
    display: block;

    color: var(--white);

    font-size: 13px;
    font-weight: 800;
}

.medal-desc {
    margin-top: 2px;

    display: block;

    color: var(--text-muted);

    font-size: 11px;
}

.medals-empty-state {
    min-height: 155px;

    padding: 20px 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    grid-column: 1 / -1;

    border: 1px dashed rgba(0, 229, 255, 0.19);
    border-radius: 13px;

    text-align: center;

    background: rgba(7, 17, 38, 0.34);
}

.medals-empty-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 14px;

    background: rgba(255, 215, 0, 0.07);

    font-size: 23px;
}

.medals-empty-state strong {
    margin-top: 11px;

    color: var(--white);

    font-size: 13px;
}

.medals-empty-state p {
    max-width: 230px;

    margin-top: 5px;

    color: var(--text-muted);

    font-size: 11px;
    line-height: 1.7;
}


/* =====================================================
 * Footer
 * ===================================================== */

.main-footer {
    margin-top: 60px;
    padding: 30px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.03);

    text-align: center;

    background: var(--bg-card);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);

    font-size: 14px;

    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

.copyright-text {
    color: rgba(148, 163, 184, 0.5);

    font-size: 13px;
}


/* =====================================================
 * Notification Confirmation Dialog
 * ===================================================== */

.confirmation-dialog {
    position: fixed;

    inset: 0;

    width: min(92vw, 430px);
    max-width: 430px;

    height: fit-content;
    max-height: calc(100dvh - 24px);

    margin: auto;

    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;

    border: 0;
    border-radius: 22px;

    color: var(--white);
    background: transparent;
}

.confirmation-dialog::backdrop {
    background: rgba(2, 6, 23, 0.8);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.confirmation-dialog[open] {
    animation:
        confirmation-dialog-show
        0.22s ease-out;
}

.confirmation-dialog-card {
    position: relative;

    width: 100%;

    padding:
        34px
        28px
        26px;

    display: flex;
    flex-direction: column;
    align-items: center;

    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 22px;

    text-align: center;

    background:
        radial-gradient(
            circle at top,
            rgba(0, 229, 255, 0.1),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            #111b3a,
            #071126
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.58);
}

.confirmation-dialog-close {
    position: absolute;

    top: 14px;
    left: 14px;

    width: 34px;
    height: 34px;

    padding: 0;

    display: grid;
    place-items: center;

    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;

    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.62);

    font-size: 21px;

    cursor: pointer;
}

.confirmation-dialog-icon {
    width: 70px;
    height: 70px;

    margin-bottom: 18px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 21px;

    background: rgba(127, 29, 29, 0.2);

    font-size: 31px;
}

.confirmation-dialog-content h2 {
    margin-bottom: 9px;

    color: var(--white);

    font-size: 22px;
}

.confirmation-dialog-content p {
    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.75;
}

.confirmation-notification-title {
    max-width: 100%;

    margin-top: 13px;
    padding: 9px 13px;

    overflow: hidden;

    display: block;

    border: 1px solid rgba(0, 229, 255, 0.17);
    border-radius: 11px;

    color: var(--cyan);
    background: rgba(7, 17, 38, 0.56);

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirmation-dialog-actions {
    width: 100%;

    margin-top: 24px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.confirmation-button {
    min-height: 44px;

    border-radius: 11px;

    font-weight: 800;

    cursor: pointer;
}

.confirmation-button.secondary {
    border: 1px solid rgba(148, 163, 184, 0.25);

    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.72);
}

.confirmation-button.danger {
    border: 1px solid rgba(248, 113, 113, 0.42);

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #dc2626,
            #991b1b
        );
}

.confirmation-button:hover,
.confirmation-dialog-close:hover {
    filter: brightness(1.1);
}

.confirmation-button:focus-visible,
.confirmation-dialog-close:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

@keyframes confirmation-dialog-show {
    from {
        opacity: 0;

        transform:
            translateY(18px)
            scale(0.96);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


@media (prefers-reduced-motion: reduce) {
    .game-card-premium,
    .game-cover img,
    .btn-play-now {
        transition: none;
    }

    .game-card-premium:hover,
    .game-card-link:focus-visible,
    .game-card-premium:hover .game-cover img,
    .game-card-premium:focus-within .game-cover img,
    .game-card-link:focus-visible .game-cover img {
        transform: none;
    }
}


/* =====================================================
 * Shared Responsive Rules
 * ===================================================== */

@media (max-width: 1180px) {
    .games-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

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

    .game-cover {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 22px);
    }

    .confirmation-dialog-card {
        padding:
            32px
            20px
            22px;
    }

    .confirmation-dialog-actions {
        grid-template-columns: 1fr;
    }
}

/**
 * =====================================================
 * XPZone Home Player Showcase v3.0
 * =====================================================
 *
 * متوافق مع:
 * - data-player-profile-card
 * - playerProfileCardUI.js
 * - بطاقة ترحيب صغيرة
 * - بطاقة موسم تبدأ قرب منتصف بطاقة اللاعب
 * - الألعاب والميداليات في صف واحد
 */


/* =====================================================
 * Page Layout
 * ===================================================== */

.home-page-layout {
    padding-top:
        28px;

    padding-bottom:
        10px;
}


.home-showcase-grid {
    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    align-items:
        stretch;

    gap:
        22px;

    direction:
        rtl;
}


.home-player-card-link {
    min-width:
        0;

    display:
        block;

    border-radius:
        22px;

    color:
        inherit;

    text-decoration:
        none;
}


.home-player-card-link:focus-visible {
    outline:
        3px solid rgba(0, 229, 255, 0.5);

    outline-offset:
        4px;
}


/* =====================================================
 * Large Player Card
 * ===================================================== */

.home-player-card {
    position:
        relative;

    min-height:
        395px;

    height:
        100%;

    overflow:
        hidden;

    isolation:
        isolate;

    border:
        1px solid rgba(0, 229, 255, 0.18);

    border-radius:
        22px;

    background:
        radial-gradient(
            circle at 84% 14%,
            rgba(0, 229, 255, 0.16),
            transparent 29%
        ),
        radial-gradient(
            circle at 12% 92%,
            rgba(139, 92, 246, 0.2),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #111b3a,
            #071126
        );

    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.38);

    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease;
}


.home-player-card::before {
    content:
        "";

    position:
        absolute;

    z-index:
        4;

    top:
        0;

    right:
        0;

    left:
        0;

    height:
        4px;

    background:
        linear-gradient(
            90deg,
            var(--purple),
            var(--cyan),
            var(--gold)
        );
}


.home-player-card:hover {
    border-color:
        rgba(0, 229, 255, 0.42);

    transform:
        translateY(-3px);

    box-shadow:
        0 25px 58px rgba(0, 0, 0, 0.46),
        0 0 30px rgba(0, 229, 255, 0.07);
}


.home-player-card-background {
    position:
        absolute;

    z-index:
        -3;

    inset:
        0;

    background-position:
        center;

    background-size:
        cover;

    transform:
        scale(1.02);

    transition:
        transform 0.5s ease,
        opacity 0.3s ease;
}


.home-player-card-background[data-has-image="false"] {
    opacity:
        0;
}


.home-player-card:hover
.home-player-card-background {
    transform:
        scale(1.055);
}


.home-player-card-shade {
    position:
        absolute;

    z-index:
        -2;

    inset:
        0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 12, 30, 0.96) 0%,
            rgba(5, 12, 30, 0.79) 43%,
            rgba(5, 12, 30, 0.45) 100%
        ),
        linear-gradient(
            180deg,
            rgba(7, 17, 38, 0.08),
            rgba(7, 17, 38, 0.82)
        );
}


.home-player-card-content {
    min-height:
        395px;

    padding:
        24px 26px;

    display:
        grid;

    grid-template-rows:
        auto
        1fr
        auto;

    gap:
        22px;
}


/* رأس البطاقة */

.home-player-card-header {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        15px;
}


.home-player-card-label {
    color:
        rgba(248, 250, 252, 0.68);

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        1.5px;
}


.home-player-card-open {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    color:
        var(--cyan);

    font-size:
        11px;

    font-weight:
        850;

    transition:
        transform 0.2s ease;
}


.home-player-card-open > span:first-child {
    min-width:
        0;

    white-space:
        nowrap;
}


.home-player-card-open > span:last-child {
    width:
        27px;

    height:
        27px;

    flex:
        0 0 27px;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid rgba(0, 229, 255, 0.22);

    border-radius:
        8px;

    background:
        rgba(0, 229, 255, 0.08);
}


.home-player-card:hover
.home-player-card-open {
    transform:
        translateX(-3px);
}


html[dir="ltr"]
.home-player-card-open > span:last-child {
    transform:
        rotate(180deg);
}


html[dir="ltr"]
.home-player-card:hover
.home-player-card-open {
    transform:
        translateX(3px);
}


/* هوية اللاعب */

.home-player-card-main {
    display:
        flex;

    align-items:
        center;

    gap:
        clamp(20px, 3.5vw, 38px);
}


.home-profile-avatar-shell {
    position:
        relative;

    width:
        clamp(118px, 15vw, 162px);

    height:
        clamp(118px, 15vw, 162px);

    flex-shrink:
        0;

    display:
        grid;

    place-items:
        center;
}


.home-profile-avatar-base {
    position:
        relative;

    width:
        78%;

    height:
        78%;

    overflow:
        hidden;

    display:
        grid;

    place-items:
        center;

    border:
        3px solid rgba(0, 229, 255, 0.62);

    border-radius:
        26%;

    background:
        linear-gradient(
            145deg,
            rgba(17, 27, 58, 0.96),
            rgba(7, 17, 38, 0.98)
        );

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.42),
        0 0 24px rgba(0, 229, 255, 0.12);
}


.home-profile-avatar-image {
    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}


.home-profile-avatar-fallback {
    color:
        var(--cyan);

    font-size:
        clamp(26px, 4vw, 42px);

    font-weight:
        950;

    letter-spacing:
        -1px;
}


.home-profile-avatar-frame {
    position:
        absolute;

    z-index:
        3;

    inset:
        0;

    width:
        100%;

    height:
        100%;

    object-fit:
        contain;

    pointer-events:
        none;

    filter:
        drop-shadow(
            0 8px 18px rgba(0, 0, 0, 0.38)
        );
}


.home-profile-avatar-image[hidden],
.home-profile-avatar-frame[hidden],
.home-profile-badge[hidden],
.home-profile-badge img[hidden] {
    display:
        none !important;
}


.home-profile-identity {
    min-width:
        0;

    flex:
        1;
}


.home-profile-name-row {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;
}


.home-profile-name-row h1 {
    min-width:
        0;

    overflow:
        hidden;

    color:
        var(--white);

    font-size:
        clamp(28px, 4vw, 46px);

    font-weight:
        950;

    line-height:
        1.15;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    text-shadow:
        0 5px 22px rgba(0, 0, 0, 0.55);
}


.home-profile-badge {
    width:
        38px;

    height:
        38px;

    flex-shrink:
        0;

    display:
        grid;

    place-items:
        center;

    overflow:
        hidden;

    border:
        1px solid rgba(255, 215, 0, 0.28);

    border-radius:
        11px;

    color:
        var(--gold);

    background:
        rgba(255, 215, 0, 0.08);

    box-shadow:
        0 0 16px rgba(255, 215, 0, 0.08);
}


.home-profile-badge img {
    width:
        100%;

    height:
        100%;

    object-fit:
        contain;
}


.home-profile-title {
    margin-top:
        7px;

    color:
        rgba(248, 250, 252, 0.74);

    font-size:
        14px;

    font-weight:
        700;
}


.home-profile-tags {
    margin-top:
        16px;

    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        9px;
}


.home-profile-rank,
.home-profile-level {
    min-height:
        29px;

    padding:
        5px 11px;

    display:
        inline-flex;

    align-items:
        center;

    border-radius:
        8px;

    font-size:
        11px;

    font-weight:
        900;
}


.home-profile-rank {
    border:
        1px solid rgba(139, 92, 246, 0.34);

    color:
        #c4b5fd;

    background:
        rgba(139, 92, 246, 0.15);
}


.home-profile-level {
    border:
        1px solid rgba(0, 229, 255, 0.3);

    color:
        var(--cyan);

    background:
        rgba(0, 229, 255, 0.1);
}


/* أسفل البطاقة */

.home-player-card-footer {
    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items:
        end;

    gap:
        18px;
}


.home-profile-progress {
    min-width:
        0;
}


.home-profile-progress-header {
    margin-bottom:
        7px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        14px;

    color:
        rgba(248, 250, 252, 0.72);

    font-size:
        11px;
}


.home-profile-progress-header strong {
    direction:
        ltr;

    color:
        var(--white);

    font-size:
        11px;

    unicode-bidi:
        isolate;
}


.home-profile-progress-track {
    height:
        11px;

    overflow:
        hidden;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius:
        999px;

    background:
        rgba(5, 12, 30, 0.7);

    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.3);
}


.home-profile-progress-fill {
    width:
        0%;

    height:
        100%;

    display:
        block;

    border-radius:
        inherit;

    background:
        linear-gradient(
            90deg,
            var(--purple),
            var(--cyan)
        );

    box-shadow:
        0 0 13px rgba(0, 229, 255, 0.38);

    transition:
        width 0.75s ease;
}


.home-profile-wallet {
    min-width:
        112px;

    min-height:
        58px;

    padding:
        8px 13px;

    display:
        grid;

    grid-template-columns:
        auto auto;

    align-items:
        center;

    justify-content:
        center;

    column-gap:
        5px;

    border:
        1px solid rgba(255, 215, 0, 0.2);

    border-radius:
        12px;

    background:
        rgba(7, 17, 38, 0.56);
}


.home-profile-wallet-label {
    grid-column:
        1 / -1;

    color:
        var(--text-muted);

    font-size:
        9px;

    text-align:
        center;
}


.home-profile-wallet strong {
    color:
        var(--gold);

    font-size:
        19px;

    font-weight:
        950;
}


.home-profile-wallet > span:last-child {
    color:
        rgba(255, 215, 0, 0.72);

    font-size:
        10px;

    font-weight:
        900;
}


/* =====================================================
 * Welcome + Season Side
 * ===================================================== */

.home-showcase-side {
    min-width:
        0;

    display:
        flex;

    flex-direction:
        column;

    align-self:
        stretch;
}


.hero-compact-card {
    min-height:
        142px;

    padding:
        18px 19px;

    overflow:
        hidden;

    position:
        relative;

    border:
        1px solid rgba(0, 229, 255, 0.15);

    border-radius:
        17px;

    background:
        radial-gradient(
            circle at 84% 15%,
            rgba(0, 229, 255, 0.14),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            rgba(17, 27, 58, 0.98),
            rgba(7, 17, 38, 0.98)
        );

    box-shadow:
        0 13px 28px rgba(0, 0, 0, 0.25);
}


.hero-compact-card::after {
    content:
        "XP";

    position:
        absolute;

    left:
        14px;

    bottom:
        14px;

    width:
        68px;

    height:
        46px;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid rgba(0, 229, 255, 0.22);

    border-radius:
        13px;

    color:
        rgba(126, 238, 255, 0.76);

    background:
        linear-gradient(
            145deg,
            rgba(0, 229, 255, 0.10),
            rgba(139, 92, 246, 0.12)
        );

    font-size:
        25px;

    font-weight:
        950;

    line-height:
        1;

    letter-spacing:
        -0.08em;

    text-shadow:
        0 0 8px rgba(0, 229, 255, 0.72),
        0 0 18px rgba(0, 229, 255, 0.35);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 20px rgba(0, 229, 255, 0.08);

    pointer-events:
        none;
}


.hero-compact-card > * {
    position:
        relative;

    z-index:
        2;
}


.hero-compact-card .hero-kicker {
    margin-bottom:
        5px;

    font-size:
        9px;
}


.hero-compact-card h2 {
    margin:
        0 0 6px;

    color:
        var(--white);

    font-size:
        20px;

    line-height:
        1.3;
}


.hero-compact-card p {
    margin:
        0 0 12px;

    color:
        var(--text-muted);

    font-size:
        11px;
}


.btn-hero-compact {
    min-height:
        31px;

    padding:
        6px 11px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid rgba(0, 229, 255, 0.25);

    border-radius:
        8px;

    color:
        var(--cyan);

    background:
        rgba(0, 229, 255, 0.08);

    font-size:
        10px;

    font-weight:
        850;

    text-decoration:
        none;
}


.home-season-card {
    min-height:
        0;

    margin-top:
        34px;

    flex:
        1;

    padding:
        22px 20px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    box-shadow:
        0 15px 34px rgba(0, 0, 0, 0.28);
}


/* =====================================================
 * Games + Medals
 * ===================================================== */

.home-content-grid {
    margin-top:
        25px;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    align-items:
        start;

    gap:
        22px;

    direction:
        rtl;
}


.home-games-column,
.home-side-column {
    min-width:
        0;
}


.home-side-column {
    display:
        flex;

    flex-direction:
        column;

    gap:
        20px;
}


.home-side-column
.sidebar-widget {
    position:
        sticky;

    top:
        94px;
}


/* =====================================================
 * Responsive
 * ===================================================== */

@media (max-width: 1050px) {

    .home-showcase-grid {
        grid-template-columns:
            minmax(0, 1fr)
            285px;
    }


    .home-content-grid {
        grid-template-columns:
            minmax(0, 1fr)
            270px;
    }


    .home-player-card-content {
        padding:
            23px;
    }

}


@media (max-width: 900px) {

    .home-showcase-grid {
        grid-template-columns:
            1fr;
    }


    .home-showcase-side {
        display:
            grid;

        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(0, 1.1fr);

        gap:
            16px;
    }


    .home-season-card {
        margin-top:
            0;
    }


    .home-content-grid {
        grid-template-columns:
            1fr;
    }


    .home-side-column
    .sidebar-widget {
        position:
            static;
    }

}


@media (max-width: 700px) {

    .home-player-card,
    .home-player-card-content {
        min-height:
            0;
    }


    .home-player-card-content {
        padding:
            21px;

        gap:
            19px;
    }


    .home-player-card-main {
        align-items:
            center;

        flex-direction:
            column;

        text-align:
            center;
    }


    .home-profile-name-row {
        justify-content:
            center;
    }


    .home-profile-tags {
        justify-content:
            center;
    }


    .home-player-card-footer {
        grid-template-columns:
            1fr;
    }


    .home-profile-wallet {
        width:
            100%;
    }


    .home-showcase-side {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 480px) {

    .home-page-layout {
        padding-top:
            18px;
    }


    .home-player-card-content {
        padding:
            18px;
    }


    .home-player-card-header {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .home-profile-name-row h1 {
        max-width:
            240px;

        font-size:
            27px;
    }


    .home-profile-progress-header {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            4px;
    }


    .hero-compact-card {
        min-height:
            135px;
    }

}
