@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Poppins&display=swap');

* {
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

body {
    overflow: hidden;
    background: #2a3247;
}

.blob-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    animation: blobFloat 8s ease-in-out infinite alternate;
}

.blob-1 { width: 500px; height: 500px; background: #FF7B2F; top: -120px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 420px; height: 420px; background: #FF6BAE; top: 10%; right: -150px; animation-delay: 1.5s; }
.blob-3 { width: 360px; height: 360px; background: #FFD93D; top: 40%; left: 20%; animation-delay: 3s; }
.blob-4 { width: 440px; height: 440px; background: #4D96FF; bottom: 10%; right: 5%; animation-delay: 2s; }
.blob-5 { width: 300px; height: 300px; background: #5ED38A; bottom: 25%; left: -80px; animation-delay: 4s; }
.blob-6 { width: 250px; height: 250px; background: #C87FFF; top: 60%; left: 50%; animation-delay: 2.5s; }

@keyframes blobFloat {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(30px, 20px) scale(1.08);
    }
}

#unity-container {
    position: absolute;
    inset: 0;
    background: transparent;
    height: 100%;
    width: 100%;
    z-index: 1;
}

#unity-canvas.unity-desktop {
    width: 23%;
    height: 90%;
    /*width: 65%;*/
    /*height: 65%;*/
    position: absolute;
    border: 1px solid white;
    border-radius: 35px;
    background: rgba(10, 10, 10, 0.18);
    box-shadow: 0 30px 80px rgba(72, 28, 89, 0.28);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}
#unity-canvas.unity-mobile {
    width: 100%;
    height: 100%;
}

#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 2;
}
#logo.unity-mobile {
    border-radius: 20px;
    height:250px;
    width:250px;
}
#logo.unity-desktop {
    border-radius: 20px;
    height:200px;
    width:200px;
}
#loading-text.unity-mobile,
#loading-text.unity-desktop {
    font-size: 30px;
    font-family: 'Fredoka One', cursive;
    line-height: 1.2;
    min-height: 40px;
    margin-top: 36px;
    margin-bottom: 18px;
    padding: 0 20px;
    text-align: center;
    background: linear-gradient(90deg, #FF7B2F, #FF6BAE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(42, 31, 63, 0.2);
}
#unity-loading-bar {
    background: rgba(35, 25, 52, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.28), 0 16px 35px rgba(42, 31, 63, 0.18);
    width: 350px;
    max-width: calc(100vw - 48px);
    height: 18px;
    margin-top: 12px;
    overflow: hidden;
}
#unity-progress-bar {
    background: linear-gradient(90deg, #ff7b2f 0%, #ff6bae 100%);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(255, 123, 47, 0.45);
    transition: 400ms linear;
    height: 100%;
}

#popup.unity-desktop {
    position: absolute;
    background-color: rgb(76, 73, 73,0.9);
    flex-direction: column;
    align-items: center;
    justify-items: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 23%;
    height: 90%;
    /*width: 65%;*/
    /*height: 65%;*/
    border: 1px solid white;
    border-radius: 35px;
}
#popup.unity-mobile {
    position: absolute;
    background-color: rgb(76, 73, 73,0.9);
    flex-direction: column;
    align-items: center;
    justify-items: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

#claimReward.unity-mobile {
    width: 70%;
    height: 35%;
    border-radius: 20px;
    background-color: black;
    position: absolute;
    top: 25%;
}
#claimReward.unity-desktop {
    width: 25%;
    height: 50%;
    border-radius: 20px;
    background-color: black;
    position: absolute;
    top: 10%;
}
#claim-img{
    width: 50%;
    height: 50%;
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 10%;
}
#reward-text.unity-mobile {
    border-radius: 10px;
    background-image: linear-gradient(90deg, rgb(54, 52, 52, 0.80), #cb902a, rgb(54, 52, 52, 0.80));
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin: 5%;
    padding: 3%;
    text-align: center;
    color:white;
}
#reward-text.unity-desktop {
    border-radius: 10px;
    background-image: linear-gradient(90deg, rgb(54, 52, 52, 0.80), #cb902a, rgb(54, 52, 52, 0.80));
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin: 5%;
    padding: 3%;
    text-align: center;
    color:white;
}
#tapToContinue {
    color: white;
    position: absolute;
    bottom: 15%;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

#fullscreen-popup{
    width: 100vw;
    height: 100vh;
    background-color: black;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-direction: column;
}
#rotate-info {
    color: white;
    text-align: center;
    margin: 0 20px;
    padding-bottom: 100px;
    font-family: 'Poppins', sans-serif;
}

#back-button.unity-desktop {
    position: absolute;
    left: 5%;
    top: 5%;
    height: 40px;
    width: 40px;
    background: rgba(27, 19, 40, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 24px rgba(27, 19, 40, 0.3);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}
#back-button > a:active{
    user-select: none;
    text-decoration: inherit;
    color: inherit;
    cursor: pointer;
}
#back-button > a:link{
    user-select: none;
    text-decoration: inherit;
    color: inherit;
    cursor: pointer;
}
#back-button > a:visited{
    user-select: none;
    text-decoration: inherit;
    color: inherit;
    cursor: pointer;
}
