:root{
  --bg:#fff;
  --fg:#111;
  --muted:#666;
  --accent:#000;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body,#app{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
}

#app{
  width:720px;
  max-width:95%;
  background:rgba(0,0,0,0.03);
  border-radius:10px;
  padding:20px;
  box-shadow:0 6px 24px rgba(0,0,0,0.08);
}

header h1{margin:0 0 12px 0;font-size:20px}
#story{
  min-height:160px;
  padding:16px;
  background:#fff;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.04);
  margin-bottom:12px;
  font-size:15px;
  line-height:1.5;
}

#choices{display:flex;flex-direction:column;gap:8px}
.choice{
  display:flex;
  gap:12px;
  align-items:center;
  background:transparent;
  border:1px solid rgba(0,0,0,0.06);
  padding:10px;
  border-radius:8px;
  cursor:pointer;
}
.choice:hover{background:rgba(0,0,0,0.02)}
.choice-number{
  background:var(--accent);
  color:#fff;
  min-width:30px;
  height:30px;
  display:inline-grid;
  place-items:center;
  border-radius:6px;
  font-weight:700;
}
.choice > div:last-child {
  color: #000;
}

footer{display:flex;gap:8px;align-items:flex-start;margin-top:12px;flex-direction:column}
#customWrap{width:100%;margin-bottom:8px}
#customWrap label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
#customIntro{
  width:100%;
  min-height:64px;
  padding:8px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.06);
  resize:vertical;
  font-family: inherit;
  font-size:14px;
}

#controls{display:flex;gap:8px;align-items:center}
button{
  background:var(--accent);
  color:#fff;
  border:0;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
}
button:disabled {
  background:var(--muted);
  cursor:not-allowed;
}
button[hidden]{display:none}
#status{color:var(--muted);font-size:13px;margin-left:8px}