@import url('https://fonts.googleapis.com/css2?family=Bungee:wght@400&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg: #020202;
    --text: #f6f6f6;
    --muted: #9f9f9f;
    --cyan: #14d7ff;
    --orange: #ff8f33;
    --line: #191919;
}

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

body {
    margin: 0;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% -4%, rgba(20, 215, 255, 0.16), transparent 38%),
        radial-gradient(circle at 96% 0%, rgba(255, 143, 51, 0.12), transparent 35%),
        linear-gradient(180deg, #040404 0%, #000000 100%);
}

.page {
    width: min(1160px, 96vw);
    margin: 16px auto 52px;
}

.top {
    text-align: center;
    padding: 8px 0 8px;
}

.top h1 {
    margin: 0;
    font-family: 'Bungee', cursive;
    letter-spacing: 2px;
    font-size: clamp(1.95rem, 5vw, 3rem);
    color: var(--cyan);
}

.top p {
    margin: 8px 0 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.82rem;
}

.tabs {
    position: sticky;
    top: 8px;
    z-index: 8;
    margin: 14px auto 24px;
    max-width: 520px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(4, 4, 4, 0.93);
    backdrop-filter: blur(5px);
}

.tabs a {
    text-decoration: none;
    text-align: center;
    color: var(--text);
    padding: 11px 10px;
    border-radius: 13px;
    border: 1px solid #252525;
    background: linear-gradient(180deg, #101010, #0b0b0b);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tabs a:hover {
    transform: translateY(-2px);
}

.tabs a.active {
    border-color: #315f69;
    box-shadow: inset 0 0 0 1px rgba(20, 215, 255, 0.33);
}

.tabs a:last-child.active {
    border-color: #6a4a31;
    box-shadow: inset 0 0 0 1px rgba(255, 143, 51, 0.34);
}

.letter {
    display: inline-block;
    font-family: 'Bungee', cursive;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    line-height: 1;
    color: var(--cyan);
    border-bottom: 3px solid currentColor;
    padding-bottom: 3px;
    min-width: 42px;
}

.tabs a:last-child .letter {
    color: var(--orange);
}

.word {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.story {
    display: grid;
    gap: clamp(30px, 5vw, 58px);
}

.scene {
    margin: 0;
}

.scene.intro {
    display: grid;
    place-items: center;
}

.scene.pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: clamp(10px, 3vw, 34px);
}

.scene.single {
    grid-template-columns: 1fr;
    justify-items: center;
}

.pose-cell {
    margin: 0;
    display: grid;
    place-items: end center;
}

.scene-image {
    display: block;
    width: min(100%, 510px);
    max-height: 72vh;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.58));
}

.intro-image {
    width: min(96vw, 940px);
    max-height: 78vh;
}

.empty {
    text-align: center;
    color: var(--muted);
    border: 1px dashed #303030;
    border-radius: 14px;
    padding: 18px;
    line-height: 1.6;
}

.reveal {
    opacity: 0;
}

.scene.reveal .pose-cell {
    opacity: 0;
}

.scene.intro.reveal {
    transform: translateY(24px) scale(0.985);
    transition: opacity 0.62s ease, transform 0.62s ease;
}

.scene.pair.reveal .pose-main {
    transform: translateX(-28px) translateY(20px) scale(0.985);
    transition: opacity 0.62s ease, transform 0.62s ease;
}

.scene.pair.reveal .pose-second {
    transform: translateX(28px) translateY(20px) scale(0.985);
    transition: opacity 0.62s ease 0.12s, transform 0.62s ease 0.12s;
}

.scene.visible {
    opacity: 1;
}

.scene.intro.visible {
    transform: translateY(0) scale(1);
}

.scene.pair.visible .pose-cell {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

@media (max-width: 760px) {
    .page {
        margin-top: 12px;
        width: min(1080px, 98vw);
    }

    .tabs {
        top: 4px;
        margin-bottom: 16px;
    }

    .scene.pair {
        gap: 8px;
    }

    .scene-image {
        max-height: 56vh;
    }

    .intro-image {
        max-height: 62vh;
    }
}
