* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-red: #c41e3a;
    --accent-dark: #8b0000;
    --black-pure: #000000;
    --black-soft: #0a0a0a;
    --gray-dark: #1a1a1a;
    --gray-mid: #333333;
    --white-pure: #ffffff;
    --white-soft: #f8f8f8;
    --gray-light: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--white-soft);
    color: var(--black-soft);
    line-height: 1.8;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-dark);
}

/* Entry Modal */
.entry-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.entry-modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white-pure);
    border: 2px solid var(--black-pure);
    padding: 3.5rem 3rem;
    max-width: 440px;
    text-align: center;
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.modal-box h2 {
    color: var(--black-pure);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-box p {
    color: var(--gray-mid);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 1rem 2.5rem;
    border: 2px solid var(--black-pure);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-btn.confirm {
    background: var(--black-pure);
    color: var(--white-pure);
}

.modal-btn.confirm:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.modal-btn.cancel {
    background: var(--white-pure);
    color: var(--black-pure);
}

.modal-btn.cancel:hover {
    background: var(--gray-light);
}

/* Header */
.main-header {
    background: var(--black-pure);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-letter {
    width: 46px;
    height: 46px;
    background: var(--accent-red);
    color: var(--white-pure);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white-pure);
}

.nav-trigger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-trigger .line {
    width: 28px;
    height: 2px;
    background: var(--white-pure);
    transition: all 0.3s;
}

.primary-nav {
    display: flex;
    gap: 3rem;
}

.primary-nav a {
    color: var(--gray-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--white-pure);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
    width: 100%;
}

/* Hero */
.hero {
    background: var(--black-pure);
    padding: 6rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--accent-red);
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white-pure);
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--gray-light);
}

/* Page Header */
.page-header {
    background: var(--black-pure);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--accent-red);
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--white-pure);
    margin-bottom: 0.75rem;
}

.page-header p {
    color: var(--gray-light);
    font-size: 1.1rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}

.feature {
    padding: 3rem 2.5rem;
    text-align: center;
    border-right: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.feature:last-child {
    border-right: none;
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
}

.feature h3 {
    color: var(--black-pure);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature p {
    color: var(--gray-mid);
    font-size: 0.95rem;
}

/* Game Section */
.game-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-section.full {
    padding-top: 3rem;
}

.game-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.game-intro h2 {
    color: var(--black-pure);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.game-intro p {
    color: var(--gray-mid);
    font-size: 1.1rem;
}

.game-frame {
    background: var(--black-pure);
    border: 2px solid var(--black-pure);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.game-frame.expanded {
    aspect-ratio: 16 / 10;
    max-width: 1150px;
    margin: 0 auto;
}

.game-display {
    width: 100%;
    height: 100%;
    border: none;
}

/* Articles */
.article {
    padding: 3.5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    border-bottom: 1px solid var(--gray-light);
}

.article:last-of-type {
    border-bottom: none;
}

.article h2 {
    color: var(--black-pure);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.article p {
    color: var(--gray-mid);
    margin-bottom: 1rem;
}

.article p:last-child {
    margin-bottom: 0;
}

.article.highlight {
    background: var(--black-pure);
    padding: 3rem !important;
    margin: 3rem auto;
    max-width: 900px;
}

.article.highlight h2 {
    color: var(--white-pure);
}

.article.highlight p {
    color: var(--gray-light);
}

/* Premium List */
.premium-list {
    list-style: none;
    margin-top: 1.5rem;
}

.premium-list li {
    color: var(--gray-mid);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.premium-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-red);
}

/* Footer */
.main-footer {
    background: var(--black-pure);
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.support-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.support-label {
    color: var(--gray-light);
    font-size: 0.85rem;
}

.support-links a {
    color: var(--white-pure);
    font-size: 0.85rem;
}

.copyright {
    color: var(--gray-mid);
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: 1fr;
    }

    .feature {
        border-right: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-trigger {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 78px;
        left: 0;
        width: 100%;
        background: var(--black-pure);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 2px solid var(--accent-red);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s;
    }

    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header-container {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .page-header {
        padding: 3rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .feature {
        padding: 2.5rem 1.5rem;
    }

    .game-section {
        padding: 3rem 1rem;
    }

    .game-frame {
        aspect-ratio: 4 / 3;
    }

    .article {
        padding: 2.5rem 1.5rem;
    }

    .article h2 {
        font-size: 1.5rem;
    }

    .support-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .main-footer {
        padding: 2rem 1.5rem;
    }

    .modal-box {
        margin: 1.5rem;
        padding: 2.5rem 2rem;
    }

    .modal-buttons {
        flex-direction: column;
    }
}
