@font-face {
  font-family: "Trace Brush";
  src: url("./assets/case-script-zh.woff") format("woff");
  font-display: swap;
}
@property --english-ink {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 100%;
}
.translation-relative { position: relative; }
.translation-host { --english-ink:100%; transition: --english-ink 145ms ease-out; }
.translation-host.showing-translation { --english-ink:0%; }
.translation-host, .translation-host :where(.ln,.wd,.ch,.lt-w,em,b,u,span,i) {
  -webkit-text-fill-color: color-mix(in srgb,currentColor var(--english-ink),transparent);
}
.translation-host .md, .translation-host .md * { -webkit-text-fill-color:currentColor; }
.case-translation {
  pointer-events:none;
  display:block;
  position:absolute;
  inset-inline-start:0;
  box-sizing:border-box;
  margin:0; padding:0;
  text-align:inherit; font-weight:inherit; font-style:inherit;
  line-height:1.1; letter-spacing:normal;
  white-space:normal; overflow-wrap:anywhere;
  animation: case-ink-in 330ms cubic-bezier(.18,.7,.2,1) both;
}
.case-translation [data-glyphs]::before { content:attr(data-glyphs); -webkit-text-fill-color:currentColor; }
.case-translation.is-leaving { animation:case-ink-out 140ms ease-out both; }
@keyframes case-ink-in {
  from { opacity:0; clip-path:inset(-.12em 100% -.14em -.08em); }
  18% { opacity:0; }
  to { opacity:1; clip-path:inset(-.12em -.1em -.14em -.08em); }
}
@keyframes case-ink-out { to {opacity:0;} }
@media(prefers-reduced-motion:reduce) {
  .case-translation,.case-translation.is-leaving { animation:none; }
  .translation-host { transition:none; }
}
.lt-state { color:#0b41c2; font-weight:800; }
.L-int-ruler .i-head {
  top:clamp(66px,12vh,100px);
  max-width:none;
  width:calc(100% - 2 * var(--pad));
  font-size:min(var(--fs-head),7.25vw,7vh);
}
.showing-translation .c3-inv, .showing-translation .c3-inv *,
.showing-translation.c6-unwritten {
  -webkit-text-stroke-color:transparent;
}
.file__text [data-zh] {
  display:inline-block;
  width:100%;
  vertical-align:top;
}
