@supports (height: 100svh) {
    html, body,
    #feature-preview-screen,
    #fps-wrapper {
        height: 100svh !important;
        max-height: 100svh !important;
    }
    .start-button{
        bottom: max(env(safe-area-inset-bottom, 0), clamp(14px, 2.6svh, 36px));
    }
}

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

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

.background-layer {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

#background-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    filter: brightness(0.85);
    animation: parallaxZoom 20s ease-in-out infinite;
}

.stars-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    mix-blend-mode: screen;
}

.star {
    position: absolute;
    top: var(--star-top);
    left: var(--star-left);
    width: var(--star-size);
    height: var(--star-size);
    animation: starDrift var(--drift-duration, 16s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform;
}

.star::before,
.star::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation-delay: var(--delay, 0s);
}

.star::before {
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 1) 0%,
        rgba(239, 248, 255, 1) 18%,
        rgba(208, 233, 255, 0.82) 42%,
        rgba(186, 220, 255, 0) 100%
    );
    box-shadow:
        0 0 calc(var(--star-size) * 1.8) rgba(236, 247, 255, 1),
        0 0 calc(var(--star-size) * 3.2) rgba(123, 190, 255, 0.55);
    animation: starPulse var(--twinkle-duration, 5.8s) ease-in-out infinite;
}

.star::after {
    width: calc(var(--star-size) * 3.4);
    height: calc(var(--star-size) * 3.4);
    background: radial-gradient(
        circle,
        rgba(196, 232, 255, 0.54) 0%,
        rgba(196, 232, 255, 0.18) 34%,
        rgba(188, 227, 255, 0) 74%
    );
    opacity: 0.72;
    filter: blur(1.2px);
    animation: starHaloPulse calc(var(--twinkle-duration, 5.8s) * 1.1) ease-in-out infinite;
}

.star-1 {
    --star-top: 10%;
    --star-left: 14%;
    --star-size: 4px;
    --twinkle-duration: 3.8s;
    --drift-duration: 17s;
    --delay: -0.8s;
}

.star-2 {
    --star-top: 18%;
    --star-left: 31%;
    --star-size: 3px;
    --twinkle-duration: 4.4s;
    --drift-duration: 15s;
    --delay: -2.6s;
}

.star-3 {
    --star-top: 11%;
    --star-left: 53%;
    --star-size: 5px;
    --twinkle-duration: 3.5s;
    --drift-duration: 18s;
    --delay: -1.9s;
}

.star-4 {
    --star-top: 22%;
    --star-left: 74%;
    --star-size: 3.5px;
    --twinkle-duration: 4.9s;
    --drift-duration: 14s;
    --delay: -3.2s;
}

.star-5 {
    --star-top: 37%;
    --star-left: 20%;
    --star-size: 4px;
    --twinkle-duration: 4.1s;
    --drift-duration: 19s;
    --delay: -1.4s;
}

.star-6 {
    --star-top: 33%;
    --star-left: 61%;
    --star-size: 2px;
    --twinkle-duration: 5.2s;
    --drift-duration: 13s;
    --delay: -4s;
}

.star-7 {
    --star-top: 48%;
    --star-left: 44%;
    --star-size: 5px;
    --twinkle-duration: 3.9s;
    --drift-duration: 16s;
    --delay: -2.2s;
}

.star-8 {
    --star-top: 57%;
    --star-left: 79%;
    --star-size: 3px;
    --twinkle-duration: 4.6s;
    --drift-duration: 20s;
    --delay: -0.5s;
}

.star-9 {
    --star-top: 67%;
    --star-left: 18%;
    --star-size: 2.5px;
    --twinkle-duration: 4.2s;
    --drift-duration: 15s;
    --delay: -3.8s;
}

.star-10 {
    --star-top: 72%;
    --star-left: 57%;
    --star-size: 4px;
    --twinkle-duration: 3.6s;
    --drift-duration: 17s;
    --delay: -1.1s;
}

.star-11 {
    --star-top: 84%;
    --star-left: 33%;
    --star-size: 5px;
    --twinkle-duration: 4.5s;
    --drift-duration: 19s;
    --delay: -2.9s;
}

