@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ocean-blue: #0077BE;
    --deep-sea: #003D5C;
    --coral: #FF6B6B;
    --teal: #00CED1;
    --aqua: #7FDBFF;
    --sand: #F5DEB3;
    --white: #FFFFFF;
    --text-dark: #1A3A52;
    --text-light: #5B7C99;
    --card-shadow: rgba(0, 119, 190, 0.15);
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(to bottom, #E0F7FF 0%, #B8E6F5 50%, #90D5EC 100%);
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
}

/* Wave Animation Background */
body::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,10 600,50 T1200,50 L1200,120 L0,120 Z" fill="%23003D5C" fill-opacity="0.3"/></svg>') repeat-x;
    background-size: 1200px 120px;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--deep-sea) 100%);
    box-shadow: 0 4px 20px var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--white);
    font-size: 1.9rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.logo-emoji {
    font-size: 2.3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.7rem 1.3rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--white) 0%, #F0FBFF 100%);
    border-radius: 30px;
    padding: 3.5rem 3rem;
    text-align: center;
    box-shadow: 0 15px 50px var(--card-shadow);
    margin-bottom: 3rem;
    border: 3px solid var(--teal);
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '🐬';
    position: absolute;
    font-size: 15rem;
    opacity: 0.05;
    right: -3rem;
    bottom: -3rem;
    transform: rotate(-15deg);
}

.welcome-banner h1 {
    font-size: 3.2rem;
    color: var(--ocean-blue);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.welcome-banner p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Info Panel */
.info-panel {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE8E8 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    border-left: 6px solid var(--coral);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.15);
}

.info-panel h3 {
    color: var(--coral);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.info-panel ul {
    list-style: none;
    padding: 0;
}

.info-panel li {
    padding: 0.7rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.7;
}

.info-panel li::before {
    content: '🌊';
    position: absolute;
    left: 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px var(--card-shadow);
    transition: all 0.3s ease;
    border-top: 5px solid var(--teal);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--card-shadow);
}

.info-card h3 {
    color: var(--ocean-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* Game Wrapper */
.game-wrapper {
    background: var(--white);
    border-radius: 25px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 15px 50px var(--card-shadow);
    border: 3px solid var(--ocean-blue);
}

.game-wrapper h2 {
    color: var(--ocean-blue);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.game-wrapper p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.game-embed {
    width: 100%;
    max-width: 950px;
    height: 650px;
    border: none;
    border-radius: 15px;
    margin: 0 auto;
    display: block;
    background: linear-gradient(135deg, #E0F7FF 0%, #B8E6F5 100%);
    box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Text Content */
.text-content {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px var(--card-shadow);
    border-left: 5px solid var(--coral);
}

.text-content h2 {
    color: var(--ocean-blue);
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.text-content h3 {
    color: var(--deep-sea);
    font-size: 1.7rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.text-content p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

.text-content ul,
.text-content ol {
    margin-left: 2rem;
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

.text-content li {
    margin: 0.6rem 0;
    line-height: 1.8;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--deep-sea) 0%, #002233 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-group {
    margin-bottom: 2rem;
}

.footer-group h4 {
    color: var(--teal);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin: 0.6rem 0;
}

.footer-nav a {
    color: #B8E6F5;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-nav a:hover {
    color: var(--teal);
}

.footer-base {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(127, 219, 255, 0.2);
    color: #B8E6F5;
}

/* Age Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 61, 92, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-modal.active {
    display: flex;
}

.age-modal-box {
    background: linear-gradient(135deg, var(--white) 0%, #F0FBFF 100%);
    border: 4px solid var(--teal);
    border-radius: 25px;
    padding: 3rem;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 119, 190, 0.5);
}

.age-modal-box h2 {
    color: var(--ocean-blue);
    margin-bottom: 1.5rem;
    font-size: 2.3rem;
    font-weight: 700;
}

.age-modal-box p {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.age-btns {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.btn {
    padding: 1.1rem 2.8rem;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
}

.btn-confirm {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--deep-sea) 100%);
    color: var(--white);
}

.btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 119, 190, 0.4);
}

.btn-decline {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--coral);
}

.btn-decline:hover {
    background: #FFF5F5;
}

/* Responsive Design */
@media (max-width: 868px) {
    .menu-toggle {
        display: block;
    }

    .main-nav ul {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background: linear-gradient(180deg, var(--ocean-blue) 0%, var(--deep-sea) 100%);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px var(--card-shadow);
    }

    .main-nav ul.active {
        right: 0;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        display: block;
    }

    .welcome-banner h1 {
        font-size: 2.3rem;
    }

    .welcome-banner p {
        font-size: 1rem;
    }

    .welcome-banner {
        padding: 2.5rem 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .game-embed {
        height: 450px;
    }

    .age-modal-box {
        margin: 1.5rem;
        padding: 2.5rem 2rem;
    }

    .age-btns {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
