@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@500;700;900&display=swap');
@supports (height: 100svh) {
    html, body,
    #feature-preview-screen,
    #fps-wrapper {
        height: 100svh !important;
        max-height: 100svh !important;
    }
    /*#section-button {*/
    /*    padding-bottom: clamp(1vh, env(safe-area-inset-bottom, 2vh), 3vh);*/
    /*}*/
}
html, body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    overflow: hidden;
}

#feature-preview-screen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
}

.landscape-bg {
    display: block;
    z-index: -1;
}
.portrait-bg {
    display: none;
}

@media (orientation: portrait) {
    .landscape-bg {
        display: none;
    }

    .portrait-bg {
        display: block;
        z-index: -1;
    }
}

.glow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: normal;
}

#fps-wrapper {
    display: grid;
    place-items: center;
    grid-template-areas:
            "logo logo logo"
            "feature-block1 . feature-block3"
            "feature-desc1 . feature-desc3"
            "start-button start-button start-button";

    grid-template-columns: 40vw 1vw 40vw;

    height: 100vh;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
}

#logo-placeholder {
    position: absolute;
    grid-area: logo;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    margin-bottom: 5vh;
}

.logo-image {
    height: clamp(18vh, 25vh, 28vh);
    display: block;
    opacity: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    animation: logoFadeIn 1s ease-out 0.5s forwards;
    margin-bottom: 4vh;
    margin-top: 1vh;
}

#sound-toggle {
    position: absolute;
    bottom: 3vh;
    right: clamp(2vw, 3vw, 4vw);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
}

#sound-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#feature-block1 {
    grid-area: feature-block1;
}

#feature-block3 {
    grid-area: feature-block3;
}

#feature-desc1 {
    grid-area: feature-desc1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#feature-desc3 {
    grid-area: feature-desc3;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.highlight-title {
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: transparent;
    text-align: center;
    font-size: clamp(1rem, calc(1.5vw + 1vh), 2.7rem);
    background: linear-gradient(to bottom, #ecff26 30%, #a6f10b 50%, #2bd100 100%);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.3px #00ff3f;
    text-stroke: 1.3px #00ff3f;
    filter:
            drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.2))
            drop-shadow(0px 0px 10px rgba(43, 0, 70, 0.2))
            drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.2)) !important;

    text-shadow: none !important;
    font-weight: 900;
}

.feature-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
}

#section-button {
    position: sticky;
    grid-area: start-button;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1vh;
    z-index: 10;
    /*padding-bottom: 2vh;*/
}

.feature-image {
    display: block;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    filter: none !important;
    mix-blend-mode: normal;
}

.stacked-block {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: visible;
}

.stacked-block img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
}

/* region ANIMATIONS */
@keyframes spinClockwiseWinCherry {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(810deg); }
}

@keyframes spinClockwiseWinOrange {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(770deg); }
}

.spin-wheel-1 {
    transform-origin: center center;
    animation: spinClockwiseWinOrange 1.8s ease-out forwards,
    fadeOutWheel 0.5s ease-in forwards 1.8s;
    filter:
            drop-shadow(0 0 10px  rgba(255, 126, 0, 1))
            drop-shadow(0 0 14px  rgba(255, 126, 0, 0.8))
            drop-shadow(0 0 24px rgba(255, 126, 0, 0.5)) !important;
    -webkit-filter:
            drop-shadow(0 0 10px  rgba(255, 126, 0, 1))
            drop-shadow(0 0 14px  rgba(255, 126, 0, 0.8))
            drop-shadow(0 0 24px rgba(255, 126, 0, 0.5)) !important;
}

.spin-wheel-2 {
    opacity: 0;
    transform-origin: center center;
    animation: fadeInAndSpin 1.8s ease-out forwards 1.8s,
    fadeOutWheel 0.4s ease-in forwards 3.6s;
    filter:
            drop-shadow(0 0 10px rgba(43, 228, 0, 1))
            drop-shadow(0 0 14px rgba(43, 228, 0, 0.8))
            drop-shadow(0 0 24px rgba(43, 228, 0, 0.5)) !important;
    -webkit-filter:
            drop-shadow(0 0 10px rgba(43, 228, 0, 1))
            drop-shadow(0 0 14px rgba(43, 228, 0, 0.8))
            drop-shadow(0 0 24px rgba(43, 228, 0, 0.5)) !important;
}

