/* ===== Lava Lamp Clock Theme ===== */

.lv-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px);
}

.lv-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted, #6b7280);
    letter-spacing: 0.02em;
    user-select: none;
}

.lv-switch {
    position: relative;
    width: 38px;
    height: 20px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lv-switch:focus-visible {
    outline: 2px solid rgba(251, 146, 60, 0.6);
    outline-offset: 2px;
}

.lv-switch-thumb {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #94a3b8;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.25s ease,
                box-shadow 0.25s ease;
}

.lv-switch[aria-pressed="true"] {
    background: rgba(251, 146, 60, 0.18);
    border-color: rgba(251, 146, 60, 0.45);
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.25);
}

.lv-switch[aria-pressed="true"] .lv-switch-thumb {
    transform: translateX(18px);
    background: #fb923c;
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.7);
}

body:has(.lv-stage) { background: #0a0303; }

.lv-stage {
    position: fixed;
    inset: var(--header-height, 80px) 0 0 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at center, #1a0a05 0%, #0a0303 60%, #000 100%);
    overflow: hidden;
}

.lv-canvas {
    position: absolute;
    inset: 0;
}

.lv-readout {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.lv-time {
    font-family: "Menlo", "Monaco", "Consolas", "Courier New", monospace;
    font-size: clamp(44px, 6.5vw, 68px);
    font-weight: 100;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.08em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow:
        0 0 20px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(0, 0, 0, 0.45);
}

.lv-date {
    margin-top: 6px;
    font-family: "Menlo", "Monaco", "Consolas", "Courier New", monospace;
    font-size: clamp(10px, 1.3vw, 13px);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

@media (max-width: 640px) {
    .lv-toolbar { gap: 6px 12px; padding: 5px 10px; }
    .lv-toggle-label { font-size: 11px; }
}
