/* Turing test lesson. All rules scoped under .tu-* */
.tu-sc { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.tu-note { font-size: 13px; color: var(--dim); text-align: center; }
.choices.tu-ab { display: grid; grid-template-columns: 1fr 1fr; }
.choices.tu-ab .choice { justify-content: center; }

/* ---------- a transcript pair ---------- */
.tu-pair { display: flex; flex-direction: column; gap: 6px; }
.tu-hd, .tu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tu-hd > span { display: flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 10px; border: 1.5px solid transparent; border-bottom-color: var(--line-strong); border-radius: 10px 10px 0 0; transition: border-color .3s, background .3s; }
.tu-hd b { font-family: var(--mono); font-size: 14px; color: var(--text); }
.tu-hd em { font-style: normal; font-size: 13px; font-weight: 800; }
.tu-hd .tu-hu { border-color: var(--mint); background: rgba(63,214,154,.12); }
.tu-hd .tu-hu em { color: var(--mint); }
.tu-hd .tu-bot { border-color: var(--violet-bright); background: rgba(123,92,253,.18); }
.tu-hd .tu-bot em { color: var(--violet-bright); }
.tu-q { align-self: flex-end; max-width: 92%; margin-left: auto; padding: 5px 10px; border-radius: 12px 12px 4px 12px; background: #1E6B45; color: #EFFFF6; font-size: 13px; line-height: 1.3; }
.tu-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tu-qs { max-width: 100%; }
.tu-msg { align-self: flex-start; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: var(--raised); border: 1px solid var(--line); font-size: 13px; line-height: 1.3; color: var(--text); }

/* ---------- the game diagram ---------- */
.tu-game svg { display: block; width: 100%; max-width: 330px; margin: 0 auto; overflow: visible; }
.tu-room rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.tu-rk { font-family: var(--mono); font-size: 15px; font-weight: 600; fill: var(--dim); }
.tu-hid text { font-family: var(--sans); font-size: 34px; font-weight: 800; fill: var(--faint); transition: opacity .4s; }
.tu-who { opacity: 0; transition: opacity .5s .2s; }
.tu-who.tu-hu circle, .tu-who.tu-hu path { fill: var(--mint); }
.tu-who.tu-bot rect, .tu-who.tu-bot circle { fill: var(--violet-bright); }
.tu-who.tu-bot line { stroke: var(--violet-bright); stroke-width: 3; }
.tu-open .tu-who { opacity: 1; }
.tu-open .tu-hid text { opacity: 0; }
.tu-wire { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 4 5; }
.tu-bub { fill: #1E6B45; }
.tu-judge circle, .tu-judge path { fill: var(--gold); }
.tu-judge rect { fill: var(--bg); stroke: var(--gold); stroke-width: 2; }
.tu-jl { font-family: var(--sans); font-size: 15px; font-weight: 700; fill: var(--gold); }

/* ---------- Turing's page ---------- */
.tu-paper { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-radius: 14px; background: #F2EDE3; color: #1B1A18; }
.tu-paper small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6E6960; }
.tu-paper p { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.3; }
.tu-paper i { color: #6E6960; }
.tu-ans { font-family: var(--mono); font-weight: 600; }
.tu-work { display: none; flex-direction: column; align-items: flex-end; align-self: flex-end; margin-top: 4px; padding-top: 4px; font-family: var(--mono); font-size: 16px; line-height: 1.25; }
.tu-tot { border-top: 2px solid #1B1A18; font-weight: 600; }
.tu-tot u { text-decoration: none; background: #FCC050; padding: 0 1px; }
.tu-worked .tu-work { display: flex; animation: tuIn .35s ease-out both; }
.tu-worked .tu-ans { color: var(--red); text-decoration: line-through; }
@keyframes tuIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- the study ---------- */
.tu-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.tu-stat > b { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--gold); }
.tu-stat > span { font-size: 15px; color: var(--dim); }
.tu-rules { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.tu-rules i { font-style: normal; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--text); }

/* ---------- the chart ---------- */
.tu-chart { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 26px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tu-ct { font-size: 13px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.tu-br { display: grid; grid-template-columns: 76px 1fr 40px; align-items: center; gap: 8px; }
.tu-br > span { font-size: 14px; font-weight: 700; color: var(--dim); }
.tu-br > b { font-family: var(--mono); font-size: 14px; color: var(--text); text-align: right; }
.tu-tr { height: 18px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.tu-tr i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--violet); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.tu-br.tu-top > span, .tu-br.tu-top > b { color: var(--gold); }
.tu-br.tu-top .tu-tr i { background: var(--gold); }
/* The lines sit over the track column: 12px pad + 76px label + 8px gap on the left, 8px gap + 40px + 12px on the right. */
.tu-lines { position: absolute; left: 96px; right: 60px; top: 38px; bottom: 26px; pointer-events: none; }
.tu-lines i { position: absolute; top: 0; bottom: 0; border-left: 2px dashed; opacity: 0; transition: opacity .4s; }
.tu-lines em { position: absolute; bottom: -18px; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tu-l50 em { transform: translateX(4px); } .tu-l30 em { transform: translateX(calc(-100% - 4px)); }
.tu-l50 { left: 50%; border-color: var(--text); color: var(--text); }
.tu-l30 { left: 30%; border-color: var(--gold); color: var(--gold); }
.tu-s50 .tu-l50, .tu-s30 .tu-l30 { opacity: .8; }

/* ---------- style ---------- */
.tu-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tu-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--gold); text-align: center; }
.tu-card small { font-size: 13px; font-weight: 700; color: var(--dim); }
.tu-card b { font-family: var(--serif); font-size: 40px; line-height: 1.05; color: var(--gold); }
.tu-card span { font-size: 14px; line-height: 1.3; color: var(--text); }
.tu-card.tu-dim { border-color: var(--line-strong); }
.tu-card.tu-dim b { color: var(--dim); }

/* ---------- the two sides ---------- */
.tu-sides { display: flex; flex-direction: column; gap: 10px; }
.tu-side { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line-strong); }
.tu-side b { font-size: 15px; }
.tu-side span { font-size: 14px; line-height: 1.35; color: var(--dim); }
.tu-yes { border-color: var(--mint); } .tu-yes b { color: var(--mint); }
.tu-no { border-color: var(--violet-bright); } .tu-no b { color: var(--violet-bright); }

@media (max-height: 700px) {
  .tu-q, .tu-msg { font-size: 12px; padding: 4px 8px; }
  .tu-pair { gap: 4px; }
  .tu-paper p { font-size: 15px; }
  .tu-stat > b { font-size: 42px; }
}
