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;
    justify-content: center;
    align-items: center;
    --safe-x: max(env(safe-area-inset-left), env(safe-area-inset-right));
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: var(--safe-x);
    padding-right: var(--safe-x);
    box-sizing: border-box;
}
/* region BACKGROUND */
.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: -3;
    overflow: hidden;
}
@media (orientation: landscape) {
    .background-layer {
        width: 110%;
        left: -5%;
    }
}
@media (orientation: portrait) {
    .background-layer {
        width: 120%;
        height: 100%;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}
.background-image {
    filter: blur(1.8px);
    width: 100%;
    height: 140%;
    object-fit: cover;
    transform-origin: center;
}
.background-image::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

@media (orientation: landscape) {
    .pyramids {
        position: absolute;
        bottom: -25%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: auto;
        z-index: 2;
        display: block;
    }
}
@media (orientation: portrait) {
    .pyramids {
        position: absolute;
        bottom: 0;
        left: 43%;
        transform: translateX(-50%);
        width: clamp(156%, calc(1.8 * 100vh), 100%);
        height: auto;
        z-index: 2;
        display: block;
    }
}

.stars-1, .stars-2 {
    position: absolute;
    pointer-events: none;
    animation: stars-move 60s linear infinite, stars-twinkle 3s ease-in-out infinite alternate;
    opacity: 0.8;
}
@media (orientation: landscape) {
    .stars-1 {
        top: 0;
        left: 0;
        width: 39%;
        height: auto;
    }
}
@media (orientation: portrait) {
    .stars-1 {
        top: 5%;
        left: -2%;
        height: 50%;
    }
}
@media (orientation: landscape) {
    .stars-2 {
        top: 0;
        right: 2%;
        width: 29%;
        height: auto;
    }
}
@media (orientation: portrait) {
    .stars-2 {
        top: 4%;
        height: 40%;
    }
}
@keyframes stars-twinkle {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}
@keyframes cloudsMoveLeftUp {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-30px, -10px); }
}
@keyframes cloudsMoveRightDown {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(30px, 10px); }
}

.clouds-1,
.clouds-2 {
    position: absolute;
    top: -15%;
    pointer-events: none;
    display: block;
    z-index: 1;
}
@media (orientation: landscape) {
    .clouds-1,
    .clouds-2 {
        width: 100%;
        height: auto;
    }
}
@media (orientation: portrait) {
    .clouds-1,
    .clouds-2 {
        height: 100%;
    }
}
.clouds-1 {
    animation: cloudsMoveLeftUp 10s ease-in-out infinite alternate;
}
@media (orientation: landscape) {
    .clouds-1 {
        left: 0;
    }
}
@media (orientation: portrait) {
    .clouds-1 {
        left: -10%;
    }
}
.clouds-2 {
    right: 0;
    animation: cloudsMoveRightDown 10s ease-in-out infinite alternate;
}
/* endregion */
/* region LOGO */
#logo-placeholder {
    position: relative;
    grid-area: logo;
    display: flex;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}
