/* 0.55 «Сезоны» autumn — «Школьная викторина» (public/school-quiz.js): a teacher's chalkboard in a wooden frame, chalk
   writing (Chalkboard SE where there is one), a chalk ledge with two sticks and a duster, desk buttons as the buzzers,
   an owl teacher in chalk lines. Phones first: the board fills the screen, the desks two by two. */
.aq-season { margin: 4px 0 12px; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, rgba(232, 140, 60, .16), rgba(232, 140, 60, .05)); border: 1px solid rgba(242, 178, 92, .3); }
.aq-season-l { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #f2c38a; margin-bottom: 6px; }
.aq-entry-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.aq-entry-btn:hover, .aq-entry-btn:focus-visible { border-color: #f2b25c; background: rgba(255, 255, 255, .08); }
.aq-entry-ico { font-size: 28px; line-height: 1; }
.aq-entry-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aq-entry-t small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

.aq-board { position: fixed; inset: 0; z-index: 2650; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(10, 8, 6, .72); }
.aq-board.hidden { display: none; }
.aq-frame {
  position: relative; display: flex; flex-direction: column; width: min(900px, 100%); max-height: calc(100dvh - 36px); padding: 14px 14px 0; border-radius: 10px;
  background: linear-gradient(90deg, #6e4322, #8a5a30 18%, #7a4c27 50%, #91603a 82%, #6e4322); box-shadow: 0 30px 80px rgba(0, 0, 0, .65), inset 0 0 0 2px rgba(0, 0, 0, .3);
}
.aq-slate {
  position: relative; flex: 1; min-height: 0; overflow: auto; padding: 14px 18px 18px; border-radius: 4px; color: #f4f1e6;
  font-family: 'Chalkboard SE', 'Chalkboard', 'Comic Sans MS', 'Segoe Print', cursive;
  background: radial-gradient(120% 80% at 30% 20%, rgba(255, 255, 255, .07), transparent 60%), radial-gradient(90% 70% at 80% 90%, rgba(255, 255, 255, .05), transparent 60%), #2f4a3a;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(0, 0, 0, .35);
}
.aq-slate::before { /* old chalk rubbed out */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(40% 12% at 22% 30%, rgba(255, 255, 255, .06), transparent 70%), radial-gradient(30% 10% at 70% 60%, rgba(255, 255, 255, .05), transparent 70%), radial-gradient(25% 8% at 40% 85%, rgba(255, 255, 255, .05), transparent 70%);
}
.aq-ledge { position: relative; height: 18px; margin: 0 -14px; border-radius: 0 0 10px 10px; background: linear-gradient(#7a4c27, #5b3518); }
.aq-chalk { position: absolute; top: 3px; left: 18%; width: 34px; height: 7px; border-radius: 3px; background: #f4f1e6; box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.aq-chalk.c2 { left: 26%; width: 22px; background: #f2c94c; transform: rotate(-6deg); }
.aq-duster { position: absolute; top: -6px; right: 14%; width: 54px; height: 14px; border-radius: 3px; background: linear-gradient(#9a6b45 0 45%, #d9d2c2 45%); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.aq-top { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aq-title { font-size: 20px; letter-spacing: .02em; }
.aq-where { flex: 1; min-width: 0; color: #d7e6d9; font-size: 15px; }
.aq-x { margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(244, 241, 230, .5); background: transparent; color: #f4f1e6; font-family: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.aq-x:focus-visible, .aq-desk:focus-visible, .aq-go:focus-visible, .aq-end:focus-visible { outline: 3px solid #f2c94c; outline-offset: 2px; }
.aq-time { height: 4px; margin: 8px 0 4px; visibility: hidden; }
.aq-time.on { visibility: visible; }
.aq-time > i { display: block; height: 100%; border-radius: 2px; background: #f4f1e6; opacity: .75; transform-origin: left; }
.aq-main { position: relative; min-height: 260px; padding: 6px 0 0; }
.aq-chalkline { margin: 0; font-size: clamp(19px, 3.6vw, 26px); line-height: 1.3; text-shadow: 0 0 1px rgba(255, 255, 255, .5), 0 0 6px rgba(255, 255, 255, .12); }
.aq-chalkline.big { font-size: clamp(17px, 3vw, 22px); }
.aq-chalkline.huge { font-size: clamp(30px, 7vw, 54px); }
.aq-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 240px; text-align: center; }
.aq-big small { color: #c9dccb; font-size: 16px; }
.aq-bell { font-size: 54px; display: inline-block; }
.aq-bell.ring { animation: aq-ring .5s ease-in-out 4 alternate; transform-origin: 50% 10%; }
@keyframes aq-ring { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
.aq-intro { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.aq-plan { margin: 0; padding-left: 26px; font-size: 19px; line-height: 1.6; }
.aq-go, .aq-end {
  min-height: 48px; padding: 0 22px; border-radius: 24px; border: 2px solid #f4f1e6; background: #f4f1e6; color: #2f4a3a; font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1; cursor: pointer;
}
.aq-end { position: absolute; left: 0; bottom: -4px; min-height: 40px; padding: 0 14px; background: transparent; color: #f4f1e6; font-size: 14px; border-color: rgba(244, 241, 230, .45); }
.aq-q { display: flex; flex-direction: column; gap: 14px; padding-bottom: 52px; }
.aq-qhead { display: flex; gap: 14px; align-items: flex-start; }
.aq-poster { flex: none; width: 64px; height: 96px; border-radius: 3px; overflow: hidden; transform: rotate(-3deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .45); position: relative; }
.aq-poster::after { content: ''; position: absolute; top: -2px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #d8402f; box-shadow: 0 1px 2px rgba(0, 0, 0, .5); } /* a pin */
.aq-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aq-qn { display: block; color: #c9dccb; font-size: 14px; margin-bottom: 2px; }
.aq-desks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aq-desk {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px; border-radius: 10px; text-align: left; cursor: pointer;
  border: 2px dashed rgba(244, 241, 230, .55); background: rgba(255, 255, 255, .04); color: #f4f1e6; font-family: inherit; font-size: 17px; line-height: 1.25;
}
.aq-desk:hover:not(:disabled) { background: rgba(255, 255, 255, .1); border-style: solid; }
.aq-desk:disabled { cursor: default; }
.aq-l { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid currentColor; font-size: 17px; }
.aq-o { min-width: 0; overflow-wrap: anywhere; }
.aq-desk.mine { border-style: solid; border-color: #f2c94c; background: rgba(242, 201, 76, .14); }
.aq-desk.right { border-style: solid; border-color: #9be39b; background: rgba(120, 220, 120, .2); }
.aq-desk.right::after { content: '✓'; position: absolute; right: 10px; font-size: 26px; color: #b8f5b8; }
.aq-desk.wrong { border-style: solid; border-color: #ff9a8a; background: rgba(255, 110, 90, .16); }
.aq-desk.wrong::after { content: '✗'; position: absolute; right: 10px; font-size: 24px; color: #ffb4a8; }
.aq-note { color: #d7e6d9; font-size: 15px; }
.aq-res { font-size: 22px; color: #ffd9c8; }
.aq-res.ok { color: #b8f5b8; }
.aq-book, .aq-podium { display: flex; flex-direction: column; gap: 10px; }
.aq-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.aq-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px dashed rgba(244, 241, 230, .25); font-size: 17px; }
.aq-row.me { color: #f2c94c; }
.aq-pl { width: 26px; text-align: right; }
.aq-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-bl { font-size: 14px; color: #f2c94c; }
.aq-steps { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 6px 0; padding: 0; list-style: none; }
.aq-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; width: 30%; padding: 34px 8px 10px; border: 2px solid rgba(244, 241, 230, .6); border-bottom: 0; border-radius: 6px 6px 0 0; text-align: center; }
.aq-step.p1 { order: 2; min-height: 150px; } .aq-step.p2 { order: 1; min-height: 120px; } .aq-step.p3 { order: 3; min-height: 100px; }
.aq-step b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.aq-step small { color: #c9dccb; font-size: 13px; }
.aq-stamp { position: absolute; top: -16px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #e2574c; color: #e2574c; font: 800 24px/1 Georgia, serif; transform: rotate(-12deg); background: rgba(47, 74, 58, .9); }
.aq-step.p2 .aq-stamp, .aq-step.p3 .aq-stamp { width: 34px; height: 34px; font-size: 20px; }
.aq-owl { position: absolute; right: 12px; bottom: 6px; display: flex; align-items: flex-end; gap: 6px; opacity: .9; pointer-events: none; }
.aq-say { max-width: 180px; padding: 4px 8px; border: 2px solid rgba(244, 241, 230, .6); border-radius: 12px; font-size: 13px; line-height: 1.3; visibility: hidden; order: -1; margin-bottom: 40px; }
.aq-owl.talk .aq-say { visibility: visible; }
.aq-main:has(.aq-q, .aq-podium, .aq-book) ~ .aq-owl svg { opacity: .35; } /* the owl steps back while the class works */

@media (max-width: 560px) {
  .aq-board { padding: 0; align-items: stretch; }
  .aq-frame { width: 100%; max-height: none; height: 100dvh; padding: 8px 8px 0; border-radius: 0; }
  .aq-ledge { margin: 0 -8px; border-radius: 0; }
  .aq-slate { padding: 10px 12px 14px; }
  .aq-title { font-size: 17px; }
  .aq-where { flex-basis: 100%; order: 3; font-size: 14px; }
  .aq-desks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .aq-desk { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 76px; font-size: 15.5px; }
  .aq-l { width: 28px; height: 28px; font-size: 15px; }
  .aq-poster { width: 52px; height: 78px; }
  .aq-owl { display: none; }
  .aq-step { padding-top: 28px; } .aq-step b { font-size: 15px; }
}
@media (max-width: 340px) { .aq-desks { grid-template-columns: 1fr; } .aq-desk { flex-direction: row; min-height: 52px; } }
@media (prefers-reduced-motion: reduce) { .aq-bell.ring { animation: none; } }
