/* ============================================================
   screens.css — 화면별 스타일 (핀카드 모달, 학생/교사 화면)
   ============================================================ */

/* ===================== S3 핀 카드 모달 ===================== */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20,23,28,.55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: overlayIn .25s var(--ease);
}
@media (min-width: 520px) { .sheet-overlay { align-items: center; padding: 20px; } }

.sheet {
  position: relative; width: 100%; max-width: var(--maxw);
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--sh-3); animation: sheetUp .35s var(--ease);
}
@media (min-width: 520px) { .sheet { border-radius: var(--r-xl); max-height: 88vh; } }
.sheet-grip { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 42px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.7); z-index: 6; }
.sheet-x {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(20,23,28,.5);
  color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.sheet-x:hover { background: rgba(20,23,28,.7); }
.sheet-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }

.photoph { position: relative; width: 100%; height: 150px; overflow: hidden; }

/* 실제 사진 */
.photoreal { position: relative; width: 100%; height: 190px; overflow: hidden; background: var(--ink-2); }
.photoreal > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photoreal.split { display: flex; align-items: stretch; gap: 0; }
.photoreal.split .ph-half { position: relative; flex: 1; min-width: 0; margin: 0; overflow: hidden; }
.photoreal.split .ph-half img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photoreal.split .ph-half:first-child { filter: saturate(.7) contrast(.96); }
.ph-arrow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
  border: 3px solid #fff; box-shadow: var(--sh-2); }
.ph-tag { position: absolute; left: 8px; bottom: 8px; z-index: 2;
  font-size: 11px; font-weight: 700; color: #fff; background: rgba(20,23,28,.6);
  padding: 3px 9px; border-radius: 99px; backdrop-filter: blur(3px); letter-spacing: -.01em; }
.photoph-tag {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 10.5px; font-weight: 700; color: var(--c-ink);
  background: rgba(255,255,255,.8); padding: 3px 9px; border-radius: 99px;
}
.sheet-src { padding: 8px 18px 0; }
.sheet-pad { padding: 14px 18px 22px; display: flex; flex-direction: column; gap: 18px; }

.sheet-title .region-tag { font-size: 12px; font-weight: 800; color: var(--c); letter-spacing: .02em; }
.sheet-title h2 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; line-height: 1.2; }
.sheet-title .tagline { font-size: 14px; color: var(--slate); margin-top: 4px; }
.bg-text { font-size: 15px; line-height: 1.7; color: var(--ink-2); }

.qblock { display: flex; flex-direction: column; gap: 11px; }
.q-head { font-size: 16px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 8px; line-height: 1.4; }
.q-no { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 7px; flex-shrink: 0; }

/* Q1 유형 5택 */
.type-choices { display: flex; flex-direction: column; gap: 8px; }
.type-choice {
  display: flex; align-items: center; gap: 11px; text-align: left;
  padding: 13px 14px; border-radius: var(--r-md); border: 2px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 15px;
  transition: border-color .15s, background .15s, transform .1s;
}
.type-choice:hover:not(:disabled) { border-color: var(--c); }
.type-choice .tc-no { width: 24px; height: 24px; border-radius: 50%; background: var(--c-soft); color: var(--c-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.type-choice.on { border-color: var(--c); background: var(--c-soft); }
.type-choice.on .tc-no { background: var(--c); color: #fff; }
.type-choice .tc-label { flex: 1; }
.type-choice .tc-mark { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--c); color: #fff; }
.type-choice .tc-mark.wrongmark { background: var(--slate-2); }
.type-choice.right { border-color: var(--c); background: var(--c-soft); }
.type-choice.right .tc-no { background: var(--c); color: #fff; }
.type-choice.wrong { border-color: var(--line-2); background: var(--paper-2); opacity: .75; }
.type-choice:disabled { cursor: default; }

/* Q2 복수선택 */
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.checkrow {
  display: flex; align-items: center; gap: 11px; text-align: left;
  padding: 12px 14px; border-radius: var(--r-md); border: 2px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 15px; transition: border-color .15s, background .15s;
}
.checkrow:hover:not(:disabled) { border-color: var(--c); }
.checkrow .checkbox { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800; flex-shrink: 0; transition: background .15s, border-color .15s; }
.checkrow.on { border-color: var(--c); background: var(--c-soft); }
.checkrow.on .checkbox { background: var(--c); border-color: var(--c); }

/* Q2 빈칸 */
.blank-list { display: flex; flex-direction: column; gap: 12px; }
.blank-row label { display: block; font-size: 13.5px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.blank-row input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 2px solid var(--line);
  font-size: 15px; background: var(--surface); transition: border-color .15s;
}
.blank-row input:focus { outline: none; border-color: var(--c); }

/* Q2 택1 토글 카드 */
.toggle-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.tcard {
  display: flex; flex-direction: column; gap: 5px; text-align: left;
  padding: 14px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface);
  transition: border-color .15s, background .15s;
}
.tcard:hover:not(:disabled) { border-color: var(--c); }
.tcard b { font-size: 16px; font-weight: 800; }
.tcard span { font-size: 12.5px; color: var(--slate); line-height: 1.45; }
.tcard.on { border-color: var(--c); background: var(--c-soft); }
.tcard.on b { color: var(--c-ink); }

/* Q2 슬라이더 */
.slider-ends { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--c) 0%, var(--c-soft) 100%); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 4px solid #fff; box-shadow: var(--sh-2); cursor: pointer; }
.slider::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 4px solid #fff; box-shadow: var(--sh-2); cursor: pointer; }
.slider-now { text-align: center; font-size: 16px; font-weight: 800; color: var(--c-ink); margin: 10px 0 4px; }

.mini-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--slate); margin: 4px 0 6px; }
.ta { width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 2px solid var(--line); font-size: 15px; background: var(--surface); resize: vertical; line-height: 1.6; transition: border-color .15s; }
.ta:focus { outline: none; border-color: var(--c); }

