:root {
    --bg: #070b12;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.13);
    --line: rgba(255, 255, 255, 0.16);
    --text: #f8fbff;
    --muted: #aab6c8;
    --gold: #ffd65a;
    --cyan: #23d5ff;
    --green: #40e58c;
    --red: #ff4f5f;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #070b12;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 11, 18, 0.95) 0%, rgba(7, 11, 18, 0.72) 42%, rgba(7, 11, 18, 0.95) 100%),
        url("/games/wordlefcw26/legends/messi.png") 72% 18% / 210px auto no-repeat,
        url("/games/wordlefcw26/legends/ronaldinho.png") 92% 74% / 210px auto no-repeat,
        url("/games/wordlefcw26/shop/cup_worldcup.png") 52% 86% / 260px auto no-repeat,
        url("/games/wordlefcw26/legends/mbappe.png") 8% 78% / 180px auto no-repeat;
    opacity: 0.78;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
}

.site-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 950;
    letter-spacing: 0;
    text-decoration: none;
}

.brand-dot {
    width: 42px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--gold));
    color: #111;
    font-size: 1.05rem;
    font-weight: 950;
    box-shadow: 0 0 28px rgba(255, 79, 95, 0.38);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a,
.ghost-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.nav-links a:hover,
.ghost-button:hover {
    border-color: rgba(35, 213, 255, 0.72);
    background: rgba(35, 213, 255, 0.12);
}

.hero {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 52px;
    padding: 24px 0 72px;
}

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

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 0.84rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(3.4rem, 9vw, 7.6rem);
    line-height: 0.88;
    font-weight: 950;
    letter-spacing: 0;
}

.hero-subtitle {
    max-width: 580px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.primary-button,
.social-link,
.game-cta {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: var(--radius);
    font-weight: 900;
    text-decoration: none;
}

.primary-button,
.game-cta {
    padding: 0 20px;
    border: 0;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: #071018;
    box-shadow: 0 12px 34px rgba(35, 213, 255, 0.25);
}

.social-panel {
    display: grid;
    gap: 10px;
}

.social-link {
    justify-content: space-between;
    min-height: 58px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: rgba(8, 14, 24, 0.72);
    backdrop-filter: blur(14px);
}

.social-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
}

.social-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--panel-strong);
    font-size: 0.72rem;
    font-weight: 950;
}

.social-arrow {
    color: var(--muted);
}

.section {
    padding: 64px 0;
}

.section-heading {
    max-width: 640px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.section-heading p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.game-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, transparent 0%, rgba(7, 11, 18, 0.86) 58%, #070b12 100%),
        url("/games/wordlefcw26/shop/cup_worldcup.png") center 14% / 250px auto no-repeat,
        rgba(255, 255, 255, 0.06);
    padding: 20px;
    text-decoration: none;
}

.game-card:hover {
    border-color: rgba(255, 214, 90, 0.7);
}

.game-card h3 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: 0;
}

.game-card p {
    margin: 8px 0 18px;
    color: var(--muted);
    line-height: 1.45;
}

.game-status {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 9px;
    border-radius: var(--radius);
    background: rgba(64, 229, 140, 0.16);
    border: 1px solid rgba(64, 229, 140, 0.42);
    color: #b9ffd8;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.games-hero {
    min-height: 52vh;
    display: flex;
    align-items: center;
    padding: 48px 0;
}

.games-hero h1 {
    max-width: 760px;
}

@media (max-width: 820px) {
    body::before {
        background:
            linear-gradient(180deg, rgba(7, 11, 18, 0.84) 0%, rgba(7, 11, 18, 0.98) 68%),
            url("/games/wordlefcw26/shop/cup_worldcup.png") 50% 18% / 230px auto no-repeat,
            url("/games/wordlefcw26/legends/messi.png") 92% 72% / 170px auto no-repeat;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 56px;
    }

    .social-panel {
        max-width: 420px;
    }
}

@media (max-width: 520px) {
    .site-shell {
        width: min(100% - 22px, 1120px);
    }

    .nav-links a,
    .ghost-button {
        min-height: 36px;
        padding: 0 10px;
        font-size: 0.82rem;
    }

    .hero-actions,
    .nav-links {
        width: 100%;
    }

    .primary-button,
    .ghost-button {
        flex: 1;
    }

    .social-link {
        min-height: 54px;
    }
}
