*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }

:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }

input[type="range"] { accent-color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: var(--primary-2); }
.btn:active { transform: scale(.98); }

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  transition: color .2s ease, background .2s ease;
}
.icon-btn:hover { color: var(--text); background: var(--surface); }

.input {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-input);
  background: var(--surface);
  border: 1px solid var(--border);
}
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: var(--primary); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hidden { display: none !important; }

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