:root{color-scheme:dark;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#070f19;color:#d9e7db}
*{box-sizing:border-box}body{margin:0;min-width:280px;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #344b60;background:#132331;border-radius:4px;padding:10px 14px;min-width:44px;min-height:44px}button:hover{border-color:#52cbd0;background:#1c3443}button:focus-visible,a:focus-visible{outline:2px solid #d99443;outline-offset:3px}
#game{position:fixed;inset:0;width:100vw;height:100dvh;display:block;image-rendering:pixelated;touch-action:none}
.shell{position:fixed;left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:3}
.shell>*{pointer-events:auto}.wordmark{display:flex;flex-direction:column;justify-content:center;min-width:44px;min-height:44px;font-size:12px;color:#74909e;text-decoration:none;letter-spacing:3px;line-height:20px}.wordmark strong{display:block;color:#d9e7db;font-size:19px;letter-spacing:5px}.shell nav{display:flex;gap:8px}.shell button{font-size:11px;background:#0b1723d9;border-color:#243746}
#loading{position:fixed;inset:0;display:grid;place-items:center;background:#070f19;z-index:5;letter-spacing:2px;font-size:13px}#loading[hidden]{display:none}
.keyboard-hint{position:fixed;bottom:14px;left:0;right:0;text-align:center;font-size:10px;color:#617c8d;pointer-events:none}.keyboard-hint span{color:#a6c0c8}.keyboard-hint b{padding:0 12px;color:#344b60}
#touch-controls{display:none;position:fixed;inset:0;z-index:2;pointer-events:none;user-select:none;-webkit-user-select:none}.touch-layout #touch-controls{display:block}.touch-layout .keyboard-hint{display:none}
.dpad{touch-action:none;position:absolute;bottom:66px;left:max(22px,env(safe-area-inset-left));display:grid;grid-template:repeat(3,48px)/repeat(3,48px);gap:2px}
.dpad button{padding:0;border:1px solid #344b60;border-radius:4px;color:#81a2ae;background:#132535dc;font-size:20px;pointer-events:auto;touch-action:none}.up{grid-column:2;grid-row:1}.down{grid-column:2;grid-row:3}.left{grid-column:1;grid-row:2}.right{grid-column:3;grid-row:2}.dpad-center{grid-column:2;grid-row:2;background:#172b3a;border:1px solid #203846;border-radius:4px}
.action-buttons{position:absolute;right:max(24px,env(safe-area-inset-right));bottom:118px;display:flex;align-items:center;gap:14px;transform:rotate(-12deg)}
.action-buttons button{pointer-events:auto;touch-action:none;width:54px;height:54px;min-height:54px;border-radius:50%;font-size:21px;font-weight:700;transform:rotate(12deg);padding:0}.action-a{background:#164452;border-color:#52cbd0;color:#b7ebea}.action-b{background:#362b27;border-color:#997049;color:#dfb183}
.system-buttons{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:14px}.system-buttons button{pointer-events:auto;touch-action:none;font-size:9px;letter-spacing:1px;min-width:76px;padding:8px}
.held{background:#3b6474!important;border-color:#ade9df!important;box-shadow:0 0 10px #52cbd033}
.landscape-touch .dpad{top:50%;bottom:auto;left:16px;transform:translateY(-50%)}.landscape-touch .action-buttons{top:50%;bottom:auto;right:20px;transform:translateY(-50%) rotate(-12deg)}.landscape-touch .system-buttons{left:14px;bottom:12px;transform:none;gap:8px}.landscape-touch .system-buttons button{min-width:66px}.landscape-touch .shell{top:8px;left:18px;right:16px}.landscape-touch .wordmark{font-size:9px;letter-spacing:2px}.landscape-touch .wordmark strong{font-size:13px;letter-spacing:3px}.landscape-touch .shell button{padding:4px 9px;min-height:44px;font-size:10px}
dialog{width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 36px);overflow:auto;background:#101e2c;color:#d9e7db;border:1px solid #344b60;border-radius:8px;padding:22px;box-shadow:0 24px 100px #0009}dialog::backdrop{background:#03080ccc;backdrop-filter:blur(3px)}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #294051;margin-bottom:18px;padding-bottom:12px}.panel-heading h1{font-size:18px;margin:0}.panel-heading button{font-size:16px}
#panel-content{font-family:system-ui,sans-serif;font-size:14px;line-height:1.6}#panel-content p{margin:0 0 16px}#panel-content label{display:flex;justify-content:space-between;gap:24px;align-items:center;min-height:52px;border-bottom:1px solid #243746}#panel-content input{width:22px;height:22px;accent-color:#52cbd0}#panel-content details{border-top:1px solid #243746;padding-top:14px}summary{cursor:pointer;color:#a8c8d1}kbd{font-family:inherit;color:#52cbd0}#performance{position:fixed;left:10px;top:72px;z-index:4;max-width:90vw;max-height:70vh;overflow:auto;pointer-events:none;background:#07101de8;color:#a6ddce;font-size:11px;padding:12px;border:1px solid #344b60}
@media(max-width:370px){.dpad{left:12px;grid-template:repeat(3,44px)/repeat(3,44px)}.action-buttons{right:15px;gap:10px}.action-buttons button{width:48px;height:48px;min-height:48px}.shell{left:16px;right:16px}.wordmark{font-size:10px}.wordmark strong{font-size:15px}}

.postprocessing-lab{position:fixed;right:12px;top:74px;z-index:5;background:#0d1b2bef;border:1px solid #344b60;border-radius:5px;padding:14px;width:260px;max-height:calc(100dvh - 90px);overflow:auto;font-size:11px}.postprocessing-lab-controls{display:grid;gap:14px;padding-top:14px}.postprocessing-lab label{display:grid;gap:5px}.postprocessing-lab-label{display:flex;justify-content:space-between}.postprocessing-lab-toggle{display:flex!important;align-items:center}.postprocessing-lab input[type=range]{width:100%;accent-color:#52cbd0}.postprocessing-lab select{width:100%;padding:8px;background:#132535;color:#d9e7db;border:1px solid #344b60}
#save-error h1{font-size:20px;color:#d99443;margin-top:0}#save-error p{font-family:system-ui,sans-serif;line-height:1.5}#save-retry-status:empty{display:none}
.pickup-guide{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:12px}.pickup-guide li{display:flex;gap:14px;align-items:center}.pickup-guide img{width:32px;height:32px;image-rendering:pixelated;flex:none}


