#spark-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.toggle-btn.floating-toggle {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 56px;
    height: 56px;
    border: var(--border);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.toggle-btn.floating-toggle:hover {
    background: var(--ink);
    color: var(--paper);
}

.toggle-btn.floating-toggle .icon-cat-nap,
.toggle-btn.floating-toggle .icon-cat-awake {
    font-size: 1.2rem;
    line-height: 1;
    pointer-events: none;
}

.toggle-btn.floating-toggle .icon-cat-nap {
    display: inline;
}

.toggle-btn.floating-toggle .icon-cat-awake {
    display: none;
}

body.dark-mode .toggle-btn.floating-toggle .icon-cat-nap {
    display: none;
}

body.dark-mode .toggle-btn.floating-toggle .icon-cat-awake {
    display: inline;
}

@media (max-width: 768px) {
    .toggle-btn.floating-toggle {
        right: calc(1rem + env(safe-area-inset-right));
        bottom: calc(1rem + env(safe-area-inset-bottom));
    }

}
