:root {
    --glass: rgba(0, 0, 0, .45);
    --accent: #00ffaa;

}

html, body {
    height: 100%;
    margin: 0;
    background: #000;
    overflow: hidden;

}
/*p5 canvas fixed behind content */

canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;

}

/*high z-flex overlay*/
.overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(16px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
    pointer-events: none;

}

.card {
    pointer-events: auto;
    background: var(--glass);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, .35);
    border-radius: 16px;
    padding: clamp(16px, 3vw, 28px);
    max-width: min(92vw, 560px);
    text-align: center;
    color: #e6fff5;
    font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

}

.card h1 {
    margin: 0 0 .25em;
    font-size: clamp(22px, 5.2vw, 34px);


}

.card p {
    margin: 0 0 .8em;
    opacity: .3;

}

.btn {
    display: inline-block;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: wavy;
    padding: 12px 18px;
    background: var(--accent);
    color: #001510;
    border: 0;
    box-shadow: 0 8px 24px rgba(0, 255, 170, .25);
    transition: transform .2s ease, box-shadow .2s ease;
    


}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 11px 10px 30px rgba(0, 255, 170, .35);
    

}

.btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;

}

.trash {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    z-index: 20;
    cursor: pointer;
    opacity: 0.5;
    transition: transform .2s, opacity .2s;
}

.trash:hover {
    transform: scale(1.05);
    opacity: 1;
}