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

body {
    background: #0a0a0f;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;

    font-family: 'Press Start 2P', cursive;
    overflow: hidden;
    position: relative;
    text-transform: lowercase;

    cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAFVBMVEUAAAD///////////////////////8f469hAAAAB3RSTlMAEM7vT29zjS86EAAAADVJREFUCNdjYMAABmMoYmBgYmBgAmIICCHEDEQRUAZIAiIAmEAIGCHEDEQRUAZIAiIAmEAIEAEALowEALH6V6IAAAAASUVORK5CYII='), auto;
}


#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: #8c8ca0;
    font-family: 'Press Start 2P', cursive;
    text-transform: uppercase;
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.loader-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.loader-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(60px);
}

.spinner-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(140, 140, 160, 0.1);
    border-top: 2px solid #8c8ca0;
    border-radius: 50%;
    animation: rotateSpinner 1.2s linear infinite;
    box-shadow: 0 0 15px rgba(140, 140, 160, 0.2);
}

.loader-logo {
    width: 100px;
    height: auto;
    animation: logoPulse 2s ease-in-out infinite;
    z-index: 2;
}

.loader-logo img {
    width: 100%;
    filter: drop-shadow(0 0 10px rgba(140, 140, 160, 0.3));
}

@keyframes rotateSpinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.05);
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(140, 140, 160, 0.5));
    }
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1) blur(10px);
}


a,
button,
.clickable,
.center-logo,
.player-btn {
    cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAFVBMVEUAAAD///////////////////////8f469hAAAAB3RSTlMAEM7vT29zjS86EAAAADVJREFUCNdjYMAABmMoYmBgYmBgAmIICCHEDEQRUAZIAiIAmEAIGCHEDEQRUAZIAiIAmEAIEAEALowEALH6V6IAAAAASUVORK5CYII='), pointer !important;
}


.social-link {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 150;
    opacity: 0.5;
    transition: opacity 0.1s ease, transform 0.1s ease;

}

.social-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.social-link svg {
    width: 28px;
    height: 28px;
    display: block;
}


.center-logo {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 140;
    opacity: 0.4;

    transition: opacity 0.1s ease;
    cursor: pointer;
    width: auto;
    height: 120px;
}

.center-logo:hover {
    opacity: 0.7;
}

.center-logo.logo-tap {
    animation: logoTap 0.3s ease-out !important;
}

@keyframes logoTap {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(0.95);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

.center-logo img {
    height: 100%;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 15px rgba(140, 140, 160, 0.4));
    position: absolute;
    top: 0;
    left: 50%;

    animation: imageGlitch 3s infinite;
    transform: translateX(-50%);
}

.ghost-logo {
    opacity: 0;
    pointer-events: none;
    z-index: 141;
}


@keyframes imageGlitch {

    0%,
    90%,
    100% {
        transform: translateX(-50%) translate(0, 0);
    }

    91% {
        transform: translateX(-50%) translate(-3px, 2px);
    }

    92% {
        transform: translateX(-50%) translate(2px, -2px);
    }

    93% {
        transform: translateX(-50%) translate(-1px, 1px);
    }
}


@keyframes logoFloat {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}


@keyframes uiWobble {

    0%,
    100% {
        rotate: 0deg;
    }

    25% {
        rotate: -0.8deg;
    }

    50% {
        rotate: 0deg;
    }

    75% {
        rotate: 0.8deg;
    }
}


@keyframes uiFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


@keyframes uiFloatSimple {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


.logo-slice-right {
    animation: diagonalSliceRight 0.2s steps(10) !important;
}

.logo-slice-left {
    animation: diagonalSliceLeft 0.2s steps(10) !important;
}

.logo-ghost-appear-right {
    animation: ghostAppearRight 0.2s steps(8) !important;
}

.logo-ghost-appear-left {
    animation: ghostAppearLeft 0.2s steps(8) !important;
}

@keyframes diagonalSliceRight {
    0% {
        clip-path: inset(0);
        transform: translateX(-50%) skew(0deg);
    }

    10% {
        clip-path: polygon(0 0, 100% 10%, 100% 30%, 0 20%);
        transform: translateX(-50%) translateX(10px) skew(5deg);
        filter: hue-rotate(90deg) brightness(1.5);
    }

    20% {
        clip-path: polygon(0 40%, 100% 30%, 100% 60%, 0 70%);
        transform: translateX(-50%) translateX(-15px) skew(-5deg);
        filter: hue-rotate(180deg) contrast(2);
    }

    30% {
        clip-path: polygon(0 80%, 100% 70%, 100% 100%, 0 90%);
        transform: translateX(-50%) translateX(5px) skew(2deg);
        filter: hue-rotate(270deg) saturate(2);
    }

    40% {
        clip-path: inset(0);
        transform: translateX(-50%);
        filter: none;
    }

    100% {
        clip-path: inset(0);
        transform: translateX(-50%);
    }
}

@keyframes diagonalSliceLeft {
    0% {
        clip-path: inset(0);
        transform: translateX(-50%) skew(0deg);
    }

    10% {
        clip-path: polygon(100% 0, 0 10%, 0 30%, 100% 20%);
        transform: translateX(-50%) translateX(-10px) skew(-5deg);
        filter: hue-rotate(-90deg) brightness(1.5);
    }

    20% {
        clip-path: polygon(100% 40%, 0 30%, 0 60%, 100% 70%);
        transform: translateX(-50%) translateX(15px) skew(5deg);
        filter: hue-rotate(-180deg) contrast(2);
    }

    30% {
        clip-path: polygon(100% 80%, 0 70%, 0 100%, 100% 90%);
        transform: translateX(-50%) translateX(-5px) skew(-2deg);
        filter: hue-rotate(-270deg) saturate(2);
    }

    40% {
        clip-path: inset(0);
        transform: translateX(-50%);
        filter: none;
    }

    100% {
        clip-path: inset(0);
        transform: translateX(-50%);
    }
}


@keyframes squashDown {
    0% {
        transform: scale(1, 1);
    }

    20% {
        transform: scale(1.3, 0.6);
    }

    40% {
        transform: scale(0.9, 1.1);
    }

    60% {
        transform: scale(1.05, 0.95);
    }

    80% {
        transform: scale(0.98, 1.02);
    }

    100% {
        transform: scale(1, 1);
    }
}

.squash-active {
    animation: squashDown 0.45s ease-out;
}


@keyframes wobbleBounce {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    20% {
        transform: scale(1.04, 0.96) rotate(-2deg);
    }

    40% {
        transform: scale(0.96, 1.04) rotate(2deg);
    }

    60% {
        transform: scale(1.02, 0.98) rotate(-1deg);
    }

    80% {
        transform: scale(0.99, 1.01) rotate(1deg);
    }
}

.wobble-active {
    animation: wobbleBounce 0.3s ease-out !important;
}


.scanlines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 100;
    opacity: 0.4;
}


