:root {
    --bg: #060c1b;
    --bg-soft: #0b1329;
    --panel: rgba(12, 20, 42, 0.82);
    --panel-2: rgba(17, 28, 55, 0.94);
    --border: rgba(102, 163, 255, 0.18);
    --border-strong: rgba(102, 163, 255, 0.26);
    --text: #eaf2ff;
    --muted: #9fb4d9;
    --primary: #2f7df6;
    --primary-2: #6bb6ff;
    --accent: #ff8c3a;
    --success: #30d158;
    --warning: #ffb020;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.25);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text);
    background: radial-gradient(900px 500px at 8% 0%, rgba(47, 125, 246, 0.18), transparent 60%), radial-gradient(700px 420px at 92% 14%, rgba(107, 182, 255, 0.14), transparent 60%), radial-gradient(620px 340px at 100% 42%, rgba(255, 140, 58, 0.08), transparent 60%), linear-gradient(180deg, #040915 0%, #060c1b 42%, #081122 100%);
    overflow-x: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0));
    z-index: -3;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.22;
    pointer-events: none;
    z-index: -2;
}

.orb-1 {
    width: 320px;
    height: 320px;
    background: var(--primary);
    top: 64px;
    left: -90px;
}

.orb-2 {
    width: 280px;
    height: 280px;
    background: var(--accent);
    right: -90px;
    top: 340px;
    opacity: 0.11;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 76px 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(5, 9, 22, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: max-content;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 8px 22px rgba(47, 125, 246, 0.16));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title {
    font-size: 1.34rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text);
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.desktop-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

    .desktop-nav a {
        color: var(--muted);
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .desktop-nav a:hover {
            color: var(--text);
        }

.header-cta {
    margin-left: 8px;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.auth-email {
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-btn {
    font-size: 13px;
    padding: 6px 14px;
}

.auth-logout {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    padding: 6px 14px;
    transition: background 0.15s;
}

.auth-logout:hover {
    background: rgba(255,255,255,0.07);
    color: #e2e8f0;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 12px;
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px 18px;
    background: rgba(5, 9, 22, 0.94);
}

    .mobile-nav.open {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-nav a {
        color: var(--muted);
    }

.mobile-cta {
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-primary {
    background: linear-gradient(135deg, #ff983f 0%, #ff7f2f 100%);
    color: #1f1005;
    box-shadow: 0 14px 28px rgba(255, 140, 58, 0.25);
}

.btn-secondary {
    background: rgba(47, 125, 246, 0.12);
    color: var(--text);
    border-color: rgba(107, 182, 255, 0.25);
}

.hero {
    padding-top: 54px;
    padding-bottom: 46px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47, 125, 246, 0.12);
    border: 1px solid rgba(107, 182, 255, 0.18);
    color: var(--primary-2);
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 14px rgba(48, 209, 88, 0.75);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 0.97;
    letter-spacing: -0.05em;
    max-width: 760px;
}

.hero-text {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 690px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-aside {
    width: min(100%, 500px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.hero-aside-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.hero-aside-logo {
    width: min(100%, 360px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 34px rgba(47, 125, 246, 0.14)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24));
}

.hero-aside-meta {
    width: 100%;
    display: grid;
    gap: 18px;
}

.hero-aside-intro h3 {
    margin: 6px 0 10px;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

.hero-aside-intro p,
.hero-aside-goal p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.hero-aside-kicker,
.hero-aside-section-title {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary-2);
    text-transform: uppercase;
}

.hero-aside-stats {
    display: grid;
    gap: 12px;
}

.hero-aside-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .hero-aside-stat:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

.hero-aside-stat-label {
    color: var(--muted);
    font-size: 0.96rem;
}

.hero-aside-stat-value {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
}

    .hero-aside-stat-value.online {
        color: #88f0a2;
    }

.hero-aside-games,
.hero-aside-goal {
    display: grid;
    gap: 12px;
}

.hero-aside-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-aside-tag {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

    .hero-aside-tag.active {
        background: rgba(47, 125, 246, 0.14);
        border-color: rgba(107, 182, 255, 0.24);
        color: var(--text);
    }

.info-banner,
.event-panel,
.community-panel,
.contact-panel,
.next-panel {
    display: grid;
    gap: 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.info-banner {
    grid-template-columns: 170px 1fr;
    align-items: start;
}

    .info-banner h2,
    .section-heading h2,
    .event-copy h2,
    .community-copy h2,
    .contact-panel h2,
    .next-panel h2 {
        margin: 0 0 12px;
        font-size: clamp(1.9rem, 4vw, 2.9rem);
        letter-spacing: -0.03em;
    }

    .info-banner p,
    .section-heading p,
    .event-copy p,
    .community-copy p,
    .contact-panel p,
    .next-panel p {
        margin: 0;
        color: var(--muted);
        line-height: 1.8;
    }

.info-badge {
    width: fit-content;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 140, 58, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 140, 58, 0.18);
    font-weight: 900;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--primary-2);
}

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

.game-card {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

    .game-card:hover {
        transform: translateY(-3px);
        border-color: rgba(107, 182, 255, 0.32);
    }

    .game-card.featured {
        outline: 1px solid rgba(255, 140, 58, 0.22);
    }

.game-image-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b1329;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 12, 27, 0.72), transparent 55%);
}

.game-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(8, 15, 30, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

    .game-badge.available {
        background: rgba(48, 209, 88, 0.14);
        border-color: rgba(48, 209, 88, 0.22);
        color: #90f3ab;
    }

.game-body {
    padding: 20px;
}

    .game-body h3 {
        margin: 0 0 10px;
        font-size: 1.18rem;
    }

    .game-body p {
        margin: 0;
        color: var(--muted);
        line-height: 1.75;
    }

.game-features {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--primary-2);
    font-weight: 800;
}

.card-link-group {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.card-action-btn {
    font-size: 0.88rem;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
}

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

.feature-card,
.status-card {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

    .feature-card h3 {
        margin: 0 0 10px;
        font-size: 1.16rem;
    }

    .feature-card p {
        margin: 0;
        color: var(--muted);
        line-height: 1.75;
    }

.event-panel {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
}

.event-list {
    margin: 18px 0 22px;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.85;
}

.event-box {
    display: flex;
    justify-content: center;
}

.event-metric {
    width: 100%;
    min-height: 280px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(255, 140, 58, 0.16), transparent 35%), linear-gradient(180deg, rgba(20, 35, 67, 1), rgba(10, 18, 38, 1));
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.metric-value {
    font-size: clamp(3.2rem, 10vw, 5.4rem);
    font-weight: 900;
    line-height: 1;
    color: var(--text);
}

.metric-label {
    margin-top: 10px;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
    max-width: 240px;
}

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

.status-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-label {
    color: var(--muted);
    font-size: 0.95rem;
}

.status-online {
    color: #88f0a2;
}

.community-panel {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

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

.social-card {
    min-height: 92px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

    .social-card:hover {
        transform: translateY(-2px);
        border-color: rgba(107, 182, 255, 0.28);
    }

.primary-social {
    background: linear-gradient(135deg, rgba(47, 125, 246, 0.22), rgba(107, 182, 255, 0.12));
}

.next-panel {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
}

.next-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.next-item {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    color: var(--text);
}

.contact-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer {
    padding: 30px 0 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(4, 8, 18, 0.66);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.footer-brand {
    font-size: 1.12rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

@media (max-width: 1180px) {
    .hero-grid,
    .event-panel,
    .community-panel,
    .contact-panel,
    .next-panel,
    .info-banner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

    .hero-visual {
        order: -1;
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .header-cta,
    .header-auth {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 58px 0;
    }

    .hero {
        padding-top: 28px;
    }

    .games-grid,
    .features-grid,
    .status-grid,
    .socials,
    .next-list {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-title {
        font-size: 1.18rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-aside {
        width: 100%;
        gap: 20px;
    }

    .hero-aside-logo-wrap {
        min-height: 160px;
    }

    .hero-aside-logo {
        width: min(100%, 180px);
    }

    .hero-aside-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Mobile nav auth block ── */
.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mobile-auth-email {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-auth-link {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
}

.mobile-auth-link:hover {
    color: var(--text);
}

.mobile-auth-logout {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 15px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.mobile-auth-logout:hover {
    color: #f87171;
}