/* 해설 블록 */
.explain-block { display: flex; flex-direction: column; gap: 12px; }
.verdict { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: var(--r-md); }
.verdict.ok { background: var(--t4-soft); }
.verdict.no { background: var(--paper-2); }
.verdict .v-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #fff; flex-shrink: 0; }
.verdict.ok .v-icon { background: var(--t4); }
.verdict.no .v-icon { background: var(--slate); }
.verdict b { font-size: 15px; display: block; }
.verdict span { font-size: 13.5px; color: var(--slate); }
.subj-code { display: inline-block; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--paper-2); padding: 3px 9px; border-radius: 7px; letter-spacing: .01em; }

/* 해설 속 사무동 사진 */
.explain-photo { margin: 12px 0 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.explain-photo img { width: 100%; height: 150px; object-fit: cover; display: block; }
.explain-photo figcaption { font-size: 11.5px; color: var(--slate); padding: 8px 10px; background: var(--paper); line-height: 1.45; }

/* ===================== T0 도입 화면 ===================== */
.t-intro { display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.intro-inner { max-width: 1000px; width: 100%; text-align: center; }
.intro-kicker { font-size: 13px; font-weight: 800; color: var(--t1); letter-spacing: .03em; }
.intro-q { font-size: clamp(28px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 14px 0 0; text-wrap: balance; }
.intro-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--slate); margin: 16px auto 0; max-width: 720px; line-height: 1.6; }
.intro-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 34px 0 0; }
.intro-photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.intro-photo img { width: 100%; height: clamp(220px, 30vh, 340px); object-fit: cover; display: block; }
.intro-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 22px 16px 13px; font-size: clamp(14px, 1.5vw, 17px); font-weight: 800; color: #fff; text-align: left; background: linear-gradient(to top, rgba(20,23,28,.82), transparent); }
.intro-photo .ic-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); border: 2px solid #fff; flex-shrink: 0; }
.intro-vs { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; box-shadow: var(--sh-2); }
.intro-note { font-size: 14.5px; color: var(--slate); margin: 22px 0 0; } .intro-note b { color: var(--ink); }
.intro-goals {
  margin: 22px 0 0; padding: 18px 20px;
  background: var(--t1-soft); border: 1px solid var(--t1);
  border-radius: var(--r-lg);
}
.intro-goals-title { font-size: 15px; font-weight: 800; color: var(--t1-ink); margin-bottom: 10px; }
.intro-goals ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.intro-goals li { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.intro-goals li b { color: var(--t1-ink); font-weight: 800; }
.intro-actions { margin-top: 28px; }

@media (max-width: 640px) {
  .intro-compare { grid-template-columns: 1fr; }
  .intro-vs { margin: -6px auto; }
}

/* ===================== 16:9 — 핀 카드 모달 넓게 ===================== */
@media (min-width: 880px) {
  .sheet { max-width: 680px; }
}

/* ===================== 0-1 랜딩 (16:9) ===================== */
.landing {
  flex: 1; display: flex; overflow: hidden; min-height: 100dvh;
}
.landing-hero {
  flex: none; width: 400px;
  padding: 52px 44px 40px;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1.5px solid var(--line);
  overflow-y: auto;
}
.landing-badge { display: inline-block; white-space: nowrap; font-size: 12.5px; font-weight: 800; color: var(--t2); background: var(--t2-soft); padding: 5px 12px; border-radius: 99px; letter-spacing: .01em; }
.landing-title { font-size: 48px; font-weight: 800; letter-spacing: -.04em; line-height: 1.08; margin-top: 20px; }
.landing-sub { font-size: 15.5px; color: var(--slate); margin-top: 16px; line-height: 1.7; }
.landing-roles { margin-top: auto; padding-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.landing-map-col { flex: 1; position: relative; overflow: hidden; background: var(--paper); }
.landing-map-col .map-wrap { position: absolute; inset: 0; }

/* 역할 버튼 */
.role-btn { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--sh-1); text-align: left; transition: transform .14s var(--ease), box-shadow .14s; border: 2px solid transparent; }
.role-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.role-btn.teacher:hover { border-color: var(--t1); }
.role-btn.student:hover { border-color: var(--t2); }
.role-emoji { font-size: 28px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--surface); border-radius: 14px; flex-shrink: 0; box-shadow: var(--sh-1); }
.role-text { flex: 1; display: flex; flex-direction: column; }
.role-text b { font-size: 17px; font-weight: 800; }
.role-text span { font-size: 12.5px; color: var(--slate); margin-top: 2px; }
.role-arrow { font-size: 20px; color: var(--slate-2); font-weight: 700; }
/* map-deco 하위 호환 (로그인 화면 등) */
.map-deco { position: relative; flex: 1; min-height: 230px; overflow: hidden; }
.map-deco .pin { pointer-events: none; }