.abstract-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    animation: backgroundDriftLeft 60s linear infinite;
}

@keyframes backgroundDriftLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100px);
    }
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    animation: abstractMove 25s ease-in-out infinite;
}


.abstract-shape:nth-child(1) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4a4a5a, transparent);
    top: 20%;
    left: 10%;
    animation-duration: 30s;
}

.abstract-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3a3a4a, transparent);
    top: 60%;
    right: 15%;
    animation-duration: 35s;
    animation-delay: -10s;
}

.abstract-shape:nth-child(3) {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #2a2a3a, transparent);
    bottom: 10%;
    left: 40%;
    animation-duration: 40s;
    animation-delay: -20s;
}

.abstract-shape:nth-child(4) {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(80, 70, 120, 0.15), transparent);
    top: 30%;
    left: 50%;
    animation-duration: 45s;
    animation-delay: -25s;
    filter: blur(120px);
}

.abstract-shape:nth-child(5) {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(60, 80, 100, 0.12), transparent);
    top: 70%;
    right: 30%;
    animation-duration: 38s;
    animation-delay: -18s;
    filter: blur(110px);
}


@keyframes abstractMove {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(80px, -60px) scale(1.1);
    }

    50% {
        transform: translate(-40px, 80px) scale(0.95);
    }

    75% {
        transform: translate(60px, 40px) scale(1.05);
    }
}


.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #4a4a5a;
    border-radius: 50%;
    animation: starRandomFade 4s infinite ease-in-out;
}

@keyframes starRandomFade {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
    }
}


.cloud-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.08;
}

.cloud-wave {
    position: absolute;
    width: 200%;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #3a3a4a;
    white-space: pre;
    line-height: 1;
    animation: waveFloatMove 40s linear infinite, cloudDrift 25s ease-in-out infinite, cloudGlitch 8s infinite;
    letter-spacing: 0px;
}


@keyframes waveFloatMove {
    0% {
        left: 0;
    }

    100% {
        left: -200%;

    }
}

@keyframes cloudDrift {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(2deg);
    }
}

@keyframes cloudGlitch {

    0%,
    96%,
    100% {
        filter: none;
        opacity: 1;
    }

    97% {
        filter: blur(2px);
        opacity: 0.5;
        margin-left: 5px;

    }

    98% {
        filter: contrast(2);
        opacity: 0.3;
        transform: translateX(-5px);
    }
}


.word-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-word {
    position: absolute;

    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: rgba(140, 140, 160, 0.35);
    white-space: nowrap;
    animation: sliceFade 8s ease-in-out forwards;
    text-shadow: 1px 1px 0 rgba(100, 100, 120, 0.1), 0 0 10px rgba(140, 140, 160, 0.08);
    letter-spacing: 0.5px;
}


