/* ============================================================
   worldcup.css — 사상가 월드컵 (lessonType: "wc")
   콘셉트: "박물관 소장품 × 토너먼트 아레나"
   — 한지(파피루스) 종이 위 먹빛 타이포 + 금박 포인트 + 세리프 디스플레이.
   교사 대시보드는 같은 팔레트의 라이트 톤, 학생 화면은 종이 질감 무대.
   ============================================================ */
/* 제목용 폰트 — 그리운 체리 1스푼 (셀프호스팅: 학교망 CDN 차단에도 안전) */
@font-face {
  font-family: "Griun Cherry 1 Spoon";
  src: url("/fonts/Griun_Cherry1SpoonRg.ttf") format("truetype");
  font-weight: 400 900;   /* 단일 굵기 파일 — 굵게 지정돼도 이 파일로 렌더 */
  font-display: swap;
}

:root {
  --wcInk: #22201b;          /* 먹 */
  --wcInk2: #5b564a;         /* 옅은 먹 */
  --wcPaper: #f4efe4;        /* 한지 */
  --wcPaper2: #ece5d3;       /* 짙은 한지 */
  --wcLine: #d9d0bb;         /* 종이 괘선 */
  --wcGold: #b8860b;         /* 금박 */
  --wcGoldSoft: #e8c766;
  --wcLaurel: #3e5f45;       /* 월계수 */
  --wcRed: #a4443a;          /* 인주(도장) */
  --wcSerif: "Griun Cherry 1 Spoon", "Nanum Myeongjo", serif;
}

/* ================= 학생: 종이 무대 ================= */
.wc-paper {
  min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(1100px 500px at 50% -10%, #fffdf6 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 34px, #00000006 34px 35px),
    var(--wcPaper);
  color: var(--wcInk);
  display: flex; flex-direction: column;
}
.wc-stage { max-width: 560px; width: 100%; margin: 0 auto; padding: 0 16px 84px; flex: 1; display: flex; flex-direction: column; }
.wc-scroll { flex: 1; padding-top: 6px; }

/* 상단 바 */
.wc-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 10px; border-bottom: 2px solid var(--wcInk); margin-bottom: 14px; }
.wc-top-title { font-family: var(--wcSerif); font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 7px; }
.wc-top-emblem { font-size: 18px; }
.wc-top-g { font-family: inherit; font-size: 11.5px; font-weight: 800; color: var(--wcPaper);
  background: var(--wcInk); border-radius: 3px; padding: 3px 8px; letter-spacing: .5px; }