/* ===================== S1 입장 (16:9 분할) ===================== */
/* 왼쪽 다크 브랜드 패널 */
.s1-kicker { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .04em; text-transform: uppercase; }
.s1-title { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: #fff; margin-top: 16px; }
.s1-title .hl { color: var(--t2); }
.s1-sub { font-size: 15px; color: rgba(255,255,255,.6); line-height: 1.7; }
.s1-map-mini {
  margin-top: auto; position: relative; height: 220px;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  opacity: .7;
}
/* 오른쪽 폼 */
.field-label { display: block; font-size: 13px; font-weight: 800; color: var(--slate); margin-bottom: 9px; letter-spacing: .01em; }
.code-input { width: 100%; padding: 18px; border-radius: var(--r-lg); border: 2.5px solid var(--line); background: var(--surface); font-size: 32px; font-weight: 800; text-align: center; letter-spacing: .25em; transition: border-color .15s; }
.code-input:focus { outline: none; border-color: var(--ink); }
.code-input::placeholder { color: var(--line-2); }
.inline-err { color: var(--t2); font-size: 13.5px; font-weight: 700; margin-top: 10px; }
.code-hint { font-size: 12.5px; color: var(--slate-2); margin-top: 10px; line-height: 1.6; }
.link { color: var(--t1); font-weight: 700; text-decoration: underline; font-size: inherit; }
.verified-row { margin-bottom: 18px; }
.ok-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--t4-soft); color: var(--t4-ink); font-size: 13.5px; font-weight: 800; padding: 7px 14px; border-radius: 99px; }

/* ===================== S2 미션 (16:9 — 헤더 + 좌지도/우사이드바) ===================== */
.s2-screen { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* 상단 헤더 바 */
.s2-header {
  flex: none; height: 62px; display: flex; align-items: center; gap: 16px;
  padding: 0 24px; background: var(--surface);
  border-bottom: 1.5px solid var(--line); box-shadow: var(--sh-1); z-index: 4; position: relative;
}
.s2-header-info { display: flex; flex-direction: column; }
.s2-kicker { font-size: 11px; font-weight: 700; color: var(--t2); letter-spacing: .06em; text-transform: uppercase; }
.s2-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.s2-header-gauge { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* 바디 = 지도(좌) + 사이드바(우) */
.s2-body { flex: 1; display: flex; overflow: hidden; }
.s2-map-col {
  flex: none; width: 60%; position: relative; overflow: hidden;
  background: var(--paper-2);
  border-right: 1.5px solid var(--line);
}
.s2-map-col .map-wrap { position: absolute; inset: 0; }
.s2-legend {
  position: absolute; bottom: 14px; left: 14px; z-index: 5;
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(243,241,236,.88); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 8px 12px; box-shadow: var(--sh-1);
}
.s2-legend-title { font-size: 11px; font-weight: 700; color: var(--slate); margin-right: 4px; }
.s2-leg { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; }
.s2-leg i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: block; }

/* 오른쪽 미션 사이드바 */
.s2-sidebar {
  flex: 1; display: flex; flex-direction: column;
  background: var(--surface); overflow: hidden;
  min-width: 0;
}
/* 중간 폭 노트북: 지도 비중 축소 */
@media (max-width: 1200px) {
  .s2-map-col { width: 50%; }
}
/* 좁은 화면·세로 태블릿: 지도/사이드바 세로 스택 (텍스트 잘림 방지) */
@media (max-width: 880px) {
  .s2-body { flex-direction: column; }
  .s2-map-col {
    width: 100%; height: 40vh; flex: none;
    border-right: none; border-bottom: 1.5px solid var(--line);
  }
  .s2-sidebar { width: 100%; flex: 1; min-height: 0; }
}
.mission-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.mission-panel-head {
  flex: none; padding: 16px 22px 14px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mission-panel-title { font-size: 14px; font-weight: 800; color: var(--slate); }
.mission-panel-count { font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.mission-panel-count span { font-size: 14px; font-weight: 600; color: var(--slate); }
.mission-list { flex: 1; overflow-y: auto; }
.mission-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.mission-item:hover { background: var(--paper); }
.mission-item:last-child { border-bottom: none; }
.mission-item.done-item .mission-item-name { color: var(--slate); }
.mission-icon {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-soft); color: var(--c-ink);
  font-size: 14px; font-weight: 800;
  border: 2px solid var(--c);
}
.mission-item-content { flex: 1; }
.mission-item-name { font-size: 14.5px; font-weight: 700; }
.mission-item-region { font-size: 12px; color: var(--slate); margin-top: 2px; }
.mission-check {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.mission-check.done { background: var(--t4-soft); color: var(--t4-ink); }
.mission-check.partial {
  background: var(--t3-soft); color: var(--t3-ink);
  font-size: 12px;
}
.mission-check.pending { background: var(--paper-2); color: var(--line-2); font-size: 10px; border: 1.5px dashed var(--line-2); }
.mission-panel-footer {
  flex: none; padding: 16px 22px;
  border-top: 1.5px solid var(--line);
  background: var(--surface);
}
.s2-hint { font-size: 13px; color: var(--slate); line-height: 1.55; margin-bottom: 10px; }
.s2-hint b { color: var(--ink); }
.s2-hint-done { color: var(--t4-ink); font-weight: 700; }

/* ===================== S4 의견 카드 ===================== */
.s4-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--surface); box-shadow: var(--sh-1); position: sticky; top: 0; z-index: 5; }
.back-btn { font-size: 14px; font-weight: 700; color: var(--slate); padding: 6px 4px; }
.back-btn:hover { color: var(--ink); }
.s4-scroll { flex: 1; overflow-y: auto; padding: 20px 20px 30px; display: flex; flex-direction: column; gap: 22px; }
.s4-hero h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.s4-hero p { font-size: 14px; color: var(--slate); margin-top: 6px; }
.s4-block { display: flex; flex-direction: column; gap: 11px; }
.s4-q { font-size: 16px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 9px; line-height: 1.4; }
.s4-q b { color: var(--t2-ink); }
.s4-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.bestpin-list { display: flex; flex-direction: column; gap: 8px; }
.bestpin { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface); transition: border-color .15s, background .15s; }
.bestpin:hover { border-color: var(--c); }
.bestpin .bp-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.bestpin .bp-name { flex: 1; text-align: left; font-weight: 800; font-size: 15px; }
.bestpin.on { border-color: var(--c); background: var(--c-soft); }
.oneline { width: 100%; padding: 13px 14px; border-radius: var(--r-md); border: 2px solid var(--line); font-size: 15px; background: var(--surface); transition: border-color .15s; }
.oneline:focus { outline: none; border-color: var(--t2); }
/* 비교표 — S4 공통점 도출 보조 */
.compare-table {
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; margin-bottom: 12px; background: var(--surface);
}
.compare-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; align-items: center;
  gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.compare-row:last-child { border-bottom: none; }
