@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald: #2ecc71;
    --emerald-dark: #27ae60;
    --forest: #1a3c28;
    --black: #0f1612;
    --charcoal: #1a1f1c;
    --cream: #f5f7f6;
    --gold-accent: #f39c12;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: var(--black);
    color: var(--cream);
    line-height: 1.8;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(15, 22, 18, 0.98) 0%, rgba(15, 22, 18, 0.92) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(46, 204, 113, 0.25);
}

.header-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-diamond {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.3);
}

.logo-diamond span {
    transform: rotate(-45deg);
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--emerald);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--cream);
    padding: 6px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--emerald);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--emerald);
    transition: all 0.3s;
}

/* Welcome Section */
.welcome {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 2.5rem 80px;
    background: linear-gradient(160deg, var(--forest) 0%, var(--charcoal) 40%, var(--black) 100%);
    position: relative;
}

.welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z' fill='none' stroke='%232ecc71' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}

.welcome-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.welcome-text h1 {
    font-size: 3.4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--cream);
}

.welcome-text h1 span {
    color: var(--emerald);
}

.welcome-desc {
    font-size: 1.2rem;
    color: rgba(245, 247, 246, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.9;
}

/* Alert Boxes */
.alert-boxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-box {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.4);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.alert-icon {
    font-size: 1.4rem;
}

/* Game Display */
.game-display {
    background: linear-gradient(145deg, var(--forest), var(--charcoal));
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--emerald);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(46, 204, 113, 0.1);
}

.game-frame {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
}

/* Features */
.features-section {
    padding: 6rem 2.5rem;
    background: var(--charcoal);
}

.features-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.features-title {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 4rem;
    color: var(--cream);
}

.features-title span {
    color: var(--emerald);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature {
    background: var(--black);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s;
}

.feature:hover {
    border-color: var(--emerald);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.15);
}

.feature-symbol {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature h3 {
    color: var(--emerald);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature p {
    color: rgba(245, 247, 246, 0.7);
}

/* About Area */
.about-area {
    padding: 5rem 2.5rem;
    background: var(--black);
}

.about-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    background: linear-gradient(145deg, rgba(46, 204, 113, 0.08), transparent);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--emerald);
}

.about-card h3 {
    color: var(--emerald);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-card p {
    color: rgba(245, 247, 246, 0.8);
}

/* Footer */
.footer {
    background: var(--black);
    border-top: 1px solid rgba(46, 204, 113, 0.2);
    padding: 3.5rem 2.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-menu a {
    color: var(--cream);
    font-weight: 600;
}

.footer-menu a:hover {
    color: var(--emerald);
}

.help-section {
    padding-top: 2rem;
    border-top: 1px solid rgba(46, 204, 113, 0.15);
}

.help-section p {
    color: rgba(245, 247, 246, 0.6);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.help-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.help-links a {
    color: var(--emerald);
    font-size: 0.9rem;
}

.footer-copy {
    margin-top: 2rem;
    color: rgba(245, 247, 246, 0.4);
    font-size: 0.85rem;
}

/* Age Modal */
.age-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 22, 18, 0.98);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.age-modal-box {
    background: linear-gradient(145deg, var(--forest), var(--charcoal));
    border: 2px solid var(--emerald);
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 60px rgba(46, 204, 113, 0.2);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.age-modal-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--emerald);
}

.age-modal-box p {
    color: rgba(245, 247, 246, 0.8);
    margin-bottom: 2rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 1rem 2.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-confirm {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    color: var(--black);
}

.btn-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.4);
}

.btn-exit {
    background: transparent;
    border: 2px solid var(--gold-accent);
    color: var(--gold-accent);
}

.btn-exit:hover {
    background: var(--gold-accent);
    color: var(--black);
}

.hidden {
    display: none !important;
}

/* Inner Pages */
.page-wrap {
    padding: 140px 2.5rem 5rem;
    max-width: 1000px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.page-wrap h1 {
    font-size: 2.6rem;
    margin-bottom: 2rem;
    color: var(--emerald);
}

.page-wrap h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--emerald);
}

.page-wrap p {
    color: rgba(245, 247, 246, 0.85);
    margin-bottom: 1rem;
}

.page-wrap ul {
    margin: 1rem 0 1rem 2rem;
    color: rgba(245, 247, 246, 0.85);
}

.page-wrap li {
    margin-bottom: 0.5rem;
}

/* Play Page */
.play-area {
    padding: 140px 2.5rem 5rem;
    background: linear-gradient(180deg, var(--forest) 0%, var(--charcoal) 100%);
    min-height: 100vh;
}

.play-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.play-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.play-header h1 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    color: var(--cream);
}

.play-header h1 span {
    color: var(--emerald);
}

.play-header p {
    color: rgba(245, 247, 246, 0.8);
    font-size: 1.1rem;
}

.play-info {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--emerald);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.play-info h3 {
    color: var(--emerald);
    margin-bottom: 1rem;
}

.play-info p {
    color: rgba(245, 247, 246, 0.8);
}

/* Responsive */
@media (max-width: 1024px) {
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 82px;
        left: 0;
        width: 100%;
        background: var(--black);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s;
        border-bottom: 1px solid rgba(46, 204, 113, 0.25);
    }

    .nav-links.show {
        transform: translateX(0);
    }

    .burger {
        display: flex;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .welcome-text h1 {
        font-size: 2.2rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .game-frame {
        height: 380px;
    }

    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .age-modal-box {
        padding: 2rem;
    }

    .page-wrap h1 {
        font-size: 2rem;
    }
}
