/* ================================= */
/* NOVA MINER V2 */
/* GLOBAL */
/* ================================= */

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:#08111f;

    color:#ffffff;

    overflow-x:hidden;

}

/* ================================= */

img{

    max-width:100%;

    display:block;

}

button{

    border:none;

    outline:none;

    cursor:pointer;

    font-family:'Poppins',sans-serif;

}

input{

    outline:none;

    font-family:'Poppins',sans-serif;

}

/* ================================= */
/* APP */
/* ================================= */

#app{

    width:100%;

    min-height:100vh;

    padding-bottom:90px;

}

/* ================================= */
/* SPLASH */
/* ================================= */

#splashScreen{

    position:fixed;

    inset:0;

    background:#08111f;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.splash-logo{

    width:130px;

    height:130px;

    margin-bottom:20px;

}

.splash-logo img{

    width:100%;

}

#splashScreen h1{

    font-size:34px;

    font-weight:700;

    margin-bottom:8px;

}

#splashScreen p{

    color:#9db3d3;

    margin-bottom:35px;

}

.loading-bar{

    width:220px;

    height:10px;

    border-radius:20px;

    background:#13243d;

    overflow:hidden;

}

.loading-fill{

    width:0%;

    height:100%;

    background:#39b5ff;

    animation:loading 2s linear forwards;

}

@keyframes loading{

    from{

        width:0%;

    }

    to{

        width:100%;

    }

}

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

.header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px;

}

.brand{

    display:flex;

    align-items:center;

    gap:12px;

}

.header-logo{

    width:48px;

    height:48px;

}

.brand h2{

    font-size:20px;

}

.brand small{

    color:#8fa7c8;

}

.header-buttons{

    display:flex;

    gap:10px;

}

.header-buttons button{

    background:#12233d;

    color:#fff;

    border-radius:12px;

    padding:10px 14px;

   }
/* ================================= */
/* PAGES */
/* ================================= */

.page{

    display:none;

    padding:18px;

    animation:fade .35s ease;

}

.page.active{

    display:block;

}

.hidden{

    display:none!important;

}

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ================================= */
/* HERO CARD */
/* ================================= */

.hero-card{

    background:linear-gradient(135deg,#143056,#1f5ea8);

    border-radius:24px;

    padding:24px;

    text-align:center;

    margin-bottom:22px;

    box-shadow:0 10px 30px rgba(0,0,0,.25);

}

.hero-card h1{

    font-size:28px;

    margin-bottom:12px;

}

.hero-card p{

    color:#d7e6ff;

    line-height:1.6;

    margin-bottom:20px;

}

.hero-buttons{

    display:flex;

    gap:12px;

}

.hero-buttons button{

    flex:1;

}

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

.primary-btn{

    background:#39b5ff;

    color:#fff;

    border-radius:14px;

    padding:14px;

    font-size:16px;

    font-weight:600;

}

.secondary-btn{

    background:#182c48;

    color:#fff;

    border-radius:14px;

    padding:14px;

    font-size:15px;

}

/* ================================= */
/* DASHBOARD */
/* ================================= */

.dashboard{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

    margin-bottom:20px;

}

.stat-card{

    background:#12233d;

    border-radius:18px;

    padding:18px;

    display:flex;

    align-items:center;

    gap:15px;

}

.stat-icon{

    font-size:28px;

}

.stat-info small{

    color:#93abd0;

    display:block;

    margin-bottom:4px;

}

.stat-info h3{

    font-size:20px;

}

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

.progress-card{

    background:#12233d;

    border-radius:20px;

    padding:18px;

    margin-bottom:20px;

}

.progress-card h3{

    margin-bottom:16px;

}

.progress-bar{

    height:12px;

    background:#223754;

    border-radius:999px;

    overflow:hidden;

}

.progress-fill{

    width:100%;

    height:100%;

    background:#39b5ff;

}

.progress-footer{

    display:flex;

    justify-content:space-between;

    margin-top:10px;

    color:#9fb8d8;

    font-size:14px;

}

/* ================================= */
/* QUICK ACTIONS */
/* ================================= */

.quick-actions{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:14px;

    margin-top:20px;

    margin-bottom:20px;

}

.quick-actions button{

    width:100%;

}

/* ================================= */
/* AD CARD */
/* ================================= */

.ad-card{

    background:#12233d;

    border-radius:20px;

    padding:20px;

}

.ad-card h3{

    margin-bottom:10px;

}

.ad-card p{

    color:#9fb8d8;

    margin-bottom:18px;

    line-height:1.6;

}
/* ================================= */
/* MINING PAGE */
/* ================================= */

.page-title{

    margin-bottom:20px;

}

.page-title h2{

    font-size:28px;

    margin-bottom:6px;

}

.page-title p{

    color:#9fb8d8;

    line-height:1.6;

}

/* ================================= */

.mining-status-card{

    background:#12233d;

    border-radius:20px;

    padding:20px;

    margin-bottom:20px;

}

.status-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:14px;

}

.status-item:last-child{

    margin-bottom:0;

}

.status-item span{

    color:#9fb8d8;

}

.status-item strong{

    font-size:18px;

}

/* ================================= */

.session-card{

    background:#12233d;

    border-radius:20px;

    padding:20px;

    margin-bottom:20px;

}

.session-row{

    display:flex;

    justify-content:space-between;

    margin-bottom:14px;

}

.session-row:last-child{

    margin-bottom:0;

}

.session-row span{

    color:#9fb8d8;

}

.session-row strong{

    font-size:18px;

}

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

#gameCanvas{

    background:#101d31;

    border-radius:24px;

    padding:20px;

    margin-bottom:20px;

}

#rockField{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:15px;

}

/* ================================= */