@media (orientation: landscape) {
    #logo-placeholder {
        top: 0;
        left: 0;
        width: 100%;
    }
}
@media (orientation: portrait) {
    #logo-placeholder {
        align-items: center;
        padding-bottom: 1%;
    }
}
.logo-image {
    display: block;
    opacity: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    animation: logoFadeIn 1s ease-out 0.5s forwards;
}
@media (orientation: landscape) {
    .logo-image {
        height: 15vh;
        margin-bottom: 3vh;
        margin-top: 1vh;
    }
}
@media (orientation: portrait) {
    .logo-image {
        height: clamp(8dvh, 10dvh, 12dvh);
        width: auto;
        margin-top: 1.5dvh;
        max-width: 80vw;
    }
}
@keyframes logoFadeIn {
    0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* endregion */
.start-fixed {
    position: fixed;
    bottom: 2dvh;
    /*bottom: calc(env(safe-area-inset-bottom) + 8px);*/
    left: 0;
    width: 100%;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    flex-direction: column;
    text-align: center;
    display: grid;
    place-items: center;
}
.start-fixed > .loading-bar-wrapper,
.start-fixed > .start-button {
    grid-area: 1 / 1;
}
.start-gradient-background {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 20vh;
    background: linear-gradient(to top, rgba(18, 16, 48, 0.85), rgba(18, 16, 48, 0.0));
    z-index: 1;
    pointer-events: none;
}
.loading-bar-wrapper {
    position: relative;
    width: clamp(20vw, 25vw, 35vw);
    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;
    margin-top: 0;
    min-width: clamp(140px, 30vw, 320px);
    height: clamp(18px, 2.5vh, 28px);
    transition: opacity 0.35s ease;
}
.start-button {
    white-space: nowrap;
    z-index: 1;
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.start-fixed.ready .loading-bar-wrapper {
    opacity: 0;
}
.start-fixed.ready .start-button {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.loading-bar {
    width: 0;
    height: 100%;
    background: #00BFFF;
    transition: width .3s ease;
    box-shadow: 0 0 20px rgba(0,191,255,.9), 0 0 40px rgba(0,122,255,.7), 0 0 60px rgba(0,229,255,.6);
    background-size: 300% 100%;
    animation: shimmer 2s linear infinite;
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* region LANDSCAPE mobile */
.feature-preview-landscape {
    display: none;
}
@media (orientation: landscape) {
    .feature-preview-landscape-wrapper {
        position: absolute;
        top: 10%;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none;
        --lp-scale: 1;
    }
    .feature-preview-landscape {
        margin: 0 auto;
        max-height: 100%;
        display: block;
    }
    #scaled-landscape {
        display: flex;
        column-gap: clamp(1px, 5dvw, 30px);
        width: 100%;
        align-items: center;
        box-sizing: border-box;
        padding-left: 5dvw;
        padding-right: 5dvw;
        padding-bottom: 1dvw;
        transform: scale(0.9);
    }
    .features-column {
        aspect-ratio: 1 / 1;
        display: grid;
        grid-template-rows: auto auto;
        justify-content: center;
        align-items: center;
        justify-items: center;
        margin-top: -10%;
    }
    .feature-block {
        grid-row: 1;
    }
    .feature-description {
        grid-row: 2;
        margin-top: 6px;
    }
    #feature-cleopatra-landscape {
        max-width: 200px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: clamp(8px, 2vw, 24px);
    }
    #feature-desc2-landscape {
        align-self: center;
    }
    .feature-block {
        width: 250px;
        height: 200px;
        min-width: 200px;
        display: flex;
        flex-direction: column;
        position: relative;
        margin: 0;
        padding: 0;
        justify-content: center;
        overflow: visible;
        transform-origin: center;
        align-items: center;
    }
    .feature-description {
        font-weight: bold;
        text-transform: uppercase;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        font-size: clamp(14px, 1vw, 24px);
        margin: 0;
        padding: 0;
        /*max-width: 100%;*/
        /*width: 100%;*/
        width: clamp(260px, 20vw, 320px);
        box-sizing: border-box;
        z-index: 2;
        font-family: var(--main-font);
        color: rgba(100, 229, 255, 1);
        text-shadow: 0 0 6px rgb(0 4 35 / 90%),
        0 0 12px rgb(0 5 49 / 85%),
        0 0 20px rgb(0 9 31 / 80%),
        0 0 30px rgb(0 11 33 / 70%);
    }
    #cleo-column-landscape {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        gap: 12px;
        margin-top: -35px;
    }
    .cleo {
        height: auto;
        display: block;
        transition: opacity 0.1s ease;
        max-height: 60dvh;
        width: auto;
    }
    #feature-cleopatra-landscape .cleo {
        height: auto;
        max-height: 65dvh;
        width: auto;
    }
    .slot-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    .slot2-container {
        position: relative;
        width: clamp(280px, 24dvw, 380px);
        aspect-ratio: 4 / 3;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        box-sizing: border-box;
    }
    .scatter-wrapper,
    #intro-landscape {
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .scatter-wrapper {
        opacity: 1;
        visibility: visible;
        animation:
                scatterPulse 2s ease-in-out 3s forwards,
                scatterHide 0.3s ease-in-out 5s forwards;
    }
    #intro-landscape {
        opacity: 0;
        visibility: visible;
        z-index: 3;
        animation:
                introShow 0.3s ease-in-out 5s forwards,
                introPulse 2s ease-in-out 5.3s forwards;
    }
    .slot2-container img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }
    .scarab {
        width: clamp(200px, min(50vw, 60vh), 320px);
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        height: auto;
    }
    .scarab-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        filter: drop-shadow(0 4px 12px rgba(5, 10, 30, 0.7))
        drop-shadow(0 0 30px rgba(10, 15, 35, 0.4));
    }
    .or-more {
        margin-top: 160px;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        background: linear-gradient(174deg, #ffdf00 0%, #ff6a00 100%);
        background-clip: text;
        color: transparent;
        animation: hideScatter 0.01s forwards;
        animation-delay: 5.5s;
        animation-fill-mode: forwards;
        position: absolute;
        pointer-events: none;
        text-align: center;
        z-index: 2;
    }
    .fps-symbol {
        margin-top: -12%;
        position: relative;
        width: clamp(20px, min(20dvw, 18dvh), 80px);
        height: clamp(20px, min(20dvw, 18dvh), 80px);
        overflow: visible;
    }
    .fps-symbol .base {
        width: 100%;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .frame {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 140%;
        height: auto;
        opacity: 0;
        animation: dropFrameLandscape 1s ease forwards;
    }
    /* Falling Frames */
    #symbol2-landscape .frame {
        animation-delay: 0.5s;
    }
    #symbol3-landscape .frame {
        animation-delay: 1s;
    }
    .intro-popup {
        width: clamp(240px, min(60dvw, 78dvh), 360px);
        height: auto;
    }
    .divider {
        position: relative;
        text-align: center;
        width: 1.5px;
        height: 200%;
        background: linear-gradient(to bottom, transparent 0%, #FFD700 30%, #FFF8DC 50%, #FFD700 70%, transparent 100%);
        border-radius: 2px;
        opacity: 0.9;
        box-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
        margin-top: -40px;
    }
    .start-button {
        width: clamp(40dvw, 50dvw, 60dvw);
        text-transform: uppercase;
        text-align: center;
        font-weight: 500;
        background-size: 200% auto;
        font-size: clamp(0.5rem, calc(1vw + 1vh), 1.3rem);
        padding: clamp(1dvh, 1.5dvh, 2dvh);
        margin-bottom: env(safe-area-inset-bottom);
        background: linear-gradient(to right, #ffc10d, white, #ffc10d);
        background-size: 200% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: white;
        border: none;
        transform: scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.6s ease, transform 0.4s ease;
        animation: gradientShift 5s linear infinite, pulseZoom 5s ease-in-out infinite;
    }
    .loading-bar-wrapper {
        width: clamp(20vw, 22vw, 25vw);
        height: clamp(3vh, 3.1vh, 3.3vh);
        margin-bottom: env(safe-area-inset-bottom);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        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;
    }
    .stacked-block {
        margin: 0;
        align-self: flex-end;
    }
    .start-fixed {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 10;

        background: linear-gradient(to top, rgba(18, 16, 48, 0.88), rgba(18, 16, 48, 0));
        box-sizing: border-box;
    }
    #feature-block1-landscape {
        position: relative;
        overflow: visible;
    }
    .feature-bg-landscape {
        position: absolute;
        margin-top: -20%;
        width: 140%;
        height: auto;
        object-fit: contain;
        pointer-events: none;
        z-index: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    #feature-block1-landscape .slot-container {
        position: relative;
        z-index: 1;
    }
}
/* Adaptation */
@media (orientation: landscape) and (max-height: 400px) {
    #scaled-landscape {
        transform: scale(0.75);
    }
}
/* endregion */
/* region LANDSCAPE Tabs and Desktops */
@media (orientation: landscape) and (min-width: 700px) and (max-width: 740px) and (min-height: 520px) and (max-height: 560px) {
    #scaled-landscape {
        transform: scale(0.70);
        transform-origin: center center;
    }
    #feature-cleo-desc-landscape {
        margin-top: 10%;
    }
    #scaled-landscape > * + * {
        margin-left: 4dvw;
    }
}
@media (orientation: landscape) and (min-width: 1000px) {
    .cleo {
        max-width: 30dvh;
    }
    .feature-separator.top {
        margin-top: 12%;
    }
    #scaled-landscape {
        column-gap: 5dvw;
    }
    #feature-cleo-desc-landscape {
        margin-top: 5dvh;
    }
}
@media (orientation: landscape) and (min-width: 1300px) {
    #scaled-landscape {
        transform: scale(1.3);
        transform-origin: center center;
    }
}
/* endregion */
@keyframes scatterPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
@keyframes scatterHide {
    to {
        opacity: 0;
        visibility: hidden;
    }
}
@keyframes introShow {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}
@keyframes introPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
/* region PORTRAIT Mobile */
@media (orientation: portrait) {
    .feature-preview-landscape-wrapper {
        position: relative;
        width: 100%;
        height: 80dvh;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-inline: clamp(12px, 4vw, 40px);
        padding-bottom: clamp(16px, 4vh, 40px);
        box-sizing: border-box;
        pointer-events: none;
    }
    .feature-preview-landscape {
        width: 100%;
        height: 80dvh;
        margin: 0 auto;
        display: block;
    }
    #scaled-landscape {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        row-gap: clamp(6px, 2dvh, 10px);
        width: 100%;
        height: 80dvh;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        transform: none;
    }
    .features-column {
        margin: 0 auto;
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: clamp(6px, 1.5vh, 10px);
    }
    #scaled-landscape > .features-column:first-of-type {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: clamp(6px, 1.5vh, 10px);
    }
    #scaled-landscape > .features-column:last-of-type {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: clamp(6px, 1.5vh, 10px);
        /*transform: scale(0.85);*/
    }
    #cleo-column-landscape {
        height: 30dvh;
        margin: 0 auto;
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: clamp(6px, 1dvh, 10px);
    }
    .feature-block {
        width: 100%;
        max-width: 420px;
        height: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        transform-origin: center;
    }
    .feature-bg-landscape {
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 116%;
        height: auto;
        object-fit: contain;
        pointer-events: none;
        z-index: 0;
    }
    #feature-block1-landscape .slot-container {
        transform: scale(0.8);
        position: relative;
        z-index: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: clamp(6px, 2vw, 12px);
    }
    .fps-symbol {
        position: relative;
        width: clamp(40px, 20vw, 70px);
        height: clamp(40px, 20vw, 70px);
        overflow: visible;
    }
    .fps-symbol .base {
        width: 100%;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .frame {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 140%;
        height: auto;
        opacity: 0;
        animation: dropFramePortrait 1s ease forwards;
    }
    #symbol2-landscape .frame { animation-delay: 0.5s; }
    #symbol3-landscape .frame { animation-delay: 1s; }
    #feature-block1-landscape .divider {
        width: 2px;
        height: 80px;
        background: linear-gradient(to bottom,
        transparent 0%,
        #FFD700 30%,
        #FFF8DC 50%,
        #FFD700 70%,
        transparent 100%);
        border-radius: 2px;
        opacity: 0.9;
        box-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
        margin: 0;
        z-index: 9999;
    }
    .scarab {
        width: clamp(180px, 65dvw, 260px);
        position: absolute;
        bottom: -1px;
        left: 50%;
        transform: translateX(-50%);
        height: auto;
    }
    .scarab-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        filter:
                drop-shadow(0 4px 12px rgba(5, 10, 30, 0.7))
                drop-shadow(0 0 30px rgba(10, 15, 35, 0.4));
    }
    .feature-description,
    #feature-cleo-desc-landscape {
        font-weight: bold;
        text-transform: uppercase;
        text-align: center;
        font-size: clamp(10px, 3.4vw, 14px);
        margin: 0;
        padding: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        z-index: 200;
        font-family: var(--main-font);
        color: rgba(100, 229, 255, 1);
        text-shadow:
                0 0 6px rgba(0, 4, 35, 0.9),
                0 0 12px rgba(0, 5, 49, 0.85),
                0 0 20px rgba(0, 9, 31, 0.8),
                0 0 30px rgba(0, 11, 33, 0.7);
    }
    #feature-desc1-landscape {
        margin-top: 10%;
    }
    #feature-cleo-desc-landscape {
        margin-top: -4vh;
    }
    #feature-desc2-landscape {
        margin-top: -10%;
    }
    #feature-cleopatra-landscape {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .cleo {
        margin-top: -5%;
        display: block;
        height: 28dvh;
        transition: opacity 0.1s ease;
    }
    .slot2-container {
        margin-top: -14%;
        position: relative;
        width: min(100%, 420px);
        aspect-ratio: 4 / 3;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        box-sizing: border-box;
    }
    .slot2-container img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }
    .scatter-wrapper,
    #intro-landscape {
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .scatter-wrapper {
        opacity: 1;
        visibility: visible;
        animation:
                scatterPulse 2s ease-in-out 3s forwards,
                scatterHide 0.3s ease-in-out 5s forwards;
    }
    .scatter.landscape {
        width: clamp(180px, 60vw, 320px);
        height: auto;
    }
    .or-more {
        position: absolute;
        bottom: 12%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 14px;
        font-weight: 600;
        background: linear-gradient(174deg, #ffdf00 0%, #ff6a00 100%);
        background-clip: text;
        color: transparent;
        pointer-events: none;
        text-align: center;
        z-index: 2;
        animation: hideScatter 0.01s forwards;
        animation-delay: 5.5s;
        animation-fill-mode: forwards;
    }
    #intro-landscape {
        opacity: 0;
        visibility: visible;
        z-index: 3;
        animation:
                introShow 0.3s ease-in-out 5s forwards,
                introPulse 2s ease-in-out 5.3s forwards;
    }
    .intro-popup {
        width: clamp(220px, 70vw, 360px);
        height: auto;
    }
    .start-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        background: linear-gradient(to top, rgba(18, 16, 48, 0.88), rgba(18, 16, 48, 0));
        box-sizing: border-box;
        z-index: 3;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 2vh;
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: 5vw;
        padding-right: 5vw;
    }
    .loading-bar-wrapper {
        position: absolute;
        bottom: clamp(1vh, 2vh, 3vh);
        left: 50%;
        transform: translateX(-50%);
        width: clamp(40vw, 45vw, 50vw);
        height: clamp(1.6vh, 2vh, 2.5vh);
        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, #FFD700, #FFB700, #FFA500, #FFD700);
        background-size: 300% 100%;
        animation: shimmer 2s linear infinite;
        transition: width 0.3s ease;
        border-radius: 999px;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 200, 0, 0.5), 0 0 60px rgba(255, 180, 0, 0.4);
    }
    .start-button {
        /*font-size: clamp(1rem, 4vw, 1.3rem);*/
        padding: clamp(1.5dvh, 2dvh, 2.5dvh) 0;
        text-align: center;
        background: linear-gradient(to right, #ffc10d, white, #ffc10d);
        background-size: 200% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        border: none;
        opacity: 0;
        pointer-events: none;
        transform: scale(0.95) translateX(-50%);
        transition: opacity 0.6s ease, transform 0.4s ease;
        animation: gradientShift 5s linear infinite, pulseZoom 5s ease-in-out infinite;
        margin-bottom: env(safe-area-inset-bottom);
        width: clamp(40dvw, 50dvw, 60dvw);
        font-size: clamp(0.7rem, calc(0.8vw + 0.8vh), 1.5rem);
        text-transform: uppercase;
        font-weight: 500;
        color: white;
    }
    .start-button.visible {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1) translateX(-50%);
    }
}
/* iPhone SE(2020/2022) — портрет */
@media (orientation: portrait) and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) {
    #scaled-landscape {
        margin-top: -6%;
        transform: scale(0.9);
    }
}
/* endregion */
/* region PORTRAIT Tab */
@media screen
and (orientation: portrait)
and (min-width: 840px) and (max-width: 870px)
and (min-height: 1250px) and (max-height: 1310px) {
    #scaled-landscape {
        transform: scale(1.2);
        transform-origin: top center;
        margin-top: 6%;
    }
}
/* Великі портретні планшети: iPad / Asus Fold / інші */
@media screen
and (orientation: portrait)
and (min-width: 744px) and (max-width: 1024px)
and (min-height: 1000px) and (max-height: 1400px) {
    #scaled-landscape {
        transform: scale(1.3);
        transform-origin: top center;
    }
}

