/* rise2-progress. The parchment journal inherits Rise's dark/light tokens. */
.rise3d .r3-guide.r3-quests { width: 302px; padding: 10px 14px; border-radius: 8px; max-height: min(460px, 55%); overflow: auto; }
.rise3d .r3-quest-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rise3d .r3-quest-journal { border: 0; background: none; padding: 5px 0; color: var(--r3-gold); font: 600 17px Georgia, serif; }
.rise3d .r3-quest-collapse { border: 0; background: none; font-size: 11px; color: var(--r3-muted); padding: 5px; }
.rise3d .r3-quest-row { padding: 12px 0; }
.rise3d .r3-quest-heading { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.rise3d .r3-quest-heading strong { font-size: 13px; line-height: 1.4; }
.rise3d .r3-quest-count { flex-shrink: 0; font-size: 11px; color: var(--r3-muted); font-variant-numeric: tabular-nums; }
.rise3d .r3-quest-row progress { display: block; width: 100%; height: 4px; margin: 8px 0; border: 0; border-radius: 6px; overflow: hidden; }
.rise3d .r3-quest-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rise3d .r3-quest-footer small { font-size: 11px; line-height: 1.6; }
.rise3d .r3-quest-footer button { min-height: 32px; padding: 5px 12px; flex-shrink: 0; }
.rise3d .r3-quest-claim { color: var(--r3-gold); border-color: var(--r3-gold); font-weight: 600; }
.rise3d .r3-quest-ready .r3-quest-heading strong { color: var(--r3-gold); }
.rise3d .r3-quest-sides { border-top: 1px solid var(--r3-line); }
.rise3d .r3-quest-sides .r3-quest-row { padding: 8px 0; }
.rise3d .r3-quest-sides .r3-quest-heading strong { font-weight: 500; font-size: 12px; }
.rise3d .r3-quest-bank { display: block; color: var(--r3-muted); font-variant-numeric: tabular-nums; padding: 4px 0; }
.rise3d .r3-quest-muted { opacity: .68; }
.rise3d .r3-quest-body h3 { margin: 22px 0 4px; font-size: 18px; }
.rise3d .r3-quest-body .r3-quest-row { border-bottom: 1px solid var(--r3-line); }
.rise3d .r3-quest-chest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 0; color: var(--r3-gold); }
.rise3d .r3-quest-chest small { flex-basis: 100%; }
.rise3d .r3-speedup-actions { display: flex; gap: 6px; margin-top: 6px; }
.rise3d .r3-speedup-actions button { min-height: 32px; font-size: 11px; color: var(--r3-gold); }
.rise3d .r3-quest-reward { position: absolute; right: 24px; bottom: 100px; max-width: calc(100% - 48px); padding: 16px; border-radius: 8px; background: var(--r3-paper); color: var(--r3-gold); border-left: 3px solid var(--r3-gold); pointer-events: none; z-index: 9; }
.rise3d .r3-quest-reward strong { display: block; margin-top: 8px; }
.rise3d.is-mobile .r3-guide.r3-quests { width: 246px; max-width: calc(100% - 12px); max-height: 32%; padding: 6px 10px; }
.rise3d.is-mobile .r3-quests .r3-quest-footer button { min-height: 44px; }
.rise3d.is-mobile .r3-quest-collapsed .r3-quest-row { padding: 5px 0; }
.rise3d.is-mobile .r3-quest-reward { right: 12px; bottom: 150px; }
@container (max-width: 800px) {
  .rise3d .r3-guide.r3-quests { width: 246px; max-height: 32%; }
  .rise3d .r3-ui:has(.r3-minimap:not([hidden])) .r3-quests { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rise3d .r3-quest-reward { animation: none; transition: none; }
}

/* Shared treasury pictograms and flat journal rows from rise2-ui. */
.rise3d .r3-quest-rewards { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.rise3d .r3-quest-rewards > span { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.rise3d .r3-quest-rewards .r3-icon { width: 15px; height: 15px; color: var(--r3-gold); }
.rise3d .r3-quest-heading strong { text-wrap: pretty; }
.rise3d .r3-quest-claim { background: #b89452; color: #211d16; border-color: #d9b76c; }
body.theme-light .rise3d .r3-quest-claim { background: #886524; color: #fff5df; border-color: #886524; }

/* rise2-mobile: one quest prompt, with the full journal a tap away. */
.rise3d.is-phone .r3-guide.r3-quests {
  bottom: var(--r3-bottom); left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right));
  width: auto; max-width: none; max-height: 44px; padding: 0; overflow: hidden; box-shadow: 0 2px 8px #17120d25;
}
.rise3d.is-phone .r3-quest-prompt { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 10px; background: none; border: 0; text-align: left; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rise3d.is-phone .r3-quest-prompt .r3-icon { width: 19px; height: 19px; color: var(--r3-gold); }
.rise3d.is-phone .r3-guide.r3-quest-ready { border-left: 3px solid var(--r3-gold); }
.rise3d.is-phone .r3-panel .r3-quest-footer button { min-height: 44px; }
.rise3d.is-phone .r3-quest-reward { bottom: 124px; right: 8px; max-width: calc(100% - 16px); }
.rise3d.is-landscape-phone .r3-guide.r3-quests { left: 98px; right: 90px; bottom: 8px; max-width: 420px; }
.rise3d.is-tablet .r3-guide.r3-quests { width: 246px; max-height: 36%; right: 12px; }
.rise3d.is-tablet .r3-ui:not(:has(.r3-panel:not([hidden]), .r3-selection:not([hidden]))) .r3-guide.r3-quests { display: block; }
