/**
 * الصفحة الرئيسية — طبقة تصميم فوق الثيم الكلاسيكي
 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&display=swap');

.home-page {
    position: relative;
}

/* ——— شريط الهبوط: خلفية سينمائية + شبكة خفيفة ——— */
.home-landing {
    position: relative;
    padding: 22px 16px 28px;
    margin-inline: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    background:
        radial-gradient(ellipse 85% 55% at 50% -25%, rgba(255, 210, 103, 0.16), transparent 58%),
        radial-gradient(ellipse 45% 40% at 95% 35%, rgba(108, 92, 231, 0.1), transparent 55%),
        radial-gradient(ellipse 40% 35% at 5% 60%, rgba(200, 120, 40, 0.06), transparent 50%),
        linear-gradient(185deg, #0c0b0e 0%, #060607 55%, #050506 100%);
    border-bottom: 1px solid rgba(255, 210, 103, 0.14);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.home-landing-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 210, 103, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 210, 103, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, #000 35%, transparent 92%);
    pointer-events: none;
    z-index: 0;
}

.home-landing-inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.home-server-wrap {
    justify-content: center;
    margin-bottom: 0;
    width: 100%;
}

.home-server-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 210, 103, 0.28);
    background: linear-gradient(160deg, rgba(22, 20, 16, 0.96) 0%, rgba(6, 6, 8, 0.94) 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 28px 56px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
    height: auto !important;
    min-height: 200px;
    padding-bottom: 16px;
    box-sizing: border-box;
}

.home-realm-continuity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 8px;
    margin-top: 14px;
    padding: 9px 14px 8px;
    max-width: calc(100% - 24px);
    border-radius: 999px;
    border: 1px solid rgba(120, 220, 140, 0.16);
    background: rgba(0, 0, 0, 0.28);
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: none;
    color: rgba(210, 235, 215, 0.82);
    line-height: 1.35;
}

.home-realm-continuity__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #6ee7a0;
    box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.55);
    animation: home-realm-pulse 2.4s ease-out infinite;
}

@keyframes home-realm-pulse {
    0% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(110, 231, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0); }
}

.home-realm-continuity__since {
    color: rgba(220, 240, 225, 0.88);
}

.home-realm-continuity__sep {
    color: rgba(160, 200, 170, 0.45);
    font-weight: 700;
}

.home-realm-continuity__duration {
    font-variant-numeric: tabular-nums;
    color: #9ef0be;
    letter-spacing: 0.08em;
}

.home-server-card:hover {
    border-color: rgba(255, 210, 103, 0.42);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.45),
        0 32px 64px rgba(0, 0, 0, 0.55),
        0 0 48px rgba(255, 200, 80, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-fast-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-top: 0 !important;
    width: 100%;
}

/* يزيل المسافة الكبيرة بين بطاقة السيرفر وصف الأزرار (الثيم يفرض margin-top على .fast-button) */
.home-page .fast-button {
    margin-top: 0 !important;
}

/* ——— Season 1 banner ——— */
.home-season {
    position: relative;
    max-width: 980px;
    margin: -8px auto 0;
    padding: 0 18px 8px;
    z-index: 2;
}

.home-season-glow {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: min(100%, 880px);
    height: 360px;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(255, 140, 40, 0.22), transparent 55%),
        radial-gradient(ellipse at 70% 50%, rgba(180, 80, 255, 0.12), transparent 50%),
        radial-gradient(ellipse at center, rgba(255, 200, 80, 0.14), transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: home-season-glow-pulse 5.5s ease-in-out infinite;
}

.home-season-sparks {
    position: absolute;
    inset: 0 18px auto;
    height: 100%;
    max-width: 980px;
    margin: 0 auto;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    border-radius: 22px;
}

.home-season-sparks::before,
.home-season-sparks::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffd267;
    box-shadow:
        40px 80px 0 0 rgba(255, 210, 103, 0.35),
        120px 40px 0 1px rgba(255, 180, 80, 0.25),
        220px 120px 0 0 rgba(255, 230, 160, 0.4),
        320px 60px 0 0 rgba(200, 140, 255, 0.3),
        420px 150px 0 1px rgba(255, 210, 103, 0.28),
        520px 90px 0 0 rgba(255, 160, 60, 0.35),
        680px 130px 0 0 rgba(255, 210, 103, 0.22),
        780px 50px 0 1px rgba(180, 120, 255, 0.25);
    animation: home-season-spark-drift 9s linear infinite;
    opacity: 0.7;
}