@keyframes sliceFade {
    0% {
        opacity: 0;
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }

    10% {
        opacity: 0.5;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    80% {
        opacity: 0.65;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    92% {
        opacity: 0.15;
        clip-path: polygon(0 0, 30% 0, 30% 100%, 0 100%);
    }

    100% {
        opacity: 0;
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
}




.scanlines,
.stars,
.abstract-bg,
.word-container {
    display: none !important;
}

.music-player {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    opacity: 0.6;
    transition: opacity 0.2s;

}

.music-player:hover {
    opacity: 1;
}

.player-controls {
    display: flex;
    gap: 4px;
}

.player-btn {
    background: #e8e8e8;
    border: 2px solid #1a1a1a;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #1a1a1a;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    opacity: 0.4;
}

.player-btn:hover {
    background: #d0d0d0;
    border-color: #1a1a1a;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
    opacity: 0.7;
}

.player-btn:active {
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
    transform: translate(1px, 1px);
    opacity: 0.6;
}


.track-name-wrapper {
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.track-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.45rem;
    color: #6a6a7a;
    display: inline-block;
    animation: panTitle 20s linear infinite;
    padding-left: 100%;
    text-transform: lowercase;

    letter-spacing: 0.3px;
}


@keyframes panTitle {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


.container {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.character-viewer {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4rem;
    width: 100%;
}

.character-art-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    overflow: visible !important;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.character-art-container.clickable {
    cursor: pointer;
}

.character-art-container.clickable:hover {
    transform: scale(1.02);
}


.glow-backdrop {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 150%;
    background: radial-gradient(ellipse at bottom, rgba(90, 90, 110, 0.25) 0%, rgba(90, 90, 110, 0.1) 30%, transparent 60%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}


.character-image {
    width: 550px;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;

    animation: constantGlitch 2s infinite, edgeDistort 3s infinite;
    filter: drop-shadow(0 0 15px rgba(100, 100, 120, 0.3)) contrast(1.02) brightness(0.98);
    position: relative;
    z-index: 2;
}


.speech-bubble {
    position: absolute;
    background: #e8e8e8;
    border: 3px solid #1a1a1a;
    border-radius: 2px;
    padding: 14px 16px;
    text-align: center;
    z-index: 40;
    font-size: 0.65rem;
    color: #1a1a1a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: none;
    visibility: hidden;

    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4), 8px 8px 0 rgba(0, 0, 0, 0.15);

    font-family: 'Press Start 2P', cursive;
    width: auto;
    max-width: 450px;
    min-width: 320px;
    height: auto !important;
    min-height: 0;


    display: none;
    flex-direction: column;
    justify-content: flex-start;

    align-items: stretch;


    padding: 25px 30px;
    gap: 20px;
    box-sizing: border-box;

}


@media (min-width: 1200px) {
    .speech-bubble {
        width: auto;
        max-width: 400px;
        min-width: 320px;
        font-size: 0.6rem;
        padding: 25px 30px;


        top: 20%;
        left: 105%;
        right: auto;
        bottom: auto;
        transform: none;
        opacity: 1 !important;

    }

    .speech-bubble.bubble-left::after {
        bottom: auto;
        left: -12px;
        right: auto;
        top: 50%;
        transform: translateY(-50%);
        border-left: 0;
        border-right: 12px solid #e8e8e8;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }

    .speech-bubble.bubble-right::after {
        bottom: auto;
        left: auto;
        right: -12px;
        top: 50%;
        transform: translateY(-50%);
        border-left: 12px solid #e8e8e8;
        border-right: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }
}


@media (min-width: 1024px) and (max-width: 1199px) {
    .speech-bubble {
        width: auto;
        max-width: 350px;
        min-width: 300px;
        font-size: 0.55rem;
        padding: 20px 25px;


        top: 10%;
        left: 105%;
        right: auto;
        bottom: auto;
        transform: none;
        opacity: 1 !important;

    }

    .speech-bubble::after {
        bottom: auto;
        left: -12px;
        right: auto;
        top: 50%;
        transform: translateY(-50%);
        border-left: 0;
        border-right: 12px solid #e8e8e8;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }
}


@media (min-width: 769px) and (max-width: 1023px) {
    .speech-bubble {
        width: auto;
        max-width: 320px;
        min-width: 280px;
        font-size: 0.55rem;
        padding: 15px 20px;


        top: 5%;
        left: 105%;
        right: auto;
        bottom: auto;
        transform: none;
        opacity: 1 !important;

    }

    .speech-bubble::after {
        bottom: auto;
        left: -12px;
        right: auto;
        top: 50%;
        transform: translateY(-50%);
        border-left: 0;
        border-right: 12px solid #e8e8e8;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }
}


@media (max-width: 768px) {
    .speech-bubble {
        width: 90vw;
        max-width: 350px;
        min-width: 0;

        font-size: 0.5rem;
        padding: 20px 10px;

        top: auto;
        bottom: 105%;

        left: 50% !important;

        transform: translateX(-50%) !important;

        right: auto !important;

        opacity: 1;
        margin: 0;

    }

    .speech-bubble::after {
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        top: auto;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 12px solid #e8e8e8;
        border-bottom: 0px solid transparent;

    }
}


.speech-bubble:hover {
    opacity: 1;
}

.speech-link {
    text-decoration: none;
    color: #1a1a1a;
    display: inline-block;
    cursor: pointer;
}


.speech-bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.3));
    display: block;
}

.speech-bubble.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 0;
    pointer-events: all;
    animation: fadeBounceSlow 0.3s ease-out forwards, subtleChromeGlitch 2s infinite alternate 0.3s;
}



.speech-bubble.active .typing-text {
    opacity: 0;
    animation:
        fadeInText 0.2s forwards 0.3s,

        typewriter 1.0s steps(28) 0.3s forwards,
        cursorBlink 0.6s step-end infinite 0.3s;
}


.dialogue-text {
    font-family: 'Press Start 2P', cursive;
    margin-bottom: 12px;
    font-family: 'Press Start 2P', cursive;
    margin-bottom: 12px;
    font-size: 0.7rem;

    line-height: 1.5;
    color: #1a1a1a;
    letter-spacing: 0.3px;
    text-transform: lowercase;
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    text-align: left;

    padding-left: 20px;

    width: 100%;
    margin-bottom: 8px;

}

.typing-text {
    display: inline-block;
    white-space: nowrap !important;

    word-break: keep-all;
    overflow: hidden;


    max-width: 100%;
    width: 0;

    height: auto;
    color: #1a1a1a;
    animation: typeFade 0.1s forwards, typewriter 2.4s steps(30) forwards;

    position: relative;
    padding-right: 5px;
}

.typing-text::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1a1a1a;
    animation: cursorBlink 0.6s step-end infinite 2.4s;
}

@keyframes typeFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.dialogue-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;

    animation: buttonsPopUp 0.4s ease-out 1.4s forwards;

    opacity: 0;
}

.dialogue-btn {
    flex: 1;
    min-width: 65px;
    padding: 8px 10px;
    background: #e8e8e8;
    border: 2px solid #1a1a1a;
    border-radius: 0;
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s ease;
    font-family: 'Press Start 2P', cursive;
    user-select: none;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
    animation: buttonWiggle 0.4s ease-in-out infinite 1.8s;
}


@keyframes buttonsPopUp {
    0% {
        opacity: 0;
        transform: scale(1) translateY(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


@keyframes buttonWiggle {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    25% {
        transform: rotate(-2deg) translateY(-2px);
    }

    50% {
        transform: rotate(2deg) translateY(2px);
    }

    75% {
        transform: rotate(-1deg) translateY(-1px);
    }
}

.dialogue-btn:hover {
    background: #d0d0d0;
    border-color: #1a1a1a;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4), 1px 1px 0 rgba(100, 100, 100, 0.6);
    transform: skew(-1deg) scaleX(1.02);
    animation: glitchHover 0.2s infinite !important;
}

.dialogue-btn:active {
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
    transform: translate(2px, 2px) skew(-1deg);
}

@keyframes glitchHover {

    0%,
    100% {
        transform: skew(-1deg) scaleX(1.02);
        filter: brightness(0.95);
    }

    25% {
        transform: skew(1deg) scaleX(0.98);
        filter: brightness(1.05);
    }

    50% {
        transform: skew(-1deg) scaleX(1.02);
        filter: brightness(0.9);
    }

    75% {
        transform: skew(1deg) scaleX(0.98);
        filter: brightness(1.08);
    }
}

.response-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 1em;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    animation: fadeInText 0.6s ease-out forwards, fadeOutText 0.8s ease-in 2.2s forwards;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutText {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialogue-response.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes cursorBlink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #000;
    }
}

@keyframes fadeBounceSlow {
    0% {
        visibility: visible;
        opacity: 0;
        transform: scale(1) translateY(5px);
    }

    100% {
        visibility: visible;
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


@keyframes bubbleGlitch {

    0%,
    94%,
    98%,
    100% {
        transform: translate(0, 0) skew(0deg);
    }

    95% {
        transform: translate(-2px, 1px) skew(1deg);
    }

    96% {
        transform: translate(2px, -1px) skew(-1deg);
    }

    97% {
        transform: translate(-1px, -1px) skew(0deg);
    }
}


@keyframes textChromaticShift {

    0%,
    90%,
    100% {
        filter: none;
        text-shadow: none;
    }

    91% {
        filter: hue-rotate(90deg) blur(0.5px);
        text-shadow: 1px 0 #ff0000, -1px 0 #00ffff;
    }

    93% {
        filter: hue-rotate(-90deg) brightness(1.2);
        text-shadow: -1px 0 #ff00ff, 1px 0 #00ff00;
    }

    95% {
        filter: none;
        text-shadow: none;
    }
}


.character-clone {
    position: absolute;
    width: 550px;
    height: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 10;

    mix-blend-mode: screen;
    transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

#clone1 {
    filter: hue-rotate(300deg) saturate(3) brightness(1.2);
}

#clone2 {
    filter: hue-rotate(180deg) saturate(3) brightness(1.2);
}


.character-clone {
    opacity: 0.18;

}

#clone1 {
    animation: subtleChromaticJitter 0.2s infinite;
}

#clone2 {
    animation: subtleChromaticJitter 0.25s infinite reverse;
}

@keyframes subtleChromaticJitter {
    0% {
        transform: translateX(-50%) translate(0, 0);
    }

    25% {
        transform: translateX(-50%) translate(1px, -1px);
    }

    50% {
        transform: translateX(-50%) translate(-1px, 1px);
    }

    75% {
        transform: translateX(-50%) translate(1px, 1px);
    }

    100% {
        transform: translateX(-50%) translate(0, 0);
    }
}


.special-active .character-clone {
    opacity: 0.45;
}

.special-active #clone1 {
    animation: jitterGlitch 0.25s infinite;
}

.special-active #clone2 {
    animation: jitterGlitch 0.3s infinite reverse;
}


.character-image.special::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(0, 0, 0, 0.03) 1px,
            transparent 1px,
            transparent 2px),
        linear-gradient(90deg,
            rgba(255, 0, 0, 0.06) 10%,
            rgba(0, 255, 0, 0.04) 53%,
            rgba(0, 0, 255, 0.06) 77%,
            rgba(255, 0, 0, 0.06) 100%);
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: overlay;
    animation: vhsDistort 0.3s infinite, vhsShift 4s ease-in-out infinite;
}

