/* =========================================================
   RESET E VARIABILI
   ========================================================= */

:root {
    --background: #050607;
    --background-soft: #0b0e10;
    --panel: rgba(12, 15, 17, 0.92);
    --panel-light: rgba(22, 26, 29, 0.88);

    --red: #d12626;
    --red-dark: #6b0909;
    --red-glow: rgba(209, 38, 38, 0.38);

    --gold: #efc44e;
    --gold-dark: #876412;
    --gold-glow: rgba(239, 196, 78, 0.35);

    --white: #f1f1f1;
    --grey: #b6b9bc;
    --grey-dark: #777d81;

    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);

    --heading-font: "Anton", Impact, sans-serif;
    --body-font: "Oswald", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--white);
    font-family: var(--body-font);

    background: var(--background);

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

/* =========================================================
   SFONDO
   ========================================================= */

.page-background {
    position: fixed;
    inset: 0;
    z-index: -3;

    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(170, 20, 15, 0.28),
            transparent 35%
        ),
        radial-gradient(
            circle at 20% 70%,
            rgba(100, 10, 10, 0.17),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #050607 0%,
            #111315 45%,
            #070809 100%
        );
}

.page-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.58)
        );

    pointer-events: none;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid var(--border);

    background:
        rgba(5, 7, 8, 0.88);

    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1500px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-symbol {
    width: 52px;
    height: 52px;

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

    color: var(--red);

    font-size: 29px;

    border: 1px solid rgba(209, 38, 38, 0.65);

    background:
        linear-gradient(
            145deg,
            rgba(209, 38, 38, 0.18),
            rgba(20, 20, 20, 0.8)
        );

    box-shadow:
        0 0 18px rgba(209, 38, 38, 0.22);

    clip-path: polygon(
        10px 0,
        calc(100% - 10px) 0,
        100% 10px,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        10px 100%,
        0 calc(100% - 10px),
        0 10px
    );
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.brand-text strong {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
}

.brand-text span {
    margin-top: 4px;

    color: var(--red);

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    position: relative;

    padding: 30px 0 27px;

    color: var(--grey);

    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;

    transition:
        color 0.2s ease;
}

.nav-link::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;

    height: 2px;

    background: var(--red);

    transform: scaleX(0);

    transition:
        transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-button {
    min-height: 42px;
}

.mobile-menu-button {
    width: 44px;
    height: 44px;

    display: none;
    justify-content: center;
    align-items: center;

    color: var(--white);

    font-size: 27px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid var(--border);
    border-radius: 5px;

    cursor: pointer;
}

/* =========================================================
   PULSANTI
   ========================================================= */

.primary-button,
.secondary-button {
    min-height: 50px;
    padding: 12px 21px;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;

    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;

    border: 1px solid transparent;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        border-color 0.2s ease;
}

.primary-button {
    color: #ffffff;

    border-color: #ed4545;

    background:
        linear-gradient(
            145deg,
            #d62b2b,
            #720909
        );

    box-shadow:
        0 8px 28px rgba(209, 38, 38, 0.24);
}

.secondary-button {
    color: var(--white);

    border-color: var(--border-strong);

    background:
        rgba(255, 255, 255, 0.04);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.13);
}

.secondary-button:hover {
    border-color: var(--red);
}

/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    position: relative;

    min-height: 750px;
    padding: 90px 0 70px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 4, 5, 0.98) 0%,
            rgba(3, 4, 5, 0.86) 43%,
            rgba(3, 4, 5, 0.32) 72%,
            rgba(3, 4, 5, 0.72) 100%
        ),
        radial-gradient(
            circle at 78% 44%,
            rgba(170, 30, 15, 0.35),
            transparent 32%
        );

    pointer-events: none;
}

.hero-section::after {
    content: "";

    position: absolute;
    right: -220px;
    bottom: -270px;

    width: 760px;
    height: 760px;

    border: 2px solid rgba(209, 38, 38, 0.12);
    border-radius: 50%;

    box-shadow:
        0 0 100px rgba(209, 38, 38, 0.08);

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(1500px, calc(100% - 40px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.75fr);
    gap: 80px;
    align-items: center;
}

.hero-copy {
    max-width: 810px;
}

.eyebrow {
    display: inline-block;

    color: var(--red);

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.cta-content h2 {
    margin: 14px 0 20px;

    font-family: var(--heading-font);
    font-weight: 400;
    line-height: 0.93;
    letter-spacing: 1px;
}

.hero-copy h1 {
    font-size: clamp(65px, 7vw, 116px);
}

.hero-copy h1 span {
    display: block;

    color: var(--red);

    text-shadow:
        0 0 24px rgba(209, 38, 38, 0.36);
}

.hero-copy > p {
    max-width: 700px;
    margin: 0;

    color: var(--grey);

    font-size: 23px;
    font-weight: 300;
    line-height: 1.55;
}

.hero-actions {
    margin-top: 34px;

    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 44px;
    padding-top: 28px;

    display: flex;
    gap: 45px;

    border-top: 1px solid var(--border);
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat strong {
    color: var(--white);

    font-family: var(--heading-font);
    font-size: 39px;
    font-weight: 400;
}

.hero-stat span {
    color: var(--grey-dark);

    font-size: 15px;
    letter-spacing: 0.5px;
}

/* =========================================================
   ANTEPRIMA PLAYER CARD
   ========================================================= */

.hero-card-preview {
    position: relative;

    min-height: 580px;

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

.preview-glow {
    position: absolute;

    width: 420px;
    height: 420px;

    background:
        radial-gradient(
            circle,
            rgba(225, 49, 31, 0.34),
            rgba(225, 49, 31, 0.03) 55%,
            transparent 70%
        );

    filter: blur(10px);
}

.mini-player-card {
    position: relative;

    width: 390px;

    padding: 11px;

    background:
        linear-gradient(
            150deg,
            #181b1d,
            #050708
        );

    border: 2px solid var(--gold);

    clip-path: polygon(
        18px 0,
        calc(100% - 18px) 0,
        100% 18px,
        100% calc(100% - 18px),
        calc(100% - 18px) 100%,
        18px 100%,
        0 calc(100% - 18px),
        0 18px
    );

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.8),
        0 0 40px var(--gold-glow);

    transform:
        perspective(1000px)
        rotateY(-6deg)
        rotateX(1deg);

    transition:
        transform 0.35s ease;
}

.mini-player-card:hover {
    transform:
        perspective(1000px)
        rotateY(0)
        rotateX(0)
        translateY(-8px);
}

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

    position: absolute;
    inset: 8px;
    z-index: 8;

    border: 1px solid var(--gold);

    clip-path: inherit;

    pointer-events: none;
}

.mini-card-header {
    min-height: 60px;
    padding: 10px 16px;

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

    color: var(--gold);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(116, 84, 15, 0.75),
            rgba(159, 117, 20, 0.8),
            rgba(116, 84, 15, 0.75),
            transparent
        );

    border-bottom: 1px solid var(--gold);
}

.mini-card-header span {
    font-family: var(--heading-font);
    font-size: 23px;
}

.mini-card-header strong {
    font-family: var(--heading-font);
    font-size: 25px;
    font-weight: 400;
}

.mini-card-image {
    position: relative;

    height: 260px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(162, 51, 19, 0.45),
            transparent 50%
        ),
        linear-gradient(
            145deg,
            #16191b,
            #050607
        );
}