.star-12 {
    --star-top: 81%;
    --star-left: 71%;
    --star-size: 3px;
    --twinkle-duration: 3.7s;
    --drift-duration: 14s;
    --delay: -4.4s;
}

.gems-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.gem {
    position: absolute;
    will-change: transform;
    transform-origin: center;
    --r: 0deg;
    filter: brightness(0.8);
    animation: gem-float 30s ease-in-out infinite;
}

@media (orientation: portrait) {
    .gem-10 {
        width: 100%;
        top: 20%;
    }
}

@media (orientation: landscape) {
    .gem-10 {
        position: absolute;
        width: 70%;
        left: 50%;
        top: 50%;
        animation-name: gem-float-center;
    }
}

@keyframes gem-float {
    0%, 100% {
        transform:
                translate(0, 0)
                rotate(var(--r))
                scale(1);
    }

    25% {
        transform:
                translate(-4px, -6px)
                rotate(calc(var(--r) - 6deg))
                scale(0.8);
    }

    50% {
        transform:
                translate(5px, 4px)
                rotate(calc(var(--r) + 8deg))
                scale(1.05);
    }

    75% {
        transform:
                translate(-3px, 2px)
                rotate(calc(var(--r) - 3deg))
                scale(0.8);
    }
}

@keyframes gem-float-center {
    0%, 100% {
        transform:
                translate(-50%, -50%)
                rotate(var(--r))
                scale(1);
    }

    25% {
        transform:
                translate(calc(-50% - 4px), calc(-50% - 6px))
                rotate(calc(var(--r) - 6deg))
                scale(0.8);
    }

    50% {
        transform:
                translate(calc(-50% + 5px), calc(-50% + 4px))
                rotate(calc(var(--r) + 8deg))
                scale(1.05);
    }

    75% {
        transform:
                translate(calc(-50% - 3px), calc(-50% + 2px))
                rotate(calc(var(--r) - 3deg))
                scale(0.8);
    }
}

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

    50% {
        transform: scale(1.12) translate(-1.5%, 1.5%);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes starPulse {
    0%, 100% {
        opacity: 0.42;
        transform: translate(-50%, -50%) scale(0.72);
    }

    18% {
        opacity: 0.76;
        transform: translate(-50%, -50%) scale(0.92);
    }

    38% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.22);
    }

    56% {
        opacity: 0.62;
        transform: translate(-50%, -50%) scale(0.88);
    }

    72% {
        opacity: 0.92;
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@keyframes starHaloPulse {
    0%, 100% {
        opacity: 0.12;
        transform: translate(-50%, -50%) scale(0.84);
    }

    35% {
        opacity: 0.46;
        transform: translate(-50%, -50%) scale(1.18);
    }

    65% {
        opacity: 0.28;
        transform: translate(-50%, -50%) scale(0.96);
    }
}

@keyframes starDrift {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }

    25% {
        transform: translate3d(-3px, -2px, 0);
    }

    50% {
        transform: translate3d(3px, 4px, 0);
    }

    75% {
        transform: translate3d(-2px, 2px, 0);
    }
}

@media (orientation: portrait) {
    .stars-layer {
        opacity: 0.88;
    }

    .star {
        transform: scale(0.92);
    }
}

#fps-wrapper {
    display: grid;
    place-items: center;
    grid-template-areas:
            "logo logo logo"
            "feature-block1 feature-block2 feature-block3"
            "feature-desc1 feature-desc2 feature-desc3"
            "start-button start-button start-button";
    grid-template-rows: 23vh 1fr 10vh 20vh;
    grid-template-columns: 26vw 30vw 26vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 0 6vw;
    column-gap: 2vw;
    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;
}

.logo-image {
    height: clamp(12dvh, 15dvh, 20dvh);
    display: block;
    opacity: 0;
    animation: logoFadeIn 1s ease-out 0.5s forwards;
    margin-bottom: 4dvh;
    filter: drop-shadow(0 0 6px rgba(1, 12, 48, 0.9)) drop-shadow(0 0 18px rgba(14, 26, 93, 0.5)) drop-shadow(0 0 24px rgba(142, 46, 142, 0.1));
}

