/* ════════════════════════════════════════════════════════
   NIGHTWINGS OWL QUIZ — trivia-specific styles
   Layers on top of hangman.css (shares .hm-app / [data-theme]
   / .hm-top / .hm-screen / .hm-btn / leaderboard, etc).
   Adds: question card, MC + True/False options, timer ring.
   ════════════════════════════════════════════════════════ */

/* ── PLAY: question stage ── */
.tq-play { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 22px; padding: 30px 24px 40px; position: relative; width: 100%; max-width: 820px; margin: 0 auto; }

/* progress + timer row */
.tq-meter { display: flex; align-items: center; gap: 18px; width: 100%; }
.tq-progress { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.tq-progress .lbl { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #8B87C4; font-weight: 700; }
.tq-progress .lbl b { color: #F5B800; font-family: var(--font-d); }
.tq-bar { height: 7px; border-radius: 999px; background: rgba(180,178,220,.14); overflow: hidden; }
.tq-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#F5B800,#F1CE74);
  box-shadow: 0 0 12px rgba(245,184,0,.5); transition: width .4s var(--ease-spring, cubic-bezier(.34,1.56,.64,1)); }

/* circular countdown timer */
.tq-timer { position: relative; width: 66px; height: 66px; flex-shrink: 0; }
.tq-timer .ring { width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(#F5B800 var(--p,100%), rgba(180,178,220,.14) 0); transition: background .3s linear; }
.tq-timer .ring::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #140C2D;
  border: 1px solid rgba(180,178,220,.12); }
.tq-timer .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 800; font-size: 22px; z-index: 2; }
.tq-timer.warn .ring { background: conic-gradient(#E05A37 var(--p,100%), rgba(180,178,220,.14) 0); }
.tq-timer.warn .num { color: #FF8A6A; animation: tqTick .6s infinite; }

/* question card */
.tq-card { width: 100%; border-radius: 22px; padding: 30px 34px; text-align: center; position: relative;
  background: linear-gradient(165deg, rgba(45,27,105,.4), rgba(20,12,45,.7)); border: 1px solid rgba(180,178,220,.16);
  box-shadow: 0 18px 50px rgba(0,0,0,.35); opacity: 1; }
.tq-card.tq-in { animation: tqRise .38s cubic-bezier(.2,.7,.3,1) both; }
.tq-typebadge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px;
  font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 800;
  background: rgba(91,78,174,.2); color: #B4B2DC; border: 1px solid rgba(180,178,220,.2); }
.tq-typebadge.tf { background: rgba(245,184,0,.12); color: #F5B800; border-color: rgba(245,184,0,.3); }
.tq-qtext { font-family: var(--font-d); font-weight: 800; font-size: 27px; line-height: 1.28; letter-spacing: -.6px;
  margin: 16px 0 4px; text-wrap: balance; }
.hm-app[data-theme="decrypt"] .tq-qtext { font-family: var(--font-mono, monospace); font-weight: 700; font-size: 23px; }

/* options */
.tq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; margin-top: 6px; }
.tq-opts.tf { grid-template-columns: 1fr 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
.tq-opt { display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; padding: 18px 20px;
  border-radius: 15px; background: rgba(20,12,45,.55); border: 1.5px solid rgba(180,178,220,.16);
  font-family: var(--font-ui); font-size: 16px; font-weight: 600; color: #E7E5F2; transition: .15s; }
.tq-opt:hover { border-color: rgba(245,184,0,.45); transform: translateY(-2px); background: rgba(245,184,0,.05); }
.tq-opt .key { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-d); font-weight: 800; font-size: 15px; color: #B4B2DC;
  background: rgba(13,8,32,.7); border: 1px solid rgba(180,178,220,.2); transition: .15s; }
.tq-opt.correct { border-color: rgba(76,175,138,.7); background: rgba(76,175,138,.14); color: #C8F3E1; }
.tq-opt.correct .key { background: #4CAF8A; color: #06231A; border-color: #4CAF8A; }
.tq-opt.wrong { border-color: rgba(224,90,55,.6); background: rgba(224,90,55,.12); color: #FFB6A4; }
.tq-opt.wrong .key { background: #E05A37; color: #2A0A04; border-color: #E05A37; }
.tq-opt.dim { opacity: .45; }
.tq-opt .mark { margin-left: auto; font-size: 18px; opacity: 0; transition: .15s; }
.tq-opt.correct .mark, .tq-opt.wrong .mark { opacity: 1; }

/* true / false big buttons */
.tq-tf .tq-opt { flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px; text-align: center; }
.tq-tf .tq-opt .key { width: 46px; height: 46px; border-radius: 50%; font-size: 22px; }
.tq-tf .tq-opt .lab { font-family: var(--font-d); font-weight: 800; font-size: 18px; }

/* owl narrator (reuse hm-owl positioning tweaked for quiz) */
.tq-say { text-align: center; font-size: 13px; font-weight: 600; color: #8B87C4; min-height: 18px; }
.hm-app[data-theme="decrypt"] .tq-say { font-family: var(--font-mono, monospace); }

/* streak flame chip */
.tq-streakchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: #F5B800; background: rgba(245,184,0,.12); border: 1px solid rgba(245,184,0,.3); }

/* lives inline in hud */
.tq-hud-lives { display: flex; gap: 7px; align-items: center; }
.tq-hud-lives .lbl { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #8B87C4; font-weight: 700; }

@keyframes tqRise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes tqTick { 0%,100% { transform: scale(1); } 50% { transform: scale(1.14); } }

/* answered feedback pop on card */
.tq-feedback { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px;
  font-family: var(--font-d); font-weight: 800; font-size: 14px; white-space: nowrap; opacity: 0; }
.tq-feedback.show { animation: tqPopFb 1.1s ease both; }
.tq-feedback.good { background: #4CAF8A; color: #06231A; box-shadow: 0 8px 24px rgba(76,175,138,.4); }
.tq-feedback.bad { background: #E05A37; color: #2A0A04; box-shadow: 0 8px 24px rgba(224,90,55,.4); }
@keyframes tqPopFb { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 20% { opacity: 1; transform: translate(-50%,-2px) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-8px); } }

@media (max-width: 720px) {
  .tq-opts { grid-template-columns: 1fr; }
  .tq-qtext { font-size: 22px; }
  .tq-card { padding: 24px 20px; }
}