.mini-card-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            #080a0b 0%,
            transparent 50%
        );
}

.mini-card-logo {
    position: absolute;
    top: 22px;
    left: 20px;
    z-index: 2;

    width: 85px;

    color: var(--gold);

    font-family: var(--heading-font);
    font-size: 22px;
    line-height: 0.9;
}

.mini-card-placeholder {
    position: absolute;
    right: 13px;
    bottom: 5px;

    color: rgba(255, 255, 255, 0.12);

    font-family: var(--heading-font);
    font-size: 96px;
    line-height: 1;
}

.mini-card-player {
    position: relative;
    z-index: 2;

    margin-top: -30px;
    padding: 0 16px 13px;
}

.mini-card-player h2 {
    margin: 0;

    color: var(--gold);

    font-family: var(--heading-font);
    font-size: 48px;
    font-weight: 400;
}

.mini-player-meta {
    display: flex;
    justify-content: space-between;

    color: var(--gold);

    font-size: 16px;
}

.mini-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid rgba(239, 196, 78, 0.32);
    border-left: 1px solid rgba(239, 196, 78, 0.32);
}

.mini-card-stats > div {
    min-height: 65px;

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

    border-right: 1px solid rgba(239, 196, 78, 0.32);
    border-bottom: 1px solid rgba(239, 196, 78, 0.32);
}

.mini-card-stats strong {
    color: var(--gold);

    font-family: var(--heading-font);
    font-size: 25px;
    font-weight: 400;
}

.mini-card-stats span {
    color: #d6d6d6;

    font-size: 11px;
}

.mini-card-role {
    padding: 12px;

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

    color: var(--gold);

    border: 1px solid rgba(239, 196, 78, 0.32);
    border-top: 0;
}

.mini-card-role span {
    font-size: 14px;
    font-weight: 700;
}

.mini-card-role strong {
    font-size: 22px;
    letter-spacing: 1px;
}

/* =========================================================
   SEZIONE FEATURES
   ========================================================= */

.features-section,
.players-showcase,
.cta-section {
    position: relative;

    width: min(1500px, calc(100% - 40px));
    margin: 0 auto;
}

.features-section {
    padding: 110px 0 90px;
}

.section-heading {
    max-width: 800px;
    margin: 0 auto 50px;

    text-align: center;
}

.section-heading h2 {
    font-size: clamp(48px, 5vw, 76px);
}

.section-heading p {
    margin: 0;

    color: var(--grey);

    font-size: 20px;
    line-height: 1.55;
}

.left-heading {
    margin-right: 0;
    margin-left: 0;

    text-align: left;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    position: relative;

    min-height: 425px;
    padding: 28px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            150deg,
            rgba(22, 26, 29, 0.94),
            rgba(6, 8, 9, 0.98)
        );

    border: 1px solid var(--border);

    clip-path: polygon(
        13px 0,
        calc(100% - 13px) 0,
        100% 13px,
        100% calc(100% - 13px),
        calc(100% - 13px) 100%,
        13px 100%,
        0 calc(100% - 13px),
        0 13px
    );

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

.feature-card:hover {
    transform: translateY(-6px);

    border-color: rgba(209, 38, 38, 0.55);

    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.42),
        0 0 26px rgba(209, 38, 38, 0.12);
}

.featured-card {
    border-color: rgba(239, 196, 78, 0.5);

    box-shadow:
        0 0 30px rgba(239, 196, 78, 0.08);
}

.feature-icon {
    width: 59px;
    height: 59px;
    margin-bottom: 22px;

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

    color: var(--red);

    font-size: 31px;

    border: 1px solid rgba(209, 38, 38, 0.52);

    background:
        rgba(209, 38, 38, 0.09);
}

.featured-card .feature-icon {
    color: var(--gold);

    border-color: rgba(239, 196, 78, 0.52);

    background:
        rgba(239, 196, 78, 0.08);
}

.feature-label {
    position: absolute;
    top: 21px;
    right: 21px;

    padding: 5px 10px;

    color: #7fdb86;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    background:
        rgba(49, 140, 57, 0.14);

    border: 1px solid rgba(79, 192, 87, 0.35);
}

.development-label {
    color: #d6a84b;

    background:
        rgba(180, 124, 15, 0.12);

    border-color: rgba(212, 157, 48, 0.32);
}

.feature-card h3 {
    margin: 0 0 12px;

    font-family: var(--heading-font);
    font-size: 34px;
    font-weight: 400;
}

.feature-card p {
    margin: 0;

    color: var(--grey);

    font-size: 17px;
    line-height: 1.55;
}

.feature-list {
    margin: 22px 0;
    padding: 0;

    list-style: none;
}

.feature-list li {
    position: relative;

    padding: 7px 0 7px 20px;

    color: #c8cbcd;

    font-size: 15px;
}

.feature-list li::before {
    content: "";

    position: absolute;
    top: 15px;
    left: 0;

    width: 7px;
    height: 7px;

    background: var(--red);

    transform: rotate(45deg);
}

.featured-card .feature-list li::before {
    background: var(--gold);
}

.feature-link {
    margin-top: auto;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--red);

    font-size: 16px;
    font-weight: 700;

    border: 0;
    background: none;

    cursor: pointer;
}

.featured-card .feature-link {
    color: var(--gold);
}

.disabled-link {
    color: var(--grey-dark);

    cursor: default;
}

/* =========================================================
   PLAYER IN EVIDENZA
   ========================================================= */

.players-showcase {
    padding: 40px 0 110px;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.player-list-card {
    position: relative;

    min-height: 145px;
    padding: 21px;

    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    gap: 18px;
    align-items: center;

    background:
        linear-gradient(
            145deg,
            rgba(23, 26, 28, 0.96),
            rgba(6, 8, 9, 0.99)
        );

    border: 1px solid rgba(239, 196, 78, 0.42);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35);
}

.player-rank {
    position: absolute;
    top: 0;
    left: 0;

    padding: 4px 11px;

    color: #17120a;

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

    background: var(--gold);
}

.player-avatar {
    width: 77px;
    height: 77px;

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

    color: var(--gold);

    font-family: var(--heading-font);
    font-size: 30px;

    border: 1px solid rgba(239, 196, 78, 0.5);

    background:
        radial-gradient(
            circle,
            rgba(239, 196, 78, 0.15),
            transparent 65%
        );
}

.player-list-info h3 {
    margin: 0;

    color: var(--gold);

    font-family: var(--heading-font);
    font-size: 31px;
    font-weight: 400;
}

.player-list-info p {
    margin: 4px 0;

    color: var(--grey);

    font-size: 15px;
}

.player-list-info span {
    color: #d9d9d9;

    font-size: 16px;
    font-weight: 600;
}

.player-overall {
    display: flex;
    flex-direction: column;
    align-items: center;

    color: var(--gold);
}

.player-overall strong {
    font-family: var(--heading-font);
    font-size: 53px;
    font-weight: 400;
    line-height: 0.9;
}

.player-overall span {
    font-size: 13px;
    letter-spacing: 1px;
}

