* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ocean-blue: #0077be;
    --deep-teal: #008b8b;
    --navy: #001f3f;
    --aqua: #00d4ff;
    --light-blue: #e6f7ff;
    --gold: #d4af37;
    --silver: #c0c0c0;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    color: var(--text-dark);
    line-height: 1.7;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--deep-teal) 100%);
    color: var(--white);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    padding: 30px 0;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 0 30px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    text-align: center;
}

.brand-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--aqua);
    letter-spacing: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: var(--ocean-blue);
    box-shadow: 0 4px 10px rgba(0, 119, 190, 0.4);
}

.link-icon {
    font-size: 20px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    background: var(--navy);
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--aqua);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    width: calc(100% - 280px);
}

.section-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Age Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    background: var(--white);
    max-width: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--ocean-blue), var(--deep-teal));
    padding: 30px;
    text-align: center;
    color: var(--white);
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
}

.modal-body {
    padding: 40px;
    text-align: center;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--navy);
}

.modal-body > p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.modal-disclaimer {
    background: var(--off-white);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.modal-disclaimer p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-confirm,
.btn-deny {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm {
    background: linear-gradient(135deg, var(--ocean-blue), var(--deep-teal));
    color: var(--white);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 190, 0.4);
}

.btn-deny {
    background: var(--silver);
    color: var(--text-dark);
}

.btn-deny:hover {
    background: #a0a0a0;
}

/* Hero Banner */
.hero-banner {
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.9), rgba(0, 139, 139, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23001f3f" width="1200" height="400"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(0, 31, 63, 0.6) 100%);
}

.hero-text {
    position: relative;
    z-index: 1;
    padding: 0 30px;
}

.hero-heading {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subheading {
    font-size: 22px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

/* Content Sections */
.content-section {
    padding: 70px 0;
}

.welcome-card {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 25px;
}

.section-title.centered {
    text-align: center;
}

.elegant-text {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Info Section */
.info-section {
    padding: 70px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 119, 190, 0.05));
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--ocean-blue);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.card-blue {
    border-top-color: var(--ocean-blue);
}

.card-teal {
    border-top-color: var(--deep-teal);
}

.card-navy {
    border-top-color: var(--navy);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.card-text {
    line-height: 1.8;
    color: var(--text-muted);
}

/* Game Showcase */
.game-showcase {
    padding: 70px 0;
}

.showcase-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 10px;
}

.showcase-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
}

.game-frame-container {
    background: var(--navy);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.game-frame {
    width: 100%;
    height: 650px;
    border-radius: 10px;
    border: none;
}

.game-note {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-muted);
}

/* Excellence Section */
.excellence-section {
    padding: 70px 0;
    background: linear-gradient(180deg, rgba(0, 139, 139, 0.05), transparent);
}

.excellence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.excellence-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.excellence-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.excellence-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--deep-teal));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.excellence-item h5 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.excellence-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Commitment Section */
.commitment-section {
    padding: 70px 0;
}

.commitment-card {
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.1), rgba(0, 139, 139, 0.1));
    padding: 50px;
    border-radius: 20px;
    border-left: 5px solid var(--gold);
}

.commitment-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.commitment-card p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Play Page */
.play-header {
    padding: 60px 0 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 119, 190, 0.1), transparent);
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.play-game-section {
    padding: 50px 0;
}

.play-game-container {
    background: var(--navy);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
}

.play-game-frame {
    width: 100%;
    height: 750px;
    border-radius: 10px;
    border: none;
}

.play-instructions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.play-instructions {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.play-instructions h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 25px;
}

.instruction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.instruction-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--off-white);
    border-radius: 10px;
}

.inst-num {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--deep-teal));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.inst-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.inst-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.play-info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.play-info-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.play-info-box p {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mobile-tip {
    color: var(--ocean-blue) !important;
    font-weight: 600;
}

.play-reminder-box {
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.1), rgba(0, 139, 139, 0.1));
    padding: 30px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.reminder-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.reminder-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.reminder-content p {
    line-height: 1.8;
    color: var(--text-dark);
}

/* Legal Pages */
.legal-section {
    padding: 60px 0;
}

.legal-document {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

.legal-document h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 10px;
}

.doc-date {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-document h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--ocean-blue);
    margin-top: 35px;
    margin-bottom: 15px;
}

.legal-document h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--deep-teal);
    margin-top: 25px;
    margin-bottom: 12px;
}

.legal-document h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-document p {
    line-height: 1.9;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.legal-document ul {
    margin-left: 30px;
    margin-bottom: 18px;
}

.legal-document li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.important-notice {
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.15), rgba(0, 139, 139, 0.15));
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--gold);
    margin-bottom: 35px;
}

.important-notice h2 {
    margin-top: 0;
}

.summary-box {
    background: var(--off-white);
    padding: 30px;
    border-radius: 15px;
    margin-top: 35px;
    border: 2px solid var(--ocean-blue);
}

.summary-box h3 {
    margin-top: 0;
}

.summary-box p {
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--aqua);
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--aqua);
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--aqua);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
        position: fixed;
        height: 100vh;
        z-index: 1500;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .section-wrapper {
        padding: 0 20px;
    }

    .hero-banner {
        height: 300px;
    }

    .hero-heading {
        font-size: 36px;
    }

    .hero-subheading {
        font-size: 18px;
    }

    .welcome-card {
        padding: 30px 25px;
    }

    .section-title {
        font-size: 30px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .game-frame {
        height: 450px;
    }

    .play-game-frame {
        height: 500px;
    }

    .excellence-grid {
        grid-template-columns: 1fr;
    }

    .instruction-cards {
        grid-template-columns: 1fr;
    }

    .legal-document {
        padding: 35px 25px;
    }

    .legal-document h1 {
        font-size: 32px;
    }

    .modal-container {
        margin: 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
