/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Navigation Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #667eea;
}

.navbar {
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo {
    width: 200px; /* larger for better visibility in nav */
    height: auto; /* preserve SVG aspect ratio */
    max-height: 92px;
    filter: drop-shadow(0 6px 14px rgba(102, 126, 234, 0.32));
    transition: transform 0.22s ease, filter 0.22s ease;
    display: block;
}

.logo:hover,
.logo:focus {
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 6px 14px rgba(102, 126, 234, 0.35));
}

.nav-brand a {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
}

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

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    /* use a solid high-contrast color for readability over the hero image */
    color: #ffffff;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.55);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: 2px solid transparent;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.9);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #5a6c7d;
    font-size: 1.05rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    /* color: #ff; */
    /* background: linear-gradient(45deg, #667eea, #764ba2); */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(45deg, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #5a6c7d;
    line-height: 1.6;
}

/* Game Section */
.game-section, .play-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
}

.game-section h2, .play-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.game-section p {
    text-align: center;
    color: #5a6c7d;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(45deg, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: content-box, border-box;
    overflow: hidden; /* ensure rounded corners apply to iframe */
}

/* Responsive 16:9 iframe wrapper - max width is set on .game-container */
.iframe-responsive {
    position: relative;
    width: 100%;
    max-width: 900px; /* cap iframe width to 900px */
    margin-left: auto;
    margin-right: auto; /* center inside .game-container */
    padding-top: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625 -> 56.25%) */
}

.iframe-responsive .game-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    display: block;
}

/* For modern browsers that support aspect-ratio, keep it as a progressive enhancement */
.game-frame {
    aspect-ratio: 16 / 9;
}

.game-intro {
    text-align: center;
    margin-bottom: 3rem;
}

/* Disclaimer card shown before game sections */
.disclaimer-section {
    padding: 1.5rem 0;
    background: rgba(255,255,255,0.02);
}

.disclaimer-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(248,249,250,0.98));
    border-left: 6px solid #ffcc00;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    color: #222;
    font-size: 0.98rem;
    box-shadow: 0 8px 24px rgba(2,6,23,0.06);
}

.disclaimer-card strong {
    color: #b27f00;
    margin-right: 0.5rem;
}

.game-info {
    margin-top: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(102, 126, 234, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card p {
    color: #5a6c7d;
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.reviews h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.review-rating {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-card p {
    color: #5a6c7d;
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.6;
}

.review-author {
    color: #667eea;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-info p {
    color: #5a6c7d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    background: rgba(102, 126, 234, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.contact-method h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: #5a6c7d;
    margin: 0;
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.contact-form h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Legal Sections */
.legal-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.legal-content h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    font-size: 1.4rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: #5a6c7d;
    line-height: 1.7;
}

.legal-content ul {
    margin: 1rem 0 1.5rem 2rem;
    color: #5a6c7d;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    width: 200px; /* slightly larger in footer */
    height: auto;
    max-height: 88px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.98;
}

.footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-disclaimer {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.disclaimer-notice p {
    margin: 0;
    text-align: center;
    color: #ecf0f1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Age Verification Modal */

.age-modal {
    position: fixed;
    inset: 0; /* shorthand for top/right/bottom/left */
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    padding: 1.5rem;
    animation: modal-fade-in 180ms ease-out;
}

.age-modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 2.25rem;
    border-radius: 14px;
    text-align: center;
    width: 100%;
    max-width: 520px; /* slightly wider for clarity */
    margin: 0.5rem;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.45);
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(45deg, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: content-box, border-box;
    transform-origin: center;
    animation: modal-pop 220ms cubic-bezier(.2,.9,.2,1);
}

.age-modal h2 {
    color: #1f2d3d;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
    line-height: 1.2;
}

.age-modal p {
    color: #556776;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-size: 1rem;
}

/* Subtle animations */
@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-pop {
    0% { transform: translateY(6px) scale(0.98); opacity: 0.01; }
    60% { transform: translateY(-4px) scale(1.01); opacity: 1; }
    100% { transform: translateY(0) scale(1); }
}

.age-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.age-btn {
    padding: 0.85rem 1.6rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-width: 110px;
    box-shadow: 0 6px 18px rgba(102,126,234,0.12);
}

.age-btn-yes {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.age-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

/* Accessibility focus styles */
.age-btn:focus {
    outline: 3px solid rgba(102,126,234,0.22);
    outline-offset: 2px;
}

/* Responsive tweaks for small screens */
@media (max-width: 480px) {
    /* keep logos visible on small screens but not too small */
    .logo { width: 64px; max-height: 72px; }
    .footer-logo { width: 64px; max-height: 72px; }
    .age-modal-content { padding: 1.25rem; max-width: 420px; }
    .age-buttons { gap: 0.5rem; flex-direction: column; }
}

.age-btn-no:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .game-frame {
        height: 400px;
    }
    
    .age-modal-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .age-buttons {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 3rem 1rem;
    }
    
    .contact-form-container,
    .legal-content {
        padding: 2rem;
    }
    
    .features,
    .about,
    .game-section,
    .reviews,
    .contact-section,
    .legal-section {
        padding: 3rem 1rem;
    }
}