* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a4d68 0%, #088395 50%, #05bfdb 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-modal.show {
    display: flex;
}

.age-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.age-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.age-modal-content h2 {
    color: #0a4d68;
    margin-bottom: 20px;
    font-size: 28px;
}

.age-modal-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.age-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.age-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.age-yes {
    background: linear-gradient(135deg, #088395, #05bfdb);
    color: white;
}

.age-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(5, 191, 219, 0.4);
}

.age-no {
    background: #e0e0e0;
    color: #666;
}

.age-no:hover {
    background: #d0d0d0;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #0a4d68 0%, #05657a 100%);
    padding: 30px 0;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 0 30px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.close-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-menu li a {
    display: block;
    padding: 15px 30px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-weight: 500;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #05bfdb;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    background: #f5f9fa;
}

/* Header */
.header {
    display: none;
    background: linear-gradient(135deg, #0a4d68, #088395);
    padding: 15px 20px;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.logo-mobile {
    color: white;
    font-size: 22px;
    font-weight: 700;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a4d68 0%, #088395 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::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 1200 120"><path fill="%23ffffff" fill-opacity="0.05" d="M0,64L48,58.7C96,53,192,43,288,48C384,53,480,75,576,74.7C672,75,768,53,864,48C960,43,1056,53,1152,58.7L1200,64L1200,120L1152,120C1104,120,1008,120,912,120C816,120,720,120,624,120C528,120,432,120,336,120C240,120,144,120,48,120L0,120Z"></path></svg>') bottom repeat-x;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #05bfdb;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(5, 191, 219, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(5, 191, 219, 0.5);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Notices Section */
.notices {
    padding: 60px 20px;
    background: white;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.notice-card {
    background: linear-gradient(135deg, #f8fcfd 0%, #e8f6f9 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #05bfdb;
    transition: all 0.3s ease;
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(5, 191, 219, 0.2);
}

.notice-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.notice-card h3 {
    color: #0a4d68;
    margin-bottom: 15px;
    font-size: 22px;
}

.notice-card p {
    color: #666;
    line-height: 1.8;
}

/* About Section */
.about {
    padding: 60px 20px;
    background: #f5f9fa;
}

.about h2 {
    color: #0a4d68;
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 40px;
}

.about-content p {
    color: #555;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.feature-item h4 {
    color: #088395;
    margin-bottom: 10px;
    font-size: 20px;
}

.feature-item p {
    color: #666;
    font-size: 15px;
}

/* Game Section */
.game-section {
    padding: 60px 20px;
    background: white;
}

.game-section h2 {
    color: #0a4d68;
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
}

.game-intro {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
}

.game-note {
    max-width: 700px;
    margin: 30px auto 0;
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.game-note p {
    color: #856404;
    margin: 0;
}

/* Info Section */
.info-section {
    padding: 60px 20px;
    background: #f5f9fa;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-box {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
}

.info-box h3 {
    color: #0a4d68;
    margin-bottom: 15px;
    font-size: 24px;
}

.info-box p {
    color: #666;
    line-height: 1.8;
}

/* Play Page Styles */
.play-section {
    padding: 60px 20px;
    min-height: calc(100vh - 200px);
}

.play-section h1 {
    color: #0a4d68;
    font-size: 42px;
    margin-bottom: 15px;
    text-align: center;
}

.play-subtitle {
    text-align: center;
    color: #666;
    font-size: 20px;
    margin-bottom: 40px;
}

.game-info-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
}

.game-info-box h3 {
    color: #088395;
    margin-bottom: 20px;
}

.game-info-box ul {
    list-style: none;
    padding-left: 0;
}

.game-info-box ul li {
    padding: 10px 0;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.game-info-box ul li:last-child {
    border-bottom: none;
}

.play-reminder {
    margin-top: 20px;
    padding: 15px;
    background: #e8f6f9;
    border-radius: 8px;
    border-left: 4px solid #05bfdb;
}

.game-container-full {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.game-frame-full {
    width: 100%;
    height: 700px;
    border: none;
}

.play-footer-note {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.play-footer-note p {
    color: #666;
    margin: 0;
}

/* Legal Pages */
.legal-section {
    padding: 60px 20px;
    min-height: calc(100vh - 200px);
}

.legal-section h1 {
    color: #0a4d68;
    font-size: 42px;
    margin-bottom: 10px;
}

.legal-updated {
    color: #999;
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
}

.legal-content h2 {
    color: #088395;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 26px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 30px;
    color: #555;
}

.legal-content ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-footer-note {
    margin-top: 40px;
    padding: 25px;
    background: #e8f6f9;
    border-radius: 10px;
    border-left: 5px solid #05bfdb;
}

.legal-footer-note p {
    color: #0a4d68;
    font-weight: 600;
    margin-bottom: 10px;
}

.legal-footer-note ul {
    list-style: none;
    padding-left: 0;
}

.legal-footer-note ul li {
    color: #0a4d68;
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a4d68, #05657a);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #05bfdb;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #05bfdb;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .close-btn {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .header {
        display: flex;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .notice-grid,
    .features-grid,
    .info-boxes {
        grid-template-columns: 1fr;
    }

    .game-frame {
        height: 400px;
    }

    .game-frame-full {
        height: 500px;
    }

    .legal-content {
        padding: 25px;
    }

    .about h2,
    .game-section h2,
    .play-section h1,
    .legal-section h1 {
        font-size: 28px;
    }

    .age-modal-content {
        margin: 20px;
        padding: 30px 20px;
    }

    .age-modal-buttons {
        flex-direction: column;
    }

    .age-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .game-frame,
    .game-frame-full {
        height: 350px;
    }
}
