:root{
  --bg:#0b0b0b;
  --paper:#0f1720;
  --text:#dfe6ea;
  --muted:#9aa6b2;
  --accent:#f59e0b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "DejaVu Sans Mono", monospace;
}

*{box-sizing:border-box}
html,body,#app{height:100%;margin:0}
body{
  background:linear-gradient(180deg,var(--bg),#041018);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.panel{
  width:100%;
  max-width:920px;
  background:rgba(10,14,18,0.6);
  border:1px solid rgba(255,255,255,0.04);
  border-radius:12px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:60vh;
  box-shadow:0 8px 30px rgba(2,6,10,0.6);
}

.controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.btn-group{display:flex;gap:8px}
.btn{
  background:transparent;
  color:var(--text);
  border:1px solid rgba(255,255,255,0.06);
  padding:8px 12px;
  border-radius:8px;
  font-size:14px;
  min-height:44px;
  min-width:44px;
}
.btn:active{transform:translateY(1px)}
.font-size{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
input[type=range]{width:140px}

.ascii{
  background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
  border-radius:8px;
  padding:14px;
  margin:0;
  overflow:auto;
  white-space:pre-wrap;
  word-break:normal;
  font-size:12px;
  line-height:1;
  flex:1;
  border:1px solid rgba(255,255,255,0.03);
  outline:none;
  caret-color:transparent;
  color:var(--text);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.02);
  -webkit-user-select:text;
}

.ascii.nobg{background:transparent}
.ascii.nowrap{white-space:pre;overflow:auto}
.meta{font-size:12px;color:var(--muted);text-align:center}
@media (max-width:520px){
  .panel{padding:10px;min-height:56vh}
  input[type=range]{width:110px}
  .controls{flex-direction:column;align-items:stretch;gap:8px}
  .btn{flex:1}
}