.character-image.special::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0) 0px,
            rgba(0, 0, 0, 0.05) 2px,
            rgba(0, 0, 0, 0) 4px);
    pointer-events: none;
    z-index: 10;
    animation: vhsScanline 1s linear infinite;
}

@keyframes vhsDistort {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    20% {
        transform: translateX(-2px);
        opacity: 0.8;
    }

    40% {
        transform: translateX(2px);
        opacity: 1;
    }

    60% {
        transform: translateX(-1px);
        opacity: 0.9;
    }

    80% {
        transform: translateX(1px);
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes vhsShift {

    0%,
    100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(5deg);
    }
}

@keyframes vhsScanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.character-image.special {
    animation: constantGlitch 2s infinite, edgeDistort 3s infinite, vhsFlicker 4s infinite;
    filter:
        drop-shadow(0 0 20px rgba(150, 150, 180, 0.4)) contrast(1.08) brightness(1.02) saturate(0.95);
    position: relative;
}

.character-image.special.stayed {
    animation: none !important;
    opacity: 0.25;
    transition: opacity 0.8s ease-in-out;
    filter: drop-shadow(0 0 4px rgba(150, 150, 180, 0.08)) contrast(0.95) brightness(0.92) saturate(0.7);
}

@keyframes vhsFlicker {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(150, 150, 180, 0.4)) contrast(1.08) brightness(1.02) saturate(0.95);
    }

    10% {
        filter: drop-shadow(0 0 20px rgba(150, 150, 180, 0.4)) contrast(1.15) brightness(0.98) saturate(0.9);
    }

    20% {
        filter: drop-shadow(0 0 20px rgba(150, 150, 180, 0.4)) contrast(1.08) brightness(1.02) saturate(0.95);
    }
}


@keyframes jitterGlitch {
    0% {
        transform: translateX(-50%) translate(0, 0) skew(0deg);
        opacity: 0.4;
    }

    20% {
        transform: translateX(-50%) translate(-15px, 8px) skew(5deg) scaleX(1.1);
        opacity: 0.6;
    }

    35% {
        transform: translateX(-50%) translate(12px, -10px) skew(-5deg) scaleX(0.9);
        opacity: 0.3;
    }

    50% {
        transform: translateX(-50%) translate(-8px, -15px) skew(10deg);
        opacity: 0.7;
    }

    65% {
        transform: translateX(-50%) translate(18px, 12px) skew(-10deg) scaleX(1.2);
        opacity: 0.4;
    }

    80% {
        transform: translateX(-50%) translate(-10px, 5px) skew(0deg) scaleX(0.8);
        opacity: 0.6;
    }

    100% {
        transform: translateX(-50%) translate(0, 0) skew(0deg);
        opacity: 0.5;
    }
}


