/* OMNIVOTE.IO — Story / showcase mode (cacheable) */

.sa-story-root {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: #0a0a0a;
    color: #f8fafc;
}

body:has(.sa-story-root) > header,
body:has(.sa-story-root) footer,
body.sa-story-active > header,
body.sa-story-active footer {
    display: none !important;
}

body:has(.sa-story-root) main,
body.sa-story-active main {
    padding: 0;
    margin: 0;
}

.sa-story-scroller {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.sa-story-slide {
    height: 100%;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #0a0a0a;
}

.sa-story-media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4.5rem 1rem 7rem;
}

.sa-story-media img {
    width: 100%;
    height: 100%;
    max-width: 48rem;
    object-fit: contain;
}

.sa-story-media .media-embed-frame,
.sa-story-media .media-visual {
    width: min(100%, 42rem);
    max-height: 100%;
}

.sa-story-chrome {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    z-index: 2;
}

.sa-story-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1.25rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    z-index: 2;
}

.sa-story-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 3px;
    padding: 8px 12px;
    z-index: 3;
}

.sa-story-progress span {
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.sa-story-progress span.is-done { background: rgba(255, 255, 255, 0.9); }
.sa-story-progress span.is-active { background: #38bdf8; }

.sa-story-hint {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 1;
}
