:root {
    --crt-red: rgb(218, 49, 49);
    --crt-green: rgb(112, 159, 115);
    --crt-blue: rgb(40, 129, 206);
}

.pink {
    color: pink;
}

.yellow {
    color: yellow;
}

.lightblue {
    color: lightblue;
}

.code {
    color: attr(data-color);
}

.wrapper {
    padding-top: 2rem;
    padding-left: 1rem;
    display: inline-block;
    white-space: nowrap;
}

.code {
    -webkit-animation: typewriter 1s steps(14) 1s 1 normal both;
    animation: typewriter 1s steps(14) 1s 1 normal both;
    line-height: 1;
    margin: 0;
    display: inline-block;
    white-space: nowrap;
    overflow-x: hidden;
}

.cursor {
    display: inline-block;
    -webkit-animation: blinkTextCursor 500ms infinite normal;
    animation: blinkTextCursor 500ms infinite normal;
}

/* Animation */
@-webkit-keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@-webkit-keyframes blinkTextCursor {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes blinkTextCursor {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.crt {
    background-color: #19191e;
    text-shadow: 0 0 0.2em currentColor, 1px 1px rgba(255, 0, 255, 0.5), -1px -1px rgba(0, 255, 255, 0.4);
    position: relative;
}

.crt:before,
.crt:after {
    content: "";
    transform: translateZ(0);
    pointer-events: none;
    mix-blend-mode: overlay;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    filter: blur(0.6px);
}

.crt:before {
    background: repeating-linear-gradient(var(--crt-red) 0px, var(--crt-green) 2px, var(--crt-blue) 4px);
}

.crt:after {
    background: repeating-linear-gradient(90deg, var(--crt-red) 1px, var(--crt-green) 2px, var(--crt-blue) 3px);
}

:root {
    --bg: #050505;
    --card-bg: #121212;
    --accent: #ff2768;
    --accent-secondary: #ffd319;
    --text: #f7f7f7;
    --muted: #9b9b9b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: radial-gradient(circle at top, #191919 0%, var(--bg) 55%);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem 3rem;
}

.app-shell {
    width: min(1100px, 100%);
    background: linear-gradient(145deg, #0d0d0d, #1c1c1c);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
    border: 2px dotted rgba(255, 255, 255, 0.08);
    padding: 1rem clamp(1rem, 4vw, 3rem) 3rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.7rem;
    margin-bottom: 0.5rem;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 100px;
    justify-content: center;
}

.brand h1 {
    font-size: clamp(1rem, 8vw, 1.5rem);
    margin: 0;
    letter-spacing: 0.1em;
}

.brand span {
    font-size: 0.5rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.2em;
}

.story-ring {
    width: clamp(64px, 13vw, 110px);
    border-radius: 25%;
    padding: 3px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.story-counter {
    position: relative;
    z-index: 1;
    font-size: clamp(0.45rem, 1.8vw, 1rem);
    letter-spacing: 0.15em;
    text-align: center;
}

.carousel {
    position: relative;
    border-radius: 24px;
    box-shadow: 0 0 10px #333;
    background: var(--card-bg);
}

.carousel-window {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    height: 100%;
}

.slide {
    width: 100%;
    flex: 0 0 100%;
    padding: clamp(1rem, 3vw, 2rem);
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    height: 100%;
}

.follow-slide {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    height: -webkit-fill-available;
    margin-bottom: 3rem;
    justify-content: center;
    gap: 0;
}

.media-frame {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4);
    flex: 1;
    min-height: 0;
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    filter: saturate(1.15) contrast(1.05);
}

.media-frame video {
    max-width: 100%;
}

.caption {
    font-size: clamp(0.55rem, 2.4vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    line-height: 1.6;
    color: var(--muted);
    padding: 0 1rem;
    padding-bottom: 0.8rem;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CCC;
    width: 60px;
    height: 60px;
    border-radius: 25%;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
    user-select: none;
    font-size: 1.2rem;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.05);
}

.nav-button:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 4px;
}

.nav-prev {
    left: -1.7rem;
}

.nav-next {
    right: -1.7rem;
    animation: navNextPulse 1s ease 3s 1 forwards;
}

.dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    user-select: none;
    padding: 0;
}

.dot.is-active {
    background: aliceblue;
    transform: scale(1.6);
}

.follow-slide {
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.follow-slide h2 {
    margin: 0;
    font-size: clamp(0.7rem, 3vw, 1rem);
    letter-spacing: 0.25em;
    color: var(--accent-secondary);
}

.follow-slide a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding: 1rem 1.2rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    transition: background 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
}

.follow-slide a:hover {
    background: #ff4c85;
    transform: scale(1.05);
}

.follow-slide p.caption {
    font-size: 1.2em;
    padding: 0 4rem;
    line-height: 2.2rem;
}

@keyframes navNextPulse {
    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: none;
    }

    50% {
        border-color: #fff;
        box-shadow: 0 0 18px #fff;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0;
    }

    .brand span {
        font-size: 0.7rem;
        line-height: 1.4rem;
    }

    .app-shell {
        width: 100%;
        padding: 0;
        border: none;
        align-self: flex-start;
    }

    .brand {
        margin-top: 10vh;
        margin-bottom: 5vh;
    }

    .carousel {
        border-radius: 0;
    }

    .story-ring {
        position: absolute;
        right: 3vw;
        top: 22vh;
        z-index: 1;
    }

    header {
        flex-direction: column;
    }

    .nav-button {
        width: 42px;
        height: 42px;
        position: fixed;
        bottom: 10px;
        top: auto;
        scale: 2;
    }

    .nav-next {
        right: 10%;
    }

    .nav-prev {
        left: 10%;
    }

    .slide {
        padding: 0rem;
    }

    .media-frame {
        padding: 0;
    }

    .brand {
        text-align: center;
    }

    .dots {
        position: fixed;
        bottom: 13vh;
    }

    .caption {
        font-size: 0.7rem;
        line-height: 1.4rem;
    }
}