.spin-wheel-3 {
    opacity: 0;
    transform-origin: center center;
    animation: fadeInAndSpin 1.8s ease-out forwards 3.6s,
    fadeOutWheel 0.4s ease-in forwards 5.4s;
    filter:
            drop-shadow(0 0 10px rgba(255, 44, 49, 1))
            drop-shadow(0 0 14px rgba(255, 44, 49, 0.8))
            drop-shadow(0 0 24px rgba(255, 44, 49, 0.5)) !important;
    -webkit-filter:
            drop-shadow(0 0 10px rgba(255, 44, 49, 1))
            drop-shadow(0 0 14px rgba(255, 44, 49, 0.8))
            drop-shadow(0 0 24px rgba(255, 44, 49, 0.5)) !important;
}

@keyframes fadeInAndSpin {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1) rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(100deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(810deg);
    }
}

@keyframes fadeOutWheel {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

@keyframes showWin {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.spin-wheel-win1 {
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: showWin 0.3s ease-out forwards 1.4s,
                fadeOutAfterAnim 0.3s ease-out forwards 5.6s;
    mix-blend-mode: hard-light;
}

.spin-wheel-win2 {
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: showWin 0.3s ease-out forwards 3.2s,
                fadeOutAfterAnim 0.3s ease-out forwards 5.6s;
    mix-blend-mode: hard-light;
}

.spin-wheel-win3 {
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: showWin 0.3s ease-out forwards 5.0s,
                fadeOutAfterAnim 0.2s ease-in forwards 5.2s;
    mix-blend-mode: hard-light;
}

@keyframes showDashboardMultiplier {
    0%   { opacity: 0; filter: brightness(2); }
    60%  { opacity: 1; filter: brightness(1.6); }
    100% { opacity: 1; filter: brightness(1); }
}
.dashboard-multiplier1 {
    opacity: 0;
    animation: showDashboardMultiplier 0.4s ease-out forwards 1.6s,
                fadeOutAfterAnim 0.3s ease-out forwards 5.6s;
}

.dashboard-multiplier2 {
    opacity: 0;
    animation: showDashboardMultiplier 0.4s ease-out forwards 3.2s,
                fadeOutAfterAnim 0.3s ease-out forwards 5.6s;
}

.dashboard-multiplier3 {
    opacity: 0;
    animation: showDashboardMultiplier 0.4s ease-out forwards 5s,
                fadeOutAfterAnim 0.3s ease-out forwards 5.6s;
}

.shaker-1, .shaker-2, .shaker-3 {
    opacity: 0;
    transform: translate(-50%, -50%);
}

@keyframes shakerFill { 0% {opacity:0;} 100% {opacity:1;} }
@keyframes fadeOutAfterAnim {
    to { opacity:0; visibility:hidden; pointer-events:none; }
}

.shaker-1 { --fill-delay: 1.7s; z-index: 2; }
.shaker-2 { --fill-delay: 3.5s; z-index: 3; }
.shaker-3 { --fill-delay: 5s; z-index: 4; }

.shaker-1, .shaker-2, .shaker-3 {
    animation-name: shakerFill, fadeOutAfterAnim;
    animation-duration: 0.6s, 0.3s;
    animation-delay: var(--fill-delay), 5.6s;
    animation-timing-function: ease-out, ease-out;
    animation-fill-mode: forwards, forwards;
}

.shaker {
    animation-name: fadeOutAfterAnim;
    animation-duration: 0.3s;
    animation-delay: 5.6s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.third-scene {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 15;
    filter: brightness(1.1) saturate(1.1) 
            drop-shadow(0 0 5px rgba(0, 255, 200, 0.9))
            drop-shadow(0 0 15px rgba(0, 220, 180, 0.7))
            drop-shadow(0 0 20px rgba(0, 180, 255, 0.5));
    animation: 
            smoothRadiantAppear 1.5s ease-out forwards 6s,
            epicGlow 3s ease-in-out infinite 7.5s;
}

.third-scene-base {
    animation: 
            smoothRadiantAppear 1.5s ease-out forwards 6s,
            epicGlow 3s ease-in-out infinite 7.5s,
            winZoomSmooth 0.6s ease-in-out forwards 8s,
            fadeOutQuick 0.3s ease-out forwards 8.7s;
}

.third-scene-1 {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    z-index: 16;
    animation: 
            fadeInSimple 0.4s ease-out forwards 9s,
            winZoomSmooth 0.6s ease-in-out forwards 9.9s,
            epicGlow 1.5s ease-in-out infinite 9.4s,
            fadeOutQuick 0.2s ease-out forwards 11s;
}

.third-scene-2 {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    z-index: 16;
    animation: 
            fadeInSimple 0.4s ease-out forwards 11.2s,
            winZoomSmooth 0.6s ease-in-out forwards 12.1s,
            epicGlow 1.5s ease-in-out infinite 11.6s,
            fadeOutQuick 0.2s ease-out forwards 13s;
}

.third-scene-3 {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    z-index: 16;
    animation: 
            fadeInSimple 0.4s ease-out forwards 13.2s,
            winZoomSmooth 0.6s ease-in-out forwards 14.1s,
            epicGlow 1.5s ease-in-out infinite 13.6s;
}

@keyframes fadeInSimple {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes winZoomSmooth {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.06);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOutQuick {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes smoothRadiantAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
        filter: brightness(3) blur(15px) saturate(2) drop-shadow(0 0 20px rgba(0, 255, 200, 1));
    }
    40% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.95);
        filter: brightness(2.5) blur(8px) saturate(1.8) drop-shadow(0 0 15px rgba(0, 255, 150, 0.7));
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.02);
        filter: brightness(1.5) blur(1px) saturate(1.2) 
                drop-shadow(0 0 8px rgba(0, 220, 200, 0.8))
                drop-shadow(0 0 12px rgba(0, 200, 180, 0.7));
    }
    85% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.01);
        filter: brightness(1.2) blur(0.5px) saturate(1.15) 
                drop-shadow(0 0 6px rgba(0, 240, 200, 0.85))
                drop-shadow(0 0 14px rgba(0, 210, 180, 0.7))
                drop-shadow(0 0 18px rgba(0, 180, 255, 0.55));
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1.1) saturate(1.1) 
                drop-shadow(0 0 5px rgba(0, 255, 200, 0.9))
                drop-shadow(0 0 15px rgba(0, 220, 180, 0.7))
                drop-shadow(0 0 20px rgba(0, 180, 255, 0.5));
    }
}

