/* ============================================================
   petit.css — 민쌤과 쁘띠바크 (교사 화면 · pt- 접두)
   학생 화면(pts-)은 petit-student.css — 여기 클래스와 충돌 금지.
   기존 토큰(--ink/--slate/--line/--surface/--paper)·btn 클래스 재사용.
   ============================================================ */

/* ===================== 생성 폼 (PTCreate) ===================== */
.pt-cat-count { font-weight: 600; color: var(--slate-2); }
.pt-cat-count.over { color: #b0451a; font-weight: 800; }

.pt-stepper { display: inline-flex; align-items: center; gap: 14px;
  border: 2px solid var(--line); border-radius: var(--r-md, 12px);
  background: var(--surface); padding: 8px 12px; }
.pt-step-btn { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; font-weight: 800;
  border: 1px solid var(--line); background: var(--paper, #faf7f2); color: var(--ink); cursor: pointer; }
.pt-step-btn:disabled { opacity: .4; cursor: default; }
.pt-step-btn:not(:disabled):active { transform: scale(.94); }
.pt-step-val { font-size: 15px; color: var(--slate); min-width: 84px; text-align: center; }
.pt-step-val b { font-size: 22px; font-weight: 800; color: var(--ink); }

/* ===================== 대시보드 (P2Dashboard) ===================== */
.pt-closed-banner { margin: 0 0 18px; font-size: 13.5px; font-weight: 700; color: #4a5a7a;
  background: #eef2f8; border: 1px solid #d5dded; border-radius: 12px; padding: 12px 16px; }

/* 라운드 헤더 — 초성 특대 뱃지 + 상태 칩 */
.pt-roundhead { display: flex; align-items: center; gap: 20px; margin: 6px 0 16px;
  padding: 18px 22px; border-radius: var(--r-lg, 16px);
  background: linear-gradient(150deg, #1b2432, #2b3648); color: #f2f0ea; box-shadow: var(--sh-1); }
.pt-choseong { flex: none; width: 92px; height: 92px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; font-weight: 800; color: #ffd36e;
  background: rgba(255, 211, 110, .12); border: 2px solid rgba(255, 211, 110, .55);
  box-shadow: 0 0 24px rgba(255, 211, 110, .18), inset 0 0 18px rgba(255, 211, 110, .08);
  text-shadow: 0 2px 10px rgba(255, 211, 110, .35); }
.pt-choseong.idle { color: rgba(242, 240, 234, .4); border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .05); box-shadow: none; text-shadow: none; }
.pt-roundmeta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-roundno { font-size: 17px; font-weight: 700; color: rgba(242, 240, 234, .85); }
.pt-roundno b { font-size: 26px; font-weight: 800; color: #fff; }
.pt-subchip { font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 999px; }
.pt-subchip.lobby { background: rgba(255, 255, 255, .12); color: rgba(242, 240, 234, .8); }
.pt-subchip.writing { background: #274a72; color: #a8ccf5; }
.pt-subchip.frozen { background: #6a4a14; color: #ffd36e; }
.pt-subchip.reveal { background: #4a2c6a; color: #d9baf5; }
.pt-subchip.result { background: #1f4a33; color: #9ee8bb; }
.pt-timer { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff;
  padding: 4px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.pt-timer.low { background: #6a2c14; color: #ffb088; animation: pt-blink 1s step-end infinite; }
.pt-timer.freeze { background: #274a72; color: #a8ccf5; font-size: 16px; }
.pt-stop-chip { font-size: 14px; font-weight: 800; padding: 6px 14px; border-radius: 999px;
  background: #ffd36e; color: #4a3208; }
@keyframes pt-blink { 50% { opacity: .55; } }

/* 오류 안내 · 전파 안내 · 제어 버튼 줄 */
.pt-err { margin: 0 0 14px; font-size: 13.5px; font-weight: 700; color: #8a4a1a;
  background: #fbf1e3; border: 1px solid #ecd6b6; border-radius: 12px; padding: 10px 16px; }
.pt-notice { margin: 0 0 14px; font-size: 13.5px; font-weight: 700; color: #1f6a58;
  background: #d8efe9; border: 1px solid #a8d8cb; border-radius: 12px; padding: 10px 16px;
  animation: pt-notice-in .25s var(--ease, ease) both; }
@keyframes pt-notice-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pt-rescore-hint { margin: -4px 0 14px; font-size: 12.5px; font-weight: 700; color: var(--slate);
  background: var(--paper, #faf7f2); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 14px; }
.pt-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.pt-ctrl-note { font-size: 13px; font-weight: 700; color: var(--slate); background: var(--paper, #faf7f2);
  border: 1px dashed var(--line); border-radius: 10px; padding: 9px 14px; }
.pt-lobby-note { font-size: 13.5px; color: var(--slate); margin: 0 0 18px; }

/* 0칸 경고 배너 */
.pt-zero-banner { margin: 0 0 16px; font-size: 13.5px; font-weight: 700; color: #8a4a1a;
  background: #fbf1e3; border: 1px solid #ecd6b6; border-radius: 12px; padding: 12px 16px; }
.pt-zero-banner b { color: #b0451a; }

/* 섹션 공통 */
.pt-section { margin: 24px 0; }
.pt-section-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-section-sub { font-size: 12px; font-weight: 600; color: var(--slate); }
.pt-count-badge { font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: var(--t2, #e8633c); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; }

/* 채운 칸 분포 — 참여자별 미니 바 */
.pt-fillgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 16px); padding: 14px 18px; }
.pt-fillrow { display: flex; align-items: center; gap: 10px; }
.pt-fillname { flex: 0 0 64px; font-size: 12.5px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-fillbar { flex: 1; height: 12px; border-radius: 99px; background: var(--paper-2, #ece7df); overflow: hidden; }
.pt-fillbar i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #3f6fa8, #6a9bd1); transition: width .5s var(--ease, ease); }
.pt-fillbar i.full { background: linear-gradient(90deg, #2f7a4f, #4a9d6a); }
.pt-fillnum { flex: 0 0 34px; font-size: 12px; font-weight: 800; color: var(--slate); text-align: right;
  font-variant-numeric: tabular-nums; }

/* 카테고리 카드 그리드 (판정) — 데스크톱 4열 → 모바일 1열 */
.pt-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pt-cat-card { background: var(--surface); border-radius: var(--r-lg, 16px); border: 1px solid var(--line);
  padding: 14px 16px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, box-shadow .2s; }
.pt-cat-card.open { border-color: #b89be0; box-shadow: 0 0 0 1px #b89be055, var(--sh-1); }
.pt-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-cat-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.pt-cat-tag { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  background: var(--paper, #faf7f2); color: var(--slate); }
.pt-cat-tag.open { background: #efe6fb; color: #6a4bb0; }
.pt-cat-empty { font-size: 11.5px; font-weight: 700; color: var(--slate-2); }

/* 클러스터 행 — 판정 뱃지·답·이름·✅/❌ 토글 */
.pt-cluster-list { display: flex; flex-direction: column; gap: 6px; }
.pt-cluster-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 10px; border-radius: 10px; background: var(--paper, #faf7f2); border: 1px solid var(--line); }
.pt-cluster-text { font-size: 14px; font-weight: 800; color: var(--ink); }
.pt-cluster-text em { font-style: normal; font-size: 12px; font-weight: 800; color: #6a4bb0; margin-left: 3px; }
.pt-cluster-names { font-size: 11.5px; color: var(--slate); display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.pt-cluster-names em { font-style: normal; }
.pt-judge { display: flex; gap: 4px; margin-left: auto; }
.pt-judge-btn { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; opacity: .65; transition: opacity .12s, border-color .12s; }
.pt-judge-btn:hover { opacity: 1; }
.pt-judge-btn:disabled { opacity: .35; cursor: default; }
.pt-judge-btn.ok.on { opacity: 1; border-color: #2f7a4f; background: #dcefe3; box-shadow: 0 0 0 1px #2f7a4f55; }
.pt-judge-btn.no.on { opacity: 1; border-color: #b0451a; background: #fbe3d8; box-shadow: 0 0 0 1px #b0451a55; }
/* ≒ 기준 동일(유사답안 인정) — 켜지면 보라 톤으로 "기준과 겹친 답" 상태 표시 */
.pt-judge-btn.link { font-weight: 900; color: #6a4bb0; }
.pt-judge-btn.link.on { opacity: 1; border-color: #6a4bb0; background: #ece4fb; box-shadow: 0 0 0 1px #6a4bb055; }

/* 판정 뱃지 — ⭐금색 / 🟢초록 / ❌빨강 / ⬜회색 / ✅·⛔ 오버라이드 */
.pt-vbadge { flex: none; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pt-v-unique { background: #fbf0cf; color: #8a6d1a; border: 1px solid #ecd88f; }
.pt-v-dup { background: #dcefe3; color: #2f7a4f; }
.pt-v-wrong { background: #fbe3d8; color: #b0451a; }
.pt-v-empty { background: var(--paper-2, #ece7df); color: var(--slate); }
.pt-v-accepted { background: #d8efe9; color: #1f6a58; border: 1px solid #a8d8cb; }
.pt-v-rejected { background: #f2d7d7; color: #9c2b2b; }

/* 🙋 인정요청 큐 */
.pt-appeal-list { display: flex; flex-direction: column; gap: 10px; }
.pt-appeal-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid #ecd6b6; border-left: 4px solid #e8a13c;
  border-radius: 12px; padding: 12px 16px; }
.pt-appeal-main { font-size: 13.5px; color: var(--ink); }
.pt-appeal-word { font-weight: 800; color: #8a5a1a; }
/* 공개 전 카드의 요청 — 낱말을 점으로 가림(스포일러 차단) */
.pt-appeal-word.masked { color: var(--slate-2); letter-spacing: .12em; }
.pt-appeal-reason { flex: 1 1 240px; font-size: 12.5px; color: var(--slate); line-height: 1.5; }
.pt-appeal-btns { display: flex; gap: 6px; margin-left: auto; }

/* 누적 점수판 */
.pt-scores { display: flex; flex-direction: column; gap: 6px; }
.pt-score-row { display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; }
.pt-score-row.top { background: linear-gradient(90deg, #fdf7e6, var(--surface) 55%); border-color: #ecd88f; }
.pt-score-rank { flex: 0 0 30px; font-size: 15px; font-weight: 800; color: var(--slate); text-align: center; }
.pt-score-name { flex: 1; font-size: 14px; font-weight: 800; color: var(--ink); }
.pt-score-delta { font-size: 12px; font-weight: 800; color: #2f7a4f; background: #dcefe3;
  border-radius: 999px; padding: 2px 9px; }
.pt-score-val { font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.pt-t-footer { display: flex; justify-content: flex-end; gap: 12px; margin: 30px 0 10px; }

/* 대시보드 반응형 — 4열 → 2열 → 1열 */
@media (max-width: 900px) {
  .pt-cats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pt-cats { grid-template-columns: 1fr; }
  .pt-roundhead { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .pt-choseong { width: 72px; height: 72px; font-size: 40px; border-radius: 18px; }
  .pt-fillgrid { grid-template-columns: 1fr; }
  .pt-appeal-btns { margin-left: 0; width: 100%; }
  .pt-t-footer { flex-direction: column-reverse; }
}

/* ============================================================
   프로젝션 (P3Present) — 다크 무대 · 실명 클러스터 비노출
   ============================================================ */
.pt-present { min-height: 100vh; background: linear-gradient(160deg, #171f2c, #232d3d); color: #f2f0ea;
  display: flex; flex-direction: column; }
.pt-present-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pt-present-brand { font-size: 19px; font-weight: 800; }
.pt-present-mid { display: flex; align-items: center; gap: 14px; }
.pt-present-choseong-mini { width: 44px; height: 44px; border-radius: 12px; font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  color: #ffd36e; background: rgba(255, 211, 110, .12); border: 1.5px solid rgba(255, 211, 110, .5); }
.pt-present-roundno { font-size: 16px; font-weight: 700; color: rgba(242, 240, 234, .8); }
.pt-present-clock { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 4px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.pt-present-clock.low { background: #6a2c14; color: #ffb088; animation: pt-blink 1s step-end infinite; }
.pt-present-body { flex: 1; padding: 32px; max-width: 1080px; margin: 0 auto; width: 100%; overflow-y: auto; }
.pt-stage-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 12px; }

/* 로비 */
.pt-present-logo { font-size: 56px; font-weight: 800; letter-spacing: -.02em; margin-top: 30px;
  text-shadow: 0 4px 30px rgba(255, 211, 110, .25); }
.pt-present-tag { font-size: 18px; color: rgba(242, 240, 234, .65); margin: 0; }
.pt-present-join { margin-top: 26px; font-size: 22px; color: rgba(242, 240, 234, .85); }
.pt-present-join b { font-size: 44px; font-weight: 800; letter-spacing: .12em; color: #ffd36e; margin-left: 10px; }
.pt-present-joined { font-size: 16px; color: rgba(242, 240, 234, .6); }

/* 작성 중 — 초성 메가 뱃지 + 대형 시계 */
.pt-present-choseong { width: 200px; height: 200px; border-radius: 44px; margin-top: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 120px; font-weight: 800; color: #ffd36e;
  background: rgba(255, 211, 110, .1); border: 3px solid rgba(255, 211, 110, .55);
  box-shadow: 0 0 60px rgba(255, 211, 110, .22), inset 0 0 40px rgba(255, 211, 110, .08);
  text-shadow: 0 4px 22px rgba(255, 211, 110, .4); }
.pt-present-choseong.frozen { animation: pt-freeze-pulse 1.6s ease-in-out infinite; }
@keyframes pt-freeze-pulse { 50% { box-shadow: 0 0 90px rgba(168, 204, 245, .4); border-color: #a8ccf5; } }
.pt-present-bigclock { font-size: 72px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.pt-present-bigclock.low { color: #ffb088; animation: pt-blink 1s step-end infinite; }

/* STOP 대형 연출 */
.pt-stop-flash { font-size: 58px; font-weight: 800; color: #ffd36e; letter-spacing: -.01em;
  text-shadow: 0 6px 40px rgba(255, 211, 110, .45); animation: pt-stop-pop .5s var(--ease, ease) both; }
@keyframes pt-stop-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.pt-grace-note { font-size: 19px; font-weight: 700; color: #a8ccf5; }

/* 익명 히트 요약 — k칸 채운 학생 수 분포(이름 없음) */
.pt-heat { margin-top: 26px; width: 100%; max-width: 640px; }
.pt-heat-title { font-size: 15px; font-weight: 800; color: rgba(242, 240, 234, .85); margin-bottom: 12px; }
.pt-heat-title span { font-weight: 600; color: rgba(242, 240, 234, .55); }
.pt-heat-bars { display: flex; align-items: flex-end; justify-content: center; gap: 14px; min-height: 160px; }
.pt-heat-col { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 1 56px; }
.pt-heat-count { font-size: 14px; font-weight: 800; color: #ffd36e; min-height: 18px; }
.pt-heat-bar { width: 100%; max-width: 44px; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #4a7ab5, #33567f); transition: height .5s var(--ease, ease); }
.pt-heat-bar.full { background: linear-gradient(180deg, #ffd36e, #c9973a); }
.pt-heat-label { font-size: 12px; font-weight: 700; color: rgba(242, 240, 234, .6); }
.pt-heat-full-note { margin-top: 12px; font-size: 17px; font-weight: 800; color: #ffd36e; }

/* 카드 공개 헤더 */
.pt-present-reveal-head { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; }
.pt-present-choseong-mid { flex: none; width: 84px; height: 84px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px; font-weight: 800; color: #ffd36e;
  background: rgba(255, 211, 110, .1); border: 2px solid rgba(255, 211, 110, .5); }
.pt-present-h1 { font-size: 34px; font-weight: 800; margin: 18px 0 8px; }
.pt-present-h2 { font-size: 26px; font-weight: 800; }
.pt-present-h3 { font-size: 17px; font-weight: 800; color: rgba(242, 240, 234, .85); margin-bottom: 10px; }
.pt-present-stopline { font-size: 16px; font-weight: 800; color: #ffd36e; margin-top: 4px; }
.pt-present-hint { font-size: 13.5px; color: rgba(242, 240, 234, .55); margin-top: 4px; }

/* 카드 그리드 + 3D flip — 뒷면 ❓ → 앞면 답 클러스터 */
.pt-present-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pt-pcard { perspective: 1100px; min-height: 210px; }
.pt-pcard.clickable { cursor: pointer; }
.pt-pcard-inner { position: relative; width: 100%; height: 100%; min-height: 210px;
  transform-style: preserve-3d; transition: transform .65s cubic-bezier(.34, 1.2, .64, 1); }
.pt-pcard.open .pt-pcard-inner { transform: rotateY(180deg); }
.pt-pcard-back, .pt-pcard-face { position: absolute; inset: 0; border-radius: 18px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pt-pcard-back { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(155deg, #3a2c62, #2a2148); border: 2px solid #6a4bb0;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35); }
.pt-pcard.clickable .pt-pcard-back:hover { border-color: #ffd36e; }
.pt-pcard-q { font-size: 52px; }
.pt-pcard-cat-back { font-size: 18px; font-weight: 800; color: rgba(242, 240, 234, .85); }
.pt-pcard-face { transform: rotateY(180deg); overflow-y: auto; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 211, 110, .35); }
.pt-pcard-cat { font-size: 14px; font-weight: 800; color: rgba(242, 240, 234, .65); }
.pt-hero-answer { font-size: 26px; font-weight: 800; color: #ffd36e; line-height: 1.25;
  text-shadow: 0 2px 14px rgba(255, 211, 110, .3); }
.pt-pcluster-list { display: flex; flex-direction: column; gap: 5px; }
.pt-pcluster { display: flex; align-items: center; gap: 7px; font-size: 16px; line-height: 1.35; }
.pt-pcluster-mark { flex: none; font-size: 13px; }
.pt-pcluster-text { font-weight: 700; }
.pt-pcluster.unique .pt-pcluster-text { color: #ffd36e; font-weight: 800; }
.pt-pcluster.wrong .pt-pcluster-text { color: rgba(242, 240, 234, .45); text-decoration: line-through; }
.pt-pcluster-count { font-size: 13px; font-weight: 800; color: #9ee8bb; background: rgba(158, 232, 187, .12);
  border-radius: 999px; padding: 1px 8px; }
.pt-pcluster-empty { font-size: 14px; color: rgba(242, 240, 234, .5); }

/* 라운드 결과 — 유일답 칩 + 점수 TOP */
.pt-present-result { margin-top: 30px; display: flex; flex-direction: column; gap: 26px; align-items: center; }
.pt-present-uniques { text-align: center; }
.pt-unique-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pt-unique-chip { font-size: 17px; font-weight: 800; color: #4a3208; background: #ffd36e;
  border-radius: 999px; padding: 8px 18px; box-shadow: 0 4px 16px rgba(255, 211, 110, .25); }
.pt-unique-chip b { font-weight: 700; color: #7a5a14; margin-right: 6px; font-size: 13px; }
.pt-present-scores { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.pt-present-score-row { display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 12px 20px; }
.pt-present-score-row.r1 { background: rgba(255, 211, 110, .16); box-shadow: inset 0 0 0 1.5px rgba(255, 211, 110, .5); }
.pt-present-medal { flex: 0 0 32px; font-size: 20px; font-weight: 800; text-align: center; }
.pt-present-score-name { flex: 1; font-size: 18px; font-weight: 800; }
.pt-present-score-delta { font-size: 14px; font-weight: 800; color: #9ee8bb; }
.pt-present-score-val { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-present .empty-note { text-align: center; color: rgba(242, 240, 234, .6); }

/* ── 순위 발표 연출(PTPodiumShow) — 금색 포디움 · 다크 무대 톤 ── */
.pt-ceremony { width: 100%; max-width: 720px; margin: 4px auto 10px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pt-ceremony-btn { box-shadow: 0 6px 26px rgba(255, 211, 110, .25); }

.pt-podium { display: flex; align-items: flex-end; justify-content: center; gap: 18px;
  width: 100%; min-height: 280px; }
.pt-podium-slot { flex: 1; max-width: 220px; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center; gap: 10px; min-width: 0; }
.pt-podium-cards { display: flex; flex-direction: column; gap: 8px; width: 100%; opacity: 0; }
.pt-podium-cards.in { animation: pt-podium-pop .6s cubic-bezier(.34, 1.45, .64, 1) both; }
@keyframes pt-podium-pop {
  0% { opacity: 0; transform: translateY(30px) scale(.55); }
  70% { opacity: 1; transform: translateY(-6px) scale(1.06); }
  100% { opacity: 1; transform: none; }
}
.pt-podium-card { display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 10px; border-radius: 16px;
  background: rgba(255, 211, 110, .13); border: 1.5px solid rgba(255, 211, 110, .55);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .3); }
.pt-podium-medal { font-size: 30px; line-height: 1.1; }
.pt-podium-name { font-size: 19px; font-weight: 800; color: #fff; word-break: keep-all; }
.pt-podium-score { font-size: 14px; font-weight: 800; color: #ffd36e; font-variant-numeric: tabular-nums; }

.pt-podium-base { width: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #4a3208;
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(180deg, #ffd36e, #c9973a);
  box-shadow: 0 10px 30px rgba(255, 211, 110, .22), inset 0 2px 0 rgba(255, 255, 255, .35);
  opacity: 0; transition: opacity .45s var(--ease, ease); }
.pt-podium-base.in { opacity: 1; }
.pt-podium-base.r1 { height: 122px; font-size: 38px; }
.pt-podium-base.r2 { height: 88px; }
.pt-podium-base.r3 { height: 62px; }
.pt-podium-slot.vacant .pt-podium-base { opacity: .16; } /* 공동 순위로 비는 단(예: 1,1,3의 2단) */

.pt-ceremony-table { animation: pt-podium-pop .5s var(--ease, ease) both; }
.pt-ceremony-replay { color: rgba(242, 240, 234, .8); }

/* 컨페티 — 전체 화면 오버레이(클릭 통과), CSS 조각 낙하 */
.pt-confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 60; }
.pt-confetti i { position: absolute; top: -24px; border-radius: 2px; opacity: 0;
  animation-timing-function: cubic-bezier(.3, .4, .6, .95); animation-fill-mode: both; }
.pt-confetti i.a { animation-name: pt-confetti-a; }
.pt-confetti i.b { animation-name: pt-confetti-b; }
@keyframes pt-confetti-a {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: .85; transform: translate(6vw, 108vh) rotate(680deg); }
}
@keyframes pt-confetti-b {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: .85; transform: translate(-7vw, 108vh) rotate(-740deg); }
}

/* 프로젝션 반응형 */
@media (max-width: 1000px) {
  .pt-present-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .pt-present-bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px; }
  .pt-present-body { padding: 20px; }
  .pt-present-grid { grid-template-columns: 1fr; }
  .pt-present-choseong { width: 140px; height: 140px; font-size: 84px; border-radius: 32px; }
  .pt-present-bigclock { font-size: 52px; }
  .pt-stop-flash { font-size: 40px; }
  .pt-present-logo { font-size: 40px; }
  .pt-podium { gap: 10px; min-height: 220px; }
  .pt-podium-name { font-size: 15px; }
  .pt-podium-medal { font-size: 24px; }
  .pt-podium-base.r1 { height: 92px; font-size: 30px; }
  .pt-podium-base.r2 { height: 66px; }
  .pt-podium-base.r3 { height: 48px; }
}

/* ── STOP자 기준 1점제 (기획안 v1.1) — 대시보드 무효 배너·득점 마크·기준 강조 ── */
.pt-void-banner { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.6;
  background: #4a2f2a; color: #ffd9cf; border: 1.5px solid #7a4a3d; }
.pt-void-warn { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.6;
  background: #fdf1e2; color: #8a4a1a; border: 1.5px solid #ecc9a3; }
.pt-scoremark { flex: none; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: #ffe3c4; color: #97501a; white-space: nowrap; }
.pt-cluster-row.base { background: #fdf3e7; border-radius: 10px; box-shadow: inset 0 0 0 1.5px #ecc9a3; }
/* ≒ 기준 동일 클러스터 — 기준(주황)과 구별되는 보라 톤 + 상태 칩 */
.pt-cluster-row.linked { background: #f6f1fd; box-shadow: inset 0 0 0 1.5px #cdbaef; }
.pt-linkchip { flex: none; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: #ece4fb; color: #6a4bb0; border: 1px solid #cdbaef; white-space: nowrap; }
.pt-linkbtn { color: #6a4bb0; border-color: #cdbaef; }
/* 프로젝션 — 기준 클러스터·라운드 무효 무대 */
.pt-pcluster.base .pt-pcluster-text { color: #ffb46e; font-weight: 800; }
.pt-present-void { text-align: center; padding: 34px 20px; border-radius: 18px;
  background: rgba(207, 63, 42, .12); border: 1.5px solid rgba(207, 63, 42, .4); }
.pt-present-void-big { font-size: 40px; font-weight: 900; margin-bottom: 12px; }
.pt-present-void p { font-size: 17px; line-height: 1.7; margin: 0 0 8px; }
.pt-present-void-sub { font-size: 14px !important; opacity: .75; }
.pt-cat-hidden { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--slate);
  background: var(--paper-2, #ece7df); border-radius: 10px; padding: 10px 12px; }

/* ── 주제 팩·주제 편집 (기획안 §4-3) ── */
.pt-pack-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pt-pack-btn { font-size: 13px; font-weight: 800; color: var(--slate); background: var(--surface, #fff);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.pt-pack-btn:hover { border-color: var(--ink); color: var(--ink); }
.pt-topic { margin: 6px 0 18px; }
.pt-topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pt-topic-chip { font-size: 13.5px; font-weight: 700; color: var(--ink); background: #fbf0cf;
  border: 1.5px solid #ecd88f; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.pt-topic-chip:hover { border-color: #c9a94f; }
.pt-topic-chip.add { background: transparent; color: var(--slate); border-style: dashed; }
/* 최종 발표 블록 — 라운드 결과와 구분되는 상단 경계 */
.pt-final-block { margin-top: 26px; padding-top: 22px; border-top: 1.5px dashed rgba(242, 240, 234, .25); }

/* ── 모둠 편성 미리보기 (기획안 v1.2 §5) ── */
.pt-group-preview { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pt-group-preview-row { display: flex; gap: 10px; align-items: baseline; font-size: 13px;
  background: var(--surface, #fff); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.pt-group-preview-row b { flex: none; color: var(--ink); }
.pt-group-preview-row span { color: var(--slate); line-height: 1.5; }

/* ── 모둠방 대시보드 (기획안 v1.2 §5) ── */
.pt-ggrid { display: flex; flex-direction: column; gap: 12px; }
.pt-gcard { background: var(--surface, #fff); border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.pt-gcard.result { border-color: #b9d8a8; }
.pt-gcard.frozen { border-color: #f0b9a4; }
.pt-gcard-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; flex-wrap: wrap; }
.pt-gcard-head b { font-size: 15px; }
.pt-gcard-score { font-size: 13px; font-weight: 800; color: #1f6a58; }
.pt-gcard-toggle { margin-left: auto; color: var(--slate); }
.pt-gcard-body { padding: 0 16px 14px; }
.pt-gcats { display: flex; flex-direction: column; gap: 10px; }
.pt-gcat-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; margin: 6px 0 4px; }
.pt-gcat-head em { font-style: normal; font-weight: 700; color: var(--slate); }
.pt-subchip.playing { background: #e3ecf7; color: #33608f; }
/* 모둠방 프로젝션 무대 */
.pt-present-choseong.mid2 { font-size: 96px; }
.pt-gstage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; width: min(900px, 92%); margin: 22px auto 0; }
.pt-gstage-card { border: 1.5px solid rgba(242, 240, 234, .22); border-radius: 16px; padding: 18px 14px; text-align: center; }
.pt-gstage-card.frozen { border-color: rgba(255, 180, 110, .55); background: rgba(255, 180, 110, .07); }
.pt-gstage-card.reveal { border-color: rgba(255, 211, 110, .5); }
.pt-gstage-card.result { border-color: rgba(158, 232, 187, .55); background: rgba(158, 232, 187, .06); }
.pt-gstage-name { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.pt-gstage-sub { font-size: 13.5px; opacity: .8; }
.pt-gstage-stop { margin-top: 8px; font-size: 14px; font-weight: 800; color: #ffd36e; }
.pt-gstage-progress, .pt-gstage-score { margin-top: 8px; font-size: 15px; font-weight: 800; color: #9ee8bb; }
/* 다음 라운드 초성 지정 칩 */
.pt-cho-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.pt-cho-chip { min-width: 44px; font-size: 15px; font-weight: 800; color: var(--slate); background: var(--surface, #fff);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; cursor: pointer; }
.pt-cho-chip.on { color: var(--ink); border-color: var(--ink); background: #fbf0cf; }

/* ── 라운드 진행 중 확대 모드(live) — 전자칠판에서 교실 뒤까지 보이게 ── */
.pt-roundhead.live { padding: 26px 30px; gap: 28px; }
.pt-roundhead.live .pt-choseong { width: 180px; height: 180px; border-radius: 36px; font-size: 112px;
  animation: pt-cho-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.pt-roundhead.live .pt-roundno { font-size: 21px; }
.pt-roundhead.live .pt-roundno b { font-size: 34px; }
.pt-roundhead.live .pt-subchip { font-size: 16px; padding: 8px 18px; }
.pt-roundhead.live .pt-timer { font-size: 38px; font-weight: 900; padding: 8px 20px; border-radius: 16px; }
.pt-roundhead.live .pt-stop-chip { font-size: 16px; }
@keyframes pt-cho-pop { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } to { transform: none; opacity: 1; } }
@media (max-width: 768px) {
  .pt-roundhead.live .pt-choseong { width: 110px; height: 110px; font-size: 64px; border-radius: 24px; }
  .pt-roundhead.live .pt-timer { font-size: 26px; }
}

/* ── ✋ STOP 대형 배너 — 전자칠판에서 유예 카운트다운을 크게 ── */
.pt-stop-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 18px 24px; border-radius: 16px;
  background: linear-gradient(140deg, #a24a1e, #d97a33); color: #fff; box-shadow: var(--sh-1);
  animation: pt-stopbanner-in .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.pt-stop-banner-main { font-size: 26px; font-weight: 900; }
.pt-stop-banner-count { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 6px 18px; }
.pt-stop-banner.urgent { animation: pt-stopbanner-pulse .5s ease-in-out infinite alternate; }
@keyframes pt-stopbanner-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pt-stopbanner-pulse { from { filter: brightness(1); } to { filter: brightness(1.25); } }
@media (max-width: 768px) {
  .pt-stop-banner-main { font-size: 18px; }
  .pt-stop-banner-count { font-size: 20px; }
}

/* ── 라운드 시작 준비 팝업 (기획 v1.3) ── */
.pt-start-modal { position: relative; width: min(560px, 94vw); max-height: 88vh; overflow-y: auto;
  background: var(--surface, #fff); border-radius: 20px; padding: 26px 26px 24px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.pt-start-modal-title { font-size: 22px; font-weight: 900; color: var(--ink); }
.pt-start-modal-sub { margin: 6px 0 14px; font-size: 13.5px; color: var(--slate); line-height: 1.5; }
.pt-start-modal .pt-topic { margin-bottom: 4px; }

/* ── 카드 공개 큰 화면 (기획 v1.4) ──
   교실 뒤에서도 읽히도록 낱말 34px·판정 버튼 44px 이상. 전자칠판(보통 1280~1920px) 기준. */
.pt-bigbtn { margin-left: auto; }
.pt-cat-zoom { cursor: pointer; border: 0; font-family: inherit; }
.pt-cat-zoom:hover { filter: brightness(.95); }

.ptrv-overlay { position: fixed; inset: 0; z-index: 120;
  background: rgba(20, 23, 29, .78); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: overlayIn .2s var(--ease); }
.ptrv-modal { position: relative; display: flex; flex-direction: column;
  width: min(1100px, 96vw); max-height: 92vh;
  background: var(--surface, #fff); border-radius: 22px; box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
  animation: popIn .25s var(--ease); overflow: hidden; }

.ptrv-top { display: flex; align-items: center; gap: 16px; padding: 16px 66px 14px 24px;
  border-bottom: 1px solid var(--line); }
.ptrv-kicker { font-size: 14px; font-weight: 800; color: #6a4bb0; white-space: nowrap; }
.ptrv-dots { display: flex; gap: 7px; flex-wrap: wrap; flex: 1; }
.ptrv-dot { width: 13px; height: 13px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid var(--line); background: var(--paper-2, #ece7df); transition: transform .12s var(--ease); }
.ptrv-dot.done { background: #b89be0; border-color: #b89be0; }
.ptrv-dot.cur { transform: scale(1.45); border-color: #6a4bb0; }
.ptrv-x { position: absolute; top: 12px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  padding: 0; font-size: 17px; background: var(--paper-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ptrv-x:hover { background: var(--line); }

.ptrv-body { flex: 1; overflow-y: auto; padding: 26px 30px 24px; }
.ptrv-cat { font-size: 44px; font-weight: 900; letter-spacing: -.02em; text-align: center;
  color: var(--ink); line-height: 1.15; }
/* ✋ STOP한 학생의 답 = 이 카드의 기준 낱말 */
.ptrv-hero { margin: 16px auto 0; max-width: 720px; text-align: center;
  font-size: 26px; font-weight: 900; color: #8a5a1a;
  background: #fdf3e7; border: 2px solid #ecc9a3; border-radius: 14px; padding: 12px 20px; }

/* 뒷면 — 아직 안 뒤집은 카드 */
.ptrv-back { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 44px 0 30px; }
.ptrv-back-emoji { font-size: 72px; line-height: 1; }
.ptrv-back-note { margin: 0; font-size: 19px; font-weight: 700; color: var(--slate); }
.ptrv-back-note b { color: #6a4bb0; font-size: 22px; }
.ptrv-flip { font-size: 24px; font-weight: 900; font-family: inherit; cursor: pointer;
  padding: 18px 44px; border-radius: 999px; border: 0; color: #fff; background: #6a4bb0;
  box-shadow: 0 8px 22px rgba(106, 75, 176, .35); transition: transform .12s var(--ease); }
.ptrv-flip:hover:not(:disabled) { transform: translateY(-2px); }
.ptrv-flip:disabled { opacity: .5; cursor: default; }

.ptrv-empty { text-align: center; font-size: 18px; color: var(--slate-2); padding: 34px 0; }
.ptrv-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.ptrv-row { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--surface); }
.ptrv-row.base { background: #fdf3e7; border-color: #ecc9a3; }
.ptrv-row.linked { background: #f6f1fd; border-color: #cdbaef; }
.ptrv-row.out { opacity: .55; }
.ptrv-row.out .ptrv-word { text-decoration: line-through; }
.ptrv-row-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ptrv-word { font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.ptrv-count { font-size: 20px; font-weight: 900; color: #6a4bb0; }
.ptrv-mark { font-size: 14px; font-weight: 800; padding: 4px 11px; border-radius: 999px;
  background: #fbf0cf; color: #8a6d1a; white-space: nowrap; }
.ptrv-linkchip { font-size: 14px; font-weight: 800; padding: 4px 11px; border-radius: 999px;
  background: #ece4fb; color: #6a4bb0; white-space: nowrap; }
.ptrv-vbadge { font-size: 13px; font-weight: 800; padding: 4px 11px; border-radius: 999px;
  margin-left: auto; white-space: nowrap; }
.ptrv-row-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.ptrv-names { display: flex; gap: 10px; flex-wrap: wrap; flex: 1;
  font-size: 15px; font-weight: 700; color: var(--slate); }
.ptrv-names em { font-style: normal; }
.ptrv-judge { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ptrv-jbtn { font-size: 16px; font-weight: 800; font-family: inherit; cursor: pointer;
  min-height: 44px; padding: 9px 18px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--surface); color: var(--slate); opacity: .8;
  transition: all .12s var(--ease); }
.ptrv-jbtn:hover:not(:disabled) { opacity: 1; }
.ptrv-jbtn:disabled { opacity: .35; cursor: default; }
.ptrv-jbtn.ok.on { opacity: 1; border-color: #2f7a4f; background: #dcefe3; color: #2f7a4f; }
.ptrv-jbtn.no.on { opacity: 1; border-color: #b0451a; background: #fbe3d8; color: #b0451a; }
.ptrv-jbtn.link { color: #6a4bb0; }
.ptrv-jbtn.link.on { opacity: 1; border-color: #6a4bb0; background: #ece4fb; }
.ptrv-blank { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--slate-2); text-align: center; }

.ptrv-appeals { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 18px; }
.ptrv-appeals-title { font-size: 17px; font-weight: 900; color: #8a5a1a; margin-bottom: 10px; }
.ptrv-appeal { border: 1.5px solid #ecd6b6; border-left: 5px solid #e8a13c; border-radius: 12px;
  padding: 13px 17px; margin-bottom: 10px; }
.ptrv-appeal-main { font-size: 19px; color: var(--ink); }
.ptrv-appeal-word { font-weight: 900; color: #8a5a1a; }
.ptrv-appeal-reason { margin-top: 5px; font-size: 15px; color: var(--slate); line-height: 1.5; }
.ptrv-appeal-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }

.ptrv-nav { display: flex; align-items: center; gap: 12px; padding: 14px 24px;
  border-top: 1px solid var(--line); background: var(--paper, #f7f4ef); }
.ptrv-navbtn { font-size: 16px; font-weight: 800; font-family: inherit; cursor: pointer;
  min-height: 46px; padding: 10px 22px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.ptrv-navbtn:disabled { opacity: .35; cursor: default; }
.ptrv-navbtn.primary { border-color: #6a4bb0; background: #6a4bb0; color: #fff; margin: 0 auto; }
.ptrv-navhint { margin: 0 auto; font-size: 13.5px; color: var(--slate-2); }

@media (max-width: 900px) {
  .ptrv-overlay { padding: 0; }
  .ptrv-modal { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .ptrv-cat { font-size: 30px; }
  .ptrv-hero { font-size: 20px; }
  .ptrv-word { font-size: 25px; }
  .ptrv-body { padding: 18px 16px; }
  .ptrv-judge { margin-left: 0; width: 100%; }
  .ptrv-jbtn { flex: 1; padding: 9px 10px; font-size: 14px; }
}