.player-card-button {
    width: 48px;
    height: 48px;

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

    color: var(--gold);

    font-size: 22px;

    border: 1px solid rgba(239, 196, 78, 0.5);

    background:
        rgba(239, 196, 78, 0.06);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.player-card-button:hover {
    transform: translateX(3px);

    background:
        rgba(239, 196, 78, 0.14);
}

/* =========================================================
   CALL TO ACTION
   ========================================================= */

.cta-section {
    margin-bottom: 90px;
    padding: 55px;

    border: 1px solid rgba(209, 38, 38, 0.38);

    background:
        linear-gradient(
            120deg,
            rgba(125, 10, 10, 0.24),
            rgba(13, 16, 18, 0.96) 55%
        );

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

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-content h2 {
    font-size: clamp(43px, 4vw, 67px);
}

.cta-content p {
    margin: 0;

    color: var(--grey);

    font-size: 19px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    border-top: 1px solid var(--border);

    background:
        rgba(5, 7, 8, 0.92);
}

.footer-inner {
    width: min(1500px, calc(100% - 40px));
    min-height: 145px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-inner strong {
    font-family: var(--heading-font);
    font-size: 25px;
    font-weight: 400;
}

.footer-inner p {
    margin: 6px 0 0;

    color: var(--grey-dark);
}

.footer-inner > a {
    color: var(--red);

    font-weight: 700;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .main-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

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

    .hero-copy {
        max-width: none;

        text-align: center;
    }

    .hero-copy > p {
        margin: 0 auto;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .hero-card-preview {
        min-height: 530px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {

    .header-button {
        display: none;
    }

    .hero-section {
        padding-top: 65px;
    }

    .hero-copy h1 {
        font-size: 68px;
    }

    .hero-copy > p {
        font-size: 19px;
    }

    .hero-stats {
        gap: 25px;
        flex-wrap: wrap;
    }

    .feature-grid,
    .players-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {

    .header-inner,
    .hero-content,
    .features-section,
    .players-showcase,
    .cta-section,
    .footer-inner {
        width: min(100% - 22px, 1500px);
    }

    .brand-text strong {
        font-size: 19px;
    }

    .brand-symbol {
        width: 46px;
        height: 46px;
    }

    .hero-copy h1 {
        font-size: 51px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .mini-player-card {
        width: min(390px, 100%);
    }

    .feature-grid {
        gap: 13px;
    }

    .feature-card {
        min-height: auto;
    }

    .player-list-card {
        grid-template-columns: auto 1fr auto;
    }

    .player-rank {
        display: none;
    }

    .player-avatar {
        width: 60px;
        height: 60px;
    }

    .player-card-button {
        display: none;
    }

    .cta-section {
        padding: 32px 23px;
    }

    .footer-inner {
        padding: 30px 0;

        flex-direction: column;
        align-items: flex-start;
    }
}
/* =========================================================
   MENU MOBILE
   ========================================================= */

@media (max-width: 1200px) {

    .main-nav {
        position: absolute;
        top: 82px;
        right: 20px;
        left: 20px;
        z-index: 110;

        padding: 18px;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        background: rgba(7, 9, 10, 0.98);

        border: 1px solid var(--border-strong);

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

    .main-nav.mobile-open {
        display: flex;
    }

    .main-nav .nav-link {
        padding: 13px 15px;
    }

    .main-nav .nav-link::after {
        right: 15px;
        bottom: 6px;
        left: 15px;
    }
}

/* =========================================================
   MODALE ACCESSO
   ========================================================= */

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

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

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.login-modal.open {
    opacity: 1;
    visibility: visible;
}

.login-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.82);

    backdrop-filter: blur(9px);
}

.login-modal-content {
    position: relative;
    z-index: 2;

    width: min(470px, calc(100% - 30px));
    padding: 35px;

    background:
        linear-gradient(
            150deg,
            #171b1d,
            #050708
        );

    border: 1px solid var(--red);

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.92),
        0 0 35px rgba(209, 38, 38, 0.25);

    transform: translateY(20px) scale(0.97);

    transition:
        transform 0.25s ease;
}

.login-modal.open .login-modal-content {
    transform: translateY(0) scale(1);
}

.login-modal-close {
    position: absolute;
    top: 14px;
    right: 15px;

    width: 38px;
    height: 38px;

    color: var(--grey);

    font-family: Arial, sans-serif;
    font-size: 28px;

    background: #090b0c;

    border: 1px solid var(--border-strong);
    border-radius: 50%;

    cursor: pointer;
}

.login-modal-label {
    color: var(--red);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.login-modal-content h2 {
    margin: 8px 0 12px;

    font-family: var(--heading-font);
    font-size: 45px;
    font-weight: 400;
}

.login-modal-content p {
    margin: 0 0 22px;

    color: var(--grey);

    font-size: 17px;
    line-height: 1.5;
}

.login-modal-content form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-modal-content label {
    display: flex;
    flex-direction: column;
    gap: 6px;

    color: #d4d4d4;

    font-size: 15px;
}

.login-modal-content input {
    width: 100%;
    padding: 13px 14px;

    color: white;

    background: #090c0d;

    border: 1px solid var(--border-strong);
    outline: none;
}

.login-modal-content input:focus {
    border-color: var(--red);

    box-shadow:
        0 0 12px rgba(209, 38, 38, 0.18);
}

.login-coming-soon {
    display: block;
    margin-top: 18px;

    color: var(--grey-dark);

    font-size: 13px;
    text-align: center;
}
/* =========================================================
   BOTTONI ACCESSO E REGISTRAZIONE
   ========================================================= */

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.register-header-button {
    min-height: 42px;
    padding: 9px 15px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    background:
        linear-gradient(
            145deg,
            #d62b2b,
            #720909
        );

    border: 1px solid #e64a4a;

    cursor: pointer;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-area[hidden],
.auth-buttons[hidden],
.staff-panel-button[hidden] {
    display: none !important;
}

.user-profile-button,
.staff-panel-button,
.logout-button {
    min-height: 43px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #eeeeee;

    background:
        rgba(255, 255, 255, 0.05);

    border: 1px solid var(--border-strong);

    cursor: pointer;
}

.user-profile-button {
    padding: 6px 13px;
}

.user-profile-button ion-icon {
    color: var(--red);

    font-size: 24px;
}

.user-profile-button span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    line-height: 1.05;
}

.user-profile-button small {
    color: var(--grey-dark);

    font-size: 10px;
    text-transform: uppercase;
}

.user-profile-button strong {
    font-size: 14px;
}

.staff-panel-button {
    padding: 9px 13px;

    color: var(--gold);

    border-color:
        rgba(239, 196, 78, 0.5);
}

.logout-button {
    width: 43px;

    justify-content: center;

    color: #e75a5a;

    font-size: 21px;
}

/* =========================================================
   MODALE ACCOUNT
   ========================================================= */

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

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

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.account-modal.open {
    opacity: 1;
    visibility: visible;
}

.account-modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(0, 0, 0, 0.84);

    backdrop-filter:
        blur(10px);
}

.account-modal-content {
    position: relative;
    z-index: 2;

    width: min(
        510px,
        calc(100% - 28px)
    );

    padding: 31px;

    background:
        linear-gradient(
            150deg,
            #171b1d,
            #050708
        );

    border: 1px solid var(--red);

    box-shadow:
        0 35px 110px
            rgba(0, 0, 0, 0.95),

        0 0 38px
            rgba(209, 38, 38, 0.26);

    transform:
        translateY(22px)
        scale(0.97);

    transition:
        transform 0.25s ease;
}

.account-modal.open
.account-modal-content {
    transform:
        translateY(0)
        scale(1);
}

.account-modal-close {
    position: absolute;
    top: 14px;
    right: 15px;

    width: 38px;
    height: 38px;

    color: var(--grey);

    font-family: Arial, sans-serif;
    font-size: 28px;

    background: #090b0c;

    border:
        1px solid
        var(--border-strong);

    border-radius: 50%;

    cursor: pointer;
}

.account-modal-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.account-modal-brand > ion-icon {
    color: var(--red);

    font-size: 35px;
}

.account-modal-brand > div {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.account-modal-brand strong {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 400;
}

.account-modal-brand span {
    margin-top: 3px;

    color: var(--red);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.account-tabs {
    margin: 25px 0 24px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    border:
        1px solid
        var(--border-strong);
}

.account-tab {
    min-height: 48px;

    color: var(--grey);

    font-weight: 700;
    letter-spacing: 1px;

    background:
        rgba(255, 255, 255, 0.025);

    border: 0;

    cursor: pointer;
}

.account-tab:first-child {
    border-right:
        1px solid
        var(--border-strong);
}

.account-tab.active {
    color: #ffffff;

    background:
        linear-gradient(
            #c72525,
            #680808
        );
}

.account-panel {
    display: none;
}

.account-panel.active {
    display: block;
}

.account-eyebrow {
    color: var(--red);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.account-panel h2,
.registration-success h2 {
    margin: 7px 0 11px;

    font-family: var(--heading-font);
    font-size: 44px;
    font-weight: 400;
}

.account-panel > p,
.registration-success p {
    margin: 0 0 20px;

    color: var(--grey);

    font-size: 16px;
    line-height: 1.5;
}

.account-panel form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.account-panel form > label {
    display: flex;
    flex-direction: column;
    gap: 6px;

    color: #d4d4d4;

    font-size: 15px;
}

.account-panel input {
    width: 100%;
    padding: 13px 14px;

    color: white;

    background: #090c0d;

    border:
        1px solid
        var(--border-strong);

    outline: none;
}

.account-panel input:focus {
    border-color: var(--red);

    box-shadow:
        0 0 12px
        rgba(209, 38, 38, 0.18);
}

.account-submit-button {
    width: 100%;
    margin-top: 4px;
}

.terms-checkbox {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 9px !important;
}

.terms-checkbox input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
}

.terms-checkbox span {
    color: var(--grey);

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

.forgot-password-button {
    width: 100%;
    margin-top: 17px;

    color: var(--grey-dark);

    background: none;
    border: 0;

    cursor: pointer;
}

.email-verification-info {
    margin-top: 18px;
    padding: 12px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #d7b661;

    font-size: 13px;

    border:
        1px solid
        rgba(239, 196, 78, 0.28);

    background:
        rgba(239, 196, 78, 0.06);
}

.email-verification-info ion-icon {
    flex: 0 0 auto;

    font-size: 22px;
}

.registration-success {
    padding: 25px 5px;

    text-align: center;
}

.success-email-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 20px;

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

    color: var(--red);

    font-size: 42px;

    border:
        1px solid
        rgba(209, 38, 38, 0.55);

    border-radius: 50%;

    background:
        rgba(209, 38, 38, 0.09);
}

.registered-email {
    display: block;
    margin: -8px 0 19px;

    color: var(--gold);

    font-size: 19px;
}

/* =========================================================
   RESPONSIVE ACCOUNT
   ========================================================= */

@media (max-width: 850px) {

    .auth-buttons {
        display: none;
    }

    .user-profile-button {
        display: none;
    }

    .account-modal-content {
        max-height: 94vh;

        overflow-y: auto;
    }
}
/* =========================================================
   SELETTORE LINGUA IT / EN
   ========================================================= */

.language-switcher {
    height: 42px;
    padding: 3px;

    display: flex;
    align-items: center;
    gap: 3px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid var(--border-strong);
}

.language-button {
    width: 43px;
    height: 34px;
    padding: 0;

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

    color: var(--grey-dark);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;

    background: transparent;
    border: 0;

    cursor: pointer;

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

.language-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.language-button.active {
    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #d62b2b,
            #720909
        );

    box-shadow:
        0 0 12px rgba(209, 38, 38, 0.28);
}

/* Posizione ordinata nell’header */

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

/* Su telefono resta visibile */

@media (max-width: 850px) {

    .language-switcher {
        height: 40px;
    }

    .language-button {
        width: 38px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 560px) {

    .language-switcher {
        margin-left: auto;
    }
}
/* =========================================================
   NOTIFICHE STAFF
   ========================================================= */
.logged-account-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.notification-bell-button {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #f1f1f1;
    font-size: 21px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(30,32,35,.98), rgba(9,10,11,.98));
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.notification-bell-button:hover,
.notification-bell-button[aria-expanded="true"] {
    border-color: rgba(209,38,38,.78);
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(209,38,38,.24);
}

.notification-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    border: 2px solid #08090a;
    border-radius: 999px;
    background: #d12626;
    box-shadow: 0 0 14px rgba(209,38,38,.72);
}

.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 300;
    width: min(390px, calc(100vw - 24px));
    max-height: min(620px, calc(100vh - 105px));
    overflow: hidden;
    border: 1px solid rgba(209,38,38,.5);
    border-radius: 13px;
    background: linear-gradient(155deg, rgba(24,27,30,.99), rgba(6,8,9,.995));
    box-shadow: 0 25px 70px rgba(0,0,0,.8), 0 0 28px rgba(209,38,38,.15);
}

.notification-panel-header,
.notification-panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.notification-panel-header {
    padding: 16px 17px 13px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.notification-panel-header > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.notification-panel-header span {
    color: #b53636;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.notification-panel-header strong { font-size: 20px; }

.notification-panel-close {
    width: 34px;
    height: 34px;
    color: #c7c7c7;
    font-family: Arial, sans-serif;
    font-size: 24px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    cursor: pointer;
}

.notification-panel-toolbar {
    min-height: 45px;
    padding: 8px 16px;
    color: #a8abad;
    font-family: Arial, sans-serif;
    font-size: 11px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.notification-panel-toolbar button {
    padding: 5px 0;
    color: #e55b5b;
    font-size: 11px;
    font-weight: 800;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.notification-list {
    max-height: 490px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notification-item {
    position: relative;
    width: 100%;
    min-height: 92px;
    padding: 13px 35px 13px 14px;
    display: grid;
    grid-template-columns: 43px minmax(0,1fr);
    gap: 11px;
    align-items: flex-start;
    color: #eee;
    text-align: left;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.065);
    background: transparent;
    cursor: pointer;
}

.notification-item:hover { background: rgba(255,255,255,.045); }
.notification-item.unread {
    background: linear-gradient(90deg, rgba(209,38,38,.13), rgba(209,38,38,.025));
}

.notification-item-icon {
    width: 43px;
    height: 43px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #efc44e;
    font-size: 22px;
    border: 1px solid rgba(239,196,78,.28);
    border-radius: 10px;
    background: rgba(239,196,78,.065);
}

.notification-item-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-item-content strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
}

.notification-item-content > span {
    color: #b7babc;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.4;
}

.notification-item-content small {
    color: #747a7e;
    font-family: Arial, sans-serif;
    font-size: 10px;
}

.notification-unread-dot {
    position: absolute;
    top: 19px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e33b3b;
    box-shadow: 0 0 9px rgba(227,59,59,.85);
}

.notification-empty {
    padding: 38px 20px;
    color: #8f9497;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}
.notification-empty.error { color: #e36b6b; }

@media (max-width: 720px) {
    .logged-account-controls { width: 100%; gap: 6px; }

    .notification-bell-button {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 18px;
        border-radius: 7px;
    }

    .notification-badge {
        top: -6px;
        right: -6px;
        min-width: 19px;
        height: 19px;
        padding: 0 4px;
        font-size: 9px;
    }

    .logged-account-box { max-width: 205px !important; }
    .account-menu-button { min-width: 0; flex: 1; }

    .account-menu-button #accountUsername {
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .notification-panel {
        position: fixed;
        top: 8px;
        right: 8px;
        bottom: 8px;
        left: 8px;
        width: auto;
        max-height: none;
        border-radius: 15px;
    }

    .notification-list { max-height: calc(100vh - 115px); }
    body.notifications-open { overflow: hidden; }
}

@media (max-width: 430px) {
    .logged-account-box { max-width: 188px !important; }
    .account-menu-button { padding-right: 7px !important; padding-left: 7px !important; }
    .account-menu-button #accountUsername { max-width: 74px; }
}


/* =========================================================
   FIX FINALE AREA PROFILO + CAMPANELLA
   ========================================================= */

.logged-account-box {
    width: auto;
    max-width: none;
}

.logged-account-controls {
    width: auto;
    display: grid;
    grid-template-columns: 42px minmax(0, auto);
    align-items: stretch;
    gap: 0;
}

.notification-bell-button,
.account-menu-button {
    height: 42px;
    min-height: 42px;
    margin: 0;
}

.notification-bell-button {
    z-index: 2;
    border-color: #8c1b1b;
    border-radius: 8px 0 0 8px;
    background:
        linear-gradient(
            180deg,
            rgba(37, 11, 11, 0.97),
            rgba(10, 10, 10, 0.97)
        );
    box-shadow: 0 0 17px rgba(158, 25, 25, 0.18);
}

.notification-bell-button:hover,
.notification-bell-button[aria-expanded="true"] {
    border-color: #c62d2d;
    transform: none;
    background:
        linear-gradient(
            180deg,
            rgba(74, 16, 16, 0.98),
            rgba(16, 8, 8, 0.98)
        );
}

.logged-account-controls .account-menu-button {
    width: auto !important;
    min-width: 0 !important;
    border-left: 0;
    border-radius: 0 8px 8px 0;
}

.logged-account-controls .account-menu-button #accountUsername {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-badge {
    top: -6px;
    right: -6px;
    z-index: 4;
}

@media (max-width: 720px) {
    .header-inner {
        grid-template-columns:
            minmax(128px, 1fr)
            minmax(0, 194px)
            42px !important;
        gap: 6px !important;
    }

    .esports-account-area {
        min-width: 0 !important;
        overflow: visible !important;
    }

    .logged-account-box {
        width: min(100%, 194px) !important;
        max-width: 194px !important;
        min-width: 0 !important;
    }

    .logged-account-controls {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 36px minmax(0, 1fr) !important;
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
    }

    .notification-bell-button,
    .logged-account-controls .account-menu-button {
        height: 36px !important;
        min-height: 36px !important;
    }

    .notification-bell-button {
        width: 36px !important;
        min-width: 36px !important;
        flex: none !important;
        font-size: 18px !important;
        border-radius: 7px 0 0 7px !important;
    }

    .logged-account-controls .account-menu-button {
        width: 100% !important;
        max-width: none !important;
        padding: 0 8px !important;
        justify-content: center !important;
        border-radius: 0 7px 7px 0 !important;
    }

    .logged-account-controls .account-menu-button #accountUsername {
        display: block !important;
        max-width: 105px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 390px) {
    .header-inner {
        grid-template-columns:
            minmax(112px, 1fr)
            minmax(0, 174px)
            40px !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    .brand-symbol {
        width: 40px !important;
        height: 40px !important;
        flex-basis: 40px !important;
    }

    .brand-text strong {
        font-size: 17px !important;
    }

    .brand-text span {
        font-size: 10px !important;
        letter-spacing: 2.4px !important;
    }

    .logged-account-box {
        max-width: 174px !important;
    }

    .logged-account-controls .account-menu-button #accountUsername {
        max-width: 84px !important;
    }

    .mobile-menu-button {
        width: 40px !important;
        height: 40px !important;
        flex-basis: 40px !important;
    }
}


/* =========================================================
   CAMPANELLA ORO - RIFINITURA DEFINITIVA
   ========================================================= */

.notification-bell-button ion-icon {
    color: #efc44e;
    filter: drop-shadow(0 0 5px rgba(239, 196, 78, 0.38));
    transition:
        color 0.2s ease,
        filter 0.2s ease,
        transform 0.2s ease;
}

.notification-bell-button:hover ion-icon,
.notification-bell-button[aria-expanded="true"] ion-icon {
    color: #ffe18a;
    filter: drop-shadow(0 0 8px rgba(239, 196, 78, 0.7));
    transform: translateY(-1px);
}

.notification-bell-button.has-unread ion-icon {
    animation: notificationGoldGlow 0.7s ease 1;
}

.notification-badge.notification-pulse {
    animation: notificationBadgePulse 0.65s ease 1;
}

@keyframes notificationGoldGlow {
    0% {
        filter: drop-shadow(0 0 4px rgba(239, 196, 78, 0.35));
        transform: scale(1);
    }

    45% {
        filter: drop-shadow(0 0 12px rgba(255, 218, 104, 0.95));
        transform: scale(1.12);
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(239, 196, 78, 0.38));
        transform: scale(1);
    }
}

@keyframes notificationBadgePulse {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .notification-bell-button.has-unread ion-icon,
    .notification-badge.notification-pulse {
        animation: none;
    }
}
/* =========================================================
   FIX PANNELLO NOTIFICHE MOBILE
   ========================================================= */

@media (max-width: 720px) {

    body.notifications-open {
        overflow: hidden !important;
    }

    body.notifications-open::before {
        content: "";

        position: fixed;
        inset: 0;
        z-index: 9997;

        background: rgba(0, 0, 0, 0.88);

        pointer-events: none;
    }

    .notification-panel {
        position: fixed !important;

        top: 12px !important;
        right: 10px !important;
        bottom: 12px !important;
        left: 10px !important;

        z-index: 9999 !important;

        width: auto !important;
        height: auto !important;
        max-height: none !important;

        overflow: hidden !important;

        border: 1px solid rgba(209, 38, 38, 0.75) !important;
        border-radius: 12px !important;

        background: #080b0d !important;

        box-shadow:
            0 25px 80px rgba(0, 0, 0, 0.95),
            0 0 28px rgba(209, 38, 38, 0.22) !important;

        backdrop-filter: none !important;
    }

    .notification-panel-header {
        background: #101416 !important;
    }

    .notification-panel-toolbar {
        background: #0b0f11 !important;
    }

    .notification-list {
        max-height: calc(100vh - 125px) !important;

        overflow-y: auto !important;

        background: #080b0d !important;
    }

    .notification-item {
        color: #eeeeee !important;

        background: #080b0d !important;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.10) !important;
    }

    .notification-item.unread {
        background:
            linear-gradient(
                90deg,
                #241011,
                #0b0e10
            ) !important;
    }

    .notification-item-content strong {
        color: #ffffff !important;
    }

    .notification-item-content > span {
        color: #c5c9cc !important;
    }

    .notification-item-content small {
        color: #8d9498 !important;
    }

    .notification-empty {
        color: #c5c9cc !important;
    }

    .notification-panel-close {
        color: #ffffff !important;
        background: #1a1e21 !important;
    }
}
/* =========================================================
   DESIGN DEFINITIVO NOTIFICHE MOBILE
   ========================================================= */

@media (max-width: 720px) {

    /* TESTATA */

    .notification-panel-header {
        min-height: 112px !important;
        padding:
            max(22px, env(safe-area-inset-top))
            22px
            20px !important;

        align-items: center !important;

        border-bottom:
            1px solid rgba(209, 38, 38, 0.38) !important;

        background:
            linear-gradient(
                135deg,
                #171b1e 0%,
                #0b0f11 60%,
                #240b0c 100%
            ) !important;
    }

    .notification-panel-header > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }

    .notification-panel-header span {
        color: #dc4545 !important;

        font-size: 12px !important;
        font-weight: 800 !important;
        letter-spacing: 3px !important;
        text-transform: uppercase !important;
    }

    .notification-panel-header strong {
        color: #ffffff !important;

        font-family: "Anton", Impact, sans-serif !important;
        font-size: 35px !important;
        font-weight: 400 !important;
        line-height: 1 !important;
        letter-spacing: 1px !important;
    }

    .notification-panel-close {
        width: 48px !important;
        height: 48px !important;

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

        color: #ffffff !important;

        font-size: 29px !important;

        border:
            1px solid rgba(255, 255, 255, 0.20) !important;

        border-radius: 10px !important;

        background: #1b2023 !important;
    }

    /* BARRA NON LETTE */

    .notification-panel-toolbar {
        min-height: 64px !important;
        padding: 11px 20px !important;

        color: #aeb4b7 !important;

        font-family: "Oswald", Arial, sans-serif !important;
        font-size: 16px !important;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.10) !important;

        background: #090d0f !important;
    }

    .notification-panel-toolbar button {
        min-height: 38px !important;
        padding: 0 14px !important;

        color: #ff7070 !important;

        font-family: "Oswald", Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 700 !important;

        border:
            1px solid rgba(209, 38, 38, 0.38) !important;

        border-radius: 6px !important;

        background:
            rgba(209, 38, 38, 0.10) !important;
    }

    /* AREA DELLE NOTIFICHE */

    .notification-list {
        padding: 18px !important;

        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;

        background:
            radial-gradient(
                circle at 90% 5%,
                rgba(209, 38, 38, 0.10),
                transparent 35%
            ),
            #050708 !important;
    }

    /* SINGOLA NOTIFICA COME VERA CARD */

    .notification-item {
        position: relative !important;

        width: 100% !important;
        min-height: 155px !important;
        padding: 20px !important;

        display: grid !important;
        grid-template-columns: 62px minmax(0, 1fr) !important;
        gap: 17px !important;
        align-items: start !important;

        overflow: hidden !important;

        border:
            1px solid rgba(255, 255, 255, 0.13) !important;

        border-radius: 11px !important;

        background:
            linear-gradient(
                145deg,
                #14191c,
                #080b0d
            ) !important;

        box-shadow:
            0 13px 30px rgba(0, 0, 0, 0.45) !important;
    }

    .notification-item.unread {
        border-color:
            rgba(209, 38, 38, 0.72) !important;

        background:
            linear-gradient(
                135deg,
                #351112 0%,
                #151012 42%,
                #090c0e 100%
            ) !important;

        box-shadow:
            0 0 22px rgba(209, 38, 38, 0.14),
            0 13px 30px rgba(0, 0, 0, 0.50) !important;
    }

    .notification-item.unread::before {
        content: "";

        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;

        width: 5px;

        background: #e33131 !important;

        box-shadow:
            0 0 12px rgba(227, 49, 49, 0.70) !important;
    }

    /* ICONA */

    .notification-item-icon {
        width: 62px !important;
        height: 62px !important;

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

        color: #efc44e !important;

        font-size: 30px !important;

        border:
            1px solid rgba(239, 196, 78, 0.52) !important;

        border-radius: 12px !important;

        background:
            linear-gradient(
                145deg,
                rgba(239, 196, 78, 0.16),
                rgba(239, 196, 78, 0.035)
            ) !important;

        box-shadow:
            0 0 17px rgba(239, 196, 78, 0.12) !important;
    }

    /* TESTI */

    .notification-item-content {
        min-width: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        gap: 9px !important;
    }

    .notification-item-content strong {
        color: #ffffff !important;

        font-family: "Oswald", Arial, sans-serif !important;
        font-size: 21px !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
    }

    .notification-item-content > span {
        color: #d0d4d6 !important;

        font-family: Arial, sans-serif !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    .notification-item-content small {
        width: fit-content !important;
        margin-top: 3px !important;
        padding: 5px 9px !important;

        color: #a8afb3 !important;

        font-family: Arial, sans-serif !important;
        font-size: 12px !important;

        border-radius: 999px !important;

        background:
            rgba(255, 255, 255, 0.065) !important;
    }

    /* QUANDO NON CI SONO NOTIFICHE */

    .notification-empty {
        min-height: 260px !important;
        padding: 40px 25px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        color: #aeb4b7 !important;

        font-size: 18px !important;
        text-align: center !important;

        border:
            1px dashed rgba(255, 255, 255, 0.15) !important;

        border-radius: 12px !important;

        background:
            rgba(255, 255, 255, 0.025) !important;
    }
}
/* =========================================================
   FIX DEFINITIVO NOTIFICHE HOME SOPRA TUTTO
   DEVE RESTARE ALLA FINE ASSOLUTA DEL FILE
   ========================================================= */

@media (max-width: 720px) {

    body.notifications-open {
        overflow: hidden !important;
    }

    body > .notification-panel {
        position: fixed !important;

        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        inset: 0 !important;

        z-index: 2147483647 !important;

        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;

        max-width: none !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        overflow: hidden !important;

        transform: none !important;
        opacity: 1 !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: #050708 !important;

        box-shadow: none !important;

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;

        isolation: isolate !important;
    }

    body > .notification-panel[hidden] {
        display: none !important;
    }

    body > .notification-panel .notification-panel-header {
        flex: 0 0 auto !important;
        background: #101416 !important;
    }

    body > .notification-panel .notification-panel-toolbar {
        flex: 0 0 auto !important;
        background: #090d0f !important;
    }

    body > .notification-panel .notification-list {
        flex: 1 1 auto !important;

        min-height: 0 !important;
        max-height: none !important;

        overflow-y: auto !important;

        background: #050708 !important;
    }
}
/* =========================================================
   LOGO ESPORTS E LINK WOW STORE DRAGONA
   ========================================================= */

.esports-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
}

.esports-header-logo {
    display: block;

    width: 72px;
    height: 72px;

    object-fit: contain;
}

.nav-dragona-link {
    color: #efc44e !important;
}

.nav-dragona-link:hover {
    color: #ffffff !important;
}

@media (max-width: 720px) {

    .esports-header-logo {
        width: 54px;
        height: 54px;
    }

    .nav-dragona-link {
        color: #efc44e !important;
    }
}
/* =========================================================
   HOME ESPORTS — HERO CARRIERA E CARTA DIMOSTRATIVA
   ========================================================= */

.hero-career-description {
    max-width: 760px;
    color: #b8bec4;
    font-size: 19px;
    line-height: 1.65;
}


/* PULSANTE PRINCIPALE */

.hero-create-card-button {
    position: relative;
    min-width: 330px;
    min-height: 68px;
    padding: 10px 18px;
    gap: 14px;
    justify-content: flex-start;
    overflow: hidden;

    box-shadow:
        0 10px 32px rgba(209, 38, 38, 0.34),
        0 0 0 rgba(209, 38, 38, 0);

    animation:
        heroCreateCardPulse
        3.2s
        ease-in-out
        infinite;
}

.hero-create-card-button::before {
    content: "";

    position: absolute;
    top: -80%;
    bottom: -80%;
    left: -35%;

    width: 35%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent
        );

    transform: rotate(18deg);
    transition: left 0.65s ease;
}

.hero-create-card-button:hover::before {
    left: 120%;
}

.hero-button-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

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

    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.16);
}

.hero-button-icon ion-icon {
    font-size: 23px;
}

.hero-button-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.hero-button-copy strong {
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.45px;
}

.hero-button-copy small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 500;
}

.hero-button-arrow {
    margin-left: auto;
    font-size: 21px;

    transition: transform 0.25s ease;
}

.hero-create-card-button:hover .hero-button-arrow {
    transform: translateX(5px);
}

.hero-explore-button {
    min-height: 68px;
}

@keyframes heroCreateCardPulse {
    0%,
    100% {
        box-shadow:
            0 10px 32px rgba(209, 38, 38, 0.32),
            0 0 0 rgba(209, 38, 38, 0);
    }

    50% {
        box-shadow:
            0 13px 38px rgba(209, 38, 38, 0.44),
            0 0 20px rgba(209, 38, 38, 0.18);
    }
}


/* CONTENITORE CARTA */

.hero-card-preview {
    min-height: 630px;
    perspective: 1200px;
}

.preview-glow {
    width: 470px;
    height: 470px;

    background:
        radial-gradient(
            circle,
            rgba(232, 184, 52, 0.25),
            rgba(173, 47, 24, 0.14) 44%,
            transparent 72%
        );
}


/* CARTA DIMOSTRATIVA */

.demo-player-card {
    --demo-gold: #e4b83e;
    --demo-gold-dark: #74530c;

    position: relative;
    z-index: 2;

    width: 390px;
    padding: 11px;

    color: #eeeeee;

    background:
        linear-gradient(
            155deg,
            rgba(25, 28, 29, 0.99),
            rgba(3, 5, 6, 0.99)
        );

    border: 2px solid var(--demo-gold);

    clip-path:
        polygon(
            18px 0,
            calc(100% - 18px) 0,
            100% 18px,
            100% calc(100% - 18px),
            calc(100% - 18px) 100%,
            18px 100%,
            0 calc(100% - 18px),
            0 18px
        );

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.88),
        0 0 30px rgba(228, 184, 62, 0.24);

    overflow: hidden;

    transform:
        perspective(1100px)
        rotateY(-7deg)
        rotateX(2deg);

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease,
        filter 0.45s ease;
}

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

    position: absolute;
    inset: 8px;
    z-index: 20;

    border: 1px solid var(--demo-gold);

    clip-path: inherit;

    pointer-events: none;
}

.demo-player-card:hover {
    transform:
        perspective(1100px)
        rotateY(0deg)
        rotateX(0deg)
        translateY(-10px)
        scale(1.025);

    filter: brightness(1.08);

    box-shadow:
        0 45px 110px rgba(0, 0, 0, 0.94),
        0 0 52px rgba(228, 184, 62, 0.58);
}


/* RIFLESSO */

.demo-card-shine {
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: -55%;
    z-index: 15;

    width: 34%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 229, 151, 0.21),
            transparent
        );

    transform: rotate(18deg);
    pointer-events: none;

    transition: left 0.8s ease;
}

