/* sora.quest — Parallax Storytelling Journey */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #070B1A;
    color: #7B8FA1;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow: hidden;
}

/* ── Parallax Container ── */
.sky-parallax {
    perspective: 1px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    transform-style: preserve-3d;
}

/* ── Section Headings ── */
.section-heading {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #F0E6D2;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════
   HERO ZONE
   ══════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* ── Three-Layer Parallax Starfield ── */
.stars-far,
.stars-mid,
.stars-near {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stars-far {
    transform: translateZ(-3px) scale(4);
}

.stars-mid {
    transform: translateZ(-1px) scale(2);
}

.stars-near {
    transform: translateZ(0);
}

/* Stars — shared */
.star {
    position: absolute;
    border-radius: 50%;
    background: #F0E6D2;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Far stars — small, dim (2px) */
.sf1  { width: 2px; height: 2px; top:  8%; left: 12%; animation-delay: 0s; }
.sf2  { width: 2px; height: 2px; top: 14%; left: 38%; animation-delay: 0.7s; }
.sf3  { width: 2px; height: 2px; top: 22%; left: 62%; animation-delay: 1.4s; }
.sf4  { width: 2px; height: 2px; top:  5%; left: 80%; animation-delay: 0.3s; }
.sf5  { width: 2px; height: 2px; top: 30%; left: 25%; animation-delay: 2.1s; }
.sf6  { width: 2px; height: 2px; top: 18%; left: 50%; animation-delay: 0.9s; }
.sf7  { width: 2px; height: 2px; top: 40%; left: 70%; animation-delay: 1.6s; }
.sf8  { width: 2px; height: 2px; top: 35%; left: 10%; animation-delay: 2.4s; }
.sf9  { width: 2px; height: 2px; top: 45%; left: 88%; animation-delay: 0.5s; }
.sf10 { width: 2px; height: 2px; top: 50%; left: 45%; animation-delay: 1.8s; }
.sf11 { width: 2px; height: 2px; top: 55%; left: 20%; animation-delay: 0.2s; }
.sf12 { width: 2px; height: 2px; top: 60%; left: 72%; animation-delay: 2.7s; }
.sf13 { width: 2px; height: 2px; top: 65%; left: 35%; animation-delay: 1.1s; }
.sf14 { width: 2px; height: 2px; top: 72%; left: 58%; animation-delay: 0.6s; }
.sf15 { width: 2px; height: 2px; top: 78%; left: 15%; animation-delay: 2.0s; }
.sf16 { width: 2px; height: 2px; top: 82%; left: 42%; animation-delay: 1.3s; }
.sf17 { width: 2px; height: 2px; top: 88%; left: 78%; animation-delay: 0.8s; }
.sf18 { width: 2px; height: 2px; top: 12%; left: 92%; animation-delay: 2.3s; }
.sf19 { width: 2px; height: 2px; top: 92%; left: 55%; animation-delay: 1.7s; }
.sf20 { width: 2px; height: 2px; top: 70%; left:  5%; animation-delay: 0.4s; }

/* Mid stars — medium (2-3px) */
.sm1  { width: 3px; height: 3px; top: 10%; left: 20%; animation-delay: 0.4s; }
.sm2  { width: 2px; height: 2px; top: 25%; left: 55%; animation-delay: 1.2s; }
.sm3  { width: 3px; height: 3px; top: 15%; left: 75%; animation-delay: 2.0s; }
.sm4  { width: 2px; height: 2px; top: 38%; left: 40%; animation-delay: 0.8s; }
.sm5  { width: 3px; height: 3px; top: 42%; left: 15%; animation-delay: 1.5s; }
.sm6  { width: 2px; height: 2px; top: 55%; left: 65%; animation-delay: 2.3s; }
.sm7  { width: 3px; height: 3px; top: 28%; left: 85%; animation-delay: 0.6s; }
.sm8  { width: 2px; height: 2px; top: 68%; left: 30%; animation-delay: 1.9s; }
.sm9  { width: 3px; height: 3px; top: 75%; left: 60%; animation-delay: 0.2s; }
.sm10 { width: 2px; height: 2px; top: 80%; left: 80%; animation-delay: 1.0s; }
.sm11 { width: 3px; height: 3px; top: 48%; left: 50%; animation-delay: 2.5s; }
.sm12 { width: 2px; height: 2px; top: 62%; left: 10%; animation-delay: 0.7s; }
.sm13 { width: 3px; height: 3px; top: 85%; left: 45%; animation-delay: 1.4s; }
.sm14 { width: 2px; height: 2px; top: 32%; left: 92%; animation-delay: 2.1s; }
.sm15 { width: 3px; height: 3px; top: 90%; left: 22%; animation-delay: 0.3s; }

/* Near stars — larger, brighter (3-4px) */
.sn1  { width: 4px; height: 4px; top: 12%; left: 30%; animation-delay: 0.5s; }
.sn2  { width: 3px; height: 3px; top: 22%; left: 68%; animation-delay: 1.3s; }
.sn3  { width: 4px; height: 4px; top: 35%; left: 48%; animation-delay: 2.2s; }
.sn4  { width: 3px; height: 3px; top: 50%; left: 18%; animation-delay: 0.9s; }
.sn5  { width: 4px; height: 4px; top: 45%; left: 82%; animation-delay: 1.7s; }
.sn6  { width: 3px; height: 3px; top: 60%; left: 55%; animation-delay: 0.1s; }
.sn7  { width: 4px; height: 4px; top: 72%; left: 38%; animation-delay: 2.6s; }
.sn8  { width: 3px; height: 3px; top: 82%; left: 72%; animation-delay: 1.0s; }
.sn9  { width: 4px; height: 4px; top: 88%; left: 12%; animation-delay: 0.8s; }
.sn10 { width: 3px; height: 3px; top: 18%; left: 90%; animation-delay: 1.6s; }

/* ── Hero Content ── */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    transform: translateZ(0);
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    color: #F0E6D2;
    letter-spacing: 0.05em;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-size: 1.1rem;
    color: #7B8FA1;
    margin-bottom: 1.5rem;
}

.cta-glow {
    display: inline-block;
    background: #FFD700;
    color: #070B1A;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.3);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.cta-glow:hover {
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.55);
    transform: translateY(-1px);
}

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 24px rgba(255, 215, 0, 0.5); }
}

