/* ==========================================================
   RESET
========================================================== */

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html,
body{

    width:100%;

    height:100%;

    overflow:hidden;

    font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

    background:#050816;

    color:#fff;

}

/* ==========================================================
   CANVAS
========================================================== */

#gameCanvas{

    position:fixed;

    inset:0;

    width:100%;

    height:100%;

    display:block;

    z-index:1;

}

/* ==========================================================
   TOP BAR
========================================================== */

#topBar{

    position:fixed;

    top:24px;

    left:24px;

    right:24px;

    height:72px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 24px;

    border:1px solid rgba(255,255,255,.08);

    background:rgba(5,10,25,.55);

    backdrop-filter:blur(18px);

    border-radius:18px;

    z-index:100;

}

#logo{

    font-size:28px;

    font-weight:800;

    letter-spacing:2px;

    color:#00ffff;

    text-shadow:

    0 0 18px rgba(0,255,255,.8);

}

#headerButtons{

    display:flex;

    gap:14px;

}

#headerButtons button{

    width:120px;

    height:46px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    font-size:15px;

    font-weight:700;

    color:white;

    background:

    linear-gradient(
        135deg,
        #00d4ff,
        #0088ff
    );

    transition:.25s;

}

#headerButtons button:hover{

    transform:translateY(-2px);

    box-shadow:

    0 0 24px rgba(0,255,255,.55);

}

/* ==========================================================
   HUD
========================================================== */

#leftHUD{

    position:fixed;

    top:120px;

    left:24px;

    display:flex;

    flex-direction:column;

    gap:16px;

    z-index:100;

}

.hudItem{

    width:170px;

    padding:18px;

    border-radius:16px;

    background:

    rgba(8,12,28,.55);

    border:

    1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(18px);

}

.hudItem div:first-child{

    font-size:14px;

    color:#8fa6c8;

    margin-bottom:8px;

}

.hudItem div:last-child{

    font-size:34px;

    font-weight:800;

    color:#00ffff;

}/* ==========================================================
   MENU
========================================================== */

#menuScreen{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.35);

    backdrop-filter:blur(4px);

    z-index:200;

}

#menuPanel{

    width:560px;

    max-width:92vw;

    padding:60px;

    text-align:center;

    border-radius:28px;

    border:1px solid rgba(255,255,255,.08);

    background:rgba(8,12,28,.72);

    backdrop-filter:blur(20px);

    box-shadow:

    0 0 80px rgba(0,255,255,.12);

}

#menuPanel h1{

    font-size:72px;

    font-weight:900;

    letter-spacing:4px;

    color:#00ffff;

    text-shadow:

    0 0 18px rgba(0,255,255,.8),

    0 0 40px rgba(0,255,255,.45);

}

#menuPanel p{

    margin-top:24px;

    color:#b8c8e5;

    font-size:18px;

    line-height:1.7;

}

#playButton{

    width:260px;

    height:68px;

    margin-top:40px;

    border:none;

    border-radius:16px;

    cursor:pointer;

    font-size:22px;

    font-weight:800;

    color:white;

    background:

    linear-gradient(

        135deg,

        #00d4ff,

        #007dff

    );

    transition:.25s;

}

#playButton:hover{

    transform:translateY(-3px);

    box-shadow:

    0 0 35px rgba(0,255,255,.55);

}

/* ==========================================================
   GAME OVER
========================================================== */

#gameOverScreen{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.45);

    backdrop-filter:blur(6px);

    z-index:300;

}

#gameOverPanel{

    width:500px;

    max-width:92vw;

    padding:55px;

    text-align:center;

    border-radius:24px;

    background:rgba(10,14,34,.82);

    border:1px solid rgba(255,255,255,.08);

}

#gameOverPanel h2{

    font-size:52px;

    color:#ff5b7a;

    margin-bottom:25px;

}

#finalScore{

    font-size:72px;

    font-weight:900;

    color:#00ffff;

    margin-bottom:35px;

}

