* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6B46C1;
    --secondary: #9333EA;
    --accent: #C084FC;
    --dark: #1F1B2E;
    --darker: #0F0B1A;
    --light: #F3F4F6;
    --text: #E5E7EB;
    --text-dark: #9CA3AF;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(31, 27, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.logo img {
    width: 40px;
    height: 40px;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: rgba(107, 70, 193, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(192, 132, 252, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

/* Notices Section */
.notices {
    padding: 3rem 0;
    background: rgba(15, 11, 26, 0.5);
}

.notice-card {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--primary);
}

.notice-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent);
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.notice-item {
    background: rgba(31, 27, 46, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
}

.notice-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.notice-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

/* Game Section */
.game-section {
    padding: 4rem 0;
}

.game-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.game-container {
    background: rgba(31, 27, 46, 0.8);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--primary);
    margin-bottom: 2rem;
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
}

.game-info {
    text-align: center;
    padding: 1.5rem;
    background: rgba(107, 70, 193, 0.1);
    border-radius: 10px;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: rgba(15, 11, 26, 0.3);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(31, 27, 46, 0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Community Section */
.community-section {
    padding: 4rem 0;
    text-align: center;
}

.community-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    color: var(--text-dark);
    margin-top: 0.5rem;
}

/* Play Page */
.play-section {
    padding: 3rem 0;
}

.play-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent);
}

.play-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.game-wrapper {
    background: rgba(31, 27, 46, 0.8);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--primary);
    margin-bottom: 3rem;
}

.game-frame-full {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 10px;
}

.usage-notes {
    background: rgba(107, 70, 193, 0.1);
    padding: 2rem;
    border-radius: 15px;
}

.usage-notes h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--accent);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.note {
    background: rgba(31, 27, 46, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--secondary);
}

.note h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

/* Legal Pages */
.legal-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.legal-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.last-updated {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.legal-content {
    background: rgba(31, 27, 46, 0.6);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--darker);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 2px solid var(--primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(192, 132, 252, 0.2);
    color: var(--text-dark);
}

/* Modal */
.modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    border: 2px solid var(--primary);
    box-shadow: 0 20px 60px rgba(107, 70, 193, 0.5);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--accent);
}

.modal-content p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-confirm,
.btn-deny {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-confirm {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.4);
}

.btn-deny {
    background: rgba(156, 163, 175, 0.2);
    color: var(--text);
}

.btn-deny:hover {
    background: rgba(156, 163, 175, 0.3);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(31, 27, 46, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        display: none;
        border-bottom: 2px solid var(--primary);
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 1rem;
        border-bottom: 1px solid rgba(192, 132, 252, 0.1);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .game-frame {
        height: 400px;
    }

    .game-frame-full {
        height: 500px;
    }

    .stats {
        gap: 2rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 2rem;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .game-frame {
        height: 300px;
    }

    .game-frame-full {
        height: 400px;
    }
}
