/* 자리 배치 */
.st-info { margin: 0; text-align: center; font-weight: 700; font-size: 14.5px; color: var(--text-2); }
.st-info.is-error { color: var(--danger); }
.st-summary { margin: 0; text-align: center; font-weight: 800; color: var(--text-2); }

/* 설정 미리보기 */
.st-mini-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 4px; }
.st-mini-front {
  font-size: 11px; font-weight: 800; color: #f3f4f8; background: #2f4a3c; border-radius: 6px; padding: 1px 16px;
}
.st-mini { display: grid; grid-template-columns: repeat(var(--cols, 5), 14px); gap: 4px; }
.st-mini i { display: block; width: 14px; height: 11px; border-radius: 3px; background: var(--border-strong); opacity: .55; }
.st-mini i.on { background: var(--primary); opacity: 1; }
.st-mini i.maybe {
  opacity: 1; background: repeating-linear-gradient(45deg, var(--primary) 0 3px, color-mix(in srgb, var(--primary) 30%, transparent) 3px 6px);
}

/* 배치표 */
.st-board { display: flex; flex-direction: column; gap: 12px; }
.st-board.is-teacher { flex-direction: column-reverse; }
.st-front { display: flex; justify-content: center; }
.st-front span {
  display: block; width: min(100%, 440px); text-align: center; padding: 10px 16px; border-radius: 12px;
  background: linear-gradient(180deg, #34564a, #2a473c); color: #f3f4f8; font-weight: 800; letter-spacing: .02em;
  box-shadow: inset 0 0 0 4px #8a6a45, 0 4px 10px rgba(0,0,0,.15);
}
.st-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 2px 6px; }
.st-grid {
  --min: 72px; --gap: 8px;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(var(--min), 1fr)); gap: var(--gap);
  min-width: calc(var(--cols) * var(--min) + (var(--cols) - 1) * var(--gap));
}
.st-seat {
  --c: var(--border-strong);
  position: relative; min-height: 60px; min-width: 0; padding: 16px 4px 7px; border-radius: 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--border);
}
.st-no { position: absolute; top: 3px; left: 7px; font-size: 10.5px; font-weight: 700; color: var(--text-3); font-family: var(--font-num); }
.st-name { max-width: 100%; font-weight: 800; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-seat.is-pending .st-name { color: var(--text-3); }
.st-seat.is-set {
  border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface));
  animation: bb-pop .35s cubic-bezier(.2, 1.4, .4, 1);
}
.st-seat.is-set::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 10px 10px 0 0; background: var(--c);
}
.st-seat.is-empty { border-style: dashed; background: transparent; }
.st-seat.is-empty .st-name { color: var(--text-3); font-weight: 600; font-size: 13px; }
.st-toggle { display: flex; justify-content: center; }
.st-print-head { display: none; }

@media (max-width: 520px) {
  .st-grid { --min: 54px; --gap: 6px; }
  .st-seat { min-height: 54px; padding: 15px 2px 6px; }
  .st-name { font-size: 13px; }
}

/* 인쇄: 배치표만 깔끔하게 */
@media print {
  .breadcrumb, .game-hero, .content-wrap, .st-toggle, .st-actions, .st-skip, .st-summary, .bb-toast, .bb-modal-backdrop { display: none !important; }
  .game-shell { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
  .game-root { padding: 0 !important; min-height: 0 !important; }
  .st-print-head { display: block; text-align: center; margin-bottom: 6px; }
  .st-print-head h2 { font-size: 22px; margin: 0 0 2px; }
  .st-print-head p { margin: 0; font-size: 13px; color: #444; }
  .st-scroll { overflow: visible; }
  .st-grid { --min: 0px; min-width: 0; gap: 6px; }
  .st-front span { box-shadow: none; border: 2px solid #333; background: #fff !important; color: #000 !important; }
  .st-seat {
    break-inside: avoid; background: #fff !important; color: #000 !important; border: 1.5px solid #333 !important;
    animation: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .st-seat.is-set::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .st-seat.is-empty { border-style: dashed !important; }
  .st-no, .st-seat.is-empty .st-name { color: #666 !important; }
}
