/* LOWiSPIKE Dark (true black), Nov 5 2026. The fixed parts of the Dark look; true-black.js rewrites every other navy colour in
   the app's own style sheets to neutral grey while html[data-black] is set. The selectors repeat [data-black] so they win over
   the sky gradient (atmosphere.css, !important) and the weather looks (apple-ui.css) without depending on load order. */
html[data-black][data-black] { --bg: #000; --tb-surface: #1c1c1e; --tb-surface-2: #2c2c2e; --tb-line: rgba(255, 255, 255, .14); color-scheme: dark; }
html[data-black][data-black],
html[data-black][data-black] body,
html[data-black][data-black] body #app { background: #000 !important; }
/* Reduce transparency (iOS Accessibility > Display): the glass turns into solid dark grey, no blur */
@media (prefers-reduced-transparency: reduce) {
    html[data-black][data-black] .r2-sh,
    html[data-black][data-black] .r2-ov .r2-sh,
    html[data-black][data-black] .lb-bub,
    html[data-black][data-black] .card,
    html[data-black][data-black] .sheet { background: var(--tb-surface) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
/* Increase contrast: clearer edges on black */
@media (prefers-contrast: more) {
    html[data-black][data-black] { --tb-line: rgba(255, 255, 255, .32); }
    html[data-black][data-black] .r2-sh,
    html[data-black][data-black] .lb-bub,
    html[data-black][data-black] .card { outline: 1px solid var(--tb-line); }
}

/* Nov 5 2026, Apple HIG polish on the look switch only (Emmanuel's tip: no "vibe coded" feel): the Day / Dark / Night / Auto
   buttons answer the finger at once with a small press and spring back; transform only, so it costs nothing on a phone.
   Skipped under Reduce Motion and battery saver (power-saver.js sets html.lowi-saver). The buttons are 44 pt tall already. */
.atm-quick button, [data-r2theme] { transition: transform .32s cubic-bezier(.34, 1.56, .64, 1); -webkit-tap-highlight-color: transparent; }
.atm-quick button:active, [data-r2theme]:active { transform: scale(.94); transition-duration: .08s; }
@media (prefers-reduced-motion: reduce) { .atm-quick button, [data-r2theme] { transition: none; } .atm-quick button:active, [data-r2theme]:active { transform: none; } }
html.lowi-saver .atm-quick button, html.lowi-saver [data-r2theme] { transition: none; }
html.lowi-saver .atm-quick button:active, html.lowi-saver [data-r2theme]:active { transform: none; }
