:root {
    --bg: #2a0b14;
    --bg-dark: #160409;
    --panel: #3a111d;
    --panel-soft: #461724;
    --text: #f8e4e8;
    --muted: #d8b8c0;
    --accent: #ffdce3;
    --border: rgba(255, 220, 227, 0.18);
    --shadow: rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(180deg,
            #350f1c 0%,
            #37111c 15%,
            #3a151e 35%,
            #3f1b20 55%,
            #452222 78%,
            #4a2724 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(42, 11, 20, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.25rem;
}

.hero {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 4rem 1.25rem;
}

.hero-inner {
    width: 100%;
    max-width: 900px;
    min-width: 0;
}

.hero-logo {
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 0 auto 2rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero p {
    max-width: 720px;
    margin: 1.5rem auto 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 800;
}

.button.main {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
    border: 1px solid rgba(255, 220, 227, 0.3);
}

.button.main:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.section {
    margin: 4rem 0;
}

.section h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.section p {
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.card {
    background: linear-gradient(180deg, var(--panel), var(--panel-soft));
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.4rem;
    box-shadow: 0 20px 50px var(--shadow);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card p {
    margin-bottom: 0;
}

.list {
    display: grid;
    gap: 1rem;
}

.list-item {
    padding: 1.25rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
}

.list-item h3 {
    margin: 0 0 0.35rem;
}

.list-item p {
    margin: 0;
    color: var(--muted);
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.member {
    text-align: center;
}

.avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 900;
    font-size: 1.5rem;
}

.form {
    display: grid;
    gap: 1rem;
    max-width: 720px;
}

.form input,
.form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit;
}

.form textarea {
    min-height: 160px;
    resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
    color: rgba(248, 228, 232, 0.55);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--muted);
}

.link-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 220, 227, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.link-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.profile-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(180deg, var(--panel), var(--panel-soft));
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 50px var(--shadow);
}

.profile-picture {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 900;
    font-size: 3rem;
}

.profile-picture span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.profile-picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
}

.profile-role {
    margin: 0 0 1rem;
    color: var(--accent);
    font-weight: 800;
}

.profile-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.profile-socials a {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.profile-socials a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 220, 227, 0.45);
}

.profile-socials img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

@media (max-width: 800px) {
    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-picture {
        margin: 0 auto;
    }

    .profile-socials {
        justify-content: center;
    }
}

@media (max-width: 800px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .hero {
        min-height: auto;
        padding: 2.5rem 1.25rem;
    }

    .hero-logo {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 11vw, 3rem);
        line-height: 1;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .hero-actions .button {
        width: 100%;
    }
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
}

.participation-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;
}

.member-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.member-chip {
    display: inline-block;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.member-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.game-list {
    display: grid;
    gap: 1.25rem;
}

.game-card h3 {
    margin: 0;
}

.game-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.game-card h3 a:hover {
    color: var(--accent);
}

.game-card h4 {
    margin: 1.25rem 0 0.75rem;
    color: var(--accent);
}

.game-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.game-team-name {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 800px) {
    .game-header {
        flex-direction: column;
    }
}

.game-members {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.game-member {
    display: block;
    width: fit-content;
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.game-member:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.avatar-photo {
    position: relative;
    overflow: hidden;
}

.avatar-photo span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.avatar-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card {
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 50px var(--shadow);
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
}