/* Cosmory - Cosmic Social Casino Theme */
/* Font: Outfit */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #9f7aea;
    --accent: #ffd700;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f7fafc;
    --gray: #a0aec0;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
}

/* Age Verification Overlay */
.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.age-overlay.hidden {
    display: none;
}

.age-modal {
    background: var(--dark);
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.age-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.age-modal h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--light);
}

.age-modal p {
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.age-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-verify, .btn-deny {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-verify {
    background: var(--gradient);
    color: white;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-deny {
    background: transparent;
    color: var(--gray);
    border: 2px solid var(--gray);
}

.btn-deny:hover {
    border-color: #e53e3e;
    color: #e53e3e;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--light);
    font-size: 24px;
    font-weight: 700;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.main-nav a {
    color: var(--gray);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--light);
    background: rgba(102, 126, 234, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 18px 48px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5);
}

.hero-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 { width: 300px; height: 300px; }
.orbit-2 { width: 450px; height: 450px; }
.orbit-3 { width: 600px; height: 600px; }

/* Notices Section */
.notices {
    padding: 80px 24px;
    background: var(--dark);
}

.notice-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.notice-card {
    background: var(--darker);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.notice-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.notice-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.notice-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--light);
}

.notice-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Game Section */
.game-section {
    padding: 80px 24px;
    text-align: center;
}

.game-section h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 48px;
}

.game-wrapper {
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.game-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* About Section */
.about-section {
    padding: 80px 24px;
    background: var(--dark);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 48px;
    text-align: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.feature-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.feature h4 {
    font-size: 22px;
    margin-bottom: 8px;
}

.feature p {
    color: var(--gray);
    line-height: 1.7;
}

/* Info Widgets */
.info-widgets {
    padding: 80px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.widget {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(159, 122, 234, 0.1) 100%);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.widget h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.widget p {
    color: var(--gray);
    line-height: 1.7;
}

/* Play Page */
.play-page {
    padding-top: 80px;
}

.play-hero {
    padding: 60px 24px 40px;
    text-align: center;
}

.play-hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.play-hero p {
    color: var(--gray);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.game-container {
    padding: 24px;
}

.game-frame-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.game-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.play-info {
    padding: 60px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.info-card {
    background: var(--dark);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

.play-reminder {
    padding: 24px 24px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.reminder-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.reminder-box h3 {
    color: var(--accent);
    margin-bottom: 12px;
}

.reminder-box p {
    color: var(--gray);
    line-height: 1.7;
}

/* Legal Pages */
.legal-page {
    padding: 120px 24px 80px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-container h1 {
    font-size: 42px;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--gray);
    margin-bottom: 48px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--light);
}

.legal-section p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-section ul {
    color: var(--gray);
    margin-left: 24px;
    line-height: 1.8;
}

.legal-section li {
    margin-bottom: 8px;
}

.highlight-section {
    background: var(--dark);
    padding: 32px;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

/* Footer */
.main-footer {
    background: var(--dark);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray);
    line-height: 1.7;
}

.footer-links h4, .footer-responsible h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--light);
}

.footer-links a, .footer-responsible a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-responsible a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        display: none;
        border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 14px 18px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero p {
        font-size: 17px;
    }

    .notice-grid {
        grid-template-columns: 1fr;
    }

    .game-wrapper, .game-frame-wrapper {
        aspect-ratio: 4/3;
    }

    .feature {
        flex-direction: column;
        gap: 12px;
    }

    .feature-number {
        font-size: 36px;
    }

    .age-modal {
        padding: 32px 24px;
    }

    .age-buttons {
        flex-direction: column;
    }

    .btn-verify, .btn-deny {
        width: 100%;
    }
}