#restartButton,
#buyAgainButton{

    width:100%;

    height:58px;

    border:none;

    border-radius:14px;

    cursor:pointer;

    font-size:18px;

    font-weight:700;

    color:white;

    margin-top:15px;

    transition:.25s;

}

#restartButton{

    background:

    linear-gradient(

        135deg,

        #00d4ff,

        #007dff

    );

}

#buyAgainButton{

    background:

    linear-gradient(

        135deg,

        #28d86c,

        #0bb857

    );

}

#restartButton:hover,
#buyAgainButton:hover{

    transform:translateY(-2px);

}/* ==========================================================
   CONTRACT PANEL
========================================================== */

#contractPanel{

    position:fixed;

    right:24px;

    bottom:24px;

    width:360px;

    padding:22px;

    border-radius:18px;

    background:rgba(8,12,28,.72);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(18px);

    z-index:100;

}

#contractTitle{

    font-size:14px;

    color:#8fa6c8;

    margin-bottom:10px;

}

#contractText{

    width:100%;

    padding:14px;

    border-radius:12px;

    background:rgba(255,255,255,.05);

    color:#00ffff;

    font-size:14px;

    font-family:monospace;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    user-select:all;

}

#copyButton{

    width:100%;

    height:52px;

    margin-top:16px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    color:white;

    font-size:16px;

    font-weight:700;

    background:linear-gradient(
        135deg,
        #00d4ff,
        #0088ff
    );

    transition:.25s;

}

#copyButton:hover{

    transform:translateY(-2px);

    box-shadow:

    0 0 28px rgba(0,255,255,.45);

}

/* ==========================================================
   TOAST
========================================================== */

#toast{

    position:fixed;

    left:50%;

    bottom:45px;

    transform:translateX(-50%) translateY(30px);

    padding:14px 28px;

    border-radius:12px;

    background:#00d4ff;

    color:#05101c;

    font-weight:700;

    opacity:0;

    pointer-events:none;

    transition:.35s;

    z-index:500;

}

#toast.show{

    opacity:1;

    transform:translateX(-50%) translateY(0);

}

/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-thumb{

    background:#00d4ff;

    border-radius:20px;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:1000px){

    #topBar{

        flex-direction:column;

        height:auto;

        gap:18px;

        padding:18px;

    }

    #headerButtons{

        width:100%;

        display:grid;

        grid-template-columns:repeat(2,1fr);

        gap:12px;

    }

    #headerButtons button{

        width:100%;

    }

    #leftHUD{

        top:auto;

        bottom:24px;

        left:24px;

        right:24px;

        flex-direction:row;

    }

    .hudItem{

        flex:1;

        width:auto;

    }

    #contractPanel{

        width:auto;

        left:24px;

    }

}

@media(max-width:700px){

    #menuPanel{

        padding:36px;

    }

    #menuPanel h1{

        font-size:46px;

    }

    #menuPanel p{

        font-size:16px;

    }

    #playButton{

        width:100%;

    }

    #gameOverPanel{

        padding:36px;

    }

    #headerButtons{

        grid-template-columns:1fr;

    }

    #leftHUD{

        flex-direction:column;

    }

}/* ==========================================================
   SOUND BUTTON
========================================================== */

#soundButton{

    min-width:130px;

    background:
    linear-gradient(
        135deg,
        #00d4ff,
        #007dff
    );

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        opacity .25s ease,
        background .25s ease;

}

#soundButton.soundOff{

    background:
    linear-gradient(
        135deg,
        #34394d,
        #202536
    );

    color:#9da9be;

    opacity:.82;

    box-shadow:none;

}

#soundButton.soundOff:hover{

    opacity:1;

    box-shadow:
        0 0 20px
        rgba(150,170,200,.2);

}/* ==========================================================
   LEFT HUD POSITION FIX
========================================================== */

#hud {

    left: 22px;

    top: 90px;

    transform: scale(0.88);

    transform-origin: top left;

}

#chartButton,
#telegramButton{
    display:none;
}

/* ==========================================================
   END
========================================================== */