/* mystical.boo - Japanese-Minimal Neon Shrine */

:root {
    --void: #050508;
    --text-dim: #4a4a5a;
    --neon-cyan: #00e5ff;
    --neon-violet: #bf5fff;
    --neon-gold: #ffd700;
    --neon-pink: #ff1493;
    --pure-white: #ffffff;
    --font-display: 'Josefin Sans', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    background: var(--void);
    color: var(--pure-white);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
}

/* ============================================
   Horizontal Scroll Container
   ============================================ */

.scroll-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 500vw;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

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

/* ============================================
   Panels
   ============================================ */

.panel {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
}

.panel-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 500px;
    padding: 0 20px;
}

.panel-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.panel-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.12em;
}

.panel-body {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.panel-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-top: 20px;
}

/* Neon Colors */
.neon-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan), 0 0 40px rgba(0, 229, 255, 0.3);
}

.neon-violet {
    color: var(--neon-violet);
    text-shadow: 0 0 20px var(--neon-violet), 0 0 40px rgba(191, 95, 255, 0.3);
}

.neon-gold {
    color: var(--neon-gold);
    text-shadow: 0 0 20px var(--neon-gold), 0 0 40px rgba(255, 215, 0, 0.3);
}

.neon-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 20px var(--neon-pink), 0 0 40px rgba(255, 20, 147, 0.3);
}

.text-dim {
    color: var(--text-dim);
    text-shadow: none;
}

/* ============================================
   Panel 1: Torii Gate
   ============================================ */

.torii-gate {
    width: 260px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.3));
}

.draw-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-in-out;
}

.panel.active .draw-path {
    stroke-dashoffset: 0;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hint-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.hint-arrow {
    color: var(--neon-cyan);
    font-size: 18px;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(6px); opacity: 1; }
}

/* ============================================
   Panel 2: Constellation
   ============================================ */

.constellation-art {
    width: 340px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 8px rgba(191, 95, 255, 0.3));
}

.star-node {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.panel.active .star-node {
    opacity: 1;
}

/* ============================================
   Panel 3: Mandala
   ============================================ */

.mandala-art {
    width: 260px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.2));
    animation: mandalaRotate 60s linear infinite;
}

@keyframes mandalaRotate {
    to { transform: rotate(360deg); }
}

/* ============================================
   Panel 4: Spirit
   ============================================ */

.spirit-art {
    width: 160px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 12px rgba(255, 20, 147, 0.3));
    animation: spiritFloat 4s ease-in-out infinite;
}

@keyframes spiritFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   Panel 5: Departure Glyph
   ============================================ */

.departure-glyph {
    margin-bottom: 30px;
    z-index: 2;
}

.glyph-char {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 300;
}

/* ============================================
   Progress Bar
   ============================================ */

.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(74, 74, 90, 0.2);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet), var(--neon-gold), var(--neon-pink), var(--neon-cyan));
    transition: width 0.3s ease;
}

/* ============================================
   Panel Counter
   ============================================ */

.panel-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    z-index: 100;
}

.counter-current {
    color: var(--pure-white);
}

.counter-sep {
    margin: 0 4px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .torii-gate {
        width: 200px;
    }

    .constellation-art {
        width: 260px;
    }

    .mandala-art {
        width: 200px;
    }

    .spirit-art {
        width: 120px;
    }

    .scroll-hint {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .panel-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .torii-gate {
        width: 160px;
    }
}
