@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #100e0d;
    --panel: #1b1714;
    --gold: #c9a45c;
    --gold-light: #ecd39b;
    --text: #eee6d8;
    --muted: #a69b8b;
    --border: rgba(201, 164, 92, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

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

.header {
    min-height: 82px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: rgba(16, 14, 13, 0.96);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold-light);
    white-space: nowrap;
}

.logo span {
    color: var(--gold);
}

.navigation {
    display: flex;
    gap: 35px;
}

.navigation a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s;
}

.navigation a:hover {
    color: var(--gold-light);
}

.login-button {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 10px 24px;
    border-radius: 3px;
    cursor: pointer;
    font: inherit;
    transition: 0.2s;
}

.login-button:hover {
    background: var(--gold);
    color: #17110a;
}

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 90px 10%;
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.72), rgba(12, 10, 9, 0.35)),
        linear-gradient(0deg, var(--bg), transparent 35%),
        url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=2000&q=85') center/cover;
}

.hero-content {
    max-width: 700px;
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--gold-light);
}

.hero-description {
    max-width: 520px;
    color: #c5b9a7;
    font-size: 17px;
    margin-bottom: 35px;
}

.main-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gold);
    color: #17110a;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: 0.2s;
}

.main-button:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.section {
    padding: 100px 8%;
    text-align: center;
}

.section h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 45px;
    color: var(--gold-light);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 40px 28px;
    border-radius: 5px;
    transition: 0.25s;
}

.game-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.game-icon {
    font-size: 38px;
    color: var(--gold);
    margin-bottom: 20px;
}

.game-card h3 {
    color: var(--gold-light);
    font-size: 19px;
    margin-bottom: 15px;
}

.game-card p,
.section-description {
    color: var(--muted);
    font-size: 15px;
}

.events-section {
    background: #171310;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.events-section .section-description,
.about-section .section-description {
    max-width: 650px;
    margin: 0 auto;
}

.about-section {
    padding-top: 110px;
    padding-bottom: 110px;
}

.footer {
    min-height: 120px;
    padding: 30px 7%;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer p {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .header {
        padding: 18px 5%;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 16px;
    }

    .navigation {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 25px;
    }

    .hero {
        min-height: 540px;
        padding: 70px 7%;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 75px 6%;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}


/* AUTHENTICATION WINDOW */

#authModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-window {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 35px;
    background: #191512;
    border: 1px solid #b58a45;
    border-radius: 12px;
    color: #eee;
    text-align: center;
}

.auth-window h2 {
    color: #d5ad65;
    font-family: Cinzel, serif;
    margin-bottom: 25px;
}

.auth-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #d5ad65;
    font-size: 28px;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tabs button {
    flex: 1;
    padding: 12px;
    background: #30251d;
    border: 1px solid #76552f;
    color: #eee;
    cursor: pointer;
}

.auth-tabs button.active {
    background: #8b2727;
    border-color: #d5ad65;
}

#authForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#authForm input {
    width: 100%;
    padding: 13px;
    background: #29221d;
    border: 1px solid #76552f;
    border-radius: 5px;
    color: white;
    box-sizing: border-box;
}

#authSubmit {
    padding: 13px;
    background: #8b2727;
    border: 1px solid #d5ad65;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#authSubmit:hover {
    background: #a93636;
}

#authSubmit:disabled {
    opacity: 0.5;
    cursor: wait;
}

#authMessage {
    min-height: 20px;
    color: #d5ad65;
    margin-top: 15px;
}

.google-login {
    width: 100%;
    margin-top: 15px;
    padding: 13px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.google-login:hover {
    background: #eee;
}


/* USER PROFILE */

.account {
    position: relative;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    color: #d5ad65;
    cursor: pointer;
    border-radius: 30px;
    font-size: 16px;
}

.profile-button:hover {
    border-color: #b58a45;
    background: rgba(181, 138, 69, 0.12);
}

.profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #d5ad65;
    object-fit: cover;
    background: #30251d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
}

.profile-name {
    font-weight: bold;
}

.profile-arrow {
    font-size: 12px;
}

.profile-tooltip {
    position: absolute;
    top: 65px;
    right: 0;
    width: 250px;
    padding: 12px 16px;
    background: #191512;
    border: 1px solid #b58a45;
    border-radius: 8px;
    color: #eee;
    font-size: 13px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

.account:hover .profile-tooltip {
    opacity: 1;
    visibility: visible;
}

.profile-menu {
    position: absolute;
    top: 65px;
    right: 0;
    width: 230px;
    background: #191512;
    border: 1px solid #b58a45;
    border-radius: 8px;
    z-index: 1001;
    display: none;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.profile-menu.open {
    display: block;
}

.profile-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: #d5ad65;
    border-bottom: 1px solid #493727;
}

.profile-logout {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    color: #eee;
    text-align: left;
    cursor: pointer;
}

.profile-logout:hover {
    background: #5c2525;
}
