@import url('https://fonts.googleapis.com/css2?family=Tektur:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans:wght@300;400;600&family=Noto+Sans+Arabic:wght@300;400;600&family=Noto+Sans+Bengali:wght@300;400;600&family=Noto+Sans+Devanagari:wght@300;400;600&family=Noto+Sans+Hebrew:wght@300;400;600&family=Noto+Sans+Tamil:wght@300;400;600&family=Noto+Sans+Telugu:wght@300;400;600&family=Noto+Sans+Thai:wght@300;400;600&display=swap');

:root {
  color-scheme: dark;
  --font-ui:
    "Tektur",
    "Noto Sans",
    "Noto Sans Arabic",
    "Noto Sans Devanagari",
    "Noto Sans Bengali",
    "Noto Sans Tamil",
    "Noto Sans Telugu",
    "Noto Sans Thai",
    "Noto Sans Hebrew",
    system-ui,
    sans-serif;
  --font-mono:
    "JetBrains Mono",
    ui-monospace,
    "SFMono-Regular",
    "Roboto Mono",
    "Noto Sans",
    "Noto Sans Arabic",
    "Noto Sans Devanagari",
    "Noto Sans Bengali",
    "Noto Sans Tamil",
    "Noto Sans Telugu",
    "Noto Sans Thai",
    "Noto Sans Hebrew",
    monospace;
  --fs: 20px;
  --lh: calc(var(--fs) * 2);
  --bg0: #0d0d10;
  --bg1: #17161b;
  --panel: #15140c;
  --panel-2: #1a180f;
  --edge: rgba(210, 168, 48, 0.58);
  --edge-soft: rgba(210, 168, 48, 0.18);
  --text: #d4ccaa;
  --muted: #7f7659;
  --accent: #d2a830;
  --accent-strong: #e8c95a;
  --accent-warm: #c6842d;
  --wave-glow: var(--accent);
  --wave-main: var(--accent-strong);
  --wave-core: #f7df98;
  --wave-deep: rgba(134, 96, 22, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  margin: 0;
  position: relative;
  font-family: var(--font-ui);
  background:
    radial-gradient(1200px 600px at 30% -10%, rgba(210, 168, 48, 0.06), transparent 60%),
    radial-gradient(900px 520px at 88% 8%, rgba(180, 174, 158, 0.055), transparent 58%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 28px),
    linear-gradient(160deg, var(--bg0), var(--bg1));
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.2) 78%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.18));
}

.mv-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

.mv-panel {
  --mv-bottom-lh: calc(var(--fs) * 0.78 * 2);
  --mv-bottom-row-height: calc(var(--mv-bottom-lh) * 3 + 36px);
  position: relative;
  width: min(980px, 96vw);
  height: min(72vh, 680px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto var(--mv-bottom-row-height);
  background: linear-gradient(180deg, rgba(21, 20, 12, 0.92), rgba(18, 17, 10, 0.98));
  border: 2px solid var(--edge);
  box-shadow: 0 0 0 2px rgba(210, 168, 48, 0.08), 0 20px 40px rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.mv-panel::before,
.mv-panel::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.mv-panel::before {
  top: 14px;
}

.mv-panel::after {
  bottom: 14px;
}

.mv-field {
  position: relative;
  min-height: 0;
  display: flex;
  overflow: hidden;
  --fs-local: var(--fs);
  --lh-local: var(--lh);
  background: linear-gradient(180deg, rgba(17, 16, 10, 0.6), rgba(14, 13, 8, 0.8));
}

.mv-top {
  border-bottom: 2px solid var(--edge-soft);
  --fs-local: calc(var(--fs) * 0.92);
  --lh-local: calc(var(--fs-local) * 2);
}

.mv-bottom {
  border-top: 2px solid var(--edge-soft);
  --fs-local: calc(var(--fs) * 0.78);
  --lh-local: var(--mv-bottom-lh);
}

.mv-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  scroll-behavior: auto;
}

.mv-top .mv-scroll {
  padding-top: 24px;
  padding-bottom: 8px;
}

.mv-scroll::-webkit-scrollbar {
  width: 6px;
}

.mv-scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.mv-text-layer {
  position: relative;
  width: 100%;
  min-height: 100%;
  isolation: isolate;
}

.mv-text {
  position: relative;
  z-index: 1;
  font-size: var(--fs-local);
  line-height: var(--lh-local);
  letter-spacing: 0.01em;
  word-break: break-word;
  text-wrap: wrap;
  transition: font-size 140ms ease, line-height 140ms ease;
}

.mv-panel.is-zooming .mv-text {
  transition: none;
}

.mv-exit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  font-size: var(--fs-local);
  line-height: var(--lh-local);
  letter-spacing: 0.01em;
}

