:root{font-family:'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;color:#202824;background:#edf3f0;font-synthesis:none;-webkit-tap-highlight-color:transparent;color-scheme:light}*{box-sizing:border-box}html,body{margin:0;height:100%;width:100%;overscroll-behavior:none}body{overflow:hidden}button,.button{font:inherit;font-size:16px;font-weight:700;line-height:1.4;display:flex;align-items:center;justify-content:center;text-align:center;min-height:50px;padding:11px 16px;border:1px solid #255d49;background:#255d49;color:#fff;border-radius:12px;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 3px 0 #164430;transition:background .15s,transform .1s}button:active,.button:active{transform:none;box-shadow:0 1px 0 #164430}button:focus-visible,.button:focus-visible{outline:3px solid #c99544;outline-offset:3px}button:disabled{background:#d8e1dc;color:#8a9c91;border-color:#d8e1dc;box-shadow:none;cursor:default}.secondary{background:#f7faf8;border-color:#b8cdc1;color:#395f4b;box-shadow:none;font-weight:600}.secondary:active{box-shadow:none}.secondary:disabled{background:#f0f5f2;color:#a4b0a9;border-color:#dce5df}[hidden]{display:none!important}#app{width:min(100%,620px);height:100dvh;margin:auto;padding:env(safe-area-inset-top) 18px env(safe-area-inset-bottom);overflow:hidden}#title-screen{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding-bottom:5vh}#title-screen h1{font-size:clamp(29px,8vw,46px);font-weight:800;line-height:1.65;letter-spacing:.025em;margin:0 0 25px}#title-screen p{font-size:18px;line-height:1.7;margin:0 0 43px;color:#52675b}#begin{width:min(100%,280px);font-size:21px;min-height:58px}#game{height:100%;display:flex;flex-direction:column;min-height:0}header{flex:none;text-align:center;padding:17px 0 11px;font-size:15px;font-weight:600;color:#6d8175;letter-spacing:.02em}#instruction{flex:none;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px 0;font-size:17px;line-height:1.65;font-weight:600}#instruction .lead{font-size:16px;font-weight:400;line-height:1.4}#instruction .verdict{font-size:clamp(21px,5.8vw,30px);font-weight:500}#instruction .verdict strong{font-weight:800}#paper-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:10px 4px 16px}#paper{flex:none;background:#fff;box-shadow:0 3px 16px #294a3312,0 0 0 1px #dce6df;border-radius:3px;overflow:hidden}#drawing{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.controls{width:min(100%,500px);align-self:center;flex:none;display:flex;flex-direction:column;gap:10px;padding:3px 0 19px}#outline-controls{flex-direction:row}#outline-controls>button{flex:1}.button-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.button-row :is(button,.button){font-size:16px;min-height:44px;padding:8px}#error{font-size:15px;text-align:center;margin:0 0 8px;line-height:1.5;color:#a44737;flex:none}#app[data-screen=result] #drawing,#app[data-screen=reveal] #drawing{cursor:default}#app[data-screen=result] #instruction{animation:appear .3s ease both}@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media(max-height:650px){header{padding:10px 0 5px;font-size:14px}#instruction{min-height:65px;font-size:16px;padding:5px 0}.controls{gap:8px;padding-bottom:12px}button,.button{min-height:44px;padding:9px 12px}.button-row :is(button,.button){min-height:39px;padding:6px}#paper-stage{padding-top:6px;padding-bottom:10px}#title-screen h1{font-size:32px;margin-bottom:18px}#title-screen p{margin-bottom:30px}#error{font-size:14px;margin-bottom:6px}}
@media(orientation:landscape) and (max-height:510px){#app{max-width:980px;padding:env(safe-area-inset-top) 18px env(safe-area-inset-bottom)}#game{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:35px 1fr auto;gap:0 18px}header{grid-column:2;grid-row:1;padding:8px 0;font-size:13px}#instruction{grid-column:2;grid-row:2;align-self:center;min-height:65px}#paper-stage{grid-column:1;grid-row:1/4;height:100%;padding:12px 5px}.controls{grid-column:2;grid-row:3;width:100%;padding-bottom:15px}#error{grid-column:2;grid-row:2;align-self:end;font-size:13px}#title-screen{padding-bottom:0}#title-screen h1{font-size:29px;line-height:1.5;margin:0 0 12px}#title-screen p{font-size:16px;margin:0 0 20px}#begin{min-height:45px;font-size:18px}}
@media(prefers-reduced-motion:reduce){button{transition:none}#app[data-screen=result] #instruction{animation:none}}

/* Keep the document fixed even while Safari's visual viewport changes. */
html,body{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;touch-action:none;overscroll-behavior:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#app{width:min(var(--viewport-width,100vw),620px);height:var(--viewport-height,100dvh);max-height:100%;min-height:0}#game, #paper-stage{min-width:0}header{position:relative;min-height:52px;display:flex;justify-content:center;align-items:center;padding-right:44px;padding-left:4px;font-size:14px}header>span{white-space:nowrap}.icon-button{width:42px;height:42px;min-height:42px;padding:10px;position:absolute;right:0;top:4px;box-shadow:none;background:transparent;border-color:transparent;color:#65816f;touch-action:none}.icon-button:active,.button:active{box-shadow:none;background:#dce8df}.icon-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.sound-off{display:none}#sound[aria-pressed=false] .sound-off{display:block}#sound[aria-pressed=false] .sound-on{display:none}.button-row :is(button,.button){font-size:16px}#app[data-screen=reveal] #result-controls{visibility:hidden;pointer-events:none}#share-dialog{width:min(520px,calc(var(--viewport-width,100vw) - 24px));height:min(720px,calc(var(--viewport-height,100dvh) - 24px));max-height:calc(var(--viewport-height,100dvh) - 24px);padding:17px;border:1px solid #c4d7ca;border-radius:15px;background:#edf3f0;color:#202824;overflow:hidden}#share-dialog[open]{display:flex;flex-direction:column;gap:14px}#share-dialog:not([open]){display:none}#share-dialog::backdrop{background:#182e246e;backdrop-filter:blur(3px)}.share-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.share-heading h2{font-size:20px;margin:0}.share-heading button{min-height:42px;font-size:16px;padding:7px 13px}#share-preview{width:100%;height:0;flex:1;min-height:0;object-fit:contain}#share-dialog p{font-size:16px;line-height:1.5;margin:0;text-align:center;flex:none}#share-dialog .button-row{flex:none}@media(orientation:landscape) and (max-height:510px){#app{width:min(var(--viewport-width,100vw),980px)}header{min-height:35px;font-size:13px;padding-right:40px}.icon-button{top:0;width:36px;height:35px;min-height:35px;padding:7px}#share-dialog{padding:12px;gap:7px}#share-dialog[open]{gap:7px}#share-dialog p{font-size:14px}.share-heading h2{font-size:18px}}@media(max-width:350px){header{font-size:13px;padding-right:35px}.icon-button{width:35px;padding:7px}}

#title-screen{position:relative}#title-screen .audio-credit{position:absolute;bottom:10px;font-size:14px;font-weight:400;margin:0;color:#73867a}#title-screen .audio-credit a{color:inherit;text-underline-offset:3px}

a.button{text-decoration:none}a.button:not([href]){pointer-events:none}