.demo-player-card:hover .demo-card-shine {
    left: 125%;
}


/* HEADER */

.demo-card-header {
    min-height: 58px;
    padding: 8px 14px;

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

    color: var(--demo-gold);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(116, 84, 15, 0.8),
            rgba(156, 113, 18, 0.86),
            rgba(116, 84, 15, 0.8),
            transparent
        );

    border-bottom: 1px solid var(--demo-gold);
}

.demo-card-header > span {
    font-family: "Anton", Impact, sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
}

.demo-card-header strong {
    display: flex;
    align-items: flex-end;
    gap: 5px;

    font-family: "Anton", Impact, sans-serif;
    font-size: 45px;
    line-height: 0.85;
}

.demo-card-header small {
    margin-bottom: 3px;
    font: 11px "Oswald", sans-serif;
    letter-spacing: 1px;
}


/* GEARS */

.demo-card-game {
    min-height: 48px;
    padding: 7px 13px;

    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--demo-gold);
}

.demo-game-symbol {
    width: 30px;
    height: 30px;

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

    color: #cf2828;
    background: #07090a;
}

.demo-card-game strong {
    font-family: "Anton", Impact, sans-serif;
    font-size: 18px;
    line-height: 0.8;
}

.demo-card-game small {
    display: block;
    font-size: 11px;
}