.mv-copy-effect {
  --copy-glow: var(--accent);
  --copy-hot: var(--accent-strong);
  --copy-soft: var(--edge-soft);
  --copy-ink: var(--panel);
  --copy-x: 50%;
  --copy-y: 50%;
  --copy-symbol-x: 0px;
  --copy-symbol-y: 0px;
  --copy-hold-scale: 4;
  --copy-lock-scale: 10;
  --copy-wash-scale: 48;
  --copy-icon-size: 180px;
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  color: var(--copy-glow);
  contain: layout paint style;
  isolation: isolate;
  transition: opacity 280ms ease-out;
}

.mv-copy-effect.is-holding,
.mv-copy-effect.is-locked,
.mv-copy-effect.is-committed,
.mv-copy-effect.is-copied,
.mv-copy-effect.is-empty,
.mv-copy-effect.is-error,
.mv-copy-effect.is-cancelled,
.mv-copy-effect.needs-release {
  opacity: 1;
}

.mv-copy-wash,
.mv-copy-ember {
  position: absolute;
  left: var(--copy-x);
  top: var(--copy-y);
  pointer-events: none;
  transform: translate(-50%, -50%) translateZ(0) scale(0.22);
  transform-origin: center;
  will-change: transform, opacity;
}

.mv-copy-wash {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(
      circle,
      color-mix(in srgb, var(--copy-hot) 54%, transparent) 0 6%,
      color-mix(in srgb, var(--copy-hot) 30%, transparent) 20%,
      color-mix(in srgb, var(--copy-glow) 15%, transparent) 42%,
      transparent 72%
    );
  mix-blend-mode: screen;
  transition:
    transform 420ms cubic-bezier(0.16, 0.72, 0.22, 1),
    opacity 220ms ease-out;
}

.mv-copy-ember {
  width: 42px;
  height: 38px;
  border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%;
  opacity: 0;
  background:
    radial-gradient(
      circle at 48% 52%,
      color-mix(in srgb, var(--copy-hot) 78%, transparent) 0 7%,
      color-mix(in srgb, var(--copy-hot) 48%, transparent) 17%,
      color-mix(in srgb, var(--copy-glow) 24%, transparent) 44%,
      transparent 76%
    ),
    conic-gradient(
      from 20deg,
      transparent 0 18%,
      color-mix(in srgb, var(--copy-hot) 42%, transparent) 26%,
      transparent 35% 54%,
      color-mix(in srgb, var(--copy-glow) 34%, transparent) 64%,
      transparent 74% 100%
    );
  box-shadow:
    0 0 12px color-mix(in srgb, var(--copy-hot) 50%, transparent),
    0 0 34px color-mix(in srgb, var(--copy-glow) 30%, transparent),
    inset 0 0 11px color-mix(in srgb, var(--copy-hot) 18%, transparent);
  mix-blend-mode: screen;
  transition:
    transform 3000ms linear,
    opacity 900ms ease-out;
  animation: mvCopyMorph 680ms ease-in-out infinite alternate;
}

.mv-copy-ember::before,
.mv-copy-ember::after {
  content: "";
  position: absolute;
  inset: -42%;
  border-radius: 51% 49% 41% 59% / 43% 57% 47% 53%;
  pointer-events: none;
  transform-origin: center;
}

.mv-copy-ember::before {
  background: radial-gradient(
    ellipse at 50% 50%,
    color-mix(in srgb, var(--copy-hot) 28%, transparent),
    color-mix(in srgb, var(--copy-glow) 11%, transparent) 45%,
    transparent 68%
  );
  animation: mvCopyOrbit 1180ms linear infinite;
}

.mv-copy-ember::after {
  inset: -70%;
  background: conic-gradient(
    from 120deg,
    transparent 0 10%,
    color-mix(in srgb, var(--copy-hot) 28%, transparent) 16%,
    transparent 26% 58%,
    color-mix(in srgb, var(--copy-glow) 20%, transparent) 68%,
    transparent 78% 100%
  );
  opacity: 0.7;
  animation: mvCopyOrbit 1760ms linear infinite reverse;
}

.mv-copy-effect.is-holding .mv-copy-ember {
  opacity: 0.96;
  transform: translate(-50%, -50%) translateZ(0) scale(var(--copy-hold-scale));
}

