@font-face{font-family:BreakfastHand;src:url('./assets/breakfast-hand.woff2') format('woff2');font-display:swap}
:root{--paper:#f5f1e7;--ink:#34312c;--accent:#ad6a37;font-family:BreakfastHand,"Yu Mincho",serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overscroll-behavior:none}body{background:var(--paper) url('./assets/paper.jpg') center/640px repeat;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button:disabled{cursor:default;opacity:.38}button,img{-webkit-user-select:none;user-select:none}img{-webkit-user-drag:none}button:active{transform:translateY(1px)}[hidden]{display:none!important}.paper{width:min(100%,720px);height:100dvh;min-height:560px;margin:auto;padding:12px 46px 26px;display:flex;flex-direction:column;align-items:center;overflow:hidden}header{width:100%;text-align:right;height:44px;flex-shrink:0}.text-button{font-size:23px;padding:4px 7px 7px;min-height:42px;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:8px}.text-button:hover{color:var(--accent)}h1{font-size:clamp(24px,4vw,39px);font-weight:400;line-height:1.5;letter-spacing:.03em;margin:22px 0 18px;text-align:center;transform:rotate(-.45deg);white-space:nowrap}.scene{position:relative;width:100%;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding-right:68px}.toast{position:relative;width:100%;height:100%;max-height:420px;display:flex;align-items:center;justify-content:center;border:0;transform:rotate(-2deg)}.toast img{width:100%;height:100%;object-fit:contain;pointer-events:none;mix-blend-mode:multiply}.toast:focus-visible{outline-offset:-10px;border-radius:35%}.toast:hover img{filter:brightness(1.025)}.toast.picked{animation:toast-tap .24s ease}.switches{position:absolute;right:2px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:17px}.arrow{border:1.5px solid #6c655b;border-radius:5px 8px 4px 6px;font-size:39px;width:55px;height:55px;line-height:1;transform:rotate(.8deg);box-shadow:1px 1px 0 #6c655b55}.arrow:hover{background:#9e8c7110}.arrow:active{transform:rotate(.8deg) translateY(1px)}#sense-name{font-size:27px;line-height:1.4;margin:0;letter-spacing:.06em;min-width:3em;text-align:center}.choices{display:flex;align-items:center;justify-content:center;gap:27px;min-height:66px;margin-top:15px;flex-shrink:0}.choices.concealed{visibility:hidden;pointer-events:none}.choice-side{display:flex;gap:12px;align-items:center}.or{font-size:33px;line-height:1;transform:rotate(1deg)}.choice-dot{width:36px;height:42px;display:grid;place-items:center;position:relative;isolation:isolate}.choice-dot::before{content:"";width:27px;height:31px;border-radius:49% 45% 48% 46%;background:#38342f url('./assets/paper.jpg') center/80px;background-blend-mode:multiply;transform:rotate(-8deg);box-shadow:inset 0 0 2px #0003}.choice-dot:nth-child(2)::before{transform:rotate(9deg)}.choice-dot:nth-child(3)::before{transform:rotate(-4deg)}.choice-dot:hover::before{background-color:var(--accent)}.choice-dot.flash::before{animation:dot-tap .23s ease}.input{min-height:61px;max-width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:13px;flex-shrink:0;margin:16px 0 23px}.empty-dot,.entered-dot{display:inline-flex;align-items:center;justify-content:center;width:36px;height:38px;border:1.3px solid #746b5c;border-radius:49% 47% 52% 45%;transform:rotate(-3deg)}.empty-dot:nth-child(2n),.entered-dot:nth-child(2n){transform:rotate(4deg)}.entered-dot::before{content:"";width:7px;height:8px;background:#453f35;border-radius:45% 48% 49% 47%}.entered-dot:last-of-type::before{animation:dot-tap .22s ease}footer{display:flex;align-items:center;justify-content:center;gap:49px;margin-bottom:2px;flex-shrink:0}.pencil-button{border:1.4px solid #6c655b;border-radius:7px 10px 8px 5px;padding:6px 27px 10px;min-height:48px;min-width:143px;font-size:27px;letter-spacing:.1em;box-shadow:1px 1px 0 #6c655b55;transform:rotate(-.5deg)}.pencil-button:hover{background:#ab825b0a}.pencil-button:active{transform:rotate(-.5deg) translateY(1px)}.input.wrong{animation:no-word .32s ease}dialog{font:inherit;color:inherit;background:var(--paper) url('./assets/paper.jpg') center/640px repeat;border:1px solid #9a8f7d;border-radius:3px 5px 3px 4px;width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:34px 26px 26px;box-shadow:0 15px 45px #43382925;overflow:auto}dialog::backdrop{background:#ece6da9c;backdrop-filter:blur(2px)}h2{font-size:29px;font-weight:400;line-height:1.6;text-align:center;margin:5px 0 18px}.dialog-close{position:absolute;right:12px;top:8px;font-size:31px;min-width:40px;min-height:40px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;font-size:22px;border-bottom:1px solid #8d806826}.setting-row:last-child{border:0}.setting-row button{font-size:21px}.restart-actions{display:flex;justify-content:center;gap:20px;margin-top:30px}.result-art{width:min(100%,330px);aspect-ratio:1;margin:auto;background-repeat:no-repeat;background-size:400% 400%;mix-blend-mode:multiply}.result-art.breakfast{background-size:contain;background-position:center}.result-art[role=img]{pointer-events:none}#result-reading{text-align:center;font-size:20px;margin:0 0 5px;color:#6a6053}#clear-message{font-size:24px;text-align:center;margin:10px 0}.other-meanings{display:flex;justify-content:center;align-items:center;gap:24px;margin:12px auto;font-size:20px}.other-meanings button{min-width:44px;min-height:42px;font-size:27px}.result-back{display:block;margin:16px auto 0;font-size:20px}.steam{position:absolute;top:13%;left:46%;display:none;gap:10px;pointer-events:none}.steam i{width:9px;height:35px;border-left:1px solid #8e786a;border-radius:50%;opacity:.5;animation:steam 2.2s ease-in-out infinite}.steam i:nth-child(2){animation-delay:.4s}.steam i:nth-child(3){animation-delay:.8s}.scene[data-sense=smell] .steam{display:flex}.bite{position:absolute;width:15%;height:20%;right:17%;top:29%;background:var(--paper) url('./assets/paper.jpg') center/640px;border-radius:50%;display:none;pointer-events:none}.scene[data-sense=taste] .bite{display:block}.scene[data-sense=hear] .toast.listening{animation:listen .5s ease-in-out}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@keyframes no-word{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}@keyframes toast-tap{50%{transform:rotate(-2deg) scale(.975)}}@keyframes dot-tap{50%{transform:scale(.75)}}@keyframes steam{50%{transform:translateY(-8px);opacity:.18}}@keyframes listen{50%{transform:rotate(-1deg)}}
@media(max-width:500px){.paper{padding:10px 22px max(20px,env(safe-area-inset-bottom));min-height:450px}header{height:35px}.text-button{font-size:21px;min-height:38px}h1{font-size:clamp(20px,5.7vw,28px);margin:23px 0 15px;letter-spacing:0}.scene{padding-right:53px}.switches{gap:15px;right:0}.arrow{width:43px;height:46px;font-size:31px}#sense-name{font-size:22px;min-width:3em}.choices{gap:22px;margin-top:4px;min-height:55px}.choice-side{gap:7px}.choice-dot{width:32px;height:39px}.choice-dot::before{width:24px;height:27px}.or{font-size:29px}.input{gap:10px;min-height:50px;margin:14px 0 22px}.empty-dot,.entered-dot{width:32px;height:34px}footer{gap:39px}.pencil-button{font-size:25px;min-height:47px;min-width:129px}dialog{padding:32px 22px 22px}h2{font-size:26px}.result-art{max-width:285px}.setting-row{font-size:20px}}
@media(max-height:650px){.paper{padding-bottom:14px}header{height:29px}h1{margin:12px 0 7px}.choices{margin-top:0;min-height:48px}.input{min-height:43px;margin:5px 0 14px}.scene{min-height:165px}.switches{gap:10px}.arrow{height:40px;width:40px;font-size:28px}#sense-name{font-size:21px}.result-art{max-width:230px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.credits-link{text-align:right;margin:19px 0 0;font-size:14px}.credits-link a{color:#7b7163;text-decoration-thickness:1px;text-underline-offset:4px}
.result-art:not(.breakfast){clip-path:inset(4%)}
#result-heading.discovery{font-size:23px;line-height:1.8;margin:5px auto 14px;max-width:18em;overflow-wrap:anywhere;text-wrap:balance}
@media(max-width:500px){#result-heading.discovery{font-size:20px;line-height:1.8}}
html,body{height:100%;overflow:hidden}body{position:fixed;inset:0;width:100%}.paper{height:100svh;min-height:0;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom));position:relative}.scene{min-height:0}.input{max-height:17svh;gap:clamp(5px,1.8svh,13px)}.input .empty-dot,.input .entered-dot{width:clamp(16px,5.5vw,36px);height:clamp(17px,5.9vw,38px)}.scene .toast{max-height:43svh}.result-image{display:block;width:min(100%,300px);height:min(300px,39svh);object-fit:contain;margin:0 auto;mix-blend-mode:multiply}.share-button{display:block;background:#292722;color:white;padding:12px 23px;border-radius:5px;font-size:20px;margin:16px auto 0;min-height:48px}.settings-links{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:24px}.settings-links a{color:inherit;text-decoration:none;font-size:19px}.settings-links small{display:block;font-size:12px;line-height:1.8;margin-top:8px;color:#766c5d}.settings-note{font-size:12px;line-height:1.8;border-top:1px solid #8d806826;margin:20px 0 0;padding-top:14px;color:#766c5d}#volume{width:48%;accent-color:#77624d;touch-action:none}#record-values{margin:20px 0}#record-values>div{display:flex;justify-content:space-between;border-bottom:1px solid #8d806826;padding:14px 0;gap:15px}#record-values dd{margin:0;font-size:25px}#records-message{text-align:center;line-height:1.8;font-size:18px}.connection-message{position:absolute;bottom:2px;margin:0;font-size:12px;max-width:90%;text-align:center;color:#8b4b37}.choices[inert]{pointer-events:none}button:disabled{pointer-events:none}
@media(max-height:650px){.paper{padding-bottom:max(12px,env(safe-area-inset-bottom))}.scene{min-height:0}h1{font-size:clamp(18px,4.5vw,30px)}.choices{min-height:42px}.input{min-height:36px;margin:4px 0 10px}.result-image{height:31svh}header{height:28px}}
@media(max-height:430px){.paper{padding:4px 20px 7px}header{height:22px}h1{font-size:18px;margin:2px 0}.text-button{font-size:17px;min-height:28px}.choices{min-height:32px}.choice-dot{height:30px}.choice-dot::before{height:20px;width:19px}.or{font-size:22px}.input{min-height:27px;margin:3px 0;gap:7px}.input .empty-dot,.input .entered-dot{width:24px;height:25px}.pencil-button{font-size:19px;min-height:31px;padding:2px 20px 5px}.switches{gap:5px}.arrow{width:32px;height:31px;font-size:25px}#sense-name{font-size:18px}.result-image{height:28svh}}
.input.dense{gap:6px}.input.dense .entered-dot{width:20px;height:21px}.input.dense .empty-dot{width:20px;height:21px}
.choice-dot.small-dot::before,.entered-dot.small-dot{scale:.62}
#sound{min-height:44px;min-width:52px}
header{display:flex;align-items:center;justify-content:space-between;gap:14px;height:46px}.game-title{margin:0;font-size:30px;line-height:1;letter-spacing:.035em;text-align:left;white-space:nowrap}.header-actions{display:flex;align-items:center;gap:18px}.header-actions .text-button{font-size:19px;white-space:nowrap}.prompt{font-size:clamp(20px,4vw,32px);font-weight:400;line-height:1.5;letter-spacing:.03em;margin:22px 0 18px;text-align:center;transform:rotate(-.45deg);white-space:nowrap}
@media(max-width:500px){header{height:37px;gap:8px}.game-title{font-size:26px}.header-actions{gap:9px}.header-actions .text-button{font-size:16px;padding-left:3px;padding-right:3px}.prompt{font-size:clamp(18px,5.7vw,25px);margin:23px 0 15px;letter-spacing:0}}
@media(max-height:650px){.prompt{margin:12px 0 7px}.game-title{font-size:25px}}
@media(max-height:430px){header{height:26px}.game-title{font-size:21px}.header-actions .text-button{font-size:15px}.prompt{font-size:18px;margin:2px 0}}
.paper{height:min(100svh,var(--visible-height,100svh))}
.share-button{width:fit-content;text-align:center;text-decoration:none;touch-action:manipulation}
dialog{max-height:calc(min(100svh,var(--visible-height,100svh)) - 28px)}
@media(max-width:600px){.paper{padding-bottom:max(64px,calc(env(safe-area-inset-bottom) + 32px))}}
html[data-compact="true"] .prompt{margin:8px 0 5px}
html[data-compact="true"] .choices{margin-top:0;min-height:40px}
html[data-compact="true"] .input{min-height:34px;margin:5px 0 10px}
html[data-short="true"] .paper{padding-top:4px;padding-bottom:max(42px,env(safe-area-inset-bottom))}
html[data-short="true"] .prompt{font-size:18px;margin:2px 0}
html[data-short="true"] .choices{min-height:30px}
html[data-short="true"] .input{min-height:27px;margin:3px 0}
html[data-short="true"] .pencil-button{font-size:19px;min-height:32px;padding:2px 20px 5px}
