#queenk-world-runtime {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    background: #050814;
}

body.queenk-world-active
#queenk-world-runtime {
    display: block;
}

#queenk-world-runtime canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.world-interaction-prompt {
    position: fixed;
    z-index: 80;
    left: 50%;
    bottom: 8rem;
    transform: translateX(-50%);
    padding: 0.75rem 1.1rem;
    border: 1px solid rgba(150, 185, 255, 0.7);
    border-radius: 999px;
    background: rgba(7, 15, 31, 0.94);
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.character-dialogue {
    position: fixed;
    z-index: 90;
    left: 50%;
    bottom: 2rem;
    width: min(38rem, calc(100vw - 2rem));
    transform: translateX(-50%);
}

.character-dialogue__panel {
    padding: 1rem 1.2rem;
    border: 1px solid rgba(156, 183, 255, 0.55);
    border-radius: 1rem;
    background: rgba(5, 12, 27, 0.96);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4);
}

.character-dialogue__speaker {
    margin-bottom: 0.45rem;
    color: #d8bdff;
    font-weight: 800;
}

.character-dialogue__text {
    color: #f8faff;
    line-height: 1.5;
}

.character-dialogue__continue {
    margin-top: 0.8rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(168, 189, 255, 0.45);
    border-radius: 0.6rem;
    background: rgba(120, 90, 190, 0.25);
    color: #fff;
    cursor: pointer;
}

body.queenk-world-active #queenk-world-runtime {
    display: block;
    visibility: visible;
    opacity: 1;
    z-index: 5000;
}

body.queenk-world-active #queenk-world-runtime canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.world-interaction-prompt {
    position: fixed;
    left: 50%;
    bottom: 5rem;
    transform: translateX(-50%);
    z-index: 7000;

    padding: 0.85rem 1.25rem;

    border: 1px solid rgba(170, 200, 255, 0.8);
    border-radius: 999px;

    background: rgba(7, 13, 28, 0.95);
    color: #ffffff;

    font: inherit;
    font-weight: 700;

    box-shadow:
        0 0.5rem 2rem
        rgba(0, 0, 0, 0.45);
}

.world-interaction-prompt::before {
    content: "E  ";
    color: #9fdcff;
}

/*
 * Interactive world UI must sit above WebGL.
 */

.character-dialogue {
    z-index: 9000 !important;
}

.character-dialogue__panel {
    position: relative;
    z-index: 9001;
}

.world-interaction-prompt {
    z-index: 8500 !important;
}



body.queenk-world-active


.world-backpack-button.has-new-item {
    animation:
        queenk-backpack-pulse
        0.4s
        ease-in-out
        4
        alternate;
}

@keyframes queenk-backpack-pulse {
    to {
        transform: scale(1.12);
        box-shadow:
            0 0 2rem
            rgba(105, 225, 255, 0.95);
    }
}

.queenk-item-reveal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle,
            rgba(27, 69, 100, 0.72),
            rgba(2, 5, 14, 0.96)
        );
}

.queenk-item-reveal__panel {
    width:
        min(
            30rem,
            calc(100vw - 2rem)
        );
    padding: 2rem;
    text-align: center;
    border:
        1px solid
        rgba(150, 230, 255, 0.7);
    border-radius: 1.4rem;
    background:
        rgba(10, 18, 38, 0.98);
    color: white;
}

.queenk-item-reveal__magic {
    position: relative;
    width: 12rem;
    height: 12rem;
    margin: 1rem auto;
    display: grid;
    place-items: center;
}

.queenk-item-reveal__halo {
    position: absolute;
    inset: 1rem;
    border:
        2px solid
        rgba(120, 230, 255, 0.8);
    border-radius: 50%;
    box-shadow:
        0 0 2.5rem
        rgba(100, 220, 255, 0.7);
    animation:
        moonseed-spin
        4s
        linear
        infinite;
}

.queenk-item-reveal__seed {
    width: 3.5rem;
    height: 5rem;
    border-radius: 55% 45% 52% 48%;
    background:
        radial-gradient(
            circle at 35% 25%,
            white,
            #a8edff 28%,
            #619bd8 65%,
            #27366f
        );
    box-shadow:
        0 0 1.5rem
        #9beeff,
        0 0 4rem
        rgba(95, 185, 255, 0.65);
    animation:
        moonseed-float
        1.5s
        ease-in-out
        infinite
        alternate;
}

.queenk-item-reveal button {
    margin-top: 1rem;
    padding: 0.75rem 1.1rem;
    border:
        1px solid
        rgba(160, 230, 255, 0.65);
    border-radius: 999px;
    background:
        rgba(76, 160, 205, 0.22);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@keyframes moonseed-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes moonseed-float {
    to {
        transform:
            translateY(-0.8rem)
            rotate(10deg)
            scale(1.06);
    }
}