.mv-copy-effect.is-locked .mv-copy-ember,
.mv-copy-effect.needs-release .mv-copy-ember {
  opacity: 1;
  transform: translate(-50%, -50%) translateZ(0) scale(var(--copy-lock-scale));
  transition-duration: 420ms, 120ms;
  transition-timing-function: cubic-bezier(0.18, 1.08, 0.2, 1), ease-out;
}

.mv-copy-effect.is-locked .mv-copy-wash,
.mv-copy-effect.needs-release .mv-copy-wash,
.mv-copy-effect.is-committed .mv-copy-wash,
.mv-copy-effect.is-copied .mv-copy-wash,
.mv-copy-effect.is-empty .mv-copy-wash,
.mv-copy-effect.is-error .mv-copy-wash {
  opacity: 0.34;
  transform: translate(-50%, -50%) translateZ(0) scale(var(--copy-wash-scale));
}

.mv-copy-effect.is-committed .mv-copy-ember {
  opacity: 0;
  transform: translate(-50%, -50%) translateZ(0) scale(var(--copy-lock-scale));
  transition-duration: 620ms, 620ms;
}

.mv-copy-effect.is-cancelled .mv-copy-ember {
  opacity: 0;
  transform: translate(-50%, -50%) translateZ(0) scale(0.7);
  transition-duration: 220ms, 160ms;
}

.mv-copy-effect.is-cancelled .mv-copy-wash {
  opacity: 0;
}

.mv-copy-noise {
  position: absolute;
  inset: -18%;
  opacity: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(19deg, color-mix(in srgb, var(--copy-hot) 7%, transparent) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(103deg, color-mix(in srgb, var(--copy-glow) 5%, transparent) 0 1px, transparent 1px 13px);
  mix-blend-mode: screen;
  transform: translate3d(-1%, 0, 0);
  will-change: transform, opacity;
}

.mv-copy-effect.is-holding .mv-copy-noise,
.mv-copy-effect.is-locked .mv-copy-noise,
.mv-copy-effect.needs-release .mv-copy-noise {
  opacity: 0.1;
  animation: mvCopyNoise 960ms steps(2, end) infinite;
}

.mv-copy-effect.is-committed .mv-copy-noise {
  opacity: 0;
  animation: none;
}

.mv-copy-symbol {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--copy-icon-size);
  height: var(--copy-icon-size);
  display: grid;
  place-items: center;
  opacity: 0;
  color: var(--copy-glow);
  transform:
    translate(calc(-50% + var(--copy-symbol-x)), calc(-50% + var(--copy-symbol-y)))
    translateZ(0)
    scale(0.34)
    rotate(-5deg);
  transform-origin: center;
  transition:
    transform 420ms cubic-bezier(0.18, 1.16, 0.2, 1),
    opacity 160ms ease-out;
  will-change: transform, opacity;
}

.mv-copy-effect.is-locked .mv-copy-symbol,
.mv-copy-effect.needs-release .mv-copy-symbol,
.mv-copy-effect.is-committed .mv-copy-symbol,
.mv-copy-effect.is-copied .mv-copy-symbol,
.mv-copy-effect.is-empty .mv-copy-symbol,
.mv-copy-effect.is-error .mv-copy-symbol {
  opacity: 1;
  transform: translate(-50%, -50%) translateZ(0) scale(1) rotate(0deg);
}

.mv-copy-effect.is-committed .mv-copy-symbol {
  animation: mvCopySymbolPulse 540ms cubic-bezier(0.18, 0.95, 0.18, 1) both;
}

.mv-copy-effect.is-empty .mv-copy-symbol,
.mv-copy-effect.is-error .mv-copy-symbol {
  color: var(--copy-hot);
}

.mv-copy-icon {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter:
    drop-shadow(0 0 7px color-mix(in srgb, var(--copy-hot) 66%, transparent))
    drop-shadow(0 0 24px color-mix(in srgb, var(--copy-glow) 34%, transparent));
}

