:root {
  --bg: #ffffff;
  --ink: #17181b;
  --soft: #7a7c82;
  --line: rgba(23, 24, 27, 0.1);
  --band: #1f4fd8;
  --accent: #1f4fd8;
  --wrong: #d9463e;
  --done: #1f9d68;
}

*, *::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: 16px;
}

.pt { width: min(344px, 100%); }
.pt__head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 8px; }
.pt__label { font-size: 14px; font-weight: 620; }
.pt__state { height: 18px; overflow: hidden; font-size: 12px; line-height: 18px; font-weight: 520; color: var(--soft); transition: color 0.3s ease; }
.pt__state span { display: block; white-space: nowrap; }
.pt.is-done .pt__state { color: var(--done); }
.pt.is-wrong .pt__state { color: var(--wrong); }

/* the field is the plate: pressed metal, a blue band on the left, seven embossed characters */
.plate { position: relative; display: flex; align-items: stretch; height: 76px; border-radius: 12px; background: linear-gradient(180deg, #ffffff, #f1f1ee); box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px #ffffff, 0 0 0 6px rgba(23, 24, 27, 0.14), 0 22px 34px -18px rgba(23, 24, 27, 0.45); overflow: hidden; transition: box-shadow 0.3s ease; }
.plate:has(.plate__input:focus-visible) { box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px #ffffff, 0 0 0 7px var(--accent), 0 22px 34px -18px rgba(23, 24, 27, 0.45); }
.plate__band { flex: none; display: grid; align-content: space-between; justify-items: center; width: 34px; padding: 9px 0 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--band) 86%, #ffffff), var(--band)); color: #ffffff; }
.plate__band svg { width: 18px; height: 18px; }
.plate__band circle { fill: none; stroke: #ffd84a; stroke-width: 1.6; stroke-dasharray: 1.200 2.050; stroke-linecap: round; }
.plate__band b { font-size: 15px; font-weight: 700; line-height: 1; }
.plate__chars { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(2px, 1.2vw, 5px); padding: 0 8px; }
.slot { position: relative; display: grid; place-items: center; width: clamp(24px, 8.600vw, 32px); height: 56px; }
.slot.is-gap { margin-left: clamp(5px, 2.400vw, 11px); }
.slot__mark { position: absolute; left: 3px; right: 3px; bottom: 5px; height: 3px; border-radius: 3px; background: rgba(23, 24, 27, 0.14); transition: background-color 0.25s ease; }
.slot.is-next .slot__mark { background: var(--accent); }
.slot.is-no .slot__mark { background: var(--wrong); }
.slot__char { position: relative; font-size: clamp(36px, 12.400vw, 46px); line-height: 1; font-weight: 720; font-stretch: 78%; letter-spacing: 0; color: var(--ink); text-shadow: 0 1px 0 #ffffff, 0 -1px 0 rgba(23, 24, 27, 0.25); }
.plate__glint { position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.95) 45%, transparent 80%); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.plate__tick { position: absolute; right: 7px; top: 7px; width: 16px; height: 16px; }
.plate__tick path { fill: none; stroke: var(--done); stroke-width: 2.600; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.plate__input { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: none; color: transparent; caret-color: transparent; font-size: 16px; opacity: 0.01; cursor: text; outline: none; }
.pt__hint { margin-top: 14px; padding: 0 4px; font-size: 12px; font-weight: 460; color: var(--soft); }