.compare-head { background: var(--paper-2); font-weight: 800; color: var(--slate); font-size: 12px; }
.ct-place { font-weight: 700; color: var(--ink); }
.ct-change { color: var(--ink-2); }
@media (max-width: 640px) {
  .compare-row { grid-template-columns: 1fr 1fr; }
  .ct-change { grid-column: 1 / 3; color: var(--slate); font-size: 12.5px; }
}
.vote-map { height: 220px; border-radius: var(--r-lg); border: 2px solid var(--line); }
.vote-target { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.vote-ghost { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9); border: 2px dashed var(--line-2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--slate); transition: transform .12s; }
.vote-target:hover .vote-ghost { transform: scale(1.12); border-color: var(--ink); }
.vote-pick { font-size: 14px; color: var(--slate); margin-top: 10px; }
.vote-pick b { color: var(--ink); }
.vcount { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; border: 2px solid #fff; box-shadow: var(--sh-1); }

/* ===================== S5 완료 / 대기 ===================== */
.s5-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 24px; gap: 18px; }
.s5-card { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: 34px 26px; text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.s5-check { width: 70px; height: 70px; border-radius: 50%; background: var(--t4); color: #fff; font-size: 36px; display: flex; align-items: center; justify-content: center; animation: checkPop .45s var(--ease); }
.s5-card h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.s5-msg { font-size: 14.5px; color: var(--slate); line-height: 1.65; }
.s5-wait { display: flex; align-items: center; font-size: 14px; color: var(--slate-2); font-weight: 700; margin-top: 4px; }
.dotpulse { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-2); margin: 0 2px; animation: dotp 1.2s infinite var(--ease); }
.dotpulse:nth-child(2){ animation-delay: .2s; } .dotpulse:nth-child(3){ animation-delay: .4s; }
@keyframes dotp { 0%,100%{ opacity:.3; transform: translateY(0);} 50%{ opacity:1; transform: translateY(-3px);} }
.s5-preview { width: 100%; margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 16px; }
.s5-preview-head { font-size: 14px; font-weight: 800; margin-bottom: 10px; text-align: left; }
.s5-review { margin-top: 4px; color: var(--slate); font-size: 13.5px; }

/* ===================== 교사 공통 셸 ===================== */
.t-shell { flex: 1; min-height: 100dvh; color: var(--ink); display: flex; flex-direction: column; }

/* T1 세션 생성 */
.t-create { max-width: 560px; margin: 0 auto; padding: 64px 28px 48px; }

/* 교사 내 학급 목록 */
.tlist-wrap { max-width: 960px; margin: 0 auto; padding: 40px 28px 48px; width: 100%; }
.tlist-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.tlist-title { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.tlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tlist-card {
  text-align: left; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 18px; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .14s var(--ease), box-shadow .14s, border-color .14s;
}
.tlist-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--t1); }
.tlist-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tlist-card-name { font-size: 17px; font-weight: 800; color: var(--ink); }
.tlist-badge { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; flex: none; }
.tlist-badge.active { background: var(--t4-soft); color: var(--t4-ink); }
.tlist-badge.presenting { background: var(--t3-soft); color: var(--t3-ink); }
.tlist-badge.closed { background: var(--paper-2); color: var(--slate); }
.tlist-card-code { font-size: 22px; font-weight: 900; letter-spacing: 2px; color: var(--t1-ink); font-variant-numeric: tabular-nums; }
.tlist-card-meta { font-size: 12.5px; color: var(--slate); }
.tlist-empty { text-align: center; color: var(--slate); padding: 48px 0; font-size: 15px; }
.tlist-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.tlist-who { font-size: 13px; font-weight: 700; color: var(--slate); }
.tc-kicker { font-size: 13px; font-weight: 800; color: var(--t1); letter-spacing: .02em; }
.tc-title { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-top: 10px; line-height: 1.15; }
.tc-desc { font-size: 15px; color: var(--slate); margin-top: 12px; }
.tc-form { margin-top: 34px; }
.t-input { width: 100%; padding: 16px 18px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface); font-size: 17px; transition: border-color .15s; }
.t-input:focus { outline: none; border-color: var(--ink); }
.stepper { display: flex; align-items: center; gap: 16px; }
.stepper button { width: 56px; height: 56px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); font-size: 28px; font-weight: 700; color: var(--ink); transition: border-color .12s, background .12s; }
.stepper button:hover:not(:disabled) { border-color: var(--ink); }
.stepper button:disabled { opacity: .35; }
.stepper-val { flex: 1; text-align: center; background: var(--surface); border-radius: 16px; border: 2px solid var(--line); padding: 10px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.stepper-val b { font-size: 30px; font-weight: 800; } .stepper-val span { font-size: 15px; color: var(--slate); }
.tc-note { font-size: 13px; color: var(--slate-2); margin-top: 10px; text-align: center; }
.tc-done { margin-top: 30px; }
.code-card { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 34px 28px; text-align: center; box-shadow: var(--sh-3); }
.code-card-label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .04em; }
.code-big { font-size: 68px; font-weight: 800; letter-spacing: .1em; margin: 8px 0; line-height: 1; }
.code-card-sub { font-size: 14px; color: rgba(255,255,255,.6); }
.share-guide { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.sg-step { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
.sg-step p { flex: 1; }
.sg-step span { width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--ink); flex-shrink: 0; }
.tc-actions { display: flex; gap: 10px; margin-top: 26px; }
.tc-actions .btn { flex: 1; }

/* T2 대시보드 */
.t-dash { max-width: 1100px; margin: 0 auto; padding: 28px 28px 40px; }
.t-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.t-bar-kicker { font-size: 13px; font-weight: 800; color: var(--t1); letter-spacing: .02em; }
.t-bar-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; }
.t-bar-code { background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 10px 20px; text-align: center; }
.t-bar-code span { display: block; font-size: 11px; color: rgba(255,255,255,.55); font-weight: 700; }
.t-bar-code b { font-size: 28px; font-weight: 800; letter-spacing: .1em; }
.dash-stats { display: flex; gap: 14px; margin: 24px 0; }
.dstat { flex: 1; background: var(--surface); border-radius: var(--r-lg); padding: 18px 22px; box-shadow: var(--sh-1); }
.dstat b { font-size: 32px; font-weight: 800; display: block; line-height: 1; }
.dstat span { font-size: 13.5px; color: var(--slate); font-weight: 600; margin-top: 5px; display: block; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.gcard { background: var(--surface); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 14px; border: 2px solid transparent; transition: border-color .2s; }
.gcard.complete { border-color: var(--t4); }
.gcard-top { display: flex; align-items: center; gap: 10px; }
.gcard-dot { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.gcard-name { font-size: 16px; font-weight: 800; flex: 1; }
.gcard-badge { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.gcard-badge.done { background: var(--t4-soft); color: var(--t4-ink); }
.gcard-badge.ready { background: var(--t3-soft); color: var(--t3-ink); }
.gcard-badge.wait { background: var(--paper-2); color: var(--slate); }
.t-footer { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.t-foot-note { font-size: 14px; color: var(--slate); }

/* T3 발표 · 전체보기 (프로젝션) */
.t-present { display: flex; flex-direction: column; min-height: 100vh; padding: 0; }
.present-bar { padding: 18px 30px; border-bottom: 1px solid var(--line); background: var(--surface); }
.present-actions { display: flex; gap: 10px; }
.present-main { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; padding: 18px 30px; min-height: 460px; }
.present-map-col { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.present-map { flex: 1; border-radius: var(--r-lg); border: 2px solid var(--line); min-height: 280px; }
.present-pin { position: absolute; transform: translate(-50%, -100%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: transform .14s; }
.present-pin:hover, .present-pin.on { transform: translate(-50%, -103%) scale(1.08); z-index: 5; }
.pp-head { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; box-shadow: var(--sh-pin); border: 2.5px solid #fff; }
.present-pin .pp-head > span { transform: rotate(45deg); font-size: 14px; line-height: 1; }
.present-pin.on .pp-head { outline: 3px solid var(--ink); outline-offset: 2px; }
.pp-label { font-size: 12px; font-weight: 800; background: rgba(255,255,255,.92); padding: 2px 8px; border-radius: 99px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pp-votes { display: flex; gap: 3px; margin-top: 1px; } .pp-votes i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.vote-legend { background: var(--surface); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--sh-1); }
.vl-title { font-size: 14px; font-weight: 800; }
.vl-rows { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.vl-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.vl-name { width: 130px; font-weight: 700; flex-shrink: 0; }
.vl-bar { flex: 1; height: 12px; background: var(--paper-2); border-radius: 99px; overflow: hidden; } .vl-bar i { display: block; height: 100%; border-radius: 99px; transition: width .5s var(--ease); }
.vl-row b { width: 20px; text-align: right; font-weight: 800; }
.present-detail { background: var(--surface); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--sh-1); overflow-y: auto; }
.pd-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 8px; }
.pd-section { margin-top: 22px; }
.pd-q { font-size: 15px; font-weight: 800; margin-bottom: 12px; } .pd-q span { color: var(--slate-2); font-weight: 600; font-size: 13px; }
.dist-chart { display: flex; flex-direction: column; gap: 9px; }
.dist-row { display: flex; align-items: center; gap: 11px; font-size: 13.5px; }
.dist-label { width: 150px; flex-shrink: 0; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.dist-no { width: 20px; height: 20px; border-radius: 50%; background: var(--c-soft); color: var(--c-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; }
.dist-bar { flex: 1; height: 16px; background: var(--paper-2); border-radius: 99px; overflow: hidden; } .dist-bar i { display: block; height: 100%; border-radius: 99px; transition: width .5s var(--ease); }
.dist-n { width: 20px; text-align: right; font-weight: 800; }
.pd-correct { margin-top: 12px; font-size: 13.5px; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.q2-collect { display: flex; flex-direction: column; gap: 9px; }
.q2-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; background: var(--paper); border-radius: var(--r-md); }
.q2-g { width: 24px; height: 24px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.q2-ans { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.empty-note { font-size: 13.5px; color: var(--slate-2); }
.opinion-gallery { border-top: 1px solid var(--line); background: var(--surface); padding: 16px 30px 20px; }
.og-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.og-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.og-card { flex-shrink: 0; width: 240px; background: var(--paper); border-radius: var(--r-lg); padding: 15px 16px; border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.og-card.empty { align-items: center; justify-content: center; min-height: 120px; flex-direction: row; gap: 10px; }
.og-card-top { display: flex; align-items: center; gap: 8px; }
.og-g { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.og-best { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.og-reason { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.og-common { font-size: 12px; color: var(--slate); line-height: 1.45; } .og-common b { color: var(--ink); margin-right: 4px; }
.og-pending { font-size: 13px; color: var(--slate-2); font-weight: 700; }

/* ===================== 데모 내비게이션 ===================== */
.demonav { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.demonav-fab { width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 22px; box-shadow: var(--sh-3); display: flex; align-items: center; justify-content: center; transition: transform .14s; }
.demonav-fab:hover { transform: scale(1.06); }
.demonav-panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 16px; width: 250px; }
.dn-title { font-size: 13px; font-weight: 800; margin-bottom: 12px; } .dn-title span { display: block; font-size: 11px; color: var(--slate-2); font-weight: 600; margin-top: 2px; }
.dn-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.dn-label { font-size: 11px; font-weight: 800; color: var(--slate); width: 30px; }
.dn-group button { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: var(--paper-2); color: var(--ink); transition: background .12s; }
.dn-group button:hover { background: var(--line); }
.dn-bottom { display: flex; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.dn-home, .dn-reset { flex: 1; font-size: 12px; font-weight: 800; padding: 9px; border-radius: 9px; }
.dn-home { background: var(--ink); color: #fff; } .dn-reset { background: var(--t2-soft); color: var(--t2-ink); }

@media (max-width: 760px) {
  .present-main { grid-template-columns: 1fr; }
  .t-present { height: auto; min-height: 100vh; }
  .present-map { min-height: 240px; }
}

/* ============================================================
   낱말 퍼즐 (핀 카드 내 단어 조합 미니게임)
   ============================================================ */
.puzzle {
  margin: 16px 0 18px;
  padding: 14px 14px 16px;
  border-radius: var(--r-md);
  background: var(--c-soft);
  border: 1.5px solid color-mix(in srgb, var(--c) 35%, transparent);
  transition: border-color .25s var(--ease);
}
.puzzle.solved { border-color: var(--c); }
.puzzle-head { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.puzzle-icon { font-size: 17px; }
.puzzle-head b { font-size: 14px; color: var(--c-ink); font-weight: 800; }
.puzzle-sub { font-size: 12px; color: var(--slate); margin-left: auto; }

.puzzle-slots { display: flex; gap: 7px; justify-content: center; margin-bottom: 14px; }
.puzzle-slots.shake { animation: pshake .5s; }
@keyframes pshake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}
.pslot {
  width: 46px; height: 50px; border-radius: 11px;
  background: rgba(255,255,255,.7);
  border: 2px dashed color-mix(in srgb, var(--c) 40%, transparent);
  font-size: 22px; font-weight: 800; color: var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s var(--ease);
}
.pslot.filled { background: #fff; border-style: solid; border-color: var(--c); box-shadow: var(--sh-1); }
.pslot.ok { background: var(--c); color: #fff; border-color: var(--c); }

.puzzle-tray { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.ptile {
  min-width: 46px; height: 50px; padding: 0 10px; border-radius: 11px;
  background: #fff; border: 1.5px solid var(--line);
  font-size: 22px; font-weight: 800; color: var(--ink);
  box-shadow: var(--sh-1); transition: all .15s var(--ease);
}
.ptile:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--c); }
.ptile:active:not(:disabled) { transform: translateY(0); }
.ptile.used { opacity: 0; pointer-events: none; }

.puzzle-hint { font-size: 12.5px; color: var(--slate); text-align: center; }
.puzzle-reveal {
  font-size: 13.5px; line-height: 1.6; color: var(--c-ink); font-weight: 600;
  background: rgba(255,255,255,.6); padding: 11px 13px; border-radius: 10px;
}

/* ============================================================
   연결 상태 배너
   ============================================================ */
.conn-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; padding: 9px 16px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700; box-shadow: var(--sh-2);
  display: flex; align-items: center; gap: 8px; max-width: 92vw;
}
.conn-banner.error { background: var(--ink); color: #fff; }
.conn-banner.expired { background: var(--t2-soft); color: var(--t2-ink); border: 1px solid var(--t2); }
.conn-banner .link { color: inherit; text-decoration: underline; font-weight: 800; }

/* ============================================================
   교사 로그인(구글)
   ============================================================ */
.tlogin .landing-top { margin-bottom: 8px; }
.tlogin-box {
  margin: 18px 16px 8px; padding: 22px 18px;
  background: rgba(255,255,255,.72); border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: 18px; box-shadow: var(--sh-1, 0 6px 18px rgba(0,0,0,.06));
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.gbtn-host { min-height: 44px; display: flex; justify-content: center; }
.tlogin-status { font-size: 13px; font-weight: 700; color: var(--slate, #667); margin: 0; }
.tlogin-note { font-size: 12px; line-height: 1.6; color: var(--slate, #778); margin: 4px 0 0; }
/* classmate 가입 유도 */
.signup-cta {
  margin-top: 16px; padding: 16px 18px;
  background: var(--t2-soft); border: 1px solid var(--t2);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.signup-cta-text { font-size: 13px; font-weight: 700; color: var(--t2-ink); }
.signup-cta-btn {
  display: inline-block; font-size: 14px; font-weight: 800;
  color: #fff; background: var(--t2); text-decoration: none;
  padding: 11px 18px; border-radius: var(--r-pill);
  transition: transform .12s var(--ease), box-shadow .15s;
  box-shadow: var(--sh-1);
}
.signup-cta-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.role-btn.back { justify-content: flex-start; gap: 12px; opacity: .92; }
.role-btn.back .role-arrow { margin-right: 2px; }

/* DemoNav 교사 계정 줄 */
.dn-account {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14);
}
.dn-who { font-size: 12px; font-weight: 700; color: #fff; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-logout {
  flex: none; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; border: 0; cursor: pointer;
}
.dn-logout:hover { background: rgba(255,255,255,.26); }

/* ============================================================
   PIN 카드 (교사 T1 — 모둠별 QR + PIN)
   ============================================================ */
.pin-section {
  margin: 20px 0 0;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: 16px;
  padding: 16px;
}
.pin-section-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 800; color: var(--c-ink);
  margin-bottom: 14px;
}
.btn-sm { padding: 6px 14px; font-size: 12px; }
.pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.pin-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: 14px; padding: 14px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.pin-card-top {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--c-ink);
}
.pin-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 800; flex: none;
}
.pin-card-label { font-size: 12px; color: var(--slate); }
.pin-number {
  font-size: 22px; font-weight: 900; letter-spacing: 3px;
  color: var(--c-ink); font-variant-numeric: tabular-nums;
}
.pin-hint { font-size: 12px; color: var(--slate); margin: 10px 0 0; text-align: center; }

/* 인쇄 시 PIN 그리드만 표시 */
@media print {
  .t-bar, .t-foot, .tc-form, .share-guide, .tc-actions, .demonav { display: none !important; }
  .pin-section { border: none; padding: 0; }
  .pin-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ============================================================
   대표참여자 입력 (학생 S1)
   ============================================================ */
.participant-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 12px;
}
.participant-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,.8); border: 1.5px solid var(--line, rgba(0,0,0,.1));
  border-radius: 12px; cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.participant-btn:hover:not(:disabled) {
  border-color: var(--brand, #4f8ef7);
  box-shadow: 0 0 0 3px rgba(79,142,247,.12);
}
.participant-icon { font-size: 18px; flex: none; }
.participant-name { flex: 1; font-size: 14px; font-weight: 700; color: var(--c-ink); }
.rejoin-tag {
  font-size: 11px; font-weight: 700; color: var(--brand, #4f8ef7);
  background: rgba(79,142,247,.1); padding: 3px 8px; border-radius: 999px; flex: none;
}

/* ============================================================
   교사 대시보드 — 모둠 카드 참여자 표시
   ============================================================ */
.gcard-members {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 4px 0 2px; min-height: 20px;
}
.gcard-member {
  font-size: 11px; font-weight: 600; color: var(--slate);
  background: rgba(0,0,0,.04); padding: 2px 8px; border-radius: 999px;
}
.gcard-member.empty { color: var(--line); font-style: italic; }
.escape-variant-badge {
  font-size: 10px; font-weight: 800; color: var(--t2-ink);
  background: var(--t2-soft); padding: 2px 7px; border-radius: 99px;
  margin-left: 6px; vertical-align: middle;
}
/* 5곳 미션 완료 현황 (교사 대시보드 모둠 카드) */
.gcard-stations {
  display: flex; gap: 5px; flex-wrap: wrap;
  margin: 8px 0 0; padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.station-chip {
  display: flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 7px; border-radius: 99px;
  background: var(--paper-2); color: var(--slate-2);
  border: 1px solid var(--line);
}
.station-chip.done {
  background: var(--t4-soft); color: var(--t4-ink);
  border-color: var(--t4);
}
.station-chip .sc-no {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 13px; font-weight: 800;
}

/* ============================================================
   탈출 미션 섹션 (PinCard 내)
   ============================================================ */
.escape-section {
  margin-top: 24px; padding: 18px 16px;
  border: 2px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.5);
  display: flex; flex-direction: column; gap: 12px;
}
.escape-section.escaped {
  border-color: var(--t4); background: var(--t4-soft);
}
.escape-header {
  display: flex; align-items: center; gap: 8px;
}
.escape-icon { font-size: 20px; }
.escape-title { font-size: 15px; font-weight: 800; color: var(--ink); flex: 1; }
.escape-badge {
  font-size: 11px; font-weight: 800;
  background: var(--ink); color: #fff;
  padding: 2px 8px; border-radius: 99px;
}
.escape-question {
  font-size: 14px; line-height: 1.7; font-weight: 600; color: var(--ink);
}
.escape-hint {
  font-size: 13px; color: var(--slate); background: var(--paper-2);
  padding: 10px 12px; border-radius: var(--r-md); line-height: 1.6;
}
.escape-hint-btn {
  font-size: 12.5px; font-weight: 700; color: var(--t1);
  text-decoration: underline; align-self: flex-start; cursor: pointer;
  background: none; border: none;
}
.escape-input-row {
  display: flex; gap: 8px; align-items: center;
}
.escape-input {
  flex: 1; padding: 12px 14px; border-radius: var(--r-md);
  border: 2px solid var(--line); font-size: 16px; font-weight: 700;
  background: var(--surface); transition: border-color .15s;
}
.escape-input:focus { outline: none; border-color: var(--ink); }
.escape-wrong {
  font-size: 13.5px; font-weight: 700; color: var(--t2);
}
.escape-success-msg {
  font-size: 14px; color: var(--t4-ink); font-weight: 700;
}
/* 생각해보기 — 탈출 후 모둠 토론용 (정답·제출 없음) */
.deepen-box {
  margin-top: 12px; padding: 14px 16px;
  background: rgba(255,255,255,.7); border: 1px dashed var(--t4);
  border-radius: var(--r-md);
}
.deepen-title {
  font-size: 12px; font-weight: 800; color: var(--t4-ink);
  letter-spacing: .02em; margin-bottom: 7px;
}
.deepen-q { font-size: 14.5px; line-height: 1.65; color: var(--ink); font-weight: 600; }

/* ============================================================
   T3 발표 화면 — 대형 프로젝터 가독성 (교실 뒤에서도 보이게)
   ============================================================ */
@media (min-width: 1440px) {
  .pd-q { font-size: 17px; }
  .pd-q span { font-size: 14px; }
  .pd-head h2 { font-size: 30px; }
  .dist-row { font-size: 15px; }
  .dist-label { width: auto; min-width: 140px; flex: 1; }
  .vl-row { font-size: 15px; }
  .og-card { width: 280px; }
  .og-best { font-size: 16px; }
  .og-reason { font-size: 14.5px; }
  .og-common { font-size: 13.5px; }
  .og-title { font-size: 16px; }
}