.wc-top-leave { background: none; border: none; font-size: 13px; color: var(--wcInk2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* 엠블럼(월계수 링) */
.wc-emblem { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; font-size: 34px;
  background: radial-gradient(circle at 35% 30%, #fffdf4, var(--wcPaper2));
  border: 2px solid var(--wcGold); box-shadow: 0 0 0 5px var(--wcPaper), 0 0 0 6.5px var(--wcGoldSoft); }
.wc-emblem.big { width: 88px; height: 88px; font-size: 42px; margin-top: 30px; }

/* ---------- 입장 ---------- */
.wc-enter-stage { justify-content: center; align-items: center; padding: 26px 16px; }
.wc-enter-card { width: 100%; max-width: 420px; text-align: center; }
.wc-enter-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 4px; color: var(--wcGold); margin-bottom: 2px; }
.wc-enter-title { font-family: var(--wcSerif); font-size: 34px; font-weight: 900; margin: 0 0 8px; letter-spacing: -0.5px; }
.wc-enter-sub { font-size: 14px; color: var(--wcInk2); line-height: 1.65; margin: 0 0 18px; }
.wc-pinbox { position: relative; margin-bottom: 16px; }
.wc-pin-input { width: 100%; box-sizing: border-box; text-align: center; font-size: 30px; font-weight: 900;
  letter-spacing: 16px; padding: 14px 0 12px; color: var(--wcInk);
  background: #fffdf6; border: 2px solid var(--wcInk); border-radius: 12px; outline: none; font-family: var(--wcSerif); }
.wc-pin-input:focus { border-color: var(--wcGold); box-shadow: 0 0 0 3px #b8860b33; }
.wc-pin-input::placeholder { color: #c9c0a8; letter-spacing: 10px; }
.wc-pinbox-label { position: absolute; top: -8px; left: 14px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.5px; color: var(--wcGold); background: var(--wcPaper); padding: 0 6px; }
.wc-namegrid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 18px; max-height: 210px; overflow-y: auto; }
.wc-name { border: 1.5px solid var(--wcLine); border-radius: 999px; padding: 8px 16px; font-size: 13.5px;
  font-weight: 700; color: var(--wcInk2); background: #fffdf6; cursor: pointer; transition: all .13s; }
.wc-name:hover { border-color: var(--wcInk); color: var(--wcInk); }
.wc-name.on { background: var(--wcInk); border-color: var(--wcInk); color: var(--wcPaper); }

/* CTA */
.wc-cta { width: 100%; padding: 15px; border: none; border-radius: 12px; font-size: 16px; font-weight: 900;
  font-family: var(--wcSerif); letter-spacing: .5px; cursor: pointer; transition: all .15s;
  background: var(--wcInk); color: var(--wcPaper); box-shadow: 0 4px 0 #00000030; }
.wc-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 #00000030; }
.wc-cta.off { background: #cfc7b2; color: #8f8a7a; cursor: default; box-shadow: none; }
.wc-err { font-size: 13px; color: var(--wcRed); font-weight: 700; margin: 0 0 10px; }

/* ---------- 대기(로비) ---------- */
.wc-lobby { text-align: center; padding-top: 8px; }
.wc-lobby-title { font-family: var(--wcSerif); font-size: 24px; font-weight: 900; margin: 4px 0 14px; }
.wc-lobby-members { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.wc-member { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  color: var(--wcInk2); background: #fffdf6; border: 1.5px solid var(--wcLine); border-radius: 999px; padding: 5px 13px 5px 5px; }
.wc-member b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wcPaper2); color: var(--wcInk); font-size: 12px; }
.wc-member.me { border-color: var(--wcGold); }
.wc-member.me b { background: var(--wcGold); color: #fff; }
.wc-lobby-hint { font-size: 13.5px; color: var(--wcInk2); line-height: 1.7; }

/* ---------- 진행 도트 ---------- */
.wc-progress { display: flex; gap: 7px; justify-content: center; margin: 2px 0 14px; }
.wc-dot { width: 9px; height: 9px; border-radius: 50%; background: #d8cfba; transition: all .3s; }
.wc-dot.done { background: var(--wcInk); }
.wc-dot.cur { background: var(--wcGold); transform: scale(1.45); box-shadow: 0 0 0 3px #b8860b2e; }

/* ---------- 매치 헤더 ---------- */
.wc-match-head { text-align: center; margin-bottom: 6px; }
.wc-round-tag { display: inline-block; font-family: var(--wcSerif); font-size: 12px; font-weight: 800;
  letter-spacing: 2px; color: var(--wcPaper); background: var(--wcInk); padding: 5px 16px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%); }
.wc-dilemma { position: relative; font-family: var(--wcSerif); font-size: 16.5px; font-weight: 800;
  line-height: 1.6; color: var(--wcInk); margin: 12px 6px 4px; padding: 0 10px; }
.wc-dilemma::before { content: "“"; position: absolute; left: -8px; top: -14px; font-size: 44px;
  color: var(--wcGoldSoft); font-family: var(--wcSerif); }

/* ---------- VS 대결 ---------- */
.wc-vs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.wc-vs-badge { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-6deg);
  z-index: 2; font-family: var(--wcSerif); font-size: 15px; font-weight: 900; letter-spacing: 1px;
  color: #fff; background: var(--wcRed); border-radius: 50%; width: 40px; height: 40px;
  display: grid; place-items: center; box-shadow: 0 3px 8px #a4443a55, 0 0 0 3px var(--wcPaper);
  pointer-events: none; }
.wc-fighter { position: relative; border: 2px solid var(--wcLine); border-radius: 16px;
  background: #fffdf6; padding: 20px 10px 16px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; cursor: pointer; transition: all .16s;
  box-shadow: 0 2px 0 #00000012; }
.wc-fighter b { font-family: var(--wcSerif); font-size: 18px; font-weight: 900; color: var(--wcInk); letter-spacing: -0.3px; }
.wc-fighter-tag { font-size: 11px; color: var(--wcInk2); line-height: 1.45; }
.wc-fighter-quote { font-family: var(--wcSerif); font-size: 11px; color: var(--wcInk2); font-style: italic;
  line-height: 1.5; margin-top: 3px; padding-top: 5px; border-top: 1px dashed var(--wcLine); }
/* 초상 사진 — 메달리온과 같은 링 스타일 */
.wc-face { border-radius: 50%; object-fit: cover; display: inline-block;
  box-shadow: inset 0 -3px 8px #0003, 0 0 0 2.5px var(--wcPaper), 0 0 0 4px var(--wcLine); background: var(--wcPaper2); }
.wc-fighter.on .wc-face { box-shadow: inset 0 -3px 8px #0003, 0 0 0 2.5px #fdf7e3, 0 0 0 4.5px var(--wcGold); }
.wc-mychamp-facewrap { margin-bottom: 8px; }
.wc-mychamp-facewrap .wc-face, .wc-mychamp-facewrap .wc-fighter-medal { box-shadow: inset 0 -3px 8px #0003, 0 0 0 3px #fdf8e9, 0 0 0 5px var(--wcGold); }
/* 타 모둠 관전 스트립 */
.wc-others-grid { display: flex; flex-direction: column; gap: 6px; }
.wc-other { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--wcInk2); }
.wc-other span { width: 44px; font-weight: 800; }
.wc-other b { width: 52px; text-align: right; font-size: 11.5px; }
.wc-other.sealed b { color: var(--wcGold); }
.wc-other-bar { flex: 1; height: 6px; border-radius: 3px; background: #e6ddc8; overflow: hidden; }
.wc-other-bar div { height: 100%; border-radius: 3px; background: var(--wcInk2); transition: width .5s; }
.wc-other.sealed .wc-other-bar div { background: var(--wcGold); }
.wc-fighter-medal { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--wcSerif); font-size: 26px; font-weight: 900; color: #fffdf6;
  box-shadow: inset 0 -3px 8px #0003, 0 0 0 2.5px var(--wcPaper), 0 0 0 4px var(--wcLine);
  transition: box-shadow .16s; }
.wc-fighter:hover { border-color: var(--wcInk2); transform: translateY(-2px); }
.wc-fighter.on { border-color: var(--wcGold); background: #fdf7e3;
  box-shadow: 0 0 0 3px #b8860b2b, 0 6px 14px #b8860b22; transform: translateY(-3px); }
.wc-fighter.on .wc-fighter-medal { box-shadow: inset 0 -3px 8px #0003, 0 0 0 2.5px #fdf7e3, 0 0 0 4.5px var(--wcGold); }
.wc-fighter-crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) scale(0) rotate(-14deg);
  font-size: 24px; transition: transform .28s cubic-bezier(.2, 1.7, .4, 1); filter: drop-shadow(0 2px 2px #0002); }
.wc-fighter.on .wc-fighter-crown { transform: translateX(-50%) scale(1) rotate(-8deg); }
.wc-fighter:disabled { cursor: default; }
.wc-rework-note { font-size: 13px; color: #8a5a12; background: #faf0d4; border: 1.5px dashed var(--wcGold);
  border-radius: 10px; padding: 10px 13px; margin: 12px 0 0; line-height: 1.6; }

/* ---------- 토의/근거 ---------- */
.wc-discuss-banner { margin-top: 14px; font-size: 13px; color: var(--wcLaurel); background: #e9efe6;
  border: 1.5px solid #3e5f4533; border-radius: 10px; padding: 10px 13px; text-align: center; }
.wc-reason-box { margin-top: 12px; }
.wc-reason-box.locked { opacity: .62; }
.wc-reason-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.wc-reason-label { font-family: var(--wcSerif); font-size: 14px; font-weight: 900; color: var(--wcInk); }
.wc-duty-badge { font-size: 11.5px; font-weight: 800; color: var(--wcInk2); background: var(--wcPaper2);
  border-radius: 999px; padding: 4px 11px; }
.wc-duty-badge.me { color: #fff; background: var(--wcLaurel); }
.wc-ta { width: 100%; box-sizing: border-box; border: 2px solid var(--wcInk); border-radius: 12px;
  background: #fffdf6; padding: 12px 14px; font-size: 14.5px; line-height: 1.65; font-family: inherit;
  color: var(--wcInk); outline: none; resize: vertical; min-height: 84px; }
.wc-ta:focus { border-color: var(--wcGold); box-shadow: 0 0 0 3px #b8860b26; }
.wc-ta:disabled { background: var(--wcPaper2); border-color: var(--wcLine); }
.wc-reason-meter { display: flex; align-items: center; gap: 10px; margin: 7px 2px 14px; }
.wc-reason-meterbar { flex: 1; height: 5px; border-radius: 3px; background: #ded5bf; overflow: hidden; }
.wc-reason-meterbar div { height: 100%; border-radius: 3px; background: var(--wcGold); transition: width .25s; }
.wc-reason-count { font-size: 12px; font-weight: 800; color: var(--wcInk2); min-width: 46px; text-align: right; }
.wc-reason-count.ok { color: var(--wcLaurel); }

/* ---------- 구분선 ---------- */
.wc-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; }
.wc-divider::before, .wc-divider::after { content: ""; flex: 1; height: 1.5px; background: var(--wcLine); }
.wc-divider span { font-family: var(--wcSerif); font-size: 12.5px; font-weight: 900; letter-spacing: 2px; color: var(--wcInk2); }

/* ---------- 크롬북·데스크톱: 경기 화면 2열(좌=경기 7 : 우=대진표·관전 3) ---------- */
@media (min-width: 1100px) {
  .wc-stage.wc-wide { max-width: 1120px; }
  .wc-duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 40px; align-items: start; }
  .wc-aside { position: sticky; top: 10px; }
  .wc-aside .wc-divider { margin-top: 10px; }
}

/* ---------- 브래킷: 세로 등정형(8강 → 위로 → 🏆) + 연결선 ---------- */
.wcbv { max-width: 460px; margin: 0 auto; padding: 6px 2px; }
.wcb-m { position: relative; border: 1.5px solid var(--wcLine); border-radius: 10px;
  background: #fffdf6; font-size: 12px; overflow: hidden; min-width: 0; }
.wcb-m span { display: block; padding: 6px 8px; line-height: 1.3; color: var(--wcInk2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcb-m span + span { border-top: 1px dashed var(--wcLine); }
.wcb-m span.w { font-weight: 900; color: var(--wcInk); background: #f6edd2; }
.wcb-m span.l { color: #b6ad97; text-decoration: line-through; }
.wcb-m.cur { border-color: var(--wcGold); box-shadow: 0 0 0 2.5px #b8860b26; }
/* 꼭대기: 트로피·결승 */
.wcbv-final { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wcbv-final-label { font-family: var(--wcSerif); font-size: 10.5px; font-weight: 900; letter-spacing: 3px; color: var(--wcGold); }
.wcbv-final-box .wcb-m { width: 130px; border-width: 2px; border-color: var(--wcGold); box-shadow: 0 3px 10px #b8860b22; }
.wcb-champ { font-family: var(--wcSerif); font-size: 14px; font-weight: 900; color: var(--wcInk); min-height: 21px; }
.wcb-champ b { color: var(--wcRed); }
/* 라운드 행 — 준결승 2칸·8강 4칸 */
.wcbv-row { display: grid; gap: 10px; }
.wcbv-row.sf { grid-template-columns: repeat(2, 1fr); padding: 0 6%; }
.wcbv-row.qf { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wcbv-row.qf .wcb-m { font-size: 11px; }
.wcbv-row.qf .wcb-m span { padding: 5px 6px; }
/* 위로 오르는 연결선 — '⊓'(양쪽 세로선이 아래 경기 상단에 닿음) + 중앙 스텁이 위 경기로 */
.wcbv-join { display: grid; height: 26px; }
.wcbv-join.q { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wcbv-join.f { grid-template-columns: 1fr; padding: 0 6%; }
.wcbv-j { position: relative; width: 50%; margin: 14px auto 0; height: 12px;
  border: 2px solid var(--wcLine); border-bottom: none; border-radius: 10px 10px 0 0; }
.wcbv-j::before { content: ""; position: absolute; left: 50%; top: -14px; width: 2px; height: 14px;
  background: var(--wcLine); transform: translateX(-1px); }

/* ---------- 내가 쓴 근거 다듬기(기록이 본인) ---------- */
.wc-myreasons { margin-top: 14px; border: 1.5px dashed var(--wcLine); border-radius: 12px; padding: 10px 13px; }
.wc-myreasons summary { font-family: var(--wcSerif); font-size: 13px; font-weight: 900; color: var(--wcInk2); cursor: pointer; }
.wc-myreason { margin-top: 9px; }
.wc-myreason-head { font-size: 11px; font-weight: 800; color: var(--wcInk2); }
.wc-myreason-text { font-size: 12.5px; color: var(--wcInk); margin: 3px 0 0; line-height: 1.55; cursor: pointer; }
.wc-myreason-text span { font-size: 11px; color: var(--wcGold); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; margin-left: 4px; }
.wc-myreason-btns { display: flex; gap: 6px; margin-top: 6px; }
.wc-cta-mini { border: none; border-radius: 8px; padding: 7px 14px; font-size: 12px; font-weight: 900;
  font-family: var(--wcSerif); background: var(--wcInk); color: var(--wcPaper); cursor: pointer; }
.wc-cta-mini:disabled { background: #cfc7b2; color: #8f8a7a; cursor: default; }
.wc-cta-mini.ghost { background: transparent; border: 1.5px solid var(--wcLine); color: var(--wcInk2); }
.wc-myreason-msg { font-size: 12px; color: var(--wcLaurel); font-weight: 700; margin: 8px 0 0; }

/* ---------- 브래킷(폴백: 16강 등 라운드 열) ---------- */
.wc-bracket-cols { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.wc-bracket-col { flex: 1; min-width: 110px; display: flex; flex-direction: column; gap: 8px; justify-content: space-around; }
.wc-bracket-round { text-align: center; font-family: var(--wcSerif); font-size: 11.5px; font-weight: 900; letter-spacing: 1px; color: var(--wcInk2); }
.wc-bracket-m { border: 1.5px solid var(--wcLine); border-radius: 10px; overflow: hidden; background: #fffdf6; font-size: 12px; }
.wc-bracket-m.cur { border-color: var(--wcGold); box-shadow: 0 0 0 2.5px #b8860b26; }
.wc-bracket-m span { display: block; padding: 6px 9px; color: var(--wcInk2); }
.wc-bracket-m span + span { border-top: 1px dashed var(--wcLine); }
.wc-bracket-m span.w { font-weight: 900; color: var(--wcInk); background: #f6edd2; }
.wc-bracket-m span.l { color: #b6ad97; text-decoration: line-through; }

/* ---------- 봉인 축하 ---------- */
.wc-seal-pop { font-size: 60px; margin-top: 34px; animation: wcSealPop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.wc-seal-title { font-family: var(--wcSerif); font-size: 24px; font-weight: 900; margin: 8px 0 6px; animation: wcSealFade .5s .25s both; }
.wc-seal-sub { font-size: 14px; color: var(--wcInk2); line-height: 1.7; animation: wcSealFade .5s .4s both; }
.wc-seal-champ { font-family: var(--wcSerif); color: var(--wcRed); font-size: 1.2em; }
@keyframes wcSealPop { 0% { transform: scale(.2) rotate(-16deg); opacity: 0; } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes wcSealFade { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 결승 관전(학생) ---------- */
.wc-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2.5px; color: var(--wcInk2); }
.wc-kicker.gold { color: var(--wcGold); }
.wc-mychamp { position: relative; border: 2px solid var(--wcGold); border-radius: 18px; margin-top: 14px;
  background: linear-gradient(160deg, #fdf8e9, #f6ecce); padding: 20px 16px 18px;
  box-shadow: 0 6px 18px #b8860b1e; }
.wc-mychamp-medal { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center;
  font-family: var(--wcSerif); font-size: 28px; font-weight: 900; color: #fffdf6; margin-bottom: 8px;
  box-shadow: inset 0 -3px 8px #0003, 0 0 0 3px #fdf8e9, 0 0 0 5px var(--wcGold); }
.wc-mychamp-name { font-family: var(--wcSerif); font-size: 30px; font-weight: 900; color: var(--wcInk); margin-top: 2px; }
.wc-mychamp-tag { font-size: 12.5px; color: #8a6a14; margin-top: 3px; }
.wc-waitreveal { margin-top: 20px; font-size: 14px; line-height: 1.75; color: var(--wcInk2);
  border: 1.5px dashed var(--wcLine); border-radius: 14px; padding: 18px; background: #fffdf680; }
.wc-waitreveal-lock { display: block; font-size: 30px; margin-bottom: 6px; animation: wcLockSway 2.4s ease-in-out infinite; }
@keyframes wcLockSway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.wc-reveal-list { display: flex; flex-direction: column; gap: 9px; text-align: left; }
.wc-reveal-row { border: 1.5px solid var(--wcLine); border-radius: 13px; padding: 11px 14px; background: #fffdf6; }
.wc-reveal-row.mine { border-color: var(--wcGold); background: #fdf8e9; }
.wc-reveal-head { display: flex; align-items: baseline; gap: 10px; }
.wc-reveal-head b { font-size: 12px; color: var(--wcPaper); background: var(--wcInk); border-radius: 3px; padding: 2px 7px; }
.wc-reveal-champ { font-family: var(--wcSerif); font-size: 16px; font-weight: 900; color: var(--wcInk); }
.wc-reveal-reason { font-size: 12.5px; color: var(--wcInk2); margin: 6px 0 0; line-height: 1.55; }

/* ================= 교사 대시보드 ================= */
.wc-host { display: flex; flex-direction: column; min-height: 100vh; background: #faf8f2; }
.wc-host-head { padding: 14px 18px 10px; border-bottom: 2px solid var(--wcInk); background: #fffdf8; }
.wc-host-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wc-host-id { display: flex; align-items: baseline; gap: 10px; }
.wc-roomcode { font-family: var(--wcSerif); font-size: 27px; font-weight: 900; letter-spacing: 5px; color: var(--wcInk); }
.wc-count { font-size: 13px; color: var(--wcInk2); font-weight: 700; }
.wc-steps { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.wc-step { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--wcLine);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; background: #fffdf6;
  color: var(--wcInk2); cursor: pointer; transition: all .12s; }
.wc-step.on { background: var(--wcInk); border-color: var(--wcInk); color: var(--wcPaper); }
.wc-step.done { border-color: var(--wcGold); color: var(--wcGold); }
.wc-step-no { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--wcPaper2); color: var(--wcInk); font-size: 11px; font-weight: 900; }
.wc-step.on .wc-step-no { background: #fff3; color: var(--wcPaper); }
.wc-step.done .wc-step-no { background: #b8860b22; color: var(--wcGold); }

.wc-host-body { display: flex; flex: 1; min-height: 0; }
.wc-side { width: 340px; flex-shrink: 0; border-right: 1.5px solid var(--wcLine); padding: 14px;
  overflow-y: auto; background: #f6f2e7; display: flex; flex-direction: column; gap: 12px; }
.wc-main { flex: 1; padding: 18px; overflow-y: auto; }
@media (max-width: 900px) { .wc-host-body { flex-direction: column; } .wc-side { width: auto; border-right: 0; border-bottom: 1.5px solid var(--wcLine); } }

.wc-panel { border: 1.5px solid var(--wcLine); border-radius: 14px; background: #fffdf8; padding: 14px; }
.wc-panel-title { font-family: var(--wcSerif); font-size: 13.5px; font-weight: 900; color: var(--wcInk); margin-bottom: 8px; }
.wc-join { display: flex; gap: 12px; align-items: center; }
.wc-join-code { font-family: var(--wcSerif); font-size: 30px; font-weight: 900; letter-spacing: 5px; color: var(--wcInk); }
.wc-join-url { font-size: 12px; color: var(--wcInk2); }
.wc-pins { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.wc-pin-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 9px;
  border-radius: 8px; background: var(--wcPaper2); color: var(--wcInk); }
.wc-pin-row b { font-family: var(--wcSerif); letter-spacing: 2px; font-size: 15px; }
.wc-pin-n { margin-left: auto; color: var(--wcInk2); font-size: 12px; }
.wc-note-ok { font-size: 13px; color: var(--wcLaurel); margin: 0; }
.wc-warn { font-size: 12.5px; color: var(--wcRed); margin: 4px 0; }

.wc-stream { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.wc-stream-item { border: 1.5px solid var(--wcLine); border-radius: 10px; padding: 8px 11px; background: #fffdf6; }
.wc-stream-item.rework { border-color: var(--wcGold); border-style: dashed; background: #fdf7e3; }
.wc-stream-head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--wcInk2); font-weight: 700; }
.wc-stream-body { font-size: 13px; color: var(--wcInk); margin-top: 3px; word-break: break-all; line-height: 1.5; }

.wc-empty { text-align: center; color: var(--wcInk2); padding: 60px 20px; font-size: 15px; line-height: 1.8; }
.wc-groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wc-gcard { border: 1.5px solid var(--wcLine); border-radius: 14px; padding: 12px 14px; background: #fffdf8; }
.wc-gcard.empty { color: var(--wcInk2); display: flex; justify-content: space-between; }
.wc-gcard.sealed { border-color: var(--wcGold); box-shadow: 0 0 0 2.5px #b8860b22; }
.wc-gcard-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.wc-gcard-head b { font-family: var(--wcSerif); }
.wc-gcard-head span { font-size: 12px; color: var(--wcInk2); }
.wc-gcard-bar { height: 6px; border-radius: 3px; background: var(--wcPaper2); margin: 8px 0; overflow: hidden; }
.wc-gcard-bar div { height: 100%; background: linear-gradient(90deg, var(--wcGoldSoft), var(--wcGold)); border-radius: 3px; transition: width .4s; }
.wc-gcard-cur { font-size: 12.5px; color: var(--wcInk2); }
.wc-gcard-duty { display: block; margin-top: 2px; color: var(--wcLaurel); font-weight: 800; font-size: 12px; }
.wc-gcard-sealed { font-size: 13px; font-weight: 800; color: var(--wcGold); }
.wc-gcard-champ { font-family: var(--wcSerif); font-size: 15px; font-weight: 900; color: var(--wcRed); }

/* 결승 카드 플립 (전자칠판) */
.wc-final { margin-top: 24px; }
.wc-final-title { text-align: center; font-family: var(--wcSerif); font-size: 24px; font-weight: 900; margin: 0 0 16px; color: var(--wcInk); }
.wc-final-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.wc-flip { perspective: 800px; height: 178px; }
.wc-flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.wc-flip.open .wc-flip-inner { transform: rotateY(180deg); }
.wc-flip-front, .wc-flip-back { position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 10px; text-align: center; }
.wc-flip-front { background: linear-gradient(150deg, #33302a, #201d16); color: #d8cfae;
  font-family: var(--wcSerif); font-size: 17px; font-weight: 800; line-height: 1.6;
  border: 1.5px solid #4a463c; }
.wc-flip-back { background: linear-gradient(150deg, #fdf8e9, #f3e6c2); border: 2px solid var(--wcGold);
  transform: rotateY(180deg); }
.wc-flip-g { font-size: 11.5px; font-weight: 800; color: #8a6a14; letter-spacing: 1px; }
.wc-flip-name { font-family: var(--wcSerif); font-size: 22px; font-weight: 900; color: var(--wcInk); }
.wc-flip-tag { font-size: 11.5px; color: #8a6a14; }
.wc-flip-reason { font-size: 11px; color: #6f5a20; margin-top: 4px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.5; }
.wc-final-note { text-align: center; font-family: var(--wcSerif); font-size: 16px; font-weight: 900; color: var(--wcGold); margin-top: 16px; }

/* 오버레이 (QR 확대) */
.wc-overlay { position: fixed; inset: 0; background: #22201bcc; display: grid; place-items: center; z-index: 90; }
.wc-sheet { background: #fffdf8; border: 2px solid var(--wcInk); border-radius: 18px; padding: 26px; max-width: 92vw; }