@keyframes epicGlow {
    0%, 100% { 
        filter: brightness(1.1) 
                drop-shadow(0 0 5px rgba(0, 255, 200, 0.9))
                drop-shadow(0 0 15px rgba(0, 220, 180, 0.7))
                drop-shadow(0 0 20px rgba(0, 180, 255, 0.5));
    }
    50% { 
        filter: brightness(1.4) 
                drop-shadow(0 0 15px rgba(0, 255, 200, 1))
                drop-shadow(0 0 25px rgba(0, 220, 180, 0.9))
                drop-shadow(0 0 30px rgba(0, 180, 255, 0.7));
    }
}

@keyframes fadeOutAfterAnim {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes hideForSecondScene {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}
/* endregion */

.dashboard,
.spinning,
.shaker-mouth-open {
    animation-name: hideForSecondScene;
    animation-duration: 0.3s;
    animation-delay: 5.6s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    z-index: 0;
}

.feature-description {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;

    font-size: clamp(0.5rem, calc(1vw + 1vh), 1.8rem);
    line-height: 1.3;
    font-weight: 900;
    margin: 0;
    padding: 0;
    max-width: 40vw;
    width: 100%;
    box-sizing: border-box;
    z-index: 3;
    font-family: "Noto Sans", sans-serif;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.6px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
}

.start-fixed-portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-bar-wrapper {
    position: absolute;
    width: clamp(20vw, 25vw, 35vw);
    height: clamp(2.4vh, calc(1.8vh + 0.6vw), 4vh);
    background: radial-gradient(circle at center,
    rgba(60, 90, 120, 0.4),
    rgba(10, 30, 60, 0.6));
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.6);
    border: 2px solid #f8f8f8;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(
            90deg,
            #00ff85,
            #00ffee,
            #00cfff,
            #00ff85,
            #ffe600,
            #ff9100,
            #ff00ff,
            #00ff85
    );
    background-size: 300% 100%;
    animation: shimmer 2s linear infinite;
    transition: width 0.3s ease;
    border-radius: 999px;
    box-shadow:
            0 0 10px rgba(0, 255, 136, 0.8),
            0 0 20px rgba(0, 255, 255, 0.6),
            0 0 35px rgba(255, 255, 0, 0.5),
            0 0 55px rgba(255, 0, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.loading-percent {
    position: absolute;
    inset: 0;
    color: #FFFFFF !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--main-font, sans-serif);

    line-height: 1;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    font-size: clamp(0.5rem, calc(1svw + 0.5svh), 1.5rem);
}

/* START BUTTON */
.start-button {
    font-family: "Noto Sans", sans-serif;
    font-size: clamp(0.5rem, calc(1vw + 1vh), 1.2rem);
    text-transform: uppercase;
    padding: clamp(1.2vh, 2vh, 3vh) clamp(3vw, 5vw, 6vw);
    bottom: 1vh;
    text-align: center;
    letter-spacing: 0.05em;
    font-weight: 700;
    width: 100%;

    background: linear-gradient(
            to right,
            #baff3b,
            #007736,
            #00ff3f,
            #01a579,
            #baff3b
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgb(186, 255, 59));

    border: none;
    color: white;

    position: static;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.4s ease;
    animation: shimmerMetallic 6s linear infinite, pulseZoom 4s ease-in-out infinite;
    white-space: nowrap;
    z-index: 5;
}

@keyframes shimmerMetallic {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.start-button.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

@keyframes pulseZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes blurPulse {
    0%, 100% { filter: blur(6px); }
    50% { filter: blur(10px); }
}

@keyframes subtleZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes parallaxZoom {
    0%, 100% { transform: scale(1.05) translate(0, 0); }
    50% { transform: scale(1.12) translate(-1.5%, 1.5%); }
}

@keyframes parallaxShift {
    0% { transform: translate(0%, 0%) scale(1.05); }
    25% { transform: translate(1.5%, -1%) scale(1.08); }
    50% { transform: translate(-1%, 2%) scale(1.1); }
    75% { transform: translate(2%, 1%) scale(1.07); }
    100% { transform: translate(0%, 0%) scale(1.05); }
}

@keyframes brightnessPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.08); }
}