@media (orientation: landscape) {
    .logo-image {
        margin-top: 2dvh;
    }
}

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

#feature-block2 {
    grid-area: feature-block2;
    padding: 0;
    height: 50vh;
    position: relative;
    width: clamp(42vw, 27vw, 34vw);
    aspect-ratio: 1 / 1;
    isolation: isolate;
}

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

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

#feature-desc2 {
    grid-area: feature-desc2;
    display: flex;
    height: 100%;
    justify-content: flex-start;
    align-items: center;

}

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

.feature-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: clamp(1vh, 2vh, 3vh);
    width: 100%;
    height: auto;
    max-width: 90%;
    min-width: 200px;
    padding: 0.2rem;
    justify-content: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
    transform-origin: center;
    opacity: 1;
}

.feature-block.large {
    width: 100%;
    margin-top: 2vh;
    overflow: visible;
}

.feature-image {
    display: block;
    object-fit: contain;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    filter:
            brightness(1.1)
            drop-shadow(0 0 6px rgba(58, 3, 66, 0.9))
            drop-shadow(0 0 18px rgba(37, 1, 26, 0.5))
            drop-shadow(0 0 24px rgba(48, 1, 48, 0.1));
}

@media (orientation: portrait) {
    .feature-image.portrait {
        filter:
                brightness(1.1)
                drop-shadow(0 0 6px rgba(58, 3, 66, 0.9))
                drop-shadow(0 0 18px rgba(37, 1, 26, 0.5))
                drop-shadow(0 0 24px rgba(48, 1, 48, 0.1));    }
}

.feature-image.landscape { display: none; }
.feature-image.portrait  { display: block; }

@media (orientation: landscape) {
    .feature-image.landscape { display: block; }
    .feature-image.portrait  { display: none; }
}

@media (orientation: portrait) {
    .feature-image.landscape { display: none; }
    .feature-image.portrait  {
        display: block;
        max-width: 100%;
        transform: scale(1.2);
    }
    #feature-block1 {
        width: clamp(40vw, 50vw, 60vw);
        height: clamp(12vh, 16vh, 18vh);
        margin: 0 auto;
    }
    #feature-block2 {
        width: clamp(50vw, 60vw, 80vw);
        height: clamp(18vh, 22vh, 24vh);
        margin: 0 auto;
    }
    #feature-block3 {
        width: clamp(40vw, 50vw, 60vw);
        height: clamp(16vh, 20vh, 22vh);
        margin: 0 auto;
    }
}

@media (orientation: portrait) and (min-height: 1000px) {
    .feature-image.portrait  {
        display: block;
        max-width: 100%;
        transform: scale(0.9);
    }
}
@media (orientation: portrait) and (min-width: 540px) {
    .feature-image.portrait  {
        display: block;
        max-width: 100%;
        transform: scale(0.9);
    }
}

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

    font-size: clamp(1rem, 2.5vw, 1.7rem);
    line-height: 1.3;
    padding: clamp(0.5dvh, 1dvh, 1.5dvh) 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
    font-family: "Source Sans 3", sans-serif;
    font-weight: 900;
    color: white;
    letter-spacing: 0.5px;
    word-break: break-word;
    white-space: normal;
    flex-wrap: wrap;
    filter: drop-shadow(0 1px 0 rgba(0, 47, 148, 0.6)) drop-shadow(0 0 3px rgb(0, 119, 255)) drop-shadow(0 1px 3px rgba(0, 52, 148, 0.6));
    text-shadow: none;
    opacity: 1;
}

#section-button {
    grid-area: start-button;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: clamp(1vh, 2vh, 3vh);
    text-align: center;
}

.start-button {
    position: relative;
    bottom: auto;
    transform: none;
    order: 1;
}

.loading-bar-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(20vw, 25vw, 35vw);
    height: clamp(2vh, calc(2vw + 1vh), 3vh);
    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;
    z-index: 999;
}