.mv-copy-icon rect,
.mv-copy-icon path {
  fill: color-mix(in srgb, var(--copy-ink) 72%, transparent);
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mv-copy-icon .mv-copy-back {
  opacity: 0.58;
}

.mv-copy-icon .mv-copy-glint {
  fill: none;
  stroke-width: 3;
  opacity: 0.92;
}

.mv-copy-icon rect,
.mv-copy-icon path {
  --copy-trace-length: 1;
  stroke-dasharray: var(--copy-trace-length);
  stroke-dashoffset: var(--copy-trace-length);
}

.mv-copy-effect.is-committed .mv-copy-back {
  animation: mvCopyTrace 360ms ease-out forwards;
}

.mv-copy-effect.is-committed .mv-copy-front {
  animation: mvCopyTrace 420ms 70ms ease-out forwards;
}

.mv-copy-effect.is-committed .mv-copy-glint {
  animation: mvCopyTrace 240ms 230ms ease-out forwards;
}

.mv-copy-label {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%) scaleX(1.18);
  min-width: 7ch;
  text-align: center;
  color: currentColor;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.32em;
  text-shadow:
    0 0 10px color-mix(in srgb, var(--copy-hot) 60%, transparent),
    0 0 26px color-mix(in srgb, var(--copy-glow) 34%, transparent);
  opacity: 0;
  transition: opacity 160ms ease-out, transform 220ms ease-out;
}

.mv-copy-effect.is-locked .mv-copy-label,
.mv-copy-effect.needs-release .mv-copy-label,
.mv-copy-effect.is-committed .mv-copy-label,
.mv-copy-effect.is-copied .mv-copy-label,
.mv-copy-effect.is-empty .mv-copy-label,
.mv-copy-effect.is-error .mv-copy-label {
  opacity: 0.96;
  transform: translateX(-50%) scaleX(1.32);
}

@keyframes mvCopyMorph {
  0% {
    border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%;
  }
  50% {
    border-radius: 58% 42% 47% 53% / 42% 61% 39% 58%;
  }
  100% {
    border-radius: 49% 51% 39% 61% / 57% 44% 56% 43%;
  }
}

@keyframes mvCopyOrbit {
  from { transform: rotate(0deg) scale(0.92); }
  to { transform: rotate(360deg) scale(1.06); }
}

@keyframes mvCopyNoise {
  0% { transform: translate3d(-1%, 0, 0); }
  50% { transform: translate3d(1%, -1%, 0); }
  100% { transform: translate3d(0, 1%, 0); }
}

@keyframes mvCopyTrace {
  0% { stroke-dashoffset: var(--copy-trace-length); opacity: 0.28; }
  30% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes mvCopySymbolPulse {
  0% { transform: translate(-50%, -50%) translateZ(0) scale(0.96); }
  36% { transform: translate(-50%, -50%) translateZ(0) scale(1.08); }
  100% { transform: translate(-50%, -50%) translateZ(0) scale(1); }
}

.w {
  display: inline-block;
  position: relative;
  line-height: var(--lh-local);
  transition:
    color 1000ms ease,
    text-shadow 1000ms ease,
    opacity 1000ms ease,
    letter-spacing 1000ms ease;
}

.mv-word-text {
  position: relative;
  z-index: 0;
}

.w.fx-ignite::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  height: 1px;
  top: calc(50% + (var(--fs-local) / 3));
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 85%, transparent) 45%,
    color-mix(in srgb, var(--accent) 10%, transparent) 55%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: -120% 0;
  opacity: 0;
  pointer-events: none;
  animation: fxIgniteSweep var(--fxDur, 720ms) linear forwards;
  animation-delay: var(--fxDelay, 0ms);
}

.w.fx-arc::after {
  content: "";
  position: absolute;
  left: 10%;
  width: 70%;
  height: 1px;
  top: calc(50% + (var(--fs-local) / 6));
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 90%, transparent) 38%,
    color-mix(in srgb, var(--accent) 20%, transparent) 68%,
    transparent 100%
  );
  transform-origin: left center;
  transform: rotate(-12deg) scaleX(0.7);
  opacity: 0;
  pointer-events: none;
  animation: fxArcStrike var(--fxArcDur, 140ms) ease-out forwards;
}

@keyframes fxIgniteSweep {
  0% {
    opacity: 0;
    background-position: -120% 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    background-position: 120% 0;
  }
}

@keyframes fxArcStrike {
  0% {
    opacity: 0;
    transform: rotate(-12deg) scaleX(0.6);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(-12deg) scaleX(1);
  }
}

.br {
  line-height: var(--lh-local);
}

.hint {
  position: absolute;
  left: 50%;
  top: calc((var(--lh-local) - var(--fs-local)) / 2);
  transform: translate(-50%, -100%);
  font-size: calc(var(--fs-local) * 0.52);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.9;
  white-space: nowrap;
}

.hint::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 2px);
  transform: translateX(-50%);
  height: 3px;
  min-width: 16px;
  width: calc(100% + 10px);
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
}

.neonDim {
  color: #d9d1aa;
  text-shadow: 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent);
}

.neon {
  color: #ffe187;
  text-shadow: 0 0 10px rgba(255, 221, 122, 0.45), 0 0 18px rgba(255, 221, 122, 0.2);
}

