* { box-sizing: border-box; }
:root { color-scheme: light; color: #141414; background: #fff; font: 1.1rem/1.5 system-ui, sans-serif; }
body { margin: 0; min-height: 100dvh; display: grid; place-items: center; }
main { width: min(94vw, 32rem); padding: 1rem; text-align: center; }
[hidden], #message:empty { display: none !important; }
#message { margin: 0 0 1rem; }
form { display: grid; gap: .75rem; }
label { font-size: 1.35rem; font-weight: 650; }
input, button { font: inherit; }
input { width: 100%; min-height: 3.25rem; padding: .5rem; border: 1px solid #808080; border-radius: .6rem; text-align: center; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .43; cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid #176a9b; outline-offset: 3px; }
.pill { border: 0; border-radius: 2rem; background: #161616; color: #fff; padding: .7rem 1.65rem; min-height: 3.75rem; font-weight: 680; }
#book { min-width: 11rem; font-size: 1.35rem; }
#dots { min-height: 1.5rem; margin-bottom: .85rem; letter-spacing: .35rem; font-size: .8rem; }
.digits { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: clamp(.55rem, 3vw, 1rem); }
.circle { width: clamp(3.35rem, 15vw, 5.2rem); height: clamp(3.35rem, 15vw, 5.2rem); border: 0; border-radius: 50%; background: #f0f0f0; color: #111; font-size: clamp(1.6rem, 5vw, 2.25rem); }
.circle:active { background: #d3d3d3; }
.zero { grid-column: 2; }
.enter { grid-column: 3; background: #181818; color: #fff; }
.enter:active { background: #383838; }
#timer { position: fixed; inset: 0 0 auto; height: .3rem; background: #f0f0f0; }
#fill { width: 100%; height: 100%; background: #181818; transform-origin: left center; }
#person { display: block; font-size: 1.8rem; }
#entry { margin: .25rem 0 0; font-size: 1.2rem; }
@media (max-height: 440px) { .circle { width: 3.2rem; height: 3.2rem; } .digits { gap: .38rem; } }