@keyframes overlayPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.28; }
}

@keyframes logoFadeIn {
    0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1400px){
    .feature-description {
        font-size: clamp(0.4rem, calc(1vw + 1vh), 0.8rem);
    }
}

/* region PORTRAIT */
@media (orientation: portrait) {
    #feature-preview-screen {
        height: 100dvh;
        min-height: 100vh;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    html, body {
        overflow-x: hidden;
        min-height: 100vh;
        width: 100vw;
    }

    #fps-wrapper {
        display: grid;
        grid-template-areas:
        "logo"
        "feature-block1"
        "feature-desc1"
        "feature-block3"
        "feature-desc3"
        "start-button";
        grid-template-columns: 1fr;
        grid-template-rows:
        minmax(6vh, auto)
        minmax(clamp(18vh, 22vh, 25vh), auto)
        minmax(auto, 8vh)
        minmax(clamp(18vh, 22vh, 25vh), auto)
        minmax(auto, 8vh)
        minmax(10vh, auto);
        row-gap: 0.8vh;
        height: 100dvh;
        min-height: 0;
        box-sizing: border-box;
        padding-top: max(env(safe-area-inset-top), 1vh);
        padding-bottom: max(env(safe-area-inset-bottom), 1vh);
        width: 100vw;
        overflow-x: hidden;
        align-content: start;
    }

    #feature-desc1 {
        grid-area: feature-desc1;
        justify-content: center;
        align-items: center;
    }

    #feature-desc3 {
        grid-area: feature-desc3;
        justify-content: center;
        align-items: center;
    }

    .feature-block.small {
        width: min(65vw, 30vh);
        height: min(65vw, 30vh);
        align-self: center;
        aspect-ratio: 1 / 1;
        justify-content: center;
        position: relative;
        overflow: visible;
    }

    .feature-block {
        max-width: 100vw;
        margin: 0 auto;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: visible;
    }

    .stacked-block {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        display: flex;
        justify-content: center;
        align-items: center;
        align-self: center;
    }

    #logo-placeholder {
        position: relative;
        grid-area: logo;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding-top: 1vh;
        z-index: 5;
    }

    .logo-image {
        height: clamp(6vh, 10vh, 12vh);
        width: auto;
        max-width: 70vw;
    }

    .feature-description {
        font-size: clamp(0.5rem, calc(1.5vw + 1.2vh), 1.8rem);
        line-height: 1.2;
        max-width: 85vw;
        padding: 0 2vw;
        text-align: center;
        margin: 0;
        max-height: 8vh;
    }
    #feature-desc3, #feature-desc1 {
        justify-content: center;
        align-items: center;
    }

    .start-fixed-portrait {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: max(env(safe-area-inset-bottom), 1.5vh);

        width: 100%;
        max-width: 90vw;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.4vh;
        z-index: 50;
        pointer-events: auto;
    }

    .loading-bar-wrapper {
        /*position: relative;*/
        width: clamp(40vw, 45vw, 50vw);
        height: clamp(1.8vh, 2.2vh, 2.8vh);
        background: radial-gradient(circle at center,
        rgba(60, 90, 120, 0.4),
        rgba(10, 30, 60, 0.6));
        border-radius: 999px;
        overflow: hidden;
        box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.6);
        border: 2px solid #f8f8f8;
    }

    .loading-percent {
        font-size: clamp(0.5rem, calc(1svw + 1svh), 1.5rem);
    }

    .start-button {
        font-family: "Noto Sans", sans-serif;
        font-size: clamp(0.5rem, calc(1vw + 1vh), 1.2rem);
        padding: clamp(1.5vh, 2vh, 2.5vh) 0;
        margin: 0;
        width: 100%;
    }

    .start-button.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .highlight-title {
        font-size: clamp(1rem, calc(1.5vw + 1vh), 2.7rem);
    }
}