.cmd {
  font-family: var(--font-mono);
  color: #f7d370;
  text-shadow: 0 0 12px rgba(247, 211, 112, 0.35);
  letter-spacing: 0.025em;
}

.muted {
  color: #8b8364;
  opacity: 0.75;
}

.autocorr {
  text-decoration: none;
}

.hinted {
  box-shadow: none;
}

.w.selectionCandidate {
  color: color-mix(in srgb, var(--text) 84%, #8cc9ff 16%);
  text-shadow: 0 0 8px rgba(117, 190, 255, 0.16);
}

.w.selectionCandidate::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.08em;
  bottom: calc((var(--lh-local) - var(--fs-local)) / 2 + var(--fs-local) * 0.02);
  height: max(2px, calc(var(--fs-local) * 0.055));
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(112, 191, 255, 0.05),
    rgba(112, 191, 255, 0.42),
    rgba(112, 191, 255, 0.05)
  );
  pointer-events: none;
}

.w.selectionPrimary {
  color: #fff0b8;
  text-shadow:
    0 0 10px rgba(255, 211, 112, 0.42),
    0 0 22px rgba(255, 171, 80, 0.18);
}

.w.selectionPrimary::before {
  content: "";
  position: absolute;
  left: -0.16em;
  right: -0.16em;
  top: calc((var(--lh-local) - var(--fs-local)) / 2 - var(--fs-local) * 0.05);
  bottom: calc((var(--lh-local) - var(--fs-local)) / 2 - var(--fs-local) * 0.04);
  border: 1px solid rgba(255, 213, 117, 0.34);
  border-radius: 0.32em;
  background: linear-gradient(180deg, rgba(255, 217, 128, 0.13), rgba(255, 157, 70, 0.05));
  box-shadow: inset 0 0 18px rgba(255, 203, 105, 0.12), 0 0 18px rgba(255, 184, 79, 0.12);
  pointer-events: none;
}

.w.selectionFinal {
  color: #fff7ce;
  text-shadow:
    0 0 12px rgba(255, 230, 148, 0.52),
    0 0 28px rgba(255, 213, 108, 0.24);
}

.w.selectionFinal::before {
  content: "";
  position: absolute;
  left: -0.2em;
  right: -0.2em;
  top: calc((var(--lh-local) - var(--fs-local)) / 2 - var(--fs-local) * 0.08);
  bottom: calc((var(--lh-local) - var(--fs-local)) / 2 - var(--fs-local) * 0.08);
  border-radius: 0.36em;
  background: color-mix(in srgb, var(--accent) 19%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-strong) 42%, transparent), 0 0 24px rgba(255, 210, 104, 0.18);
  pointer-events: none;
}

.w.asrCommit {
  color: color-mix(in srgb, var(--text) 78%, var(--accent) 22%);
  text-shadow:
    0 0 7px color-mix(in srgb, var(--accent) 30%, transparent),
    0 0 14px color-mix(in srgb, var(--accent) 12%, transparent);
}

.w.asrCommit::before {
  content: "";
  position: absolute;
  right: -0.08em;
  bottom: calc((var(--lh-local) - var(--fs-local)) / 2 + var(--fs-local) * 0.1);
  width: min(11em, 42vw);
  height: max(2px, calc(var(--fs-local) * 0.085));
  border-radius: 999px;
  transform-origin: right center;
  pointer-events: none;
  mix-blend-mode: screen;
}

.w.asrCommit::before {
  opacity: 0.58;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      color-mix(in srgb, var(--accent) 20%, transparent) 45%,
      color-mix(in srgb, var(--accent-strong) 88%, white 10%) 100%
    );
  box-shadow:
    0 0 8px color-mix(in srgb, var(--accent) 34%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 12%, transparent);
  animation: mvAsrCommitSeal 1700ms cubic-bezier(0.12, 0.76, 0.2, 1) both;
}

@keyframes mvAsrCommitSeal {
  0% {
    opacity: 0;
    transform: translateX(-0.55em) scaleX(0.14);
    filter: blur(2.6px);
  }

  18% {
    opacity: 1;
    transform: translateX(0) scaleX(1);
    filter: blur(0.2px);
  }

  44% {
    opacity: 0.9;
    transform: translateX(0.05em) scaleX(0.42);
  }

  72% {
    opacity: 0.68;
    transform: translateX(0) scaleX(0.15);
    filter: blur(0);
  }

  100% {
    opacity: 0.52;
    transform: translateX(0) scaleX(0.075);
    filter: blur(0);
  }
}

