* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e67e22;
    --primary-dark: #d35400;
    --secondary: #f39c12;
    --bg-dark: #1a1410;
    --bg-medium: #2d241c;
    --bg-light: #3d322a;
    --text-main: #f4e8dc;
    --text-dim: #b8a899;
    --accent: #c0392b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.75;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.25s;
}

a:hover {
    color: var(--secondary);
}

/* Gate Modal */
.gate-container {
    position: fixed;
    inset: 0;
    background: rgba(26, 20, 16, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
}

.gate-container.active {
    opacity: 1;
    visibility: visible;
}

.gate-box {
    background: linear-gradient(135deg, var(--bg-medium), var(--bg-light));
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 3rem;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 0 50px rgba(230, 126, 34, 0.3);
}

.gate-symbol {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.gate-box h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.gate-box p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.gate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.gate-btn {
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
}

.gate-btn.enter {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.gate-btn.enter:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
}

.gate-btn.exit {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--text-dim);
}

.gate-btn.exit:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

/* Header */
.main-header {
    background: var(--bg-medium);
    border-bottom: 2px solid var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.brand-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle i {
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.main-nav a:hover,
.main-nav a.current {
    color: var(--primary);
}

.main-nav a:hover::before,
.main-nav a.current::before {
    width: 100%;
}

/* Hero */
.hero-banner {
    background: linear-gradient(180deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-inner h1 {
    font-size: 3.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(230, 126, 34, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto;
}

/* Page Top */
.page-top {
    background: linear-gradient(180deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.page-top h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.page-top p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.info-card {
    background: var(--bg-medium);
    border: 1px solid var(--bg-light);
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
}

.info-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Game Area */
.game-area {
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.game-area.expanded {
    padding-top: 2rem;
}

.game-title-bar {
    text-align: center;
    margin-bottom: 2rem;
}

.game-title-bar h2 {
    color: var(--primary);
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.game-title-bar p {
    color: var(--text-dim);
}

.game-container {
    background: var(--bg-medium);
    border: 2px solid var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.game-container.large {
    aspect-ratio: 16 / 10;
    max-width: 1300px;
    margin: 0 auto;
}

.game-embed {
    width: 100%;
    height: 100%;
    border: none;
}

/* Text Blocks */
.text-block {
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    border-bottom: 1px solid var(--bg-light);
}

.text-block:last-of-type {
    border-bottom: none;
}

.text-block h2 {
    color: var(--primary);
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
}

.text-block p {
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.text-block p:last-child {
    margin-bottom: 0;
}

.alert-block {
    background: var(--bg-medium);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 2.5rem !important;
    margin: 2rem auto;
}

/* Highlight Grid */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.highlight-item {
    color: var(--text-dim);
    padding: 1rem 1.2rem;
    background: var(--bg-medium);
    border-radius: 6px;
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    background: var(--bg-medium);
    border-top: 2px solid var(--bg-light);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.responsible-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.responsible-label {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.responsible-links a {
    color: var(--primary);
    font-size: 0.85rem;
}

.copyright {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 1024px) {
    .info-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 74px;
        left: 0;
        width: 100%;
        background: var(--bg-medium);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 2px solid var(--bg-light);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header-container {
        padding: 1rem 1.5rem;
    }

    .hero-banner {
        padding: 4rem 1.5rem;
    }

    .hero-inner h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-top {
        padding: 3rem 1.5rem;
    }

    .page-top h1 {
        font-size: 2.2rem;
    }

    .info-cards {
        padding: 2rem 1.5rem;
    }

    .info-card {
        padding: 2rem 1.5rem;
    }

    .game-area {
        padding: 2rem 1rem;
    }

    .game-container {
        aspect-ratio: 4 / 3;
    }

    .text-block {
        padding: 2rem 1.5rem;
    }

    .text-block h2 {
        font-size: 1.6rem;
    }

    .responsible-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .main-footer {
        padding: 2rem 1.5rem;
    }

    .gate-box {
        margin: 1.5rem;
        padding: 2rem;
    }

    .gate-actions {
        flex-direction: column;
    }
}