@keyframes constantGlitch {

    0%,
    88%,
    100% {
        transform: translate(0, 0);
    }

    89% {
        transform: translate(-3px, 2px);
    }

    90% {
        transform: translate(2px, -2px);
    }

    91% {
        transform: translate(-2px, 1px);
    }

    92% {
        transform: translate(1px, -1px);
    }
}


@keyframes edgeDistort {

    0%,
    100% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    25% {
        clip-path: polygon(0.4% 0%, 99.6% 0.5%, 100% 99.5%, 0% 100%);
    }

    50% {
        clip-path: polygon(0% 0.4%, 100% 0%, 99.5% 100%, 0.5% 99.6%);
    }

    75% {
        clip-path: polygon(0.6% 0.2%, 99.4% 0.3%, 100% 99.7%, 0% 99.4%);
    }
}


.ghost-appear-right {
    animation: ghostAppearRight 0.35s steps(10) !important;
}

@keyframes ghostAppearRight {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateX(-180px);
        filter: blur(30px);
    }

    15% {
        opacity: 0.3;
        transform: translateX(-50%) translateX(-100px);
        filter: brightness(1.6) blur(15px);
    }

    30% {
        opacity: 0.6;
        transform: translateX(-50%) translateX(-50px);
        filter: contrast(2.5) blur(8px);
    }

    45% {
        opacity: 0.8;
        transform: translateX(-50%) translateX(-20px);
        filter: blur(4px);
    }

    60% {
        opacity: 0.95;
        transform: translateX(-50%) translateX(-8px);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%);
        filter: none;
    }
}

.ghost-appear-left {
    animation: ghostAppearLeft 0.35s steps(10) !important;
}

@keyframes ghostAppearLeft {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateX(180px);
        filter: blur(30px);
    }

    15% {
        opacity: 0.3;
        transform: translateX(-50%) translateX(100px);
        filter: brightness(1.6) blur(15px);
    }

    30% {
        opacity: 0.6;
        transform: translateX(-50%) translateX(50px);
        filter: contrast(2.5) blur(8px);
    }

    45% {
        opacity: 0.8;
        transform: translateX(-50%) translateX(20px);
        filter: blur(4px);
    }

    60% {
        opacity: 0.95;
        transform: translateX(-50%) translateX(8px);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%);
        filter: none;
    }
}


.character-ghost {
    position: absolute;
    width: 550px;
    height: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}


.glitch-transition-right {
    animation: heavySliceRight 0.35s steps(15) !important;
}

.glitch-transition-left {
    animation: heavySliceLeft 0.35s steps(15) !important;
}




@keyframes heavySliceRight {
    0% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0);
        filter: none;
    }

    3% {
        opacity: 1;
        transform: translateX(15px);
        filter: brightness(1.8);
        clip-path: polygon(0 0, 100% 0, 100% 8%, 0 10%, 0 12%, 100% 14%, 100% 22%, 0 24%, 0 26%, 100% 28%, 100% 36%, 0 38%, 0 40%, 100% 42%, 100% 50%, 0 52%, 0 54%, 100% 56%, 100% 64%, 0 66%, 0 68%, 100% 70%, 100% 78%, 0 80%, 0 82%, 100% 84%, 100% 92%, 0 94%, 0 96%, 100% 98%, 100% 100%, 0 100%);
    }

    6% {
        opacity: 0;
        transform: translateX(-25px);
        filter: invert(1);
        clip-path: polygon(0 5%, 100% 7%, 100% 13%, 0 15%, 0 20%, 100% 22%, 100% 28%, 0 30%, 0 35%, 100% 37%, 100% 43%, 0 45%, 0 50%, 100% 52%, 100% 58%, 0 60%, 0 65%, 100% 67%, 100% 73%, 0 75%, 0 80%, 100% 82%, 100% 88%, 0 90%, 0 95%, 100% 97%, 100% 100%, 0 100%);
    }

    10% {
        opacity: 0.7;
        transform: translateX(35px);
        filter: contrast(4) saturate(0);
        clip-path: polygon(0 3%, 100% 5%, 100% 11%, 0 13%, 0 18%, 100% 20%, 100% 26%, 0 28%, 0 33%, 100% 35%, 100% 41%, 0 43%, 0 48%, 100% 50%, 100% 56%, 0 58%, 0 63%, 100% 65%, 100% 71%, 0 73%, 0 78%, 100% 80%, 100% 86%, 0 88%, 0 93%, 100% 95%, 100% 100%, 0 100%);
    }

    13% {
        opacity: 0;
        transform: translateX(-15px);
        filter: hue-rotate(180deg) brightness(2);
    }

    17% {
        opacity: 0.5;
        transform: translateX(50px);
        filter: saturate(8) contrast(2);
        clip-path: polygon(0 6%, 100% 8%, 100% 14%, 0 16%, 0 21%, 100% 23%, 100% 29%, 0 31%, 0 36%, 100% 38%, 100% 44%, 0 46%, 0 51%, 100% 53%, 100% 59%, 0 61%, 0 66%, 100% 68%, 100% 74%, 0 76%, 0 81%, 100% 83%, 100% 89%, 0 91%, 0 96%, 100% 98%, 100% 100%, 0 100%);
    }

    20% {
        opacity: 0;
        transform: translateX(70px);
        filter: blur(18px);
    }

    23% {
        opacity: 0.3;
        transform: translateX(-30px);
        filter: brightness(0.3) contrast(3);
        clip-path: polygon(0 4%, 100% 6%, 100% 12%, 0 14%, 0 19%, 100% 21%, 100% 27%, 0 29%, 0 34%, 100% 36%, 100% 42%, 0 44%, 0 49%, 100% 51%, 100% 57%, 0 59%, 0 64%, 100% 66%, 100% 72%, 0 74%, 0 79%, 100% 81%, 100% 87%, 0 89%, 0 94%, 100% 96%, 100% 100%, 0 100%);
    }

    30% {
        opacity: 0.6;
        transform: translateX(40px);
        filter: hue-rotate(-120deg);
        clip-path: polygon(0 2%, 100% 4%, 100% 10%, 0 12%, 0 17%, 100% 19%, 100% 25%, 0 27%, 0 32%, 100% 34%, 100% 40%, 0 42%, 0 47%, 100% 49%, 100% 55%, 0 57%, 0 62%, 100% 64%, 100% 70%, 0 72%, 0 77%, 100% 79%, 100% 85%, 0 87%, 0 92%, 100% 94%, 100% 100%, 0 100%);
    }

    37% {
        opacity: 0.4;
        transform: translateX(25px);
        filter: contrast(0.5) brightness(1.5);
        clip-path: polygon(0 7%, 100% 9%, 100% 15%, 0 17%, 0 22%, 100% 24%, 100% 30%, 0 32%, 0 37%, 100% 39%, 100% 45%, 0 47%, 0 52%, 100% 54%, 100% 60%, 0 62%, 0 67%, 100% 69%, 100% 75%, 0 77%, 0 82%, 100% 84%, 100% 90%, 0 92%, 0 97%, 100% 99%, 100% 100%, 0 100%);
    }

    57% {
        opacity: 0.7;
        transform: translateX(45px);
        clip-path: inset(0);
        filter: saturate(2);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: none;
        clip-path: inset(0);
    }
}

