/* class.css — "Lớp đố 20 câu" (G2-T6): bảng đen treo vùng trần + bảng "Nhanh nhất" (Top 5, ms) + nhân vật dẫn (cô / MC) đứng cạnh bảng.
   Đi với /sdk/class.js. Khung 1080×1920: bảng dùng VÙNG TRẦN + CỘT THẺ (y --class-top → ≤ ~940), giữa cảnh dưới y ~980 luôn lộ (bàn thầy /
   MC sàn). Chữ chính ≥ 40 px, nhãn phụ ≥ 30 px (owner 10/11). Màu CHỈ qua token; theme đổi nhận diện bằng [data-room] (qt = bảng gỗ
   xanh rêu, pgd = bảng LED xanh đêm viền hổ phách). Thẻ/đố của module phòng đang mở (.qt-busy / .pgd-busy) → bảng thu gọn: chỉ đầu bảng + ô chữ. */
:root {
  --class-top: 110px;              /* đỉnh bảng đen (theme ghi đè: QT 110 — thay bảng gỗ treo trần; PGD 184 — dưới dải phiên) */
  --class-slate: #234F41;          /* mặt bảng (xanh rêu phấn) */
  --class-slate-2: #1A3D32;
  --class-frame: #7A5233;          /* khung gỗ */
  --class-frame-edge: #C9955A;
  --class-chalk: #F7F1DF;          /* chữ phấn 3 cấp */
  --class-chalk-2: rgba(247, 241, 223, .74);
  --class-chalk-3: rgba(247, 241, 223, .52);
  --class-line: rgba(247, 241, 223, .22);
  --class-accent: var(--cards-accent, #E3B23C);
  --class-on-accent: var(--cards-on-accent, #14100A);
  --class-right: #8FE3A3;          /* đúng (phấn xanh lá) */
  --class-right-bg: rgba(143, 227, 163, .18);
  --class-gold: #FFD75E;           /* câu vàng ×2 */
  --class-gold-glow: rgba(255, 215, 94, .55);
  --class-low: #FF6B6B;            /* ≤ 5 s */
  --class-panel: rgba(16, 26, 22, .92);  /* bảng Nhanh nhất */
  --class-font: var(--cards-font, 'Be Vietnam Pro', system-ui, sans-serif);
  --class-font-num: var(--cards-font-num, 'JetBrains Mono', ui-monospace, monospace);
  --class-radius: 22px;
}
.class-root[data-room="pgd"] {
  --class-slate: #13213A; --class-slate-2: #0E1829; --class-frame: #2A3347; --class-frame-edge: #E3B23C;
  --class-chalk: #F2F4F8; --class-chalk-2: rgba(242, 244, 248, .74); --class-chalk-3: rgba(242, 244, 248, .5); --class-line: rgba(242, 244, 248, .18);
  --class-panel: rgba(11, 14, 20, .92);
}

/* ---------- gốc: cột giữa, trên vùng an toàn hai bên ---------- */
.class-root { position: absolute; left: var(--cards-side, 100px); right: var(--cards-side, 100px); top: var(--class-top); z-index: 28; display: none; flex-direction: column; gap: 14px;
  font-family: var(--class-font); color: var(--class-chalk); pointer-events: none; }
.class-root.show { display: flex; }
.class-root .num { font-family: var(--class-font-num); font-variant-numeric: tabular-nums; }

/* ---------- bảng đen ---------- */
.class-board { position: relative; z-index: 3; box-sizing: border-box; padding: 14px 28px 18px; border-radius: var(--class-radius);
  background: radial-gradient(120% 90% at 50% 0%, var(--class-slate), var(--class-slate-2) 80%);
  border: 10px solid var(--class-frame); outline: 3px solid var(--class-frame-edge); outline-offset: -3px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .55), inset 0 0 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 12px;
  animation: classIn .5s cubic-bezier(.2, 1.1, .4, 1) both; }
.class-board::before { content: ''; position: absolute; inset: 0; border-radius: 12px; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .06) 46px 48px); }
.class-root[data-golden="1"] .class-board { outline-color: var(--class-gold); box-shadow: 0 22px 54px rgba(0, 0, 0, .55), 0 0 44px var(--class-gold-glow), inset 0 0 60px rgba(0, 0, 0, .35); animation: classIn .5s cubic-bezier(.2, 1.1, .4, 1) both, classGold 1.6s ease-in-out infinite; }
@keyframes classIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
@keyframes classGold { 0%, 100% { box-shadow: 0 22px 54px rgba(0, 0, 0, .55), 0 0 30px var(--class-gold-glow), inset 0 0 60px rgba(0, 0, 0, .35); } 50% { box-shadow: 0 22px 54px rgba(0, 0, 0, .55), 0 0 70px var(--class-gold-glow), inset 0 0 60px rgba(0, 0, 0, .35); } }

