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

html, body {
    background: transparent !important;
    overflow: hidden;
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

canvas { display: block; }

#overlay {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end; justify-content: center;
    pointer-events: none;
    z-index: 10;
}

#overlay .card {
    margin-bottom: 80px;
    background: rgba(26, 26, 46, 0.92);
    border: 1px solid rgba(124, 131, 255, 0.4);
    border-radius: 12px;
    padding: 18px 28px;
    color: #e0e0ff;
    display: flex; flex-direction: column; align-items: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

#overlay h1 { font-size: 1.3em; margin-bottom: 0.4em; }
#overlay .status { font-size: 0.85em; opacity: 0.8; margin-top: 0.4em; }
#overlay .spinner {
    width: 28px; height: 28px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #7c83ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0.5em;
}
@keyframes spin { to { transform: rotate(360deg); } }

#menu {
    position: absolute;
    display: none;
    z-index: 20;
    min-width: 150px;
    background: rgba(26, 26, 46, 0.96);
    border: 1px solid rgba(124, 131, 255, 0.4);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

#menu .menu-title {
    color: #9aa0d0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
}

#menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 5px;
    color: #e0e0ff;
    font-size: 13px;
    padding: 7px 10px;
    cursor: pointer;
}

#menu button:hover { background: rgba(124, 131, 255, 0.25); }
#menu button.danger { color: #ff9a9a; }
#menu hr { border: none; border-top: 1px solid rgba(124,131,255,0.25); margin: 4px 0; }
