* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #0a1929 0%, #1a2f42 100%);
    color: #e3f2fd;
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a2f42 0%, #0d1b2a 100%);
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #00d4ff;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.modal-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #00d4ff;
}

.ice-crystal {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #00d4ff;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.modal-note {
    color: #90caf9;
    font-size: 0.95rem;
}

.modal-footer {
    padding: 0 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
    background: #00d4ff;
    color: #0a1929;
}

.btn-primary:hover {
    background: #33deff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: #455a64;
    color: white;
}

.btn-secondary:hover {
    background: #37474f;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: rgba(13, 27, 42, 0.98);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 2rem 0;
    border-right: 2px solid #00d4ff;
    box-shadow: 4px 0 20px rgba(0, 212, 255, 0.15);
    z-index: 100;
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.sidebar-menu {
    list-style: none;
    padding: 2rem 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 1.2rem 2rem;
    color: #90caf9;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-weight: 500;
    font-size: 1.05rem;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border-left-color: #00d4ff;
    padding-left: 2.5rem;
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: rgba(13, 27, 42, 0.95);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #00d4ff;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #00d4ff;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #00d4ff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    width: calc(100% - 280px);
}

.content-wrapper {
    padding: 3rem;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0 3rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.subtitle {
    font-size: 1.4rem;
    color: #90caf9;
    font-weight: 300;
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

/* Section Heading */
.section-heading {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* Notice Section */
.notice-section {
    margin-bottom: 3rem;
}

.notice-card {
    background: rgba(0, 212, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #00d4ff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

.notice-card h2 {
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 2rem;
    text-align: center;
}

.notice-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.notice-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateX(5px);
}

.notice-item h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Features */
.features {
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-box {
    background: rgba(26, 47, 66, 0.6);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-8px);
    border-color: #00d4ff;
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
    background: rgba(26, 47, 66, 0.8);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-box h3 {
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-box p {
    color: #e3f2fd;
    line-height: 1.8;
}

/* Game Section */
.game-section {
    margin-bottom: 3rem;
}

.game-description {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #90caf9;
    font-size: 1.15rem;
}

.game-container {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.game-container.full-size {
    padding: 0.5rem;
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
}

.game-info-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    background: rgba(0, 212, 255, 0.1);
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.02);
}

.info-item strong {
    color: #00d4ff;
    font-size: 1.05rem;
}

/* About */
.about {
    background: rgba(26, 47, 66, 0.4);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 4rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #e3f2fd;
}

/* Additional Features */
.additional-features {
    margin-bottom: 4rem;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.small-feature {
    background: rgba(0, 212, 255, 0.08);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.small-feature:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.small-feature h4 {
    color: #00d4ff;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.small-feature p {
    color: #e3f2fd;
    line-height: 1.7;
}

/* Play Page */
.play-info {
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: rgba(0, 212, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #00d4ff;
}

.info-card h3 {
    color: #00d4ff;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

/* Tips */
.tips {
    margin-top: 3rem;
    background: rgba(26, 47, 66, 0.4);
    padding: 2.5rem;
    border-radius: 12px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.tip-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 3px solid #00d4ff;
}

.tip-box strong {
    color: #00d4ff;
    display: block;
    margin-bottom: 0.5rem;
}

/* Legal Pages */
.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #00d4ff;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.legal-date {
    color: #90caf9;
    font-style: italic;
}

.legal-content {
    background: rgba(26, 47, 66, 0.3);
    padding: 2.5rem;
    border-radius: 12px;
}

.legal-content h2 {
    color: #00d4ff;
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.6rem;
}

.legal-content a {
    color: #00d4ff;
    text-decoration: underline;
}

.important-notice {
    background: rgba(0, 212, 255, 0.15);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #00d4ff;
    margin-bottom: 2rem;
}

.important-notice h2 {
    margin-top: 0;
}

/* Footer */
.footer {
    background: rgba(13, 27, 42, 0.95);
    padding: 3rem;
    border-top: 1px solid #00d4ff;
    width: 100%;
}

.footer-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #00d4ff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #33deff;
    text-decoration: underline;
}

.copyright {
    margin-top: 1rem;
    color: #90caf9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 70px;
    }

    .content-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .section-heading {
        font-size: 1.6rem;
    }

    .game-frame {
        height: 450px;
    }

    .content-wrapper {
        padding: 1.5rem;
    }

    .legal-content {
        padding: 1.5rem;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .modal-content {
        margin: 1rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .game-frame {
        height: 400px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .content-wrapper {
        padding: 1rem;
    }
}
