@import url('https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400&family=Quicksand:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 25%, #0369a1 50%, #0284c7 75%, #0ea5e9 100%);
    color: #e0f2fe;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated background bubbles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: bubbleFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(-10px) rotate(-1deg); }
}

/* Header Styles */
.header {
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1000;
    border-bottom: 3px solid #fbbf24;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,15 Q25,5 50,15 T100,15" stroke="rgba(251,191,36,0.4)" stroke-width="2" fill="none"/></svg>') repeat-x;
    animation: waveMotion 3s ease-in-out infinite;
}

@keyframes waveMotion {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(10px); }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: #fbbf24;
    text-shadow: 3px 3px 0px #1e40af, 6px 6px 0px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.logo::after {
    content: '🦞';
    position: absolute;
    right: -40px;
    top: -5px;
    font-size: 1.5rem;
    animation: lobsterDance 2s ease-in-out infinite;
}

@keyframes lobsterDance {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 4px 4px 0px #1e40af, 8px 8px 0px rgba(0,0,0,0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fbbf24;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #e0f2fe;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251,191,36,0.3), transparent);
    transition: left 0.5s;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    color: #fbbf24;
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251,191,36,0.3);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .logo::after {
        right: -30px;
        font-size: 1.2rem;
    }
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-section {
    text-align: center;
    padding: 3rem 0;
    background: radial-gradient(ellipse at center, rgba(251,191,36,0.1) 0%, transparent 70%);
    border-radius: 20px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '🐠🦐🦀';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 4rem;
    opacity: 0.2;
    animation: seaLife 8s ease-in-out infinite;
}

@keyframes seaLife {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-20px) rotate(2deg); }
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0px #1e40af, 8px 8px 0px rgba(0,0,0,0.3);
    animation: titleWave 2s ease-in-out infinite alternate;
}

@keyframes titleWave {
    from { text-shadow: 4px 4px 0px #1e40af, 8px 8px 0px rgba(0,0,0,0.3); }
    to { text-shadow: 4px 4px 0px #1e40af, 8px 8px 0px rgba(0,0,0,0.3), 0 0 20px #fbbf24; }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #e0f2fe;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.notice-banner {
    background: linear-gradient(45deg, #1e40af, #3b82f6);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 3px solid #fbbf24;
    box-shadow: 0 0 20px rgba(251,191,36,0.3);
    position: relative;
    overflow: hidden;
}

.notice-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251,191,36,0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.notice-banner h3 {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.notice-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.notice-list li {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #fbbf24;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.notice-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251,191,36,0.2);
}

/* Game Container */
.game-container {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    border: 3px solid #fbbf24;
    box-shadow: 0 0 30px rgba(251,191,36,0.2);
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251,191,36,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.game-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 600px;
    border: 2px solid #1e40af;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #0c4a6e 0%, #075985 50%, #0c4a6e 100%);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid #fbbf24;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer h3 {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #e0f2fe;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fbbf24;
    border-color: #fbbf24;
    background: rgba(251,191,36,0.1);
}

.footer p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.age-modal-content {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    margin: 15% auto;
    padding: 2rem;
    border: 3px solid #fbbf24;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 50px rgba(251,191,36,0.5);
    animation: modalAppear 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.age-modal-content::before {
    content: '🦞';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 3rem;
    opacity: 0.3;
    animation: lobsterFloat 3s ease-in-out infinite;
}

@keyframes lobsterFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.8) translateY(-50px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.age-modal h2 {
    color: #fbbf24;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Fredoka One', cursive;
}

.age-modal p {
    color: #e0f2fe;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.age-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.age-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.age-btn:hover::before {
    left: 100%;
}

.age-btn.yes {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
}

.age-btn.no {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
}

.age-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .notice-list {
        grid-template-columns: 1fr;
    }
    
    .game-frame {
        height: 400px;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .age-modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
    
    .age-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .logo::after {
        right: -25px;
        font-size: 1rem;
    }
    
    .game-frame {
        height: 300px;
    }
}