@keyframes heavySliceLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0);
        filter: none;
    }

    3% {
        opacity: 1;
        transform: translateX(-15px);
        filter: brightness(1.8);
        clip-path: polygon(0 0, 100% 0, 100% 8%, 0 10%, 0 12%, 100% 14%, 100% 22%, 0 24%, 0 26%, 100% 28%, 100% 36%, 0 38%, 0 40%, 100% 42%, 100% 50%, 0 52%, 0 54%, 100% 56%, 100% 64%, 0 66%, 0 68%, 100% 70%, 100% 78%, 0 80%, 0 82%, 100% 84%, 100% 92%, 0 94%, 0 96%, 100% 98%, 100% 100%, 0 100%);
    }

    6% {
        opacity: 0;
        transform: translateX(25px);
        filter: invert(1);
        clip-path: polygon(0 5%, 100% 7%, 100% 13%, 0 15%, 0 20%, 100% 22%, 100% 28%, 0 30%, 0 35%, 100% 37%, 100% 43%, 0 45%, 0 50%, 100% 52%, 100% 58%, 0 60%, 0 65%, 100% 67%, 100% 73%, 0 75%, 0 80%, 100% 82%, 100% 88%, 0 90%, 0 95%, 100% 97%, 100% 100%, 0 100%);
    }

    10% {
        opacity: 0.7;
        transform: translateX(-35px);
        filter: contrast(4) saturate(0);
        clip-path: polygon(0 3%, 100% 5%, 100% 11%, 0 13%, 0 18%, 100% 20%, 100% 26%, 0 28%, 0 33%, 100% 35%, 100% 41%, 0 43%, 0 48%, 100% 50%, 100% 56%, 0 58%, 0 63%, 100% 65%, 100% 71%, 0 73%, 0 78%, 100% 80%, 100% 86%, 0 88%, 0 93%, 100% 95%, 100% 100%, 0 100%);
    }

    13% {
        opacity: 0;
        transform: translateX(15px);
        filter: hue-rotate(180deg) brightness(2);
    }

    17% {
        opacity: 0.5;
        transform: translateX(-50px);
        filter: saturate(8) contrast(2);
        clip-path: polygon(0 6%, 100% 8%, 100% 14%, 0 16%, 0 21%, 100% 23%, 100% 29%, 0 31%, 0 36%, 100% 38%, 100% 44%, 0 46%, 0 51%, 100% 53%, 100% 59%, 0 61%, 0 66%, 100% 68%, 100% 74%, 0 76%, 0 81%, 100% 83%, 100% 89%, 0 91%, 0 96%, 100% 98%, 100% 100%, 0 100%);
    }

    20% {
        opacity: 0;
        transform: translateX(-70px);
        filter: blur(18px);
    }

    23% {
        opacity: 0.3;
        transform: translateX(30px);
        filter: brightness(0.3) contrast(3);
        clip-path: polygon(0 4%, 100% 6%, 100% 12%, 0 14%, 0 19%, 100% 21%, 100% 27%, 0 29%, 0 34%, 100% 36%, 100% 42%, 0 44%, 0 49%, 100% 51%, 100% 57%, 0 59%, 0 64%, 100% 66%, 100% 72%, 0 74%, 0 79%, 100% 81%, 100% 87%, 0 89%, 0 94%, 100% 96%, 100% 100%, 0 100%);
    }

    30% {
        opacity: 0.6;
        transform: translateX(-40px);
        filter: hue-rotate(-120deg);
        clip-path: polygon(0 2%, 100% 4%, 100% 10%, 0 12%, 0 17%, 100% 19%, 100% 25%, 0 27%, 0 32%, 100% 34%, 100% 40%, 0 42%, 0 47%, 100% 49%, 100% 55%, 0 57%, 0 62%, 100% 64%, 100% 70%, 0 72%, 0 77%, 100% 79%, 100% 85%, 0 87%, 0 92%, 100% 94%, 100% 100%, 0 100%);
    }

    37% {
        opacity: 0.4;
        transform: translateX(-25px);
        filter: contrast(0.5) brightness(1.5);
        clip-path: polygon(0 7%, 100% 9%, 100% 15%, 0 17%, 0 22%, 100% 24%, 100% 30%, 0 32%, 0 37%, 100% 39%, 100% 45%, 0 47%, 0 52%, 100% 54%, 100% 60%, 0 62%, 0 67%, 100% 69%, 100% 75%, 0 77%, 0 82%, 100% 84%, 100% 90%, 0 92%, 0 97%, 100% 99%, 100% 100%, 0 100%);
    }

    57% {
        opacity: 0.7;
        transform: translateX(-45px);
        clip-path: inset(0);
        filter: saturate(2);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: none;
        clip-path: inset(0);
    }
}


