/* ============================================================
   Kodama Focus — style.css
   A soft, hand-painted, storybook look. All original artwork.
   ============================================================ */

/* ---------- theme variables (overridden by theme.js) ---------- */
:root {
  --sky-a: #bfe3f2;
  --sky-b: #eaf6e2;
  --hill-a: #a8cf8e;
  --hill-b: #8fbf78;
  --hill-c: #79ad64;
  --accent: #6f9e58;
  --accent-deep: #578343;
  --sun: #fff3c4;

  --paper: rgba(255, 252, 244, 0.88);
  --paper-solid: #fffcf4;
  --ink: #4a4238;
  --ink-soft: #7a7062;
  --line: rgba(74, 66, 56, 0.14);
  --shadow: 0 10px 30px rgba(74, 66, 56, 0.14);
  --radius: 22px;

  --font: "Segoe UI", "Trebuchet MS", "Comic Sans MS", system-ui, sans-serif;
}

html[data-dark="true"] {
  --paper: rgba(38, 40, 48, 0.88);
  --paper-solid: #262830;
  --ink: #ece5d8;
  --ink-soft: #b3aa9a;
  --line: rgba(236, 229, 216, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html[data-contrast="high"] {
  --paper: rgba(255, 255, 255, 0.97);
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --line: rgba(0, 0, 0, 0.4);
}
html[data-dark="true"][data-contrast="high"] {
  --paper: rgba(10, 10, 14, 0.97);
  --ink: #ffffff;
  --ink-soft: #d8d8d8;
  --line: rgba(255, 255, 255, 0.5);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- background scene ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 100%);
  transition: background 1.2s ease;
}

.sun {
  position: absolute;
  top: 9%;
  right: 12%;
  width: clamp(70px, 10vw, 130px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, var(--sun), color-mix(in srgb, var(--sun) 55%, transparent) 62%, transparent 72%);
  filter: blur(1px);
}
html[data-night-scene="true"] .sun {
  background: radial-gradient(circle at 42% 40%, var(--sun) 0%, var(--sun) 46%, transparent 62%);
  box-shadow: 0 0 60px 8px color-mix(in srgb, var(--sun) 40%, transparent);
  clip-path: circle(50%);
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 100px;
  filter: blur(2px);
  opacity: 0.9;
}
html[data-night-scene="true"] .cloud { opacity: 0.14; }
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud-1 { width: 180px; height: 44px; top: 14%; left: -200px; animation: drift 85s linear infinite; }
.cloud-1::before { width: 80px; height: 60px; top: -30px; left: 30px; }
.cloud-1::after  { width: 60px; height: 46px; top: -20px; left: 92px; }
.cloud-2 { width: 130px; height: 34px; top: 26%; left: -160px; animation: drift 120s linear infinite 18s; }
.cloud-2::before { width: 60px; height: 44px; top: -22px; left: 24px; }
.cloud-2::after  { width: 44px; height: 34px; top: -14px; left: 68px; }
.cloud-3 { width: 220px; height: 50px; top: 7%; left: -260px; animation: drift 150s linear infinite 45s; opacity: 0.7; }
.cloud-3::before { width: 96px; height: 70px; top: -36px; left: 40px; }
.cloud-3::after  { width: 70px; height: 54px; top: -24px; left: 118px; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 320px)); }
}
html[data-animations="off"] .cloud { animation: none; left: 12%; }
html[data-animations="off"] .cloud-2 { left: 55%; }
html[data-animations="off"] .cloud-3 { left: 30%; }

.hills {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: min(38vh, 340px);
  display: block;
}
.hills path { transition: fill 1.2s ease; }
.window-glow { animation: windowGlow 5s ease-in-out infinite alternate; }
@keyframes windowGlow { from { opacity: 0.65; } to { opacity: 1; } }

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
html[data-dark="true"] .brand-name { text-shadow: none; }

