/* ═══ 전자칠판 무대 (Jay 아이디어 ④ · 2026-09-15) ═══
   전자칠판에 띄워 놓고 아이들이 멀리서 본다 — 크고, 어둡고, 군더더기 없이. */
.stage-view {
  position: fixed; inset: 0; z-index: 9000;
  background: #14110e; color: #F4ECD8;
  display: flex; flex-direction: column;
}
.stage-view.hidden { display: none; }
body.stage-active { overflow: hidden; }

.stage-top {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; background: rgba(255,255,255,0.05);
}
.stage-title { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.stage-pick {
  font: inherit; font-size: 15px; padding: 7px 12px; border-radius: 9px;
  border: 1.5px solid rgba(244,236,216,0.3); background: #1f1b16; color: #F4ECD8;
  max-width: 300px;
}
.stage-link { flex: 1; font-size: 13.5px; color: rgba(244,236,216,0.62); }
.stage-btn {
  font: inherit; font-size: 14px; font-weight: 700; padding: 8px 15px;
  border-radius: 9px; border: none; cursor: pointer;
  background: rgba(244,236,216,0.14); color: #F4ECD8;
}
.stage-btn.stage-x { padding: 8px 13px; }

.stage-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px; min-height: 0; }
.stage-frame { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.stage-empty { font-size: 17px; color: rgba(244,236,216,0.55); }

/* 도안 한 장과 그 위의 칸들 — 칸 자리는 도안 대비 비율이라 창 크기가 바뀌어도 안 어긋난다 */
.stage-canvas { position: relative; display: inline-block; max-width: 100%; max-height: 100%; }
.stage-art { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; }
.stage-slot {
  position: absolute; overflow: hidden;
  border: 2px dashed rgba(244,236,216,0.34); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.stage-slot.filled { border-color: transparent; }
.stage-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-no { font-size: 34px; font-weight: 800; color: rgba(244,236,216,0.34); }

/* 방금 들어온 칸만 한 번 튄다 — 어디에 들어갔는지 아이들이 봐야 한다 */
@keyframes stagePop {
  0%   { transform: scale(.34); opacity: 0; }
  62%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.stage-slot.pop img { animation: stagePop .42s cubic-bezier(.22,1,.36,1); }

@media (max-width: 760px) {
  .stage-top { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .stage-link { flex: 1 0 100%; order: 9; }
  .stage-art { max-height: 62vh; }
}
