:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #fff4ea; background: #472343; font-synthesis: none; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { background: linear-gradient(120deg, #ff783b, #f25551 38%, #bb398f 68%, #6236b3); }
[hidden] { display: none !important; }
#field, #still { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#field { touch-action: none; outline: none; }
#still { object-fit: cover; }
button { font: inherit; font-size: 14px; color: inherit; background: transparent; border: 0; border-radius: 8px; min-height: 44px; padding: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, #field:focus-visible { outline: 2px solid #fff4ea; outline-offset: -2px; }
button:disabled { opacity: .4; cursor: default; }
svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#open-controls { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; place-items: center; border-radius: 50%; width: 44px; background: #24172b38; opacity: .4; transition: opacity .5s; }
.resting #open-controls { opacity: 0; }
body.resting #field { cursor: none; }
#open-controls:hover, #open-controls:focus-visible { opacity: 1; }
#controls { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); width: min(300px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; background: rgb(42 23 43 / .78); border: 1px solid #fff4ea29; border-radius: 20px; padding: 10px 20px 18px; box-shadow: 0 12px 36px #160e2429; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
#close-controls { display: grid; place-items: center; width: 44px; margin-right: -12px; color: #fff4eabf; }
#close-controls svg { width: 20px; height: 20px; }
.palette-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 15px; }
#original { min-width: 44px; color: #dfc4e2; font-size: 12px; }
.palette-controls { display: flex; justify-content: space-between; margin: 0 -4px 13px; }
.swatch { width: 44px; display: grid; place-items: center; border-radius: 50%; }
.swatch span { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--swatch); transition: transform .2s; }
.swatch[aria-pressed="true"] span { outline: 1.5px solid #fff4ea; outline-offset: 3px; }
.ember { --swatch: linear-gradient(135deg, #ffb74b, #ed793b 35%, #8d4bea 90%); }
.lagoon { --swatch: linear-gradient(135deg, #32ddb4, #2773f2); }
.orchid { --swatch: linear-gradient(135deg, #8a6dff, #df4ba5); }
.aurora { --swatch: linear-gradient(135deg, #a2de60, #af7ce9); }
.rose { --swatch: linear-gradient(135deg, #ff71b1, #ffca49); }
.brightness-row, .row-label { display: flex; align-items: center; }
.brightness-row { justify-content: space-between; gap: 8px; margin: 0 -2px 14px; }
.row-label { gap: 8px; font-size: 13px; }
.segments { display: flex; padding: 2px; border-radius: 10px; background: #fff4ea12; box-shadow: inset 0 0 0 1px #fff4ea0c; }
.segments button { min-width: 38px; min-height: 40px; padding: 0 6px; font-size: 12px; color: #dfc4e2; }
.segments button[aria-pressed="true"] { background: #f3e6d9; color: #342235; box-shadow: 0 1px 4px #160e2420; }
.actions { border-top: 1px solid #fff4ea21; padding-top: 8px; }
.actions button { display: flex; align-items: center; gap: 12px; width: calc(100% + 16px); margin: 0 -8px; padding: 0 8px; text-align: left; }
.actions svg { color: #fff4eae0; }
.play-mark, #pause[aria-pressed="true"] .pause-mark { display: none; }
#pause[aria-pressed="true"] .play-mark { display: block; }
.toggle { margin-left: auto; width: 32px; height: 20px; border-radius: 12px; background: #fff4ea29; padding: 3px; transition: background .2s; }
.toggle::after { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: #f3e6d9; transition: transform .2s; }
[aria-pressed="true"] .toggle { background: #a47bad; }
[aria-pressed="true"] .toggle::after { transform: translateX(12px); }
.help { font-size: 11px; line-height: 1.5; color: #dfc4e2; text-align: center; margin: 16px 0 0; }
#intro { position: fixed; bottom: max(70px, calc(env(safe-area-inset-bottom) + 60px)); width: 100%; text-align: center; pointer-events: none; font-size: 16px; text-shadow: 0 2px 15px #211629; transition: opacity 1s; }
#intro p { font-size: 12px; opacity: .8; margin-top: 10px; }
#intro.dismissed { opacity: 0; }
#message { position: fixed; top: max(28px, env(safe-area-inset-top)); left: 20px; right: 20px; text-align: center; font-size: 13px; text-shadow: 0 2px 10px #211629; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) { button:not(:disabled):hover { background-color: #fff4ea0c; } .swatch:not(:disabled):hover span { transform: scale(1.08); } .segments button[aria-pressed="true"]:hover { background: #f3e6d9; } }
@media (max-width: 480px) { #controls { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
