:root {
  --bg: #101418;
  --text: #f2f5f8;
  --muted: #9aa7b5;
  --accent: #2bb673;
  --warn: #f0a202;
  --danger: #e4572e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #101418;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 12px 28px;
}

h1 {
  margin: 4px 0;
  font-size: 1.25rem;
}

.badge {
  margin: 4px 0 10px;
  color: var(--accent);
  font-size: 0.95rem;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

#ar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#hudStatus {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 5;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 14px;
}

.panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

select,
button {
  font-size: 1rem;
  padding: 12px;
  border: 0;
  border-radius: 10px;
}

select {
  background: #1a222b;
  color: var(--text);
}

button {
  font-weight: 700;
  background: var(--accent);
  color: #04140c;
}

button:disabled {
  opacity: 0.45;
}

#btnSave {
  background: #4ea1d3;
  color: #041018;
}

.guide {
  color: var(--muted);
  line-height: 1.55;
}

.dev {
  margin-top: 12px;
  background: #1a222b;
  border-radius: 10px;
  padding: 8px 12px 12px;
}

#devLog {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
  color: #cde3ff;
  background: #0b0f14;
  padding: 8px;
  border-radius: 8px;
}
