*{box-sizing:border-box;margin:0;padding:0}html,body{color:#c9c2a8;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none;background:#000;width:100%;height:100%;font-family:"Press Start 2P",monospace;overflow:hidden}canvas#game{width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges;display:block;position:fixed;top:0;bottom:0;left:0;right:0}.hidden{display:none!important}#menu{z-index:20;text-align:center;background:radial-gradient(#14100cbf,#000 75%);flex-direction:column;justify-content:center;align-items:center;gap:22px;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}#menu h1{color:#d8cfa8;letter-spacing:6px;text-shadow:4px 4px #3a1010;font-size:clamp(28px,7vw,64px)}#menu p{opacity:.8;white-space:pre-line;max-width:560px;font-size:10px;line-height:1.9}#menu button,#touch-buttons button{color:#d8cfa8;cursor:pointer;background:#16120e;border:3px solid #5b4b36;padding:12px 22px;font-family:inherit;font-size:12px}#menu button:hover{background:#2a1f15}#lang{gap:10px;display:flex}#lang button{opacity:.55;padding:8px 12px;font-size:10px}#lang button.active{opacity:1;border-color:#a88d5c}#rotate{color:#b05050;display:none}@media (orientation:portrait) and (pointer:coarse){#rotate{display:block}}#hud{pointer-events:none;z-index:11;position:fixed;top:0;bottom:0;left:0;right:0}#clock{color:#8a2f2f;opacity:.85;font-size:10px;position:absolute;top:12px;left:14px}#crosshair{opacity:.6;background:#c9c2a8;width:4px;height:4px;margin:-2px 0 0 -2px;position:absolute;top:50%;left:50%}#prompt{text-align:center;text-shadow:2px 2px #000;font-size:11px;position:absolute;top:58%;left:0;right:0}#message{text-align:center;color:#e0d6b0;text-shadow:2px 2px #000;opacity:0;font-size:11px;transition:opacity .4s;position:absolute;bottom:18%;left:0;right:0}#message.show{opacity:1}#stamina{border:2px solid #3d3326;width:120px;height:6px;margin-left:-60px;transition:opacity .5s;position:absolute;bottom:22px;left:50%}#stamina-fill{background:#8c7a55;width:100%;height:100%}#fps{opacity:.6;font-size:9px;position:absolute;top:12px;right:14px}#touch{z-index:10;position:fixed;top:0;bottom:0;left:0;right:0}#stick-zone{width:45%;position:absolute;top:0;bottom:0;left:0}#look-zone{width:55%;position:absolute;top:0;bottom:0;right:0}#stick-base{border:3px solid #c8bea040;border-radius:50%;width:120px;height:120px;display:none;position:absolute;bottom:40px;left:40px}#stick-knob{background:#c8bea04d;border-radius:50%;width:50px;height:50px;position:absolute;top:35px;left:35px}#touch-buttons{flex-direction:column;align-items:flex-end;gap:10px;display:flex;position:absolute;bottom:18px;right:18px}#touch-buttons button{opacity:.7;touch-action:none;min-width:96px;padding:14px 12px;font-size:9px}#touch-buttons button.on{opacity:1;border-color:#c8a860}#btn-use.ready{opacity:1;border-color:#e0d6b0}#subtitle{text-align:center;color:#d8b0a0;text-shadow:2px 2px #000;font-size:11px;line-height:1.7;position:absolute;bottom:30%;left:8%;right:8%}#inventory{pointer-events:auto;gap:6px;display:flex;position:absolute;bottom:40px;left:50%;transform:translate(-50%)}#inventory .slot{width:40px;height:40px;image-rendering:pixelated;background:#0a08068c 50%/32px 32px no-repeat;border:2px solid #3d3326}#inventory .slot.sel{border-color:#c8a860}#inventory .slot:empty:not([style*=background-image]){opacity:.5}#item-name{white-space:nowrap;opacity:.8;font-size:8px;position:absolute;top:-18px;left:50%;transform:translate(-50%)}#stamina{bottom:92px}#note{z-index:15;background:#000000b3;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}#note-paper{color:#2a2218;background:#cfc6a8;width:100%;max-width:520px;padding:26px 24px;transform:rotate(-1deg);box-shadow:6px 6px #000}#note-text{white-space:pre-line;margin-bottom:18px;font-size:11px;line-height:2}#note-close{color:#cfc6a8;cursor:pointer;background:#2a2218;border:none;padding:10px 16px;font-family:inherit;font-size:10px}#hide-overlay{z-index:4;pointer-events:none;background:linear-gradient(90deg,#000 0 44%,#00000026 47% 53%,#000 56% 100%);position:fixed;top:0;bottom:0;left:0;right:0}#scare{z-index:25;image-rendering:pixelated;background:#3a0000 50%/contain no-repeat;position:fixed;top:0;bottom:0;left:0;right:0}#end{z-index:22;text-align:center;background:#000;flex-direction:column;justify-content:center;align-items:center;gap:24px;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}#end h2{color:#b03030;letter-spacing:4px;font-size:clamp(20px,5vw,40px)}#end p{white-space:pre-line;opacity:.85;max-width:560px;font-size:11px;line-height:2}#end button{color:#d8cfa8;cursor:pointer;background:#16120e;border:3px solid #5b4b36;padding:12px 22px;font-family:inherit;font-size:12px}@media (pointer:coarse){#inventory{top:10px;bottom:auto}#inventory .slot{width:36px;height:36px}#item-name{top:auto;bottom:-16px}#stamina{bottom:16px}}#settings{z-index:21;background:#000;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}#settings h2{color:#d8cfa8;margin-bottom:8px;font-size:18px}#settings .vol{grid-template-columns:150px minmax(120px,260px) 44px;align-items:center;gap:14px;width:min(100%,480px);font-size:10px;display:grid}#settings .vol b{text-align:right;opacity:.8;font-weight:400}#settings input[type=range]{-webkit-appearance:none;appearance:none;background:#2a2219;border:2px solid #5b4b36;outline:none;width:100%;height:8px}#settings input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;cursor:pointer;background:#c8a860;border:2px solid #16120e;width:14px;height:20px}#settings input[type=range]::-moz-range-thumb{cursor:pointer;background:#c8a860;border:2px solid #16120e;border-radius:0;width:14px;height:20px}#settings button{color:#d8cfa8;cursor:pointer;background:#16120e;border:3px solid #5b4b36;margin-top:10px;padding:12px 22px;font-family:inherit;font-size:12px}@media (max-width:520px){#settings .vol{grid-template-columns:1fr;gap:6px}#settings .vol b{text-align:left}}#btn-pause{z-index:12;color:#d8cfa8;background:#16120eb3;border:2px solid #5b4b36;padding:8px 10px;font-family:inherit;font-size:10px;position:absolute;top:10px;right:12px}
