html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100%;
}
body {
    font-family: sans-serif;
    background: #0B1021;
    background: radial-gradient(ellipse at center, #0B1021 0%, #03040A 100%);
    background-attachment: fixed;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
      radial-gradient(circle at 15% 50%, rgba(0, 255, 170, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 85% 30%, rgba(128, 0, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

header, footer {
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.92) 0%, rgba(7, 11, 24, 0.88) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.38);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(56, 189, 248, 0.18);
    padding: 0.95rem 2rem;
    color: #e2e8f0;
    position: relative;
    z-index: 100;
}

footer {
    border-bottom: none;
    border-top: 1px solid rgba(56, 189, 248, 0.28);
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.35rem 2rem;
    color: #94a3b8;
    font-size: 0.92rem;
}

footer a {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

footer a:hover {
    color: #7dd3fc;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

/* --- Logo --- */
.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    padding-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 38%, #818cf8 72%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.65)) drop-shadow(0 0 20px rgba(129, 140, 248, 0.35));
    transition: filter 0.3s ease, transform 0.25s ease;
}

.logo a:hover {
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.95)) drop-shadow(0 0 24px rgba(245, 158, 11, 0.6));
    transform: translateY(-1px) scale(1.02);
}

.logo a span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
    margin-left: 0.3rem;
    vertical-align: middle;
}

/* --- Main Navigation --- */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    gap: 0.35rem;
}

.main-nav a {
    margin: 0 0.3rem;
    padding: 0.5rem 0.95rem;
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.main-nav a:hover {
    color: #f8fafc;
    background-color: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.18);
}

/* --- Account Navigation (Login/Logout) --- */
.account-nav {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

#account-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.account-nav a, #account-menu a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.42rem 0.85rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.32);
    transition: all 0.2s ease;
    margin-left: 0;
}

.account-nav a:hover, #account-menu a:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

#account-menu span {
    margin-right: 0.35rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.lang-switch button {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #cbd5e1;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 6px;
}

.lang-switch button.active {
    color: #fff;
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.22);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* === Main Content Layout === */
main > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main {
    padding: 2rem 0;
}

.hero, .home-content-grid {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    box-sizing: border-box;
}

.hero {
    width: calc(100% - 4rem);
    max-width: 1136px;
    margin: 0 auto 1.75rem auto;
    text-align: center;
    padding: 1.8rem 2rem 1.7rem 2rem;
    background: radial-gradient(circle at top, rgba(16, 36, 68, 0.72) 0%, rgba(7, 11, 24, 0.82) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 0 24px rgba(56, 189, 248, 0.06);
    border-radius: 14px;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 2.35rem;
    margin-top: 0;
    margin-bottom: 0.65rem;
    color: transparent;
    background: linear-gradient(45deg, #00aaff, #00ffaa, #00aaff);
    -webkit-background-clip: text;
    background-clip: text;
    animation: glitter 2s ease-in-out infinite;
    text-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff;
    background-size: 200% 200%;
}

@keyframes glitter { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.subtitle {
    font-size: 1.08rem;
    color: #cbd5e1;
    margin: 0;
}

.play-cta.hero-cta-integrated {
    width: 100%;
    max-width: 680px;
    margin: 1.35rem auto 0 auto;
    padding: 1.25rem 0 0 0;
    border-top: 1px solid rgba(56, 189, 248, 0.22);
    background: transparent;
    border-radius: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.play-cta.hero-cta-integrated h2 {
    margin: 0 0 0.35rem 0;
    font-size: 1.3rem;
    color: #f8fafc;
}

.play-cta.hero-cta-integrated p {
    margin: 0 0 1.05rem 0;
    color: #94a3b8;
    font-size: 0.96rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    padding: 0.82rem 2.8rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fde68a;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(180, 83, 9, 0.42));
    text-decoration: none;
    border: 1px solid rgba(251, 191, 36, 0.85);
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.32), inset 0 0 14px rgba(251, 191, 36, 0.14);
}

.cta-button.secondary {
    color: #e2e8f0;
    border-color: rgba(56, 189, 248, 0.55);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.22);
}

.cta-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(217, 119, 6, 0.55));
    border-color: #fbbf24;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.55), 0 0 20px rgba(251, 191, 36, 0.35);
}