.nav-button {
    width: 70px;
    height: 70px;
    background: transparent;
    border: none;
    color: rgba(122, 122, 138, 0.25);
    font-size: 3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
    margin-bottom: 150px;
    transition: all 0.1s ease;
    font-family: 'Press Start 2P', cursive;
    font-weight: 100;

    animation: uiFloatSimple 4s ease-in-out infinite, uiWobble 6s ease-in-out infinite;
}

.nav-button:hover {
    color: rgba(154, 154, 170, 0.5);
    transform: scale(1.15);
}

.nav-button:active {
    transform: scale(0.9);
}


@media (max-width: 768px) {
    .character-viewer {
        position: relative;
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .character-image,
    .character-clone,
    .character-ghost {
        width: 75vw;
        max-width: 450px;
    }

    .glow-backdrop {
        width: 80vw;
        max-width: 500px;
        height: 80%;
    }

    .nav-button {
        position: absolute;
        bottom: 15%;
        width: 60px;
        height: 60px;
        font-size: 3rem;
        z-index: 100;
        background: rgba(10, 10, 15, 0.2);
        border-radius: 50%;
    }

    #prevBtn {
        left: 10px;
    }

    #nextBtn {
        right: 10px;
    }

    .center-logo {
        height: 80px;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        opacity: 1 !important;

        z-index: 9999 !important;

    }

    .center-logo img {
        height: 80px;
        width: auto;
    }

    .social-link {
        top: 20px;
        left: 10px;
        opacity: 1;
        z-index: 9999;
    }

    .social-link svg {
        width: 24px;
        height: 24px;
    }

    .music-player {
        top: 12px;
        right: 12px;
        opacity: 1 !important;

        display: flex !important;

        z-index: 9999 !important;

    }

    .track-name-wrapper {
        max-width: 120px;
    }



}

@media (max-width: 480px) {

    .character-image,
    .character-clone,
    .character-ghost {
        width: 90vw;
    }

    .glow-backdrop {
        width: 95vw;
    }

    .nav-button {
        width: 45px;
        height: 45px;
        font-size: 2.2rem;
    }

    #prevBtn {
        left: 5px;
    }

    #nextBtn {
        right: 5px;
    }

    .center-logo {
        height: 60px;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .center-logo img {
        height: 60px;
        width: auto;
    }

    .social-link {
        top: 15px;
        left: 8px;
    }

    .social-link svg {
        width: 22px;
        height: 22px;
    }

    .music-player {
        top: 10px;
        right: 10px;
    }

    .track-name-wrapper {
        max-width: 100px;
    }

}


@media (max-width: 374px) {
    .center-logo {
        height: 50px;
        top: 8px;
    }

    .center-logo img {
        height: 50px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

@keyframes subtleChromeGlitch {
    0% {
        transform: translate(0, 0);
        box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4), 8px 8px 0 rgba(0, 0, 0, 0.15);
    }

    92% {
        transform: translate(0, 0);
        box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4), 8px 8px 0 rgba(0, 0, 0, 0.15);
    }

    93% {
        transform: translate(-1px, 1px);
        box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4), 7px 7px 0 rgba(0, 0, 0, 0.15);
    }

    94% {
        transform: translate(1px, -1px);
        box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4), 9px 9px 0 rgba(0, 0, 0, 0.15);
    }

    95% {
        transform: translate(0, 0);
        box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4), 8px 8px 0 rgba(0, 0, 0, 0.15);
    }

    98% {
        transform: skew(0.5deg);
    }

    100% {
        transform: none;
    }
}


.light-beam-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.light-beam-container.ambient {
    opacity: 0.3;
}

.light-beam-container.active {
    opacity: 1;
}


.light-beam {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(220, 230, 255, 0.6) 20%,
            rgba(200, 220, 255, 0.4) 40%,
            rgba(180, 210, 255, 0.2) 60%,
            rgba(160, 200, 255, 0.1) 80%,
            transparent 100%);
    filter: blur(30px);
    animation: beamPulse 3s ease-in-out infinite, beamGlitch 0.4s steps(3) infinite;
    mix-blend-mode: screen;
}

@keyframes beamPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) scaleX(1);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) scaleX(1.05);
    }
}

@keyframes beamGlitch {

    0%,
    90% {
        transform: translateX(-50%);
    }

    91% {
        transform: translateX(-48%);
    }

    93% {
        transform: translateX(-52%);
    }

    95% {
        transform: translateX(-49%);
    }

    100% {
        transform: translateX(-50%);
    }
}


.light-particle {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.9),
            rgba(220, 230, 255, 0.6),
            transparent);
    pointer-events: none;
    animation: particleRain linear infinite;
    filter: blur(1px);
}

@keyframes particleRain {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}


.character-image.ascending {
    animation: characterAscend 5.3s ease-out forwards, ascendGlitch 0.15s steps(2) 22 forwards, disperseBreak 0.6s ease-in 4.4s forwards;
}

@keyframes characterAscend {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: brightness(1);
    }

    20% {
        transform: translateY(-20px) scale(1.02);
        opacity: 1;
        filter: brightness(1.2);
    }

    40% {
        transform: translateY(-80px) scale(1.05);
        opacity: 0.9;
        filter: brightness(1.4);
    }

    60% {
        transform: translateY(-200px) scale(1.08);
        opacity: 0.8;
        filter: brightness(1.6);
    }

    80% {
        transform: translateY(-350px) scale(1.1);
        opacity: 0.6;
        filter: brightness(1.8);
    }

    100% {
        transform: translateY(-600px) scale(1.15);
        opacity: 0;
        filter: brightness(2);
    }
}

