:root {
    --bg-color: #080a14;
    --text-main: #f0f0f5;
    --text-muted: #a0a5b5;
    --accent-primary: #e40000;
    --accent-secondary: #0040ff;
    --accent-tertiary: #ffdd00;
    --accent-quaternary: #00aa00;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: pan-y;
}

.lang-morph {
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s ease, filter 0.35s ease;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

.lang-morph.morph-out {
    opacity: 0;
    transform: translateY(-12px) rotateX(5deg) scale(0.96);
    filter: blur(2px);
}

.lang-morph.morph-in {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0);
}

main {
    padding-bottom: 4rem;
}


.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.45;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    top: 40%;
    right: -200px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-tertiary);
    bottom: -150px;
    left: 20%;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}


h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(8, 10, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    min-height: var(--header-height);
    padding: 1rem 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
}

.logo-img-small {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 auto;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.discord-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(88, 101, 242, 0.15);
    color: #5865F2 !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.discord-nav:hover {
    background: rgba(88, 101, 242, 0.25);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}


.hero-section {
    padding: 12rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-image-wrapper {
    margin-bottom: 2rem;
    perspective: 1000px;
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.glowing-img {
    filter: drop-shadow(0 0 30px rgba(255, 0, 85, 0.5));
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateX(5deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-20px) rotateX(-5deg) rotateY(10deg);
    }

    100% {
        transform: translateY(0px) rotateX(5deg) rotateY(0deg);
    }
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #d40047);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 0, 85, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 0, 85, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.02);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 40px;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.glow-btn:hover::before {
    left: 100%;
}


.features-section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.features-grid.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1114px;
    margin-inline: auto;
    gap: 2rem;
}

.features-grid.team-grid .team-card {
    flex: 0 1 350px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.2), rgba(0, 240, 255, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}


.team-photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 10px 20px rgba(255, 0, 85, 0.3);
    position: relative;
}

.team-photo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.team-photo-inner i {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
    position: absolute;
    z-index: 1;
}

.team-photo-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}


.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 4rem auto 2rem;
    width: fit-content;
}

.category-header h2 {
    margin: 0 !important;
}

.category-badge-lg {
    width: 132px;
    height: 132px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    flex-shrink: 0;
}

.category-badge-lg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.25)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.category-header:hover .category-badge-lg,
.category-badge-lg:hover {
    transform: scale(1.12);
}

.category-header:hover .category-badge-lg img,
.category-badge-lg:hover img {
    filter: drop-shadow(0 0 24px rgba(0, 242, 254, 0.5)) drop-shadow(0 0 40px rgba(0, 242, 254, 0.25)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.team-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin: 1.5rem 0 1.2rem;
}

.team-socials a {
    color: var(--text-muted);
    font-size: 1.9rem;
    width: 3.4rem;
    height: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.team-socials svg.ezbio-icon {
    width: 2.4rem;
    height: 2.4rem;
}

.team-socials a[title="e-z.bio"] {
    color: #bcc5d1;
}

.team-socials a[title="e-z.bio"] svg.ezbio-icon path {
    fill: currentColor !important;
}

.team-socials a:hover {
    color: var(--accent-secondary);
    transform: translateY(-3px) scale(1.1);
}

.custom-svg-icon {
    filter: brightness(0) saturate(100%) invert(72%) sepia(6%) saturate(464%) hue-rotate(202deg) brightness(91%) contrast(88%);
    transition: var(--transition);
}

.team-socials a:hover .custom-svg-icon {
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(4498%) hue-rotate(215deg) brightness(103%) contrast(104%);
}

.kofi-icon {
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.btn-support {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: inline-flex;
    justify-content: center;
}

.btn-support:hover {
    background: rgba(0, 112, 186, 0.2);

    border-color: #0070ba;
    color: white;
}

.btn-support i {
    color: #0070ba;

}


.mt-2 {
    margin-top: 0.5rem;
}


.download-section {
    padding: 6rem 0 10rem;
}

.glow-card {
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
    text-align: center;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.download-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.download-note {
    display: block;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
}


/* Download OS Grid */
.download-os-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.download-os-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-os-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 32px rgba(229, 9, 20, 0.25);
}

.download-os-icon {
    font-size: 3rem;
    color: var(--accent-primary);
}

.download-os-name {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.download-os-file {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.glass-footer {
    background: rgba(5, 6, 11, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 1rem 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    z-index: 100;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;

}

.footer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    margin: 0;

}

.footer-info p {
    color: var(--text-muted);
    margin-top: 0;
    font-size: 0.85rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    color: #5865F2;
}


.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lang-btn span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.small-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 120px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 300;
    background: rgba(8, 10, 20, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(16px);
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-secondary);
}

.lang-option.active {
    background: var(--accent-primary);
    color: white;
}


.hamburger-btn {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.3rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    z-index: 200;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}


.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 10, 20, 0.97);
    backdrop-filter: blur(20px);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 5rem 2rem 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.3rem;
    transition: var(--transition);
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-secondary);
}

.mobile-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: var(--transition);
    text-align: center;
    width: 100%;
    max-width: 380px;
    padding: 1rem 1.3rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav a:hover,
.mobile-nav a.active-link {
    color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.mobile-nav .discord-nav {
    font-size: 1.1rem;
}

.mobile-nav-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.mobile-lang-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.mobile-lang-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.mobile-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-secondary);
}

