/* «الأبلة تسأل»: the class board (teacher-board.js), and its parts in «صندوق الأسئلة» (teacher-box.js).
   The board is one deliberate dark look for the projector, like «سباق الفصول». */
.bd { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; gap: 12px; padding: 16px max(16px, 3vw) 20px;
  background: radial-gradient(ellipse at 50% 0%, #4c1d95, #1a0533 72%); color: #fff; overflow: auto; font-family: var(--f-body, inherit); }
html.bd-open { overflow: hidden; }
.bd-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.bd-top { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.bd-top > i { font-size: 28px; color: #fde68a; }
.bd-n { background: #fde68a; color: #7c2d12; border-radius: 999px; padding: 3px 14px; font-weight: 800; font-size: 16px; }
.bd-sp { flex: 1; }
.bd-ib { width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .28); background: rgb(255 255 255 / .1); color: #fff; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.bd-ib:hover { background: rgb(255 255 255 / .2); }
.bd button:focus-visible { outline: 3px solid #fde68a; outline-offset: 3px; }
.bd-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.bd-timer { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 800; color: #c4b5fd; }
.bd-timer b { font-size: 44px; color: #fde68a; min-width: 1.6em; }
.bd-timer.is-low b { color: #fca5a5; animation: bd-pulse .6s ease-in-out infinite alternate; }
.bd-timer.is-up { color: #fde68a; font-size: 30px; }
.bd-img { max-width: min(100%, 900px); max-height: 46vh; border-radius: 18px; background: #fff; object-fit: contain; }
.bd-qt { font-weight: 900; font-size: clamp(34px, 6.4vw, 92px); line-height: 1.25; text-shadow: 0 6px 24px rgb(250 204 21 / .28); max-width: 1300px; }
.bd-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; width: min(100%, 1200px); }
.bd-op { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: clamp(84px, 13vh, 140px); border: 0; border-radius: 22px; padding: 12px 18px; color: #fff;
  font: inherit; font-size: clamp(26px, 3.6vw, 48px); font-weight: 900; cursor: pointer; transition: transform .2s, opacity .3s, box-shadow .3s; }
.bd-op:not(:disabled):hover { transform: translateY(-3px) scale(1.02); }
.bd-op .bd-l { font-size: .62em; opacity: .9; background: rgb(255 255 255 / .2); border-radius: 12px; min-width: 1.7em; padding: 2px 8px; display: inline-flex; align-items: center; justify-content: center; }
.bd-op.c0 { background: #7e22ce; } .bd-op.c1 { background: #be185d; } .bd-op.c2 { background: #0f766e; } .bd-op.c3 { background: #b45309; }
.bd-op.is-right { background: #15803d; box-shadow: 0 0 0 6px #4ade80, 0 14px 40px rgb(34 197 94 / .5); transform: scale(1.06); opacity: 1; cursor: default; }
.bd-op.is-wrong { background: #7f1d1d; box-shadow: inset 0 0 0 4px #f87171; opacity: .55; cursor: not-allowed; }
.bd-op.is-dim { opacity: .3; cursor: default; }
.is-shake { animation: bd-shake .5s ease-in-out; }
.bd-msg { margin: 0; min-height: 1.3em; font-size: clamp(30px, 4.6vw, 60px); font-weight: 900; }
.bd-msg.is-ok { color: #86efac; animation: bd-pop .55s cubic-bezier(.2, 1.6, .4, 1) both; }
.bd-msg.is-no { color: #fde68a; }
.bd-say { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 26px; color: #c4b5fd; font-weight: 700; }
.bd-ans { margin: 0; font-size: clamp(30px, 4.4vw, 56px); font-weight: 900; color: #86efac; }
.bd-acts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.bd .bd-big { font-size: 22px; padding: 14px 30px; min-height: 58px; border-radius: 999px; }
.bd .bd-yes { background: #16a34a; color: #fff; border: 0; }
.bd .bd-no { background: #dc2626; color: #fff; border: 0; }
.bd .bd-show { font-size: 18px; }
.bd-nav { display: flex; justify-content: space-between; gap: 12px; }
.bd-nav .btn:disabled { opacity: .35; }
.bd-end h2 { margin: 0; font-size: clamp(44px, 8vw, 104px); font-weight: 900; background: linear-gradient(100deg, #b8862b, #fde68a 30%, #fff7d6 45%, #facc15 60%, #b8862b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bd-end p { margin: 0 0 18px; font-size: 30px; color: #e9d5ff; font-weight: 700; }
.bd-end .bd-end-e { font-size: 90px; margin: 0; animation: bd-pop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes bd-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-12px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-7px); } 80% { transform: translateX(4px); } }
@keyframes bd-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes bd-pulse { to { transform: scale(1.15); } }
@media (max-width: 640px) { .bd-top { font-size: 16px; } .bd-ib { width: 40px; height: 40px; } .bd .bd-big { padding: 12px 20px; font-size: 18px; } }

/* «صندوق الأسئلة»: the two kinds, her written questions */
.bx-mode { width: 100%; flex: none; }
.bx-mode button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bx-wr-h { justify-content: space-between; align-items: center; }
.bx-written li.is-off { opacity: .55; }
.bx-wsw { border: 0; background: none; color: var(--primary); font-size: 22px; cursor: pointer; display: inline-flex; padding: 2px; }
.bx-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.bx-kind { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 22px 16px; border-radius: 20px; border: 2px solid var(--card-border);
  background: var(--surface); color: var(--deep); font: inherit; cursor: pointer; transition: border-color .2s, transform .2s; }
.bx-kind:hover, .bx-kind:focus-visible { border-color: var(--primary); transform: translateY(-2px); }
.bx-kind i { font-size: 46px; color: var(--primary); }
.bx-kind b { font-size: 20px; }
.bx-kind span { color: var(--muted); font-size: 15px; line-height: 1.6; }
/* «أكتب سؤال» */
.bw { display: flex; flex-direction: column; gap: 10px; }
.bw-l { font-weight: 800; }
.bw-title { width: 100%; resize: vertical; }
.bw-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bw-hint { margin: 0; color: var(--muted); font-size: 14px; }
.bw-img { max-width: 160px; max-height: 110px; border-radius: 10px; border: 1px solid var(--card-border); }
.bw-opts { display: flex; flex-direction: column; gap: 8px; }
.bw-opt { display: flex; gap: 8px; align-items: center; }
.bw-opt .t-txt { flex: 1; }
.bw-k { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 2px solid var(--card-border); background: var(--surface); color: var(--deep); font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bw-opt.is-right .bw-k { background: #16a34a; border-color: #16a34a; color: #fff; }
