:root {
  --bg: #0b0b0d;
  --card: #151518;
  --ink: #f4f3f0;
  --soft: rgba(244, 243, 240, 0.56);
  --line: rgba(244, 243, 240, 0.1);
  --accent: #f2b84b;
  --bar: #4a4a52;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.live, .mw__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.mw { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: min(348px, 100%); padding: 18px 16px 12px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 50px -28px rgba(0, 0, 0, 0.9); }
.mw__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 2px; }
.mw__head strong { font-size: 16px; line-height: 20px; font-weight: 720; letter-spacing: -0.01em; }
.mw__sum { display: block; height: 16px; overflow: hidden; font-size: 12.500px; line-height: 16px; font-weight: 660; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.mw__sum span { display: block; }
.mw[data-hidden] .mw__sum { color: var(--accent); }

.mw__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mw__chip { display: grid; place-items: center; height: 32px; padding: 0 13px; border-radius: 16px; font-size: 13px; font-weight: 680; color: var(--soft); box-shadow: inset 0 0 0 1.500px rgba(244, 243, 240, 0.16); transition: color 0.25s, background-color 0.25s, box-shadow 0.25s; }
.mw__chip span { display: block; background: linear-gradient(currentColor, currentColor) 0 55% / 0 1.500px no-repeat; transition: background-size 0.3s; }
.mw__chip[aria-pressed="true"] { color: #1b1403; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 12px -8px var(--accent); }
/* a muted word is struck through on its chip */
.mw__chip[aria-pressed="true"] span { background-size: 100% 1.500px; }
.mw__chip:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }

.mw__list { display: grid; grid-template-columns: minmax(0, 1fr); list-style: none; }
.mw__row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 2px; box-shadow: inset 0 1px 0 var(--line); }
.mw__face { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(244, 243, 240, 0.1); font-size: 12.500px; line-height: 1; font-weight: 720; color: var(--soft); }
.mw__row p { min-height: 38px; font-size: 13.500px; line-height: 19px; font-weight: 520; color: rgba(244, 243, 240, 0.86); }
.mw__row b { display: block; font-size: 12.500px; font-weight: 720; color: var(--ink); }
.mw__w { position: relative; display: inline-block; }
.mw__w em { font-style: normal; display: inline-block; }
.mw__w i { position: absolute; left: -3px; right: -3px; top: 2px; bottom: 1px; border-radius: 5px; background: var(--bar); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); transform: scaleX(0); transform-origin: 0 50%; transition: opacity 0.25s; }
.mw__w.is-peek i { opacity: 0.18; }
.mw__w.is-peek em { opacity: 1 !important; }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #f4f3f0; stroke: #0b0b0d; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); z-index: 6; }

@media (hover: hover) { .mw__chip[aria-pressed="false"]:hover { color: var(--ink); box-shadow: inset 0 0 0 1.500px rgba(244, 243, 240, 0.4); } }
@media (max-width: 350px) { .mw { padding: 16px 13px 10px; } .mw__row p { font-size: 13px; } .mw__chip { padding: 0 11px; } }
@media (prefers-reduced-motion: reduce) { .mw__sum, .mw__chip, .mw__chip span, .mw__w i { transition: none; } }