.loading-bar {
    position: relative;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #FF5EDB;
    transition: width .3s ease;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 94, 219, 0.8),
    0 0 40px rgba(255, 62, 190, 0.6),
    0 0 60px rgba(255, 80, 200, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.loading-bar::after{
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: repeating-linear-gradient(90deg,
    #FF5EDB 0%,
    #FF6EC7 25%,
    #FF3FA8 50%,
    #FF6EC7 75%,
    #FF5EDB 100%      /* той самий колір на 0% і 100% → немає шва */
    );
    background-size: 200% 100%;
    animation: shimmer 2.2s linear infinite; /* рух без «reverse» */
    will-change: background-position;
    transform: translateZ(0); /* менше артефактів у Safari */
}

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

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

.loading-percent {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--main-font, sans-serif);
    font-size: clamp(0.5rem, calc(1vw + 1vh), 1.5rem);
    color: white;
    font-weight: bold;
    pointer-events: none;
}

/* START BUTTON */
.start-button {
    width: clamp(40vw, 50vw, 60vw);
    font-size: clamp(0.5rem, 1.5vw, 1.3rem);
    text-transform: uppercase;

    text-align: center;

    letter-spacing: 0.05em;
    font-weight: 900;
    background-size: 200% auto;
    background: linear-gradient(to right, #ff5edb, white, #ff5ea0);
    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;
}

.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);
    }
}

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

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.45)); }
    50% { filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.5)); }
}

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

@media (orientation: landscape) {
    #fps-wrapper {
        display: grid;
        grid-template-areas:
            "logo logo logo"
            "feature-block1 feature-block2 feature-block3"
            "feature-desc1 feature-desc2 feature-desc3"
            "start-button start-button start-button";
        grid-template-columns: clamp(26vw, 28vw, 30vw) clamp(26vw, 28vw, 30vw) clamp(26vw, 28vw, 30vw);
        height: 100svh;
        justify-content: center;
        align-items: center;
        padding: 0 clamp(2vw, 3vw, 4vw);
        column-gap: clamp(1vw, 1.5vw, 2vw);
        row-gap: clamp(0.6vh, 0.8vh, 1vh);
        padding-bottom: max(env(safe-area-inset-bottom, 0), 2vh);
    }
    #fps-wrapper {
        height: 100svh;
        max-height: 100svh;
        display: grid;
        grid-template-rows:
            minmax(12vh, auto)
            auto
            auto
            minmax(8vh, auto);
    }

    .feature-block,
    .feature-description,
    #section-button {
        min-height: 0;
    }

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

    .feature-block.large {
        width: clamp(30vw, 32vw, 34vw);
        height: clamp(28vh, 45vh, 50vh);
        margin-top: 0;
    }

    .feature-description {
        font-size: clamp(0.8rem, calc(1dvw + 1dvh), 1.8rem);;
        line-height: 1.1;
        padding: 0.3vh 0;
        margin: 0;
        max-width: 100%;
        word-break: break-word;
        white-space: normal;
        text-align: center;
        transform: translateY(-4vh);
    }

    #feature-desc1, #feature-desc2, #feature-desc3 {
        justify-content: unset;
        align-items: center;
        white-space: pre-line;
    }
    .start-button {
    font-size: clamp(0.5rem, calc(1vw + 1vh), 1.3rem);
    }
    /*.loading-bar-wrapper {*/
    /*    bottom: calc(*/
    /*            max(env(safe-area-inset-bottom, 0px), clamp(2svh, 2.6svh, 5svh))*/
    /*            + clamp(1svh, 1.2svh, 2svh)*/
    /*    );*/
    /*}*/
}

@media screen and (min-width: 1200px) and (orientation: landscape) {
    .feature-description {
        max-width: 80%;
        font-size: clamp(0.5rem, calc(1.2vw + 1.2vh), 1.7rem);
        line-height: 1.4;
    }
}

