@import url('https://fonts.googleapis.com/css2?family=Seaweed+Script&family=Source+Code+Pro:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Code Pro', monospace;
    background: linear-gradient(180deg, #001122 0%, #003366 50%, #001122 100%);
    color: #e6f3ff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 150, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 200, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(0, 100, 200, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Animated wave background */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(90deg, 
        rgba(0, 150, 255, 0.1) 0%, 
        rgba(0, 200, 255, 0.2) 25%, 
        rgba(0, 150, 255, 0.1) 50%, 
        rgba(0, 200, 255, 0.2) 75%, 
        rgba(0, 150, 255, 0.1) 100%);
    animation: wave 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes wave {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #001a33 0%, #002244 50%, #001a33 100%);
    border-bottom: 3px solid #00aaff;
    box-shadow: 0 4px 25px rgba(0, 170, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Seaweed Script', cursive;
    font-size: 3rem;
    color: #00ccff;
    text-shadow: 0 0 25px rgba(0, 204, 255, 0.6);
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
}

.logo::after {
    content: '⚓';
    position: absolute;
    right: -30px;
    top: -5px;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo:hover {
    text-shadow: 0 0 35px rgba(0, 204, 255, 0.9);
    transform: scale(1.08);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 28px;
    height: 3px;
    background: #00ccff;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

.hamburger.active:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 7px);
}

.hamburger.active:nth-child(2) {
    opacity: 0;
}

.hamburger.active:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -7px);
}

.nav {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav a {
    color: #e6f3ff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #00aaff, #00ccff);
    border-radius: 8px;
    transition: width 0.4s ease;
    z-index: -1;
}

.nav a:hover::before {
    width: 100%;
}

.nav a:hover {
    color: #001122;
    text-shadow: 0 0 15px rgba(0, 204, 255, 0.8);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.15) 0%, rgba(0, 200, 255, 0.15) 100%);
    border-radius: 25px;
    margin-bottom: 4rem;
    border: 2px solid rgba(0, 170, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 204, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-family: 'Seaweed Script', cursive;
    font-size: 4rem;
    color: #00ccff;
    text-shadow: 0 0 40px rgba(0, 204, 255, 0.8);
    margin-bottom: 1.5rem;
    animation: pulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { 
        text-shadow: 0 0 40px rgba(0, 204, 255, 0.8);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 60px rgba(0, 204, 255, 1), 0 0 80px rgba(0, 204, 255, 0.6);
        transform: scale(1.02);
    }
}

.hero p {
    font-size: 1.3rem;
    color: #b3d9ff;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Game Container */
.game-container {
    background: linear-gradient(135deg, #001a33 0%, #002244 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    border: 3px solid #00aaff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00aaff, #00ccff, #00aaff);
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.game-container h2 {
    color: #00ccff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    text-shadow: 0 0 20px rgba(0, 204, 255, 0.6);
}

.game-frame {
    width: 100%;
    height: 650px;
    border: none;
    border-radius: 15px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Notices */
.notices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.notice {
    background: linear-gradient(135deg, #001a33 0%, #002244 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 6px solid #00aaff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.05) 0%, rgba(0, 204, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.notice:hover::before {
    opacity: 1;
}

.notice:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 170, 255, 0.2);
}

.notice h3 {
    color: #00ccff;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.notice p {
    color: #d9ecff;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #000811 0%, #001122 100%);
    border-top: 3px solid #00aaff;
    padding: 3rem 0;
    margin-top: 5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00aaff 50%, transparent 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #b3d9ff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.footer-links a:hover {
    color: #00ccff;
    background: rgba(0, 170, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.6);
}

.footer p {
    color: #8099b3;
    font-size: 0.95rem;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 17, 34, 0.95);
    backdrop-filter: blur(15px);
}

.age-modal-content {
    background: linear-gradient(135deg, #001a33 0%, #002244 100%);
    margin: 15% auto;
    padding: 4rem;
    border: 3px solid #00aaff;
    border-radius: 25px;
    width: 90%;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.age-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 204, 255, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

.age-modal h2 {
    color: #00ccff;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    text-shadow: 0 0 25px rgba(0, 204, 255, 0.6);
    position: relative;
    z-index: 1;
}

.age-modal p {
    color: #e6f3ff;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.age-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.age-btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    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 ease;
}

.age-btn:hover::before {
    left: 100%;
}

.age-btn.yes {
    background: linear-gradient(135deg, #00aaff, #00ccff);
    color: #001122;
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.4);
}

.age-btn.yes:hover {
    background: linear-gradient(135deg, #00ccff, #00aaff);
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0, 170, 255, 0.6);
}

.age-btn.no {
    background: linear-gradient(135deg, #666, #888);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.age-btn.no:hover {
    background: linear-gradient(135deg, #888, #666);
    transform: scale(1.08);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #001a33 0%, #002244 100%);
        flex-direction: column;
        padding: 1.5rem;
        border-top: 3px solid #00aaff;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav li {
        margin: 0.8rem 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .game-frame {
        height: 450px;
    }
    
    .notices {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .age-modal-content {
        margin: 20% auto;
        padding: 2.5rem;
    }
    
    .age-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .game-frame {
        height: 350px;
    }
}