/* Nebularo - Vibrant Cloud Theme */
/* Font: Quicksand */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #f472b6;
    --cyan: #06b6d4;
    --purple: #a855f7;
    --gradient: linear-gradient(135deg, #f472b6 0%, #06b6d4 100%);
    --bg-dark: #0c1222;
    --bg-card: #152238;
    --bg-light: #1a2d4a;
    --text: #f1f5f9;
    --text-dim: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

/* Age Cloud */
.cloud-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 34, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cloud-overlay.hidden {
    display: none;
}

.cloud-modal {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 460px;
    text-align: center;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)), var(--gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.nebula-swirl {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gradient);
    border-radius: 50%;
    position: relative;
}

.nebula-swirl::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
}

.nebula-swirl::after {
    content: '';
    position: absolute;
    bottom: 18px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
}

.cloud-modal h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cloud-modal p {
    color: var(--text-dim);
    margin-bottom: 32px;
    line-height: 1.8;
}

.cloud-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-float, .btn-drift {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-float {
    background: var(--gradient);
    color: white;
}

.btn-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(244, 114, 182, 0.3);
}

.btn-drift {
    background: transparent;
    color: var(--text-dim);
    border: 2px solid var(--text-dim);
}

.btn-drift:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Header */
.nebula-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(12, 18, 34, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

.header-cloud {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nebula-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-orb {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    position: relative;
}

.logo-orb::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 10px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
}

.nebula-logo span {
    font-size: 26px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cloud-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.cloud-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s;
}

.nebula-nav {
    display: flex;
    gap: 8px;
}

.nebula-nav a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
}

.nebula-nav a:hover, .nebula-nav a.active {
    color: var(--text);
    background: var(--bg-light);
}

/* Hero Cloud */
.hero-cloud {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.cloud-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.s1 {
    width: 400px;
    height: 400px;
    background: var(--pink);
    top: 10%;
    left: -10%;
}

.s2 {
    width: 300px;
    height: 300px;
    background: var(--cyan);
    bottom: 20%;
    right: -5%;
}

.s3 {
    width: 200px;
    height: 200px;
    background: var(--purple);
    top: 40%;
    right: 30%;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(42px, 8vw, 68px);
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 19px;
    color: var(--text-dim);
    margin-bottom: 40px;
    line-height: 1.8;
}

.btn-play {
    display: inline-block;
    padding: 18px 48px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(244, 114, 182, 0.3);
}

.btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(244, 114, 182, 0.5);
}

/* Pillars */
.pillars {
    padding: 80px 24px;
    background: var(--bg-card);
}

.pillar-row {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.pillar {
    background: var(--bg-dark);
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.pillar:hover {
    transform: translateY(-5px);
}

.pillar-bubble {
    font-size: 48px;
    margin-bottom: 20px;
}

.pillar h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
}

.pillar p {
    color: var(--text-dim);
    line-height: 1.8;
}

/* Showcase */
.showcase-cloud {
    padding: 100px 24px;
}

.showcase-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.showcase-inner h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-sub {
    color: var(--text-dim);
    font-size: 18px;
    margin-bottom: 48px;
}

.game-cloud {
    aspect-ratio: 16/10;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid;
    border-image: var(--gradient) 1;
    box-shadow: 0 20px 60px rgba(244, 114, 182, 0.2);
}

.game-cloud iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Story */
.story-cloud {
    padding: 100px 24px;
    background: var(--bg-card);
}

.story-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.story-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.story-text p {
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.9;
}

.story-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-card {
    background: var(--bg-dark);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.card-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.story-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.story-card p {
    color: var(--text-dim);
    font-size: 15px;
}

/* Info Clouds */
.info-clouds {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.info-cloud {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(244, 114, 182, 0.2);
}

.info-cloud h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-cloud p {
    color: var(--text-dim);
    line-height: 1.8;
}

/* Play Cloud */
.play-cloud {
    padding-top: 80px;
}

.play-intro {
    padding: 60px 24px 40px;
    text-align: center;
}

.play-intro h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.play-intro p {
    color: var(--text-dim);
    font-size: 18px;
}

.play-zone {
    padding: 24px;
}

.zone-frame {
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16/10;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid;
    border-image: var(--gradient) 1;
    box-shadow: 0 24px 70px rgba(244, 114, 182, 0.25);
}

.zone-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.play-tips {
    padding: 60px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.tips-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tip {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 16px;
}

.tip h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tip p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}

.play-note {
    padding: 24px 24px 80px;
    max-width: 700px;
    margin: 0 auto;
}

.note-box {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(244, 114, 182, 0.3);
}

.note-box h3 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
    margin-bottom: 12px;
}

.note-box p {
    color: var(--text-dim);
    line-height: 1.8;
}

/* Legal Cloud */
.legal-cloud {
    padding: 120px 24px 80px;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-date {
    color: var(--text-dim);
    margin-bottom: 48px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section.highlight {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 20px;
    border-left: 4px solid var(--pink);
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.legal-section p {
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 12px;
}

.legal-section ul {
    color: var(--text-dim);
    margin-left: 24px;
    line-height: 2;
}

/* Footer */
.nebula-footer {
    background: var(--bg-card);
}

.footer-cloud {
    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: 28px;
    font-weight: 700;
    display: block;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}

.footer-links h4, .footer-help h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links a, .footer-help a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    padding: 8px 0;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-help a:hover {
    color: var(--pink);
}

.footer-base {
    border-top: 1px solid rgba(244, 114, 182, 0.1);
    padding: 24px;
    text-align: center;
}

.footer-base p {
    color: var(--text-dim);
    font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
    .cloud-toggle {
        display: flex;
    }

    .nebula-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        display: none;
    }

    .nebula-nav.open {
        display: flex;
    }

    .nebula-nav a {
        padding: 14px 20px;
        border-radius: 12px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .game-cloud, .zone-frame {
        aspect-ratio: 4/3;
        border-radius: 16px;
    }

    .cloud-modal {
        padding: 36px 28px;
    }
}
