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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* --- PARALLAX --- */
.parallax-viewport-wrapper {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* .parallax-viewport / .parallax-track / .parallax-image are styled
   entirely via inline styles set by the React ParallaxLayer component
   (vendor/parallax-layer.js) — mirrors adventure/src/components/ParallaxLayer.jsx
   exactly, so no CSS rules are needed for them here. */

/* --- CONTENT --- */
.section-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0), rgba(0,0,0,0.55));
}

.story-title {
    color: white;
    text-align: center;
    margin: 0;
}

.character-wrapper {
    width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    animation: floatCharacter 4s ease-in-out infinite;
}

.character-img {
    width: 100%;
    object-fit: contain;
}

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

.ui-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    text-decoration: none;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.05);
}

.hint-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Only reachable once the parent page has actually expanded this half —
   see mentor.js's postMessage listener. Hidden (not just unclickable) in
   the small preview state so it doesn't read as a real, actionable button. */
.back-btn {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 20;
    display: none;
}

body.is-expanded .back-btn {
    display: inline-block;
}

@media screen and (max-width: 600px) {
    .story-title {
        font-size: 1.4rem;
    }
    .character-wrapper {
        width: 120px;
    }
}
