:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-strong: #f0f4f8;
  --ink: #1b2430;
  --muted: #617084;
  --line: #d8e0ea;
  --teal: #1e9f91;
  --teal-dark: #14766d;
  --coral: #f06d4f;
  --blue: #4e66d8;
  --gold: #e3a72f;
  --shadow: 0 18px 45px rgba(32, 43, 59, 0.12);
  --disc-count: 4;
  --disc-height: 30px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(30, 159, 145, 0.08), transparent 30%),
    linear-gradient(315deg, rgba(240, 109, 79, 0.09), transparent 28%),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 0.96rem;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.header-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.page-nav-link {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(32, 43, 59, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.page-nav-link.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.language-switch {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  padding: 4px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(32, 43, 59, 0.09);
}

.language-button {
  min-height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
}

.language-button.is-active {
  color: #fff;
  background: var(--ink);
}

.problem-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.problem-description {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.problem-rules {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.problem-rules span {
  padding: 8px 10px;
  color: var(--ink);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 850;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  min-width: 300px;
}

.summary-strip > div {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-value {
  display: block;
  color: var(--coral);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}

.summary-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.control-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(220px, 0.75fr) auto;
  gap: 14px;
  align-items: end;
  padding: 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.practice-control-bar {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.control-group {
  min-width: 0;
}

.control-group label,
.control-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 64px;
  gap: 10px;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--teal);
}

.number-input {
  width: 64px;
  min-height: 40px;
  padding: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segment {
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 850;
}

.segment.is-active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(27, 36, 48, 0.18);
}

.button-row {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
}

.button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 850;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.visual-panel,
.info-panel,
.practice-panel,
.move-panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-panel {
  min-height: 572px;
  padding: 18px;
}

.info-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.info-panel {
  padding: 16px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-heading.compact {
  margin-bottom: 10px;
}

.code-selector {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.code-selector label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.code-selector select {
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.progress-pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: var(--teal-dark);
  background: rgba(30, 159, 145, 0.1);
  border: 1px solid rgba(30, 159, 145, 0.24);
  border-radius: 8px;
  font-weight: 900;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: var(--panel-strong);
  border-radius: 999px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--coral));
  transition: width 180ms ease;
}

.visualization {
  min-height: 470px;
}

.tower-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-height: 462px;
  padding: 18px 6px 0;
}

.peg-column {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-width: 0;
  min-height: 424px;
  padding: 0 10px 62px;
}

.rod {
  position: absolute;
  bottom: 70px;
  width: 12px;
  height: 78%;
  background: linear-gradient(90deg, #c9d3df, #eef3f8 48%, #9dacbd);
  border: 1px solid #b5c1d0;
  border-radius: 999px 999px 0 0;
  z-index: 0;
}

.peg-base {
  position: absolute;
  right: 5%;
  bottom: 52px;
  left: 5%;
  height: 18px;
  background: linear-gradient(180deg, #2b3442, #18202b);
  border-radius: 8px;
  z-index: 1;
}

.peg-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.disc-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: calc(var(--disc-count) * (var(--disc-height) + 4px));
  gap: 4px;
}

.disc {
  display: grid;
  place-items: center;
  height: var(--disc-height);
  min-height: 18px;
  max-height: 30px;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.12),
    0 9px 18px rgba(27, 36, 48, 0.14);
  font-size: clamp(0.72rem, 1.2vw, 0.92rem);
  font-weight: 900;
  transform-origin: center;
  animation: settle 220ms ease;
}

.disc.is-moving {
  position: relative;
  z-index: 80 !important;
  animation: none;
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.12),
    0 20px 34px rgba(27, 36, 48, 0.22);
  will-change: transform;
}

.disc.is-top {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: -5px;
}

.step-text {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.move-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.meta-item {
  min-width: 0;
  padding: 10px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.meta-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.meta-item strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.recipe {
  overflow-x: auto;
  margin: 0 0 12px;
  padding: 12px;
  color: #18202b;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.recipe-lines {
  display: grid;
  gap: 2px;
}

.recipe-line {
  min-width: max-content;
  padding: 4px 8px;
  border-left: 4px solid transparent;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre;
}

.recipe-line.is-header {
  color: var(--teal-dark);
  font-weight: 900;
}

.recipe-line.is-path {
  color: var(--ink);
  background: rgba(227, 167, 47, 0.14);
  border-left-color: var(--gold);
}

.recipe-line.is-active {
  color: var(--ink);
  background: rgba(30, 159, 145, 0.12);
  border-left-color: var(--teal);
  font-weight: 900;
}

.subproblem-panel {
  margin-bottom: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.subproblem-panel h3 {
  margin-bottom: 8px;
}

.subproblem-intro {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.subproblem-list {
  display: grid;
  gap: 8px;
}

.subproblem-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid transparent;
  border-radius: 8px;
  background: var(--panel-strong);
}

.subproblem-card.is-active {
  border-left-color: var(--blue);
  background: rgba(78, 102, 216, 0.09);
}

.subproblem-card h4 {
  margin: 0 0 5px;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.subproblem-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.recursion-path-panel {
  margin-bottom: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #fff, rgba(240, 244, 248, 0.7));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recursion-path-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.recursion-depth-pill {
  flex: 0 0 auto;
  padding: 6px 8px;
  color: var(--blue);
  background: rgba(78, 102, 216, 0.08);
  border: 1px solid rgba(78, 102, 216, 0.18);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.recursion-path-intro {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.recursion-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.recursion-rail-node {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 30px;
  padding: 4px 8px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.recursion-rail-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -9px;
  width: 8px;
  height: 2px;
  content: "";
  background: var(--line);
}

.recursion-rail-node.is-active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.recursion-path {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 0 2px 0 0;
  margin: 0;
  list-style: none;
}

.recursion-frame {
  position: relative;
  padding: 10px 10px 10px calc(10px + var(--depth-indent, 0px));
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid rgba(227, 167, 47, 0.62);
  border-radius: 8px;
}

.recursion-frame::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: calc(11px + var(--depth-indent, 0px));
  width: 2px;
  content: "";
  background: rgba(97, 112, 132, 0.18);
}

.recursion-frame.is-active {
  border-left-color: var(--teal);
  background: rgba(30, 159, 145, 0.08);
}

.recursion-frame-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.recursion-frame-depth,
.recursion-frame-phase {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recursion-frame-depth {
  color: var(--muted);
}

.recursion-frame-phase {
  color: var(--blue);
}

.recursion-frame-call {
  position: relative;
  display: block;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

.recursion-frame-route,
.recursion-frame-reason,
.recursion-frame-action {
  position: relative;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.recursion-frame-route {
  margin-bottom: 5px;
}

.recursion-frame-action {
  margin-top: 8px;
  color: var(--teal-dark);
  font-weight: 850;
}

.concept-list {
  display: grid;
  gap: 8px;
}

.concept-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid transparent;
  border-radius: 8px;
}

.concept-item.is-active {
  border-left-color: var(--coral);
  background: rgba(240, 109, 79, 0.07);
}

.concept-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.call-stack {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.stack-frame {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stack-frame.is-active {
  border-color: rgba(30, 159, 145, 0.45);
  background: rgba(30, 159, 145, 0.08);
}

.stack-frame strong,
.stack-frame span {
  display: block;
}

.stack-frame strong {
  margin-bottom: 4px;
}

.stack-frame span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.move-panel {
  margin-top: 16px;
  padding: 16px;
}

.practice-panel {
  margin-top: 16px;
  padding: 16px;
}

.practice-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.practice-page-panel,
.practice-log-page-panel {
  margin-top: 0;
}

.practice-log-page-panel .practice-log {
  grid-template-columns: 1fr;
  max-height: 560px;
}

.practice-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.practice-status {
  margin: -4px 0 12px;
  color: var(--muted);
  font-weight: 750;
}

.practice-status.is-error {
  color: #b6402b;
}

.practice-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, rgba(240, 244, 248, 0.75));
}

.practice-tower-board {
  min-height: 360px;
  padding-top: 12px;
}

.practice-tower-board .peg-column {
  min-height: 328px;
}

.practice-piece.is-draggable {
  cursor: grab;
}

.practice-piece.is-dragging {
  cursor: grabbing;
  opacity: 0.42;
}

.practice-piece.is-selected {
  outline: 4px solid rgba(227, 167, 47, 0.82);
  outline-offset: -6px;
}

.practice-piece.is-locked {
  cursor: not-allowed;
  filter: saturate(0.9);
}

.practice-drop-zone {
  transition:
    background-color 160ms ease,
    outline-color 160ms ease;
}

.practice-drop-zone.is-drag-over {
  outline: 3px solid rgba(30, 159, 145, 0.28);
  outline-offset: -6px;
  background-color: rgba(30, 159, 145, 0.06);
}

.practice-log-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.practice-log {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

.practice-log li {
  padding: 9px 10px;
  color: var(--ink);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.practice-log-empty {
  color: var(--muted) !important;
}

.completion-text {
  max-width: 260px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: right;
}

.move-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding: 2px;
  margin: 0;
  list-style: none;
}

.move-item button {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 800;
  text-align: left;
}

.move-item.is-done button {
  color: var(--teal-dark);
  background: rgba(30, 159, 145, 0.08);
  border-color: rgba(30, 159, 145, 0.28);
}

.move-item.is-active button {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.credit-footer {
  padding: 18px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

@keyframes settle {
  from {
    transform: translateY(-8px) scale(0.98);
    opacity: 0.72;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .control-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-overview {
    grid-template-columns: 1fr;
  }

  .problem-rules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .button-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .info-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trace-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 720px);
    padding-top: 18px;
  }

  .app-header {
    display: block;
  }

  .summary-strip {
    grid-template-columns: repeat(2, 1fr);
    min-width: 0;
    margin-top: 16px;
  }

  .header-side {
    justify-items: stretch;
    margin-top: 16px;
  }

  .header-side .summary-strip {
    margin-top: 0;
  }

  .language-switch {
    justify-self: start;
  }

  .page-nav {
    justify-content: flex-start;
  }

  .control-bar,
  .info-column,
  .practice-page-layout {
    grid-template-columns: 1fr;
  }

  .problem-overview {
    padding: 14px;
  }

  .problem-rules {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .button-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-panel,
  .practice-panel {
    min-height: auto;
    padding: 14px;
  }

  .panel-heading {
    display: block;
  }

  .progress-pill,
  .completion-text {
    display: inline-block;
    margin-top: 10px;
    text-align: left;
  }

  .visualization,
  .tower-board {
    min-height: 410px;
  }

  .tower-board {
    gap: 8px;
    padding-inline: 0;
  }

  .peg-column {
    min-height: 372px;
    padding-inline: 4px;
  }

  .peg-base {
    right: 0;
    left: 0;
  }

  .move-meta {
    grid-template-columns: 1fr;
  }

  .move-list {
    grid-template-columns: 1fr;
    max-height: 300px;
  }

  .practice-actions {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .practice-board .tower-board {
    min-height: 360px;
  }

  .practice-board .peg-column {
    min-height: 322px;
  }

  .practice-log {
    grid-template-columns: 1fr;
  }
}

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