/* Pomodoro: crimson and silver, dark, no images. */
*, *::before, *::after { box-sizing: border-box; }
:root { --bg: #0a0505; --panel: #140808; --line: #2e1414; --text: #c9ccd4; --muted: #7f848f; --red: #690000; --red-hi: #8a1414; --silver: #aeb4bf; }
html, body { margin: 0; background: radial-gradient(70% 50% at 50% 0%, rgba(105, 0, 0, 0.35), transparent 70%), var(--bg); color: var(--text); }
body { font: 16px/1.5 "Segoe UI", system-ui, sans-serif; min-height: 100vh; }
.pomo { max-width: 460px; margin: 0 auto; padding: 16px; display: grid; gap: 16px; justify-items: center; }
.pomo-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.pomo-brand { font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); }
.phase { margin: 0; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.phase.break { color: var(--silver); }
.dial { position: relative; width: min(74vw, 300px); aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.track { fill: #0d0707; stroke: #241313; stroke-width: 10; }
.ring { fill: none; stroke: url(#none); stroke: var(--red); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 553; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s linear, stroke 0.3s; filter: drop-shadow(0 0 6px rgba(105, 0, 0, 0.8)); }
.ring.break { stroke: var(--silver); filter: drop-shadow(0 0 6px rgba(174, 180, 191, 0.4)); }
.readout { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
#time { font: 700 3.4rem/1 ui-monospace, Consolas, monospace; letter-spacing: 0.02em; color: var(--text); }
.cycle { margin-top: 6px; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pomo-btn { min-height: 48px; min-width: 96px; padding: 10px 18px; border-radius: 4px; border: 1px solid #4a4f58; background: linear-gradient(180deg, #2a2226, #120c0d); color: var(--text); font: inherit; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.pomo-btn.primary { border-color: #3d0000; background: linear-gradient(180deg, var(--red-hi), #3d0000); color: #d6dbe3; }
.pomo-btn.ghost:hover, .pomo-btn:hover { border-color: var(--silver); }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }
.task { width: 100%; display: grid; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.task input, .settings input[type="number"] { font: inherit; color: var(--text); background: #0d0a0b; border: 1px solid #4a4f58; border-radius: 4px; padding: 10px; min-height: 44px; }
.task input { width: 100%; }
.stats { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; font-size: 0.9rem; color: var(--muted); }
.stats p { margin: 4px 0; }
.stats strong { color: var(--silver); font-family: ui-monospace, Consolas, monospace; }
.settings { width: 100%; background: var(--panel); border: 1px solid #4a4f58; border-radius: 6px; padding: 16px; display: grid; gap: 10px; }
.settings h2 { margin: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--silver); }
.settings label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.92rem; }
.settings label.check { justify-content: flex-start; min-height: 40px; }
.settings input[type="number"] { width: 84px; text-align: center; }
.settings input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--red); }
.fine { font-size: 0.8rem; color: var(--muted); margin: 0; }
.note { min-height: 1.4em; margin: 0; font-size: 0.9rem; color: var(--silver); text-align: center; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .ring { transition: none; } }