/* endregion */

.popup.visible {
    opacity: 1;
    visibility: visible;
    animation: showPopup 0.5s ease forwards, pulse 2s ease-in-out infinite;
    animation-delay: 3s, 3.6s;
}

/* region падаючі фрейми */
@keyframes dropFramePortrait {
    0% {
        top: -150px;
        opacity: 0;
    }
    100% {
        top: -14px;
        opacity: 1;
    }
}

@keyframes dropFrameLandscape {
    0% {
        top: -150px;
        opacity: 0;
    }
    100% {
        top: -18px;
        opacity: 1;
    }
}
/* endregion */
/* region камінчики на восьминогу */
.scarab-1 { animation: show1 2s steps(1) forwards; }
.scarab-2 { animation: show2 2s steps(1) forwards; }
.scarab-3 { animation: show3 2s steps(1) forwards; }
@keyframes show1 {
    0%, 32% { opacity: 1; }
    33%, 100% { opacity: 0; }
}
@keyframes show2 {
    0%, 32% { opacity: 0; }
    33%, 65% { opacity: 1; }
    66%, 100% { opacity: 0; }
}
@keyframes show3 {
    0%, 65% { opacity: 0; }
    66%, 100% { opacity: 1; }
}
/* endregion */
.hidden {
    display: none !important;
}

