:root{color-scheme:light;--blue:#5c9ebf;--ink:#173e50;--red:#d93f27;--cell:1.2ch;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;color:var(--ink);background:var(--blue)}
*{box-sizing:border-box}
body{margin:0;background:var(--blue)}
main{width:min(100% - 56px,460px);margin:auto;padding:56px 0 64px}
.heading{text-align:center;margin-bottom:48px}
.sign{display:block;width:212px;height:auto;margin:auto}
.entries{list-style:none;margin:0;padding:0}
.entry{--stroke:url('/paint-1.svg');--tilt:-.5deg;position:relative;isolation:isolate;display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:22px;min-height:62px;align-items:center;margin:0 0 14px;padding:12px 27px 12px 14px}
.entry::before{content:"";position:absolute;z-index:-1;inset:-3px -11px;background-image:var(--stroke);background-size:100% 100%;background-repeat:no-repeat;transform:rotate(var(--tilt));pointer-events:none}
.entry:nth-child(4n+2){--stroke:url('/paint-2.svg');--tilt:.6deg}
.entry:nth-child(4n+3){--stroke:url('/paint-3.svg');--tilt:-.25deg}
.entry:nth-child(4n){--stroke:url('/paint-4.svg');--tilt:.35deg}
.number{font-size:14px;line-height:38px;color:var(--red);font-variant-numeric:tabular-nums;text-align:right}
.words{display:flex;flex-wrap:wrap;align-items:center;column-gap:1.2ch;row-gap:3px}
.word{position:relative;display:block;width:calc(var(--length) * var(--cell));height:38px;font-family:ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:18px;line-height:38px;border-radius:2px}
.cells{display:flex;pointer-events:none;height:100%}
.cell{display:inline-block;flex:0 0 var(--cell);position:relative;text-align:left;white-space:pre;font-weight:400}
.dash{color:#597b8a;font-weight:400;display:inline-block}
.key .dash{font-weight:900;color:var(--ink);text-shadow:0 .55px 0 currentColor,0 -.55px 0 currentColor}
.letter{color:var(--ink)}
.key .letter{font-weight:800}
.cell.filled .dash{display:none}
input{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:2px;background:transparent;margin:0;padding:0;font:inherit;line-height:38px;letter-spacing:.2ch;color:transparent;caret-color:var(--red);outline:none;appearance:none;-webkit-text-fill-color:transparent}
input::selection{background:#5c9ebf40}
.word:focus-within{background:#5c9ebf10;box-shadow:0 2px 0 var(--blue)}
.destination{margin-top:48px;padding:12px 0}
.final-words{display:flex;justify-content:center;gap:1.4ch}
.final-words .word{font-size:23px}
.final-words .dash,.final-words .letter{font-weight:700;color:#fff}
.final-words .word:focus-within{background:#ffffff10;box-shadow:0 2px 0 #fff}
.final-words input{caret-color:#fff}
.final-words input::selection{background:#ffffff40}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
noscript{color:#fff;text-align:center;font-size:16px}
@media(max-width:480px){main{padding-top:36px;padding-bottom:44px;width:calc(100% - 44px);max-width:360px}.heading{margin-bottom:36px}.entry{grid-template-columns:22px minmax(0,1fr);column-gap:17px;min-height:60px;margin-bottom:12px;padding:11px 16px 11px 9px}.entry::before{inset:-2px -8px}.word{font-size:17px}.sign{width:184px}.destination{margin-top:36px}}
@media(prefers-reduced-motion:no-preference){.word{transition:box-shadow .12s,background .12s}}
@media print{:root,body{background:#fff}main{width:420px;padding:0}.heading{margin-bottom:24px}.sign{width:100px;height:auto}.entry{min-height:35px;padding:0;margin-bottom:3px;break-inside:avoid}.entry::before{display:none}.destination{break-inside:avoid}.final-words .dash,.final-words .letter{color:var(--ink)}}