/* FOTO */

.demo-card-photo {
    position: relative;
    height: 225px;
    overflow: hidden;
    background: #07090a;
}

.demo-card-photo::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(4, 6, 7, 0.98),
            transparent 42%
        );

    pointer-events: none;
}

.demo-card-photo img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center 18%;
}

.demo-card-watermark {
    position: absolute;
    top: 12px;
    left: 13px;
    z-index: 3;

    max-width: 70px;

    color: var(--demo-gold);

    font-family: "Anton", Impact, sans-serif;
    font-size: 17px;
    line-height: 0.82;
}


/* IDENTITÀ */

.demo-card-identity {
    position: relative;
    z-index: 4;

    margin-top: -6px;
    padding: 0 12px 9px;
}

.demo-card-identity h2 {
    margin: 0;

    color: var(--demo-gold);

    font-family: "Anton", Impact, sans-serif;
    font-size: 47px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.7px;

    text-shadow:
        0 3px 0 #171717,
        0 0 10px rgba(228, 184, 62, 0.25);
}

.demo-card-meta {
    margin-top: 4px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    color: var(--demo-gold);

    font-size: 12px;
    font-weight: 600;
}

.demo-card-meta > span {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.demo-card-meta > span:last-child {
    align-items: flex-end;
}

.demo-card-meta strong {
    font-size: 10px;
}


/* STATISTICHE */

.demo-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid #353a3c;
    border-left: 1px solid #353a3c;

    background: rgba(2, 4, 5, 0.78);
}

