@font-face {
  font-family: "Amatic SC";
  src: url("./fonts/AmaticSC-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Actual A/B ink geometry. Origins, advances and mask boxes never animate. */
.daily-lettering .handwritten-label { -webkit-text-stroke: 0; paint-order: normal; }
.daily-lettering .handwritten-visual { display: inline-flex; position: relative; align-items: stretch; color: inherit; white-space: pre; }
.daily-lettering .handwritten-glyph { display: block; position: relative; flex: 0 0 auto; height: 100%; color: inherit; }
.daily-lettering .handwritten-ink {
  display: block;
  position: absolute;
  background-color: currentColor;
  color: inherit;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  mask-mode: alpha;
  opacity: 1;
  transition: none;
  animation: none;
  transform: none;
  filter: none;
  -webkit-text-stroke: 0;
}
.daily-lettering .handwritten-ink[data-drawing="B"] { opacity: 0; }
.daily-lettering[data-ink-frame="B"] .handwritten-ink[data-drawing="A"] { opacity: 0; }
.daily-lettering[data-ink-frame="B"] .handwritten-ink[data-drawing="B"] { opacity: 1; }
.daily-lettering .handwritten-copy { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.daily-lettering .handwritten-fallback { font-family: "Amatic SC", cursive; font-weight: 400; line-height: 1.15625; }
.daily-lettering .wordmark > .wordmark-first { color: var(--yellow); }

.daily-lettering .current-word.handwritten-label {
  font-size: clamp(3.45rem, 8.75vw, 6.9rem);
  line-height: 1.15;
}

.nudge-button > .nudge-label {
  font: inherit;
  letter-spacing: inherit;
}

.daily-lettering .nudge-button > .handwritten-label {
  font-size: 2.65rem;
  line-height: 1.1;
}

.daily-lettering :is(.start-button, .secondary-button, .sound-toggle).handwritten-label {
  font-size: 1.8rem;
  line-height: 1.1;
}

.daily-lettering .sound-toggle.handwritten-label { font-size: 1.45rem; }
.daily-lettering .timer-value > .handwritten-visual { font-size: inherit; }

@media (max-width: 640px) {
  .daily-lettering .current-word.handwritten-label { font-size: clamp(2.85rem, 10vw, 3.8rem); }
  .daily-lettering .nudge-button > .handwritten-label { font-size: 2.15rem; }
  .daily-lettering .result-panel .handwritten-label:is(.start-button, .secondary-button) { font-size: 1.55rem; }
}
