:root {
    --p4-yellow-bg: #FFBB0A;
}

@font-face {
    font-family: 'Fontsona4Golden';
    src: url('../assets/font/Fontsona4Golden.ttf') format('truetype');
}

@font-face {
    font-family: 'lunchtype24';
    src: url('../assets/font/lunchtype24.ttf') format('truetype');
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Fontsona4Golden', 'Arial Black', Arial, sans-serif;
    user-select: none;
}

/* ─── MENU ─────────────────────────────────────────────────────────────────── */

.menu-overlay {
    position: absolute;
    top: -12vh;
    left: 0;
    width: 31.25vw;
    height: 100vh;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    pointer-events: none;
    padding-top: 20vh;
    padding-left: 0.729vw;
    opacity: 0;
    transform-origin: left center;
}

.menu-items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.926vmin;
    pointer-events: all;
}

.menu-item {
    color: #252525;
    font-size: 7.3vh;
    font-family: 'Fontsona4Golden';
    -webkit-text-stroke: 1.667vmin #fff;
    paint-order: stroke fill;
    transition: transform 0.1s ease, color 0.1s ease;
    line-height: 0.85;
    transform: perspective(46.296vmin) rotateY(-5deg) scaleY(0.75);
    transform-origin: left center;
    cursor: pointer;
}

.menu-item.active {
    font-size: 13vh;
    margin: 0.926vmin 0;
    line-height: 0.8;
    transform: perspective(46.296vmin) rotateY(-8deg) scale(1.05) scaleY(0.82);
}

.menu-item.jump {
    animation: p4-jump 0.15s ease-out;
}

@keyframes p4-jump {
    0% {
        transform: perspective(46.296vmin) rotateY(-8deg) scale(1.05) scaleY(0.82) translateY(0);
    }

    50% {
        transform: perspective(46.296vmin) rotateY(-8deg) scale(1.05) scaleY(0.82) translateY(-0.926vmin);
    }

    100% {
        transform: perspective(46.296vmin) rotateY(-8deg) scale(1.05) scaleY(0.82) translateY(0);
    }
}

.menu-footer {
    position: absolute;
    bottom: 2vh;
    transform: perspective(46.296vmin) rotateX(10deg) scaleY(0.9);
    font-size: 3.2vh;
    color: #111;
    white-space: nowrap;
    text-shadow:
        -0.093vmin -0.093vmin 0 #fff, 0.093vmin -0.093vmin 0 #fff,
        -0.093vmin 0.093vmin 0 #fff, 0.093vmin 0.093vmin 0 #fff,
        -0.185vmin -0.185vmin 0 #fff, 0.185vmin -0.185vmin 0 #fff,
        -0.185vmin 0.185vmin 0 #fff, 0.185vmin 0.185vmin 0 #fff,
        -0.278vmin -0.278vmin 0 #fff, 0.278vmin -0.278vmin 0 #fff,
        -0.278vmin 0.278vmin 0 #fff, 0.278vmin 0.278vmin 0 #fff,
        0 0.370vmin 0 #fff;
}

@keyframes menu-active-reveal {
    0% {
        transform: perspective(46.296vmin) rotateY(-8deg) scale(1.05) scaleY(0);
        opacity: 0;
    }

    100% {
        transform: perspective(46.296vmin) rotateY(-8deg) scale(1.05) scaleY(0.82) translateY(0);
        opacity: 1;
    }
}

@keyframes menu-item-slide-in {
    0% {
        transform: perspective(46.296vmin) rotateY(-5deg) scaleY(0.75) translateX(15vw);
        opacity: 0;
    }

    100% {
        transform: perspective(46.296vmin) rotateY(-5deg) scaleY(0.75) translateX(0);
        opacity: 1;
    }
}