@property --mv-glyph-scan-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 23%;
}

.mv-glyph-scan {
  animation: mvGlyphScanSweep 1400ms linear infinite alternate;
}

.mv-glyph-scan .w[data-mv-glyph-scan-text] {
  --mv-glyph-scan-core: color-mix(in oklch, currentColor 26%, white 74%);
  --mv-glyph-scan-hot: color-mix(in oklch, currentColor 68%, white 32%);
  --mv-glyph-scan-soft: color-mix(in oklch, currentColor 56%, transparent);
  --mv-glyph-scan-haze: color-mix(in oklch, currentColor 24%, transparent);
  --mv-glyph-scan-aura: color-mix(in oklch, currentColor 64%, white 36%);
  --mv-glyph-scan-glow: color-mix(in oklch, currentColor 72%, transparent);
  --mv-glyph-scan-glow-soft: color-mix(in oklch, currentColor 42%, transparent);
}

.mv-glyph-scan .w[data-mv-glyph-scan-text]::before,
.mv-glyph-scan .w[data-mv-glyph-scan-text]::after {
  content: attr(data-mv-glyph-scan-text);
  position: absolute;
  left: 0;
  right: 0;
  top: calc((var(--lh-local) - var(--fs-local)) / 2);
  bottom: auto;
  width: auto;
  height: var(--fs-local);
  z-index: 1;
  display: block;
  pointer-events: none;
  white-space: pre;
  font: inherit;
  line-height: var(--fs-local);
  letter-spacing: inherit;
  color: inherit;
  text-shadow: none;
  border-radius: 0;
  transform: none;
  transform-origin: center;
  background: none;
  box-shadow: none;
  animation: none;
}

.mv-glyph-scan .w[data-mv-glyph-scan-text]::before {
  -webkit-text-fill-color: var(--mv-glyph-scan-aura);
  -webkit-text-stroke: 0.035em var(--mv-glyph-scan-aura);
  opacity: 0.88;
  filter:
    blur(0.015em)
    drop-shadow(0 0 0.22em var(--mv-glyph-scan-glow))
    drop-shadow(0 0 0.46em var(--mv-glyph-scan-glow-soft));
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    transparent calc(var(--mv-glyph-scan-y) - 12%),
    black calc(var(--mv-glyph-scan-y) - 5.2%),
    black calc(var(--mv-glyph-scan-y) + 5.2%),
    transparent calc(var(--mv-glyph-scan-y) + 12%),
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    transparent calc(var(--mv-glyph-scan-y) - 12%),
    black calc(var(--mv-glyph-scan-y) - 5.2%),
    black calc(var(--mv-glyph-scan-y) + 5.2%),
    transparent calc(var(--mv-glyph-scan-y) + 12%),
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mix-blend-mode: screen;
}

.mv-glyph-scan .w[data-mv-glyph-scan-text]::after {
  opacity: 1;
  background-image:
    linear-gradient(
      180deg,
      transparent 0%,
      transparent calc(var(--mv-glyph-scan-y) - 4.4%),
      var(--mv-glyph-scan-soft) calc(var(--mv-glyph-scan-y) - 3%),
      var(--mv-glyph-scan-hot) calc(var(--mv-glyph-scan-y) - 1.7%),
      var(--mv-glyph-scan-core) calc(var(--mv-glyph-scan-y) - 0.7%),
      var(--mv-glyph-scan-core) var(--mv-glyph-scan-y),
      var(--mv-glyph-scan-core) calc(var(--mv-glyph-scan-y) + 0.7%),
      var(--mv-glyph-scan-hot) calc(var(--mv-glyph-scan-y) + 1.7%),
      var(--mv-glyph-scan-soft) calc(var(--mv-glyph-scan-y) + 3%),
      transparent calc(var(--mv-glyph-scan-y) + 4.4%),
      transparent 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      transparent calc(var(--mv-glyph-scan-y) - 8%),
      var(--mv-glyph-scan-haze) var(--mv-glyph-scan-y),
      transparent calc(var(--mv-glyph-scan-y) + 8%),
      transparent 100%
    );
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 0.05em var(--mv-glyph-scan-glow))
    drop-shadow(0 0 0.18em var(--mv-glyph-scan-glow-soft));
  mix-blend-mode: screen;
}