.home-season-sparks::after {
    top: 40px;
    animation-duration: 12s;
    animation-direction: reverse;
    opacity: 0.45;
}

@keyframes home-season-glow-pulse {
    0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes home-season-spark-drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-28px); }
}

.home-season-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: clamp(28px, 4vw, 42px) clamp(20px, 4vw, 36px);
    border-radius: 22px;
    background:
        linear-gradient(165deg, rgba(36, 22, 8, 0.96) 0%, rgba(8, 8, 12, 0.97) 50%, rgba(22, 12, 32, 0.94) 100%);
    border: 1px solid rgba(255, 190, 80, 0.38);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.45),
        0 28px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(255, 180, 60, 0.08);
    overflow: hidden;
}

.home-season-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, transparent 40%, rgba(255, 210, 103, 0.06) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: home-season-sheen 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes home-season-sheen {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
}

.home-season-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin-bottom: 14px;
    position: relative;
}

.home-season-label {
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 999px;
    color: #1a1208;
    background: linear-gradient(120deg, #ffe8b8 0%, #ffd267 50%, #c9922a 100%);
    box-shadow: 0 4px 20px rgba(255, 200, 80, 0.25);
}

.home-season-label--pvp {
    color: #efe6ff;
    background: linear-gradient(120deg, rgba(120, 80, 200, 0.95) 0%, rgba(70, 40, 140, 0.98) 100%);
    border: 1px solid rgba(180, 140, 255, 0.35);
    box-shadow: 0 4px 20px rgba(100, 50, 180, 0.22);
}

.home-season-days {
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 220, 160, 0.88);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 210, 103, 0.22);
    background: rgba(255, 210, 103, 0.06);
}

.home-season-days--date {
    color: #ffe8b8;
    border-color: rgba(255, 180, 60, 0.45);
    background: linear-gradient(120deg, rgba(255, 140, 40, 0.18), rgba(255, 210, 103, 0.1));
    animation: home-season-badge-pulse 2.4s ease-in-out infinite;
}

@keyframes home-season-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 180, 60, 0); }
    50% { box-shadow: 0 0 18px 2px rgba(255, 180, 60, 0.28); }
}

.home-season-title {
    position: relative;
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: clamp(1.7rem, 4.8vw, 2.7rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 12px;
    background: linear-gradient(120deg, #fff8e8 0%, #ffd267 45%, #d4a030 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-season-lead {
    position: relative;
    max-width: 58ch;
    margin: 0 auto 22px;
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: clamp(0.95rem, 2.1vw, 1.08rem);
    line-height: 1.65;
    color: rgba(255, 238, 210, 0.78);
    font-weight: 500;
}

/* Big date stamp */
.home-season-stamp {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto 22px;
    padding: 14px 28px 14px 22px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 190, 80, 0.14), rgba(0, 0, 0, 0.35));
    border: 1px solid rgba(255, 210, 103, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-season-stamp__day {
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: clamp(3.2rem, 8vw, 4.6rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #fff4d8;
    text-shadow: 0 0 40px rgba(255, 180, 40, 0.55);
    font-variant-numeric: tabular-nums;
}

.home-season-stamp__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
    gap: 2px;
}

.home-season-stamp__month {
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffd267;
}

.home-season-stamp__year {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 230, 180, 0.7);
    letter-spacing: 0.12em;
}

.home-season-stamp__time {
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 210, 103, 0.65);
    letter-spacing: 0.04em;
}

[dir="rtl"] .home-season-stamp__meta {
    align-items: flex-end;
    text-align: end;
}

.home-season-countdown {
    position: relative;
    margin: 0 auto 24px;
    padding: 18px 16px 16px;
    max-width: 540px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 210, 103, 0.22);
}

.home-season-countdown__label {
    display: block;
    margin-bottom: 14px;
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 210, 103, 0.75);
}

.home-season-countdown__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
}

.home-season-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 10px 8px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 210, 103, 0.1), rgba(0, 0, 0, 0.25));
    border: 1px solid rgba(255, 210, 103, 0.15);
}

.home-season-countdown__value {
    font-family: 'Outfit', 'Open Sans', monospace;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1;
    color: #fff4d8;
    text-shadow: 0 0 24px rgba(255, 200, 80, 0.35);
    font-variant-numeric: tabular-nums;
    transition: transform 0.15s ease;
}

