/* ---------------------------------------------------
   Multitype — themeable monochromatic palettes
   each theme shares one hue; only lightness/saturation
   vary within it — except the semantic red for mistakes,
   which stays constant across every theme.
--------------------------------------------------- */

:root {
  --font-ui:   'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --error:     0 78% 62%;
}

/* ---- theme: red ---- */
body[data-theme="red"] {
  --bg:        hsl(355 32% 6%);
  --bg-glow:   hsl(355 45% 15%);
  --surface:   hsl(355 26% 12% / 0.65);
  --surface-solid: hsl(355 24% 11%);
  --line:      hsl(355 20% 23%);
  --line-soft: hsl(355 20% 23% / 0.6);
  --muted:     hsl(355 12% 37%);
  --dim:       hsl(355 14% 56%);
  --ink:       hsl(355 15% 88%);
  --bright:    hsl(355 40% 99%);
  --accent:    hsl(355 70% 62%);
  --accent-glow: hsl(355 70% 62% / 0.55);
  --panel-highlight: hsl(355 40% 90% / 0.06);
}

/* ---- theme: orange ---- */
body[data-theme="orange"] {
  --bg:        hsl(28 32% 6%);
  --bg-glow:   hsl(28 55% 15%);
  --surface:   hsl(28 26% 12% / 0.65);
  --surface-solid: hsl(28 24% 11%);
  --line:      hsl(28 20% 23%);
  --line-soft: hsl(28 20% 23% / 0.6);
  --muted:     hsl(28 12% 37%);
  --dim:       hsl(28 14% 56%);
  --ink:       hsl(28 15% 88%);
  --bright:    hsl(28 45% 99%);
  --accent:    hsl(28 75% 62%);
  --accent-glow: hsl(28 75% 62% / 0.55);
  --panel-highlight: hsl(28 40% 90% / 0.06);
}

/* ---- theme: yellow ---- */
body[data-theme="yellow"] {
  --bg:        hsl(50 30% 6%);
  --bg-glow:   hsl(50 55% 15%);
  --surface:   hsl(50 24% 12% / 0.65);
  --surface-solid: hsl(50 22% 11%);
  --line:      hsl(50 18% 23%);
  --line-soft: hsl(50 18% 23% / 0.6);
  --muted:     hsl(50 12% 37%);
  --dim:       hsl(50 14% 56%);
  --ink:       hsl(50 15% 88%);
  --bright:    hsl(50 45% 99%);
  --accent:    hsl(50 80% 60%);
  --accent-glow: hsl(50 80% 60% / 0.55);
  --panel-highlight: hsl(50 40% 90% / 0.06);
}

/* ---- theme: green ---- */
body[data-theme="green"] {
  --bg:        hsl(150 30% 5%);
  --bg-glow:   hsl(150 45% 14%);
  --surface:   hsl(150 24% 11% / 0.65);
  --surface-solid: hsl(150 22% 10%);
  --line:      hsl(150 18% 22%);
  --line-soft: hsl(150 18% 22% / 0.6);
  --muted:     hsl(150 12% 36%);
  --dim:       hsl(150 14% 55%);
  --ink:       hsl(150 15% 88%);
  --bright:    hsl(150 35% 99%);
  --accent:    hsl(150 55% 60%);
  --accent-glow: hsl(150 55% 60% / 0.55);
  --panel-highlight: hsl(150 40% 90% / 0.06);
}

/* ---- theme: blue (default) ---- */
body[data-theme="blue"] {
  --bg:        hsl(215 32% 5%);
  --bg-glow:   hsl(215 45% 14%);
  --surface:   hsl(215 26% 11% / 0.65);
  --surface-solid: hsl(215 24% 10%);
  --line:      hsl(215 20% 22%);
  --line-soft: hsl(215 20% 22% / 0.6);
  --muted:     hsl(215 12% 36%);
  --dim:       hsl(215 14% 55%);
  --ink:       hsl(215 15% 88%);
  --bright:    hsl(215 40% 99%);
  --accent:    hsl(215 55% 66%);
  --accent-glow: hsl(215 55% 66% / 0.55);
  --panel-highlight: hsl(215 40% 90% / 0.06);
}