.demo-stat {
    min-height: 57px;
    padding: 5px 2px;

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

    border-right: 1px solid #353a3c;
    border-bottom: 1px solid #353a3c;
}

.demo-stat strong {
    font-family: "Anton", Impact, sans-serif;
    font-size: 22px;
    line-height: 1;
}

.demo-stat span {
    margin-top: 3px;

    color: #c8c8c8;
    font-size: 8px;
    letter-spacing: 0.25px;
}

.demo-stat.weapons strong {
    color: #f0ad13;
}

.demo-stat.movement strong {
    color: #7cb52e;
}

.demo-stat.mental strong {
    color: #3298dc;
}

.demo-stat.special strong {
    color: #934de0;
}

.demo-stat.aim strong {
    color: #f2760f;
}

.demo-stat.combat strong {
    color: #ed2929;
}


/* RUOLO */

.demo-card-role {
    min-height: 55px;

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

    border-bottom: 1px solid rgba(228, 184, 62, 0.48);
}

.demo-card-role span,
.demo-skills-title {
    color: #d33945;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.demo-card-role strong {
    margin-top: 3px;

    color: var(--demo-gold);

    font-family: "Anton", Impact, sans-serif;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.8px;
}


/* SPECIALITÀ */

.demo-card-skills {
    min-height: 83px;
    padding: 8px 11px;
}

