/* Starloria - Space Theme with Horizontal Layout */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --space-purple: #667eea;
    --space-violet: #764ba2;
    --space-pink: #f093fb;
    --deep-space: #0f0c29;
    --dark-space: #1a1533;
    --nebula-blue: #302b63;
    --star-white: #ffffff;
    --text-light: #e6e6fa;
    --text-dim: #b3b3d9;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(135deg, var(--deep-space) 0%, var(--nebula-blue) 50%, var(--dark-space) 100%);
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, rgba(15,12,41,0.95) 0%, rgba(48,43,99,0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--space-purple);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.bar-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    flex-shrink: 0;
}

.site-logo {
    height: 50px;
    width: auto;
}

.top-nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--space-purple), var(--space-pink));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--space-pink);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--space-purple);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Main Container */
.main-container {
    width: 100%;
}

/* Hero Area */
.hero-area {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(180deg, rgba(102,126,234,0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--space-purple), var(--space-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tagline {
    font-size: 22px;
    color: var(--text-dim);
    margin-bottom: 25px;
}

.star-divider {
    font-size: 28px;
    color: var(--space-pink);
    letter-spacing: 15px;
}

/* Section Wrapper */
.section-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Intro Area */
.intro-area {
    background: rgba(26, 21, 51, 0.6);
}

.intro-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--space-purple);
    text-align: center;
    margin-bottom: 25px;
}

.lead-text {
    font-size: 19px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-light);
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.feature-box {
    background: rgba(48, 43, 99, 0.4);
    padding: 35px;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    text-align: center;
}

.feature-box:hover {
    border-color: var(--space-purple);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.feature-emoji {
    font-size: 56px;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    color: var(--space-purple);
    margin-bottom: 12px;
}

.feature-box p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-dim);
}

/* Alert Area */
.alert-area {
    background: rgba(15, 12, 41, 0.8);
    border-top: 2px solid var(--space-purple);
    border-bottom: 2px solid var(--space-purple);
}

.alert-container {
    background: rgba(48, 43, 99, 0.5);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--space-pink);
}

.alert-container h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    color: var(--space-pink);
    margin-bottom: 30px;
    text-align: center;
}

.alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.alert-card {
    background: rgba(15, 12, 41, 0.7);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--space-purple);
}

.alert-card strong {
    display: block;
    font-size: 19px;
    color: var(--space-purple);
    margin-bottom: 10px;
}

.alert-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0;
}

/* Game Area */
.game-area {
    background: rgba(26, 21, 51, 0.6);
}

.game-area h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--space-purple);
    text-align: center;
    margin-bottom: 20px;
}

.game-intro {
    font-size: 18px;
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 35px;
}

.game-display {
    background: rgba(15, 12, 41, 0.8);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--space-purple);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.game-embed {
    width: 100%;
    height: 650px;
    border-radius: 10px;
    background: #000;
}

.game-info {
    text-align: center;
    margin-top: 25px;
    font-size: 17px;
    color: var(--text-light);
}

/* Info Area */
.info-area {
    background: rgba(15, 12, 41, 0.8);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
}

.info-card {
    background: rgba(48, 43, 99, 0.4);
    padding: 35px;
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.info-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    color: var(--space-purple);
    margin-bottom: 18px;
}

.info-card p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Page Hero */
.page-hero {
    text-align: center;
    padding: 70px 40px;
    background: rgba(48, 43, 99, 0.3);
    border-bottom: 2px solid var(--space-purple);
}

.page-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--space-purple);
    margin-bottom: 15px;
}

.hero-sub {
    font-size: 20px;
    color: var(--text-dim);
}

/* Instructions Area */
.instructions-area {
    background: rgba(26, 21, 51, 0.6);
}

.instruction-box {
    background: rgba(48, 43, 99, 0.5);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--space-purple);
}

.instruction-box p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.instruction-box p:last-child {
    margin-bottom: 0;
}

/* Play Zone */
.play-zone {
    background: rgba(15, 12, 41, 0.8);
}

.game-frame-container {
    background: rgba(15, 12, 41, 0.9);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--space-purple);
    box-shadow: 0 0 35px rgba(102, 126, 234, 0.4);
}

.game-iframe-play {
    width: 100%;
    height: 750px;
    border-radius: 10px;
    background: #000;
}

/* Tips Area */
.tips-area {
    background: rgba(26, 21, 51, 0.6);
}

