@font-face{font-family:Montserrat;src:url('assets/fonts/Montserrat.ttf') format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:'Cormorant Garamond';src:url('assets/fonts/CormorantGaramond-Italic.ttf') format('truetype');font-style:italic;font-weight:300 700;font-display:swap}
:root{--paper:#fff;--ink:#111;--wine:#111;--muted:#666;--line:#d9d9d9;--soft:#f3f3f3;--sans:Montserrat,Arial,sans-serif;--serif:'Cormorant Garamond',Georgia,serif}
.page-shell{max-width:1600px;padding:0 64px}.masthead{height:100px}.wordmark{font-family:var(--sans);font-weight:500;font-size:29px;letter-spacing:7px}.wordmark span{font-family:var(--sans);font-size:8px}.masthead-note{font-size:19px;color:#111}
main{max-width:1050px;display:grid;grid-template-columns:1fr 340px;column-gap:80px;align-content:center;padding:48px 0 38px}.introduction{grid-column:1/-1;text-align:left;padding:0;display:grid;grid-template-columns:1fr 340px;column-gap:80px}.introduction .eyebrow{grid-column:1/-1;font-size:9px;letter-spacing:3px;margin-bottom:22px}h1{font:400 clamp(40px,5.7vw,76px)/.96 var(--sans);letter-spacing:-4px;text-transform:uppercase}h1 em{font-style:normal;font-weight:200;display:block}.intro-copy{align-self:end;font-size:11px;line-height:1.9;margin:0 0 4px;max-width:210px}
.game-stage{grid-column:1;margin:34px 0 0;width:100%;max-width:none}.stage-meta{font-size:8px;letter-spacing:1.6px;padding-top:17px}.result-art{height:280px;gap:18px;justify-content:space-between}.number-area{min-width:0;flex:1}.number,.number.is-empty{font:200 230px/1 var(--sans);letter-spacing:-17px;padding-right:17px;color:#111}.number-caption{font-size:7px;letter-spacing:2px;margin-top:6px}.illustration{width:125px;transform:none;margin-top:26px}.illustration img{height:135px;filter:grayscale(1) brightness(.45)}.illustration figcaption{font-size:6px;line-height:1.8;letter-spacing:1.2px}.result-copy{text-align:left;min-height:70px;margin-top:16px}h2{font:400 24px/1.3 var(--sans);letter-spacing:-.7px}h2 em{font-style:normal}.result-copy p{font-size:9px;line-height:1.7;margin-top:10px}
.game-controls{grid-column:2;grid-row:2;align-self:center;width:100%;max-width:none;margin:45px 0 0;padding:28px;background:#111;color:#fff}.draw-button{min-height:110px;border:0;border-bottom:1px solid #555;background:#111;justify-content:flex-start;font-size:24px;font-weight:300;letter-spacing:2px}.draw-button:hover:not(:disabled){background:#242424}.button-spark{right:0;font-size:33px}.draw-button:disabled{background:#111;border-color:#555;color:#aaa;font-size:16px;letter-spacing:1px}.draw-button:disabled .button-spark{display:none}.progress-line,.total,.progress-line strong{color:#ccc;font-size:10px}.progress-track{background:#444}.progress-track span{background:#fff}.secondary-actions{gap:16px;flex-direction:column;align-items:flex-start;margin-top:14px}.text-button{color:#fff;font-size:10px;min-height:40px}.game-controls button:focus-visible{outline-color:#fff}.save-status{grid-column:2;grid-row:3;font-size:9px;text-align:left;margin:0;line-height:1.8}.save-status:before{background:#111}.footer{font-size:8px}.notice{grid-column:1/-1;width:100%;background:#eee}.history-grid li{font:300 22px var(--sans)}#history-empty{font:300 18px/1.6 var(--sans)}dialog::backdrop{background:#0008}dialog{box-shadow:0 20px 90px #0002}
@media(min-width:1200px) and (min-height:950px){.introduction{padding-top:0}.game-stage{margin-top:44px}.result-art{height:330px}.number,.number.is-empty{font-size:270px}.illustration{width:145px}.illustration img{height:160px}.game-controls{margin-top:45px}.save-status{margin-bottom:0}}
@media(max-width:1000px) and (min-width:641px){.page-shell{padding:0 36px}main,.introduction{grid-template-columns:1fr 280px;column-gap:30px}h1{font-size:52px}.number,.number.is-empty{font-size:180px}.illustration{width:95px}.game-controls{padding:22px}}
@media(max-width:640px){.page-shell{padding:0 24px}.masthead{height:84px}.wordmark{font-size:23px;letter-spacing:5px}.wordmark span{font-size:7px}.masthead-note{font-size:16px}main{display:block;padding:30px 0 24px}.introduction{display:block;padding:0}.introduction .eyebrow{font-size:7px;letter-spacing:2.2px;margin-bottom:18px}h1{font-size:47px;letter-spacing:-2.6px;line-height:1}.intro-copy{max-width:none;font-size:9px;margin:15px 0 0}.game-stage{margin-top:24px}.stage-meta{font-size:6px;letter-spacing:1px;padding-top:12px}.result-art{height:210px;gap:8px}.number,.number.is-empty{font-size:174px;letter-spacing:-12px;padding-right:12px}.number-caption{font-size:6px;letter-spacing:1.2px;margin-top:1px}.illustration{width:94px;margin-top:16px}.illustration img{height:100px}.illustration figcaption{font-size:5px;letter-spacing:1px}.result-copy{margin-top:9px;min-height:63px}h2{font-size:20px}.result-copy p{font-size:8px;max-width:none;margin:8px 0 0}.game-controls{margin-top:9px;padding:15px 21px}.draw-button{min-height:65px;font-size:21px}.button-spark{font-size:27px}.progress-line{margin-top:14px;font-size:9px}.progress-track{margin-top:8px}.secondary-actions{flex-direction:row;justify-content:space-between;gap:8px;margin-top:6px}.text-button{font-size:8px;gap:6px;min-height:40px}.text-button svg{width:12px;height:12px}.save-status{font-size:8px;text-align:center;margin:14px 0 0}.footer{margin-top:0;min-height:58px;font-size:6px}.motion-option{font-size:8px}}
@media(max-width:360px){.page-shell{padding:0 18px}h1{font-size:41px}.number,.number.is-empty{font-size:148px;letter-spacing:-10px;padding-right:10px}.result-art{height:185px}.illustration{width:80px}.illustration img{height:90px}.game-controls{padding:12px 16px}.text-button{font-size:7px}.result-copy p{font-size:7px}.footer>span{font-size:5px}}
/* Clear hierarchy and tactile controls, retaining the monochrome editorial identity. */
.game-controls{padding:26px;border-radius:4px;box-shadow:0 14px 36px #00000012}
.draw-button{min-height:108px;background:#fff;color:#111;border:1px solid #fff;border-radius:3px;padding:20px 24px;justify-content:space-between;font-size:30px;font-weight:600;letter-spacing:2px;box-shadow:0 5px 0 #bdbdbd;transition:transform .15s,box-shadow .15s,background .15s}
.button-spark{position:static;display:flex;align-items:center;justify-content:center;flex:0 0 42px;height:42px;border:1px solid #ccc;border-radius:50%;font-size:25px;line-height:1}
.draw-button:hover:not(:disabled){background:#f0f0f0;transform:translateY(-2px);box-shadow:0 7px 0 #bdbdbd}
.draw-button:active:not(:disabled){transform:translateY(4px);box-shadow:0 1px 0 #bdbdbd}
.draw-button:disabled{background:#292929;color:#ccc;border:1px solid #555;box-shadow:none;justify-content:center;font-size:16px;line-height:1.6;text-align:center}
.progress-line{margin-top:30px;color:#ddd;font-size:12px}.progress-line strong{font-size:15px;font-weight:600;color:#fff}.total{font-size:12px}.progress-track{margin-top:12px;height:3px}
.secondary-actions{display:grid;grid-template-columns:1fr;gap:12px;margin-top:24px;align-items:stretch}
.text-button{display:flex;justify-content:center;align-items:center;width:100%;min-height:54px;padding:12px 15px;gap:12px;border:1px solid #777;border-radius:3px;background:#252525;color:#fff;font-size:13px;font-weight:500;line-height:1.5;transition:background .15s,border-color .15s,transform .15s}
.text-button:hover{background:#3b3b3b;border-color:#fff;text-decoration:none}.text-button:active{transform:translateY(1px)}.text-button svg{width:18px;height:18px;flex-shrink:0}.text-button span{font-size:21px}.game-controls button:focus-visible{outline:3px solid #fff;outline-offset:5px}
.save-status{font-size:11px;line-height:1.8;margin-top:14px}.result-copy p{font-size:11px}.intro-copy{font-size:12px}.motion-option{font-size:11px}.motion-option input{width:16px;height:16px}.stage-meta{font-size:9px}.number-caption{font-size:8px}.cancel-button,.confirm-button{border-radius:3px;font-weight:500}.close-button{border:1px solid var(--line);border-radius:3px;margin-bottom:12px}
@media(max-width:1000px) and (min-width:641px){.game-controls{padding:20px}.draw-button{font-size:25px;padding:18px}.button-spark{flex-basis:36px;height:36px}.text-button{font-size:12px}}
@media(max-width:640px){main{padding-top:24px}.intro-copy{font-size:11px;margin-top:12px}.game-stage{margin-top:20px}.result-art{height:193px}.stage-meta{font-size:7px}.result-copy{min-height:66px;margin-top:7px}.result-copy p{font-size:10px;line-height:1.6}.game-controls{padding:20px;margin-top:10px}.draw-button{min-height:86px;font-size:27px;padding:16px 20px}.button-spark{flex-basis:36px;height:36px;font-size:23px}.progress-line{margin-top:25px;font-size:11px}.secondary-actions{grid-template-columns:1fr 1fr;gap:10px;margin-top:19px}.text-button{flex-direction:column;gap:7px;min-height:80px;padding:12px 5px;font-size:11px}.text-button span{line-height:18px;order:-1}.text-button svg{width:18px;height:18px}.save-status{font-size:10px;margin-top:18px}.motion-option{font-size:10px}.footer{min-height:66px}.footer>span{font-size:6px}.number-caption{font-size:7px}}
@media(max-width:360px){.game-controls{padding:16px}.draw-button{font-size:25px;padding:14px 18px}.secondary-actions{gap:8px}.text-button{font-size:10px}.result-art{height:175px}.result-copy p{font-size:9px}.save-status{font-size:9px}.stage-meta{font-size:6px}}
