:root{
  --bg:#0b0f1a;
  --card:#11192c;
  --bd:#223058;
  --txt:#e8eefc;
  --mut:#a6b4d6;
  --acc:#2d8b57;
  --acc2:#7bb0ff;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--txt);font-family:system-ui}
.wrap{max-width:1100px;margin:0 auto;padding:22px}

.hero{
  display:grid;
  place-items:center;
  gap:10px;
  padding:28px;
  border:1px solid var(--bd);
  border-radius:18px;
  background:var(--card);
}
.logo{width:62px;height:62px}
.brand{font-size:26px;font-weight:1000}
.sub{color:var(--mut);font-size:13px}

.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:6px}

.btn{
  background:var(--acc);
  border:0;
  color:white;
  font-weight:1000;
  padding:12px 16px;
  border-radius:12px;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
}
.btn2{
  background:#0e1526;
  border:1px solid var(--bd);
  color:var(--txt);
  font-weight:1000;
  padding:12px 16px;
  border-radius:12px;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
}

.how{margin-top:14px}
.howCard{
  background:var(--card);
  border:1px solid var(--bd);
  border-radius:18px;
  padding:16px;
  color:var(--txt);
}
.howT{font-weight:1000;margin-bottom:8px}
.note{color:var(--mut);font-size:12px;margin-top:10px}

.modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:grid;place-items:center;padding:16px}
.card{
  width:min(980px,100%);
  background:var(--card);
  border:1px solid var(--bd);
  border-radius:16px;
  padding:14px;
}
.head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.ttl{font-weight:1000}
.x{background:transparent;border:0;color:var(--txt);font-size:18px;cursor:pointer}

textarea{
  width:100%;
  height:52vh;
  background:#0e1526;
  border:1px solid var(--bd);
  border-radius:12px;
  color:var(--txt);
  padding:12px;
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:12px;
}
.row{display:flex;gap:10px;align-items:center;margin-top:10px;flex-wrap:wrap}
.msg{color:var(--mut);font-size:12px}
.hint{margin-top:10px;color:var(--mut);font-size:12px}

.hidden{display:none}

.result{
  margin-top:18px;
  border:1px solid var(--bd);
  border-radius:18px;
  overflow:hidden;
  background:#0e1526;
}
.rhead{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:12px;
  flex-wrap:wrap;
}
.left,.right{display:flex;gap:10px;flex-wrap:wrap}
.frame{width:100%;height:78vh;border:0;background:white}
