*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
html,body{width:100%;height:100%;overflow:hidden;background:#0d0b1e;overscroll-behavior:none;touch-action:none}
#g{position:fixed;inset:0;width:100%;height:100%;display:block;image-rendering:pixelated;touch-action:none}
#msg{overflow-y:auto;position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center;background:rgba(13,11,30,.82);color:#e9e4ff;font-family:"Courier New",ui-monospace,monospace;z-index:2}
#msg.hide{display:none}
#msg h1{font-size:clamp(28px,8vw,56px);letter-spacing:4px;color:#5ff2ff;text-shadow:3px 3px 0 #6a1fb0,6px 6px 0 #000}
#msg p{max-width:520px;line-height:1.45;font-size:15px}
#msg .k{font-size:12px;color:#a9a0d6}
#msg b{color:#ffd24a}
#go{margin-top:8px;padding:14px 38px;font:bold 20px "Courier New",monospace;color:#0d0b1e;background:#5ff2ff;border:0;border-bottom:6px solid #1a8f9c;border-right:4px solid #1a8f9c;cursor:pointer}
#go:active{transform:translateY(3px)}
#cls{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:640px}
.cc{display:flex;flex-direction:column;align-items:center;gap:4px;width:138px;padding:8px 6px;background:rgba(20,16,40,.8);border:3px solid #3a3466;color:#e9e4ff;font:12px "Courier New",monospace;cursor:pointer}
.cc canvas{width:96px;height:120px;image-rendering:pixelated}
.cc b{color:#ffd24a;font-size:13px}.cc span{color:#a9a0d6;font-size:11px;line-height:1.35;min-height:46px}
.cc.on{border-color:#5ff2ff;background:rgba(40,60,90,.85);box-shadow:0 0 14px #5ff2ff88}
@media(max-height:620px){.cc{width:112px;padding:4px}.cc canvas{width:60px;height:75px}.cc span{min-height:0;font-size:10px}#msg{justify-content:flex-start}}

#ship{display:flex;align-items:center;gap:10px}#ship canvas{width:150px;height:120px;image-rendering:pixelated;background:rgba(20,16,40,.8);border:3px solid #3a3466}#ship button{font:bold 20px "Courier New",monospace;color:#5ff2ff;background:rgba(20,16,40,.8);border:3px solid #3a3466;padding:10px 12px;cursor:pointer}#shipname{color:#ffd24a;font:bold 13px "Courier New",monospace;min-width:130px;text-align:left}
