:root{color-scheme:light;--paper:#f7f4ec;--ink:#382923;--wine:#682b3d;--muted:#786b63;--line:#d8cfc2;--soft:#eee8dd;--serif:Georgia,'Times New Roman',serif;--sans:'Helvetica Neue',Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}button,a,input{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--wine);outline-offset:5px}button{border-radius:0}a{color:inherit}.page-shell{max-width:1600px;margin:auto;padding:0 56px;min-height:100svh;display:flex;flex-direction:column}.masthead{height:108px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.wordmark{font-family:var(--serif);text-decoration:none;font-size:33px;letter-spacing:5px;line-height:1;display:flex;flex-direction:column;align-items:center}.wordmark span{font:9px var(--sans);letter-spacing:4px;margin-top:8px;padding-left:3px}.masthead-note{font:italic 14px/1.5 var(--serif);text-align:right;color:var(--muted)}main{width:100%;max-width:800px;margin:auto;flex:1}.introduction{text-align:center;padding-top:36px}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:500;margin:0 0 15px}h1{font:normal clamp(38px,4.5vw,62px)/1.1 var(--serif);letter-spacing:-2.5px;margin:0}h1 em,h2 em{font-weight:normal}.intro-copy{font-size:13px;color:var(--muted);line-height:1.6;margin:15px 0 0}.game-stage{max-width:620px;margin:32px auto 0;border-top:1px solid var(--line);position:relative}.stage-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:9px;letter-spacing:1.6px;padding-top:16px}.result-art{display:flex;align-items:center;justify-content:center;gap:30px;height:252px}.number-area{min-width:270px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.number{font:normal 226px/.9 var(--serif);letter-spacing:-15px;color:var(--wine);padding-right:15px;font-variant-numeric:lining-nums tabular-nums}.number.is-empty{font-style:italic;font-size:204px;font-weight:normal}.number-caption{font-size:8px;letter-spacing:2px;color:var(--muted);margin-top:16px}.illustration{width:180px;margin:0;text-align:center;transform:rotate(-5deg)}.illustration img{display:block;width:100%;height:170px;object-fit:contain}.illustration figcaption{font-size:8px;letter-spacing:1.7px;line-height:1.5;margin-top:8px;color:var(--muted)}.result-copy{text-align:center;min-height:78px}h2{font:normal 30px/1.2 var(--serif);letter-spacing:-.6px;margin:0}.result-copy p{font-size:11px;line-height:1.6;color:var(--muted);margin:9px 0 0}.game-controls{max-width:440px;margin:12px auto 0}.draw-button{display:flex;align-items:center;justify-content:center;position:relative;border:1px solid var(--wine);background:var(--wine);color:var(--paper);width:100%;min-height:66px;font-size:14px;letter-spacing:3.8px;transition:background .15s,transform .15s}.draw-button:hover:not(:disabled){background:#542131}.draw-button:active:not(:disabled){transform:scale(.99)}.draw-button:disabled{background:#ded6ca;border-color:#ded6ca;color:#6e615b}.button-spark{position:absolute;right:25px;font-size:25px;font-weight:normal}.progress-line{display:flex;justify-content:space-between;font-size:11px;margin-top:20px;color:var(--muted)}.progress-line strong{font-weight:500;color:var(--wine)}.total{color:var(--muted)}.progress-track{height:2px;background:var(--line);margin-top:10px}.progress-track span{height:100%;display:block;background:var(--wine);width:0;transition:width .2s}.secondary-actions{display:flex;justify-content:space-between;gap:14px;margin-top:7px}.text-button{border:0;background:transparent;font-size:11px;display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:4px 0}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.text-button span{font-size:19px}.save-status{font-size:10px;color:var(--muted);text-align:center;margin:14px 0 26px;line-height:1.6}.save-status:before{content:'';display:inline-block;width:4px;height:4px;border-radius:50%;background:#72806b;margin:0 7px 2px 0}.footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);min-height:69px;color:var(--muted);font-size:8px;letter-spacing:1.5px;margin-top:12px}.motion-option{display:flex;align-items:center;min-height:44px;gap:7px;font-size:10px;letter-spacing:0;cursor:pointer}.motion-option input{width:13px;height:13px;accent-color:var(--wine);margin:0}.notice{max-width:620px;margin:20px auto 0;padding:15px;background:#efe2da;border-left:2px solid var(--wine);font-size:13px;line-height:1.6}.notice button{background:none;border:0;text-decoration:underline;min-height:44px;margin-left:8px}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
dialog{border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:32px;width:min(620px,calc(100% - 32px));max-height:85svh;overflow:auto;box-shadow:0 20px 90px #38292322}dialog::backdrop{background:#29201b66;backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-heading .eyebrow{margin:0}.close-button{background:none;border:0;font:26px var(--sans);width:44px;height:44px;margin-top:-14px;margin-right:-14px}.dialog-description{font-size:13px;line-height:1.7;color:var(--muted);margin:14px 0 24px}.history-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:7px;list-style:none;padding:0;margin:24px 0}.history-grid li{border:1px solid var(--line);aspect-ratio:1;display:flex;align-items:center;justify-content:center;font:23px var(--serif)}.history-grid li.last{background:var(--wine);border-color:var(--wine);color:var(--paper)}#history-empty{font:italic 21px/1.5 var(--serif);padding:32px 0}.dialog-foot{display:flex;justify-content:space-between;gap:12px;font-size:10px;line-height:1.6;color:var(--muted);border-top:1px solid var(--line);padding-top:16px}.reset-dialog{max-width:470px;padding:36px}.reset-actions{display:flex;flex-direction:column-reverse;gap:10px}.reset-actions button{min-height:52px;padding:12px;font-size:12px}.confirm-button{border:1px solid var(--wine);background:var(--wine);color:var(--paper)}.cancel-button{border:1px solid var(--line);background:transparent}
@media(min-width:1200px) and (min-height:950px){.introduction{padding-top:52px}.game-stage{margin-top:42px}.result-art{height:300px}.number{font-size:266px}.number.is-empty{font-size:240px}.illustration{width:200px}.illustration img{height:190px}.game-controls{margin-top:22px}.save-status{margin-bottom:44px}}
@media(max-width:640px){.page-shell{padding:0 24px}.masthead{height:86px}.wordmark{font-size:27px;letter-spacing:4px}.wordmark span{font-size:8px;letter-spacing:3px}.masthead-note{font-size:12px}.introduction{padding-top:30px}.eyebrow{font-size:8px;letter-spacing:1.8px;margin-bottom:14px}h1{font-size:40px;letter-spacing:-1.9px}.intro-copy{font-size:11px;margin-top:11px}.game-stage{margin-top:27px}.stage-meta{font-size:7px;letter-spacing:1.1px;padding-top:14px}.result-art{height:220px;gap:7px}.number-area{min-width:180px}.number{font-size:176px;letter-spacing:-11px;padding-right:11px}.number.is-empty{font-size:168px}.number-caption{font-size:6px;letter-spacing:1.2px;margin-top:13px}.illustration{width:124px}.illustration img{height:124px}.illustration figcaption{font-size:6px;letter-spacing:1.1px}.result-copy{min-height:79px}h2{font-size:26px}.result-copy p{font-size:10px;max-width:300px;margin:10px auto 0}.game-controls{margin-top:5px}.draw-button{min-height:64px}.save-status{font-size:9px;margin:14px 0 24px}.footer{flex-wrap:wrap;gap:0 12px;min-height:65px;font-size:7px;letter-spacing:1px}.footer-edition{display:none}.motion-option{font-size:9px}.history-grid{grid-template-columns:repeat(6,1fr);gap:6px}.history-grid li{font-size:22px}dialog{padding:24px}.dialog-foot{font-size:9px}.reset-dialog{padding:28px}}
@media(max-width:360px){.page-shell{padding:0 18px}h1{font-size:35px}.number-area{min-width:160px}.number{font-size:156px}.number.is-empty{font-size:150px}.illustration{width:105px}.illustration img{height:110px}.result-art{height:204px}.footer>span{font-size:6px}.motion-option{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html[data-reduced-motion=true] *,html[data-reduced-motion=true] *::before,html[data-reduced-motion=true] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
