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

:root {
    --emerald-primary: #10b981;
    --jade-accent: #059669;
    --teal-deep: #0d9488;
    --green-light: #34d399;
    --bg-dark: #064e3b;
    --bg-darker: #022c22;
    --text-white: #f0fdf4;
    --text-light: #d1fae5;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #022c22 100%);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

.wrapper {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 30px;
}

.wrapper-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Age Modal */
.age-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.age-modal.visible {
    display: flex;
}

.age-dialog {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    padding: 50px 45px;
    border-radius: 25px;
    max-width: 540px;
    width: 90%;
    border: 3px solid var(--emerald-primary);
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.5);
}

.age-header {
    text-align: center;
    margin-bottom: 30px;
}

.age-header h2 {
    font-size: 2.4rem;
    color: var(--emerald-primary);
    margin-bottom: 10px;
    font-weight: 800;
}

.age-subtitle {
    font-size: 1.1rem;
    color: var(--green-light);
    font-weight: 600;
}

.age-message {
    text-align: center;
    margin-bottom: 35px;
}

.age-badge {
    display: inline-block;
    background: var(--emerald-primary);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    padding: 15px 35px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.age-message p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 600;
}

.age-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.age-accept, .age-decline {
    flex: 1;
    min-width: 180px;
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.age-accept {
    background: linear-gradient(135deg, var(--emerald-primary), var(--jade-accent));
    color: white;
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.age-accept:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(16, 185, 129, 0.6);
}

.age-decline {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.age-decline:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Site Container */
.site-container {
    min-height: 100vh;
}

/* Header */
.top-bar {
    background: rgba(6, 78, 59, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--emerald-primary);
    box-shadow: 0 5px 30px rgba(16, 185, 129, 0.3);
}

.header-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: 800;
}

.brand-symbol {
    font-size: 2.3rem;
}

.brand-title {
    background: linear-gradient(135deg, var(--emerald-primary), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.top-nav {
    display: flex;
    gap: 35px;
}

.nav-item {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--emerald-primary);
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item:hover,
.nav-item.active {
    color: var(--emerald-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--emerald-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Content */
.content {
    padding: 50px 0;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 60px;
}

.welcome-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    padding: 70px 50px;
    border-radius: 25px;
    text-align: center;
    border: 2px solid var(--emerald-primary);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.welcome-card h1 {
    font-size: 3.6rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--emerald-primary), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.lead {
    font-size: 1.35rem;
    color: var(--text-light);
    max-width: 850px;
    margin: 0 auto;
    font-weight: 600;
}

/* Info Cards */
.info-cards {
    margin-bottom: 70px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.info-card {
    display: flex;
    gap: 25px;
    padding: 40px 35px;
    border-radius: 20px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.info-card.emerald {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--emerald-primary);
}

.info-card.jade {
    background: rgba(5, 150, 105, 0.1);
    border-color: var(--jade-accent);
}

.info-card.teal {
    background: rgba(13, 148, 136, 0.1);
    border-color: var(--teal-deep);
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.35);
}

.card-icon {
    font-size: 3rem;
}

.card-text h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--emerald-primary);
    font-weight: 800;
}

.card-text p {
    color: var(--text-light);
    line-height: 1.7;
}

/* About Vyrendrix */
.about-vyrendrix {
    margin-bottom: 70px;
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-header h2 {
    font-size: 2.8rem;
    color: var(--emerald-primary);
    font-weight: 800;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.about-panel p {
    font-size: 1.12rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Featured Content */
.featured-content {
    margin-bottom: 70px;
}

.featured-header {
    text-align: center;
    margin-bottom: 40px;
}

.featured-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--emerald-primary);
    font-weight: 800;
}

.featured-text {
    font-size: 1.15rem;
    color: var(--text-light);
}

.game-wrapper {
    border-radius: 25px;
    overflow: hidden;
    border: 4px solid var(--emerald-primary);
    box-shadow: 0 12px 50px rgba(16, 185, 129, 0.4);
    margin-bottom: 35px;
}

.game-frame {
    width: 100%;
    height: 650px;
    border: none;
    display: block;
}

.featured-actions {
    text-align: center;
}

.primary-btn {
    display: inline-block;
    padding: 18px 55px;
    background: linear-gradient(135deg, var(--emerald-primary), var(--jade-accent));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(16, 185, 129, 0.6);
}

/* Advantages */
.advantages {
    margin-bottom: 70px;
}

.advantages-header {
    text-align: center;
    margin-bottom: 60px;
}

.advantages-header h2 {
    font-size: 2.8rem;
    color: var(--emerald-primary);
    font-weight: 800;
}

.advantages-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}

.advantage-box {
    background: rgba(6, 78, 59, 0.4);
    padding: 45px 38px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(16, 185, 129, 0.25);
    transition: all 0.3s ease;
}

.advantage-box:hover {
    transform: translateY(-6px);
    border-color: var(--emerald-primary);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.35);
}

.advantage-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 25px;
}

.advantage-box h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
    color: var(--emerald-primary);
    font-weight: 800;
}