/* ---- theme: purple ---- */
body[data-theme="purple"] {
  --bg:        hsl(265 32% 6%);
  --bg-glow:   hsl(265 45% 15%);
  --surface:   hsl(265 26% 12% / 0.65);
  --surface-solid: hsl(265 24% 11%);
  --line:      hsl(265 20% 23%);
  --line-soft: hsl(265 20% 23% / 0.6);
  --muted:     hsl(265 12% 37%);
  --dim:       hsl(265 14% 56%);
  --ink:       hsl(265 15% 88%);
  --bright:    hsl(265 40% 99%);
  --accent:    hsl(265 60% 70%);
  --accent-glow: hsl(265 60% 70% / 0.55);
  --panel-highlight: hsl(265 40% 90% / 0.06);
}

/* ---- theme: black (true neutral grayscale) ---- */
body[data-theme="black"] {
  --bg:        hsl(0 0% 5%);
  --bg-glow:   hsl(0 0% 18%);
  --surface:   hsl(0 0% 12% / 0.65);
  --surface-solid: hsl(0 0% 11%);
  --line:      hsl(0 0% 25%);
  --line-soft: hsl(0 0% 25% / 0.6);
  --muted:     hsl(0 0% 38%);
  --dim:       hsl(0 0% 58%);
  --ink:       hsl(0 0% 90%);
  --bright:    hsl(0 0% 100%);
  --accent:    hsl(0 0% 72%);
  --accent-glow: hsl(0 0% 72% / 0.45);
  --panel-highlight: hsl(0 0% 100% / 0.06);
}

/* ---- theme: white (light mode) ---- */
body[data-theme="white"] {
  --bg:        hsl(215 30% 97%);
  --bg-glow:   hsl(215 60% 90%);
  --surface:   hsl(0 0% 100% / 0.6);
  --surface-solid: hsl(210 25% 99%);
  --line:      hsl(215 15% 82%);
  --line-soft: hsl(215 15% 82% / 0.7);
  --muted:     hsl(215 10% 62%);
  --dim:       hsl(215 12% 42%);
  --ink:       hsl(215 20% 18%);
  --bright:    hsl(215 35% 8%);
  --accent:    hsl(215 65% 48%);
  --accent-glow: hsl(215 65% 48% / 0.30);
  --panel-highlight: hsl(0 0% 100% / 0.8);
}

* { box-sizing: border-box; }

/* the hidden attribute must always win over any authored display
   rule, or JS toggling `.hidden` silently does nothing */
[hidden] { display: none !important; }

/* stops mobile browsers (iOS in landscape especially) from
   inflating text sizes on their own */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(80% 60% at 50% -10%, var(--bg-glow) 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  transition: background 200ms ease, color 200ms ease;
}

/* the app scales with the window: it takes most of the width on
   any screen, but is capped (and padded) so there is always
   breathing room around it on large displays */
.app {
  min-height: 100vh;
  min-height: 100dvh; /* accounts for mobile browser toolbars */
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vh, 3.25rem) clamp(1.25rem, 4vw, 3.5rem) clamp(1.5rem, 4vh, 2.5rem);
}

/* ---------------- topbar ---------------- */

.topbar {
  /* positioned so that on small screens the settings panel can
     anchor to this full-width bar instead of the small gear button */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bright);
  margin: 0;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stats {
  display: flex;
  gap: 0.75rem;
  transition: opacity 200ms ease, transform 200ms ease;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.25rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  backdrop-filter: blur(16px);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bright);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--dim);
  margin-top: 0.15rem;
}

/* ---------------- settings ---------------- */

.settings-wrap {
  position: relative;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--dim);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: color 150ms ease, border-color 150ms ease, transform 250ms ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  color: var(--bright);
  border-color: var(--accent);
}

.icon-btn[aria-expanded="true"] {
  color: var(--bright);
  border-color: var(--accent);
  transform: rotate(45deg);
}

.settings-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 240px;
  background: var(--surface-solid);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
  z-index: 30;
  animation: panelReveal 150ms ease;
}

@keyframes panelReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.settings-row > label:first-child {
  font-size: 0.8rem;
  color: var(--dim);
}

.settings-row select {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-family: var(--font-ui);
  cursor: pointer;
  max-width: 140px;
}

