/* gabs.quest styles */
/* Palette: #1a1a2e, #16213e, #f59e0b, #fbbf24, #475569, #f1f5f9, #22c55e */

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

html {
    overflow: hidden;
    height: 100%;
}

body {
    background: #1a1a2e;
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    height: 100%;
    overflow: hidden;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #475569;
    z-index: 100;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    transition: width 0.25s ease-out;
}

/* Quest Map (path line + nodes overlay) */
.quest-map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.path-line-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 700vw;
    height: 2px;
    transform: translateY(-1px);
}

.path-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f59e0b;
    opacity: 0.15;
}

.node-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #475569;
    border: 2px solid #475569;
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
    z-index: 2;
}

.node-marker.active {
    background: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.node-marker.completed {
    background: #22c55e;
    border-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* Scroll Track */
.scroll-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    scrollbar-width: none;
}

.scroll-track::-webkit-scrollbar {
    display: none;
}

/* Stations */
.station {
    min-width: 100vw;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem 2rem;
    position: relative;
    background: #1a1a2e;
}

.station:nth-child(even) {
    background: #16213e;
}

.station-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: #f59e0b;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.station.in-view .station-label {
    opacity: 1;
    transform: translateY(0);
}

/* Brand / Hero */
.brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 6rem);
    color: #f1f5f9;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}

.station.in-view .brand {
    opacity: 1;
    transform: scale(1);
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #fbbf24;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.station.in-view .tagline {
    opacity: 1;
    transform: translateY(0);
}

.station-hint {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #475569;
    margin-top: 1rem;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.6s ease 0.5s;
}

.station.in-view .station-hint {
    opacity: 1;
}

/* Scroll Arrows */
.scroll-arrow {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.arrow-char {
    font-size: 2.5rem;
    color: #f59e0b;
    line-height: 0.7;
    opacity: 0.3;
}

.arrow-char:nth-child(1) {
    animation: arrowPulse 2s ease-in-out infinite;
}

.arrow-char:nth-child(2) {
    animation: arrowPulse 2s ease-in-out 0.3s infinite;
}

.arrow-char:nth-child(3) {
    animation: arrowPulse 2s ease-in-out 0.6s infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

/* Station Content */
.station-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 480px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.station.in-view .station-content {
    opacity: 1;
    transform: translateY(0);
}

.station-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.dotted-divider {
    width: 60px;
    height: 1px;
    border-top: 2px dotted #475569;
    margin: 0.75rem 0 1rem;
}

.gold-divider {
    border-top-color: #f59e0b;
    width: 100px;
}

.green-divider {
    border-top-color: #22c55e;
    width: 80px;
}

.station-text {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

/* Quest Challenge Box */
.quest-challenge {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

.challenge-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #f59e0b;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.5rem;
}

.challenge-text {
    font-size: 0.85rem;
    color: #f1f5f9;
    line-height: 1.5;
}

.station-points {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #22c55e;
    margin-top: 1rem;
    letter-spacing: 0.1em;
}

.big-points {
    font-size: 1.2rem;
    color: #fbbf24;
}

/* Station 06: The Challenge (larger, more intense) */
.station-challenge {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
}

.challenge-title {
    font-size: 2.25rem;
    color: #f59e0b;
}

.challenge-content {
    max-width: 560px;
}

.challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.25rem 0;
    width: 100%;
}

.challenge-card {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.challenge-card:hover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

.challenge-icon {
    font-size: 1.5rem;
    color: #fbbf24;
}

.challenge-card-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: #f1f5f9;
    letter-spacing: 0.1em;
}

.final-challenge {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.06);
}

/* Station 07: Victory */
.station-victory {
    background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
}

.victory-title {
    color: #22c55e;
    font-size: 2.25rem;
}

.achievement-wall {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.badge-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-width: 90px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

.badge-icon {
    font-size: 1.25rem;
    color: #22c55e;
}

.badge-name {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: #f1f5f9;
    letter-spacing: 0.05em;
}

.completion-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fbbf24;
}

.stat-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #475569;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.victory-message {
    font-size: 0.95rem;
    color: #22c55e;
    font-style: italic;
    max-width: 400px;
    text-align: center;
    line-height: 1.65;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    .brand {
        font-size: clamp(2rem, 12vw, 4rem);
    }

    .station-title {
        font-size: 1.35rem;
    }

    .challenge-title {
        font-size: 1.75rem;
    }

    .victory-title {
        font-size: 1.75rem;
    }

    .scroll-arrow {
        right: 1rem;
    }

    .arrow-char {
        font-size: 1.8rem;
    }

    .challenge-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .badge-row {
        gap: 0.5rem;
    }

    .badge {
        min-width: 75px;
        padding: 0.5rem 0.75rem;
    }

    .completion-stats {
        gap: 1.25rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}
