/* ส่วนเสริมของโปรเจกต์ราชมังคลาฯ */
/* เครื่องมือที่ผูกกับแอสเซ็ตชุดเดิม (บ้านคอทเทจ / สัตว์ฟาร์ม) ซ่อนไว้ */
.cozy-toolbar__button[data-tool="house"],
.cozy-toolbar__button[data-tool="animals"],
#tools .tool[data-tool="house"] { display: none !important; }

.rms-concert-toggle {
  border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap;
  font: inherit; font-weight: 600; color: #fff; background: #8a6cf0;
  box-shadow: 0 2px 0 #6a4fd0;
}
.rms-concert-toggle[aria-pressed="false"] { background: #b9b4c9; box-shadow: 0 2px 0 #9a94ad; }

/* คลังฉาก: ซ่อนหมวดที่ผูกกับแผนที่/แอสเซ็ตของโปรเจกต์เดิม */
.scene-library__flat-maps,
.scene-library__game-maps { display: none !important; }

.rms-concert-toggle.rms-icon { padding: 8px 11px; min-width: 38px; }
/* มุมกล้อง 1-5 */
.rms-views { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; padding: 3px 5px 3px 9px; border-radius: 999px; background: #efeaff; box-shadow: 0 2px 0 #d3c8f7; vertical-align: middle; }
.rms-views > span { font-size: 12px; font-weight: 700; color: #5b47b8; margin-right: 4px; white-space: nowrap; }
.rms-views .rms-view { padding: 5px 0; width: 28px; margin: 0 !important; font-size: 13px; }
.rms-views .rms-view[aria-pressed="false"] { background: #fff; color: #5b47b8; box-shadow: 0 2px 0 #d3c8f7; }
.rms-concert-toggle + .rms-concert-toggle { margin-left: 4px; }

/* จอสนาม: iframe ของ YouTube วางทับตำแหน่งจอในฉาก (อยู่เหนือ canvas แต่ใต้แผงเครื่องมือ) */
.rms-screen-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rms-screen-frame {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; border: 0; background: #000;
  pointer-events: none; opacity: 0; backface-visibility: hidden; /* ซ่อนด้วย opacity เพราะเบราว์เซอร์พักวิดีโอใน iframe ที่ visibility: hidden */
}

/* ปุ่มเคาะตั้งจังหวะของโชว์ไฟ: กว้างคงที่ (ตัวเลข BPM เปลี่ยนแล้วปุ่มไม่ขยับ) และเด้งทุกครั้งที่เคาะ */
.rms-concert-toggle.rms-tap { min-width: 78px; font-variant-numeric: tabular-nums; touch-action: manipulation; user-select: none; }
.rms-concert-toggle.rms-tap--hit { animation: rms-tap-hit .18s ease-out; }
@keyframes rms-tap-hit { from { transform: scale(.9); filter: brightness(1.3); } to { transform: none; filter: none; } }

/* ตัวเลื่อนความสว่างไฟสนามบนแถบหัว */
.rms-flood { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 5px 12px 5px 9px; border-radius: 999px; background: #fff6d6; box-shadow: 0 2px 0 #e2cf8f; color: #6b5310; font-weight: 700; font-size: 12px; white-space: nowrap; vertical-align: middle; }
.rms-flood input { width: 92px; accent-color: #f0b429; cursor: pointer; }
.rms-flood b { min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
