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

html,body{

    width:100%;
    height:100%;
    overflow:hidden;

    background:#111;
}

#canvas{

    width:100vw;
    height:100vh;
    position:absolute;
    inset:0;
    z-index:1;
}
#ui-hud {
    position: fixed;
    top: 12px;
    left: 12px;

    width: 220px;
    padding: 12px;

    background: rgba(10, 10, 10, 0.75);
    border: 1px solid rgba(0, 255, 200, 0.4);
    border-radius: 8px;

    color: #00ffcc;
    font-family: monospace;

    backdrop-filter: blur(6px);
    
    z-index:9999;
    pointer-events:auto;
}
#ui-hud-bottom {
    position: fixed;
    bottom: 12px;
    left: 12px;

    width: 220px;
    padding: 12px;

    background: rgba(10, 10, 10, 0.75);
    border: 1px solid rgba(0, 255, 200, 0.4);
    border-radius: 8px;

    color: #00ffcc;
    font-family: monospace;

    backdrop-filter: blur(6px);
    
    z-index:9999;
    pointer-events:auto;
}
.hud-title {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.hud-item {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    font-size: 12px;
}

.key {
    background: rgba(0, 255, 204, 0.15);
    border: 1px solid rgba(0, 255, 204, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
    color: #00ffcc;
    cursor: pointer;
}

.desc {
    opacity: 0.9;
}


.palette{
    display:flex;
    gap:8px;
}

.color-btn{

    width:25px;
    height:25px;

    border-radius:100%;
    border:2px solid #666;

    cursor:pointer;
}

.color-btn.active{

    border:3px solid #00bfff;
    transform:scale(1.15);

}