.cta-glow {
    animation: cta-pulse 3s ease-in-out infinite;
}
.cta-glow:hover {
    animation: none;
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.55);
}

/* ══════════════════════════════════════════
   ACTIVE QUESTS
   ══════════════════════════════════════════ */
.quests {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    z-index: 1;
}

.quest-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.quest-card {
    background: #0F1530;
    border: 1px solid #1A2040;
    border-radius: 12px;
    padding: 2rem;
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.quest-card:hover {
    transform: translateY(-4px);
    border-color: #6BA3D6;
}

.quest-card:nth-child(2) {
    margin-top: 40px;
}

.quest-card:nth-child(3) {
    margin-top: 80px;
}

.quest-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
}

/* Four-pointed star using clip-path */
.star-icon {
    background: #F0E6D2;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Meteor — diagonal with rounded corner */
.meteor-icon {
    background: #FF6B4A;
    border-radius: 50% 0 0 0;
    transform: rotate(45deg);
}

/* Crescent — box-shadow technique */
.crescent-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 10px -2px 0 0 #F0E6D2;
    background: transparent;
}

.quest-name {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #F0E6D2;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.quest-difficulty {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #7B8FA1;
    display: block;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 4px;
    background: #1A2040;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress-fill {
    height: 100%;
    background: #6BA3D6;
    border-radius: 2px;
    width: 0;
    transition: width 1s ease-out;
}

.progress-fill.orange {
    background: #FF6B4A;
}

.progress-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #7B8FA1;
}

/* ══════════════════════════════════════════
   SKY MAP PREVIEW
   ══════════════════════════════════════════ */
.skymap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.planisphere {
    position: relative;
    width: 300px;
    height: 300px;
    border: 1px solid #6BA3D6;
    border-radius: 50%;
    background: #0F1530;
    overflow: hidden;
}

.cardinal {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #6BA3D6;
}

.n { top: 8px; left: 50%; transform: translateX(-50%); }
.s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.e { right: 8px; top: 50%; transform: translateY(-50%); }
.w { left: 8px; top: 50%; transform: translateY(-50%); }

.map-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #F0E6D2;
    border-radius: 50%;
    animation: twinkle 4s ease-in-out infinite;
}

.ms1  { top: 30%; left: 40%; animation-delay: 0s; }
.ms2  { top: 25%; left: 55%; animation-delay: 0.8s; }
.ms3  { top: 45%; left: 35%; animation-delay: 1.5s; }
.ms4  { top: 50%; left: 60%; animation-delay: 0.3s; }
.ms5  { top: 65%; left: 45%; animation-delay: 2.0s; }
.ms6  { top: 35%; left: 70%; animation-delay: 1.2s; }
.ms7  { top: 70%; left: 55%; animation-delay: 0.6s; }
.ms8  { top: 40%; left: 50%; width: 4px; height: 4px; animation-delay: 1.8s; }
.ms9  { top: 55%; left: 28%; animation-delay: 2.4s; }
.ms10 { top: 20%; left: 42%; animation-delay: 0.4s; }
.ms11 { top: 60%; left: 68%; animation-delay: 1.6s; }
.ms12 { top: 38%; left: 22%; animation-delay: 2.2s; }

.constellation-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ══════════════════════════════════════════
   ACHIEVEMENT WALL
   ══════════════════════════════════════════ */
.achievements {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    z-index: 1;
}

.badge-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.badge-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge-circle.earned {
    border: 2px solid #FFD700;
    background: #0F1530;
}

.badge-circle.earned:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.badge-circle.locked {
    border: 2px solid #1A2040;
    background: #0F1530;
    opacity: 0.4;
}

.badge-label {
    font-size: 0.55rem;
    color: #F0E6D2;
    line-height: 1.2;
    padding: 4px;
    font-family: 'Inter', sans-serif;
}

/* ══════════════════════════════════════════
   FOOTER — THE DAWN
   ══════════════════════════════════════════ */
.footer {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #1A2040;
    z-index: 1;
}

.countdown {
    margin-bottom: 1rem;
}

.countdown-label {
    font-size: 0.8rem;
    color: #7B8FA1;
    display: block;
    margin-bottom: 0.25rem;
}

.countdown-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: #FFD700;
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #7B8FA1;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.flink {
    font-size: 0.8rem;
    color: #6BA3D6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.flink:hover {
    color: #F0E6D2;
}

/* ══════════════════════════════════════════
   SCROLL FADE-IN
   ══════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 640px) {
    .quest-row {
        flex-direction: column;
        align-items: center;
    }
    .quest-card:nth-child(2),
    .quest-card:nth-child(3) {
        margin-top: 0;
    }
    .planisphere {
        width: 240px;
        height: 240px;
    }
}