.cta-button.secondary:hover {
    background: linear-gradient(145deg, rgba(39, 53, 73, 0.95), rgba(22, 34, 56, 0.98));
    border-color: #38bdf8;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

/* --- Two-Column Layout for Events & News --- */
.home-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Left column (events) is smaller than the right (news) */
    gap: 1.75rem; /* Space between the two columns */
    align-items: start; /* Align items to the top of the grid */
}

.events, .news {
    background: radial-gradient(circle at top, rgba(16, 36, 68, 0.65) 0%, rgba(11, 17, 32, 0.88) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 1.6rem;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 0 20px rgba(56, 189, 248, 0.05);
}

.events {
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 0 20px rgba(251, 191, 36, 0.04);
}

.events h2, .news h2 {
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    padding-bottom: 0.7rem;
    margin-bottom: 1.25rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-top: 0;
}

.events h2 {
    color: #fbbf24;
    border-bottom-color: rgba(251, 191, 36, 0.3);
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.news h2 {
    color: #38bdf8;
    border-bottom-color: rgba(56, 189, 248, 0.3);
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.events-grid, .news-grid {
    display: grid;
    gap: 1.1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.4) rgba(15, 23, 42, 0.5);
}

.events-grid::-webkit-scrollbar, .news-grid::-webkit-scrollbar {
    width: 6px;
}

.events-grid::-webkit-scrollbar-track, .news-grid::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 999px;
}

.events-grid::-webkit-scrollbar-thumb, .news-grid::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.4);
    border-radius: 999px;
}

.news-grid {
    grid-template-columns: 1fr; /* News items stack vertically */
}

.events article, .news article {
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 1.15rem 1.25rem;
    border-radius: 10px;
    line-height: 1.58;
    color: #e2e8f0;
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.events article:hover, .news article:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.events article {
    border-left: 3px solid #fbbf24;
}

.news article {
    border-left: 3px solid #38bdf8;
}

.events article h3, .news article h3 {
    margin-top: 0;
    margin-bottom: 0.55rem;
    color: #f8fafc;
    font-size: 1.12rem;
}

.events article a, .news article a {
    color: #38bdf8;
    font-weight: 600;
}

.events article span, .news article span {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* --- Spiel Info Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: radial-gradient(ellipse at center, #1d3a5c 0%, #102a4c 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #00aaff;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
    max-width: 600px;
    width: 90%;
    position: relative;
    color: #eee;
    line-height: 1.6;
}

.modal-content h2 {
    color: #00ffaa;
    text-shadow: 0 0 8px #00ffaa;
    margin-top: 0;
    font-size: 2rem;
    border-bottom: 1px solid #00aaff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-closing-text {
    margin-top: 1.5rem;
    font-style: italic;
    color: #ccc;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
}

.modal-close-btn:hover {
    color: #fff;
    text-shadow: 0 0 8px #00ffaa;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .home-content-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 0.5rem;
    }
    header .container {
        flex-direction: column !important;
        gap: 0.8rem !important;
        align-items: center !important;
        text-align: center;
    }
    .logo {
        margin: 0 !important;
        padding: 0 !important;
    }
    .logo a {
        font-size: 1.5rem !important;
        padding-right: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
    }
    .main-nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.3rem !important;
        width: 100% !important;
        margin: 0.2rem 0 !important;
    }
    .main-nav a {
        margin: 0 0.1rem !important;
        padding: 0.4rem 0.6rem !important;
        font-size: 0.85rem !important;
    }
    .account-nav {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #account-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    #account-menu span {
        margin-right: 0.5rem !important;
        font-size: 0.85rem !important;
    }
    #account-menu a {
        margin-left: 0.2rem !important;
        font-size: 0.85rem !important;
        padding: 0.2rem 0.5rem;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }
    .lang-switch {
        margin-top: 0.2rem !important;
        display: flex !important;
        justify-content: center !important;
        gap: 5px !important;
    }
    .lang-switch button {
        margin-left: 0 !important;
        padding: 3px 8px !important;
        font-size: 0.8rem !important;
    }
}

/* === Season Banner & Season-End Hall-of-Fame Flyer === */
.season-info-homepage {
    width: calc(100% - 4rem);
    max-width: 1136px;
    margin: 0 auto 1.75rem auto;
    box-sizing: border-box;
    background: rgba(29, 58, 92, 0.8);
    border: 2px solid #00ffaa;
    border-radius: 10px;
    padding: 22px 24px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 255, 170, 0.2);
}

