:root{font-family:system-ui,sans-serif;color:#24180f;background:#f7f0df}*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:grid;place-items:center}.shell{width:min(100%,1100px);padding:12px}.shell header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff8e9;border:3px solid #7a1f2e;padding:8px 14px;font-size:clamp(12px,2vw,20px)}header span{color:#7a1f2e}button{font:inherit;cursor:pointer;touch-action:none;border:3px solid #24180f;background:#7a1f2e;color:#fff;border-radius:8px;font-weight:800}button:focus-visible{outline:3px solid #e9b85c;outline-offset:3px}#pause{min-width:48px;height:42px}.game{position:relative;background:#8ccde0;border:3px solid #24180f}.game canvas{display:block;width:100%;height:auto;image-rendering:pixelated}.modal{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:#24180fbb;color:#fff8e9;padding:18px}.modal[hidden]{display:none}.modal h1{font-size:clamp(22px,5vw,48px);margin:0;color:#fff5cf}.modal p{max-width:38rem;line-height:1.4}.modal button{padding:12px 20px;background:#fff5cf;color:#24180f;margin:auto}.touch{display:flex;justify-content:space-between;gap:20px;padding:12px 2px}.cluster{display:flex;gap:10px}.touch button{min-width:68px;min-height:68px;padding:4px;background:#7a1f2e}.touch button:last-child{background:#687c3d}footer{text-align:center;color:#596653;font-size:14px}@media(max-width:600px){.shell{padding:3px}.touch button{min-width:64px;min-height:64px}.shell header{padding:4px 8px}footer{display:none}}@media(orientation:portrait)and (max-width:700px){.game{margin-top:15vh}}.story-shell .game{margin-top:0}.story-shell header{flex-wrap:wrap;gap:6px 12px}.story-score{font-variant-numeric:tabular-nums;font-size:.9em}.story-utilities{display:flex;gap:6px;margin-inline-start:auto}.story-utilities button{min-width:42px;min-height:42px}.story-shell button:disabled{opacity:.45;cursor:default}.story-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.story-actions button{min-height:44px;padding:7px 14px}.title-actions{padding:12px 4px}.rotate-hint{display:none}@media(orientation:portrait)and (any-pointer:coarse){.rotate-hint{display:block;margin:10px auto 0;text-align:center;font-size:15px;font-weight:700;color:#4a552c}}.story-shell[data-mode=levels] .story-touch,.story-shell[data-mode=levels] .story-dialog p:empty{display:none}.story-shell[data-mode=levels] .story-dialog{padding:8px}.story-shell[data-mode=levels] .story-dialog h1{font-size:clamp(18px,4vw,28px);margin-bottom:8px}.story-shell[data-mode=levels] .story-dialog .story-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.story-shell[data-mode=levels] .story-dialog button{width:100%;padding:4px 7px;font-size:clamp(12px,2vw,16px)}@media(orientation:landscape){.story-shell[data-mode=levels] .story-dialog .story-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.story-shell[data-mode=levels] .story-dialog button{line-height:1.14}}@media(max-width:380px){.story-shell[data-mode=levels] .story-dialog{inset:-15px 0}}.story-shell:not([data-mode=title]) .title-actions,.story-shell[data-mode=title] .story-touch{display:none}.story-tip{position:absolute;left:50%;top:4px;transform:translate(-50%);margin:0;width:max-content;max-width:95%;text-align:center;background:#fff5dc;color:#30261f;border:2px solid #7a1f2e;padding:4px 8px;font-size:clamp(10px,2vw,15px)}.story-tip[hidden]{display:none}.story-shell{width:min(1100px,100vw);padding:max(3px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(3px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}body:has(.story-shell){width:100%;touch-action:none;overscroll-behavior:none}.story-shell canvas,.story-shell button{user-select:none;-webkit-user-select:none}@media(orientation:landscape)and (max-height:540px){.story-shell{width:min(1100px,100vw,calc((100dvh - 136px)*1.7778 + 12px))}.story-touch{padding:4px 0}.story-shell footer{display:none}.story-dialog h1{font-size:clamp(18px,4.5vh,32px)}.story-dialog p{margin:.25em 0 .55em}}@media(orientation:landscape)and (pointer:coarse),(orientation:landscape)and (max-height:540px){body{overflow:hidden;background:#24180f}#app .shell{position:fixed;inset:0;width:100%;height:100dvh;padding:0;background:#24180f;touch-action:none;user-select:none;-webkit-user-select:none}.shell .game{position:absolute;inset:0;margin:0;border:0;background:transparent}.shell .game canvas{width:100%;height:100%;object-fit:contain}.shell header{position:absolute;z-index:2;top:env(safe-area-inset-top,0px);left:max(6px,env(safe-area-inset-left));right:max(6px,env(safe-area-inset-right));padding:2px 6px;border:0;background:transparent;color:#fff8e9;text-shadow:0 1px 3px #24180f,1px 0 2px #24180f;pointer-events:none}.shell header span,.shell header a{color:inherit}.shell header button,.shell header a{pointer-events:auto}.shell .touch,.shell .title-actions{position:absolute;z-index:1;bottom:max(6px,env(safe-area-inset-bottom));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));padding:0;pointer-events:none}.shell .touch button,.shell .title-actions button{pointer-events:auto}.shell .touch button{min-height:48px;min-width:52px;opacity:.85}.shell:has(.modal:not([hidden])) .touch,.shell footer{display:none}.shell .story-tip{top:calc(env(safe-area-inset-top) + 48px)}}.story-speech{position:absolute;z-index:1;pointer-events:none;max-width:min(215px,70%);padding:5px 9px;border:2px solid #433222;border-radius:9px;background:#fff5dc;color:#30261f;font-size:clamp(12px,1.6vw,15px);line-height:1.25}.story-speech strong{display:block;color:#7a1f2e;font-size:.82em}.story-speech:after{content:"";position:absolute;left:var(--tail);bottom:-6px;width:8px;height:8px;background:inherit;border:solid #433222;border-width:0 2px 2px 0;transform:rotate(45deg)}.story-speech.below:after{top:-6px;bottom:auto;transform:rotate(225deg)}.touch button[data-key=jump]{min-width:88px}.move-stick{appearance:none;-webkit-appearance:none;display:block;align-self:center;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;margin:0;width:clamp(116px,26vw,152px);height:54px;padding:3px;border:2px solid #483423;border-radius:32px;background:linear-gradient(90deg,transparent 49%,#f5e5ba88 49% 51%,transparent 51%),#594434e8}.move-stick::-webkit-slider-thumb{appearance:none;width:44px;height:44px;border-radius:50%;background:#718347;border:3px solid #fff3cf;box-shadow:0 2px 3px #24180f99}.move-stick::-moz-range-thumb{box-sizing:border-box;width:44px;height:44px;border-radius:50%;background:#718347;border:3px solid #fff3cf;box-shadow:0 2px 3px #24180f99}.move-stick:focus-visible{outline:3px solid #e9b85c;outline-offset:2px}@media(orientation:landscape)and (pointer:coarse){html{touch-action:none;overscroll-behavior:none}.move-stick{font-size:16px}#app[data-fit-viewport] .shell{inset:0 auto auto 0;width:var(--view-width);height:var(--view-height);transform-origin:top left;transform:translate(var(--view-x),var(--view-y)) scale(var(--view-scale))}}.story-shell[data-mode=ending] .story-touch,.story-shell[data-mode=celebrating] .story-touch,.story-shell[data-mode=homecoming] .story-touch,.story-shell[data-mode=credits] .story-touch,.story-shell[data-mode=intro] .story-touch,.story-shell[data-mode=intro] footer,.story-shell[data-mode=intro] #pause,.harvest-intro[hidden]{display:none}.level-curtain{position:absolute;inset:0;background:#000;z-index:4;pointer-events:none}.harvest-intro{position:absolute;inset:0;background:#000}.harvest-intro video{display:block;width:100%;height:100%;object-fit:contain}.credits-art:not([hidden]){position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.story-shell:is([data-mode=homecoming],[data-mode=credits]) :is(.story-score,#pause){visibility:hidden}.story-shell[data-mode=credits] .story-dialog p{white-space:pre-line}#skip-intro,.skip-film{position:absolute;right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));padding:4px 8px;min-height:26px;font-size:12px;line-height:16px;border:1px solid rgb(255 248 233 / .42);border-radius:5px;color:#fff8e9;background:#24180f9e;text-shadow:0 1px 2px #24180f}#skip-intro:after,.skip-film:after{content:"";position:absolute;inset:-9px}.homecoming canvas[hidden],.homecoming video[hidden]{display:none}.homecoming canvas{width:100%;height:100%;object-fit:contain}.homecoming{background:#24180f url(../story/scenery/credits-feast.webp) center / contain no-repeat}.retry-film{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:10px 16px}@font-face{font-family:"Press Start 2P";src:url(../fonts/PressStart2P-Regular.ttf) format("truetype");font-weight:400;font-display:swap}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.story-score:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:3px}.story-score .stat,#score{display:inline-flex;align-items:center;gap:4px;padding:5px 6px;border:1px solid #604b33;border-radius:5px;background:#fff3ddf5;box-shadow:inset 0 -2px #dfc99c;color:#34281f;text-shadow:none;white-space:nowrap;font:400 clamp(9px,1vw,12px)/1.4 "Press Start 2P",monospace}.stat b{font:inherit}.stat small{font:700 10px/1 system-ui,sans-serif;color:#634b38}.stat-heart{color:#8a3043;font:700 15px/1 system-ui,sans-serif}.stat-olive{width:15px;height:15px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAjUlEQVR4nGNkwAL+fz3/H5nPyG3ICGOzYFMsLWWNIcYI1cSES7FXrREYgwBIDGYrEy7FILCt+RyYfvrsKNxZjOiK/XKNGZDBpslnUTQxoiu2s5EDsw8deYRVExMDFoCsmAENYGjApxisAeQukFXIVuP1A0wCW/jDAHIooQCQJil+LhSMEevYNKEoQDMZADdYXTofZ8A8AAAAAElFTkSuQmCC) center/contain no-repeat;image-rendering:pixelated}.stat-clock{width:12px;height:12px;border:1.5px solid #6b553b;border-radius:50%;display:grid;place-items:center}.stat-clock:after{content:"";width:3px;height:4px;border:solid #6b553b;border-width:0 0 1.5px 1.5px;margin:-2px 0 0 2px}.shell .touch{align-items:flex-end}.shell .touch .cluster{align-items:center;gap:8px}.shell .touch button:not([hidden]){color:#392c23;background:linear-gradient(#fff6ddf5,#e7d6afe8);border:2px solid #513d2e;box-shadow:inset 0 0 0 2px #fffae8b3,inset 0 -5px #a990655c,0 2px #33271fd9;border-radius:50%;opacity:1;min-width:0;min-height:0;width:64px;height:64px;font:400 9px/1.4 "Press Start 2P",monospace;text-transform:uppercase}.shell .touch button[data-key=jump]{display:grid;align-content:center;justify-items:center;gap:3px;width:clamp(62px,18vmin,80px);height:clamp(62px,18vmin,80px)}.shell .touch button[data-key=jump]:before{content:"";width:18px;height:18px;background:#853346;-webkit-mask:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20%3e%3cpath%20d='M12%205v14'%20/%3e%3cpath%20d='m19%2012-7%207-7-7'%20/%3e%3c/svg%3e") center/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20%3e%3cpath%20d='M12%205v14'%20/%3e%3cpath%20d='m19%2012-7%207-7-7'%20/%3e%3c/svg%3e") center/contain no-repeat;transform:rotate(180deg)}.shell .touch #jar-action:not([hidden]){width:auto;max-width:clamp(90px,22vw,165px);min-height:46px;height:auto;border-radius:14px;padding:8px 10px;font:750 13px/1.1 system-ui,sans-serif;text-transform:none}.shell .touch button:active{transform:translateY(2px);box-shadow:inset 0 2px 4px #604b3399}.move-stick{height:56px;border:2px solid #513d2e;background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20%3e%3cpath%20d='m12%2019-7-7%207-7'%20/%3e%3cpath%20d='M19%2012H5'%20/%3e%3c/svg%3e") left 8px center/16px no-repeat,url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20%3e%3cpath%20d='M5%2012h14'%20/%3e%3cpath%20d='m12%205%207%207-7%207'%20/%3e%3c/svg%3e") right 8px center/16px no-repeat,linear-gradient(#edddbde8,#dac7a0e8);box-shadow:inset 0 2px 3px #6d573c55,0 2px #33271fd9}.move-stick::-webkit-slider-thumb{background:radial-gradient(circle at 40% 30%,#8ca452,#607a3a 68%);border:3px solid #fff2d3;box-shadow:0 0 0 1.5px #4a5c33,0 2px 2px #392b20aa,inset 0 -3px #485e32}.move-stick::-moz-range-thumb{background:radial-gradient(circle at 40% 30%,#8ca452,#607a3a 68%);border:3px solid #fff2d3;box-shadow:0 0 0 1.5px #4a5c33,0 2px 2px #392b20aa,inset 0 -3px #485e32}.story-utilities button,#pause{border:2px solid #523c2c;border-radius:12px;background:#7a293b;color:#fff3d9;min-width:44px;min-height:44px;box-shadow:inset 0 0 0 1px #dfb58f80,0 1px 1px #39291e}@media(orientation:landscape)and (pointer:fine)and (min-height:541px){#app .shell{width:min(100vw,1100px,calc((100dvh - 192px)*16/9));min-width:min(100vw,360px)}.shell:has(.modal:not([hidden])) .touch{display:none}}@media(orientation:portrait),(orientation:landscape)and (pointer:fine)and (max-height:620px){.story-shell[data-mode=levels] .story-dialog{position:fixed;inset:0;z-index:5;overflow:auto;align-content:safe center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#382e24f7;touch-action:pan-y}}@media(orientation:landscape)and (pointer:coarse){.shell header{flex-wrap:nowrap}.shell header .stat{color:#34281f}.shell .touch{bottom:max(10px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right))}.story-score .stat{padding:4px 5px}}@media(max-width:650px)and (orientation:landscape),(max-width:450px)and (orientation:portrait){.story-shell:has(.story-score:not([hidden])) header>b{display:none}}