.home-season-countdown__value.is-tick {
    transform: scale(1.08);
    color: #ffe08a;
}

.home-season-countdown__name {
    margin-top: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 210, 103, 0.55);
}

.home-season-countdown__sep {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 210, 103, 0.35);
    margin-top: -18px;
}

.home-season-countdown.is-live .home-season-countdown__value {
    color: #7dffb0;
    text-shadow: 0 0 24px rgba(80, 255, 160, 0.35);
}

.home-season-countdown--soon {
    text-align: center;
}

.home-season-soon {
    display: block;
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff4d8;
    text-shadow: 0 0 32px rgba(255, 200, 80, 0.4);
}

/* Hype pillars */
.home-season-pillars {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    list-style: none;
    margin: 0 auto 24px;
    padding: 0;
    max-width: 720px;
}

.home-season-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: 14px;
    background: rgba(255, 210, 103, 0.05);
    border: 1px solid rgba(255, 210, 103, 0.16);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.home-season-pillar:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 210, 103, 0.4);
    background: rgba(255, 210, 103, 0.1);
}

.home-season-pillar__icon {
    font-size: 1.25rem;
    line-height: 1;
    color: #ffd267;
    filter: drop-shadow(0 0 8px rgba(255, 180, 60, 0.45));
}

.home-season-pillar strong {
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffe8b8;
}

.home-season-pillar span {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(230, 220, 200, 0.65);
    max-width: 18ch;
}

/* Prep missions */
.home-season-missions {
    position: relative;
    margin: 0 auto 22px;
    padding: 18px 20px 16px;
    max-width: 520px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(80, 40, 140, 0.18), rgba(0, 0, 0, 0.35));
    border: 1px solid rgba(180, 140, 255, 0.22);
    text-align: start;
}

[dir="rtl"] .home-season-missions {
    text-align: right;
}

.home-season-missions__title {
    margin: 0 0 12px;
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(220, 190, 255, 0.85);
    text-align: center;
}

.home-season-missions__list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: season-mission;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-season-missions__list li {
    counter-increment: season-mission;
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-season-missions__list li::before {
    content: counter(season-mission);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a1208;
    background: linear-gradient(120deg, #ffe8b8, #ffd267);
    box-shadow: 0 0 12px rgba(255, 200, 80, 0.3);
}

.home-season-missions__list a,
.home-season-invite-btn {
    flex: 1;
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #f0e8ff;
    text-decoration: none;
    background: none;
    background-image: none;
    border: none;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 8px 4px;
    margin: 0;
    cursor: pointer;
    text-align: inherit;
    text-transform: none;
    filter: none;
    -webkit-filter: none;
    box-shadow: none;
    transition: color 0.15s ease;
}

.home-season-missions__list a:hover,
.home-season-invite-btn:hover {
    color: #ffd267;
    filter: none;
    -webkit-filter: none;
    background-image: none;
}

.home-season-invite-feedback {
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7dffb0;
}

.home-season-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    margin-bottom: 16px;
}

/* Reset global theme button PNG frame on season CTAs */
.home-season-cta,
button.home-season-cta,
.home-page button.home-season-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 152px;
    width: auto;
    height: auto;
    min-height: 48px;
    padding: 13px 22px;
    margin: 0;
    border-radius: 10px;
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    background-image: none !important;
    background-repeat: no-repeat;
    background-size: auto;
    filter: none !important;
    -webkit-filter: none !important;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-season-cta:hover,
button.home-season-cta:hover {
    filter: none !important;
    -webkit-filter: none !important;
    background-image: none !important;
}

.home-season-cta--primary {
    color: #1a1208;
    background: linear-gradient(120deg, #ffe8b8 0%, #ffd267 55%, #c9922a 100%);
    border-color: rgba(255, 220, 140, 0.5);
    box-shadow: 0 8px 28px rgba(255, 180, 60, 0.22);
    animation: home-season-cta-glow 2.8s ease-in-out infinite;
}

@keyframes home-season-cta-glow {
    0%, 100% { box-shadow: 0 8px 28px rgba(255, 180, 60, 0.22); }
    50% { box-shadow: 0 10px 36px rgba(255, 180, 60, 0.42); }
}

.home-season-cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 180, 60, 0.32);
    color: #1a1208;
    background: linear-gradient(120deg, #fff0d0 0%, #ffe08a 55%, #d4a030 100%);
}

.home-season-cta--secondary {
    color: #ffecc8;
    background: rgba(255, 210, 103, 0.08);
    border-color: rgba(255, 210, 103, 0.35);
}

.home-season-cta--secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 210, 103, 0.14);
    border-color: rgba(255, 210, 103, 0.55);
    color: #fff8e8;
}