.season-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.season-right-col {
    display: none;
    min-width: 0;
}

#home-season-title {
    color: #00ffaa;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.65em;
    text-shadow: 0 0 6px rgba(0, 255, 170, 0.45);
}

#home-season-rewards-images {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 12px auto;
}

.home-season-rewards-text {
    max-width: 780px;
    margin: 6px auto 4px auto;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(11, 17, 32, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.5;
}

#home-season-countdown {
    font-size: 1.3em;
    font-weight: bold;
    color: gold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    margin-top: 10px;
}

.season-info-homepage.season-ended-flyer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 28px;
    align-items: center;
    background: radial-gradient(circle at top, rgba(45, 34, 12, 0.92) 0%, rgba(13, 21, 42, 0.96) 65%, rgba(9, 13, 28, 0.98) 100%) !important;
    border: 2px solid rgba(251, 191, 36, 0.85) !important;
    box-shadow: 0 8px 28px rgba(251, 191, 36, 0.22), inset 0 0 24px rgba(251, 191, 36, 0.08) !important;
    padding: 26px 28px !important;
}

.season-info-homepage.season-ended-flyer .season-right-col {
    display: block;
    width: 100%;
}

.season-flyer-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.14));
    border: 1px solid rgba(251, 191, 36, 0.7);
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.season-info-homepage.season-ended-flyer #home-season-title {
    color: #fbbf24 !important;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.45) !important;
    font-size: 1.55em !important;
    margin-bottom: 10px !important;
}

.season-flyer-thanks {
    color: #e2e8f0;
    font-size: 0.96rem;
    line-height: 1.5;
    margin: 0 auto 14px auto;
    max-width: 480px;
}

.season-flyer-thanks strong {
    color: #fef08a;
}

.season-flyer-top5 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 auto;
    width: 100%;
    max-width: 520px;
    text-align: left;
}

.season-flyer-top5-heading {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #fde68a;
    margin-bottom: 2px;
    text-align: center;
}

.season-flyer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.season-flyer-row:hover {
    transform: translateY(-1px);
}

.season-flyer-row.rank-1 {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.24), rgba(30, 41, 59, 0.85));
    border-color: rgba(251, 191, 36, 0.85);
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.2);
}

.season-flyer-row.rank-2 {
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.17), rgba(30, 41, 59, 0.85));
    border-color: rgba(203, 213, 225, 0.65);
}

.season-flyer-row.rank-3 {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.18), rgba(30, 41, 59, 0.85));
    border-color: rgba(245, 158, 11, 0.6);
}

.season-flyer-rank-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.season-flyer-rank-label {
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
    color: #94a3b8;
    min-width: 78px;
}

.season-flyer-row.rank-1 .season-flyer-rank-label { color: #fde047; }
.season-flyer-row.rank-2 .season-flyer-rank-label { color: #e2e8f0; }
.season-flyer-row.rank-3 .season-flyer-rank-label { color: #fdba74; }

.season-flyer-player-name {
    font-weight: 700;
    font-size: 0.98rem;
    color: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.season-flyer-row.rank-1 .season-flyer-player-name {
    color: #fef9c3;
}

.season-flyer-score {
    font-weight: 700;
    font-size: 0.88rem;
    color: #38bdf8;
    white-space: nowrap;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 3px 10px;
    border-radius: 6px;
}

.season-flyer-rewards-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #cbd5e1;
    margin-top: 2px;
    margin-bottom: 4px;
}

.season-flyer-footer-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fbbf24;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 6px;
    border: 1px solid rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.1);
    transition: background 0.2s, transform 0.2s;
}

.season-flyer-footer-link:hover {
    background: rgba(251, 191, 36, 0.22);
    transform: translateY(-1px);
}

@media (max-width: 860px) {
    .season-info-homepage.season-ended-flyer {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 16px !important;
    }
}

@media (max-width: 768px) {
    .hero,
    .season-info-homepage {
        width: calc(100% - 2rem);
        padding: 1.35rem 1.1rem;
    }
    .hero h1 {
        font-size: 1.85rem;
    }
    .home-content-grid {
        padding: 0 1rem;
    }
}