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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f0f4f8;
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0e7490 0%, #06b6d4 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
    color: white;
}

.link-icon {
    font-size: 1.3rem;
}

.link-text {
    font-weight: 500;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-btn span {
    width: 24px;
    height: 3px;
    background: #06b6d4;
    transition: 0.3s;
}

.top-bar-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #0e7490;
}

.content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Age Modal */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.age-modal.hidden {
    display: none;
}

.age-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.age-modal-header {
    background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%);
    padding: 2rem;
    text-align: center;
}

.age-modal-header h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

.age-modal-body {
    padding: 2rem;
    text-align: center;
}

.age-modal-body p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.age-disclaimer {
    font-size: 0.95rem !important;
    color: #666 !important;
}

.age-modal-footer {
    padding: 0 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-confirm,
.btn-deny {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Roboto', sans-serif;
}

.btn-confirm {
    background: #06b6d4;
    color: white;
}

.btn-confirm:hover {
    background: #0e7490;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.btn-deny {
    background: #ef4444;
    color: white;
}

.btn-deny:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.welcome-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.info-pills {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Sections */
.about-section,
.notices-section,
.game-showcase,
.benefits-section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 2rem;
    color: #0e7490;
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.feature-box h3 {
    color: #0e7490;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: #666;
    line-height: 1.8;
}

/* Notice Boxes */
.notice-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.notice-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notice-red {
    border-left-color: #ef4444;
}

.notice-blue {
    border-left-color: #3b82f6;
}

.notice-orange {
    border-left-color: #f59e0b;
}

.notice-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.notice-box h3 {
    color: #0e7490;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.notice-box p {
    color: #666;
    line-height: 1.8;
}

/* Game Showcase */
.game-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
}

.game-help {
    text-align: center;
    color: #666;
    font-size: 1rem;
}

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

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.benefit-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(6, 182, 212, 0.3);
    display: block;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    color: #0e7490;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.8;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

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

/* Play Page */
.play-instructions {
    margin-bottom: 2rem;
}

.instruction-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.instruction-card h3 {
    color: #0e7490;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.instruction-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.instruction-list li {
    padding: 0.7rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.instruction-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #06b6d4;
    font-weight: bold;
}

.instruction-note {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #06b6d4;
    color: #0e7490;
}

.game-play-area {
    margin-bottom: 2rem;
}

.game-container-play {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-iframe-play {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 8px;
}

.play-tips h2 {
    margin-bottom: 2rem;
}

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

.tip-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tip-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.tip-item h4 {
    color: #0e7490;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.tip-item p {
    color: #666;
    line-height: 1.8;
}

/* Legal Content */
.legal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: #0e7490;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.legal-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-footer {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.legal-footer p {
    color: #0e7490;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.disclaimer-alert {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.disclaimer-alert h2 {
    color: white;
    margin-bottom: 1rem;
}

.disclaimer-alert p {
    color: white;
    opacity: 0.95;
}

/* Footer */
.site-footer {
    background: #0e7490;
    color: white;
    padding: 2rem;
    margin-top: auto;
}

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

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-col p {
    opacity: 0.9;
    line-height: 1.8;
}

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

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

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-btn {
        display: flex;
    }

    .content {
        padding: 1rem;
    }

    .welcome-banner h1 {
        font-size: 1.8rem;
    }

    .welcome-text {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .feature-boxes,
    .notice-boxes,
    .benefits-grid,
    .tips-container {
        grid-template-columns: 1fr;
    }

    .game-iframe {
        height: 400px;
    }

    .game-iframe-play {
        height: 500px;
    }

    .age-modal-footer {
        flex-direction: column;
    }
}
