/* 양세찬게임-번갈아가며 하는 스무고개퀴즈 전용 스타일(공통 틀은 style.css) */
:root { --ta: #2f7ed8; --ta-bg: #e6f0fc; --tb: #e0563f; --tb-bg: #fdebe7; }
.cats { flex-wrap: wrap; }
.cats .lvl { flex: 1 1 45%; }
/* 긴 제목이 폰에서 잘리지 않게 크기를 줄이고 낱말 단위로 줄바꿈한다 */
.home .logo h1 { font-size: 1.45rem; line-height: 1.25; word-break: keep-all; }
.sitebar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 6px; }
.sitelink { font: inherit; font-size: 14px; font-weight: 700; color: #2d2a3e; background: #fff; border: 2px solid #cfe3c6; border-radius: 999px; padding: 6px 12px; text-decoration: none; cursor: pointer; }
.sitelink:active { background: #eaf6e4; }
a.roomitem { display: block; text-decoration: none; color: inherit; }
a.roomitem b, a.roomitem small, .roomitem.here b, .roomitem.here small { display: block; }
a.roomitem small, .roomitem.here small { margin-top: 2px; }
.roomitem.here { opacity: .6; }
.roomitem.fixed { border: 2px solid #7bc96a; background: #f3fbef; }

/* 대기실: 팀 나누기 */
.teams2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.tcol { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); margin: 8px 0; }
.teams2 .tcol { margin: 0; }
.tcol h3 { margin: 0 0 6px; font-size: 16px; }
.tcol h3 small { font-weight: 400; color: #6a6a7a; }
.tcol.A { border-top: 5px solid var(--ta); background: var(--ta-bg); }
.tcol.B { border-top: 5px solid var(--tb); background: var(--tb-bg); }
.tcol.M { border-top: 5px solid #8a5cc8; }
.tcol.S { border-top: 5px solid #9aa0a8; }
.tcol .slot { min-height: 30px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tcol .slot em { color: #8a8a9a; font-size: 13px; font-style: normal; }
.pillbtn { cursor: pointer; font: inherit; font-size: 14px; border: 2px dashed #8a5cc8; background: #fff; }
.pillbtn:active { background: #f1e8fb; }
.prow .pact { flex-wrap: wrap; }
.btn.on { outline: 2px solid #2d2a3e; }

/* 게임 화면 */
.scorebar2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; margin: 6px 0; }
.scorebar2 .sc { border-radius: 14px; padding: 8px 10px; text-align: center; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); border: 3px solid transparent; }
.scorebar2 .sc.A { background: var(--ta-bg); color: var(--ta); }
.scorebar2 .sc.B { background: var(--tb-bg); color: var(--tb); }
.scorebar2 .sc.on { border-color: currentColor; }
.scorebar2 .sc b { display: block; font-size: 15px; }
.scorebar2 .dots { letter-spacing: .15em; font-size: 15px; }
.scorebar2 .mid { align-self: center; text-align: center; font-weight: 700; font-size: 14px; }
.scorebar2 .mid small { display: block; font-weight: 400; color: #6a6a7a; font-size: 11px; }
.catchip { text-align: center; margin: 6px 0; font-size: 15px; }
.catchip b { background: #fff3c4; padding: 2px 10px; border-radius: 999px; }
.wordbox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.wordbox > div { background: #fff; border-radius: 12px; padding: 8px 10px; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.wordbox small { display: block; color: #6a6a7a; font-size: 11px; line-height: 1.3; }
.wordbox b { display: block; font-size: 20px; margin-top: 2px; word-break: keep-all; }
.wordbox em { display: block; font-size: 11px; color: #6a6a7a; font-style: normal; margin-top: 2px; }
.wordbox.team { grid-template-columns: 1fr; }
.wordbox.team.A > div { border: 2px solid var(--ta); background: var(--ta-bg); }
.wordbox.team.B > div { border: 2px solid var(--tb); background: var(--tb-bg); }
.wordbox.team p { margin: 4px 0 0; grid-column: 1 / -1; }
.wordbox.master > div:first-child { border-left: 5px solid var(--ta); }
.wordbox.master > div:last-child { border-left: 5px solid var(--tb); }
.waitbox { text-align: center; padding: 24px 8px; color: #5a6b55; }

.qcard { background: #fff; border-radius: 16px; padding: 14px 16px 18px; margin: 10px 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); text-align: center; }
.qcard.turnA { border-top: 6px solid var(--ta); }
.qcard.turnB { border-top: 6px solid var(--tb); }
.qcard.myturn { outline: 3px solid #7bc96a; }
.qhead { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #5a6b55; margin-bottom: 8px; }
.qtime { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 16px; }
.qtext { font-size: 22px; font-weight: 700; line-height: 1.4; word-break: keep-all; padding: 8px 0; }
.qnote { font-size: 14px; color: #3d4a39; margin-top: 4px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.replybox .btn.big, .row3 .btn { font-size: 16px; }
.mtools { background: #f5effc; border-radius: 14px; padding: 10px 12px; margin: 10px 0; }
.mtools .mtitle { display: block; margin-bottom: 6px; color: #6a43a8; }
.mtools .btn.big { margin: 6px 0; }

/* 질문과 답 기록 */
.qalist { display: flex; flex-direction: column; gap: 6px; }
.qa { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; background: #fff; border-radius: 10px; padding: 6px 8px; border-left: 5px solid #ccc; font-size: 14px; }
.qa.A { border-left-color: var(--ta); }
.qa.B { border-left-color: var(--tb); }
.qa .qn { color: #8a8a9a; font-size: 12px; text-align: center; }
.qa .ans { font-weight: 700; text-align: right; white-space: nowrap; }
.qa .ans small { display: block; font-weight: 400; font-size: 10px; color: #8a5cc8; }
.qa .ans.yes { color: #1d8a3a; }
.qa .ans.no { color: #c0392b; }
.qa .ans.maybe { color: #c07a00; }
.qa .ans.correct { color: #6a43a8; }

/* 출제자: 단어 정하기 */
.setupbox { background: #fff; border-radius: 14px; padding: 12px; margin: 10px 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.pickbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; font-size: 13px; }
.picklist { max-height: 220px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.chip2.pick { cursor: pointer; font: inherit; font-size: 14px; border: 2px solid #cfe3c6; background: #fff; border-radius: 999px; padding: 4px 10px; }
.chip2.pick.chosen { background: #7bc96a; color: #fff; border-color: #5aa84a; }
.cmsg.tA b { color: var(--ta); }
.cmsg.tB b { color: var(--tb); }
.tools { margin: 8px 0; }
@media (max-width: 380px) { .qtext { font-size: 19px; } .wordbox b { font-size: 17px; } }
.btn.chosen { background: #7bc96a; color: #fff; outline: 3px solid #2d2a3e; }
.btn small { display: block; font-size: 10px; font-weight: 400; opacity: .8; }
.btn[disabled] { opacity: .45; }
.row2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.qa .ans.none { color: #8a8a9a; }
#gTools { margin-top: 28px; }
.playmodes { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.playmodes .lvl { width: 100%; text-align: left; padding: 12px 14px; }