.advantage-box p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Key Notice */
.key-notice {
    margin-bottom: 70px;
}

.notice-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(13, 148, 136, 0.15));
    padding: 55px 45px;
    border-radius: 25px;
    text-align: center;
    border: 2px solid var(--emerald-primary);
}

.notice-box h3 {
    font-size: 2.3rem;
    margin-bottom: 25px;
    color: var(--green-light);
    font-weight: 800;
}

.notice-box p {
    font-size: 1.12rem;
    color: var(--text-light);
    line-height: 1.9;
}

/* Game Header */
.game-header {
    text-align: center;
    margin-bottom: 50px;
}

.game-header h1 {
    font-size: 3.4rem;
    margin-bottom: 20px;
    color: var(--emerald-primary);
    font-weight: 800;
}

.game-tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
}

.game-section {
    margin-bottom: 70px;
}

.game-container {
    border-radius: 25px;
    overflow: hidden;
    border: 4px solid var(--emerald-primary);
    box-shadow: 0 12px 50px rgba(16, 185, 129, 0.4);
}

.game-frame-full {
    width: 100%;
    height: 750px;
    border: none;
    display: block;
}

.game-information {
    margin-bottom: 70px;
}

.game-information h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--emerald-primary);
    font-weight: 800;
}

.info-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-panel {
    background: rgba(6, 78, 59, 0.4);
    padding: 38px 35px;
    border-radius: 20px;
    border: 2px solid rgba(16, 185, 129, 0.25);
}

.info-panel h3 {
    font-size: 1.35rem;
    margin-bottom: 18px;
    color: var(--emerald-primary);
    font-weight: 800;
}

.info-panel p {
    color: var(--text-light);
    line-height: 1.7;
}

.nav-section {
    margin-bottom: 70px;
}

.nav-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    padding: 60px 50px;
    border-radius: 25px;
    text-align: center;
    border: 2px solid var(--emerald-primary);
}

.nav-card h3 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: var(--emerald-primary);
    font-weight: 800;
}

.nav-card p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 35px;
}

/* Legal Pages */
.legal-header {
    text-align: center;
    margin-bottom: 60px;
}

.legal-header h1 {
    font-size: 3.4rem;
    margin-bottom: 15px;
    color: var(--emerald-primary);
    font-weight: 800;
}

.legal-date {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.legal-sections {
    margin-bottom: 70px;
}

.legal-block {
    background: rgba(6, 78, 59, 0.4);
    padding: 45px 42px;
    border-radius: 20px;
    margin-bottom: 35px;
    border-left: 5px solid var(--emerald-primary);
}

.legal-block h2 {
    font-size: 2rem;
    margin-bottom: 22px;
    color: var(--emerald-primary);
    font-weight: 800;
}

.legal-block p {
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.9;
    font-size: 1.08rem;
}

/* Footer */
.site-footer {
    background: rgba(6, 78, 59, 0.95);
    padding: 70px 0 35px;
    border-top: 3px solid var(--emerald-primary);
    margin-top: 80px;
}

.footer-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 45px;
    margin-bottom: 45px;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 22px;
    color: var(--emerald-primary);
    font-weight: 800;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.7;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--emerald-primary);
}

.footer-bar {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .top-nav {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(6, 78, 59, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 35px 0;
        border-top: 3px solid var(--emerald-primary);
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
        gap: 25px;
    }

    .top-nav.active {
        left: 0;
    }

    .welcome-card h1 {
        font-size: 2.7rem;
    }

    .lead {
        font-size: 1.2rem;
    }

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

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

    .game-frame {
        height: 450px;
    }

    .game-frame-full {
        height: 550px;
    }

    .advantages-layout,
    .info-layout {
        grid-template-columns: 1fr;
    }

    .footer-layout {
        grid-template-columns: 1fr;
    }

    .age-dialog {
        padding: 40px 30px;
    }

    .age-buttons {
        flex-direction: column;
    }

    .age-accept, .age-decline {
        width: 100%;
    }
}
