.theme-control .theme-symbol {
  display: inline-grid;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  transition: transform 240ms ease;
}
.theme-control .theme-symbol svg { width: 100%; height: 100%; }
.theme-control:active .theme-symbol { transform: scale(.82); }
.theme-symbol .theme-sun,
.theme-symbol .theme-moon {
  transform-origin: center;
  transition: opacity 220ms ease, transform 360ms cubic-bezier(.2,.75,.25,1);
}
.theme-symbol .theme-sun,
[aria-pressed="true"] .theme-symbol .theme-moon { opacity: 0; transform: rotate(-65deg) scale(.55); }
[aria-pressed="true"] .theme-symbol .theme-sun,
.theme-symbol .theme-moon { opacity: 1; transform: rotate(0) scale(1); }
html.theme-reveal::view-transition-old(root),
html.theme-reveal::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
html.theme-reveal::view-transition-new(root) { z-index: 1; }
::view-transition { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .theme-control .theme-symbol,
  .theme-symbol .theme-sun,
  .theme-symbol .theme-moon { transition: none; }
}