.greeting {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.streak-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* ---------- buttons ---------- */
.primary-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 46px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 0 var(--accent-deep), var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.primary-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--accent-deep);
}
.primary-btn.small { padding: 10px 20px; font-size: 1rem; box-shadow: 0 4px 0 var(--accent-deep); }
.primary-btn.small:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-deep); }

.icon-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn.big { width: 54px; height: 54px; font-size: 1.4rem; }

.chip-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}
.chip-btn:active { transform: scale(0.96); }
.chip-btn.ghost { box-shadow: none; background: transparent; }
.chip-btn.danger { color: #b0473b; border-color: rgba(176, 71, 59, 0.4); }
html[data-dark="true"] .chip-btn.danger { color: #f0968c; }

/* ---------- layout ---------- */
.content {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 6px 16px calc(86px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.view { animation: viewIn 0.35s ease; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
html[data-animations="off"] .view { animation: none; }

.card-view {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 20px 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.view-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.hint-note {
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 10px 0 6px;
}
.about { margin-top: 22px; text-align: center; }

.empty-note {
  color: var(--ink-soft);
  text-align: center;
  padding: 18px 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- timer view ---------- */
.mode-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 4px;
  flex-wrap: wrap;
}
.mode-tab {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
  transition: background 0.2s ease, color 0.2s ease;
}
.mode-tab.active {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: #fff;
}

.timer-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
}

.timer-circle {
  position: relative;
  width: min(76vw, 340px);
  aspect-ratio: 1;
}

.timer-ring {
  width: 100%;
  height: 100%;
  display: block;
}
.ring-bg {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 10;
}
.ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s linear, stroke 0.4s ease;
}
html[data-timer-mode="short"] .ring-fg,
html[data-timer-mode="long"] .ring-fg { stroke: var(--accent-deep); }

.timer-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.timer-mode {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.timer-time {
  font-size: clamp(3.2rem, 15vw, 4.6rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}

.cycle-dots { display: flex; gap: 7px; margin-top: 6px; }
.cycle-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-deep);
  background: transparent;
  transition: background 0.3s ease;
}
.cycle-dot.filled { background: var(--accent); }

.timer-spirit {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  animation: bob 3.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}
html[data-animations="off"] .timer-spirit { animation: none; }
html[data-timer-running="true"] .timer-spirit { animation-duration: 2.2s; }

.current-task {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timer-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---------- fullscreen focus mode ---------- */
html[data-focus-mode="true"] .topbar,
html[data-focus-mode="true"] .bottom-nav,
html[data-focus-mode="true"] .mode-tabs,
html[data-focus-mode="true"] .current-task { display: none; }
html[data-focus-mode="true"] .content { justify-content: center; }
html[data-focus-mode="true"] .timer-circle { width: min(80vw, 56vh, 460px); }

/* ---------- tasks ---------- */
.task-form {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.task-form input[type="text"] {
  flex: 1;
  min-width: 0;
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1rem;
}
.est-label {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 10px 0 4px;
}
.est-label input {
  width: 44px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1rem;
  padding: 12px 0;
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 10px;
  transition: transform 0.15s ease, border-color 0.2s ease;
  animation: taskIn 0.3s ease;
}
@keyframes taskIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: none; }
}
html[data-animations="off"] .task-item { animation: none; }

.task-item.active { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.task-item.done { opacity: 0.62; }
.task-item.done .task-name { text-decoration: line-through; }

.task-check {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.task-item.done .task-check { background: var(--accent); }

.task-body {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 2px;
}
.task-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-tomatoes { font-size: 0.8rem; letter-spacing: 1px; }

.task-delete {
  flex: none;
  width: 30px; height: 30px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1;
  border-radius: 50%;
}
.task-delete:hover { background: rgba(176, 71, 59, 0.12); color: #b0473b; }

#btnClearCompleted { margin-top: 14px; }

/* ---------- sounds ---------- */
.sound-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}
.sound-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sound-toggle {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 150px;
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sound-toggle.on {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: #fff;
}
.sound-emoji { font-size: 1.05rem; }
.sound-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sound-slider { flex: 1; accent-color: var(--accent); height: 28px; }

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

/* ---------- stats ---------- */
.range-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.range-tab {
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.range-tab.active { background: var(--accent); border-color: var(--accent-deep); color: #fff; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 8px 0 16px;
}
.stat-card {
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.stat-emoji { font-size: 1.3rem; }
.stat-value { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.78rem; color: var(--ink-soft); }

.stat-chart svg { width: 100%; height: auto; }
.chart-bar {
  fill: var(--accent);
  opacity: 0.9;
  transform-origin: bottom;
  animation: barGrow 0.5s ease backwards;
}
@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
html[data-animations="off"] .chart-bar { animation: none; }
.chart-axis { stroke: var(--line); stroke-width: 2; }
.chart-label { fill: var(--ink-soft); font-size: 13px; }
.chart-value { fill: var(--ink); font-size: 13px; font-weight: 600; }

/* ---------- themes ---------- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.theme-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-solid);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.theme-card:hover { transform: translateY(-2px); }
.theme-card.selected { border-color: var(--accent); }
.theme-card.locked { opacity: 0.65; }

.theme-preview {
  flex: none;
  width: 74px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.theme-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.theme-name { font-weight: 700; font-size: 0.95rem; }
.theme-desc { font-size: 0.8rem; color: var(--ink-soft); }
.theme-check { flex: none; font-size: 1.2rem; color: var(--accent); font-weight: 700; width: 22px; }

/* ---------- settings ---------- */
.settings-group {
  margin: 22px 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.setting-row label { flex: 1; font-size: 0.95rem; }
.setting-row input[type="number"], .setting-row select {
  width: 92px;
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.95rem;
}
.setting-row select { width: 150px; }
.setting-row input[type="range"] { width: 150px; }

/* pretty switches */
input.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: var(--line);
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.2s ease;
  flex: none;
  cursor: pointer;
}
input.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper-solid);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
input.switch:checked { background: var(--accent); }
input.switch:checked::after { transform: translateX(21px); }

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* ---------- bottom navigation ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background: var(--paper);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 10;
}
.nav-btn {
  flex: 1;
  max-width: 110px;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 2px;
  border-radius: 14px;
  color: var(--ink-soft);
  transition: transform 0.15s ease, color 0.2s ease;
}
.nav-btn.active { color: var(--accent-deep); font-weight: 700; }
html[data-dark="true"] .nav-btn.active { color: var(--accent); }
.nav-btn:active { transform: scale(0.92); }
.nav-emoji { font-size: 1.3rem; }
.nav-btn.active .nav-emoji { transform: translateY(-2px) scale(1.12); }
.nav-label { font-size: 0.68rem; letter-spacing: 0.02em; }

/* ---------- shortcuts dialog ---------- */
.shortcuts-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-solid);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  max-width: 380px;
  width: calc(100vw - 40px);
}
.shortcuts-dialog::backdrop { background: rgba(30, 30, 30, 0.45); }
.shortcuts-dialog h2 { margin: 0 0 14px; font-size: 1.15rem; }
.shortcut-list { margin: 0 0 18px; }
.shortcut-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.shortcut-list dt {
  font-weight: 700;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1px 9px;
  font-size: 0.85rem;
}
.shortcut-list dd { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(16px);
  background: var(--paper-solid);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- larger screens: nav becomes a floating dock ---------- */
@media (min-width: 900px) {
  .content { max-width: 780px; padding-top: 14px; }
  .bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-btn { padding: 8px 14px; }
  .toast { bottom: 110px; }
}

/* ---------- small phones ---------- */
@media (max-width: 420px) {
  .greeting { display: none; }
  .mode-tab { padding: 7px 13px; font-size: 0.85rem; }
  .sound-toggle { width: 128px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