@media (orientation: portrait) {
    #sound-toggle {
        position: fixed;
        bottom: max(env(safe-area-inset-bottom), 2vh);
        right: clamp(3vw, 4vw, 5vw);
        width: 40px;
        height: 40px;
        z-index: 9999;
        margin-bottom: 1vh;
    }

    #sound-toggle img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    @keyframes smoothRadiantAppear {
        0% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.8);
            filter: brightness(3) blur(10px) saturate(2) drop-shadow(0 0 8px rgba(0, 255, 200, 0.8));
        }
        40% {
            opacity: 0.7;
            transform: translate(-50%, -50%) scale(0.95);
            filter: brightness(2.5) blur(5px) saturate(1.8) drop-shadow(0 0 6px rgba(0, 255, 150, 0.6));
        }
        70% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.02);
            filter: brightness(1.5) blur(1px) saturate(1.2) 
                    drop-shadow(0 0 5px rgba(0, 220, 200, 0.7))
                    drop-shadow(0 0 8px rgba(0, 200, 180, 0.6));
        }
        85% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.01);
            filter: brightness(1.2) blur(0.5px) saturate(1.15) 
                    drop-shadow(0 0 4px rgba(0, 240, 200, 0.8))
                    drop-shadow(0 0 8px rgba(0, 210, 180, 0.6));
        }
        100% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
            filter: brightness(1.1) saturate(1.1) 
                    drop-shadow(0 0 3px rgba(0, 255, 200, 0.8))
                    drop-shadow(0 0 6px rgba(0, 220, 180, 0.6));
        }
    }
        0%, 100% { 
            filter: brightness(1.1) 
                    drop-shadow(0 0 3px rgba(0, 255, 200, 0.8))
                    drop-shadow(0 0 6px rgba(0, 220, 180, 0.6));
        }
        50% { 
            filter: brightness(1.4) 
                    drop-shadow(0 0 5px rgba(0, 255, 200, 0.9))
                    drop-shadow(0 0 10px rgba(0, 220, 180, 0.7));
        }

    @keyframes epicGlow {
        0%, 100% {
            filter: brightness(1.1) drop-shadow(0 0 3px rgba(0, 255, 200, 0.8)) drop-shadow(0 0 6px rgba(0, 220, 180, 0.6));
        }
        50% {
            filter: brightness(1.4) drop-shadow(0 0 5px rgba(0, 255, 200, 0.9)) drop-shadow(0 0 10px rgba(0, 220, 180, 0.7));
        }
    }

    .spin-wheel-1 {
        filter: drop-shadow(0 0 5px rgba(255, 126, 0, 0.9))
        drop-shadow(0 0 8px rgba(255, 126, 0, 0.6)) !important;
        -webkit-filter: drop-shadow(0 0 5px rgba(255, 126, 0, 0.9))
        drop-shadow(0 0 8px rgba(255, 126, 0, 0.6)) !important;
    }

    .spin-wheel-2 {
        filter: drop-shadow(0 0 5px rgba(43, 228, 0, 0.9))
        drop-shadow(0 0 8px rgba(43, 228, 0, 0.6)) !important;
        -webkit-filter: drop-shadow(0 0 5px rgba(43, 228, 0, 0.9))
        drop-shadow(0 0 8px rgba(43, 228, 0, 0.6)) !important;
    }

    .spin-wheel-3 {
        filter: drop-shadow(0 0 5px rgba(255, 44, 49, 0.9))
        drop-shadow(0 0 8px rgba(255, 44, 49, 0.6)) !important;
        -webkit-filter: drop-shadow(0 0 5px rgba(255, 44, 49, 0.9))
        drop-shadow(0 0 8px rgba(255, 44, 49, 0.6)) !important;
    }
}
/* endregion */