.settings-row select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.settings-row input[type="number"] {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-family: var(--font-ui);
  width: 4.5rem;
  text-align: left;
}

.settings-row input[type="number"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* toggle switch */

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background 150ms ease;
}

.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--dim);
  border-radius: 50%;
  transition: transform 150ms ease, background 150ms ease;
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(16px);
  background: var(--bright);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------- progress ---------------- */

.progress-track {
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  margin: clamp(1.25rem, 3vh, 1.75rem) 0 0;
  overflow: hidden;
  transition: opacity 200ms ease;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 120ms linear;
}

/* ---------------- stage ---------------- */

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1.25rem, 4vh, 2.5rem) 0 clamp(1.5rem, 4vh, 2.5rem);
}

.stage-toolbar {
  /* positioned so that on small screens the words panel can anchor
     to this full-width bar instead of the small "words" button */
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.words-wrap {
  position: relative;
}

.words-panel {
  width: 220px;
  left: auto;
  right: 0;
}

.settings-divider {
  height: 1px;
  background: var(--line);
  margin: -0.15rem 0;
}

.type-panel {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: clamp(1.75rem, 4.5vh, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  backdrop-filter: blur(20px);
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 var(--panel-highlight);
}

.passage-viewport {
  position: relative;
  overflow: hidden;
}

.passage-inner {
  position: relative;
  will-change: transform;
  transition: transform 180ms ease;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.9vw, 2.7rem);
  line-height: 1.95;
  letter-spacing: 0.01em;
}

.passage-inner .word {
  white-space: nowrap;
}

.passage-inner .char {
  position: relative;
  white-space: pre;
  border-radius: 3px;
  color: var(--muted);
}

.passage-inner .char.is-space {
  /* must allow a line-break opportunity here, or the whole
     passage runs on as one unbroken line and overflows */
  white-space: normal;
}

.passage-inner .char.correct {
  color: var(--bright);
}

.passage-inner .char.incorrect {
  color: hsl(var(--error));
  background: hsl(var(--error) / 0.14);
}

.passage-inner .char.incorrect.is-space {
  text-decoration: underline;
  text-decoration-color: hsl(var(--error));
  text-decoration-thickness: 2px;
}

.passage-inner .char.flash::before {
  content: '';
  position: absolute;
  inset: -0.7em;
  border-radius: 50%;
  /* a soft radial "light source" rather than a flat tint — this is
     what gets additively (screen) blended against the passage, so
     overlapping glows brighten each other instead of just stacking
     flat color on top of one another */
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 72%);
  mix-blend-mode: plus-lighter;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  animation: charGlowPulse 420ms ease-out;
}

@keyframes charGlowPulse {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }
  30% {
    opacity: var(--glow-opacity, 0.6);
    transform: scale(calc(0.85 * var(--glow-scale, 1)));
  }
  100% {
    opacity: 0;
    transform: scale(calc(1.6 * var(--glow-scale, 1)));
  }
}

.char-particle {
  position: absolute;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--bright);
  box-shadow: 0 0 5px 1px var(--accent-glow);
  mix-blend-mode: plus-lighter;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: particleBurst 480ms ease-out forwards;
}

@keyframes particleBurst {
  0% {
    opacity: var(--particle-opacity, 0.75);
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(0.25);
  }
}

.caret {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5px;
  /* sized in em so the caret scales with the passage font size */
  height: 0.7em;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-glow);
  animation: blink 1s step-end infinite;
  transform: translateY(0.32em);
  pointer-events: none;
  transition: left 100ms ease, top 100ms ease;
}

.caret.no-transition {
  transition: none;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hidden-input {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  border: none;
  background: transparent;
  font-size: 16px;      /* stops iOS Safari from zooming in on focus */
  pointer-events: none; /* never receives taps/clicks itself; focus is set from script.js */
}

/* ---------------- keyboard visual ---------------- */

.keyboard-visual {
  --kb-key: clamp(2.35rem, 3.1vw, 3.1rem);
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: clamp(1.25rem, 4vh, 2.25rem);
}

.kb-row {
  display: flex;
  flex-wrap: wrap;       /* safety net for narrow widths */
  justify-content: center;
  gap: 0.4rem;
  transition: opacity 200ms ease;
}

.kb-row-space {
  justify-content: center;
}

.kb-key {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--kb-key);
  height: var(--kb-key);
  padding: 0 0.3rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: background 90ms ease, color 90ms ease, border-color 90ms ease, transform 90ms ease, box-shadow 90ms ease, opacity 200ms ease;
}

