/* parallel.quest - Dark Mode / Parallax / Generative Art / Handwritten */

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

body {
    background-color: #0A0A14;
    color: #D0D0E0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Parallax sections */
.parallax-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.parallax-bg,
.parallax-mid,
.parallax-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.parallax-bg {
    z-index: 1;
}

.parallax-mid {
    z-index: 2;
}

.parallax-content {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Generative art SVGs */
.gen-art {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Content column */
.content-column {
    max-width: 640px;
    width: 100%;
    padding: 0 24px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Quest title */
.quest-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 56px;
    color: #FFFFFF;
    opacity: 0;
    animation: title-fade 1s ease 0.5s forwards;
}

@keyframes title-fade {
    to { opacity: 1; }
}

.quest-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 17px;
    color: #D0D0E0;
    margin-top: 12px;
    opacity: 0;
    animation: title-fade 1s ease 1s forwards;
}

/* Stage labels */
.stage-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #00E0FF;
    display: block;
    margin-bottom: 8px;
}

.stage-heading {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 44px;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Body text */
.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: #D0D0E0;
    margin-bottom: 16px;
}

/* Data labels */
.data-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #00E0FF;
    display: block;
    margin-top: 16px;
}

/* Mountain silhouettes */
.mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    pointer-events: none;
}

.mountain {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    animation: mountain-fade 1.5s ease forwards;
}

.mountain-bg {
    height: 180px;
    background: #0A0A14;
    clip-path: polygon(0 100%, 0 60%, 8% 40%, 18% 55%, 30% 25%, 42% 50%, 55% 20%, 65% 45%, 78% 15%, 88% 40%, 95% 30%, 100% 50%, 100% 100%);
    z-index: 1;
    animation-delay: 0s;
}

.mountain-mid {
    height: 150px;
    background: #0F0F1E;
    clip-path: polygon(0 100%, 0 55%, 10% 35%, 22% 50%, 35% 20%, 45% 40%, 58% 15%, 70% 45%, 82% 25%, 92% 35%, 100% 45%, 100% 100%);
    z-index: 2;
    animation-delay: 0.3s;
}

.mountain-fg {
    height: 120px;
    background: #1A1A2E;
    clip-path: polygon(0 100%, 0 50%, 12% 30%, 25% 45%, 38% 20%, 50% 40%, 62% 15%, 75% 35%, 85% 25%, 95% 40%, 100% 35%, 100% 100%);
    z-index: 3;
    animation-delay: 0.6s;
}

@keyframes mountain-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Vary mountain shapes per section */
.mountains-2 .mountain-fg {
    clip-path: polygon(0 100%, 0 45%, 15% 25%, 28% 40%, 40% 15%, 55% 35%, 68% 10%, 80% 30%, 90% 20%, 100% 40%, 100% 100%);
}

.mountains-3 .mountain-fg {
    clip-path: polygon(0 100%, 0 40%, 10% 20%, 20% 35%, 35% 10%, 48% 30%, 60% 5%, 72% 25%, 85% 15%, 95% 35%, 100% 30%, 100% 100%);
}

.mountains-4 .mountain-fg {
    clip-path: polygon(0 100%, 0 50%, 8% 30%, 22% 45%, 32% 18%, 48% 38%, 58% 12%, 72% 32%, 82% 22%, 100% 38%, 100% 100%);
}

.mountains-5 .mountain-fg {
    clip-path: polygon(0 100%, 0 55%, 12% 35%, 25% 48%, 38% 22%, 52% 42%, 65% 18%, 78% 38%, 88% 28%, 100% 45%, 100% 100%);
}

.mountains-6 .mountain-fg {
    clip-path: polygon(0 100%, 0 48%, 10% 28%, 24% 42%, 36% 16%, 50% 36%, 62% 8%, 76% 30%, 86% 18%, 100% 35%, 100% 100%);
}

/* Locked sections */
.section-locked .locked-content {
    opacity: 0.3;
    cursor: pointer;
    user-select: none;
}

/* Shake animation */
@keyframes shake-error {
    0% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(6px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
    85% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.shaking {
    animation: shake-error 0.4s ease;
    outline: 2px solid #FF4488;
    outline-offset: 8px;
}

/* Lock message */
.lock-message {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #FF4488;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lock-message.visible {
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .quest-title {
        font-size: 38px;
    }

    .stage-heading {
        font-size: 32px;
    }

    .mountains {
        height: 200px;
    }

    .mountain-bg {
        display: none;
    }
}