@supports (color: oklch(from red 98% calc(c + 0.04) h / 0.8)) {
  .mv-glyph-scan .w[data-mv-glyph-scan-text] {
    --mv-glyph-scan-core: oklch(from currentColor 98% calc(c + 0.035) h);
    --mv-glyph-scan-hot: oklch(from currentColor 90% calc(c + 0.045) h / 0.98);
    --mv-glyph-scan-soft: oklch(from currentColor 78% calc(c + 0.04) h / 0.68);
    --mv-glyph-scan-haze: oklch(from currentColor 76% calc(c + 0.035) h / 0.3);
    --mv-glyph-scan-aura: oklch(from currentColor 92% calc(c + 0.055) h / 0.74);
    --mv-glyph-scan-glow: oklch(from currentColor 96% calc(c + 0.05) h / 0.84);
    --mv-glyph-scan-glow-soft: oklch(from currentColor 86% calc(c + 0.045) h / 0.54);
  }
}

.mv-glyph-scan .w[data-mv-glyph-scan-text] .hint {
  background: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--muted) !important;
  color: var(--muted) !important;
  text-shadow: none !important;
  animation: none !important;
  z-index: 2;
}

.mv-glyph-scan .w[data-mv-glyph-scan-text] .hint::before {
  -webkit-text-fill-color: initial;
}

@keyframes mvGlyphScanSweep {
  from {
    --mv-glyph-scan-y: 23%;
  }

  to {
    --mv-glyph-scan-y: 88%;
  }
}

@keyframes mvPixelMaskFrames {
  from {
    --mv-pixel-mask-y: 0px;
  }

  to {
    --mv-pixel-mask-y: calc(-1 * var(--mv-pixel-mask-total-h));
  }
}

@keyframes mvPixelRealPulse {
  0%, 24%, 76%, 100% {
    --mv-pixel-real-opacity: 0.84;
    --mv-pixel-real-fill: currentColor;
    --mv-pixel-real-stroke-color: transparent;
    --mv-pixel-real-stroke-width: 0;
  }

  46%, 50%, 54% {
    --mv-pixel-real-opacity: 0.62;
    --mv-pixel-real-fill: transparent;
    --mv-pixel-real-stroke-color: color-mix(in srgb, currentColor 88%, white 12%);
    --mv-pixel-real-stroke-width: 0.7px;
  }
}

@keyframes mvPixelNoisePulse {
  0%, 100% { --mv-pixel-noise-opacity: 0.56; }
  18% { --mv-pixel-noise-opacity: 0.72; }
  40% { --mv-pixel-noise-opacity: 0.96; }
  50% { --mv-pixel-noise-opacity: 1; }
  62% { --mv-pixel-noise-opacity: 0.96; }
  82% { --mv-pixel-noise-opacity: 0.62; }
}

@keyframes mvPixelSpillPulse {
  0%, 100% { --mv-pixel-spill-opacity: 0.04; }
  36%, 68% { --mv-pixel-spill-opacity: 0.06; }
  45% { --mv-pixel-spill-opacity: 0.12; }
  52% { --mv-pixel-spill-opacity: 0.24; }
  60% { --mv-pixel-spill-opacity: 0.1; }
}