.kb-key.kb-key-disabled {
  opacity: 0.32;
}

/* keys that carry two printable characters (a shifted symbol above
   the unshifted one, e.g. the number row or punctuation keys) stack
   them vertically instead of showing a single centered glyph */
.kb-key.kb-key-dual {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0.25rem 0.3rem;
  line-height: 1.05;
}

.kb-key-shift {
  font-size: 0.6rem;
  color: var(--muted);
  transition: color 90ms ease;
}

.kb-key-main {
  font-size: 0.78rem;
  color: inherit;
}

.kb-key.active .kb-key-shift,
.kb-key.active .kb-key-main {
  color: var(--bg);
}

.kb-key.kb-wide {
  min-width: 8rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.kb-key.kb-backspace {
  margin-left: 0.6rem;
  min-width: 3.75rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.kb-key.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(1px);
  box-shadow: 0 0 14px var(--accent-glow);
}

@media (max-width: 640px) {
  .keyboard-visual { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .kb-key { transition: none; }
}

/* ---------------- results ---------------- */

.results {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 0 2.5rem;
  animation: reveal 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-primary {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.result-number {
  font-family: var(--font-mono);
  font-size: clamp(3.75rem, 11vw, 6.5rem);
  font-weight: 700;
  color: var(--bright);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.result-unit {
  font-size: 1.15rem;
  color: var(--dim);
}

.result-secondary {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0 1.5rem;
  border-left: 1px solid var(--line);
}

.result-item:first-child { border-left: none; }

.result-item-value {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.result-item-label {
  font-size: 0.72rem;
  color: var(--dim);
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--dim);
  backdrop-filter: blur(16px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--bright);
  transform: translateY(-1px);
}

.btn-primary {
  margin-top: 2.5rem;
  background: var(--bright);
  border: 1px solid var(--bright);
  color: var(--bg);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn:focus-visible,
.hidden-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------- footer ---------------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding-top: 1.75rem;
}

.footer-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------------- Safari backdrop-filter prefixes ---------------- */

.stat,
.icon-btn,
.btn-ghost { -webkit-backdrop-filter: blur(16px); }

.type-panel { -webkit-backdrop-filter: blur(20px); }

.kb-key { -webkit-backdrop-filter: blur(10px); }

/* ---------------- responsive ---------------- */

@media (max-width: 640px) {
  .app { padding: 2rem 1.1rem 1.75rem; }

  .topbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .topbar-right {
    justify-content: center;
  }

  /* anchor panels to the full-width bar (not the small button) so
     they can never hang off the edge of the screen */
  .settings-wrap,
  .words-wrap {
    position: static;
  }

  .settings-panel,
  .words-panel {
    left: 0;
    right: 0;
    width: auto;
    max-width: 340px;
    margin: 0 auto;
  }

  .type-panel {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }

  /* keeps the longest words from overflowing on ~320px screens */
  .passage-inner {
    font-size: clamp(1.1rem, 5.2vw, 1.5rem);
  }

  .result-secondary {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 0;
  }

  .result-item { padding: 0 0.9rem; }

  .footer { flex-direction: column; gap: 0.6rem; }
}

/* touch devices (phones and tablets) */
@media (pointer: coarse) {
  /* iOS zooms into any field with text smaller than 16px on focus */
  .settings-row select,
  .settings-row input[type="number"] {
    font-size: 16px;
  }

  /* no physical keys to mirror */
  .keyboard-visual { display: none; }
}

/* devices without hover have no Esc key either */
@media (hover: none) {
  .hint-keyboard { display: none; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; transition: none; }
  .results { animation: none; }
  .progress-fill { transition: none; }
  .passage-inner { transition: none; }
  .btn { transition: none; }
  .icon-btn { transition: none; }
  .char.flash::before { animation: none; opacity: 0; }
  .char-particle { display: none; }
  body { transition: none; }
}