.demo-card-skills > div {
    margin-top: 7px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 9px;

    color: #e8ca71;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.25px;
}

.demo-card-footer {
    padding: 7px;

    color: rgba(228, 184, 62, 0.62);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-align: center;

    border-top: 1px solid rgba(228, 184, 62, 0.32);
}


/* RESPONSIVE */

@media (max-width: 850px) {
    .hero-card-preview {
        min-height: auto;
    }

    .demo-player-card {
        width: min(390px, 100%);
        transform: none;
    }

    .demo-player-card:hover {
        transform: translateY(-5px);
    }

    .hero-create-card-button,
    .hero-explore-button {
        width: 100%;
    }

    .hero-create-card-button {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-create-card-button {
        animation: none;
    }

    .demo-player-card,
    .demo-card-shine,
    .hero-create-card-button::before {
        transition: none;
    }
}

/* =========================================================
   HEADER HOME MOBILE UNICO — HAMBURGER DEFINITIVO
   NON AGGIUNGERE ALTRI BLOCCHI HEADER MOBILE DOPO QUESTO
   ========================================================= */

.mobile-language-menu {
    display: none;
}

@media (max-width: 720px) {

    .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 10000 !important;
        width: 100% !important;
        min-height: 86px !important;
        background: rgba(5, 7, 8, 0.99) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .site-header .header-inner {
        position: relative !important;
        width: 100% !important;
        min-height: 86px !important;
        margin: 0 !important;
        padding: 10px 12px !important;

        display: grid !important;
        grid-template-columns:
            72px
            minmax(0, 1fr)
            44px !important;
        grid-template-areas:
            "brand account hamburger" !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .site-header .brand {
        grid-area: brand !important;
        position: static !important;
        width: 68px !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .site-header .esports-header-logo {
        display: block !important;
        width: 64px !important;
        height: 64px !important;
        object-fit: contain !important;
    }

    .site-header .esports-account-area {
        grid-area: account !important;
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;

        z-index: 10030 !important;
    }

    .site-header .logged-account-box {
        position: relative !important;
        width: min(100%, 205px) !important;
        max-width: 205px !important;
        min-width: 0 !important;
    }

    .site-header .logged-account-controls {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 36px minmax(0, 1fr) !important;
        align-items: stretch !important;
        gap: 0 !important;
    }

    .site-header .notification-bell-button,
    .site-header .account-menu-button {
        height: 42px !important;
        min-height: 42px !important;
    }

    .site-header .notification-bell-button {
        width: 36px !important;
        min-width: 36px !important;
        border-radius: 7px 0 0 7px !important;
    }

    .site-header .logged-account-controls .account-menu-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 8px !important;
        justify-content: center !important;
        border-left: 0 !important;
        border-radius: 0 7px 7px 0 !important;
    }

    .site-header #accountUsername {
        display: block !important;
        max-width: 105px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .site-header .header-actions {
        grid-area: hamburger !important;
        position: static !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        z-index: 10040 !important;
    }

    .site-header .header-actions > .language-switcher,
    .site-header .user-area {
        display: none !important;
    }

    .site-header .mobile-menu-button {
        position: relative !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;

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

        color: #ffffff !important;
        font-size: 28px !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        border-radius: 7px !important;
        background: #111519 !important;

        z-index: 10050 !important;
    }

    /* Chiuso: invisibile e non cliccabile */
    .site-header .main-nav,
    .site-header .main-nav.is-open {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Aperto esclusivamente dalla classe usata in esports.js */
    .site-header .main-nav.mobile-open {
        position: absolute !important;
        top: 86px !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 10020 !important;

        width: 100% !important;
        max-height: calc(100vh - 86px) !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-y: auto !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;

        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;

        background: rgba(5, 7, 8, 0.995) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.92) !important;
    }

    .site-header .main-nav.mobile-open .nav-link {
        position: static !important;
        width: 100% !important;
        min-height: 56px !important;
        margin: 0 !important;
        padding: 14px 22px !important;

        display: flex !important;
        align-items: center !important;

        color: #e4e5e6 !important;
        font-size: 18px !important;

        border: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
        background: transparent !important;
    }

    .site-header .main-nav.mobile-open .nav-link::after {
        display: none !important;
    }

    .site-header .main-nav.mobile-open .mobile-language-menu {
        width: 100% !important;
        margin: 0 !important;
        padding: 16px 20px 20px !important;

        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;

        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .site-header .mobile-language-title {
        color: #aeb3b7 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
    }

    .site-header .mobile-language-switcher {
        width: 100% !important;
        height: 40px !important;

        display: grid !important;
        grid-template-columns: 1fr 1fr !important;

        border: 1px solid rgba(255, 255, 255, 0.18) !important;
    }

    .site-header .mobile-language-switcher .language-button {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        padding: 0 !important;
        font-size: 12px !important;
    }

    .site-header .account-dropdown {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        width: min(270px, calc(100vw - 24px)) !important;
        z-index: 10100 !important;
    }

    .site-header .notification-panel {
        z-index: 10110 !important;
    }
}

@media (max-width: 390px) {

    .site-header .header-inner {
        grid-template-columns:
            64px
            minmax(0, 1fr)
            40px !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
        gap: 6px !important;
    }

    .site-header .brand {
        width: 60px !important;
    }

    .site-header .esports-header-logo {
        width: 58px !important;
        height: 58px !important;
    }

    .site-header .logged-account-box {
        max-width: 188px !important;
    }

    .site-header #accountUsername {
        max-width: 78px !important;
    }

    .site-header .header-actions,
    .site-header .mobile-menu-button {
        width: 40px !important;
        height: 40px !important;
    }
}

