:root {
    --splash-font-family: 'Noto Sans', serif;
}
@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, 0px), 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;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
}
.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    z-index: -3;
}
.landscape-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
}
.portrait-bg {
    display: none;
}
@media (orientation: portrait) {
    .landscape-bg {
        display: none;
    }
    .portrait-bg {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform-origin: center;
    }
}
#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: 40dvw 1dvw 40dvw;
    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(18dvh, 15dvh, 30dvh);
    display: block;
    opacity: 0;
    filter: drop-shadow(0 2px 10px rgba(0, 4, 78, 0.6));
    animation: logoFadeIn 1s ease-out 0.5s forwards,
    pulseGlow 6s ease-in-out infinite 0.5s;
    margin-bottom: 4vh;
}
#sound-toggle {
    position: absolute;
    right: clamp(2vw, 3vw, 4vw);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;

    width: clamp(40px, 2.5vw, 45px);
    height: clamp(40px, 2.5vw, 45px);
    bottom: max(env(safe-area-inset-bottom, 0px), clamp(12px, 2vh, 24px));
}
#sound-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#feature-block1 {
    grid-area: feature-block1;

    padding: 0;
    /*width: 100%;*/
    aspect-ratio: 1.3 / 1;
    height: auto;
}
#feature-block3 {
    grid-area: feature-block3;

    padding: 0;
    /*width: 100%;*/
    aspect-ratio: 1.3 / 1;
    height: auto;
}
#feature-block2 {
    grid-area: feature-block2;
    padding: 0;
    /*width: clamp(28vw, 32vw, 34vw);*/
    aspect-ratio: 1 / 1;
    height: auto;
}
#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;
    text-align: center;
}
.feature-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    height: auto;
    max-width: 90%;
    padding: 0.2rem;
    justify-content: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform-origin: center;
}
.feature-block.large {
    width: 100%;
}
.feature-image {
    display: block;
    object-fit: contain;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: auto;
}
.feature-description {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;

    text-transform: uppercase;
    padding: clamp(0.5dvh, 1dvh, 1.5dvh) 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
    font-family: var(--splash-font-family);
    font-weight: 500;
    /*background: linear-gradient(132deg, #fff806 0%, #ff9402 70%);*/
    /*-webkit-background-clip: text;*/
    /*-webkit-text-fill-color: transparent;*/
    /*color: transparent !important;*/

    background: linear-gradient(to bottom, #ffdd00 30%, #ff0808 70%, #781b00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-text-stroke: 1px #ff894c;
    text-stroke: 1px #ff894c;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;

    letter-spacing: 0.8px;
    word-break: break-word;
    white-space: normal;
    flex-wrap: wrap;
}
.giant {
    line-height: 1.5;
    letter-spacing: 1px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    background: linear-gradient(to bottom, #fff490 30%, #ff6500 70%, #fff490 30%, #a94606 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-text-stroke: 1px #ffcf26a8;
    text-stroke: 1px #ffcf26a8;
}
.feature-description.feature-inline {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.1em;
}
.inline-moon {
    display: inline-block;
    width: 1.6em;
    height: auto;
}
#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 {
    width: 0%;
    height: 100%;
    background: linear-gradient(
            90deg,
            #FFD700,
            #FFA500,
            #FFEC8B,
            #FFA500,
            #FFD700
    );
    background-size: 300% 100%;
    animation: shimmer 2s linear infinite;
    transition: width 0.3s ease;
    border-radius: 999px;
    box-shadow:
            0 0 15px rgba(255, 215, 0, 0.8),
            0 0 30px rgba(255, 165, 0, 0.6),
            0 0 45px rgba(255, 220, 100, 0.5);
    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;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--splash-font-family);
    font-size: clamp(0.5rem, calc(1vw + 1vh), 1.5rem);
    color: white;
    font-weight: 500;
    pointer-events: none;
}
.start-button {
    font-family: var(--splash-font-family);
    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: 600;
    background-size: 200% auto;
    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;
}
.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(0, 4, 78, 0.6)); }
    50% { filter: drop-shadow(0 2px 12px rgba(1, 30, 103, 0.5)); }
}
@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@media (orientation: landscape) {
    #feature-block1,
    #feature-block2,
    #feature-block3 {
        align-self: center;
        justify-self: center;
    }
    #feature-block1,#feature-block3.feature-block.small {
        width: clamp(45dvh, min(62dvw, 65dvh), 70dvw);
    }
    .feature-description {
        font-size: clamp(0.5rem, calc(1.3dvw + 1.1dvh), 1.3rem);
        line-height: 1.2;
        padding: 0.3vh 0;
        margin: 0;
        max-width: 100%;
        word-break: break-word;
        white-space: normal;
        text-align: center;
        filter: drop-shadow(0px 4px 12px rgba(21, 1, 1, 0.6)) drop-shadow(0px 0px 10px rgba(43, 0, 70, 0.5)) drop-shadow(0px 2px 6px rgba(0, 1, 28, 0.7)) !important;
        text-shadow: none !important;
    }
    #feature-desc1, #feature-desc3 {
        justify-content: center;
        align-items: center;
        align-self: self-start;
    }
    #feature-desc1,
    #feature-desc3 {
        height: auto;
    }
    #sound-toggle {
        bottom: max(env(safe-area-inset-bottom, 0px), clamp(12px, 2vh, 24px));
        right: clamp(1.5vw, 2vw, 3vw);
    }
    .start-button {
        font-size: clamp(0.5rem, calc(1.3vw + 1vh), 1.6rem);
    }
    .giant {
        line-height: 1.5;
        letter-spacing: 1px;
    }
}

