html, body {
  margin: 0;
  padding: 0;
  background: #000 !important;
}
:root{
  --bg:#070a12;
  --panel:#0b1230;
  --neon:#6dfcff;
  --neon2:#ff5bd6;
  --text:#e8f0ff;
  --muted:#a6b6ff;
  --line:rgba(109,252,255,.25);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  color:#f0f6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand .logo{
  font-size:22px;
  letter-spacing:3px;
  color:var(--neon);
  text-shadow:0 0 12px rgba(109,252,255,.35);
}
.brand .tag{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  letter-spacing:1px;
}

.btn{
  background:linear-gradient(180deg, rgba(109,252,255,.18), rgba(109,252,255,.06));
  color:var(--text);
  border:1px solid var(--line);
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  letter-spacing:1px;
}
.btn:hover{border-color:rgba(109,252,255,.55)}
.btn:active{transform:translateY(1px)}
.btnGhost{
  background:transparent;
}

.main{display:flex; justify-content:center; padding:22px}
.panel{
  width:min(980px, 100%);
  background:linear-gradient(180deg, rgba(11,18,48,.85), rgba(11,18,48,.55));
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  box-shadow:0 10px 40px rgba(0,0,0,.45);
}

.hud{
  display:flex;
  gap:16px;
  justify-content:space-between;
  padding:8px 10px 12px;
  font-size:13px;
  border-bottom:1px solid rgba(109,252,255,.18);
}
.k{color:var(--muted); margin-right:8px}

canvas{
  width:100%;
  height:auto;
  display:block;
  margin:12px 0 10px;
  border-radius:12px;
  border:1px solid rgba(109,252,255,.18);
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(2px 2px at 80% 40%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,.22), transparent 60%),
    rgba(0,0,0,.25);
}

.help{
  font-size:12px;
  color:var(--muted);
  letter-spacing:.6px;
  padding:2px 6px 6px;
}
.key{
  display:inline-block;
  padding:2px 6px;
  margin:0 4px;
  border:1px solid rgba(109,252,255,.22);
  border-radius:8px;
  color:var(--text);
  background:rgba(109,252,255,.08);
}
.sep{opacity:.5; margin:0 8px}

.foot{
  text-align:center;
  padding:14px 10px 20px;
  color:var(--muted);
  font-size:12px;
}
.foot a{color:var(--muted); text-decoration:none}
.foot a:hover{color:var(--neon)}
.dot{margin:0 8px; opacity:.6}

/* Modal */
.modal{
  position:fixed; inset:0;
  display:none;
  align-items:center; justify-content:center;
  background:rgba(0,0,0,.55);
  padding:18px;
}
.modal.show{display:flex}
.modalCard{
  width:min(620px, 100%);
  background:linear-gradient(180deg, rgba(11,18,48,.95), rgba(11,18,48,.78));
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  box-shadow:0 18px 70px rgba(0,0,0,.6);
}
.modalHead{
  display:flex; align-items:center; justify-content:space-between;
  padding:6px 6px 10px;
  border-bottom:1px solid rgba(109,252,255,.18);
}
.modalTitle{color:var(--neon); letter-spacing:2px}

.form{padding:12px 6px 6px; display:grid; gap:10px}
label span{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}
input, textarea{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(109,252,255,.18);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color:rgba(109,252,255,.6)}
.row{display:flex; gap:10px; align-items:center}
.formMsg{font-size:12px; color:var(--muted)}
.small{font-size:11px; color:var(--muted); padding:6px 6px 2px; opacity:.9}
.hp{position:absolute; left:-9999px; width:1px; height:1px; opacity:0}