body {
  margin: 0;
  background: #14141a;
  color: #e8e8e8;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
.topbar {
  text-align: center;
  padding: 18px 12px 8px;
}
.topbar h1 {
  margin: 0;
  color: #d4af37;
  letter-spacing: 3px;
  font-size: 22px;
}
.topbar p {
  margin: 6px 0 0;
  color: #aaa;
  font-size: 14px;
}
#picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px;
}
#picker button {
  background: #22222c;
  color: #e8e8e8;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
}
#picker button.active {
  background: #d4af37;
  color: #14141a;
  border-color: #d4af37;
  font-weight: 700;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 12px 20px;
}
#stage {
  position: relative;
  background: #1c1c26;
  border-radius: 12px;
  overflow: hidden;
}
#view {
  display: block;
  width: 100%;
  height: 62vh;
  min-height: 420px;
  touch-action: none;
}
#loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-size: 16px;
  background: rgba(20, 20, 26, 0.6);
}
#loading.hidden { display: none; }
#info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  font-size: 14px;
  color: #ccc;
}
#char-name { color: #d4af37; font-weight: 700; }
.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 6px 0 0;
}
.actions button {
  background: #d4af37;
  color: #14141a;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 24px;
  color: #888;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}
