/* Quiz Arena — the live quiz and the Quiz Studio (2026-11-07), in the
   cardboard world of games/arena/arena.css. Answers are told apart by shape,
   letter and colour together. The board is read from the back of a room;
   the phone's buttons are thumb-sized. Browser floor: no flex gap. */

/* ── home: the live quiz first, the extra modes under it ── */
@media (min-width: 900px) { .ar-modes.ar-modes3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ar-extra-h { margin: 26px 0 12px; font-size: 22px; color: #FFE7A8; text-shadow: 2px 0 #3A2A1F, -2px 0 #3A2A1F, 0 2px #3A2A1F, 0 -2px #3A2A1F; }
.ar-live { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; overflow: hidden; }
.ar-live-art { position: relative; -webkit-box-flex: 0; -webkit-flex: 0 0 230px; flex: 0 0 230px; min-height: 190px; background-color: #2d1a2a; background-size: cover; background-position: center bottom; image-rendering: pixelated; border-right: 3px solid #3A2A1F; }
.ar-live-art img { position: absolute; left: 50%; bottom: 12px; margin-left: -60px; image-rendering: pixelated; }
.ar-live-b { -webkit-box-flex: 1; -webkit-flex: 1 1 300px; flex: 1 1 300px; padding: 18px 20px 20px; }
.ar-live-b h2 { margin: 0 0 6px; font: 800 30px/1.1 'Baloo 2', sans-serif; }
.ar-live-b p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.45; }
.ar-live-row { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.ar-live-row > * { margin: 0 10px 8px 0; }
.ar-live-pin { width: 220px; max-width: 100%; font: 800 30px/1 'Baloo 2', sans-serif !important; letter-spacing: 6px; text-align: center; padding: 10px 12px !important; }
.ar-live-resume .ar-btn { margin-top: 6px; }
@media (max-width: 600px) { .ar-live-art { -webkit-flex-basis: 100%; flex-basis: 100%; min-height: 130px; border-right: 0; border-bottom: 3px solid #3A2A1F; } }

/* ── the Quiz Studio ── */
.qa-top { margin: 0 0 14px; }
.qa-top .ar-btn { margin: 0 10px 8px 0; }
.qa-grid { display: -ms-grid; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-gap: 16px; }
.qa-bank { display: -webkit-box; display: -webkit-flex; display: flex; overflow: hidden; }
.qa-band { -webkit-box-flex: 0; -webkit-flex: 0 0 74px; flex: 0 0 74px; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column; -webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; color: #fff; border-right: 3px solid #3A2A1F; }
.qa-band-n { font-size: 30px; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.qa-band small { font: 800 12px 'Nunito', sans-serif; }
.qa-bank-b { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; padding: 12px 14px; }
.qa-bank-b h3 { margin: 0 0 2px; font: 800 19px/1.15 'Baloo 2', sans-serif; overflow-wrap: anywhere; }
.qa-bank-b .ar-note { margin: 0 0 6px; }
.qa-bank-b .ar-chip { margin: 0 6px 6px 0; }
.qa-pub { background: #BFE3F7; }
.qa-acts .ar-btn { margin: 4px 6px 0 0; }
.qa-table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 14.5px; }
.qa-table th, .qa-table td { padding: 6px 8px; border-bottom: 2px solid #E9DCC4; text-align: left; vertical-align: top; }
.qa-table th { font: 800 13px 'Nunito', sans-serif; color: #6B5444; }
.qa-table tr.is-hard td { background: #FBDDD6; }
.ar-modal .qa-report { max-width: 860px; }

/* ── the editor ── */
.qa-ehead { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: center; -webkit-align-items: center; align-items: center; margin: 4px 0 16px; }
.qa-title { -webkit-box-flex: 1; -webkit-flex: 1 1 320px; flex: 1 1 320px; margin: 0 12px 8px 0; font: 800 24px 'Baloo 2', sans-serif !important; }
.qa-eacts .ar-btn { margin: 0 8px 8px 0; }
@media (min-width: 980px) { .qa-editor { display: -ms-grid; display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-gap: 18px; -webkit-box-align: start; align-items: start; } }
.qa-side { padding: 12px; margin-bottom: 16px; }
@media (min-width: 980px) { .qa-side { position: -webkit-sticky; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; } }
.qa-qlist { list-style: none; margin: 0; padding: 0; }
.qa-qitem { margin: 0 0 8px; border: 3px solid transparent; border-radius: 14px; background: #F6E7C8; }
.qa-qitem.is-sel { border-color: #3A2A1F; background: #FFF8EA; }
.qa-qitem.is-bad .qa-qn { background: #E5483C; color: #fff; }
.qa-qbtn { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; width: 100%; padding: 8px 8px 4px; border: 0; background: none; font: inherit; color: #3A2A1F; text-align: left; cursor: pointer; }
.qa-qbtn .ar-pix { margin: 0 6px; -webkit-flex-shrink: 0; flex-shrink: 0; }
.qa-qn { -webkit-flex-shrink: 0; flex-shrink: 0; min-width: 26px; height: 26px; border: 2px solid #3A2A1F; border-radius: 8px; font: 800 13px/22px 'Nunito', sans-serif; text-align: center; background: #FFF8EA; }
.qa-qt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.qa-qmini { display: block; padding: 0 8px 8px 40px; }
.qa-qmini .qa-mini { margin: 4px 4px 0 0; padding: 2px 8px !important; min-height: 0 !important; font-size: 12px !important; }
.qa-addq { margin-top: 8px; padding-top: 8px; border-top: 2px dashed #C9A66B; }
.qa-addq .ar-btn { margin: 0 6px 6px 0; }
.qa-addq .ar-btn .ar-pix { vertical-align: -4px; margin-right: 4px; }
.qa-qedit { padding: 16px; }
.qa-qrow { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.qa-lab { display: block; margin: 0 12px 10px 0; font: 800 13px 'Nunito', sans-serif; color: #6B5444; }
.qa-qrow .qa-lab { -webkit-box-flex: 1; -webkit-flex: 1 1 160px; flex: 1 1 160px; }
.qa-lab .ar-in, .qa-lab select { display: block; width: 100%; margin-top: 4px; }
.qa-qtext { width: 100%; min-height: 96px; font: 800 22px/1.3 'Baloo 2', sans-serif !important; text-align: center; }
.qa-hint { margin: 6px 0 12px; }
.qa-answers { display: -ms-grid; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 10px; }
@media (max-width: 700px) { .qa-answers { grid-template-columns: minmax(0, 1fr); } }
.qa-ans { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; padding: 8px; border: 3px solid #3A2A1F; border-radius: 14px; background: #FFF8EA; }
.qa-ans .ar-shape { -webkit-flex-shrink: 0; flex-shrink: 0; width: 38px; height: 38px; margin-right: 8px; }
.qa-ans .ar-shape svg { width: 38px; height: 38px; display: block; }
.qa-ans .ar-in { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
.qa-sh0 { background: #FFE2C8; } .qa-sh1 { background: #D4ECFA; } .qa-sh2 { background: #D9F1DD; } .qa-sh3 { background: #FFF0BF; }
.qa-ok { -webkit-flex-shrink: 0; flex-shrink: 0; width: 44px; height: 44px; margin-left: 8px; border: 3px solid #3A2A1F; border-radius: 50%; background: #FFF8EA; cursor: pointer; opacity: .55; }
.qa-ok.is-on { background: #5CC287; opacity: 1; }
.qa-ok .ar-pix { display: block; margin: 0 auto; }
.qa-tf { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; min-height: 74px; padding: 10px 14px; border: 3px solid #3A2A1F; border-radius: 16px; cursor: pointer; font: inherit; color: #3A2A1F; box-shadow: 0 5px 0 #3A2A1F; }
.qa-tf .ar-shape { width: 40px; height: 40px; margin-right: 10px; }
.qa-tf .ar-shape svg { width: 40px; height: 40px; display: block; }
.qa-tf b { font: 800 22px 'Baloo 2', sans-serif; }
.qa-tf small { margin-left: auto; font: 800 13px 'Nunito', sans-serif; color: #2E8A55; }
.qa-tf.is-on { outline: 4px solid #2E8A55; outline-offset: 2px; }
.qa-acc .ar-in { display: block; width: 100%; margin: 0 0 8px; }
.qa-ordn { display: inline-block; -webkit-flex-shrink: 0; flex-shrink: 0; min-width: 34px; height: 34px; margin-right: 8px; border: 3px solid #3A2A1F; border-radius: 10px; background: #FFF8EA; font-size: 18px; line-height: 28px; text-align: center; }
.qa-more { margin-top: 14px; }
.qa-imgpv { display: block; max-width: 220px; max-height: 140px; margin: -2px 0 10px; border: 3px solid #3A2A1F; border-radius: 10px; }
.qa-imgpv[hidden] { display: none; }
.qa-warn { margin: 8px 0 0; font: 800 14px 'Nunito', sans-serif; color: #A9302A; }
.qa-colors { margin: 4px 0 12px; }
.qa-color { width: 34px; height: 34px; margin: 0 6px 6px 0; border: 3px solid #3A2A1F; border-radius: 10px; cursor: pointer; }
.qa-color.is-on { outline: 3px solid #2F86C6; outline-offset: 2px; }
.qa-check { display: block; margin: 8px 0; font: 700 14.5px/1.4 'Nunito', sans-serif; cursor: pointer; }
.qa-check input { width: 18px; height: 18px; vertical-align: -3px; }
.ar-modal .qa-ai, .ar-modal .qa-import, .ar-modal .qa-settings { max-width: 720px; }
.qa-types .qa-check { display: inline-block; margin-right: 14px; }
.qa-aiout { margin-top: 12px; max-height: 46vh; overflow: auto; }
.qa-airow { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: start; -webkit-align-items: flex-start; align-items: flex-start; padding: 8px 4px; border-bottom: 2px solid #E9DCC4; cursor: pointer; }
.qa-airow input { margin: 4px 10px 0 0; width: 18px; height: 18px; -webkit-flex-shrink: 0; flex-shrink: 0; }
.qa-airow small { color: #6B5444; }
.qa-aiout .ar-btn { margin-top: 12px; }
.qa-implist .ar-btn { margin: 0 6px 6px 0; }
.qa-import .ar-in { margin: 0 8px 8px 0; }

/* ── setting up a game ── */
.qa-modes { display: -ms-grid; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-gap: 12px; margin: 12px 0 14px; }
.qa-mode { padding: 14px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.qa-mode b { display: block; margin: 6px 0 2px; font: 800 22px 'Baloo 2', sans-serif; }
.qa-mode small { font-size: 14px; line-height: 1.4; color: #4f3d31; }
.qa-mode.is-on { background: #FFC83D; }
.qa-setup .ar-btn-l { margin-top: 12px; }
.ar-offer.is-on { background: #FFC83D; }

/* ── the board ── */
.qa-board { min-height: 70vh; }
.qa-lobby { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-bottom: 18px; }
.qa-pinplate { -webkit-box-flex: 2; -webkit-flex: 2 1 420px; flex: 2 1 420px; margin: 0 18px 18px 0; padding: 18px 20px; text-align: center; }
.qa-pinlab { margin: 0; font: 800 18px 'Nunito', sans-serif; }
.qa-pin { margin: 6px 0; font-size: 96px; font-size: clamp(56px, 9vw, 120px); line-height: 1; letter-spacing: 6px; color: #3A2A1F; }
.qa-url { word-break: break-all; }
.qa-qr { display: inline-block; margin-top: 8px; padding: 8px; border: 3px solid #3A2A1F; border-radius: 12px; background: #FFF8EA; line-height: 0; }
.qa-qr img, .qa-qr canvas { width: 168px; height: 168px; }
.qa-qr[hidden] { display: none; }
.qa-lobbyside { -webkit-box-flex: 1; -webkit-flex: 1 1 260px; flex: 1 1 260px; margin: 0 0 18px; padding: 18px; text-align: center; }
.qa-lobbyside h2 { margin: 0; font: 800 26px/1.15 'Baloo 2', sans-serif; overflow-wrap: anywhere; }
.qa-count { margin: 10px 0 0; font-size: 72px; line-height: 1; }
.qa-lobbyside .ar-btn { margin: 8px 6px 0; }
.qa-names { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.qa-name { margin: 0 8px 10px 0; padding: 8px 16px; border: 3px solid #3A2A1F; border-radius: 999px; background: #FFF8EA; font: 800 20px 'Baloo 2', sans-serif; color: #3A2A1F; cursor: pointer; box-shadow: 0 4px 0 #3A2A1F; -webkit-animation: qa-pop .35s cubic-bezier(.34, 1.56, .64, 1); animation: qa-pop .35s cubic-bezier(.34, 1.56, .64, 1); }
.qa-name:hover { background: #FBDDD6; text-decoration: line-through; }
.qa-name.is-off { opacity: .45; }
@-webkit-keyframes qa-pop { from { -webkit-transform: scale(.4); transform: scale(.4); opacity: 0; } }
@keyframes qa-pop { from { -webkit-transform: scale(.4); transform: scale(.4); opacity: 0; } }
.qa-waiting { width: 100%; text-align: center; font-size: 26px; color: #FFE7A8; text-shadow: 2px 0 #3A2A1F, -2px 0 #3A2A1F, 0 2px #3A2A1F, 0 -2px #3A2A1F; }
.qa-hint2 { text-align: center; color: #FFE7A8; }
.qa-intro { max-width: 1100px; margin: 8vh auto 0; text-align: center; }
.qa-qno { font-size: 26px; color: #FFE7A8; text-shadow: 2px 0 #3A2A1F, -2px 0 #3A2A1F, 0 2px #3A2A1F, 0 -2px #3A2A1F; }
.qa-intro .qa-bigq { color: #FFF8EA; text-shadow: 3px 0 #3A2A1F, -3px 0 #3A2A1F, 0 3px #3A2A1F, 0 -3px #3A2A1F, 0 6px 0 rgba(0, 0, 0, .45); }
.qa-bigq { margin: 12px 0; font: 800 44px/1.15 'Baloo 2', sans-serif; font-size: clamp(28px, 4vw, 58px); overflow-wrap: anywhere; }
.qa-type { color: #FFE7A8; font: 800 20px 'Nunito', sans-serif; }
.qa-introbar { height: 16px; margin: 24px auto 0; max-width: 600px; border: 3px solid #3A2A1F; border-radius: 10px; background: #3a2a21; overflow: hidden; }
.qa-introbar i { display: block; height: 100%; width: 0; background: #FFC83D; }
.qa-qtop { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; margin-bottom: 12px; }
.qa-qtop .ar-chip { margin-right: 8px; }
.qa-clock { margin-left: auto; min-width: 74px; height: 74px; border: 4px solid #3A2A1F; border-radius: 50%; background: #FFC83D; font-size: 34px; line-height: 66px; text-align: center; box-shadow: 0 5px 0 #3A2A1F; }
.qa-anscount { margin-left: 14px; padding: 8px 14px; border: 3px solid #3A2A1F; border-radius: 14px; background: #FFF8EA; font: 800 18px 'Nunito', sans-serif; text-align: center; }
.qa-anscount b { display: block; font: 800 32px/1 'Baloo 2', sans-serif; }
.qa-qcard { padding: 16px 20px; text-align: center; margin-bottom: 16px; }
.qa-qcard .qa-bigq { margin: 4px 0; }
.qa-bcode { text-align: left; font-size: 20px; max-width: 900px; margin: 10px auto; }
.qa-qimg { display: block; max-width: 100%; max-height: 32vh; margin: 10px auto 0; border: 3px solid #3A2A1F; border-radius: 12px; }
.qa-qimg[hidden] { display: none; }
.qa-bans { display: -ms-grid; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 14px; }
.qa-bans-i { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; min-height: 92px; padding: 12px 16px; border: 4px solid #3A2A1F; border-radius: 18px; box-shadow: 0 6px 0 #3A2A1F; font: 800 30px/1.15 'Baloo 2', sans-serif; font-size: clamp(20px, 2.6vw, 34px); color: #3A2A1F; }
.qa-bans-i .ar-shape { -webkit-flex-shrink: 0; flex-shrink: 0; width: 56px; height: 56px; margin-right: 14px; }
.qa-bans-i .ar-shape svg { width: 56px; height: 56px; display: block; }
.qa-bans-t { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.qa-bans .qa-sh0 { background: #FFB574; } .qa-bans .qa-sh1 { background: #8CCBF0; } .qa-bans .qa-sh2 { background: #9ED9A8; } .qa-bans .qa-sh3 { background: #FFD966; }
.qa-bans-i.is-right { outline: 6px solid #2E8A55; outline-offset: 3px; }
.qa-bans .qa-bans-i.is-dim { background: #E9DCC4; color: #8A7462; box-shadow: 0 3px 0 #3A2A1F; }
.qa-bans-i.is-dim .ar-shape { opacity: .45; }
.qa-bar { -webkit-flex-shrink: 0; flex-shrink: 0; position: relative; width: 30%; height: 30px; margin-left: 12px; border: 3px solid #3A2A1F; border-radius: 8px; background: #FFF8EA; overflow: hidden; }
.qa-bar i { position: absolute; top: 0; bottom: 0; left: 0; background: #3A2A1F; opacity: .28; }
.qa-bar b { position: relative; display: block; text-align: center; font: 800 18px/24px 'Nunito', sans-serif; }
.qa-typebox { grid-column: 1 / -1; padding: 18px; text-align: center; font: 800 26px 'Baloo 2', sans-serif; }
.qa-right { grid-column: 1 / -1; margin: 6px 0 0; text-align: center; font-size: 26px; color: #FFE7A8; text-shadow: 2px 0 #3A2A1F, -2px 0 #3A2A1F, 0 2px #3A2A1F, 0 -2px #3A2A1F; }
.qa-why { margin: 16px auto 0; max-width: 900px; padding: 12px 16px; font-size: 20px; text-align: center; }
.qa-next { margin: 18px 0; text-align: center; }
.qa-next .ar-btn { margin: 0 8px 8px; }
.qa-boss { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; max-width: 700px; margin: 10px auto 0; }
.qa-boss .qa-bossart { position: static; width: 72px; height: 72px; margin: 0 10px 0 0; }
.qa-boss b { margin-right: 10px; font: 800 18px 'Baloo 2', sans-serif; white-space: nowrap; }
.qa-boss .ar-gauge { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; margin: 0; }
.qa-sbhead { text-align: center; color: #FFE7A8; }
.qa-sbhead h1 { margin: 10px 0 0; font-size: 44px; text-shadow: 3px 0 #3A2A1F, -3px 0 #3A2A1F, 0 3px #3A2A1F, 0 -3px #3A2A1F; }
.qa-sbhead p { margin: 4px 0 12px; font: 800 18px 'Nunito', sans-serif; text-shadow: 0 2px 0 #3A2A1F; }
.qa-sb { list-style: none; max-width: 820px; margin: 0 auto; padding: 0; }
.qa-sbrow { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; margin: 0 0 12px; padding: 10px 16px; font: 800 26px 'Baloo 2', sans-serif; -webkit-animation: qa-pop .4s ease-out both; animation: qa-pop .4s ease-out both; }
.qa-sbr { min-width: 46px; font-size: 26px; }
.qa-sbrow b { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-sbmv { margin: 0 10px; color: #2E8A55; font-size: 20px; }
.qa-sbs { margin-left: 10px; font-size: 26px; }
.qa-sbrow .ar-hearts { margin: 0 10px; }
.qa-sbrow .ar-chip { margin: 0 8px; }
.qa-podium { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: end; -webkit-align-items: flex-end; align-items: flex-end; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; margin: 24px 0 20px; min-height: 340px; }
.qa-pod { width: 220px; max-width: 30%; margin: 0 8px; text-align: center; color: #FFF8EA; -webkit-animation: qa-rise .9s ease-out both; animation: qa-rise .9s ease-out both; }
.qa-pod b { display: block; font: 800 26px/1.1 'Baloo 2', sans-serif; text-shadow: 2px 0 #3A2A1F, -2px 0 #3A2A1F, 0 2px #3A2A1F, 0 -2px #3A2A1F; overflow-wrap: anywhere; }
.qa-pod span { display: block; margin: 4px 0 8px; font-size: 22px; text-shadow: 2px 0 #3A2A1F, -2px 0 #3A2A1F, 0 2px #3A2A1F, 0 -2px #3A2A1F; }
.qa-podbox { border: 4px solid #3A2A1F; border-radius: 14px 14px 0 0; font-size: 54px; color: #3A2A1F; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; box-shadow: inset 0 6px 0 rgba(255, 255, 255, .4); }
.qa-pod1 .qa-podbox { height: 220px; background: #FFC83D; }
.qa-pod2 .qa-podbox { height: 160px; background: #C9D2DE; }
.qa-pod3 .qa-podbox { height: 115px; background: #E0A060; }
.qa-pod2 { -webkit-animation-delay: .5s; animation-delay: .5s; }
.qa-pod1 { -webkit-animation-delay: 1s; animation-delay: 1s; }
@-webkit-keyframes qa-rise { from { -webkit-transform: translateY(80px); transform: translateY(80px); opacity: 0; } }
@keyframes qa-rise { from { -webkit-transform: translateY(80px); transform: translateY(80px); opacity: 0; } }
.qa-final { max-width: 900px; }
.qa-final .ar-btn { margin: 6px 8px 0 0; }
.qa-raidend { text-align: center; max-width: 900px; }
.qa-raidend h1 { font-size: 46px; margin: 4px 0 10px; }

/* ── the phones ── */
.qa-join { max-width: 460px; text-align: center; }
.qa-pinin { width: 100%; font: 800 30px/1 'Baloo 2', sans-serif !important; letter-spacing: 3px; text-align: center; padding: 12px !important; margin-bottom: 12px; }
.qa-join .ar-btn-l { width: 100%; }
.qa-dev { max-width: 640px; margin: 0 auto; }
.qa-devtop { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; margin: 0 0 10px; padding: 8px 14px; border: 3px solid #3A2A1F; border-radius: 14px; background: #FFF8EA; font: 800 18px 'Baloo 2', sans-serif; }
.qa-devtop b { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-devs { font-size: 22px; }
.qa-devcard { padding: 16px; text-align: center; }
.qa-devcard h2 { margin: 6px 0 8px; font: 800 30px/1.15 'Baloo 2', sans-serif; }
.qa-devcard.is-right { background: #DDF3E1; }
.qa-devcard.is-wrong { background: #FBDDD6; }
.qa-devq { font-size: 22px !important; }
.qa-devtimer { height: 12px; margin: 0 0 12px; border: 3px solid #3A2A1F; border-radius: 8px; background: #3a2a21; overflow: hidden; }
.qa-devtimer i { display: block; height: 100%; background: #FFC83D; }
.qa-devgrid { display: -ms-grid; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; margin-top: 10px; }
.qa-dans { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column; -webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  min-height: 132px; padding: 10px; border: 4px solid #3A2A1F; border-radius: 18px; box-shadow: 0 6px 0 #3A2A1F; font: 800 18px/1.2 'Baloo 2', sans-serif; color: #3A2A1F; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qa-dans:active { -webkit-transform: translateY(4px); transform: translateY(4px); box-shadow: 0 2px 0 #3A2A1F; }
.qa-dans .ar-shape { width: 60px; height: 60px; }
.qa-dans .ar-shape svg { width: 60px; height: 60px; display: block; }
.qa-dans-t { margin-top: 6px; overflow-wrap: anywhere; }
.qa-devgrid .qa-sh0 { background: #FFB574; } .qa-devgrid .qa-sh1 { background: #8CCBF0; } .qa-devgrid .qa-sh2 { background: #9ED9A8; } .qa-devgrid .qa-sh3 { background: #FFD966; }
.qa-dans.is-dim { opacity: .3; }
.qa-dans.is-picked { outline: 5px solid #3A2A1F; outline-offset: 2px; }
.qa-dans .qa-ordn { margin: 0 0 6px; }
.qa-orderline { min-height: 24px; font: 800 17px 'Nunito', sans-serif; }
.qa-typein { width: 100%; font: 800 24px 'Baloo 2', sans-serif !important; text-align: center; margin: 8px 0 12px; }
.qa-devcard .ar-btn-l { width: 100%; margin-top: 10px; }
.qa-plus { margin: 4px 0; font-size: 44px; }
.qa-place { font: 800 20px 'Baloo 2', sans-serif; }
@media (max-width: 420px) { .qa-dans { min-height: 112px; } .qa-dans .ar-shape, .qa-dans .ar-shape svg { width: 48px; height: 48px; } }
@media (max-width: 640px) {
  .qa-bans { grid-template-columns: minmax(0, 1fr); }
  .qa-pin { letter-spacing: 3px; }
  .qa-podium { min-height: 260px; }
  .qa-pod1 .qa-podbox { height: 160px; } .qa-pod2 .qa-podbox { height: 115px; } .qa-pod3 .qa-podbox { height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .qa-name, .qa-sbrow, .qa-pod { -webkit-animation: none; animation: none; }
}

/* ── the raid arena (2026-11-14) ───────────────────────────────────────────
   The lobby and the Boss Raid are played in an arena on the board: every
   connected student's hero (their avatar and gear) with a name tag, the boss
   on the right with its HP. Heroes walk toward the boss as their right
   answers add up (left slides), strike it (a bolt flies, the boss shakes,
   the damage pops), and take or parry its blows. On the phones: the STRIKE
   meter and the PARRY ring. */
.qa-arena { position: relative; height: 46vh; min-height: 300px; max-height: 540px; margin: 0 0 14px; border: 4px solid #3A2A1F; border-radius: 18px;
  background-color: #2d253a; background-size: cover; background-position: center bottom; image-rendering: pixelated; overflow: hidden; box-shadow: 0 6px 0 #3A2A1F; }
.qa-arena.is-lobby { height: calc(100vh - 590px); min-height: 250px; }
.qa-arena.is-many .qa-ar-tag b { padding: 1px 6px; font-size: 10.5px; }
.qa-arena .qa-waiting { position: absolute; left: 0; right: 0; top: 40%; margin: 0; }
.qa-ar-hero, .qa-arena .qa-name { position: absolute; display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #3A2A1F; font: inherit; text-align: center; text-decoration: none;
  -webkit-transition: left .9s cubic-bezier(.22, 1, .36, 1); transition: left .9s cubic-bezier(.22, 1, .36, 1); -webkit-animation: qa-pop .35s cubic-bezier(.34, 1.56, .64, 1) both; animation: qa-pop .35s cubic-bezier(.34, 1.56, .64, 1) both; }
.qa-arena button.qa-ar-hero { cursor: pointer; }
.qa-arena .qa-name:hover { background: none; text-decoration: none; }
.qa-arena button.qa-ar-hero:hover .qa-ar-tag b, .qa-arena button.qa-ar-hero:focus-visible .qa-ar-tag b { background: #FBDDD6; text-decoration: line-through; }
.qa-arena button.qa-ar-hero:focus-visible { outline: 4px solid #FFC83D; outline-offset: 2px; border-radius: 12px; }
.qa-ar-sp { display: block; line-height: 0; -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; }
.qa-ar-sp svg { display: block; width: 100%; height: auto; image-rendering: pixelated; -webkit-filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .35)); filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .35)); }
.qa-ar-tag { display: block; margin: -2px -30% 0; line-height: 1; }
.qa-ar-tag b { display: inline-block; max-width: 100%; padding: 2px 8px; border: 2px solid #3A2A1F; border-radius: 999px; background: #FFF8EA; font: 800 12.5px/1.3 'Nunito', sans-serif; color: #3A2A1F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.qa-ar-tag .ar-hearts { display: block; margin-top: 2px; }
.qa-ar-hero.is-off { opacity: .45; }
.qa-ar-hero.is-down .qa-ar-sp { -webkit-filter: grayscale(1); filter: grayscale(1); -webkit-transform: rotate(-14deg); transform: rotate(-14deg); }
.qa-ar-boss { position: absolute; right: 2.5%; bottom: 5%; z-index: 5; width: 32%; max-width: 340px; text-align: center; }
.qa-ar-bossname { display: inline-block; padding: 2px 12px; border: 3px solid #3A2A1F; border-radius: 999px; background: #FFF8EA; font: 800 16px/1.3 'Baloo 2', sans-serif; color: #3A2A1F; }
.qa-ar-boss .qa-ar-hp { margin: 6px 0 4px; }
.qa-ar-boss .qa-ar-bossart { position: static; left: auto; bottom: auto; width: 27vh; height: 27vh; max-width: 100%; max-height: 300px; min-width: 150px; min-height: 150px; margin: 0 auto; }
.qa-arena.is-lobby .qa-ar-boss .qa-ar-bossart { width: 23vh; height: 23vh; }
.qa-ar-boss.is-hit .qa-ar-bossart { -webkit-animation: qa-bosshit .42s ease-out; animation: qa-bosshit .42s ease-out; }
@keyframes qa-bosshit { 0%, 100% { -webkit-transform: none; transform: none; -webkit-filter: none; filter: none; } 20% { -webkit-transform: translateX(12px) rotate(3deg); transform: translateX(12px) rotate(3deg); -webkit-filter: brightness(2.4); filter: brightness(2.4); } 55% { -webkit-transform: translateX(-7px); transform: translateX(-7px); } }
.qa-arena.is-won .qa-ar-bossart { -webkit-filter: grayscale(1); filter: grayscale(1); opacity: .6; -webkit-transform: rotate(16deg) translateY(10%); transform: rotate(16deg) translateY(10%); -webkit-animation: none; animation: none; }
.qa-ar-pop { position: absolute; left: 50%; top: -4px; z-index: 9; -webkit-transform: translateX(-50%); transform: translateX(-50%); font: 800 24px/1 'Baloo 2', sans-serif; color: #FFD447; white-space: nowrap; pointer-events: none;
  text-shadow: 2px 0 #3A2A1F, -2px 0 #3A2A1F, 0 2px #3A2A1F, 0 -2px #3A2A1F; -webkit-animation: qa-float 1.3s ease-out both; animation: qa-float 1.3s ease-out both; }
.qa-ar-boss .qa-ar-pop { top: 30%; font-size: 34px; }
.qa-ar-pop.is-crit { color: #FF8A3D; font-size: 42px; }
.qa-ar-pop.is-parry { color: #9ED8F2; font-size: 18px; }
.qa-ar-pop.is-hurt { color: #FF7B7B; font-size: 18px; }
@keyframes qa-float { 0% { opacity: 0; margin-top: 14px; } 18% { opacity: 1; margin-top: 0; } 75% { opacity: 1; margin-top: -26px; } 100% { opacity: 0; margin-top: -38px; } }
.qa-ar-bolt { position: absolute; z-index: 8; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 3px solid #3A2A1F; border-radius: 50%; background: #FFD447; box-shadow: 0 0 0 5px rgba(255, 212, 71, .4); pointer-events: none;
  -webkit-transition: -webkit-transform .4s cubic-bezier(.5, 0, .85, .6); transition: transform .4s cubic-bezier(.5, 0, .85, .6); }
.qa-ar-bolt.is-crit { width: 30px; height: 30px; margin: -15px 0 0 -15px; background: #FF8A3D; box-shadow: 0 0 0 7px rgba(255, 138, 61, .45); }
.qa-ar-bolt.is-foe { background: #B455D8; box-shadow: 0 0 0 5px rgba(180, 85, 216, .4); }
.qa-ar-hero.fx-atk .qa-ar-sp { -webkit-animation: qa-lunge .45s ease-out; animation: qa-lunge .45s ease-out; }
@keyframes qa-lunge { 40% { -webkit-transform: translateX(26px) rotate(7deg); transform: translateX(26px) rotate(7deg); } }
.qa-ar-hero.fx-guard .qa-ar-sp, .qa-ar-hero.fx-parry .qa-ar-sp { -webkit-animation: qa-guard .5s ease-out; animation: qa-guard .5s ease-out; }
@keyframes qa-guard { 35% { -webkit-transform: scale(1.14); transform: scale(1.14); -webkit-filter: drop-shadow(0 0 0 #9ED8F2) drop-shadow(0 0 10px #9ED8F2); filter: drop-shadow(0 0 0 #9ED8F2) drop-shadow(0 0 10px #9ED8F2); } }
.qa-ar-hero.fx-hurt .qa-ar-sp { -webkit-animation: qa-hurt .5s ease-out; animation: qa-hurt .5s ease-out; }
@keyframes qa-hurt { 20% { -webkit-transform: translateX(-9px); transform: translateX(-9px); opacity: .45; } 45% { -webkit-transform: translateX(6px); transform: translateX(6px); opacity: 1; } 70% { -webkit-transform: translateX(-3px); transform: translateX(-3px); opacity: .6; } }
/* the board around the arena, after a raid question */
.qa-raidans { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: baseline; -webkit-align-items: baseline; align-items: baseline; margin: 0 0 12px; padding: 10px 18px; }
.qa-raidq { -webkit-box-flex: 1; -webkit-flex: 1 1 320px; flex: 1 1 320px; margin: 0 16px 0 0; font: 800 21px/1.25 'Baloo 2', sans-serif; }
.qa-raidok { margin: 0 16px 0 0; font-weight: 800; font-size: 17px; }
.qa-raidok b { color: #1E6B3A; font-size: 20px; }
.qa-raidans .qa-right { margin: 0; font-size: 20px; color: #3A2A1F; text-shadow: none; }
.qa-raidwhy { -webkit-flex: 1 1 100%; flex: 1 1 100%; margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; }
.qa-raidbar { min-height: 62px; margin: 0 0 10px; text-align: center; }
.qa-raidsay { display: block; font: 800 24px/1.2 'Baloo 2', sans-serif; color: #FFE7A8; text-shadow: 2px 0 #3A2A1F, -2px 0 #3A2A1F, 0 2px #3A2A1F, 0 -2px #3A2A1F; }
.qa-actbar { max-width: 520px; margin: 8px auto 0; }
.qa-raidtop { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; margin: 8px 0 0; padding: 0; list-style: none; }
.qa-raidtop .qa-sbrow { display: -webkit-inline-box; display: -webkit-inline-flex; display: inline-flex; margin: 0 8px 8px 0; padding: 4px 12px; border: 3px solid #3A2A1F; border-radius: 999px; background: #FFF8EA; font: 800 16px/1.3 'Nunito', sans-serif; color: #3A2A1F; }
.qa-raidtop .qa-sbrow b { -webkit-flex: 0 1 auto; flex: 0 1 auto; max-width: 160px; }
.qa-raidtop .qa-sbrow .ar-px { margin-left: 8px; color: #A8470B; }
.qa-raidtop .qa-sbrow .ar-hearts { margin: 0 0 0 8px; }
.qa-raidend + .qa-arena { margin-top: 14px; }
/* the phones: STRIKE! and PARRY! */
.qa-act h2 { font-size: 27px; }
.qa-meter { position: relative; height: 36px; margin: 14px 0 4px; border: 3px solid #3A2A1F; border-radius: 10px; overflow: hidden;
  background: #F6C9A8; background: linear-gradient(90deg, #F6C9A8 0, #F6C9A8 28%, #FFE08A 28%, #FFE08A 41%, #7CC88A 41%, #7CC88A 59%, #FFE08A 59%, #FFE08A 72%, #F6C9A8 72%); }
.qa-meter-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(58, 42, 31, .35); }
.qa-meter i { position: absolute; top: -3px; bottom: -3px; left: 0; width: 10px; margin-left: -5px; border-radius: 4px; background: #3A2A1F; -webkit-animation: qa-swing 1.1s linear infinite alternate; animation: qa-swing 1.1s linear infinite alternate; }
@keyframes qa-swing { from { left: 0; } to { left: 100%; } }
.qa-parry { position: relative; width: 150px; height: 150px; margin: 8px auto 2px; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.qa-parry-ring { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 6px solid #D8402E; border-radius: 50%; -webkit-animation: qa-ring 1.5s linear infinite; animation: qa-ring 1.5s linear infinite; }
@keyframes qa-ring { 0% { -webkit-transform: scale(2.3); transform: scale(2.3); border-color: #D8402E; opacity: .35; } 65% { border-color: #F2862E; opacity: 1; } 66% { -webkit-transform: scale(1.44); transform: scale(1.44); border-color: #2E8A55; } 99% { -webkit-transform: scale(1.02); transform: scale(1.02); border-color: #2E8A55; opacity: 1; } 100% { -webkit-transform: scale(1); transform: scale(1); border-color: #2E8A55; } }
.qa-devcard .qa-strike, .qa-devcard .qa-parrybtn { min-height: 66px; font-size: 23px; }
.qa-devcard .qa-strike .ar-pix, .qa-devcard .qa-parrybtn .ar-pix { margin-right: 8px; vertical-align: middle; }
.qa-parrysay, .qa-parried { font-weight: 800; }
.qa-parrymsg { min-height: 1.4em; }
@media (max-width: 760px) {
  .qa-arena { height: 38vh; min-height: 240px; }
  .qa-ar-boss { width: 38%; }
  .qa-ar-boss .qa-ar-bossart { width: 18vh; height: 18vh; min-width: 96px; min-height: 96px; }
  .qa-raidsay { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .qa-ar-hero, .qa-arena .qa-name, .qa-ar-sp, .qa-ar-boss .qa-ar-bossart, .qa-ar-pop, .qa-meter i, .qa-parry-ring { -webkit-animation: none !important; animation: none !important; -webkit-transition: none; transition: none; }
  .qa-ar-bolt { display: none; }
}

/* ── the big screen on a student's computer (2026-11-28) ───────────────────
   A window at least 1000 px wide: the teacher's arena beside the answer pad.
   A phone has the pad alone, as before. */
.qa-dev-wrap.is-wide { display: -ms-grid; display: grid; -ms-grid-columns: minmax(0, 1fr) 18px 440px; grid-template-columns: minmax(0, 1fr) 440px; grid-gap: 18px; max-width: 1340px; margin: 0 auto; -webkit-box-align: start; -webkit-align-items: start; align-items: start; }
.qa-dev-wrap.is-wide .qa-dev { max-width: none; margin: 0; }
.qa-mirror { position: -webkit-sticky; position: sticky; top: 10px; min-width: 0; }
.qa-mirror-stage .qa-arena, .qa-mirror-stage .qa-arena.is-lobby { height: calc(100vh - 230px); min-height: 380px; max-height: 720px; margin: 0; }
.qa-mirror-cap { min-height: 34px; margin: 10px 0 0; text-align: center; font: 800 24px/1.2 'Baloo 2', sans-serif; color: #FFE7A8; text-shadow: 2px 0 #3A2A1F, -2px 0 #3A2A1F, 0 2px #3A2A1F, 0 -2px #3A2A1F; }
.qa-mirror-feed { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; margin: 6px 0 0; padding: 0; list-style: none; }
.qa-mirror-hit { display: -webkit-inline-box; display: -webkit-inline-flex; display: inline-flex; margin: 0 8px 8px 0; padding: 4px 12px; border: 3px solid #3A2A1F; border-radius: 999px; background: #FFF8EA; font: 800 16px/1.3 'Nunito', sans-serif; color: #3A2A1F; }
.qa-mirror-hit b { margin: 0 8px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-mirror-hit .ar-px:last-child { color: #A8470B; }
.qa-mirror-hit.is-me { background: #FFE08A; }
.qa-ar-hero.is-me .qa-ar-tag b { background: #FFD447; }
.qa-ar-hero.is-me .qa-ar-tag b:before { content: '\25B6\00a0'; font-size: 10px; }
.qa-mirror-top { padding: 16px 20px; }
.qa-mirror-top h2 { margin: 0 0 10px; font: 800 28px 'Baloo 2', sans-serif; }
.qa-mirror-rank { margin: 0; padding: 0; list-style: none; }
.qa-mirror-rank li { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; margin: 0 0 8px; padding: 8px 14px; border: 3px solid #3A2A1F; border-radius: 12px; background: #FFF8EA; font: 800 20px 'Nunito', sans-serif; }
.qa-mirror-rank li.is-me { background: #FFE08A; }
.qa-mirror-rank li b { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; margin: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-devtog { margin-left: 10px; white-space: nowrap; }
.qa-dev-wrap.is-wide .qa-devcard h2 { font-size: 26px; }
@media (prefers-reduced-motion: reduce) { .qa-mirror .qa-ar-hero { -webkit-transition: none; transition: none; } }
