/* Create By Asking: Christmas quiz. Loaded after style.css, tools.css and family.css (for .f-row and textarea). */

#quiz-tool { scroll-margin-top: 84px; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 22px 28px; }
.qz > * { min-width: 0; }
.qz-stage { position: relative; display: grid; gap: 14px; align-content: start; min-height: 470px; background: rgba(255, 255, 255, 0.03); border-radius: 14px; padding: 18px clamp(12px, 2.5vw, 22px); }
.qz-stage.is-fs { background: var(--screen); border-radius: 0; padding: 4vh 6vw; align-content: center; overflow: auto; }
.qz-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #A597CC; }
.qz-top b { color: #FFC93C; font-weight: 600; }
.qz-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.qz-bar i { display: block; height: 100%; width: 100%; background: #5BD48F; border-radius: inherit; transition: width 0.1s linear; }
.qz-bar.low i { background: #FF7A62; }
.qz-bar[hidden] { display: none; }
.qz-q { font: 800 clamp(1.35rem, 3.6vw, 2.1rem)/1.2 var(--display); color: #fff; margin: 6px 0 2px; text-wrap: balance; }
.qz-q.emoji { font-size: clamp(3rem, 11vw, 5rem); line-height: 1.1; letter-spacing: 0.08em; text-align: center; }
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz-opts[hidden] { display: none; }
.qz-opt { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 64px; padding: 12px 14px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.06); color: #fff; font: 600 clamp(1rem, 2.2vw, 1.2rem)/1.25 var(--body); cursor: pointer; transition: background 0.15s, border-color 0.15s, opacity 0.2s, transform 0.1s; }
@media (hover: hover) { .qz-opt:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 201, 60, 0.6); } }
.qz-opt:active:not(:disabled) { transform: scale(0.98); }
.qz-opt b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 800 0.95rem/1 var(--display); color: #1C0F3F; background: #FFC93C; }
.qz-opt:nth-child(2) b { background: #5BD48F; }
.qz-opt:nth-child(3) b { background: #FF8FA3; }
.qz-opt:nth-child(4) b { background: #8FD0FF; }
.qz-opt:disabled { cursor: default; }
.qz-opt.right { background: rgba(91, 212, 143, 0.22); border-color: #5BD48F; }
.qz-opt.right b { background: #5BD48F; }
.qz-opt.right span::after { content: " ✓"; color: #5BD48F; font-weight: 800; }
.qz-opt.wrong { background: rgba(255, 122, 98, 0.18); border-color: #FF7A62; }
.qz-opt.dim { opacity: 0.4; }
.qz-open { font: 800 clamp(1.4rem, 4vw, 2.2rem)/1.2 var(--display); color: #5BD48F; text-align: center; padding: 14px; border-radius: 12px; background: rgba(91, 212, 143, 0.14); }
.qz-open[hidden] { display: none; }
.qz-fb { min-height: 1.5em; margin: 0; color: #CBBFE8; font-weight: 600; text-align: center; }
.qz-fb b { color: #fff; }
.qz-fb.ok { color: #5BD48F; font-size: 1.15rem; }
.qz-fb.no { color: #FFD3C9; }
.qz-who { display: grid; gap: 8px; justify-items: center; }
.qz-who[hidden] { display: none; }
.qz-who > div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.qz-who .chip-dark { padding: 11px 16px; font-size: 1rem; }
.qz-who .chip-dark[aria-pressed="true"] { background: #5BD48F; }
.qz-who .chip-dark[aria-pressed="true"]::before { content: "+1 "; }
.qz-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.qz-row .btn { min-width: 170px; justify-content: center; font-size: 1.05rem; }
.qz-row .btn[hidden] { display: none; }
.qz-board { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.qz-board .score { padding: 8px 10px; text-align: center; }
.qz-board .score span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-board .score strong { font-size: 1.6rem; }
.qz-foot { display: flex; justify-content: space-between; gap: 12px; }
.qz-small { border: 0; background: none; padding: 0; color: #A597CC; font: 500 0.82rem/1 var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.qz-small:hover { color: #fff; }
.qz-small[hidden] { display: none; }
.qz .game-overlay { background: rgba(15, 8, 39, 0.94); z-index: 2; border-radius: 14px; overflow-y: auto; }
.qz .game-overlay > div { max-width: 400px; }
.qz .game-overlay .f-row { justify-content: center; }
.qz-final { list-style: none; padding: 0; margin: 0 auto 16px; display: grid; gap: 6px; max-width: 300px; }
.qz-final[hidden] { display: none; }
.qz-final li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); font-weight: 600; text-align: left; }
.qz-final li:first-child { background: rgba(255, 201, 60, 0.2); color: #FFC93C; }
.qz-final li.qz-stars { justify-content: center; background: none; font-size: 2.4rem; letter-spacing: 6px; }
.qz-stars i { font-style: normal; opacity: 0.25; filter: grayscale(1); }
.qz-stars i.on { opacity: 1; filter: none; }

/* settings */
.qz-side { display: grid; gap: 16px; align-content: start; }
.qz-side .f-row > span { flex-basis: 100%; margin-bottom: 2px; }
.qz-note { margin: -8px 0 0; font-size: 0.78rem; color: #A597CC; }
.qz-names { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tool-shell .qz-names input { padding: 8px 10px; font-size: 0.9rem; width: 100%; }
.qz-own { display: grid; gap: 6px; }
.qz-own[hidden] { display: none; }
.qz-own > div { display: flex; justify-content: space-between; align-items: baseline; font: 600 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #A597CC; }
.tool-shell .qz-own textarea { width: 100%; min-height: 170px; font-size: 0.9rem; line-height: 1.45; }
.qz-own small { color: #A597CC; font-size: 0.75rem; line-height: 1.4; }
.qz-own .qz-links { display: flex; gap: 14px; }
.qz-side > .btn { justify-content: center; }
.qz-side > [data-mute] { justify-self: start; }
.qz > .tool-note { grid-column: 1 / -1; margin: 0; }

@media (max-width: 860px) { #quiz-tool { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .qz-opts { grid-template-columns: 1fr; gap: 8px; }
  .qz-opt { min-height: 54px; }
  .qz-stage { min-height: 470px; }
  .qz-row .btn { flex: 1 1 100%; }
  .qz-board { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; }
  .qz-board .score { padding: 6px 8px; }
  .qz-board .score strong { font-size: 1.3rem; }
}

/* Answers list in the guide */
.qz-list ol { padding-left: 1.6em; }
.qz-list li { margin: 0 0 6px; }
.qz-list li b { white-space: nowrap; }
.qz-list .emo { font-size: 1.3em; letter-spacing: 0.06em; }

/* printing */
.qz-print { display: none; }
@media print {
  body.qz-printing > *:not(.qz-print) { display: none !important; }
  body.qz-printing { background: #fff; color: #000; }
  body.qz-printing .qz-print { display: block; font-family: "Figtree", Arial, sans-serif; color: #000; }
  .qz-print section { break-after: page; }
  .qz-print section:last-child { break-after: auto; }
  .qz-print h1 { font: 800 22pt/1.1 "Bricolage Grotesque", Arial, sans-serif; margin: 0 0 3mm; }
  .qz-print p { margin: 0 0 6mm; font-size: 11pt; }
  .qz-p-qs { padding-left: 8mm; margin: 0; font-size: 11.5pt; }
  .qz-p-qs > li { margin: 0 0 4mm; break-inside: avoid; font-weight: 600; }
  .qz-p-emoji { font-size: 20pt; letter-spacing: 2pt; }
  .qz-p-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5mm 6mm; margin: 1.5mm 0 0; padding-left: 6mm; font-weight: 400; }
  .qz-p-line { border-bottom: 0.3mm solid #999; height: 7mm; width: 110mm; }
  .qz-p-as { padding-left: 8mm; columns: 2; column-gap: 10mm; font-size: 11.5pt; }
  .qz-p-as li { margin: 0 0 2.5mm; break-inside: avoid; }
  .qz-p-as span { color: #555; }
  .qz-p-foot { margin-top: 8mm !important; color: #555; font-size: 9pt !important; }
}