@keyframes menu-footer-slide-in {
    0% {
        transform: perspective(46.296vmin) rotateX(10deg) scaleY(0.9) translateX(15vw);
        opacity: 0;
    }

    100% {
        transform: perspective(46.296vmin) rotateX(10deg) scaleY(0.9) translateX(0);
        opacity: 1;
    }
}

/* ─── BACKGROUND ────────────────────────────────────────────────────────────── */

.background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #2c2c2c;
    background-image: radial-gradient(#cccccc 0.093vmin, transparent 0.093vmin);
    background-size: 2.778vmin 2.778vmin;
    z-index: -1;
}

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-video.active {
    opacity: 1;
}

/* ─── BANNER ────────────────────────────────────────────────────────────────── */

.left-banner {
    position: absolute;
    top: 0;
    left: 20.8vw;
    width: max-content;
    height: 100vh;
    display: flex;
    background: transparent;
    isolation: auto;
}

.stripe,
.gap {
    height: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    will-change: transform, opacity;
}

.gap {
    background: transparent;
}

.stripe-inner {
    position: absolute;
    top: -10vh;
    bottom: -10vh;
    left: 0;
    width: calc(100% + 200px);
    will-change: transform, clip-path;
}

.stripe.from-left .stripe-inner,
.gap.from-left .stripe-inner {
    clip-path: polygon(0px 0%, 29px 5%, 54px 10%, 77px 15%, 96px 20%, 113px 25%, 126px 30%,
            137px 35%, 144px 40%, 149px 45%, 150px 50%, 149px 55%, 144px 60%,
            137px 65%, 126px 70%, 113px 75%, 96px 80%, 77px 85%, 54px 90%,
            29px 95%, 0px 100%,
            calc(100% - 200px) 100%,
            calc(100% - 200px + 29px) 95%, calc(100% - 200px + 54px) 90%,
            calc(100% - 200px + 77px) 85%, calc(100% - 200px + 96px) 80%,
            calc(100% - 200px + 113px) 75%, calc(100% - 200px + 126px) 70%,
            calc(100% - 200px + 137px) 65%, calc(100% - 200px + 144px) 60%,
            calc(100% - 200px + 149px) 55%, calc(100% - 200px + 150px) 50%,
            calc(100% - 200px + 149px) 45%, calc(100% - 200px + 144px) 40%,
            calc(100% - 200px + 137px) 35%, calc(100% - 200px + 126px) 30%,
            calc(100% - 200px + 113px) 25%, calc(100% - 200px + 96px) 20%,
            calc(100% - 200px + 77px) 15%, calc(100% - 200px + 54px) 10%,
            calc(100% - 200px + 29px) 5%, calc(100% - 200px) 0%);
    transform: translateX(-400px);
}

.stripe.from-right .stripe-inner,
.gap.from-right .stripe-inner {
    clip-path: polygon(150px 0%, 121px 5%, 96px 10%, 73px 15%, 54px 20%, 37px 25%, 24px 30%,
            13px 35%, 6px 40%, 1px 45%, 0px 50%, 1px 55%, 6px 60%,
            13px 65%, 24px 70%, 37px 75%, 54px 80%, 73px 85%, 96px 90%,
            121px 95%, 150px 100%,
            calc(100% - 200px + 150px) 100%,
            calc(100% - 200px + 121px) 95%, calc(100% - 200px + 96px) 90%,
            calc(100% - 200px + 73px) 85%, calc(100% - 200px + 54px) 80%,
            calc(100% - 200px + 37px) 75%, calc(100% - 200px + 24px) 70%,
            calc(100% - 200px + 13px) 65%, calc(100% - 200px + 6px) 60%,
            calc(100% - 200px + 1px) 55%, calc(100% - 200px + 0px) 50%,
            calc(100% - 200px + 1px) 45%, calc(100% - 200px + 6px) 40%,
            calc(100% - 200px + 13px) 35%, calc(100% - 200px + 24px) 30%,
            calc(100% - 200px + 37px) 25%, calc(100% - 200px + 54px) 20%,
            calc(100% - 200px + 73px) 15%, calc(100% - 200px + 96px) 10%,
            calc(100% - 200px + 121px) 5%, calc(100% - 200px + 150px) 0%);
    transform: translateX(400px);
}

