/* ═══ INSÔNIA — Dicas: Quiz Inteligente (preto e dourado) ═══ */
.qz { max-width: 680px; margin: 0 auto; background: var(--bg1); border: 1px solid var(--border-md); border-radius: 20px; overflow: hidden; transition: max-width .3s; }
.qz:has(.qz-res) { max-width: 820px; }
.qz-bar { height: 3px; background: var(--bg3); }
.qz-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-d), var(--gold-l)); transition: width .45s cubic-bezier(.16,1,.3,1); }
.qz-body { padding: clamp(1.1rem, 4vw, 2.2rem); min-height: 300px; }
.qz-body.qz-in > * { animation: qzIn .35s cubic-bezier(.16,1,.3,1) both; }
@keyframes qzIn { from { opacity: 0; transform: translateY(10px); } }

/* pergunta */
.qz-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; min-height: 30px; }
.qz-num { font-size: .68rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }
.qz-back { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem; border-radius: 99px; border: 1px solid var(--border-md); background: none;
  color: var(--t1); font: 600 .75rem 'Inter', sans-serif; cursor: pointer; }
.qz-back:hover { color: var(--t0); border-color: var(--gold-b); }
.qz-q { font-size: clamp(1.1rem, 3.4vw, 1.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 1.2rem; color: var(--t0); }
.qz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.qz-opts.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qz-opts.few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qz-opt { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .95rem 1rem; text-align: left; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; color: var(--t0); font-family: 'Inter', sans-serif;
  transition: border-color .2s, background .2s, transform .2s; -webkit-tap-highlight-color: transparent; }
.qz-opt:hover { border-color: var(--gold-b); background: var(--bg3); }
.qz-opt:active { transform: scale(.98); }
.qz-opt.on { border-color: var(--gold); background: var(--gold-bg); }
.qz-oi { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.qz-opt b { display: block; font-size: .9rem; font-weight: 700; line-height: 1.25; }
.qz-opt small { display: block; font-size: .72rem; color: var(--t1); margin-top: .15rem; line-height: 1.35; }
.qz-opts.six .qz-opt { flex-direction: column; text-align: center; gap: .45rem; padding: .9rem .6rem; }

/* carregando */
.qz-load { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; min-height: 260px; color: var(--t1); font-size: .88rem; text-align: center; }
.qz-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--bg3); border-top-color: var(--gold); animation: qzSpin .8s linear infinite; }
@keyframes qzSpin { to { transform: rotate(360deg); } }

