* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; margin: 0; padding: 0; }
.header { padding: 5px; background: #0b57d0; color: white; }
.container { padding: 16px; }
.form-row { margin-bottom: 8px; }
label { display: block; margin-bottom: 4px; font-weight: 600; }
input[type="text"], textarea { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
button { background: #0b57d0; color: white; border: none; padding: 10px 16px; margin: 2px; border-radius: 6px; cursor: pointer; }
.room-note {font-size: smaller; color: #333; }

/* Danmaku container */
.danmaku-stage {
  position: relative;
  width: 100%;
  height: calc(100vh - 60px);
  background: #000;
  overflow: hidden;
}
.danmaku-item {
  position: absolute;
  left: 0;
  white-space: nowrap;
  font-weight: 700;
  font-size: 20px;
  padding: 6px 10px;
  border-radius: 20px;
  opacity: 0.95;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
  will-change: transform;
}

/* move based on computed pixel distance -- set --distance on the element in JS */
@keyframes move-left-px {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--distance) * 1px)); }
}

footer { padding: 5px; text-align: center; color: #666; }