.rock{

    width:100%;

    aspect-ratio:1;

    border-radius:18px;

    font-size:34px;

    background:#1a3153;

    color:#fff;

    transition:.2s;

}

.rock:hover{

    transform:scale(1.05);

}

.rock:active{

    transform:scale(.92);

}

.rock.normal{

    background:#324862;

}

.rock.gold{

    background:#b58a00;

}

.rock.crystal{

    background:#00b8d9;

}

.rock.bomb{

    background:#b32323;

}

/* ================================= */
/* MINING CONTROLS */
/* ================================= */

.mining-controls{

    display:flex;

    gap:12px;

    margin-bottom:20px;

}

.mining-controls button{

    flex:1;

}

/* ================================= */
/* BOOST CARD */
/* ================================= */

.reward-card{

    background:#12233d;

    border-radius:20px;

    padding:20px;

}

.reward-card h3{

    margin-bottom:10px;

}

.reward-card p{

    color:#9fb8d8;

    line-height:1.6;

    margin-bottom:16px;

}
/* ================================= */
/* REWARDS PAGE */
/* ================================= */

.reward-box{

    background:#12233d;

    border-radius:20px;

    padding:20px;

    margin-bottom:20px;

}

.reward-box h3{

    margin-bottom:14px;

}

.reward-box p{

    color:#9fb8d8;

    line-height:1.6;

    margin-bottom:16px;

}

.reward-box button{

    width:100%;

    margin-top:12px;

}

.mission-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:10px;

    padding:14px 0;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.mission-item:last-child{

    border-bottom:none;

}

.mission-item span{

    color:#d9e8ff;

}

.mission-item button{

    width:auto;

    padding:10px 18px;

    border-radius:12px;

    background:#39b5ff;

    color:#fff;

}

/* ================================= */
/* LEADERBOARD */
/* ================================= */

.leaderboard-card{

    background:#12233d;

    border-radius:20px;

    padding:20px;

    margin-bottom:20px;

}

.leaderboard-card h3{

    margin-bottom:16px;

}

.leader-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 0;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.leader-item:last-child{

    border-bottom:none;

}

.leader-item span{

    color:#dce9ff;

}

.leader-item strong{

    color:#39b5ff;

}

.leaderboard-card ul{

    padding-left:20px;

}

.leaderboard-card li{

    margin:10px 0;

    color:#dce9ff;

}

/* ================================= */
/* PROFILE */
/* ================================= */

.profile-header{

    text-align:center;

    margin-bottom:25px;

}

.profile-avatar{

    width:90px;

    height:90px;

    border-radius:50%;

    margin:0 auto 16px;

    background:#12233d;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:42px;

}

.profile-header h2{

    margin-bottom:8px;

}

.profile-header p{

    color:#9fb8d8;

    margin-bottom:16px;

}

.profile-card{

    background:#12233d;

    border-radius:20px;

    padding:20px;

    margin-bottom:20px;

}

.profile-card h3{

    margin-bottom:16px;

}

.profile-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:12px 0;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.profile-row:last-child{

    border-bottom:none;

}

.profile-card input{

    width:100%;

    margin:14px 0;

    padding:14px;

    border:none;

    border-radius:12px;

    background:#1a3153;

    color:#fff;

}

.profile-card button{

    width:100%;

    margin-top:10px;

}
/* ================================= */
/* BOTTOM NAVIGATION */
/* ================================= */

.bottom-nav{

    position:fixed;

    bottom:0;

    left:0;

    width:100%;

    height:75px;

    background:#101d31;

    display:flex;

    justify-content:space-around;

    align-items:center;

    border-top:1px solid rgba(255,255,255,.08);

    z-index:1000;

}

.nav-item{

    background:none;

    color:#8fa7c8;

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:4px;

    font-size:12px;

    transition:.25s;

}

.nav-item span{

    font-size:22px;

}

.nav-item.active{

    color:#39b5ff;

    transform:translateY(-3px);

}

/* ================================= */
/* MODAL */
/* ================================= */

.modal{

    position:fixed;

    inset:0;

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

    display:flex;

    justify-content:center;

    align-items:center;

    padding:20px;

    z-index:2000;

}

.modal-content{

    width:100%;

    max-width:380px;

    background:#12233d;

    border-radius:22px;

    padding:25px;

    text-align:center;

}

.modal-content h2{

    margin-bottom:16px;

}

.modal-content p{

    color:#9fb8d8;

    margin-bottom:20px;

    line-height:1.6;

}

.modal-content button{

    width:100%;

    margin-top:10px;

}

/* ================================= */
/* LOADING */
/* ================================= */

#loadingOverlay{

    position:fixed;

    inset:0;

    background:rgba(8,17,31,.92);

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:18px;

    z-index:3000;

}

.loader{

    width:70px;

    height:70px;

    border:6px solid #28405f;

    border-top-color:#39b5ff;

    border-radius:50%;

    animation:spin 1s linear infinite;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

/* ================================= */
/* ANIMATIONS */
/* ================================= */

button{

    transition:.2s;

}

button:hover{

    opacity:.95;

}

button:active{

    transform:scale(.96);

}

.stat-card,
.reward-box,
.profile-card,
.leaderboard-card,
.ad-card,
.reward-card,
.mining-status-card,
.session-card{

    transition:.25s;

}

.stat-card:hover,
.reward-box:hover,
.profile-card:hover,
.leaderboard-card:hover{

    transform:translateY(-3px);

}

/* ================================= */
/* RESPONSIVE */
/* ================================= */

@media (min-width:768px){

    #app{

        max-width:480px;

        margin:auto;

    }

    .bottom-nav{

        max-width:480px;

        left:50%;

        transform:translateX(-50%);

        border-radius:18px 18px 0 0;

    }

                    }