@media (orientation: portrait) {
    #feature-preview-screen {
        height: auto;
        min-height: 100svh;
        overflow-y: hidden;
    }

    #fps-wrapper {
        display: grid;
        grid-template-areas:
      "logo"
      "feature-block1"
      "feature-desc1"
      "feature-block2"
      "feature-desc2"
      "feature-block3"
      "feature-desc3"
      "start-button";
        grid-template-columns: 1fr;
        grid-template-rows:
            minmax(10vh, 14vh)
            minmax(4vh, 20vh)
            minmax(auto, 10vh)
            minmax(14vh, 20vh)
            minmax(auto, 10vh)
            minmax(14vh, 20vh)
            minmax(auto, 10vh)
            minmax(5vh, 10vh);
        margin-top: 2vh;
        row-gap: clamp(0.5vh, 1vh, 1.5vh);
        height: 100%;
        min-height: auto;
        overflow: hidden;
        box-sizing: border-box;
    }

    .feature-block {
        margin: 0 auto;
        padding: 0;
    }


    #feature-desc1, #feature-desc2, #feature-desc3 {
        justify-content: center;
        align-items: center;
        white-space: pre-line;
    }

    #feature-block1, #feature-block3 {
        width: clamp(40vw, 50vw, 60vw);
        height: clamp(16vh, 20vh, 22vh);
        margin: 0 auto;
    }

    #feature-block2 {
        width: clamp(50vw, 60vw, 80vw);
        height: clamp(18vh, 22vh, 24vh);
        margin: 0 auto;
    }

    #logo-placeholder {
        position: relative;
        display: flex;
        justify-content: center;
    }

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

    .logo-image {
        height: clamp(4dvh, 13dvh, 12dvh);
        width: auto;
    }

    #feature-desc1 {
        grid-area: feature-desc1;
        margin-top: 0;
    }

    #feature-desc2 {
        grid-area: feature-desc2;
        margin-top: 0;
    }

    #feature-desc3 {
        grid-area: feature-desc3;
        margin-top: 0;
    }

    .feature-description {
        max-width: 90%;
        margin-top: 0;
        font-size: clamp(0.8rem, calc(1dvw + 1dvh), 2rem);
        line-height: 1.1;
        padding: 0.3dvh 0;
        text-align: center;
    }

    #section-button {
        grid-area: start-button;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(1vh, 2vh, 3vh);
        text-align: center;
    }
    .start-button {
        order: 1;
    }

    .start-button {
        /*position: absolute;*/
        bottom: max(env(safe-area-inset-bottom, 0), clamp(14px, 2.6svh, 36px));
        font-size: clamp(0.5rem, calc(1vw + 1vh), 1.1rem);
        text-align: center;
        padding: 0;
        text-decoration: none;
        text-transform: uppercase;
        background: linear-gradient(to right, #ff5edb, white, #ff5ea0);
        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;
    }

    .loading-bar-wrapper {
        bottom: clamp(2vh, 3vh, 4vh);
        left: 50%;
        transform: translateX(-50%);
        width: clamp(40dvw, 45dvw, 50dvw);
        height: clamp(1.6dvh, 2dvh, 2.5dvh);
        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;
        position: absolute;
    }

    .loading-bar {
        width: 0%;
        height: 100%;
        background: linear-gradient(90deg, #FF5EDB, #FF6EC7, #FF3FA8, #FF80E0);
        background-size: 300% 100%;
        animation: shimmer 2s linear infinite;
        transition: width 0.3s ease;
        border-radius: 999px;
        box-shadow: 0 0 20px rgba(255, 94, 219, 0.8),
        0 0 40px rgba(255, 62, 190, 0.6),
        0 0 60px rgba(255, 80, 200, 0.5);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

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

@media (orientation: portrait) and (min-height: 1000px) {
    .start-button {
        font-size: clamp(0.5rem, 1.5svh, 1.3rem);
    }
}

#background-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

[data-image-placeholder="fps-image1.png"].background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*.gems-layer {*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    pointer-events: none;*/
/*    overflow: hidden;*/
/*}*/

/*.gem {*/
/*    position: absolute;*/
/*    will-change: transform;*/
/*    transform-origin: center;*/
/*    --r: 0deg;*/
/*    animation: gem-float 6s ease-in-out infinite;*/
/*    transform: rotate(var(--r));*/
/*    filter: drop-shadow(0 0 6px rgba(174, 226, 255, .35));*/
/*}*/

/*.gem-1 {*/
/*    width: 28px;*/
/*    top: 28%;*/
/*    right: 14%;*/
/*    --r: 51deg;*/
/*    animation-duration: 6.4s;*/
/*}*/

/*.gem-2 {*/
/*    top: 20.6%;*/
/*    left: 65.8%;*/
/*    width: 30px;*/
/*    animation-duration: 7.2s;*/
/*    animation-delay: -.8s;*/
/*}*/

/*.gem-3 {*/
/*    top: 7%;*/
/*    left: 42%;*/
/*    width: 26px;*/
/*    --r: 294deg;*/
/*    animation-duration: 6.8s;*/
/*    animation-delay: -1.6s;*/
/*}*/

/*.gem-4 {*/
/*    width: 20px;*/
/*    top: 70%;*/
/*    right: 12%;*/
/*    --r: 148deg;*/
/*    animation-duration: 7.8s;*/
/*    animation-delay: -2.1s;*/
/*}*/

/*.gem-5 {*/
/*    width: 30px;*/
/*    bottom: 7%;*/
/*    left: 59%;*/
/*    animation-duration: 6.6s;*/
/*    animation-delay: -3s;*/
/*}*/

/*.gem-6 {*/
/*    width: 40px;*/
/*    bottom: 27%;*/
/*    left: 19%;*/
/*    animation-duration: 8.2s;*/
/*    animation-delay: -1.2s;*/
/*}*/

/*.gem-7 {*/
/*    --r: 139deg;*/
/*    width: 20px;*/
/*    bottom: 22%;*/
/*    right: 34%;*/
/*    animation-duration: 7.4s;*/
/*    animation-delay: -2.7s;*/
/*}*/

/*.gem-8 {*/
/*    width: 30px;*/
/*    bottom: 9%;*/
/*    right: 61%;*/
/*    animation-duration: 6.9s;*/
/*    animation-delay: -1.9s;*/
/*}*/

@keyframes gem-float {
    0%, 100% {
        transform: translate(0, 0) rotate(var(--r)) scale(1);
        filter: brightness(1);
    }

    35% {
        transform: translate(4px, -6px) rotate(calc(var(--r) + 7deg)) scale(1.03);
        filter: brightness(1.08);
    }

    70% {
        transform: translate(-5px, 4px) rotate(calc(var(--r) - 5deg)) scale(.98);
        filter: brightness(1);
    }
}

@media screen and (max-width: 375px) and (orientation: portrait) {
    .feature-block {
        transform: scale(0.9);
    }
}

@media screen and (max-height: 375px) and (orientation: landscape) {
    .feature-block {
        transform: scale(0.9);
    }
    /*.feature-description {*/
    /*    font-size: 0.5rem;*/
    /*}*/
}
/* region Safari text stability */
@media (orientation: landscape) {
    @supports (font: -apple-system-body) {
        #fps-wrapper {
            display: grid;
            grid-template-areas:
                  "logo logo logo"
                  "feature-block1 feature-block2 feature-block3"
                  "feature-desc1 feature-desc2 feature-desc3"
                  "start-button start-button start-button";
            grid-template-columns: clamp(26vw, 28vw, 30vw) clamp(30vw, 32vw, 35vw) clamp(26vw, 28vw, 30vw);
            grid-template-rows:
                  minmax(12svh, 12svh)
                  minmax(0, 1fr)
                  minmax(10svh, 10svh)
                  minmax(8svh, 8svh);
            height: 100svh;
            max-height: 100svh;
            align-content: start;
            align-items: start;
            justify-content: center;
            padding: 0 clamp(2vw, 3vw, 4vw);
            column-gap: clamp(1vw, 1.5vw, 2vw);
            row-gap: clamp(1svh, 1.4svh, 2svh);
            padding-bottom: max(env(safe-area-inset-bottom, 0), 2svh);
            contain: layout paint style;
        }
        .feature-description {
            font-size: clamp(0.5rem, calc(1.2vw + 1.2svh), 1.7rem);
            line-height: 1.2;
            padding: 0.3svh 0;
            max-width: 100%;
            word-break: break-word;
            white-space: normal;
            text-align: center;
            margin-top: 0;
        }
        #fps-button {
            animation: none !important;
            transform: none !important;
        }
        .start-button {
            animation: gradientShift 5s linear infinite !important;
            /*transform: none !important;*/
        }
        .logo-image {
            animation: logoFadeIn 1s ease-out 0.5s forwards;
        }
    }
}
/* endregion */
