@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

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

:root {
    --deep-ocean: #0c1929;
    --ocean-mid: #132d46;
    --teal-accent: #01c8a4;
    --coral-accent: #ff6b6b;
    --wave-blue: #2196f3;
    --foam-white: #e8f4f8;
    --sand-gold: #ffc857;
    --text-primary: #ffffff;
    --text-secondary: #a8c6d8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(180deg, var(--deep-ocean) 0%, var(--ocean-mid) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.8;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23132d46' fill-opacity='0.3' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

a {
    color: var(--teal-accent);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--sand-gold);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(12, 25, 41, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(1, 200, 164, 0.15);
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
}

.brand-name {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--foam-white);
    letter-spacing: 1px;
}

.brand-name span {
    color: var(--teal-accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--teal-accent);
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--teal-accent);
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

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

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

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.current {
    background: linear-gradient(135deg, var(--teal-accent), var(--wave-blue));
    color: var(--deep-ocean);
}

/* Main Content */
main {
    padding-top: 90px;
}

.welcome-banner {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(1, 200, 164, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%);
    border-bottom: 1px solid rgba(1, 200, 164, 0.2);
}

.welcome-banner h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--foam-white), var(--teal-accent), var(--wave-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-banner .intro-text {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Feature Cards */
.features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(19, 45, 70, 0.8), rgba(12, 25, 41, 0.9));
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(1, 200, 164, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(1, 200, 164, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--teal-accent);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Game Area */
.game-area {
    padding: 4rem 2rem;
    background: radial-gradient(ellipse at center, rgba(33, 150, 243, 0.15) 0%, transparent 60%);
}

.game-panel {
    max-width: 1300px;
    margin: 0 auto;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h2 {
    font-size: 2.2rem;
    color: var(--sand-gold);
}

.game-frame-container {
    position: relative;
    width: 100%;
    padding-bottom: 52%;
    border-radius: 24px;
    overflow: hidden;
    background: var(--deep-ocean);
    border: 3px solid var(--teal-accent);
    box-shadow: 0 0 80px rgba(1, 200, 164, 0.25);
}

.game-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.info-tile {
    background: rgba(19, 45, 70, 0.6);
    padding: 2rem;
    border-radius: 16px;
    border-left: 5px solid var(--wave-blue);
}

.info-tile h3 {
    color: var(--wave-blue);
    margin-bottom: 1rem;
}

.info-tile p {
    color: var(--text-secondary);
}

/* Page Content */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-content h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--teal-accent);
}

.page-content h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    color: var(--sand-gold);
}

.page-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.page-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.page-content li {
    margin-bottom: 0.6rem;
}

/* Play Page Note */
.controls-info {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(255, 200, 87, 0.1);
    border: 1px solid var(--sand-gold);
    border-radius: 16px;
    text-align: center;
}

.controls-info h3 {
    color: var(--sand-gold);
    margin-bottom: 0.8rem;
}

.controls-info p {
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    background: rgba(12, 25, 41, 0.95);
    border-top: 1px solid rgba(1, 200, 164, 0.2);
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    color: var(--coral-accent);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.help-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.help-links a {
    padding: 0.6rem 1.5rem;
    background: rgba(1, 200, 164, 0.15);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.help-links a:hover {
    background: var(--teal-accent);
    color: var(--deep-ocean);
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Age Gate */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(12, 25, 41, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
}

.age-gate.dismissed {
    display: none;
}

.age-gate-box {
    background: linear-gradient(145deg, var(--ocean-mid), var(--deep-ocean));
    border: 2px solid var(--teal-accent);
    border-radius: 24px;
    padding: 3rem;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 0 100px rgba(1, 200, 164, 0.3);
}

.age-gate-box h2 {
    color: var(--teal-accent);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.age-gate-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.age-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-confirm, .age-deny {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-confirm {
    background: linear-gradient(135deg, var(--teal-accent), var(--wave-blue));
    color: var(--deep-ocean);
}

.age-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(1, 200, 164, 0.5);
}

.age-deny {
    background: transparent;
    border: 2px solid var(--coral-accent);
    color: var(--coral-accent);
}

.age-deny:hover {
    background: var(--coral-accent);
    color: var(--deep-ocean);
}

.denied-msg {
    display: none;
    margin-top: 1.5rem;
    color: var(--coral-accent);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .features-row {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 280px;
        height: 100vh;
        background: var(--deep-ocean);
        padding: 80px 1.5rem 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(1, 200, 164, 0.3);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu a {
        display: block;
        text-align: center;
    }

    .header-inner {
        padding: 0.8rem 1rem;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .welcome-banner {
        padding: 3rem 1rem;
    }

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

    .help-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1rem;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .page-content h1 {
        font-size: 2rem;
    }
}