/* đầu bảng: Câu n / 20 · chủ đề · câu vàng · đồng hồ */
.class-head { display: flex; align-items: center; gap: 14px; min-height: 56px; }
/* intro: CHỈ "Câu n" to + tai nghe — đầu bảng, chủ đề, bảng Nhanh nhất đều ẩn (không lộ gì trước khi đọc xong) */
.class-root[data-phase="intro"] .class-head, .class-root[data-phase="intro"] .class-fast { display: none; }
.class-no { font-size: 44px; font-weight: 800; white-space: nowrap; letter-spacing: .5px; }
.class-no small { font-size: 32px; font-weight: 600; color: var(--class-chalk-3); margin-left: 4px; }
.class-topic { flex: 1; min-width: 0; font-size: 32px; font-weight: 600; line-height: 1.15; color: var(--class-chalk-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } /* nhãn chủ đề: chật thì 2 dòng, không "…" */
.class-topic:empty { display: none; }
.class-subject { flex: none; align-self: center; padding: 4px 14px; border-radius: 999px; font-size: 30px; font-weight: 700; line-height: 1.15; white-space: nowrap; color: var(--class-on-accent); background: var(--class-accent); } /* chip môn (Q-subject): nhãn ngắn, 1 dòng */
.class-subject:empty { display: none; }
.class-gold { flex: none; font-size: 30px; font-weight: 800; letter-spacing: 1px; color: var(--class-on-accent); background: var(--class-gold); border-radius: 10px; padding: 3px 14px; white-space: nowrap; box-shadow: 0 0 18px var(--class-gold-glow); display: none; }
.class-root[data-golden="1"]:not([data-phase="intro"]) .class-gold { display: inline-block; }
.class-root[data-golden="1"] .class-topic { display: none; } /* câu vàng: nhãn ×2 quan trọng hơn chủ đề, không để chủ đề bị "…" */
.class-bonus { flex: none; font-size: 30px; font-weight: 700; color: var(--class-accent); border: 2px dashed var(--class-accent); border-radius: 999px; padding: 1px 14px; white-space: nowrap; display: none; }
.class-root[data-bonus="1"] .class-bonus { display: inline-block; }
.class-clock { flex: none; min-width: 108px; text-align: center; font-size: 48px; font-weight: 800; line-height: 1; padding: 6px 10px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 2px solid var(--class-line); }
.class-clock.low { color: var(--class-low); border-color: var(--class-low); animation: classPulse .6s ease-in-out infinite; }
.class-clock:empty { display: none; }
@keyframes classPulse { 50% { transform: scale(1.06); } }

/* thân bảng theo pha */
.class-body { display: flex; flex-direction: column; gap: 12px; min-height: 100px; }
/* intro: CHỈ "Câu n" + tai nghe (đang đọc đề) — không lộ chữ / gợi ý */
.class-intro { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 0 10px 120px; }
.class-intro .big { font-size: 112px; font-weight: 800; line-height: 1; letter-spacing: 1px; text-shadow: 0 0 24px rgba(255, 255, 255, .18); }
.class-ear { display: flex; align-items: center; gap: 14px; font-size: 32px; font-weight: 600; color: var(--class-chalk-2); }
.class-ear .ic { font-size: 44px; line-height: 1; }
.class-ear .bars { display: inline-flex; align-items: flex-end; gap: 5px; height: 40px; }
.class-ear .bars i { width: 8px; border-radius: 4px; background: var(--class-accent); height: 40%; animation: classBar .9s ease-in-out infinite; }
.class-ear .bars i:nth-child(2) { animation-delay: .15s; } .class-ear .bars i:nth-child(3) { animation-delay: .3s; } .class-ear .bars i:nth-child(4) { animation-delay: .45s; }
@keyframes classBar { 0%, 100% { height: 30%; } 50% { height: 100%; } }

.class-hint { margin: 0; font-size: 40px; line-height: 1.3; font-weight: 600; color: var(--class-chalk); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.class-q { margin: 0; font-size: 40px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.class-meo { display: inline-block; font-size: 30px; font-weight: 700; color: var(--class-on-accent); background: var(--class-accent); border-radius: 8px; padding: 1px 10px; margin-right: 10px; vertical-align: 6px; }
.class-foot { margin: 0; font-size: 30px; font-weight: 500; color: var(--class-chalk-3); text-align: center; }

/* ô chữ (slots): null = ô trống, " " = khoảng cách từ, chữ = đã mở; lật khi reveal */
.class-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; }
.class-slot { width: 58px; height: 70px; box-sizing: border-box; display: grid; place-items: center; font-size: 44px; font-weight: 800; line-height: 1; border-radius: 10px;
  background: rgba(255, 255, 255, .08); border-bottom: 4px solid var(--class-chalk-2); color: var(--class-chalk); perspective: 400px; }
.class-slot.gap { width: 26px; background: none; border: 0; }
.class-slot.hit { background: var(--class-right-bg); border-bottom-color: var(--class-right); color: var(--class-right); }
.class-slot.flip { animation: classFlip .5s ease-out both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes classFlip { 0% { transform: rotateX(90deg); opacity: 0; } 60% { transform: rotateX(-15deg); opacity: 1; } 100% { transform: none; } }
.class-slots.many .class-slot { width: 50px; height: 62px; font-size: 38px; }
.class-slots.many .class-slot.gap { width: 20px; }

/* chữ cái xáo: thẻ phấn nhỏ (kéo mắt vào chữ, không che cảnh) */
.class-letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.class-letter { min-width: 50px; height: 56px; box-sizing: border-box; padding: 0 12px; display: grid; place-items: center; font-size: 40px; font-weight: 700; border-radius: 12px;
  color: var(--class-on-accent); background: var(--class-accent); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); transform: rotate(calc(var(--r, 0) * 1deg)); }
.class-root[data-phase="reveal"] .class-letters, .class-root[data-phase="praise"] .class-letters { opacity: .35; }

/* đuổi hình: ảnh / emoji bên trái, gợi ý + ô chữ bên phải */
.class-pic-row { display: flex; align-items: center; gap: 24px; }
.class-pic { flex: none; width: 300px; height: 300px; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .08); border: 3px solid var(--class-line); display: grid; place-items: center; }
.class-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.class-pic .emoji { font-size: 64px; line-height: 1.2; letter-spacing: 6px; text-align: center; padding: 10px; word-break: break-word; }
.class-pic-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.class-pic-side .class-hint { -webkit-line-clamp: 3; font-size: 36px; }

/* A-B-C-D */
.class-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.class-opt { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; box-sizing: border-box; padding: 6px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 2px solid var(--class-line); font-size: 36px; font-weight: 600; }
.class-opt b { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 30px; font-weight: 800; color: var(--class-on-accent); background: var(--class-accent); }
.class-opt span { min-width: 0; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* cỡ theo đáp án dài nhất (class.js data-fit, 4 ô cùng cỡ): 1 = ≤ 8 ký tự 36 px 2 cột · 2 = 9–10 ký tự 32 px · 3 = 11–14 ký tự 32 px 1 cột (NBSP, 1 dòng)
   · 4 = > 14 ký tự 1 cột ngắt theo cụm từ · 5 = > 30 ký tự 30 px; data-cols="1" = 1 cột (các luật thu gọn bên dưới không ép lại 2–4 cột) */
.class-opts[data-fit="2"] .class-opt, .class-opts[data-fit="3"] .class-opt, .class-opts[data-fit="4"] .class-opt { font-size: 32px; }
.class-opts[data-fit="5"] .class-opt { font-size: 30px; }
.class-opts[data-cols="1"] { grid-template-columns: 1fr; }
.class-opts[data-fit="4"] .class-opt span, .class-opts[data-fit="5"] .class-opt span { text-wrap: balance; overflow-wrap: normal; word-break: keep-all; }
.class-opt.hit { background: var(--class-right-bg); border-color: var(--class-right); color: var(--class-right); animation: classFlip .5s ease-out both; }
.class-opt.hit b { background: var(--class-right); }
.class-opt.dim { opacity: .4; }

/* toán nhẩm */
.class-math { display: flex; align-items: baseline; justify-content: center; gap: .22em; font-size: 84px; font-weight: 800; line-height: 1.1; padding: 10px 0; flex-wrap: nowrap; white-space: nowrap; } /* 1 dòng, cỡ chữ theo độ dài (class.js renderMath) */
.class-math .ans { color: var(--class-right); animation: classFlip .5s ease-out both; }
.class-math .q { color: var(--class-accent); }

/* đáp án (reveal / praise) */
.class-answer { display: flex; align-items: baseline; justify-content: center; gap: 14px; padding: 8px 16px; border-radius: 12px; background: var(--class-right-bg); border-left: 6px solid var(--class-right); }
.class-answer span { font-size: 32px; color: var(--class-chalk-2); }
.class-answer b { font-size: 44px; font-weight: 800; color: var(--class-right); }

/* kết quả tiết: bảng vàng 5 người */
.class-results { display: flex; flex-direction: column; gap: 10px; }
.class-results h3 { margin: 0; font-size: 44px; font-weight: 800; color: var(--class-gold); text-align: center; }
.class-results ol, .class-fast ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.class-row { display: flex; align-items: center; gap: 12px; min-height: 46px; font-size: 36px; border-bottom: 1px dashed var(--class-line); padding: 1px 8px; margin: 0 -8px; border-radius: 10px; }
.class-row:nth-child(even) { background: rgba(255, 255, 255, .06); } /* hàng xen màu nền nhạt (ab 11/11) */
.class-row:last-child { border-bottom: 0; }
.class-row .rank { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 30px; font-weight: 800; }
.class-row:first-child .rank { color: var(--class-on-accent); background: var(--class-gold); }
.class-row .cards-av, .class-row .av { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid var(--class-accent); background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.class-row .cards-av img, .class-row .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.class-row .cards-av.cards-av-art { border-color: transparent; background: transparent; }
/* tên: cột có chỗ tối thiểu, class.js rút gọn "tên gọi + chữ cái đầu" nên không tới "…" (ellipsis = lưới an toàn cho nick 1 từ, chỉ cắt TÊN) */
.class-row .name { flex: 1; min-width: 6ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.class-row .ms { flex: none; min-width: 170px; text-align: right; font-size: 34px; color: var(--class-chalk-2); }
/* điểm: chữ phấn; CHỈ hạng 1 màu nhấn (ab 11/11: không tô cả cột bằng màu nhấn) */
.class-row .pts { flex: none; min-width: 90px; text-align: right; font-size: 36px; font-weight: 800; color: var(--class-chalk); }
.class-row:first-child .pts { color: var(--class-accent); }
.class-row.empty { color: var(--class-chalk-3); font-size: 32px; }
.class-row.empty .rank { opacity: .5; }
.class-row.new { animation: classRow .45s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes classRow { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.class-results .class-row { min-height: 60px; font-size: 40px; }
.class-results .class-row .pts { font-size: 40px; }

/* thanh thời gian ở đáy bảng (co từ phần còn lại → 0) */
.class-timer { position: absolute; left: 24px; right: 24px; bottom: 6px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.class-timer i { display: block; height: 100%; width: 100%; background: var(--class-accent); transition: width linear; }
.class-root[data-golden="1"] .class-timer i { background: var(--class-gold); }

/* ---------- bảng "Nhanh nhất" (Top 5, ms) — dưới bảng đen, chừa cột trái cho nhân vật ---------- */
.class-fast { position: relative; z-index: 1; box-sizing: border-box; padding: 10px 24px 10px 200px; border-radius: var(--class-radius); background: var(--class-panel); border: 2px solid var(--class-frame-edge); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 4px; min-height: 224px; }
.class-fast h4 { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 40px; font-weight: 800; color: var(--class-accent); min-height: 46px; }
.class-fast h4 .ttl { flex: none; white-space: nowrap; }
/* dòng phụ / lời nhắc ("Lan 🔥 chuỗi 3 câu đúng liền!") = câu cho người xem → 2 dòng, không "…" */
.class-fast h4 small { flex: 1; min-width: 0; text-align: right; font-size: 30px; font-weight: 600; line-height: 1.2; color: var(--class-chalk-3); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.class-fast h4 .msg { flex: 1; min-width: 0; font-size: 34px; font-weight: 600; line-height: 1.2; color: var(--class-chalk); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; animation: classRow .4s ease-out both; }
.class-fast h4 .msg b { color: var(--class-accent); }
.class-fast h4 .msg.streak { color: var(--class-gold); }
.class-root[data-phase="results"] .class-fast { display: none; }

/* nhân vật dẫn: con của .class-board, đứng ngay dưới mép trái bảng đen (cột trái 200 px của bảng Nhanh nhất chừa sẵn) — không đè chữ miễn trừ;
   .sprite = 1 khung của sprite sheet (class.js đặt width/height/background theo khung), đổi khung = đổi background-position */
.class-persona { position: absolute; left: 4px; bottom: -152px; width: 192px; display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 2; }
.class-persona .sprite { position: relative; width: 120px; height: 150px; }
.class-persona .sprite::before { content: ''; position: absolute; left: 50%; bottom: 6px; width: 150px; height: 44px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, var(--class-outfit, var(--class-accent)), transparent 72%); opacity: .55; filter: blur(2px); z-index: -1; }
.class-persona .sprite.ready { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); transform-origin: 50% 100%; animation: classBreath 3.2s ease-in-out infinite; }
/* nhãn người dẫn ≤ 16 ký tự: chật thì 2 dòng giữa, không "…" (ab 11/11 mục 1) */
.class-persona .tag { font-size: 30px; font-weight: 700; line-height: 1.15; color: var(--class-on-accent); background: var(--class-accent); border-radius: 18px; padding: 3px 14px; max-width: 180px; text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.class-persona .outfit { font-size: 30px; font-weight: 600; line-height: 1.15; color: var(--class-chalk-2); max-width: 190px; text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.class-persona .outfit:empty { display: none; }
.class-persona.swap .sprite.ready { animation: classBreath 3.2s ease-in-out infinite, classSwap .9s ease-out both; }
.class-persona.swap .sprite::after { content: '✨'; position: absolute; right: -10px; top: 6px; font-size: 44px; animation: classSpark 1.2s ease-out both; }
@keyframes classBreath { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }
@keyframes classSwap { 0% { filter: brightness(2.4) drop-shadow(0 0 20px var(--class-gold)); } 100% { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); } }
@keyframes classSpark { 0% { opacity: 0; transform: scale(.4) rotate(-20deg); } 30% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: translateY(-30px) scale(.8); } }
/* kết quả tiết: không còn bảng Nhanh nhất → nhân vật đứng hẳn dưới bảng, nhãn áo mới bên cạnh */
.class-root[data-phase="results"] .class-persona { left: 50%; transform: translateX(-50%); bottom: auto; top: calc(100% - 6px); flex-direction: row; align-items: flex-end; gap: 14px; width: auto; }
.class-root[data-phase="results"] .class-persona .tag, .class-root[data-phase="results"] .class-persona .outfit { margin-bottom: 14px; max-width: 420px; }

/* ---------- thẻ / đố của module phòng đang mở (.qt-busy / .pgd-busy): bảng thu gọn, chỉ đầu bảng + ô chữ / đề ngắn, bảng Nhanh nhất ẩn ---------- */
.qt-busy .class-fast, .pgd-busy .class-fast, .qt-busy .class-letters, .pgd-busy .class-letters, .qt-busy .class-foot, .pgd-busy .class-foot,
.qt-busy .class-persona, .pgd-busy .class-persona, .qt-busy .class-pic, .pgd-busy .class-pic, .qt-busy .class-answer, .pgd-busy .class-answer { display: none; }
.qt-busy .class-hint, .pgd-busy .class-hint, .qt-busy .class-q, .pgd-busy .class-q { -webkit-line-clamp: 1; font-size: 36px; }
.qt-busy .class-opts[data-fit="1"], .pgd-busy .class-opts[data-fit="1"] { grid-template-columns: repeat(4, 1fr); } /* chỉ đáp án ngắn (≤ 8) mới 4 cột; dài hơn giữ 2 / 1 cột */
.qt-busy .class-opts:not([data-cols="1"]) .class-opt span, .pgd-busy .class-opts:not([data-cols="1"]) .class-opt span { -webkit-line-clamp: 1; font-size: 30px; }
.qt-busy .class-intro .big, .pgd-busy .class-intro .big { font-size: 64px; }
.qt-busy .class-intro, .pgd-busy .class-intro { flex-direction: row; gap: 28px; padding: 6px 0; }
.qt-busy .class-board, .pgd-busy .class-board { gap: 10px; padding-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  .class-board, .class-slot.flip, .class-opt.hit, .class-math .ans, .class-row.new, .class-persona .sprite, .class-fast h4 .msg, .class-ear .bars i { animation: none !important; }
}