.home-season-cta--invite {
    color: #efe6ff;
    background: linear-gradient(120deg, rgba(100, 70, 180, 0.55), rgba(60, 40, 120, 0.7));
    border-color: rgba(180, 140, 255, 0.4);
    box-shadow: 0 8px 24px rgba(100, 60, 180, 0.2);
}

.home-season-cta--invite:hover {
    transform: translateY(-2px);
    background: linear-gradient(120deg, rgba(120, 90, 200, 0.7), rgba(70, 50, 140, 0.85));
    color: #fff;
    border-color: rgba(200, 170, 255, 0.55);
}

.home-season-note {
    position: relative;
    max-width: 54ch;
    margin: 0 auto;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(220, 215, 205, 0.72);
}

.home-page .home-intro {
    padding-top: 36px;
}

/* ——— مقدمة نصية ——— */
.home-intro {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 18px 64px;
}

.home-intro-glow {
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    width: min(92%, 700px);
    height: 220px;
    background: radial-gradient(ellipse at center, rgba(255, 200, 90, 0.14), transparent 68%);
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.home-intro-inner {
    position: relative;
    z-index: 1;
    padding: clamp(28px, 4vw, 42px) clamp(22px, 4vw, 44px);
    border-radius: 24px;
    background: rgba(10, 11, 14, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 210, 103, 0.22);
    box-shadow:
        0 4px 0 rgba(255, 210, 103, 0.05),
        0 32px 64px rgba(0, 0, 0, 0.42);
}

.home-intro-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        145deg,
        rgba(255, 210, 103, 0.35),
        rgba(255, 140, 60, 0.08) 40%,
        rgba(90, 70, 180, 0.12) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.85;
}

.home-intro-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.home-intro-badge {
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
    color: rgba(255, 228, 180, 0.95);
    background: rgba(255, 210, 103, 0.07);
    border: 1px solid rgba(255, 210, 103, 0.22);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.home-intro-title {
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: clamp(1.55rem, 4.2vw, 2.4rem);
    font-weight: 700;
    line-height: 1.18;
    text-align: center;
    margin: 0 0 14px;
    background: linear-gradient(120deg, #fff8e8 0%, #ffd267 42%, #b88920 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-intro-lead {
    text-align: center;
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: clamp(0.98rem, 2.2vw, 1.12rem);
    color: rgba(255, 240, 215, 0.68);
    margin: 0 0 26px;
    line-height: 1.55;
    font-weight: 500;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

.home-intro-body {
    text-align: start;
    font-size: 1.02rem;
    line-height: 1.88;
    color: rgba(232, 228, 218, 0.93);
}

.home-intro-body p {
    margin: 0 0 1.2em;
}

.home-intro-body p:last-child {
    margin-bottom: 0;
}

.home-intro-body strong {
    color: #ffecc8;
    font-weight: 600;
}

.home-external-link {
    color: #ffd267;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 210, 103, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.home-external-link:hover {
    color: #fff4d4;
    border-bottom-color: rgba(255, 230, 160, 0.85);
    text-shadow: 0 0 20px rgba(255, 210, 103, 0.35);
}

.home-external-link:focus-visible {
    outline: 2px solid rgba(255, 210, 103, 0.7);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ——— أقسام الصفحة الرئيسية: هوامش أوضح (بدل 100px الفارغة) ——— */
.home-page .news-section-only {
    margin-top: 12px !important;
    margin-bottom: 48px !important;
    padding-bottom: 32px !important;
}

.home-page .wiki-posts-section {
    margin-top: 36px !important;
}

.home-page .block-top-page {
    margin-top: 44px !important;
    padding-bottom: 44px !important;
}

.home-page .block-top-page + .block-top-page {
    margin-top: 44px !important;
}

.home-page .top-players-section-only {
    margin-top: 44px !important;
}

.home-page .events-section {
    margin-top: 44px !important;
}

/* عناوين الأقسام */
.home-page .home-section-title {
    margin-bottom: 22px !important;
}

.home-page .home-section-title h2 {
    font-family: 'Outfit', 'Open Sans', sans-serif;
    letter-spacing: 0.14em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

/* ترتيب أفضل اللاعبين: ثلاث أعمدة متساوية بدون فراغ في المنتصف */
.home-page .home-top-rankings {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 20px;
    align-items: stretch;
    justify-content: stretch;
    max-width: 1180px;
    width: 100%;
}

.home-page .home-top-rankings .widget {
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    min-height: 440px;
    border-radius: 4px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-page .home-top-rankings .widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 210, 103, 0.12);
}

/* الأحداث: شبكة متوازنة + ارتفاع أخف */
.home-page .home-events-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 380px));
    justify-content: center;
    gap: 22px 28px;
    width: 100%;
    max-width: 820px;
}

.home-page .home-events-grid .widget {
    flex: none !important;
    width: 100% !important;
    max-width: 380px;
    margin: 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
}

.home-page .home-events-block .event-panel {
    height: auto;
    min-height: 380px;
    max-height: 520px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-page .home-events-block .event-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);
}

