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

body {
    width: 100vw;
    height: 100dvh;
    background: #000;
    overflow: hidden;
}

canvas {
    display: block;
    cursor: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* ── Download Toast (browser only) ──────────────────── */

.download-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(30, 30, 30, 0.72);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    color: #f0f0f0;
    animation: toastSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-user-select: none;
}

.download-toast.hiding {
    animation: toastSlideOut 0.35s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(10px) scale(0.96); }
}

.download-toast-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.3;
}

.download-toast-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.download-toast-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.download-toast-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.download-toast-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    border-radius: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.download-toast-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.download-toast-btn.primary {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.download-toast-btn.primary:hover {
    background: rgba(255, 255, 255, 0.30);
}

.download-toast-btn svg {
    flex-shrink: 0;
}

.download-toast-close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    padding: 0;
    line-height: 1;
}

.download-toast-close:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}
