@font-face {
  font-family: 'Noto Serif TC';
  src: url('../assets/fonts/noto-serif-tc-xiangqi.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f5efe3;
  --card: #f5efe3;
  --ink: #1e1e1e;
  --muted: #5a3a1f;
  --wine: #7a2e1d;
  --red: #b42318;
  --line: #a8a29e;
  --gold: #d7ae6d;
  --serif: 'Baskervville', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', 'Segoe UI', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.45 var(--sans);
  min-height: 100vh;
}
@media (forced-colors: none) {
  .ink-palette :is(.mast, .hero, .arena, .badge) {
    filter: url('#xq-inks');
  }
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
button {
  touch-action: manipulation;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.mast {
  border-bottom: 1px solid var(--line);
  background: #f5efe3;
}
.top-wrap,
.hero-inner {
  width: min(calc(100% - 80px), 1176px);
  margin: auto;
}
.top-wrap {
  min-height: 66px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 44px;
}
.brand {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 28px/1 var(--serif);
  letter-spacing: -1.4px;
  padding: 0;
  min-height: 44px;
}
.brand img {
  width: 33px;
  height: 33px;
}
.brand span {
  transform: translateY(-1px);
}
nav,
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav {
  align-self: stretch;
}
.top-actions {
  margin-left: auto;
  gap: 12px;
}
.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.nav-btn,
.tool {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.89rem;
  font-weight: 550;
  color: #5a3a1f;
}
.nav-btn {
  align-self: stretch;
  border-bottom: 2px solid transparent;
  padding-top: 2px;
}
.nav-btn.active {
  border-color: var(--wine);
  color: var(--wine);
}
.nav-btn:hover,
.tool:hover {
  background: #f1e6cf;
}
.tool {
  padding: 0 9px;
}
.tool .icon {
  width: 19px;
  height: 19px;
}
.tool + .tool {
  position: relative;
}
.tool + .tool:before {
  content: '';
  height: 17px;
  width: 1px;
  background: var(--line);
  position: absolute;
  left: -6px;
}
.hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid #e3bc7e;
  background: #f1e6cf;
  overflow: hidden;
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/landscape.svg') right bottom/auto 100% no-repeat;
  z-index: -1;
}
.hero-inner {
  min-height: 153px;
  display: flex;
  align-items: center;
}
.hero-copy {
  padding: 20px 0 22px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.hero h1 {
  font: 500 clamp(3.05rem, 5vw, 4.65rem) / 1.04 var(--serif);
  letter-spacing: -0.059em;
  color: #5a3a1f;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #7a2e1d;
}
.hero-copy p {
  margin-top: 9px;
  color: #5a3a1f;
  letter-spacing: 0.025em;
  font-size: 1rem;
}
.workspace {
  width: min(calc(100% - 80px), 1136px);
  margin: 26px auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(295px, 1fr);
  gap: 34px;
  align-items: start;
}
.arena {
  min-width: 0;
  padding: 0 23px 0;
  background: #f5efe3;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 1px 0 #a8a29e;
}
.board-bar,
.board-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 49px;
}
.mode-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 650;
  color: #5a3a1f;
}
.mode-label .icon {
  color: var(--wine);
  width: 18px;
  height: 18px;
}
.turn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.77rem;
  font-weight: 650;
  color: #7a2e1d;
  background: #f6ead0;
  border: 1px solid #d7ae6d;
  border-radius: 99px;
  padding: 4px 10px;
}
.turn[data-side='B'] {
  background: #f1e6cf;
  color: #333a44;
}
.side-shape {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #b42318;
  border: 1px solid #7a2e1d;
  border-radius: 50%;
}
.side-shape.black {
  border-radius: 0;
  background: #333a44;
  border: 0;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.board-wrap {
  width: min(100%, clamp(438px, 54.6vh, 660px));
  margin: auto;
  position: relative;
}
.game-board {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  touch-action: none;
  overflow: visible;
  font-family: var(--sans);
}
.game-board rect[role='button'] {
  outline: none;
  cursor: pointer;
}
.game-board[aria-disabled='true'] rect[role='button'] {
  cursor: default;
}
.coordinates {
  font: 600 9.3px var(--sans);
  fill: #5a3a1f;
}
.river-glyph {
  font:
    600 22px 'Noto Serif TC',
    'KaiTi',
    'SimSun',
    serif;
  fill: #5a3a1f;
  opacity: 0.35;
  letter-spacing: 2px;
}
.board-piece {
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.25, 1),
    opacity 150ms ease-in;
}
.board-piece.captured {
  opacity: 0;
}
.board-piece.captured .token {
  transform: scale(0.8);
  transition: transform 150ms;
}
.game-board[data-turn='R'] .token.red .token-ring,
.game-board[data-turn='B'] .token.black .token-ring {
  stroke-width: 1.3;
}
.token.red {
  color: #b42318;
}
.token.black {
  color: #f1e6cf;
}
.token-disc {
  stroke: currentColor;
  stroke-width: 1.5;
  fill: #f6ead0;
}
.token.black .token-disc {
  fill: #333a44;
  stroke: #333a44;
}
.token-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.85;
}
.board-piece .token {
  filter: drop-shadow(0 2px 0 #5a3a1f);
}
.token text {
  fill: currentColor;
  font-family: 'Noto Serif TC', 'SimSun', serif;
  font-weight: 600;
}
.char {
  font-size: 26px;
}
.tiny-char {
  font-size: 6.8px;
  paint-order: stroke;
  stroke: #f6ead0;
  stroke-width: 1.2px;
}
.black .tiny-char {
  stroke: #333a44;
}
.badge {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}
.board-bottom {
  min-height: 40px;
  justify-content: center;
  gap: 15px;
}
.player {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.77rem;
  color: var(--muted);
}
.player .side-shape {
  width: 10px;
  height: 10px;
}
.ornament {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 6px;
  color: #a8a29e;
}
.ornament:after,
.ornament:before {
  content: '';
  width: 20px;
  height: 1px;
  background: #e3bc7e;
}
.ornament i {
  width: 4px;
  height: 4px;
  background: #a8a29e;
  transform: rotate(45deg);
}
.side {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
}
.card h2,
dialog h2 {
  font: 500 2rem/1.13 var(--serif);
  letter-spacing: -0.035em;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}
.card-head > .icon {
  color: var(--wine);
}
.teaching {
  isolation: isolate;
  background: #7a2e1d;
  color: #ffffff;
  border-color: #7a2e1d;
  overflow: hidden;
  padding: 23px 26px 17px;
}
.teaching:before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -1px;
  top: -1px;
  width: 112px;
  height: 112px;
  background: url('../assets/fret.svg') right top/contain no-repeat;
  opacity: 0.38;
}
.teaching h2 {
  font-size: 2.15rem;
}
.teaching .card-head {
  margin-bottom: 20px;
}
.teaching .card-head > .icon {
  color: #e3bc7e;
  width: 23px;
  height: 23px;
}
.step-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #f6ead0;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 650;
}
.segments {
  display: flex;
  gap: 4px;
  flex: 1;
  max-width: 154px;
}
.segments i {
  flex: 1;
  height: 3px;
  background: #a8a29e;
  border-radius: 2px;
}
.segments i.done {
  background: #e3bc7e;
}
.instruction {
  font: 400 clamp(1.17rem, 1.6vw, 1.45rem) / 1.42 var(--serif);
  margin: 15px 0 20px;
  max-width: 34ch;
  min-height: 2.65em;
}
.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid #a8a29e;
  border-radius: 5px;
  min-height: 44px;
  padding: 10px 17px;
  background: #f5efe3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 620;
}
.btn:hover:not(:disabled),
.choice:hover,
.piece-row:hover,
.menu-row:hover,
.tab-piece:hover {
  background: #f1e6cf;
}
.btn.solid {
  background: var(--wine);
  color: white;
  border-color: var(--wine);
}
.btn.solid:hover:not(:disabled) {
  background: #5a3a1f;
}
.btn:disabled {
  opacity: 0.48;
}
.teaching .buttons {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}
.teaching .btn {
  border-color: #d7ae6d;
  background: transparent;
  color: #f5efe3;
}
.teaching .btn:hover:not(:disabled) {
  background: #7a2e1d;
}
.teaching .btn.solid {
  color: #5a3a1f;
  background: #f6ead0;
  border-color: #f6ead0;
}
.teaching .btn.solid:hover:not(:disabled) {
  background: #f5efe3;
}
.link-btn {
  min-height: 44px;
  padding: 5px 4px;
  text-underline-offset: 4px;
  border: 0;
  background: transparent;
  color: var(--wine);
  text-decoration: underline;
  font-weight: 550;
  font-size: 0.85rem;
}
.teaching .link-btn {
  color: #f6ead0;
  display: block;
  margin: 6px auto -6px;
}
.feedback {
  font-size: 0.85rem;
  margin: 6px 0 12px;
  color: #f6ead0;
}
.reference {
  padding-bottom: 15px;
}
.reference .card-head {
  margin-bottom: 12px;
}
.reference h2,
.history-card h2 {
  font-size: 1.55rem;
}
.piece-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.piece-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-top: 1px solid #f1e6cf;
  min-height: 45px;
  padding: 5px 2px;
  text-align: left;
  font-size: 0.85rem;
}
.piece-row .badge {
  width: 29px;
  height: 29px;
}
.card-footer {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
}
.card-footer button {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.menu-items {
  display: grid;
  gap: 9px;
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: #f5efe3;
  border-radius: 5px;
  text-align: left;
  min-height: 49px;
  font-weight: 600;
}
.menu-row .icon {
  color: var(--wine);
}
.menu-row.main {
  background: var(--wine);
  color: white;
  border-color: var(--wine);
}
.menu-row.main .icon {
  color: #f1e6cf;
}
.menu-row.main:hover {
  background: #7a2e1d;
}
.options {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}
.options legend {
  font-size: 0.87rem;
  font-weight: 650;
  margin-bottom: 9px;
}
.choices {
  display: flex;
  gap: 6px;
}
.choice {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 44px;
  padding: 6px 8px;
  background: transparent;
  font-size: 0.85rem;
}
.choice[aria-pressed='true'] {
  border-color: var(--wine);
  color: var(--wine);
  font-weight: 650;
  background: #f1e6cf;
}
.wide {
  width: 100%;
}
.stack {
  display: grid;
  gap: 12px;
}
.notice {
  font-size: 0.89rem;
  line-height: 1.5;
  color: var(--muted);
}
.lobby-copy {
  display: flex;
  gap: 6px;
}
.lobby-copy input {
  width: 0;
  min-width: 0;
  flex: 1;
  border-radius: 4px;
  border: 1px solid var(--line);
  padding: 7px;
  font-size: 0.83rem;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin: 2px 0 18px;
}
.status-line .badge {
  width: 40px;
  height: 40px;
}
.capture-list {
  display: flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  min-width: 0;
  gap: 2px;
  align-items: center;
  min-height: 31px;
}
.capture-list .badge {
  width: 24px;
  height: 24px;
}
.capture-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
}
.capture-section strong {
  font-size: 0.82rem;
  color: var(--muted);
}
.moves-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 166px;
  overflow: auto;
}
.moves-list li {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.86rem;
}
.moves-list .index {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  width: 2.3em;
}
.moves-list .side-shape {
  width: 8px;
  height: 8px;
}
.empty-moves {
  height: 16px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid #a8a29e;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  padding: 0;
  width: min(485px, calc(100vw - 32px));
  max-height: 88vh;
  box-shadow: 0 15px 90px #5a3a1f40;
}
dialog::backdrop {
  background: #1e1e1eb3;
}
#dialog-body {
  padding: 24px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.dialog-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.dialog-text {
  margin: 12px 0;
  color: #5a3a1f;
}
.dialog-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}
.piece-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: space-between;
}
.tab-piece {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 5px;
}
.tab-piece.on {
  background: #f1e6cf;
  border-color: #a8a29e;
}
.tab-piece .badge {
  width: 32px;
  height: 32px;
}
.demo {
  background: #e3bc7e;
  border: 1px solid #a8a29e;
  border-radius: 5px;
  width: 100%;
  height: 145px;
  display: block;
  margin: 12px 0;
}
.demo-point {
  transform-box: view-box;
  animation: demo 2.4s ease-in-out infinite;
}
@keyframes demo {
  0%,
  20% {
    transform: translate(var(--x1), var(--y1));
  }
  65%,
  100% {
    transform: translate(var(--x2), var(--y2));
  }
}
.rule-copy {
  margin: 10px 0;
  font-size: 0.95rem;
}
.more-rules {
  font-size: 0.86rem;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.more-rules summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 650;
  color: var(--wine);
}
.more-rules p + p {
  margin-top: 7px;
}
.demo-C {
  animation-name: cannon-jump;
}
.demo-N {
  animation-name: horse-leg;
}
.demo-victim {
  animation: capture-fade 2.4s ease infinite;
}
@keyframes cannon-jump {
  0%,
  20% {
    transform: translate(98px, 90px);
  }
  43% {
    transform: translate(170px, 47px);
  }
  70%,
  100% {
    transform: translate(242px, 90px);
  }
}
@keyframes horse-leg {
  0%,
  20% {
    transform: translate(98px, 90px);
  }
  42% {
    transform: translate(134px, 90px);
  }
  70%,
  100% {
    transform: translate(170px, 54px);
  }
}
@keyframes capture-fade {
  0%,
  60% {
    opacity: 1;
  }
  72%,
  100% {
    opacity: 0;
  }
}
#toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #333a44;
  color: white;
  border-radius: 5px;
  padding: 10px 17px;
  font-size: 0.9rem;
  max-width: 90vw;
  pointer-events: none;
  z-index: 10;
}
#toast:empty {
  display: none;
}
.mobile-moves {
  display: none;
}
.thinking .side-shape {
  animation: pulse 1s ease infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@media (min-width: 1500px) {
  .hero-inner {
    min-height: 174px;
  }
}
@media (max-width: 1000px) {
  .workspace {
    gap: 20px;
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, 1.23fr) minmax(280px, 1fr);
  }
  .top-wrap,
  .hero-inner {
    width: calc(100% - 48px);
  }
  .arena {
    padding: 0 12px;
  }
  .top-wrap {
    gap: 20px;
  }
  .hero:before {
    background-position: calc(100% + 110px) bottom;
  }
  .card {
    padding: 19px;
  }
  .mobile-moves {
    display: inline-flex;
  }
  .history-card.collapsed .moves-list,
  .history-card.collapsed .empty-moves {
    display: none;
  }
}
@media (max-width: 700px) {
  .top-wrap {
    min-height: 56px;
    width: calc(100% - 24px);
    gap: 12px;
  }
  .brand {
    font-size: 23px;
    gap: 7px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .top-actions {
    gap: 0;
  }
  .tool {
    padding: 0;
    width: 44px;
  }
  .tool + .tool:before {
    display: none;
  }
  .tool .label,
  .nav-btn .icon {
    display: none;
  }
  nav {
    gap: 0;
  }
  .nav-btn {
    font-size: 0.8rem;
    padding: 0 9px;
  }
  .hero-inner {
    min-height: 110px;
    width: calc(100% - 32px);
  }
  .hero:before {
    background-size: auto 82%;
    background-position: calc(100% + 25px) bottom;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 9vw, 3.4rem);
  }
  .hero-copy {
    padding: 14px 0 18px;
  }
  .hero-copy p {
    font-size: 0.86rem;
    max-width: 180px;
  }
  .workspace {
    width: min(calc(100% - 24px), 520px);
    margin: 13px auto 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .side {
    display: contents;
  }
  .arena,
  #primary,
  #secondary {
    width: 100%;
  }
  #primary {
    order: 0;
  }
  .arena {
    order: 1;
    padding: 0 5px;
  }
  #secondary {
    order: 2;
  }
  .workspace[data-screen='game'] .arena {
    order: 0;
  }
  .workspace[data-screen='game'] #primary {
    order: 1;
  }
  .card {
    padding: 16px 17px;
  }
  .teaching .card-head {
    margin-bottom: 8px;
  }
  .teaching h2 {
    font-size: 1.55rem;
  }
  .teaching .card-head > .icon {
    width: 18px;
    height: 18px;
  }
  .teaching .step-title {
    font-size: 0.7rem;
  }
  .segments {
    max-width: 96px;
  }
  .teaching {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 12px;
  }
  .teaching .card-head {
    grid-column: 1;
  }
  .teaching .step-title {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    flex-direction: column;
    gap: 4px;
  }
  .teaching .segments {
    width: 64px;
  }
  .instruction {
    grid-column: 1/-1;
    font-size: 1.08rem;
    min-height: 0;
    margin: 3px 0 10px;
    max-width: none;
  }
  .teaching .buttons {
    grid-column: 2;
    grid-row: auto;
    display: flex;
    gap: 6px;
  }
  .teaching .btn {
    min-height: 44px;
    padding: 6px 14px;
    font-size: 0.82rem;
  }
  .teaching .link-btn {
    grid-column: 1;
    grid-row: var(--skip-row, 4);
    justify-self: start;
    margin: 0;
  }
  .teaching .buttons {
    grid-row: var(--skip-row, 4);
  }
  .teaching .feedback {
    grid-column: 1/-1;
  }
  .board-bar {
    min-height: 38px;
    padding: 0 8px;
  }
  .board-bottom {
    min-height: 29px;
  }
  .board-wrap {
    width: 100%;
  }
  .mode-label {
    font-size: 0.77rem;
  }
  .turn {
    font-size: 0.72rem;
  }
  .reference .piece-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy {
    position: relative;
  }
  .status-line {
    margin-bottom: 9px;
  }
  .menu-items {
    gap: 6px;
  }
  .options {
    margin-bottom: 12px;
  }
}
@media (max-width: 420px) {
  #nav .nav-btn[data-nav='rules'] {
    display: none;
  }
  .top-wrap {
    gap: 9px;
  }
  .nav-btn {
    padding: 0 7px;
  }
  .tool {
    width: 42px;
  }
  .hero:before {
    background-position: calc(100% + 54px) bottom;
  }
  .hero h1 {
    font-size: 2.55rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