.home-page .home-events-block .event-content {
    height: auto;
    min-height: 200px;
    flex: 1;
}

/* Horizon Invasion — طابع بنفسجي/طاقة فوق خلفية الحدث */
.home-page .home-events-subtitle {
    max-width: min(52ch, 96vw);
    margin: 10px auto 0;
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: clamp(0.88rem, 2vw, 1rem);
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
    color: rgba(210, 190, 255, 0.88);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.home-page .home-event-panel--horizon.event-panel {
    background-image:
        linear-gradient(
            165deg,
            rgba(38, 14, 72, 0.88) 0%,
            rgba(10, 6, 22, 0.92) 45%,
            rgba(22, 8, 48, 0.9) 100%
        ),
        url(/static/images/bg-pk.jpg);
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-position: center, center;
    border: 1px solid rgba(150, 100, 220, 0.35);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.45),
        0 0 48px rgba(100, 50, 180, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-page .home-event-panel--horizon .widget-title h2 {
    color: #efe6ff;
    text-shadow: 0 0 24px rgba(160, 100, 255, 0.45);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    letter-spacing: 0.04em;
}

.home-page .home-event-desc.event-text {
    text-transform: none;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(248, 244, 255, 0.92);
    margin-bottom: 12px;
}

.home-page .home-event-date.date {
    color: #c9a8ff;
    font-weight: 600;
}

.home-page .home-event-youtube {
    letter-spacing: 0.06em;
}

/* ميديا */
.home-page .block-media {
    margin-top: 36px;
}

@media (max-width: 1180px) {
    .home-page .home-top-rankings {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-page .home-top-rankings .widget {
        min-height: 400px;
    }
}

@media (max-width: 900px) {
    .home-page .home-events-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .home-landing {
        padding: 18px 12px 24px;
    }

    .home-season {
        padding: 0 12px 4px;
        margin-top: 0;
    }

    .home-season-inner {
        padding: 22px 16px 24px;
        border-radius: 18px;
    }

    .home-season-stamp {
        gap: 12px;
        padding: 12px 18px 12px 16px;
    }

    .home-season-pillars {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .home-season-countdown__unit {
        min-width: 52px;
        padding: 8px 4px;
    }

    .home-season-countdown__sep {
        margin-top: -14px;
        font-size: 1.2rem;
    }

    .home-season-cta {
        width: 100%;
        max-width: 280px;
    }

    .home-landing-inner {
        gap: 10px;
    }

    .home-intro {
        padding: 36px 14px 48px;
    }

    .home-intro-inner {
        padding: 24px 18px 28px;
        border-radius: 18px;
    }

    .home-intro-title {
        font-size: 1.45rem;
    }

    .home-intro-body {
        font-size: 0.98rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-server-card,
    .home-external-link,
    .home-season-cta,
    .home-season-pillar,
    .home-page .home-top-rankings .widget,
    .home-page .home-events-block .event-panel {
        transition: none;
    }

    .home-realm-continuity__pulse,
    .home-season-glow,
    .home-season-sparks::before,
    .home-season-sparks::after,
    .home-season-inner::before,
    .home-season-days--date,
    .home-season-cta--primary {
        animation: none;
    }

    .home-page .home-top-rankings .widget:hover,
    .home-page .home-events-block .event-panel:hover,
    .home-season-cta:hover,
    .home-season-pillar:hover {
        transform: none;
    }
}
