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

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

:root {
    --ocean-deep: #0a1628;
    --ocean-mid: #1a3a5c;
    --ocean-light: #2d5a87;
    --coral-main: #ff6b6b;
    --coral-light: #ffa8a8;
    --sand: #ffd89b;
    --foam: #e8f4f8;
    --text-light: #ffffff;
    --text-dim: #a8c5d8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--ocean-deep);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.top-bar {
    background: linear-gradient(90deg, var(--ocean-mid), var(--ocean-deep));
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.top-bar-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--coral-main);
    letter-spacing: 0.5px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--coral-main);
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.3s ease;
}

.hamburger.open .hamburger-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger.open .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

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

.nav-menu a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    color: var(--text-light);
    background: rgba(255, 107, 107, 0.2);
}

.wave-hero {
    padding: 10rem 2rem 5rem;
    background: linear-gradient(180deg, var(--ocean-mid) 0%, var(--ocean-deep) 100%);
    position: relative;
    text-align: center;
}

.wave-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%230a1628' d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25'/%3E%3Cpath fill='%230a1628' d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5'/%3E%3Cpath fill='%230a1628' d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z'/%3E%3C/svg%3E");
    background-size: cover;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--foam);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 2rem;
}

.tag-row {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid var(--coral-main);
    color: var(--coral-light);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
}

.game-area {
    padding: 4rem 2rem;
    background: var(--ocean-deep);
}

.game-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--sand);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.game-container {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-light));
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.game-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 14px;
    display: block;
}

.info-cards {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
}

.cards-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.info-card {
    background: rgba(26, 58, 92, 0.6);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.2);
}

.info-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--coral-main);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.info-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.about-block {
    padding: 4rem 2rem;
    background: var(--ocean-mid);
}

.about-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.about-inner h2 {
    font-size: 1.8rem;
    color: var(--sand);
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-inner p {
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.highlight-box {
    background: rgba(255, 216, 155, 0.1);
    border-left: 4px solid var(--sand);
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.highlight-box h3 {
    color: var(--sand);
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.highlight-box p {
    color: var(--foam);
    margin: 0;
}

.page-content {
    padding: 7rem 2rem 4rem;
    min-height: 80vh;
}

.page-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.page-wrap h1 {
    font-size: 2.2rem;
    color: var(--sand);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--coral-main);
    padding-bottom: 0.8rem;
}

.page-wrap h2 {
    font-size: 1.4rem;
    color: var(--coral-light);
    margin: 1.8rem 0 1rem;
}

.page-wrap p {
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.page-wrap ul {
    list-style: none;
    padding-left: 1.2rem;
    margin-bottom: 1.2rem;
}

.page-wrap ul li {
    color: var(--text-dim);
    margin-bottom: 0.4rem;
    position: relative;
}

.page-wrap ul li::before {
    content: '●';
    color: var(--coral-main);
    position: absolute;
    left: -1.2rem;
    font-size: 0.7rem;
}

.bottom-bar {
    background: var(--ocean-deep);
    border-top: 1px solid rgba(255, 107, 107, 0.3);
    padding: 2.5rem 2rem;
    text-align: center;
}

.bottom-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

.safety-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.safety-links a:hover {
    color: var(--coral-main);
}

.copyright {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.age-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
}

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

.age-box {
    background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-light));
    border: 2px solid var(--coral-main);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.age-box .age-symbol {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
}

.age-box h2 {
    color: var(--foam);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.age-box p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

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

.age-actions button {
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn-confirm {
    background: linear-gradient(90deg, var(--coral-main), var(--coral-light));
    color: var(--ocean-deep);
}

.btn-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-exit {
    background: transparent;
    border: 2px solid var(--text-dim);
    color: var(--text-dim);
}

.btn-exit:hover {
    border-color: var(--coral-main);
    color: var(--coral-main);
}

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 260px;
        height: 100vh;
        background: var(--ocean-deep);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        border-right: 1px solid var(--coral-main);
    }

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

    .nav-menu a {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .wave-hero {
        padding: 7rem 1.5rem 4rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

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

    .game-container iframe {
        height: 420px;
    }

    .game-title {
        font-size: 1.4rem;
    }

    .tag {
        padding: 0.5rem 0.9rem;
        font-size: 0.75rem;
    }

    .safety-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .age-box {
        padding: 1.8rem 1.2rem;
    }

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

    .age-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 0.6rem 1rem;
    }

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

    .wave-hero h1 {
        font-size: 1.6rem;
    }

    .page-wrap h1 {
        font-size: 1.6rem;
    }
}
