/* online.css — online duel screens (.on-) and the quiz's online overlays (.qz-author, .qz-wait, .qz-stand) */
.on-root { overflow: hidden; }
.on-col { position: absolute; left: 14px; right: 14px; top: 62px; display: flex; flex-direction: column; gap: 8px; }
.on-card { background: var(--cream); border: 3px solid var(--navy); border-radius: 16px; padding: 8px 10px; box-shadow: 0 4px 0 rgba(10,30,70,.35); color: var(--navy); }
.on-small { min-height: 46px; padding: 8px 14px; font-size: 16px; border-radius: 20px; flex: none; }
.on-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-height: 60px; }
.on-sharehint { flex: 1 0 100%; margin-top: 6px; font-size: 14px; line-height: 18px; font-weight: 800; color: var(--magenta); text-align: left; overflow-wrap: break-word; }
.on-codetx { font-size: 24px; letter-spacing: 2px; overflow-wrap: anywhere; min-width: 0; }
.on-players { display: flex; flex-direction: column; gap: 4px; }
.on-prow { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 2px 6px; border-radius: 10px; font-size: 16px; font-weight: 900; }
.on-prow.me, .on-rrow.me { background: #ffe67a; }
.on-crown { flex: none; width: 20px; color: #e8a400; font-size: 18px; text-align: center; }
.on-pname { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 18px; }
.on-you { flex: none; font-size: 13px; color: var(--magenta); }
.on-brings { flex: none; font-size: 13px; color: var(--teal); }
.on-packrow { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.on-icons { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.on-icons img { width: 38px; height: 38px; object-fit: contain; }
.on-hostpicks { font-size: 14px; font-weight: 800; color: var(--teal); }
.on-mhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.on-mtitle { font-size: 16px; -webkit-text-stroke: 3px var(--navy); }
.on-qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.on-q { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 8px; border: 3px solid var(--navy); border-radius: 14px; background: #fff; font-size: 15px; font-weight: 900; cursor: pointer; }
.on-q.on { background: var(--yellow); }
.on-qck { flex: none; width: 20px; height: 20px; border: 2px solid var(--navy); border-radius: 6px; background: #fff; text-align: center; font-size: 14px; line-height: 16px; color: var(--magenta); }
.on-qname { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 17px; }
.on-noq { font-size: 14px; font-weight: 800; text-align: center; padding: 6px 0; }
.on-privacy { margin-top: 6px; font-size: 12px; line-height: 15px; font-weight: 700; color: #5a6aa0; text-align: center; }
.on-start { position: absolute; left: 0; right: 0; margin: 0 auto; width: 300px; bottom: 22px; height: 62px; font-size: 22px; }
.on-wait { position: absolute; left: 0; right: 0; bottom: 36px; text-align: center; font-size: 20px; }
/* result */
.on-rank { display: flex; flex-direction: column; gap: 4px; }
.on-rrow { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 2px 8px; border-radius: 10px; font-size: 17px; font-weight: 900; }
.on-rn { flex: none; width: 28px; text-align: center; font-size: 20px; }
.on-rok { flex: none; font-size: 14px; color: #1a9a4a; }
.on-rsc { flex: none; min-width: 52px; text-align: right; font-size: 20px; }
.on-gold { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; font-size: 24px; }
.on-gold img { width: 34px; height: 34px; object-fit: contain; }
.on-cq { display: flex; flex-direction: column; gap: 4px; }
.on-cqtitle { font-size: 14px; font-weight: 900; color: var(--magenta); }
.on-cqrow { display: flex; align-items: center; gap: 8px; min-height: 46px; }
.on-thumb { flex: none; width: 40px; height: 40px; border-radius: 8px; background: #cfeff5; border: 2px solid var(--navy); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.on-thumb img, .on-thumb canvas { max-width: 100%; max-height: 100%; object-fit: contain; }
.on-cqname { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 16px; }
.on-cqname b { font-size: 15px; overflow-wrap: anywhere; }
.on-cqname i { font-size: 12px; font-style: normal; color: var(--teal); overflow-wrap: anywhere; }
.on-bar { position: absolute; left: 14px; right: 14px; bottom: 22px; display: flex; gap: 12px; justify-content: center; }
.on-bbtn { flex: 1; height: 58px; padding: 10px 8px; font-size: 20px; }
/* quiz overlays */
.qz-author { position: absolute; left: 0; right: 0; margin: auto; width: fit-content; max-width: 360px; top: 84px; height: 30px; padding: 0 14px; line-height: 24px;
  background: var(--magenta); border: 3px solid var(--navy); border-radius: 15px; color: #fff; font-size: 15px; font-weight: 900; white-space: nowrap; overflow: hidden;
  paint-order: stroke fill; -webkit-text-stroke: 3px var(--navy); z-index: 5; pointer-events: none; }
.qz-wait { position: absolute; left: 0; right: 0; margin: auto; width: fit-content; max-width: 340px; top: 560px; padding: 8px 18px; background: var(--cream); border: 3px solid var(--navy);
  border-radius: 16px; font-size: 20px; font-weight: 900; color: var(--navy); text-align: center; box-shadow: 0 4px 0 rgba(10,30,70,.35); z-index: 6; }
.qz-stand { position: absolute; left: 28px; top: 516px; width: 340px; padding: 8px 12px; background: var(--cream); border: 3px solid var(--navy); border-radius: 14px;
  box-shadow: 0 4px 0 rgba(10,30,70,.35); color: var(--navy); z-index: 6; }
.qz-stand .qz-stitle, .qz-stitle { font-size: 13px; line-height: 16px; font-weight: 900; color: var(--magenta); margin-bottom: 2px; text-align: center; }
.qz-srow { display: flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 4px; border-radius: 8px; font-size: 15px; line-height: 17px; font-weight: 800; }
.qz-srank { flex: none; width: 24px; text-align: center; font-weight: 900; }
.qz-sname { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.qz-sgain { flex: none; color: #17a34a; font-weight: 900; }
.qz-stot { flex: none; min-width: 44px; text-align: right; font-weight: 900; }
.qz-srow.me { background: #ffe67a; }
