/*=====================================
RESET
=====================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{

    width:100%;
    height:100%;

    font-family:Arial,Helvetica,sans-serif;

    background:#8fd3ff;

    overflow:hidden;

}

button{

    font-family:inherit;

    border:none;

    outline:none;

}



/*=====================================
GAME CONTAINER
=====================================*/

.game-container{

    position:relative;

    width:100vw;

    height:100vh;

    overflow:hidden;

}



/*=====================================
SCREENS
=====================================*/

.screen{

    position:absolute;

    inset:0;

    display:none;

}

.screen.active{

    display:flex;

}



/*=====================================
HOME SCREEN
=====================================*/

#homeScreen{

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:24px;

    padding:40px;

    background:linear-gradient(#8fd3ff,#dff6ff);

}



/*=====================================
TITLE
=====================================*/

.game-title{

    font-size:54px;

    font-weight:700;

    color:#1d3557;

    text-align:center;

}

.game-subtitle{

    font-size:22px;

    color:#444;

    text-align:center;

}



/*=====================================
SCENE GRID
=====================================*/

.scene-grid{

    width:min(1100px,95vw);

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:30px;

}



/*=====================================
SCENE CARD
=====================================*/

.scene-btn{

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    cursor:pointer;

    transition:.25s;

    box-shadow:0 12px 35px rgba(0,0,0,.18);

}

.scene-btn:hover{

    transform:translateY(-8px);

}

.scene-btn img{

    width:100%;

    height:180px;

    object-fit:cover;

    display:block;

}

.scene-btn span{

    display:block;

    padding:18px 0 8px;

    text-align:center;

    font-size:24px;

    font-weight:bold;

}

.scene-btn small{

    display:block;

    text-align:center;

    color:#666;

    padding-bottom:18px;

}



/*=====================================
DISABLED CARD
=====================================*/

.scene-btn.disabled{

    opacity:.45;

    pointer-events:none;

    cursor:default;

}



/*=====================================
COMMON BUTTON STYLE
=====================================*/

button{

    transition:.25s;

}

button:active{

    transform:scale(.97);

}
/*=====================================
GAME SCREEN
=====================================*/

#gameScreen{
    position: relative;

    flex-direction:column;

    width:100vw;

    height:100vh;

    background:#000;

}



/*=====================================
HEADER
=====================================*/

.game-header{

    height:70px;

    min-height:70px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 20px;

    background:#8fd3ff;

    border-bottom:2px solid rgba(0,0,0,.12);

    flex-shrink:0;

    z-index:100;

}



/*=====================================
HEADER BUTTONS
=====================================*/

.game-header button{

    background:#1976d2;

    color:#fff;

    padding:10px 18px;

    border-radius:10px;

    font-size:16px;

    font-weight:bold;

    cursor:pointer;

}

.game-header button:hover{

    background:#0d5fb6;

}



/*=====================================
PROGRESS
=====================================*/

.progress{

    font-size:24px;

    font-weight:bold;

    color:#222;

}

.progress span{

    color:#1976d2;

}



/*=====================================
GAME AREA
=====================================*/

.scene-area{
    position:relative;

    flex:1;

    overflow:auto;

    background:#000;

}



/*=====================================
SCROLLBARS
=====================================*/

.scene-area::-webkit-scrollbar{

    width:12px;

    height:12px;

}

.scene-area::-webkit-scrollbar-track{

    background:#2d2d2d;

}

.scene-area::-webkit-scrollbar-thumb{

    background:#888;

    border-radius:20px;

}

.scene-area::-webkit-scrollbar-thumb:hover{

    background:#aaa;

}



/*=====================================
GAME CANVAS
=====================================*/

.scene-wrapper{

    position:relative;

    width:1536px;

    min-width:1536px;

    height:700px;

    min-height:700px;

}



/*=====================================
BACKGROUND IMAGE
=====================================*/

.scene-image{

    display:block;

    width:1536px;

    height:700px;

    user-select:none;

    -webkit-user-drag:none;

    pointer-events:none;

}



/*=====================================
HOTSPOTS
=====================================*/

.hotspot{

    position:absolute;

    border:none;

    background:rgba(255,255,255,0.02);

    border-radius:10px;

    cursor:pointer;

    z-index:10;

    transition:.2s; 

}

.hotspot:hover{

    background:rgba(255,255,255,.15);

    transform:scale(1.08);

}

.hotspot.found{

    opacity:0;

    pointer-events:none;

}



/*=====================================
PLAY BUTTON
=====================================*/