.mobile-lang-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* In-game prestige rank badges (images: /FOOTAGE/ranks/rank-1.png ... rank-8.png) */
.prestige-rank-badge {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
    vertical-align: middle;
}

.prestige-rank-badge--top {
    width: 42px;
    height: 42px;
    margin-left: 0.35rem;
}

/* Ripiego quando /FOOTAGE/ranks/rank-N.png non esiste ancora: il grado resta
   visibile come etichetta invece di sparire del tutto. */
.prestige-rank-badge--text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--accent-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

/* Segnaposto per i giocatori di cui il backend non ha ancora reso il Mii. */
.mii-placeholder {
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    flex: 0 0 auto;
    user-select: none;
}
/* Leaderboard Mii Download Buttons Styling */
#leaderboardTopPlayerMiiDownload {
    transition: all 0.2s ease;
}

#leaderboardTopPlayerMiiDownload:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: var(--accent-secondary) !important;
    transform: scale(1.08);
}

.table-mii-download {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-left: auto;
    margin-right: 0.5rem;
    font-size: 0.95rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
}

.table-mii-download:hover {
    color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero-section {
        padding: 10rem 0 4rem;
        min-height: auto;
    }

    .hero-image {
        width: 150px;
        height: 150px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .cta-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .cta-desc {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .features-section {
        padding: 4rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid.team-grid {
        gap: 1.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .glow-card {
        padding: 2.5rem 1.5rem;
    }

    .download-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .download-section {
        padding: 4rem 0 8rem;
    }

    .download-os-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 0.8rem;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-info p {
        font-size: 0.75rem;
    }

    .social-link {
        font-size: 0.9rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .blob {
        display: none;
    }

    .team-photo-wrapper {
        width: 100px;
        height: 100px;
    }

    .team-socials {
        gap: 0.8rem;
    }

    .team-socials a {
        font-size: 1.5rem;
        width: 2.8rem;
        height: 2.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 8rem 0 3rem;
    }

    .hero-image {
        width: 120px;
        height: 120px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-desc {
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 1.2rem;
    }

    .glow-card {
        padding: 2rem 1rem;
    }

    .glass-footer {
        padding: 0.8rem 0;
    }

    .footer-info p {
        font-size: 0.7rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .mobile-nav a {
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
    }

    .download-note {
        font-size: 0.8rem;
    }
}

/* Nome giocatore cliccabile nella classifica, porta al profilo */
.leaderboard-row-link {
    color: inherit;
    text-decoration: none;
}

.leaderboard-row-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}
