/* ===== RESET ===== */
*{margin:0;padding:0;box-sizing:border-box}
html,body{width:100%;height:100%;overflow:hidden;background:#05060d;font-family:'JetBrains Mono',ui-monospace,monospace;color:#e1e1ee}

/* ===== CANVAS ===== */
#c{position:fixed;top:0;left:0;width:100%;height:100%;display:block;z-index:0}

/* ===== SCREENS ===== */
.screen{position:fixed;inset:0;display:none;z-index:10;align-items:center;justify-content:center}
.screen.active{display:flex}

/* ===== MENU WRAP ===== */
.menu-wrap{text-align:center;padding:2rem}

.glow-title{font-size:3rem;font-weight:800;color:#7cf6ff;text-shadow:0 0 30px #00e5ff88,0 0 60px #00e5ff44;letter-spacing:.15em;margin-bottom:.6rem}
.glow-title span{color:#ff2e88;text-shadow:0 0 30px #ff2e8888,0 0 60px #ff2e8844}

.glow-sub{font-size:2rem;font-weight:700;color:#7cf6ff;text-shadow:0 0 20px #00e5ff66;margin-bottom:1.2rem}
.over-title{color:#ff2e88!important;text-shadow:0 0 20px #ff2e8866!important}

.menu-stats{display:flex;gap:1.5rem;justify-content:center;margin-bottom:1.8rem;font-size:.8rem;color:#546a8a;font-family:ui-monospace,monospace}
.menu-stats span{color:#ffd166}

.menu-btns{display:flex;flex-direction:column;gap:.7rem;align-items:center}

/* ===== BUTTONS ===== */
.btn{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:#c9f7ff;padding:.7rem 2.2rem;font-size:1rem;font-family:inherit;cursor:pointer;border-radius:6px;transition:all .15s;min-width:200px;letter-spacing:.06em}
.btn:hover{background:rgba(0,229,255,.12);border-color:#00e5ff;box-shadow:0 0 16px #00e5ff33}
.btn:active{transform:scale(.97)}
.btn-play{background:rgba(0,229,255,.15);border-color:#00e5ff;color:#fff;font-weight:700}
.btn-play:hover{background:rgba(0,229,255,.28)}
.btn-sm{font-size:.8rem;padding:.5rem 1.6rem;min-width:auto}
.btn-back{min-width:auto;padding:.4rem 1rem;font-size:.85rem}

/* ===== SHIPS ===== */
.sub-wrap{width:100%;max-width:520px;padding:1.5rem;max-height:100vh;overflow-y:auto}
.sub-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.sub-title{text-align:center;font-size:1.4rem;color:#7cf6ff;text-shadow:0 0 14px #00e5ff55;margin-bottom:1rem}
.coins-top{color:#ffd166;font-size:.95rem;font-weight:700}

.ships-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.8rem}
.ship-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:.9rem .7rem;text-align:center;cursor:pointer;transition:all .15s}
.ship-card:hover{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.07)}
.ship-card.selected{border-color:#00e5ff;box-shadow:0 0 18px #00e5ff33}
.ship-card.locked{opacity:.5}
.ship-card .name{font-weight:700;font-size:1rem;margin-bottom:.4rem;letter-spacing:.08em}
.ship-card .stats{font-size:.7rem;color:#8a9ab0;line-height:1.6}
.ship-card .owned{margin-top:.5rem;font-size:.75rem;font-weight:600}
.ship-card .cost{margin-top:.5rem;font-size:.75rem;color:#ffd166}

/* ===== SHOP ===== */
.shop-list{display:flex;flex-direction:column;gap:.6rem}
.shop-item{display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:.8rem 1rem}
.shop-item .info{flex:1}
.shop-item .label{font-weight:700;font-size:.9rem;color:#c9f7ff}
.shop-item .desc{font-size:.7rem;color:#6a7a8a;margin-top:.15rem}
.shop-item .level{display:flex;gap:5px;margin-top:.4rem}
.dot{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}
.dot.on{background:#ffd166;border-color:#ffd166;box-shadow:0 0 6px #ffd16655}
.buy{background:rgba(255,210,100,.12);border:1px solid #ffd16688;color:#ffd166;padding:.4rem 1rem;border-radius:5px;cursor:pointer;font-family:inherit;font-size:.85rem;font-weight:700;transition:all .12s;min-width:80px}
.buy:hover:not(:disabled){background:rgba(255,210,100,.25)}
.buy:disabled{opacity:.3;cursor:default}
.buy.max{color:#546a8a;border-color:#546a8a44}

/* ===== CONTROLS ===== */
.ctrl-list{display:flex;flex-direction:column;gap:.5rem}
.ctrl-row{display:flex;justify-content:space-between;padding:.5rem .8rem;background:rgba(255,255,255,.03);border-radius:5px;font-size:.85rem}
.ctrl-key{color:#7cf6ff;font-weight:600}

/* ===== GAME OVER ===== */
.over-stats{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1.4rem;font-size:.9rem;color:#8a9ab0}
.over-stats span{color:#c9f7ff;font-weight:700}
.over-coins span{color:#ffd166!important}

/* ===== CONSOLE ===== */
.console-bar{position:fixed;bottom:0;left:0;right:0;z-index:100;display:flex;flex-direction:column;pointer-events:none}
.console-toggle{pointer-events:all;align-self:flex-end;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#7cf6ff;font-size:1.2rem;padding:.3rem .7rem;cursor:pointer;border-radius:6px 6px 0 0;margin-right:.5rem}
.console-body{display:none;background:rgba(5,6,13,.92);border-top:1px solid rgba(255,255,255,.08);padding:.5rem .7rem;pointer-events:all;max-height:40vh;flex-direction:column}
.console-bar.open .console-body{display:flex}
.console-log{flex:1;overflow-y:auto;max-height:26vh;font-size:.75rem;line-height:1.5;padding-bottom:.4rem}
.console-log .line{color:#8a9ab0}
.console-log .line.cmd{color:#7cf6ff}
.console-log .line.ok{color:#a8ff60}
.console-log .line.err{color:#ff4d6d}
.console-log .line.info{color:#ffd166}
.console-input-row{display:flex;gap:.4rem;margin-top:.3rem}
.console-input-row input{flex:1;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:#e1e1ee;padding:.4rem .6rem;border-radius:4px;font-family:inherit;font-size:.8rem;outline:none}
.console-input-row input:focus{border-color:#00e5ff}
.btn-send{min-width:auto;padding:.35rem .8rem;font-size:.85rem}
