
*{box-sizing:border-box}

html,body{
    margin:0;
    width:100%;
    height:100%;
    overflow:hidden;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif
}

body{
    background:#e9e6df;
    color:#1f1f1d
}

#app{
    width:100%;
    height:100%;
    position:relative;
}

canvas{
    display:block;
    width:100%;
    height:100%
}

.panel{
    position:absolute;
    z-index:5;
    top:24px;
    right:24px;
    width:300px;
    padding:20px;
    border:1px solid rgba(30,30,30,.12);
    border-radius:18px;
    background:rgba(255,255,255,.9);
    backdrop-filter:blur(16px);
    box-shadow:0 14px 40px rgba(0,0,0,.1)
}

.kicker{
    font-size:11px;
    letter-spacing:.16em;
    color:#77736b;
    font-weight:700
}

h1{
    margin:7px 0 8px;
    font-size:25px
}

p{
    margin:0;
    color:#6f6b63;
    line-height:1.5;
    font-size:14px
}

.meta{
    display:flex;
    gap:8px;
    margin-top:16px
}

.meta span{
    padding:7px 9px;
    border-radius:999px;
    background:#efede8;
    font-size:12px
}

.toolbar{
    position:absolute;
    z-index:5;
    left:50%;
    top:24px;
    transform:translateX(-50%);
    display:flex;
    gap:7px;
    padding:7px;
    border-radius:14px;
    background:rgba(255,255,255,.88);
    backdrop-filter:blur(14px);
    border:1px solid rgba(30,30,30,.1)
}

.toolbar button{
    border:0;
    background:transparent;
    color:#5f5b54;
    border-radius:9px;
    padding:9px 12px;
    cursor:pointer;
    font:inherit;
    font-size:12px
}

.toolbar button.active{
    background:#1f1f1d;
    color:white
}

.hint{
    position:absolute;
    z-index:4;
    left:24px;
    bottom:24px;
    padding:9px 12px;
    border-radius:10px;
    background:rgba(255,255,255,.82);
    color:#716d65;
    font-size:12px;
    backdrop-filter:blur(12px)
}

#loading{
    position:absolute;
    z-index:10;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    padding:12px 16px;
    border-radius:12px;
    background:rgba(255,255,255,.92);
    font-size:13px;
    box-shadow:0 10px 30px rgba(0,0,0,.1)
}

@media(max-width:700px){

    .panel{
        top:auto;
        bottom:18px;
        left:18px;
        right:18px;
        width:auto
    }

    .toolbar{
        left:18px;
        right:18px;
        transform:none;
        overflow:auto;
        justify-content:flex-start
    }

    .hint{
        left:50%;
        bottom:16px;
        transform:translateX(-50%);
        white-space:nowrap;
        font-size:11px;
        padding:8px 12px;
    }
}