.tips-area h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--space-purple);
    text-align: center;
    margin-bottom: 35px;
}

.tips-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.tip-box {
    background: rgba(48, 43, 99, 0.4);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.tip-box h3 {
    font-size: 20px;
    color: var(--space-purple);
    margin-bottom: 12px;
}

.tip-box p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dim);
}

/* Legal Section */
.legal-section {
    background: rgba(15, 12, 41, 0.8);
}

.legal-doc {
    background: rgba(26, 21, 51, 0.8);
    padding: 45px;
    border-radius: 15px;
    border: 2px solid var(--space-purple);
}

.legal-doc h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    color: var(--space-purple);
    margin-top: 35px;
    margin-bottom: 18px;
}

.legal-doc h2:first-child {
    margin-top: 0;
}

.legal-doc h3 {
    font-size: 24px;
    color: var(--space-pink);
    margin-top: 25px;
    margin-bottom: 12px;
}

.legal-doc p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 18px;
    color: var(--text-light);
}

.legal-doc ul {
    margin: 18px 0 18px 30px;
}

.legal-doc li {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 10px;
    color: var(--text-light);
}

.legal-doc a {
    color: var(--space-purple);
    text-decoration: underline;
}

.legal-doc a:hover {
    color: var(--space-pink);
}

.terms-note,
.critical-alert {
    background: rgba(48, 43, 99, 0.6);
    border: 3px solid var(--space-pink);
    padding: 30px;
    margin-top: 35px;
    border-radius: 10px;
    text-align: center;
}

/* Footer */
.site-footer {
    background: rgba(15, 12, 41, 0.95);
    border-top: 2px solid var(--space-purple);
    padding: 50px 40px 30px;
}

.footer-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    color: var(--space-purple);
    margin-bottom: 18px;
}

.footer-col p {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.support-list,
.legal-list {
    list-style: none;
    padding: 0;
}

.support-list li,
.legal-list li {
    margin-bottom: 10px;
}

.support-list a,
.legal-list a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.support-list a:hover,
.legal-list a:hover {
    color: var(--space-purple);
}

.footer-text {
    font-size: 15px;
    line-height: 1.8;
}

.footer-stars {
    text-align: center;
    font-size: 24px;
    color: var(--space-pink);
    letter-spacing: 25px;
    margin-top: 25px;
}

/* Age Gate Modal */
.age-gate {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.98);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.age-gate.active {
    display: flex;
}

.gate-panel {
    background: linear-gradient(135deg, rgba(48,43,99,0.9) 0%, rgba(26,21,51,0.9) 100%);
    border: 3px solid var(--space-purple);
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    padding: 50px;
    text-align: center;
    box-shadow: 0 0 50px rgba(102, 126, 234, 0.5);
}

.star-decoration {
    font-size: 48px;
    color: var(--space-pink);
    margin-bottom: 20px;
}

.gate-panel h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    color: var(--space-purple);
    margin-bottom: 25px;
}

.gate-panel p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-light);
}

.gate-emphasis {
    font-size: 19px;
    font-weight: 700;
    color: var(--space-pink);
}

.gate-actions {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    justify-content: center;
}

.btn-enter,
.btn-exit {
    padding: 15px 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    border: 2px solid;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-enter {
    background: linear-gradient(90deg, var(--space-purple), var(--space-pink));
    color: white;
    border-color: transparent;
}

.btn-enter:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.btn-exit {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--text-dim);
}

.btn-exit:hover {
    background: var(--text-dim);
    color: var(--deep-space);
}

/* Responsive */
@media (max-width: 768px) {
    .top-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: rgba(15, 12, 41, 0.98);
        border-left: 2px solid var(--space-purple);
        flex-direction: column;
        padding: 40px 20px;
        transition: right 0.3s ease;
    }

    .top-nav.active {
        right: 0;
    }

    .menu-btn {
        display: flex;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .intro-content h2,
    .game-area h2,
    .tips-area h2 {
        font-size: 32px;
    }

    .section-wrapper {
        padding: 40px 20px;
    }

    .feature-row,
    .alert-grid,
    .tips-row {
        grid-template-columns: 1fr;
    }

    .game-embed {
        height: 450px;
    }

    .game-iframe-play {
        height: 550px;
    }

    .legal-doc {
        padding: 30px 20px;
    }

    .gate-actions {
        flex-direction: column;
    }

    .btn-enter,
    .btn-exit {
        width: 100%;
    }
}
