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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-logo {
    margin-bottom: 20px;
}

.modal-content h2 {
    color: #6C3FB5;
    margin-bottom: 15px;
    font-size: 28px;
}

.modal-content p {
    margin-bottom: 15px;
    color: #555;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.modal-buttons button {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-yes {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.btn-no {
    background: #e0e0e0;
    color: #555;
}

.btn-no:hover {
    background: #d0d0d0;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 30px;
    margin-bottom: 50px;
}

.logo span {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
}

.sidebar nav a {
    padding: 18px 30px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar nav a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-left-color: #667eea;
}

.sidebar nav a.active {
    background: rgba(102, 126, 234, 0.15);
    color: #6C3FB5;
    border-left-color: #6C3FB5;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    background: white;
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 48px;
    color: #6C3FB5;
    margin-bottom: 20px;
    font-weight: 700;
}

.tagline {
    font-size: 20px;
    color: #666;
    font-weight: 300;
}

/* Sections */
.intro-section,
.notices-section,
.game-section,
.features-section {
    margin-bottom: 40px;
}

.card,
.legal-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card h2,
.legal-card h2 {
    color: #6C3FB5;
    margin-bottom: 20px;
    font-size: 32px;
}

.card p,
.legal-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

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

.notice-card {
    padding: 40px;
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.notice-card:hover {
    transform: translateY(-5px);
}

.notice-card.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notice-card.violet {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.notice-card.indigo {
    background: linear-gradient(135deg, #5f72e4 0%, #6C3FB5 100%);
}

.notice-card svg {
    margin-bottom: 20px;
}

.notice-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.notice-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

/* Game Section */
.game-section h2 {
    text-align: center;
    color: white;
    font-size: 36px;
    margin-bottom: 30px;
}

.game-container {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.game-note {
    text-align: center;
    color: white;
    margin-top: 20px;
    font-size: 16px;
}

/* Features Grid */
.features-section h2 {
    text-align: center;
    color: white;
    font-size: 36px;
    margin-bottom: 30px;
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #6C3FB5;
    margin-bottom: 15px;
    font-size: 22px;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

/* Page Header */
.page-header {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-size: 42px;
    color: #6C3FB5;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: #666;
}

/* Play Page Styles */
.play-info {
    margin-bottom: 40px;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.info-card h2 {
    color: #6C3FB5;
    margin-bottom: 25px;
    font-size: 28px;
}

.tips-list {
    list-style: none;
    margin-bottom: 25px;
}

.tips-list li {
    padding: 12px 0;
    color: #555;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list strong {
    color: #6C3FB5;
}

.reminder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Legal Content */
.legal-content {
    margin-bottom: 40px;
}

.legal-card h2 {
    margin-top: 30px;
    font-size: 24px;
}

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

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    margin-top: 60px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #6C3FB5;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #764ba2;
}

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

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

    .menu-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-top: 80px;
    }

    .hero {
        padding: 30px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .tagline {
        font-size: 16px;
    }

    .card,
    .legal-card,
    .info-card {
        padding: 25px;
    }

    .notice-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .game-frame {
        height: 400px;
    }

    .page-header {
        padding: 30px 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons button {
        width: 100%;
    }
}