@property --mv-pixel-mask-y {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --mv-pixel-real-opacity {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

@property --mv-pixel-noise-opacity {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --mv-pixel-spill-opacity {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.mv-panel.mv-pixel-mask-ready {
  animation:
    mvPixelMaskFrames var(--mv-pixel-mask-total-cycle) steps(var(--mv-pixel-mask-steps), end) infinite,
    mvPixelRealPulse var(--mv-pixel-mask-cycle) linear infinite,
    mvPixelNoisePulse var(--mv-pixel-mask-cycle) linear infinite,
    mvPixelSpillPulse var(--mv-pixel-mask-cycle) linear infinite;
}

.mv-panel.mv-pixel-mask-ready .w.effectPixelate[data-mv-pixel-mask-text] {
  --mv-pixel-core: color-mix(in srgb, currentColor 42%, white 58%);
  --mv-pixel-hot: color-mix(in srgb, currentColor 32%, var(--accent-strong) 68%);
  --mv-pixel-glow: color-mix(in srgb, var(--accent-strong) 46%, transparent);
}

.mv-panel.mv-pixel-mask-ready .w.effectPixelate[data-mv-pixel-mask-text] > .mv-word-text {
  display: inline-block;
  opacity: var(--mv-pixel-real-opacity);
  -webkit-text-fill-color: var(--mv-pixel-real-fill, currentColor);
  -webkit-text-stroke: var(--mv-pixel-real-stroke-width, 0) var(--mv-pixel-real-stroke-color, transparent);
  text-shadow: none;
}

.mv-panel.mv-pixel-mask-ready .w.effectPixelate[data-mv-pixel-mask-text]::before,
.mv-panel.mv-pixel-mask-ready .w.effectPixelate[data-mv-pixel-mask-text]::after {
  content: attr(data-mv-pixel-mask-text);
  position: absolute;
  left: 0;
  right: 0;
  top: calc((var(--lh-local) - var(--fs-local)) / 2);
  bottom: auto;
  width: auto;
  height: var(--fs-local);
  display: block;
  pointer-events: none;
  white-space: pre;
  font: inherit;
  line-height: var(--fs-local);
  letter-spacing: inherit;
  color: var(--mv-pixel-core);
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  border-radius: 0;
  transform: none;
  transform-origin: center;
  background: none;
  box-shadow: none;
  -webkit-mask-image: var(--mv-pixel-mask-image);
  mask-image: var(--mv-pixel-mask-image);
  -webkit-mask-position: var(--mv-pixel-mask-x, 0px) var(--mv-pixel-mask-y, 0px);
  mask-position: var(--mv-pixel-mask-x, 0px) var(--mv-pixel-mask-y, 0px);
  -webkit-mask-size: var(--mv-pixel-mask-tile-w) var(--mv-pixel-mask-total-h);
  mask-size: var(--mv-pixel-mask-tile-w) var(--mv-pixel-mask-total-h);
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  mix-blend-mode: normal;
  will-change: opacity, mask-position;
}

.mv-panel.mv-pixel-mask-ready .w.effectPixelate[data-mv-pixel-mask-text]::before {
  z-index: 1;
  opacity: var(--mv-pixel-noise-opacity);
  filter: drop-shadow(0 0 0.06em var(--mv-pixel-glow));
}

.mv-panel.mv-pixel-mask-ready .w.effectPixelate[data-mv-pixel-mask-text]::after {
  z-index: 2;
  opacity: var(--mv-pixel-spill-opacity);
  color: var(--mv-pixel-hot);
  filter: drop-shadow(0 0 0.1em color-mix(in srgb, var(--accent-strong) 32%, transparent));
}

.mv-panel.mv-pixel-mask-ready .w.effectPixelate[data-mv-pixel-mask-text] .hint {
  background: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--muted) !important;
  color: var(--muted) !important;
  text-shadow: none !important;
  animation: none !important;
  z-index: 4;
}

.mv-panel.mv-pixel-mask-ready .w.effectPixelate[data-mv-pixel-mask-text] .hint::before {
  -webkit-text-fill-color: initial;
}

.mv-status {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 24px 12px;
  background: linear-gradient(180deg, rgba(14, 13, 8, 0.9), rgba(12, 11, 7, 0.96));
}

.mv-status-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  visibility: hidden;
  pointer-events: none;
}

.mv-bar {
  position: relative;
  height: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  background: rgba(22, 20, 12, 0.9);
  overflow: hidden;
}

.mv-bar-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 12%, transparent),
    color-mix(in srgb, var(--accent-strong) 65%, transparent),
    color-mix(in srgb, var(--accent) 12%, transparent)
  );
}

@media (max-width: 720px) {
  .mv-page {
    padding-top: max(14px, calc(10px + env(safe-area-inset-top)));
    padding-bottom: max(14px, calc(10px + env(safe-area-inset-bottom)));
  }

  .mv-panel {
    height: min(88vh, 680px);
    height: min(88dvh, calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    border-radius: 10px;
  }

  .mv-scroll {
    padding: 14px 16px 18px;
  }

  .mv-status {
    padding: 8px 16px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mv-text,
  .w,
  .w::before,
  .w::after,
  .mv-word-text,
  .mv-copy-effect,
  .mv-copy-effect * {
    animation: none !important;
    transition: none;
  }

  .mv-copy-effect.is-committed .mv-copy-icon rect,
  .mv-copy-effect.is-committed .mv-copy-icon path,
  .mv-copy-effect.is-copied .mv-copy-icon rect,
  .mv-copy-effect.is-copied .mv-copy-icon path,
  .mv-copy-effect.is-empty .mv-copy-icon rect,
  .mv-copy-effect.is-empty .mv-copy-icon path,
  .mv-copy-effect.is-error .mv-copy-icon rect,
  .mv-copy-effect.is-error .mv-copy-icon path {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  .mv-glyph-scan {
    --mv-glyph-scan-y: 50%;
  }

  .w.asrCommit::before {
    animation: none !important;
    filter: none;
  }

  .w.asrCommit::before {
    opacity: 0.52;
    transform: scaleX(0.075);
  }
}