@media (orientation: landscape) and (min-width: 1200px) {
    .feature-description {
        max-width: 80%;
        font-size: clamp(0.5rem, calc(1dvw + 1dvh), 2rem);
        line-height: 1.2;
    }
}

@media (orientation: landscape) and (max-aspect-ratio: 5/4) and (min-aspect-ratio: 3/4) and (max-aspect-ratio: 4/3){
    .feature-description {
        transform: translateY(-8vh);
    }
}

@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-block3"
      "feature-desc3"
      "."
      "start-button";
        grid-template-columns: 1fr;
        grid-template-rows:
            minmax(10dvh, 20dvh)
            minmax(20dvh, 40dvh)
            minmax(auto, 10dvh)
            minmax(20dvh, 40dvh)
            minmax(auto, 10dvh)
            1fr
            minmax(10dvh, 10dvh);
        margin-top: 2dvh;
        row-gap: clamp(0.5dvh, 1dvh, 1.5dvh);
        height: 100%;
        min-height: auto;
        overflow: hidden;
        box-sizing: border-box;
    }
    .feature-block {
        margin: 0 auto;
        padding: 0;
    }
    #feature-block1,
    #feature-block2,
    #feature-block3 {
        align-self: center;
        justify-self: center;
    }
    #feature-desc1, #feature-desc2, #feature-desc3 {
        justify-content: center;
        align-items: center;
    }
    #feature-block1, #feature-block3 {
        width: clamp(38dvh, min(60dvw, 60dvh), 60dvw);
        margin: 0 auto;
    }
    #feature-block2 {
        width: clamp(50dvw, 60dvw, 80dvw);
        height: clamp(18dvh, 22dvh, 24dvh);
        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(10vh, 13vh, 20vh);
        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.5rem, calc(1.2dvw + 1.2dvh), 1.2rem);
        line-height: 1.1;
        padding: 0.3vh 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 {
        bottom: max(env(safe-area-inset-bottom, 0px), clamp(14px, 2.6svh, 36px));
        font-size: clamp(0.5rem, calc(1.5vw + 1vh), 1.5rem);
        text-align: center;
        padding: 0;
        text-decoration: none;
        text-transform: uppercase;
        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;
    }
    .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;
    }
    .start-button.visible {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1) translateX(-50%);
    }
    #sound-toggle {
        bottom: 1.5vh;
        right: clamp(3vw, 4vw, 5vw);
        z-index: 999;
    }
    .giant {
        line-height: 1.5;
        letter-spacing: 1px;
    }
    .giant.free-spins {
        filter: drop-shadow(0px 2px 1px rgba(46, 1, 1, 0.7)) drop-shadow(0px 0px 6px rgba(70, 0, 16, 0.5)) drop-shadow(0px 2px 4px rgba(69, 6, 17, 0.7));
        text-shadow: none !important;
    }
    .giant.hold-n-win {
        filter: drop-shadow(0px 4px 12px rgba(21, 1, 1, 0.6)) drop-shadow(0px 0px 10px rgba(43, 0, 70, 0.5)) drop-shadow(0px 2px 6px rgba(0, 1, 28, 0.7));
        text-shadow: none !important;
    }
}

@media (min-device-width: 768px) and (min-device-height: 768px) {
    #sound-toggle {
        width: 45px;
        height: 45px;
    }
}

#feature-block1 .feature-image {
    filter:
            drop-shadow(0 0 2px rgba(255, 230, 170, 0.7))
            drop-shadow(0 0 6px rgba(255, 180, 60, 0.6));
    animation: feature1Glow 6s ease-in-out infinite;
    transform-origin: center;
}
@keyframes feature1Glow {
    0%, 100% {
        transform: scale(1);
        filter:
                drop-shadow(0 0 3px rgba(255, 230, 170, 0.7))
                drop-shadow(0 0 7px rgba(255, 180, 60, 0.6));
    }
    50% {
        transform: scale(1.02);
        filter:
                drop-shadow(0 0 7px rgba(255, 240, 190, 0.95))
                drop-shadow(0 0 12px rgba(255, 190, 80, 0.9));
    }
}
#feature-block3 .feature-image {
    filter:
            drop-shadow(0 0 2px rgba(150, 158, 244, 0.7))
            drop-shadow(0 0 6px rgba(60, 115, 255, 0.6));
    animation: feature3Glow 6s ease-in-out 3s infinite;
    transform-origin: center;
}
@keyframes feature3Glow {
    0%, 100% {
        transform: scale(1);
        filter:
                drop-shadow(0 0 3px rgba(150, 158, 244, 0.7))
                drop-shadow(0 0 7px rgba(60, 115, 255, 0.6));
    }
    50% {
        transform: scale(1.02);
        filter:
                drop-shadow(0 0 7px rgba(174, 211, 248, 0.5))
                drop-shadow(0 0 12px rgba(80, 188, 255, 0.7));
    }
}