.stripe.straighten .stripe-inner,
.gap.straighten .stripe-inner {
    clip-path: polygon(0px 0%, 0px 5%, 0px 10%, 0px 15%, 0px 20%, 0px 25%, 0px 30%,
            0px 35%, 0px 40%, 0px 45%, 0px 50%, 0px 55%, 0px 60%,
            0px 65%, 0px 70%, 0px 75%, 0px 80%, 0px 85%, 0px 90%,
            0px 95%, 0px 100%,
            calc(100% - 200px) 100%,
            calc(100% - 200px) 95%, calc(100% - 200px) 90%,
            calc(100% - 200px) 85%, calc(100% - 200px) 80%,
            calc(100% - 200px) 75%, calc(100% - 200px) 70%,
            calc(100% - 200px) 65%, calc(100% - 200px) 60%,
            calc(100% - 200px) 55%, calc(100% - 200px) 50%,
            calc(100% - 200px) 45%, calc(100% - 200px) 40%,
            calc(100% - 200px) 35%, calc(100% - 200px) 30%,
            calc(100% - 200px) 25%, calc(100% - 200px) 20%,
            calc(100% - 200px) 15%, calc(100% - 200px) 10%,
            calc(100% - 200px) 5%, calc(100% - 200px) 0%);
    transform: translateX(0);
}

.banner-expand-bg {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(to bottom, #FFA700, var(--p4-yellow-bg), #FFA700);
    transform-origin: center;
    transform: scaleX(0);
    will-change: transform;
    z-index: 1;
    pointer-events: none;
}

.stripe-spacer {
    flex-shrink: 0;
    height: 100%;
    background: transparent;
    position: relative;
    z-index: 10;
    mix-blend-mode: soft-light;
}

.wave-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20vmin;
    z-index: 5;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    overflow: hidden;
    opacity: 0;
}

.wave-loop {
    width: 100%;
    height: 200vh;
    display: flex;
    flex-direction: column;
    animation: wave-scroll-up 4s linear infinite;
    animation-play-state: paused;
}

@keyframes wave-scroll-up {
    0% {
        transform: translateY(0);
    }

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

.banner-glow-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 20;
}

/* ─── CORNER CIRCLE ──────────────────────────────────────────────────────────── */

.corner-circle-container {
    position: absolute;
    top: -30.093vh;
    right: -16.927vw;
    width: 53vh;
    height: 53vh;
    z-index: 50;
    pointer-events: none;
    will-change: transform, opacity;
}

.corner-circle-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border-style: solid;
}

.ring-1 {
    width: 53.556vmin;
    height: 53.556vmin;
    border-width: 2.315vmin;
    border-color: #FFFF19;
}

.ring-2 {
    width: 48.926vmin;
    height: 48.926vmin;
    border-width: 1.019vmin;
    border-color: #FFB11B;
}

.ring-3 {
    width: 46.889vmin;
    height: 46.889vmin;
    border-width: 0.741vmin;
    border-color: #FFFFFF;
}

.ring-4 {
    width: 45.407vmin;
    height: 45.407vmin;
    border-width: 0.741vmin;
    border-color: #FF3812;
}

.ring-5 {
    width: 43.926vmin;
    height: 43.926vmin;
    border-width: 1.852vmin;
    border-color: #FFFF8F;
}

.circle-fill {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40.222vmin;
    height: 40.222vmin;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(to bottom, transparent, #9a9dff 130%);
}

/* ─── HUD ─────────────────────────────────────────────────────────────────── */

.hud-container {
    position: absolute;
    top: 3.6vh;
    right: 5.729vw;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    font-family: 'lunchtype24';
    font-weight: 800;
}

.date-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #1a1a1a;
    color: white;
    width: 20.521vw;
    height: 3.148vh;
    border-radius: 3.704vmin;
    padding: 0 2.083vw;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 1;
}

