* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6B46C1;
    --secondary-color: #9333EA;
    --accent-color: #C084FC;
    --dark-bg: #0F0A1E;
    --card-bg: #1A1232;
    --text-primary: #FFFFFF;
    --text-secondary: #C4B5FD;
    --gradient-1: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-2: linear-gradient(135deg, #6B46C1 0%, #9333EA 100%);
}

body {
    font-family: 'Orbitron', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Age 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;
}

.age-modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 50px rgba(147, 51, 234, 0.5);
}

.age-modal-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.age-modal-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.age-modal-content p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.age-modal-warning {
    color: #FCD34D;
    font-weight: bold;
}

.age-modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn-confirm, .btn-decline {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-confirm {
    background: var(--gradient-2);
    color: white;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.5);
}

.btn-decline {
    background: #EF4444;
    color: white;
}

.btn-decline:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.5);
}

/* Header */
.header {
    background: rgba(26, 18, 50, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: var(--gradient-1);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
}

/* Notice Section */
.notice-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.notice-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.notice-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.notice-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.notice-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.notice-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Game Section */
.game-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--dark-bg), var(--card-bg));
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(147, 51, 234, 0.3);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
}

.game-info {
    max-width: 900px;
    margin: 30px auto 0;
    text-align: center;
}

.game-info p {
    color: var(--text-secondary);
    margin: 10px 0;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--accent-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: scale(1.05);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-2);
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 900;
    font-size: 18px;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Play Page Styles */
.play-section {
    padding: 60px 0 80px;
}

.play-header {
    text-align: center;
    margin-bottom: 50px;
}

.play-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.play-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.game-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.instruction-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.instruction-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.instruction-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.instruction-card p {
    color: var(--text-secondary);
}

.game-container-play {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(147, 51, 234, 0.3);
}

.game-frame-full {
    width: 100%;
    height: 700px;
    border: none;
}

.play-footer-note {
    max-width: 800px;
    margin: 30px auto 0;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
}

.play-footer-note p {
    color: var(--text-secondary);
}

/* Legal Pages */
.legal-section {
    padding: 60px 0 80px;
    min-height: 70vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 60px;
    border-radius: 15px;
}

.legal-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.legal-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-block {
    margin-bottom: 40px;
}

.legal-block h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.legal-block p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-block ul {
    list-style-position: inside;
    color: var(--text-secondary);
    margin-left: 20px;
}

.legal-block ul li {
    margin-bottom: 10px;
}

.legal-block a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-block a:hover {
    text-decoration: underline;
}

.highlight-block {
    background: rgba(147, 51, 234, 0.1);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 60px 0 30px;
    border-top: 2px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(196, 181, 253, 0.2);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: var(--card-bg);
        padding: 30px;
        border-radius: 15px 0 0 15px;
        box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.5);
        transition: right 0.3s;
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2,
    .section-title,
    .play-header h1 {
        font-size: 32px;
    }

    .legal-content {
        padding: 30px 20px;
    }

    .legal-content h1 {
        font-size: 32px;
    }

    .age-modal-content {
        margin: 20px;
        padding: 30px 20px;
    }

    .age-modal-buttons {
        flex-direction: column;
    }

    .game-frame {
        height: 400px;
    }

    .game-frame-full {
        height: 500px;
    }
}
