/* Daily quests (quests.js). Uses the pixel skin's tokens from skin.css; .pf-bar comes from profile.css. */

/* ---------- title menu button ---------- */
#title .menu .qs-btn { position: relative; }
.qs-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: var(--gold); box-shadow: 0 0 0 2px var(--ink);
  animation: qs-blink 1.2s steps(2) infinite; }
@keyframes qs-blink { 50% { opacity: .25; } }

/* ---------- screen ---------- */
#quests { padding-inline: max(12px, calc((100% - 720px) / 2)); padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); gap: 10px; }
.qs-when { margin: 0; color: var(--dim); font-size: var(--fs-s, 14px); text-align: right; }
.qs-list { display: grid; gap: 8px; }
.qs-q { display: grid; gap: 6px; padding: 10px 12px; text-align: left; background: var(--panel); box-shadow: inset 0 0 0 2px var(--rimlo); }
.qs-q.t2 { box-shadow: inset 0 0 0 2px var(--bluelo); }
.qs-q.t3 { box-shadow: inset 0 0 0 2px var(--goldlo); }
.qs-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qs-top b { font-weight: 400; color: var(--cream); font-size: var(--fs-m, 16px); min-width: 0; }
.qs-top em { flex: none; font-style: normal; font-size: 12px; color: var(--gold); }
.qs-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 26px; }
.qs-q small { font-size: 12px; color: var(--dim); }
.qs-swap { font: inherit; font-size: 12px; color: var(--cream); background: var(--deep); border: 0; padding: 4px 10px; box-shadow: var(--frame); cursor: pointer; }
.qs-swap:disabled { color: var(--dim); background: none; box-shadow: none; cursor: default; }
.qs-q.done { opacity: .7; }
.qs-q.done .qs-top em { color: var(--teal); }
.qs-q.done .qs-bar i { background: var(--gold); box-shadow: inset 0 2px 0 #fff3c0; }
.qs-q.fresh { animation: qs-in .5s steps(5) both; }
@keyframes qs-in { 0% { transform: scale(.94); opacity: 0; } 100% { transform: none; opacity: 1; } }
.qs-first { background: var(--deep); }
.qs-note { margin: 0; text-align: center; font-size: 12px; color: var(--dim); line-height: 1.5; }

/* ---------- result modal panel ---------- */
.qs-res { display: grid; gap: 6px; }
.qs-res h3 { margin: 0; font-weight: 400; font-size: 14px; color: var(--dim); text-align: left; }
.qs-res .qs-q { padding: 6px 10px; gap: 4px; }
.qs-res .qs-top b { font-size: 14px; }
.qs-res .qs-bot { min-height: 0; }
.qs-res .qs-q.fresh { opacity: 1; box-shadow: inset 0 0 0 3px var(--gold); animation: qs-in .5s steps(5) .3s both; }
.qs-first-got { margin: 0; color: var(--teal) !important; font-size: 13px !important; }
.qs-first-got.later { color: var(--dim) !important; }   /* banked, not paid yet: plain, not the green of a payout */
.qs-q.later .qs-top em { color: var(--dim); }          /* a quest reward that waits in the bank: the same plain style */