.pop-in {
    opacity: 0;
    transform: scale(1.4);
    animation: popWild 0.5s forwards ease-in-out;
}
@keyframes popWild {
    0%   { opacity: 0; transform: scale(0.5) rotate(-15deg); }
    50%  { opacity: 1; transform: scale(1.3) rotate(10deg); }
    100% { opacity: 1; transform: translateY(9%) scale(1.2) rotate(0deg); }
}
.hidden {
    display: none !important;
}
.pop-in {
    opacity: 0;
    transform: scale(1.4);
    animation: popWild 0.5s forwards ease-in-out;
}

/* Hide Scatter */
@keyframes hideScatter {
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Hide Or More */
@keyframes hideOr-more {
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Show Popup after 3s */
@keyframes showPopup {
    to {
        opacity: 1;
        visibility: visible;
    }
}
@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    /*0%, 100% { transform: scale(1); }*/
    /*50% { transform: scale(1.05); }*/
}
@keyframes pulseLandscape {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* region SOUND BUTTON */
#sound-toggle {
    position: absolute;
    width: clamp(40px, 6vh, 10vh);
    height: clamp(40px, 6vh, 10vh);
    cursor: pointer;
    transition: all 0.3s ease;
}
@media (orientation: landscape) {
    #sound-toggle {
        bottom: 3vh;
        right: clamp(2vw, 3vw, 4vw);
        z-index: 9999;
    }
}
@media (orientation: portrait) {
    #sound-toggle {
        bottom: 1.5vh;
        right: clamp(3vw, 4vw, 5vw);
        z-index: 999;
    }
}
#sound-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* endregion */
/* region LOADING*/
.loading-bar{
    position: relative;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #00BFFF;
    transition: width .3s ease;
    box-shadow: 0 0 20px rgba(0,191,255,.9),
    0 0 40px rgba(0,122,255,.7),
    0 0 60px rgba(0,229,255,.6);
    overflow: hidden;
}