/* resultado */
.qz-hd { display: flex; align-items: center; gap: .9rem; }
.qz-ico { width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.9rem; border-radius: 16px; background: var(--gold-bg); border: 1px solid var(--gold-b); }
.qz-hd small { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t1); }
.qz-hd h3 { margin: .1rem 0 0; font-size: clamp(1.2rem, 3.6vw, 1.55rem); font-weight: 900; letter-spacing: -.02em; color: var(--gold); line-height: 1.15; }
.qz-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .9rem 0 0; }
.qz-chips span { padding: .28rem .65rem; border-radius: 99px; background: var(--bg2); border: 1px solid var(--border-md); font-size: .72rem; font-weight: 600; color: var(--t1); }
.qz-sub { color: var(--t1); font-size: .82rem; line-height: 1.6; margin: .9rem 0 0; }
.qz-sub i { color: var(--gold); }
.qz-note { display: flex; gap: .45rem; align-items: flex-start; margin: .7rem 0 0; padding: .6rem .75rem; border-radius: 10px; font-size: .78rem; line-height: 1.5;
  background: rgba(212,175,55,.08); border: 1px solid var(--gold-b); color: #f3e2a6; }
.qz-kit { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.qz-it { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .65rem; border-radius: 14px;
  background: var(--bg2); border: 1px solid var(--border); transition: border-color .25s, background .25s; }
.qz-it.added { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.06); }
.qz-it.swap { animation: qzSwap .4s cubic-bezier(.16,1,.3,1); }
@keyframes qzSwap { from { opacity: .2; transform: translateX(10px); } }
.qz-img { display: block; width: 64px; height: 64px; border-radius: 11px; overflow: hidden; background: #fff; }
.qz-img.dark { background: #000; }
.qz-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qz-info { min-width: 0; }
.qz-info small { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: .15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; font-weight: 700; line-height: 1.3; color: var(--t0); text-decoration: none; }
.qz-name span { font-weight: 500; color: var(--t1); }
.qz-name:hover { color: var(--gold-l); }
.qz-why { display: flex; flex-direction: column; gap: .1rem; margin: .3rem 0 0; }
.qz-why span { font-size: .7rem; line-height: 1.35; color: var(--t1); }
.qz-why i { color: #4ade80; font-size: .72rem; margin-right: .25rem; }
.qz-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.qz-pr { text-align: right; line-height: 1.15; white-space: nowrap; }
.qz-pr small { display: block; font-size: .66rem; color: var(--t1); }
.qz-pr b { font-size: .95rem; font-weight: 800; color: var(--t0); }
.qz-pr s { display: block; font-size: .68rem; color: var(--t2); }
.qz-acts { display: flex; gap: .35rem; }
.qz-ib { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; font-size: 1.05rem;
  background: var(--bg3); border: 1px solid var(--border-md); color: var(--t1); transition: background .2s, color .2s, border-color .2s; }
.qz-ib:hover { color: var(--t0); border-color: var(--gold-b); }
.qz-ib.gold { background: var(--gold); border-color: var(--gold); color: #000; }
.qz-it.added .qz-ib.gold { background: #22c55e; border-color: #22c55e; color: #000; }

.qz-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px;
  background: var(--bg0); border: 1px solid var(--gold-b); }
.qz-tot { min-width: 0; }
.qz-tot small { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--t1); }
.qz-tot b { display: block; font-size: 1.45rem; font-weight: 900; color: var(--gold); letter-spacing: -.02em; line-height: 1.15; }
.qz-tot em { display: block; font-style: normal; font-size: .72rem; color: #4ade80; }
.qz-tot em.over { color: #fbbf24; }
.qz-all { flex-shrink: 0; justify-content: center; }
.qz-all:disabled { opacity: .6; cursor: default; transform: none !important; box-shadow: none !important; }
.qz-done { display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; padding: .7rem; border-radius: 12px; text-decoration: none;
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); color: #4ade80; font-weight: 600; font-size: .86rem; }
.qz-done b { color: #f5f5f5; }
.qz-done[hidden] { display: none; }
.qz-more { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.qz-link { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .9rem; border-radius: 99px; cursor: pointer;
  background: none; border: 1px solid var(--border-md); color: var(--t1); font: 600 .78rem 'Inter', sans-serif; }
.qz-link:hover { color: var(--t0); border-color: var(--gold-b); }
.qz-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 1.5rem 0; color: var(--t1); }

@media (max-width: 560px) {
  .qz-opts, .qz-opts.few { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .qz-opts.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qz-opt { padding: .8rem .9rem; }
  .qz-it { grid-template-columns: 54px minmax(0, 1fr); gap: .65rem; padding: .6rem; }
  .qz-img { width: 54px; height: 54px; }
  .qz-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: .45rem; border-top: 1px solid var(--border); }
  .qz-pr { text-align: left; display: flex; align-items: baseline; gap: .4rem; }
  .qz-pr small, .qz-pr s { display: inline; }
  .qz-foot { flex-direction: column; align-items: stretch; text-align: center; gap: .7rem; }
  .qz-all { width: 100%; }
}
@media (hover: none) { .qz-opt:hover { background: var(--bg2); border-color: var(--border); } .qz-opt.on { border-color: var(--gold); background: var(--gold-bg); } }
@media (prefers-reduced-motion: reduce) { .qz *, .qz { animation: none !important; transition: none !important; } }

/* 7.1: ícones no lugar dos emojis */
.qz-oi .ti, .qz-ico .ti { color: var(--gold, #D4AF37); }