@keyframes disperseBreak {
    0% {
        clip-path: inset(0);
        transform: scale(1) skew(0deg);
        filter: brightness(1.5);
    }

    15% {
        clip-path: polygon(0 0, 100% 0, 95% 30%, 5% 25%);
        transform: scale(1.2, 0.8) skew(5deg, -3deg);
        filter: brightness(2);
    }

    30% {
        clip-path: polygon(5% 35%, 92% 28%, 88% 65%, 8% 70%);
        transform: scale(0.7, 1.3) skew(-8deg, 5deg);
        filter: brightness(2.5);
    }

    45% {
        clip-path: polygon(10% 75%, 85% 68%, 70% 95%, 20% 100%);
        transform: scale(1.5, 0.5) skew(12deg, -8deg);
        filter: brightness(3);
    }

    60% {
        clip-path: polygon(30% 20%, 70% 30%, 60% 80%, 40% 70%);
        transform: scale(0.3) skew(-15deg, 12deg) rotate(45deg);
        filter: brightness(4);
        opacity: 0.5;
    }

    80% {
        clip-path: polygon(45% 45%, 55% 48%, 52% 52%, 48% 50%);
        transform: scale(0.1) skew(25deg, -20deg) rotate(180deg);
        filter: brightness(5);
        opacity: 0.2;
    }

    100% {
        clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
        transform: scale(0) skew(45deg, -45deg) rotate(360deg);
        filter: brightness(6);
        opacity: 0;
    }
}

@keyframes ascendGlitch {

    0%,
    80% {
        transform: translateX(0);
    }

    81% {
        transform: translateX(-3px);
    }

    83% {
        transform: translateX(3px);
    }

    85% {
        transform: translateX(-2px);
    }

    87% {
        transform: translateX(0);
    }
}


.glow-backdrop.ascending {
    animation: backdropAscend 3s ease-out forwards;
}

@keyframes backdropAscend {
    0% {
        opacity: 1;
        filter: blur(80px);
    }

    50% {
        opacity: 1;
        filter: blur(120px) brightness(2);
    }

    100% {
        opacity: 0;
        filter: blur(200px) brightness(3);
    }
}


#mainLogo.spinning,
#ghostLogo.spinning {
    animation: happyBouncySpin 5s ease-in forwards !important;
    animation-delay: 0s !important;
}

@keyframes happyBouncySpin {
    0% {
        transform: translateX(-50%) rotate(0deg) scale(1) translateY(0);
        filter: drop-shadow(0 0 15px rgba(140, 140, 160, 0.4));
    }

    10% {
        transform: translateX(-50%) rotate(90deg) scale(1.2) translateY(-10px);
        filter: drop-shadow(0 0 20px rgba(200, 200, 255, 0.5)) brightness(1.1);
    }

    20% {
        transform: translateX(-50%) rotate(360deg) scale(0.9) translateY(-5px);
        filter: drop-shadow(0 0 25px rgba(180, 180, 240, 0.6)) brightness(1.15);
    }

    30% {
        transform: translateX(-50%) rotate(900deg) scale(1.3) translateY(-15px);
        filter: drop-shadow(0 0 30px rgba(160, 160, 220, 0.7)) brightness(1.2);
    }

    40% {
        transform: translateX(-50%) rotate(1800deg) scale(0.85) translateY(-8px);
        filter: drop-shadow(0 0 35px rgba(150, 150, 210, 0.75)) brightness(1.25);
    }

    50% {
        transform: translateX(-50%) rotate(2700deg) scale(1.4) translateY(-20px);
        filter: drop-shadow(0 0 40px rgba(140, 140, 200, 0.8)) brightness(1.3);
    }

    60% {
        transform: translateX(-50%) rotate(3600deg) scale(0.95) translateY(-12px);
        filter: drop-shadow(0 0 40px rgba(140, 140, 200, 0.8)) brightness(1.3);
    }

    70% {
        transform: translateX(-50%) rotate(4800deg) scale(1.3) translateY(-18px);
        filter: drop-shadow(0 0 45px rgba(130, 130, 190, 0.85)) brightness(1.35);
    }

    80% {
        transform: translateX(-50%) rotate(6000deg) scale(1.05) translateY(-10px);
        filter: drop-shadow(0 0 50px rgba(120, 120, 180, 0.9)) brightness(1.4);
    }

    90% {
        transform: translateX(-50%) rotate(6900deg) scale(1.2) translateY(-15px);
        filter: drop-shadow(0 0 50px rgba(120, 120, 180, 0.9)) brightness(1.4);
    }

    100% {
        transform: translateX(-50%) rotate(7200deg) scale(1.1) translateY(-12px);
        filter: drop-shadow(0 0 55px rgba(110, 110, 170, 0.95)) brightness(1.45);
    }
}


.character-status {
    position: absolute;
    top: -30px;
    left: -40px;
    right: auto;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    transform: rotate(-15deg);
    z-index: 200;
    pointer-events: none;
    background: transparent;

    padding: 0;
    border: none;

    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: statusWobble 3s ease-in-out infinite;
    white-space: nowrap;
    box-shadow: none;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.status-available {
    color: #6da375;

}

.status-held {
    color: #e0e0e0;

}

.status-gifted {
    color: #e08080;

}

@keyframes statusWobble {

    0%,
    100% {
        transform: rotate(-15deg) translateY(0) translateX(0);
    }

    25% {
        transform: rotate(-12deg) translateY(-3px) translateX(2px);
    }

    50% {
        transform: rotate(-15deg) translateY(-5px) translateX(0);
    }

    75% {
        transform: rotate(-18deg) translateY(-3px) translateX(-2px);
    }
}

@media (max-width: 768px) {
    .character-status {
        top: -70px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) !important;
        animation: statusFloatMobile 3s ease-in-out infinite;
    }


    .bubble-left {
        top: auto !important;
        bottom: 100% !important;
        margin-bottom: 100px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 85vw !important;
        max-width: 250px !important;
    }

    .speech-bubble .typing-text {
        white-space: normal !important;
        width: 100% !important;
        animation: fadeIn 1s ease-out forwards !important;
        border-right: none !important;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }


    @keyframes statusFloatMobile {

        0%,
        100% {
            transform: translateX(-50%) translateY(0);
        }

        50% {
            transform: translateX(-50%) translateY(-5px);
        }
    }
}