/* ------------------------------------------------ */
/* HOUSE OF ELDEON — WORLD TREE */
/* ------------------------------------------------ */

#world-tree-page{
    min-height:100vh;
    margin:0;
    padding:0;
    background:#06130d;
}

.world-tree-room{
    position:relative;
    width:100%;
    max-width:1800px;
    margin:0 auto;
}

.world-tree-interior-image{
    display:block;
    width:100%;
    height:auto;
}


/* ------------------------------------------------ */
/* INTERACTIVE HOTSPOTS */
/* ------------------------------------------------ */

.tree-hotspot{
    position:absolute;
    display:block;
    padding:0;
    cursor:pointer;
    border:none;
    outline:none;
    background:transparent;
    border-radius:20px;
    z-index:20;
    transition:
        background .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.tree-hotspot:hover,
.tree-hotspot:focus-visible{
    background:rgba(255,245,200,.04);
    box-shadow:
        0 0 25px rgba(255,240,180,.65),
        0 0 55px rgba(255,220,120,.45),
        inset 0 0 16px rgba(255,255,220,.08);
}

.tree-hotspot:focus-visible{
    outline:2px solid #ffe7a0;
    outline-offset:3px;
}


/* ------------------------------------------------ */
/* HOTSPOT POSITIONS */
/* Keep your working positions here */
/* ------------------------------------------------ */

.keeper-hotspot{
    left:20%;
    top:35%;
    width:18%;
    height:42%;
}

.scroll-hotspot{
    left:40%;
    top:55%;
    width:16%;
    height:30%;
}

.librarian-hotspot{
    left:80%;
    top:55%;
    width:18%;
    height:35%;
}

.balcony-hotspot{
    left:45%;
    top:30%;
    width:20%;
    height:20%;
}

.tree-stats-hotspot{
    left:44%;
    top:35%;
    width:16%;
    height:22%;
}


/* ------------------------------------------------ */
/* RESIDENT DIALOGUE */
/* ------------------------------------------------ */

.tree-dialogue{
    position:absolute;
    left:50%;
    bottom:6%;
    transform:translateX(-50%);
    width:90%;
    max-width:680px;
    box-sizing:border-box;
    padding:28px;
    background:rgba(28,18,10,.94);
    border:2px solid #b99852;
    border-radius:24px;
    color:#f8efc8;
    font-family:Georgia, serif;
    box-shadow:0 0 45px rgba(0,0,0,.65);
    z-index:50;
}

.tree-dialogue h2{
    margin:0 40px 12px 0;
    color:#ffe7a0;
    font-size:30px;
    line-height:1.2;
}

.tree-dialogue p{
    margin:0;
    font-size:20px;
    line-height:1.5;
}

.dialogue-close{
    position:absolute;
    right:14px;
    top:10px;
    padding:0;
    background:none;
    border:none;
    color:#f8efc8;
    font-size:34px;
    line-height:1;
    cursor:pointer;
}

.dialogue-close:hover,
.dialogue-close:focus-visible{
    color:#ffffff;
}


/* ------------------------------------------------ */
/* LIVE WORLD TREE STATISTICS */
/* ------------------------------------------------ */

.world-tree-live-panel{
    position:absolute;
    left:50%;
    bottom:5%;
    transform:translateX(-50%);
    width:90%;
    max-width:760px;
    box-sizing:border-box;
    padding:30px;
    background:rgba(20,32,18,.96);
    border:2px solid #d8b86a;
    border-radius:24px;
    color:#fff4cf;
    font-family:Georgia, serif;
    box-shadow:0 0 50px rgba(0,0,0,.7);
    z-index:60;
}

.world-tree-live-panel h2{
    margin:0 45px 10px 0;
    color:#ffe4a3;
    font-size:30px;
    line-height:1.2;
}

#world-tree-message{
    margin:0 0 20px;
    font-size:18px;
    line-height:1.5;
}

.world-tree-live-close{
    position:absolute;
    right:14px;
    top:10px;
    padding:0;
    background:none;
    border:none;
    color:#fff4cf;
    font-size:34px;
    line-height:1;
    cursor:pointer;
}

.world-tree-live-close:hover,
.world-tree-live-close:focus-visible{
    color:#ffffff;
}


/* Flexbox statistics layout */

.tree-live-grid{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:20px;
}

.tree-live-grid div{
    flex:1 1 190px;
    box-sizing:border-box;
    min-width:0;
    padding:15px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,244,207,.22);
    border-radius:16px;
    text-align:center;
}

.tree-live-grid span{
    display:block;
    font-size:13px;
    line-height:1.4;
    opacity:.75;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.tree-live-grid strong{
    display:block;
    margin-top:6px;
    font-size:24px;
    line-height:1.2;
}

.world-tree-error{
    margin:18px 0 0;
    color:#ffd0c7;
    font-size:16px;
}


/* ------------------------------------------------ */
/* SHARED VISIBILITY */
/* ------------------------------------------------ */

.hidden{
    display:none !important;
}


/* ------------------------------------------------ */
/* MOBILE */
/* ------------------------------------------------ */

@media screen and (max-width:700px){

    .tree-dialogue,
    .world-tree-live-panel{
        bottom:3%;
        padding:22px 18px;
    }

    .tree-dialogue h2,
    .world-tree-live-panel h2{
        font-size:25px;
    }

    .tree-dialogue p,
    #world-tree-message{
        font-size:17px;
    }

    .tree-live-grid{
        display:block;
    }

    .tree-live-grid div{
        margin-bottom:12px;
    }

    .tree-live-grid div:last-child{
        margin-bottom:0;
    }
}