* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0b0d17; color: #e8eaf6; font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
#app { display: flex; height: 100%; }
#stage { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 8px; }
canvas { width: 100%; max-height: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 10px; box-shadow: 0 0 40px #0008; background: #111; }
#sim { width: 320px; flex-shrink: 0; overflow-y: auto; background: #151827; border-left: 1px solid #262a40; padding: 12px; font-size: 13px; }
.sim-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; margin-bottom: 8px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #333a5c; }
.tag.on { background: #1b8a4c; }
.sim-sec { border-top: 1px solid #262a40; padding: 10px 0; }
.row { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.row input[type=range] { flex: 1; }
input:not([type]) , input[type=text] { flex: 1; background: #0e1020; border: 1px solid #333a5c; color: #fff; padding: 7px 8px; border-radius: 6px; min-width: 0; }
button { background: #2b3160; color: #fff; border: 0; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; white-space: nowrap; }
button:hover { background: #3d4585; }
.quick { flex-wrap: wrap; }
.quick button { flex: 1 1 auto; }
.gifts button { background: #5a2b55; }
.gifts button:hover { background: #7a3a73; }
.rules ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.8; color: #b8bdd9; }
code { background: #0e1020; padding: 1px 5px; border-radius: 4px; color: #ffd166; }
.small { color: #8a90b4; font-size: 12px; }
@media (max-width: 860px) {
  #app { flex-direction: column; }
  #sim { width: 100%; border-left: 0; border-top: 1px solid #262a40; }
  #stage { flex: none; }
}