.loading-bar::after{
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: repeating-linear-gradient(90deg,
    #00BFFF 0%,
    #00A0FF 25%,
    #007BFF 50%,
    #00E5FF 75%,
    #00BFFF 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2.2s linear infinite;
    will-change: background-position;
    transform: translateZ(0);
}

@keyframes shimmer{
    to { background-position: -200% 0; }
}
.loading-percent {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--main-font, sans-serif);
    color: white;
    font-weight: bold;
    pointer-events: none;
}

@media (orientation: portrait) {
    .loading-percent {
        font-size: clamp(10px, 1vw, 14px);
    }
}

@media (orientation: landscape) {
    .loading-percent {
        font-size: clamp(6px, 1vw, 14px);
    }
}

.loading-bar.is-complete::after{ animation: none; }

/* endregion */
/* region PRESS TO START */
.start-button.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}
@keyframes pulseZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
/* endregion */

.bubbles-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.bubble {
    position: absolute;
    bottom: -5%;
    width: var(--size, 10px);
    height: auto;
    animation: bubble-float var(--duration, 20s) linear infinite;
    animation-delay: var(--delay, 0s);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
    will-change: bottom, transform, opacity;
}
@keyframes bubble-float {
    0% {
        bottom: -5%;
        opacity: 0;
        transform: translateX(var(--x-shift, 0px));
    }
    3% {
        opacity: 1;
    }
    50% {
        bottom: 50%;
        transform: translateX(calc(var(--x-shift, 0px) + 10px));
    }
    80% {
        bottom: 110%;
        opacity: 0.9;
        transform: translateX(calc(var(--x-shift, 0px) - 10px));
    }
    100% {
        bottom: 120%;
        opacity: 0;
        transform: translateX(var(--x-shift, 0px));
    }
}
.bubble:nth-child(1)  { left: 10%; --size: 10px; --duration: 18s; --delay: 0s;  --x-shift: -10px; }
.bubble:nth-child(2)  { left: 22%; --size: 20px; --duration: 22s; --delay: 1s;  --x-shift: 5px; }
.bubble:nth-child(3)  { left: 35%; --size: 15px; --duration: 24s; --delay: 3s;  --x-shift: -5px; }
.bubble:nth-child(4)  { left: 48%; --size: 30px; --duration: 28s; --delay: 1s;  --x-shift: 10px; }
.bubble:nth-child(5)  { left: 60%; --size: 25px; --duration: 18s; --delay: 0s;  --x-shift: -15px; }
.bubble:nth-child(6)  { left: 72%; --size: 10px; --duration: 20s; --delay: 2s;  --x-shift: 0px; }
.bubble:nth-child(7)  { left: 82%; --size: 15px; --duration: 26s; --delay: 6s; --x-shift: 12px; }
.bubble:nth-child(8)  { left: 15%; --size: 25px; --duration: 19s; --delay: 12s; --x-shift: -8px; }
.bubble:nth-child(9)  { left: 40%; --size: 20px; --duration: 30s; --delay: 5s;  --x-shift: 6px; }
.bubble:nth-child(10) { left: 88%; --size: 10px; --duration: 16s; --delay: 14s; --x-shift: -12px; }
.bubble:nth-child(11) { left: 5%;  --size: 12px; --duration: 17s; --delay: 2s;  --x-shift: -6px; }
.bubble:nth-child(12) { left: 18%; --size: 18px; --duration: 21s; --delay: 7s;  --x-shift: 3px; }
.bubble:nth-child(13) { left: 28%; --size: 14px; --duration: 25s; --delay: 11s; --x-shift: -4px; }
.bubble:nth-child(14) { left: 43%; --size: 26px; --duration: 27s; --delay: 4s;  --x-shift: 9px; }
.bubble:nth-child(15) { left: 55%; --size: 22px; --duration: 19s; --delay: 9s;  --x-shift: -9px; }
.bubble:nth-child(16) { left: 67%; --size: 13px; --duration: 23s; --delay: 1s;  --x-shift: 2px; }
.bubble:nth-child(17) { left: 78%; --size: 24px; --duration: 29s; --delay: 13s; --x-shift: 10px;}
.bubble:nth-child(18) { left: 90%; --size: 16px; --duration: 20s; --delay: 6s;  --x-shift: -7px; }
.bubble:nth-child(19) { left: 50%; --size: 10px; --duration: 32s; --delay: 15s; --x-shift: 4px;}
.bubble:nth-child(20) { left: 2%;  --size: 14px; --duration: 18s; --delay: 5s;  --x-shift: -3px;}
