* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: #ffffff;
}

.content-wrap {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 20px;
    max-width: 500px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 35px 30px;
    text-align: center;
}

.modal-header h2 {
    font-size: 2.2rem;
    color: white;
}

.modal-body {
    padding: 40px 35px 30px;
    text-align: center;
}

.modal-body p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #4b5563;
}

.modal-question {
    font-weight: 600;
    margin-top: 25px;
    font-size: 1.2rem;
    color: #1f2937;
}

.modal-footer {
    padding: 0 35px 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Source Sans Pro', sans-serif;
}

.modal-btn.primary {
    background: #10b981;
    color: white;
}

.modal-btn.primary:hover {
    background: #059669;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.modal-btn.secondary {
    background: #6b7280;
    color: white;
}

.modal-btn.secondary:hover {
    background: #4b5563;
}

/* Main Header */
.main-header {
    background: white;
    padding: 22px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand h1 {
    font-size: 2.2rem;
    color: #10b981;
    cursor: pointer;
}

.site-nav {
    display: flex;
    gap: 35px;
}

.nav-item {
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
}

.nav-item:hover {
    color: #10b981;
    border-bottom-color: #10b981;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.toggle-bar {
    width: 30px;
    height: 3px;
    background: #10b981;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-toggle.open .toggle-bar:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.mobile-toggle.open .toggle-bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open .toggle-bar:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Welcome Hero */
.welcome-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 110px 0;
    text-align: center;
    color: white;
}

.hero-inner h2 {
    font-size: 3.8rem;
    margin-bottom: 30px;
}

.hero-tagline {
    font-size: 1.3rem;
    max-width: 850px;
    margin: 0 auto 45px;
    line-height: 1.9;
}

.hero-cta {
    display: inline-block;
    background: white;
    color: #10b981;
    padding: 18px 50px;
    font-size: 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    background: #f0fdf4;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-section {
    padding: 90px 0;
    background: #f9fafb;
}

.section-intro {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 65px;
}

.section-intro h2 {
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 20px;
}

.section-intro p {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.feature-box {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.feature-emoji {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.7rem;
    color: #10b981;
    margin-bottom: 15px;
}

.feature-box p {
    color: #6b7280;
    line-height: 1.7;
}

/* Game Display */
.game-display {
    padding: 90px 0;
    background: white;
}

.display-header {
    text-align: center;
    margin-bottom: 55px;
}

.display-header h2 {
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 20px;
}

.display-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 750px;
    margin: 0 auto;
}

.game-frame-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #f9fafb;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 3px solid #10b981;
}

.game-iframe {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}

.game-note {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 22px;
    background: #d1fae5;
    border-left: 5px solid #10b981;
    border-radius: 8px;
}

.game-note p {
    color: #065f46;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Benefits Section */
.benefits-section {
    padding: 90px 0;
    background: #f9fafb;
}

.benefits-heading {
    text-align: center;
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 65px;
}

.benefits-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-col {
    padding: 35px 30px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.benefit-col h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #10b981;
}

.benefit-col p {
    color: #6b7280;
    line-height: 1.7;
}

/* Notice Banner */
.notice-banner {
    padding: 70px 0;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.banner-card {
    max-width: 950px;
    margin: 0 auto;
    background: white;
    padding: 45px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    border: 3px solid #10b981;
}

.banner-card h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #059669;
    text-align: center;
}

.info-items p {
    padding: 18px;
    margin-bottom: 15px;
    background: #f0fdf4;
    border-left: 5px solid #10b981;
    border-radius: 8px;
    color: #065f46;
    font-size: 1.05rem;
}

.info-link {
    text-align: center;
    margin-top: 25px;
    color: #6b7280;
}

.info-link a {
    color: #10b981;
    text-decoration: none;
    font-weight: 700;
}

.info-link a:hover {
    text-decoration: underline;
}

/* Play Pages */
.play-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 85px 0 50px;
    text-align: center;
    color: white;
}

.play-header h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.play-intro-text {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.play-game {
    padding: 65px 0 90px;
    background: #f9fafb;
}

.play-instructions {
    max-width: 1200px;
    margin: 40px auto 0;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e5e7eb;
}

.play-instructions h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #10b981;
}

.instruction-list {
    list-style: none;
}

.instruction-list li {
    padding: 15px 0;
    color: #4b5563;
    font-size: 1.05rem;
    border-bottom: 1px solid #e5e7eb;
}

.instruction-list li:last-child {
    border-bottom: none;
}

.play-disclaimer {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 25px;
    background: #d1fae5;
    border-left: 5px solid #10b981;
    border-radius: 8px;
}

.play-disclaimer p {
    color: #065f46;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Legal Section */
.legal-section {
    padding: 90px 0;
    background: #f9fafb;
    min-height: 70vh;
}

.legal-section h2 {
    font-size: 3.2rem;
    margin-bottom: 50px;
    color: #10b981;
    text-align: center;
}

.legal-document {
    max-width: 950px;
    margin: 0 auto;
    background: white;
    padding: 55px 50px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #e5e7eb;
}

.legal-document h3 {
    font-size: 1.9rem;
    margin-top: 35px;
    margin-bottom: 18px;
    color: #059669;
}

.legal-document h4 {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #10b981;
}

.legal-document p {
    margin-bottom: 20px;
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-document ul {
    margin-left: 30px;
    margin-bottom: 20px;
    color: #4b5563;
}

.legal-document ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-document a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
}

.legal-document a:hover {
    text-decoration: underline;
}

.updated-date {
    font-style: italic;
    color: #9ca3af;
    margin-bottom: 35px;
}

.emphasis-box {
    background: #d1fae5;
    padding: 35px;
    border-left: 5px solid #10b981;
    border-radius: 10px;
    margin: 35px 0;
}

.emphasis-box h3 {
    color: #065f46;
    margin-top: 0;
}

.emphasis-box p {
    color: #047857;
}

.emphasis-box ul li {
    color: #047857;
}

/* Main Footer */
.main-footer {
    background: #1f2937;
    padding: 70px 0 35px;
    color: #d1d5db;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 45px;
    margin-bottom: 45px;
}

.footer-col h4 {
    font-size: 1.5rem;
    margin-bottom: 22px;
    color: #10b981;
}

.footer-col p {
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: #10b981;
}

.footer-credit {
    text-align: center;
    padding-top: 35px;
    border-top: 2px solid #374151;
    color: #9ca3af;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 75%;
        height: calc(100vh - 75px);
        background: white;
        flex-direction: column;
        padding: 35px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    }

    .site-nav.open {
        right: 0;
    }

    .nav-item {
        padding: 18px 0;
        font-size: 1.2rem;
        border-bottom: 2px solid #e5e7eb;
    }

    .hero-inner h2 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.15rem;
    }

    .game-iframe {
        height: 500px;
    }

    .legal-document {
        padding: 40px 25px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 25px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-inner h2 {
        font-size: 2rem;
    }

    .game-iframe {
        height: 400px;
    }

    .site-brand h1 {
        font-size: 1.7rem;
    }
}