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

body {
    font-family: 'Open Sans', sans-serif;
    background: #1a1a2e;
    color: #eee;
    line-height: 1.7;
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #16213e 0%, #0f3460 100%);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #FF6B6B;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo svg {
    width: 200px;
    height: auto;
    display: block;
    max-height: 55px;
}

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

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-link:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    border-left-color: #FF6B6B;
}

.nav-link.active {
    background: rgba(255, 107, 107, 0.2);
    color: #FF6B6B;
    border-left-color: #FF6B6B;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-notice {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.sidebar-notice p {
    margin: 0.5rem 0;
    color: #aaa;
}

.top-header {
    width: 100%;
    background: rgba(22, 33, 62, 0.95);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 2px solid #FF6B6B;
    display: none;
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #FF6B6B;
    transition: all 0.3s;
    border-radius: 2px;
}

.page-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FF6B6B;
    margin: 0;
}

.content-area {
    margin-left: 250px;
    flex: 1;
    padding: 2rem;
    max-width: calc(100% - 250px);
    display: flex;
    flex-direction: column;
}

.intro-banner {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.banner-content h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.warnings-section {
    margin: 3rem 0;
}

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

.warning-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.warning-card:hover {
    transform: translateY(-5px);
    border-color: #FF6B6B;
}

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

.warning-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    color: #FF6B6B;
    margin-bottom: 1rem;
}

.game-showcase {
    margin: 3rem 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.showcase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.showcase-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    color: #FF6B6B;
    margin-bottom: 1rem;
}

.game-wrapper {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid #FF6B6B;
}

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

.benefits-section {
    margin: 3rem 0;
}

.benefits-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    color: #FF6B6B;
    text-align: center;
    margin-bottom: 2.5rem;
}

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

.benefit-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #FF6B6B;
}

.benefit-box h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    color: #FF6B6B;
    margin-bottom: 1rem;
}

.info-panel {
    margin: 3rem 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.info-panel h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    color: #FF6B6B;
    margin-bottom: 1.5rem;
}

.panel-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.play-page-content {
    max-width: 1000px;
    margin: 0 auto;
}

.play-intro {
    text-align: center;
    margin-bottom: 3rem;
    background: rgba(255, 107, 107, 0.1);
    padding: 2rem;
    border-radius: 12px;
}

.play-intro h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    color: #FF6B6B;
    margin-bottom: 1rem;
}

.controls-guide {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.controls-guide h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    color: #FF6B6B;
    margin-bottom: 1.5rem;
}

.guide-items {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guide-item {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid #FF6B6B;
}

.browser-info {
    background: rgba(255, 107, 107, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #FF6B6B;
}

.game-container-full {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid #FF6B6B;
}

.game-container-full iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.legal-content h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    color: #FF6B6B;
    margin-bottom: 0.5rem;
}

.update-date {
    opacity: 0.7;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-article {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-article:last-child {
    border-bottom: none;
}

.legal-article h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    color: #FF6B6B;
    margin-bottom: 1rem;
}

.legal-article p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.main-footer {
    margin-left: 250px;
    width: calc(100% - 250px);
    background: rgba(15, 52, 96, 0.8);
    padding: 2.5rem 2rem;
    border-top: 2px solid #FF6B6B;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-resources {
    margin-bottom: 1.5rem;
}

.footer-resources h4 {
    font-family: 'Rajdhani', sans-serif;
    color: #FF6B6B;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.resource-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.resource-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.resource-links a:hover {
    color: #FF6B6B;
}

.copyright {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.age-modal.active {
    display: flex;
}

.age-modal-content {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    padding: 3rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.5);
    border: 2px solid #FF6B6B;
}

.age-modal-content h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    color: #FF6B6B;
    margin-bottom: 1.5rem;
}

.age-modal-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-confirm, .btn-deny {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
}

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

.btn-confirm:hover {
    background: #ff5252;
    transform: scale(1.05);
}

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

.btn-deny:hover {
    background: #333;
    transform: scale(1.05);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
}

.sidebar-backdrop.active {
    display: block;
}

@media (max-width: 768px) {
    .page-wrapper {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 2000;
    }

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

    .top-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .content-area {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
        padding: 1rem;
    }

    .main-footer {
        width: 100%;
        margin-left: 0;
    }

    .banner-content h2 {
        font-size: 1.8rem;
    }

    .warning-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 1.5rem;
    }

    .game-wrapper, .game-container-full {
        aspect-ratio: 16/9;
    }
}
