
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #00001a;
    color: #ffffff;
    font-family: "Sofia Sans", serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    font-size: 12px;
    line-height: 1.25;
    -webkit-text-size-adjust: 100%;
    touch-action: none;
}

body {
    display: flex;
    flex-direction: column;
}

a {
    color: #00D1FF;
    text-decoration: none;
    font-weight: 400;
}

a:hover {
    color: #00D1FF;
    text-decoration: none;
    text-shadow: 0 0 5px #00D1FF, 0 0 10px #00D1FF, 0 0 15px #00D1FF, 0 0 20px #00D1FF, 0 0 30px #ffffff, 0 0 40px #ffffff, 0 0 55px #ffffff, 0 0 75px #ffffff;
    transition: all 0.5s;
}

p {
    margin: 0;
}

.sofia-sans-regular {
    font-family: "Sofia Sans", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.sofia-sans-bold {
    font-family: "Sofia Sans", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

#game {
    flex: 1;
    overflow: auto;
    background-color: #00001a;
    position: relative;
    touch-action: none;
}

.page-footer {
    border-top: 1px solid #300f76;
    background: linear-gradient(0deg, #00001a 0%, #20134d 100%);
    color: #ffffff;
    text-align: center;
    padding: 20px 10px 10px 10px;
    font-size: 12px;
    position: relative;
}

#delimiter {
    margin: 0 7px 0 8px;
    border-right: 1px dotted #ffffff60;
}

.poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


#age-verification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
}


.age-verification-modal {
    background: linear-gradient(180deg, #6f2ccd 0%, #391769 100%);
    box-shadow: 0 0 64px rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 32px;
    margin: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}


.age-verification-modal > *:not(#particle-container) {
    position: relative;
    z-index: 1;
}


.age-verification-modal #particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}


.age-verification-modal h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}


.age-verification-modal p {
    font-size: 13px;
    font-weight: 300;
    margin: 0;
}


.age-verification-modal button {
    display: block;
    margin: 32px auto;
    padding: 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}


#enter-button {
    background: #2ddf02;
    color: #20134D;
    box-shadow: 0 0 8px #CEFFC280;
    width: 300px;
    transition: box-shadow 0.5s ease;
}


#enter-button h1 {
    font-size: 24px;
    font-weight: 700;
}


#enter-button p {
    font-size: 12px;
    font-weight: 300;
}


#exit-button {
    margin: 0 auto;
    padding: 0;
    background: none;
    color: #fff;
    text-decoration: underline;
    transition: text-shadow 0.5s ease;
}


#enter-button:hover {
    box-shadow: 
        0 0 20px rgba(45, 223, 2, 0.8),
        0 0 30px rgba(45, 223, 2, 0.6),
        0 0 40px rgba(45, 223, 2, 0.4);
}


#exit-button:hover {
    text-shadow:
        0 0 10px #ffffff,
        0 0 20px #ffffff,
        0 0 30px #ffffff;
}


a:active,
#enter-button:active,
#exit-button:active {
    filter: brightness(0.8);
    transition: filter 0.2s ease;
}


@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(var(--rotation-start, 0deg));
        opacity: 0.75;
    }
    100% {
        transform: translateY(-1500%) rotate(var(--rotation-end, 360deg));
        opacity: 0.0;
    }
}


.particle {
    position: absolute;
    bottom: -40px;
    pointer-events: none;
    animation-name: floatUp;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    color: #6c2bc6;
}


#poster-blurred {
    transition: opacity 0.5s ease;
}


#poster {
    opacity: 0;
    transition: opacity 0.5s ease;
}


#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1000;
}

#popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}


.popup-modal {
    background: linear-gradient(180deg, #6f2ccd 0%, #391769 100%);
    box-shadow: 0 0 64px rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 0px;
    margin: 0px;
    border-radius: 10px;
    text-align: center;
    width: 80vw;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    overflow: hidden;

    transform: scale(0.75);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.popup-modal.open {
    transform: scale(1);
    opacity: 1;
}

.popup-modal.close {
    transform: scale(1.2);
    opacity: 0;
}


.popup-modal iframe {
    width: 100%;
    height: 80vh;
    border: none;
}


#popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00000080;
    border: none;
    box-shadow: inset 0 2px 2px #00000040;
    padding: 5px 10px;
    border-radius: 5px;
    color: #9271CB;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
}


#footer-toggle-btn {
    background: #300f76;
    color: #fff;
    border: none;
    border-radius: 0 0 6px 6px;
    padding: 1px 64px;
    cursor: pointer;
    font-family: "Sofia Sans", serif;
    font-size: 10px;
    transition: background 0.3s, box-shadow 0.3s;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}


.arrow {
    display: inline-block;
    transform: rotate(180deg);
    transition: transform 0.5s ease;
}

.arrow.rotated {
    transform: rotate(0deg);
}


#footer-toggle-btn:hover {
    background: #3e1595;
    box-shadow: 0 0 10px rgba(62, 21, 149, 0.8),
                0 0 20px rgba(62, 21, 149, 0.6),
                0 0 30px rgba(62, 21, 149, 0.4);
}


.footer-content {
    transition: opacity 0.5s ease, height 0.5s ease;
    opacity: 1;
}


.footer-content.hidden {
    height: 0 !important;
    opacity: 0;
    pointer-events: none;
}


#payment-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.8);
    font-family: inherit;
    color: inherit;
}


#payment-popup .modal {
    background: linear-gradient(180deg, #6f2ccd 0%, #391769 100%);
    box-shadow: 0 0 64px rgba(0,0,0,0.75);
    color: #fff;
    padding: 16px 32px 32px 32px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}


#payment-popup .modal h1 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 32px;
}


#open-payment-button {
    background: #2ddf02;
    color: #20134D;
    padding: 20px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: box-shadow 0.3s ease;
}


#open-payment-button:hover {
    box-shadow: 0 0 20px rgba(45,223,2,0.8), 0 0 30px rgba(45,223,2,0.6);
}


#open-payment-button:active {
    filter: brightness(0.8);
}


#unity-canvas { width: 100%; height: 100%; background: #00001a; }
#unity-loading-bar { position: absolute; left: 50%; bottom: 5%; transform: translate(-50%, 0%); display: none; background: #00001a; border-radius: 8px; overflow: hidden; }
#unity-progress-bar-empty { margin-left: auto; margin-right: auto; width: 300px; height: 18px; border: 2px #5F01BC solid; border-radius: 8px; overflow: hidden; }
#unity-progress-bar-full { width: 0%; height: 18px; background-color: #D100D6; }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
