/* Motor de idiomas: quests.css. Missões do dia, semana da ofensiva e folha da ofensiva (proteção). Só tokens. */

/* ---------- semana da ofensiva ---------- */
.streak-week { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.wk-head {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: -4px 0 4px; padding: 0 4px;
  border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left; font-size: 14.5px;
}
.wk-head:hover { background: var(--bg); }
.wk-st { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.wk-st b { font-family: var(--font-display); font-size: 18px; }
.wk-st .ico { width: 20px; height: 20px; color: var(--flame); fill: var(--flame); stroke-width: 1.6; }
.wk-st.off .ico { color: var(--muted); fill: none; }
.wk-fr { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 99px; background: var(--sel-bg); color: var(--sel); font-weight: 700; font-size: 13.5px; }
.wk-fr .ico { width: 16px; height: 16px; fill: currentColor; fill-opacity: .2; }
.wk-fr.none { color: var(--muted); background: var(--bg); }
.wk-more .ico { width: 18px; height: 18px; color: var(--muted); }
.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wk-day { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wk-l { font-size: 12px; font-weight: 700; color: var(--muted); }
.wk-dot {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.wk-dot .ico { width: 17px; height: 17px; stroke-width: 3; }
.wk-day.on .wk-dot { background: var(--flame); color: #fff; box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--flame) 60%, var(--ink-fixed)); }
.wk-day.frz .wk-dot { background: var(--sel-bg); color: var(--sel); box-shadow: inset 0 0 0 1.5px var(--sel-line); }
.wk-day.frz .wk-dot .ico { stroke-width: 2.2; fill: currentColor; fill-opacity: .2; }
.wk-day.today .wk-l { color: var(--ink); }
.wk-day.today .wk-dot { box-shadow: inset 0 0 0 2.5px var(--flame); }
.wk-day.today.on .wk-dot { box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--flame) 60%, var(--ink-fixed)), 0 0 0 3px var(--flame-soft); }
.wk-day.fut .wk-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); opacity: .7; }
.wk-day.on .wk-dot { animation: wk-pop .3s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes wk-pop { from { transform: scale(.6); } to { transform: none; } }
.streak-week.big { border-top: 0; margin: 4px 0 16px; padding: 14px 10px; border-radius: 18px; background: var(--bg); }
.streak-week.big .wk-dot { width: 36px; height: 36px; background: var(--card); }
.streak-week.big .wk-day.on .wk-dot { background: var(--flame); }

/* ---------- missões do dia ---------- */
.quests-card { padding: 14px 16px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-1); }
.qc-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.qc-head h2 { margin: 0 auto 0 0; font-size: 18px; letter-spacing: -.01em; outline: none; }
.qc-time { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.qc-time .ico { width: 15px; height: 15px; }
.qc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.quest { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 0; }
.quest + .quest { border-top: 1px solid var(--line); }
.q-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent-wash); color: var(--accent-ink); }
.q-ic .ico { width: 22px; height: 22px; }
.quest.done .q-ic { background: var(--accent); color: var(--on-accent); }
.q-body { flex: 1; min-width: 0; }
.q-body b { display: block; font-size: 15px; line-height: 1.25; margin-bottom: 6px; }
.q-bar { position: relative; height: 18px; border-radius: 99px; background: var(--line); overflow: hidden; }
.q-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.q-bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.quest.done .q-bar i { background: var(--ok-solid); }
.quest.done .q-bar span { color: #fff; }
.q-rew, .q-claim, .q-got { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 64px; height: 44px; border-radius: 13px; font-family: var(--font-display); font-weight: 800; font-size: 14.5px; }
.q-rew { color: var(--muted); background: var(--bg); }
.q-rew .ico, .q-claim .ico { width: 18px; height: 18px; }
.q-claim {
  border: 0; padding: 0 12px; color: var(--on-accent); background: var(--accent); box-shadow: inset 0 -4px 0 var(--accent-edge);
  animation: claim-pulse 1.6s ease-in-out infinite; transition: transform .15s;
}
.q-claim:hover { filter: brightness(1.05); }
.q-claim:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--accent-edge); }
@keyframes claim-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.q-got { min-width: 44px; color: var(--ok); background: var(--ok-bg); }
.q-got .ico { width: 20px; height: 20px; stroke-width: 3; }
.quest.claimed .q-body b { color: var(--muted); }
.qc-note { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; color: var(--muted); font-size: 12.5px; }
.qc-note .ico { width: 15px; height: 15px; }
.quests-card.all { border-color: var(--ok-line); }

/* ---------- folha da ofensiva ---------- */
.modal.streak-sheet { padding-top: 26px; max-height: 92dvh; overflow-y: auto; }
.ss-hero { display: flex; align-items: center; gap: 14px; margin: 0 48px 6px 0; }
.ss-flame { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--flame-soft); }
.ss-flame .ico { width: 48px; height: 48px; color: var(--flame); fill: var(--flame); stroke-width: 1.3; }
.ss-flame .fl-in { fill: var(--accent); stroke: none; opacity: 0; }
.ss-hero.lit .ss-flame .fl-in { opacity: 1; }
.ss-hero.lit .ss-flame .ico { animation: ignite .5s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
.ss-hero.off .ss-flame { background: var(--bg); }
.ss-hero.off .ss-flame .ico { color: var(--muted); fill: none; }
.ss-n { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.ss-hero span { color: var(--ink-2); font-weight: 600; }
.modal .ss-today { margin: 8px 0 14px; font-size: 15.5px; }
.ss-freeze { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; padding: 14px; border-radius: 16px; background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel-line); }
.ss-fic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card); color: var(--sel); }
.ss-fic .ico { width: 22px; height: 22px; fill: currentColor; fill-opacity: .2; }
.ss-freeze b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.ss-freeze small { display: block; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.modal .ss-local { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.ss-local .ico { flex: none; width: 17px; height: 17px; margin-top: 1px; }