@media (orientation: landscape) {
    #fps-wrapper {
        display: grid;
        grid-template-rows:
          minmax(6vh, auto)
         1fr
          minmax(6vh, auto)
          minmax(6vh, auto);
        align-content: space-between;
        height: 100dvh;
        min-height: 0;
    }

    #section-button {
        padding-bottom: 2vh;
    }

    .feature-block {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        min-height: 0;

        flex-direction: column;
        position: relative;
        padding: 0;
        min-width: unset;
        overflow: visible;
        transform-origin: center;
    }

    .feature-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        flex-shrink: 1;
    }

    .feature-description {
        align-self: start;
        margin: 0 auto;
        min-height: 0;
        text-align: center;
    }

    .feature-block.small,
    .stacked-block {
        position: relative;
        aspect-ratio: 1 / 1;
        align-items: center;
        justify-content: center;
        max-width: 50vh;
        height: auto;
        min-height: 0;
    }

    #feature-block1, #feature-block3 {
        align-self: end;
    }

    .feature-image,
    .overlay-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
    .feature-block img.feature-image {
        position: relative;
        display: block;
        margin: 0 auto;
        object-fit: contain;
        flex-shrink: 1;
    }

    .feature-block {
        padding: 0 !important;
        display: flex;
        height: auto;
        min-height: 0;
    }

    .feature-description {
        text-align: center;
        min-height: 0;
        transform: translateY(-3vh);
    }

    #feature-desc1, #feature-desc3 {
        max-width: 80%;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .highlight-title {
        font-size: clamp(1rem, calc(1vw + 1vh), 2rem);
    }

    @keyframes smoothRadiantAppear {
        0% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.8);
            filter: brightness(3) blur(10px) saturate(2) drop-shadow(0 0 8px rgba(0, 255, 200, 0.8));
        }
        40% {
            opacity: 0.7;
            transform: translate(-50%, -50%) scale(0.95);
            filter: brightness(2.5) blur(5px) saturate(1.8) drop-shadow(0 0 6px rgba(0, 255, 150, 0.6));
        }
        70% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.02);
            filter: brightness(1.5) blur(1px) saturate(1.2)
            drop-shadow(0 0 5px rgba(0, 220, 200, 0.7))
            drop-shadow(0 0 8px rgba(0, 200, 180, 0.6));
        }
        85% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.01);
            filter: brightness(1.2) blur(0.5px) saturate(1.15)
            drop-shadow(0 0 4px rgba(0, 240, 200, 0.8))
            drop-shadow(0 0 8px rgba(0, 210, 180, 0.6));
        }
        100% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
            filter: brightness(1.1) saturate(1.1)
            drop-shadow(0 0 3px rgba(0, 255, 200, 0.8))
            drop-shadow(0 0 6px rgba(0, 220, 180, 0.6));
        }
    }
    0%, 100% {
        filter: brightness(1.1)
        drop-shadow(0 0 3px rgba(0, 255, 200, 0.8))
        drop-shadow(0 0 6px rgba(0, 220, 180, 0.6));
    }
    50% {
        filter: brightness(1.4)
        drop-shadow(0 0 5px rgba(0, 255, 200, 0.9))
        drop-shadow(0 0 10px rgba(0, 220, 180, 0.7));
    }

    @keyframes epicGlow {
        0%, 100% {
            filter: brightness(1.1)
            drop-shadow(0 0 3px rgba(0, 255, 200, 0.8))
            drop-shadow(0 0 6px rgba(0, 220, 180, 0.6));
        }
        50% {
            filter: brightness(1.4)
            drop-shadow(0 0 5px rgba(0, 255, 200, 0.9))
            drop-shadow(0 0 10px rgba(0, 220, 180, 0.7));
        }
    }

    .spin-wheel-1 {
        filter: drop-shadow(0 0 5px rgba(255, 126, 0, 0.9))
        drop-shadow(0 0 8px rgba(255, 126, 0, 0.6)) !important;
        -webkit-filter: drop-shadow(0 0 5px rgba(255, 126, 0, 0.9))
        drop-shadow(0 0 8px rgba(255, 126, 0, 0.6)) !important;
    }

    .spin-wheel-2 {
        filter: drop-shadow(0 0 5px rgba(43, 228, 0, 0.9))
        drop-shadow(0 0 8px rgba(43, 228, 0, 0.6)) !important;
        -webkit-filter: drop-shadow(0 0 5px rgba(43, 228, 0, 0.9))
        drop-shadow(0 0 8px rgba(43, 228, 0, 0.6)) !important;
    }

    .spin-wheel-3 {
        filter: drop-shadow(0 0 5px rgba(255, 44, 49, 0.9))
        drop-shadow(0 0 8px rgba(255, 44, 49, 0.6)) !important;
        -webkit-filter: drop-shadow(0 0 5px rgba(255, 44, 49, 0.9))
        drop-shadow(0 0 8px rgba(255, 44, 49, 0.6)) !important;
    }
}

@media (orientation: portrait) and (max-height: 700px) {
    /*#fps-wrapper {*/
    /*    grid-template-rows:*/
    /*    minmax(8vh, auto)        !* logo *!*/
    /*    minmax(clamp(16vh, 20vh, 22vh), auto)  !* block1 *!*/
    /*    minmax(auto, 6vh)         !* desc1 *!*/
    /*    minmax(clamp(16vh, 20vh, 22vh), auto)  !* block3 *!*/
    /*    minmax(auto, 6vh)         !* desc3 *!*/
    /*    minmax(10vh, auto);       !* start-button *!*/
    /*    row-gap: 0.5vh;*/
    /*}*/

    .feature-block.small {
        width: min(60vw, 28vh);
        height: min(60vw, 28vh);
    }

    .start-fixed-portrait {
        gap: 1vh;
        padding: 1.5vh 5vw;
    }

    .loading-bar-wrapper {
        height: clamp(1.6vh, 2vh, 2.4vh);
    }
}

@media (orientation: landscape) and (min-width: 1200px) {
    .feature-block.small,
    .stacked-block {
        max-width: 65vh;
    }
    .feature-description {
        transform: translateY(-4vh);
    }
}