.numbers {
    font-size: 3.519vmin;
    letter-spacing: 1.111vmin;
    display: flex;
    align-items: center;
    transform: perspective(46.296vmin) rotateY(-5deg) scaleY(1.2);
}

.day {
    color: #ff9e9e;
    font-size: 3.241vmin;
    letter-spacing: -0.278vmin;
    margin-left: 0.926vmin;
}

.time-of-day {
    font-size: 4.0vh;
    color: white;
    font-weight: 900;
    line-height: 1.35;
    -webkit-text-stroke: 0.833vmin #252424;
    paint-order: stroke fill;
    margin-right: 3.125vw;
    transform: perspective(46.296vmin) rotateY(-5deg) scaleY(1.30);
}

.weather-container {
    background-color: #252525;
    border: 1.019vmin solid #FFFF1A;
    width: 12.259vmin;
    height: 12.259vmin;
    border-radius: 50%;
    margin-top: 0.593vh;
    margin-right: -5vw;
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: perspective(46.296vmin) rotateY(-5deg);
    overflow: hidden;
    box-sizing: border-box;
}

.weather-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: brightness(0) saturate(100%) invert(98%) sepia(90%) saturate(1200%) hue-rotate(0deg) brightness(105%);
}

/* ─── BUTTON PROMPTS ─────────────────────────────────────────────────────────── */

.button-prompts {
    position: absolute;
    /*bottom: 2.222vh;*/
    bottom: var(--taskbar-offset, 0px);
    right: 1.667vw;
    display: flex;
    align-items: center;
    gap: 1.852vmin;
    z-index: 150;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0.926vmin);
}

.button-prompt {
    display: flex;
    align-items: center;
    gap: 0.556vmin;
}

.btn-circle {
    width: 3.519vmin;
    height: 3.519vmin;
    border-radius: 50%;
    background-color: #252525;
    border: 0.37vmin solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8b8b8;
    font-family: 'lunchtype24', 'Fontsona4Golden', Arial, sans-serif;
    font-weight: 900;
    font-size: 1.667vmin;
    flex-shrink: 0;
}

.btn-label {
    color: #252525;
    font-family: 'Fontsona4Golden', Arial, sans-serif;
    font-size: 2.407vmin;
    -webkit-text-stroke: 1.063vmin #ffffff;
    paint-order: stroke fill;
    line-height: 1;
    transform: perspective(46.296vmin) rotate(340deg) scaleY(0.85);
    transform-origin: left center;
    white-space: nowrap;
    margin-bottom: 2.4vmin;
}

/* ─── CURRENCY UI (CLICK COUNTER) ─────────────────────────────────────────────────── */

.currency-banner {
    position: absolute;
    /*bottom: 2.222vh;*/
    bottom: var(--taskbar-offset, 0px);
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    padding: 0.926vh 3.704vw 0.2vh 10vh;
    z-index: 150;
    pointer-events: none;
    min-width: 28vw;
    border-radius: 0 0.741vh 0.741vh 0;
    transform-origin: left center;
}

.currency-symbol-container {
    position: absolute;
    left: 4vh;
    top: -2vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}


.currency-symbol-svg {
    height: 9vh;
    width: auto;
    position: relative;
    top: -0.3vh;
}

.symbol-path {
    fill: #242424;
    stroke: #ffffff;
    stroke-width: 50px;
    stroke-linejoin: round;
    stroke-linecap: round;
    paint-order: stroke fill;
}

.currency-amount {
    font-family: 'lunchtype24', 'Fontsona4Golden', Arial, sans-serif;
    font-size: 5.185vh;
    font-style: italic;
    font-weight: 900;
    color: white;
    letter-spacing: 0.093vh;
    line-height: 1;
}

@keyframes currency-reveal {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}