/* Telão do professor: tudo maior, para ler de longe. */
body.host { overflow: hidden; }
.host-title { margin: 0 0 4px; font-size: clamp(26px, 4vw, 40px); font-weight: 800; text-align: center; }
#screen-setup { overflow-y: auto; justify-content: safe center; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 18px; align-items: start; }
.setup-grid .panel { width: 100%; display: flex; flex-direction: column; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field select {
  background: #0c0a1c; border: 2px solid var(--line); color: var(--ink); border-radius: 8px;
  font: 600 16px var(--ui); padding: 8px 10px; outline: none;
}
.field select:focus { border-color: var(--academe-light); }
.field input.code-small { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.my-rooms { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.room-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; text-align: left;
  padding: 10px 12px; border-radius: var(--radius); border: 2px solid var(--line); background: #0c0a1c; color: var(--ink);
}
.room-item:hover { border-color: var(--academe-light); }
.room-item b { font-size: 18px; letter-spacing: .1em; }
.room-item small { color: var(--muted); }

/* ───────── ao vivo */
#screen-live { justify-content: flex-start; padding: 16px 24px; }
.live-head { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.live-name { font-size: 22px; font-weight: 800; }
.live-sub { font-size: 14px; color: var(--muted); }
.live-join { text-align: center; padding: 8px 22px; border-radius: 14px; background: var(--panel); border: 2px solid var(--academe); }
.live-join span { display: block; font-size: 15px; color: var(--muted); }
.live-join span b { color: var(--ink); }
.live-code { display: block; font-family: var(--title); font-size: clamp(40px, 6vw, 64px); letter-spacing: .14em; line-height: 1; color: #fff; }
.live-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.live-count { font-size: 15px; font-weight: 700; color: var(--ok); margin-right: 6px; }
.small-btn { padding: 8px 14px; border-radius: 8px; border: 2px solid var(--line); background: var(--panel); font-size: 14px; font-weight: 600; }
.small-btn:hover { border-color: var(--ink); }

.live-body { display: none; flex: 1; width: min(1100px, 100%); flex-direction: column; align-items: center; justify-content: safe center; gap: 18px; overflow-y: auto; padding: 16px 0; }
.live-body.on { display: flex; }
.big-msg { margin: 0; font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; text-align: center; }
.chips.big { max-width: 1000px; gap: 8px; }
.chips.big .chip { font-size: 18px; padding: 7px 16px; }
.chip small { font-weight: 800; color: var(--warn); margin-left: 4px; }
.chip.got { background: rgba(114, 209, 75, .25); border-color: var(--ok); }
.chip.miss { background: rgba(255, 90, 95, .18); border-color: var(--bad); }
.chip.trying { border-color: var(--warn); }
.chip.pending { animation: blink .8s steps(2) infinite; }
.start-panel { width: min(520px, 100%); }
.live-actions { display: flex; gap: 10px; align-items: center; }
.live-actions .btn-play { width: auto; padding: 14px 34px; }

/* card grande */
.q-top { display: flex; align-items: center; gap: 14px; width: min(900px, 100%); }
.q-top .lvl-badge { font-size: 14px; }
.q-num { font-size: 18px; font-weight: 700; color: var(--muted); }
.q-time { margin-left: auto; font-family: var(--title); font-size: 56px; line-height: 1; }
.q-time.low { color: var(--bad); animation: blink .5s steps(2) infinite; }
.q-timer { width: min(900px, 100%); height: 12px; border-radius: 99px; background: #0c0a1c; border: 2px solid var(--line); overflow: hidden; }
.q-timer div { height: 100%; background: var(--lvl); transform-origin: left; transition: transform .2s linear; }
.q-card {
  width: min(900px, 100%); padding: 28px 36px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.07), transparent 40%), #1f1238;
  box-shadow: 0 0 0 4px var(--lvl), 0 18px 0 rgba(0,0,0,.35), 0 0 60px color-mix(in srgb, var(--lvl) 30%, transparent);
}
.q-card canvas { display: block; margin: 0 auto 10px; }
.q-term { font-family: var(--title); font-size: clamp(42px, 6vw, 76px); font-weight: 700; line-height: 1.05; }
.q-en { font-size: 20px; color: var(--muted); margin-top: 4px; }
.q-ask { margin-top: 12px; font-size: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lvl); }
.q-card.ctx { text-align: left; }
.q-card.ctx .q-ask { margin: 0 0 10px; }
.q-situation { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.4; font-weight: 500; }
.q-answered { font-size: 18px; font-weight: 700; color: var(--muted); }

/* resposta */
.rv-big { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; width: 100%; align-items: start; }
.rv-left { display: flex; flex-direction: column; gap: 12px; }
.rv-left .rv-situation { font-size: 20px; }
.rv-left .fb-def { margin: 0; --tone: var(--ok); padding: 20px 22px; }
.rv-left .fb-def-term { font-size: 40px; }
.rv-left .fb-def-text { font-size: 24px; }
.rv-left .fb-ideas span { font-size: 16px; }
.rv-board { width: 100%; }
.rv-board.wide { width: min(640px, 100%); max-height: 40vh; overflow-y: auto; }
.rv-board .rank-row { font-size: 19px; }

/* pódio */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; }
.step { display: flex; flex-direction: column; align-items: center; width: 180px; }
.step-name { font-size: 20px; font-weight: 800; text-align: center; }
.step-pts { font-size: 16px; color: var(--warn); font-weight: 700; margin-bottom: 6px; }
.step-block { width: 100%; display: grid; place-items: center; font-family: var(--title); font-size: 40px; border-radius: 10px 10px 0 0; box-shadow: inset 0 -6px 0 rgba(0,0,0,.25); }
.s1 .step-block { height: 150px; background: #f7d038; color: #3a2a00; }
.s2 .step-block { height: 110px; background: #c9c9da; color: #222; }
.s3 .step-block { height: 80px; background: #d08a4b; color: #2a1200; }

@media (max-width: 860px) {
  .setup-grid, .rv-big { grid-template-columns: 1fr; }
  .live-head { grid-template-columns: 1fr; text-align: center; }
  .live-right { justify-self: center; }
  body.host { overflow: auto; }
}
.two .field input, .two .field select { min-width: 0; width: 100%; }
