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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Age Verification Modal */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.age-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.age-modal-header {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    padding: 25px 30px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.age-modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.age-modal-body {
    padding: 30px;
    text-align: center;
}

.age-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.age-modal-body h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.age-modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.age-modal-buttons {
    padding: 0 30px 30px;
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.age-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.age-btn-yes {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.age-btn-yes:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.age-btn-no {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.age-btn-no:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* Notice Bar */
.notice-bar {
    background-color: #ffeb3b;
    border: 2px solid #d32f2f;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* Header */
.header {
    background-color: #2c3e50;
    color: white;
    position: fixed;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 24px;
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #3498db;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(142, 68, 173, 0.8)), 
                url('https://images.pexels.com/photos/956981/milky-way-starry-sky-night-sky-star-956981.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 102px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #ecf0f1;
}

.about h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
    text-align: justify;
}

/* Games Section */
.games {
    padding: 80px 0;
    background-color: white;
}

.games h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.game-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.game-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.game-card h3 {
    padding: 20px;
    font-size: 24px;
    color: #2c3e50;
    text-align: center;
}

.play-btn {
    display: block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    margin: 0 20px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.play-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #ecf0f1;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
}

/* Disclaimer Section */
.disclaimer {
    padding: 60px 0;
    background-color: #34495e;
    color: white;
}

.disclaimer h1 {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: #000;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* Game Page Styles */
.game-page {
    padding-top: 102px;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.game-container {
    padding: 40px 0;
}

.game-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.game-iframe {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.game-iframe iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.back-link {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.back-link:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
}

/* Legal Pages */
.legal-page {
    padding-top: 102px;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.legal-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-top: 40px;
    margin-bottom: 40px;
}

.legal-content h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c3e50;
    padding: 0 40px;
}

.legal-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    padding: 0 40px;
    text-align: justify;
}

/* Responsive Design */
@media (max-width: 768px) {
    .age-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .age-modal-buttons {
        flex-direction: column;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        margin-top: 140px;
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .disclaimer h1 {
        font-size: 18px;
    }
    
    .legal-content h1 {
        font-size: 28px;
    }
    
    .legal-content p {
        padding: 0 20px;
    }
    
    .contact-form {
        margin: 0 20px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .notice-bar {
        font-size: 12px;
        padding: 8px 15px;
    }
    
    .age-modal-header {
        padding: 20px;
    }
    
    .age-modal-header h2 {
        font-size: 20px;
    }
    
    .age-modal-body {
        padding: 20px;
    }
    
    .age-modal-body h3 {
        font-size: 18px;
    }
    
    .age-modal-buttons {
        padding: 0 20px 20px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .about h2,
    .games h2,
    .contact h2 {
        font-size: 28px;
    }
}