.play-marker{

    position:absolute;

    width:54px !important;

    height:54px !important;

    display:none;

    justify-content:center;

    align-items:center;

    border:none;

    border-radius:50%;

    background:#ff0000;

    color:#fff;

    font-size:0;    

    line-height:0;

    cursor:pointer;

    z-index:20;

    box-shadow:0 8px 18px rgba(0,0,0,.35);

    transition:all .2s ease;

}

.play-marker.show{

    display:flex;

    animation:popIn .25s ease;

}

.play-marker:hover{

    background:#d90000;

    transform:scale(1.12);

}

.play-marker:active{

    transform:scale(.94);

}



/*=====================================
PLAY ICON
=====================================*/

.play-marker.play::before{

    content:"";

    width:0;
    height:0;

    margin-left:4px;

    border-top:11px solid transparent;
    border-bottom:11px solid transparent;
    border-left:18px solid #fff;

}



/*=====================================
PAUSE ICON
=====================================*/

.play-marker.pause::before{

    content:"";

    width:16px;
    height:20px;

    background:
        linear-gradient(
            to right,
            #fff 0,
            #fff 5px,
            transparent 5px,
            transparent 11px,
            #fff 11px,
            #fff 16px
        );

}


/*=====================================
FOUND ANIMATION
=====================================*/

@keyframes popIn{

    0%{

        opacity:0;

        transform:scale(.2);

    }

    60%{

        opacity:1;

        transform:scale(1.15);

    }

    100%{

        opacity:1;

        transform:scale(1);

    }

}



/*=====================================
AUDIO
=====================================*/

#audioPlayer{

    display:none;

}



/*=====================================
UTILITY
=====================================*/

.hidden{

    display:none !important;

}

.disabled{

    pointer-events:none;

    opacity:.45;

}

.no-select{

    user-select:none;

    -webkit-user-select:none;

    -moz-user-select:none;

    -ms-user-select:none;

}



/*=====================================
SMOOTH TRANSITIONS
=====================================*/

.screen,
.scene-btn,
.hotspot,
.play-marker,
.game-header button{

    transition:all .25s ease;

}

/*=====================================
INFO BUTTON
=====================================*/

.info-button{

    position:absolute;

    left:10px;

    top:80px;

    width:56px;

    height:56px;

    border:none;

    border-radius:50%;

    background:#1976d2;

    color:#fff;

    font-size:34px;

    font-weight:bold;

    cursor:pointer;

    z-index:200;

    box-shadow:0 10px 22px rgba(0,0,0,.35);

    transition:.2s;
}

.info-button:hover{

    transform:scale(1.08);

    background:#0d5fb6;

}


/*=====================================
POPUP
=====================================*/

.popup-overlay{

    position:absolute;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.55);

    z-index:500;

}

.popup-overlay.show{

    display:flex;

}

.popup-box{

    width:430px;

    max-width:90%;

    max-height:80%;

    overflow:auto;

    background:#fff;

    border-radius:24px;

    padding:30px;

    box-shadow:0 18px 50px rgba(0,0,0,.4);

    animation:popupIn .25s ease;

}

.popup-box h2{

    text-align:center;

    color:#1976d2;

    margin-bottom:18px;

}

.popup-progress{

    text-align:center;

    font-size:20px;

    font-weight:bold;

    margin-bottom:20px;

}

.popup-box ol{

    padding-left:30px;

}

.popup-box li{

    font-size:22px;

    margin:12px 0;

}

.popup-box li.found{

    color:#2e7d32;

    font-weight:bold;
    
}

.popup-box li.found::marker{

    content:"✅ ";

}

.popup-box li:not(.found)::marker{

    content:"🔍 ";

}

.popup-close{

    float:right;

    background:none;

    font-size:34px;

    cursor:pointer;

    color:#666;

}

.popup-close:hover{

    color:#d32f2f;

}

@keyframes popupIn{

    from{

        transform:scale(.75);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}

.scene-list{

    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:20px;

}
.scene-select{

    width:100%;

    padding:14px 18px;

    border:none;

    border-radius:12px;

    background:#1f5fbf;

    color:#fff;

    font-size:18px;

    font-weight:600;

    text-align:left;

    cursor:pointer;

    transition:background .2s;

}

.scene-select:hover{

    background:#174b98;

}
.scene-select.active{

    background:#2e8b57;

    cursor:default;

    opacity:.85;

}

@keyframes markerFadeOut{

    from{

        opacity:1;

        transform:translateY(0);

    }

    to{

        opacity:0;

        transform:translateY(-75px);

    }

}

.play-marker.disappear{

    animation:markerFadeOut .9s ease-out forwards;

}