:root{color-scheme:dark;--bg:#171414;--panel:#242020;--edge:#493c35;--cream:#fff2d3;--muted:#b8a99b;--amber:#ffc569;--red:#ce4335;--safe-bottom:env(safe-area-inset-bottom,0px);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:var(--bg);color:var(--cream);overscroll-behavior:none}body{overflow:hidden;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button,select{font:inherit;color:inherit}button{border:1px solid var(--edge);border-radius:12px;background:var(--panel);min-height:48px;padding:.7rem 1rem;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible{outline:3px solid var(--amber);outline-offset:3px}button:disabled{opacity:.48;cursor:wait}button:active,.held{background:#5c3828!important;border-color:var(--amber)!important;transform:translateY(1px)}[hidden]{display:none!important}.game{height:100%;height:100dvh;max-width:1440px;margin:auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top,0px) max(16px,env(safe-area-inset-right,0px)) var(--safe-bottom) max(16px,env(safe-area-inset-left,0px));gap:8px}.toolbar{height:62px;min-height:62px;display:flex;align-items:center;gap:16px}.brand{font-size:.9rem;letter-spacing:.08em;display:flex;align-items:center;gap:10px;white-space:nowrap}.brand strong{color:var(--amber)}.brand-mark{width:32px;height:32px;border:2px solid var(--red);color:var(--amber);display:grid;place-items:center;font-weight:900;transform:rotate(-5deg)}#status{font-size:.875rem;color:var(--muted);margin:0;flex:1;text-align:center}.menu-button{margin-left:auto;display:flex;align-items:center;gap:16px;padding:.45rem .85rem;min-height:42px}.menu-button span{color:var(--amber)}.playfield{position:relative;min-height:0;flex:1;display:grid;place-items:center;background:#090909;border:1px solid #40342e;border-radius:8px;overflow:hidden}canvas{display:block;image-rendering:pixelated;image-rendering:crisp-edges;height:100%;max-height:100%;max-width:100%;width:auto;aspect-ratio:4/3;object-fit:fill;background:#000}.overlay{position:absolute;inset:0;background:rgba(16,13,12,.97);display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}.welcome-content{text-align:center;max-width:440px;margin:auto}.eyebrow{font-size:.875rem;color:var(--amber);letter-spacing:.15em;font-weight:700;margin:0 0 12px}h1{font-family:ui-monospace,"Courier New",monospace;font-size:clamp(2rem,5vw,4.5rem);letter-spacing:-.07em;font-weight:900;line-height:.9;margin:0;text-shadow:4px 4px 0 #7b271f}h1 span{font-size:1.5em;color:var(--amber)}.intro{font-size:1rem;line-height:1.45;color:#d4c4b3;margin:22px 0}.primary{background:var(--red);border-color:#ec6f4e;min-height:52px;font-weight:700;padding:.8rem 1.5rem}.welcome .primary{min-width:225px}.detail,.install{font-size:.875rem;color:var(--muted);line-height:1.5}.install{margin:16px 0 0}.controls{display:flex;align-items:center;justify-content:space-between;min-height:182px;gap:16px;padding:4px 12px 8px;touch-action:none}.movement{text-align:center}.dpad{display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(3,42px);gap:4px;touch-action:none}.dpad button{min-height:0;padding:0;font-size:1.25rem;touch-action:none;border-radius:8px}.dpad button[data-dir*="-1,"]{font-size:1.1rem}.dpad-center{display:grid;place-items:center;background:#1c1817;color:#645146;border-radius:8px;font-size:1.2rem}.control-caption{display:block;margin-top:8px;color:var(--muted);font-size:.75rem;letter-spacing:.09em}.control-help{text-align:center;color:var(--muted);line-height:1.6;font-size:.875rem}.control-help p{margin:0 0 8px}.control-help span{font-size:.875rem;color:#8fbd9a}.actions{display:flex;align-items:center;gap:20px}.action{width:104px;height:104px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:8px;font-weight:700;touch-action:none;box-shadow:0 5px 0 #0b0909}.action-symbol{font-size:2.6rem;line-height:1}.fire{border:2px solid #935247;color:#ffd9c5}.jump{border:2px solid #bb8e48;background:#493522;color:#ffe7b1;width:120px;height:120px}.pause-overlay{background:rgba(10,9,9,.92)}.pause-card{width:min(100%,480px);margin:auto;text-align:center}.pause-card h2{font-size:2rem;margin:0 0 20px}.pause-card>.primary{width:100%}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.history{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.875rem;margin:14px 0;text-align:left}select{background:var(--panel);padding:10px 32px 10px 12px;border:1px solid var(--edge);border-radius:8px;min-height:44px}.file-actions{display:flex;gap:8px}.file-actions button{flex:1;font-size:.875rem}.menu-note,#menu-feedback{font-size:.875rem;line-height:1.5;color:var(--muted);margin:14px 0 0}#menu-feedback{color:var(--amber)}.portrait-note{display:none;margin:0;color:var(--muted);font-size:.875rem;text-align:center}noscript{position:fixed;inset:0;background:var(--bg);padding:30px;z-index:5}@media(min-width:1100px){.controls{position:absolute;left:max(24px,calc((100vw - 1380px)/2));right:max(24px,calc((100vw - 1380px)/2));bottom:max(20px,var(--safe-bottom));pointer-events:none}.controls>*{pointer-events:auto}.playfield{margin-bottom:16px}.control-help{visibility:hidden}.dpad{grid-template-columns:repeat(3,52px);grid-template-rows:repeat(3,48px)}canvas{max-width:calc(100% - 350px)}}@media(max-height:650px) and (orientation:landscape){.toolbar{height:48px;min-height:48px}.controls{position:absolute;left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:max(12px,var(--safe-bottom));pointer-events:none;min-height:0;padding:0}.controls>*{pointer-events:auto}.playfield{margin-bottom:8px}.control-help,.control-caption{display:none}.dpad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,40px)}.actions{gap:12px}.action{width:80px;height:80px;font-size:.875rem}.jump{width:94px;height:94px}.action-symbol{font-size:2.2rem}canvas{max-width:calc(100% - 280px)}.welcome-content{display:grid;grid-template-columns:1fr 1fr;gap:10px 30px;align-items:center;max-width:640px}.welcome h1{grid-column:1;grid-row:2/5}.welcome .eyebrow{grid-column:1/3;margin:0}.welcome .intro{margin:0}.welcome .install{grid-column:1/3;margin:0}.welcome .detail{margin:0}.pause-card{max-width:620px}.pause-card h2{margin:0 0 8px;font-size:1.5rem}.pause-card .eyebrow{margin-bottom:6px}.pause-card>.primary{width:auto}.menu-grid{margin:8px 0}.pause-card button{min-height:42px;padding:.5rem .7rem}.history{margin:8px 0}.menu-note{margin-top:6px}}@media(orientation:portrait){.portrait-note{display:block;padding-bottom:8px}.controls{min-height:220px}.dpad{grid-template-columns:repeat(3,52px);grid-template-rows:repeat(3,48px)}.control-help{display:none}.actions{gap:12px}.toolbar{gap:8px}.brand{font-size:.75rem;letter-spacing:.03em}.brand-mark{display:none}#status{font-size:.75rem;text-align:left}.menu-button{font-size:.875rem;padding:.4rem .65rem}}@media(max-width:430px){.game{padding-left:8px;padding-right:8px}.controls{padding-left:0;padding-right:0;gap:8px}.dpad{grid-template-columns:repeat(3,40px);grid-template-rows:repeat(3,42px)}.action{width:72px;height:72px;font-size:.875rem}.jump{width:84px;height:84px}.actions{gap:8px}.brand{font-size:.65rem}.menu-button span{display:none}.overlay{padding:16px}}

.start-actions{display:flex;flex-direction:column;gap:8px}.start-actions>button{min-width:225px}.welcome .start-actions{margin:auto}
