﻿*{box-sizing:border-box}body{margin:0;background:#101e26;color:#f8f2de;font:16px/1.45 "Segoe UI",system-ui,sans-serif}main{max-width:850px;margin:auto;padding:16px clamp(10px,3vw,32px) 24px}header,.bar,footer,.controls{display:flex;align-items:center;justify-content:space-between;gap:12px}header{padding:6px 0 14px;border-bottom:1px solid #38505a}header b{font-size:23px}i{font-style:normal;color:#94d8b4}#xp,.shift,small{font:700 12px/1.5 Consolas,monospace;letter-spacing:1px}#xp{background:#29483f;color:#b5f4c6;padding:5px 12px}.bar{padding:15px 0}small{color:#a3d7c1}h1{font:700 clamp(25px,4vw,36px)/1.1 Georgia,serif;margin:3px 0}.shift{color:#eed68b}.world{border:3px solid #56696b;background:#253944}canvas{width:100%;height:auto;display:block;image-rendering:pixelated;touch-action:manipulation;cursor:pointer}.log{background:#203640;border-left:4px solid #edc772;margin:12px 0;padding:12px 16px;min-height:90px}.log p{margin:4px 0}.controls{justify-content:space-between}.pad{display:grid;grid-template-columns:repeat(3,46px);gap:3px}.pad button:first-child{grid-column:2}.pad button:nth-child(2){grid-column:1}button{border:1px solid #65807d;border-bottom:3px solid #54706d;background:#304b51;color:white;min-height:44px;font:700 16px system-ui;cursor:pointer;touch-action:none;user-select:none}#use{padding:0 15px;color:#162a25;background:#b7e7ac;max-width:50%}button:focus-visible{outline:3px solid #ffda84}.help,footer{font-size:12px;color:#afc4c6}footer{border-top:1px solid #38505a;padding-top:10px}a{color:#adddc9}
dialog{width:min(360px,92vw);padding:22px;color:#f4efd9;background:#203940;border:3px solid #80a69d;box-shadow:5px 5px 0 #102527}dialog::backdrop{background:#0e252c99}dialog h2{margin:4px 0 16px}.display{display:grid;gap:3px;padding:12px 16px;background:#102b27;color:#a7f2b9;font:13px monospace}.display strong{font:700 36px monospace}.display progress{width:100%;accent-color:#a7f2b9}dialog button{width:100%;background:#b7e7ac;color:#182c28}dialog button:disabled{background:#41595c;color:#d7e0df}
dialog{width:min(465px,96vw);max-height:94dvh;overflow:auto;padding:16px}.instrument-head{display:flex;justify-content:space-between;align-items:center}.instrument-head h2{margin:2px 0 10px}.instrument-head button{width:44px;background:transparent;color:#fff;border:0;font-size:25px}.instrument{background:#172e31;border:2px solid #82958a;padding:4px;text-align:center}.instrument canvas{width:min(100%,235px);height:auto;margin:auto;cursor:default;image-rendering:auto}.instrument #pressure{font:700 17px monospace;color:#cee6cc}.instrument-head small{color:#abd6bd}#toolbox{display:flex;flex-wrap:wrap;align-items:end;gap:8px}#toolbox button{width:auto;flex:1 1 auto;padding:7px 12px}#toolbox label{display:block;flex:1;font-size:13px;color:#d2e7dc}#toolbox input{display:block;width:100%;min-height:42px;font:18px monospace;accent-color:#a6deae}#hint{color:#f5d684;margin:8px 0 0}#hint:empty{display:none}#bp-note{margin:10px 0}dialog button:focus-visible{outline:3px solid #ffaa57}

