/* Base: reset, typography, form controls, small utility classes, animations. */

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); }
/* No double-tap-to-zoom (quick taps on play/skip zoomed the page in iPhone Safari); pinch-zoom still works. */
html { touch-action: manipulation; }
/* The device's own interface font (San Francisco on Apple devices): nothing to download, works with no internet. */
body { font: var(--fs-base)/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; }
svg { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-s); }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--pop-hover); border-radius: var(--radius); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--line-strong); }
::-webkit-scrollbar-track { background: transparent; }
h2.row-title { font-size: var(--fs-xl); font-weight: 700; margin: 30px 0 12px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; }
h2.row-title small { font-size: var(--fs-m); color: var(--dim); font-weight: 500; }
.muted { color: var(--dim); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq { 0%,100% { transform: scaleY(.2857); } 50% { transform: scaleY(1); } }   /* 4px ↔ 14px of a 14px bar (transform: no layout every frame) */
@keyframes toast { from { opacity: 0; transform: translateY(8px); } }
body.reordering, body.reordering * { cursor: grabbing !important; user-select: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
a.chip { text-decoration: none; display: inline-flex; align-items: center; }
.err-text { color: var(--danger); }
.small { font-size: var(--fs-m); }
.accent-link { color: var(--accent); }
.center { text-align: center; }
.flip { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 760px) {
  .desktop-only { display: none !important; }
}
