* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100dvh;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 20%,
            #ffd6e7,
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 30%,
            #f8c8dc,
            transparent 40%
        ),
        radial-gradient(
            circle at 50% 100%,
            #e5e7eb,
            transparent 50%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            #fff0f6,
            #e9e9ef
        );
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image:
        radial-gradient(
            white 1px,
            transparent 1px
        ),
        radial-gradient(
            #5eead4 1px,
            transparent 1px
        );

    background-size: 90px 90px, 130px 130px;
    background-position: 0 0, 40px 50px;

    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
}

.stage {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vh, 36px);
    padding: 20px;
}

#text {
    margin: 0;
    width: min(90vw, 340px);
    min-height: clamp(58px, 9vh, 74px);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    opacity: 1;
    transition: opacity .03s ease, scale 0.3s ease-out;
    font-size: clamp(20px, 4.5vw, 30px);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(219, 112, 147, 0.15);
    color: #d65b91;
    z-index: 4;
}

.actions {
    display: grid;
    grid-template-columns: repeat(2, clamp(88px, 24vw, 108px));
    align-items: center;
    justify-content: center;
    gap: clamp(32px, 12vw, 120px);
    z-index: 2;
}




#box1,
#box {
    width: clamp(88px, 24vw, 108px);
    height: clamp(64px, 16vw, 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    opacity: 1;
    transition: opacity .03s ease, left .02s ease, top .02s ease, scale 0.3s ease-out;
    font-size: clamp(14px, 3.5vw, 16px);
    background: linear-gradient(
        135deg,
        #ff8fab,
        #e75480
    );
    color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(231, 84, 128, 0.25);
}

#box.escaped {
    position: fixed;
    z-index: 0;
}

#Ender_Pearl {
    width: clamp(38px, 9vw, 52px);
    height: clamp(38px, 9vw, 52px);
    position: fixed;
    left: 56%;
    top: 54%;
    border: none;
    border-radius: 8px;
    pointer-events: none;
    transition: opacity .005s ease, left .6s ease-out, top .6s ease-out;
    z-index: 1;
}

#box:hover,
#box1:hover {
    scale: 1.05;
    cursor: pointer;
}

#box:active,
#box1:active {
    scale: 0.9;
}
#box1 {
    z-index: 3;
}