/* To-Do List / Quarterly Performance Review. Every selector is prefixed .rv */
.rvOverlay { position: fixed; inset: 0; z-index: 1260; display: grid; place-items: center; padding: clamp(.3rem, 1.6vw, 1.2rem); box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 20%, #5a4a8acc, #1a1230f2 75%); font: 500 15px/1.3 system-ui, sans-serif; color: #2b2140; animation: rv-fade .2s ease-out both; }
.rvOverlay *, .rvOverlay *::before, .rvOverlay *::after { box-sizing: border-box; }
.rvPanel { display: flex; flex-direction: column; gap: .5rem; width: min(100%, 1000px); max-height: 100%; min-height: 0; padding: .7rem .9rem .8rem; overflow: hidden;
  border: 4px solid #2b2140; border-radius: 18px; background: linear-gradient(160deg, #fff3c9, #ffe08a 85%); box-shadow: 6px 7px 0 #0008; outline: none; }
.rvHead { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 44px; flex: none; }
.rvBack { flex: none; min-height: 44px; padding: .4rem .9rem; border: 3px solid #2b2140; border-radius: 12px; background: #ffd45a; color: #2b2140; font: 900 .95rem system-ui, sans-serif; cursor: pointer; box-shadow: 0 3px 0 #2b2140; touch-action: manipulation; }
.rvBack:hover { background: #ffe38a; }
.rvBack:active { transform: translateY(2px); box-shadow: 0 1px 0 #2b2140; }
.rvBack:focus-visible { outline: 3px solid #ff7a59; outline-offset: 2px; }
.rvTitles { min-width: 0; flex: 1; }
.rvTitle { margin: 0; font-size: clamp(1.1rem, 3.2vw, 1.7rem); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.rvSeason { margin: .15rem 0 0; font-size: .85rem; font-weight: 700; color: #5b4a86; }
.rvSeason b { color: #2b2140; }
.rvDot { margin: 0 .4em; }
.rvBanner { flex: none; display: block; height: 64px; width: auto; max-width: 38%; object-fit: cover; border: 3px solid #2b2140; border-radius: 12px; box-shadow: 3px 3px 0 #2b2140; }
.rvBanner[hidden] { display: none; }

.rvMeter { flex: none; }
.rvMeterTop { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; font-size: .85rem; font-weight: 800; }
.rvMeterNum { font-variant-numeric: tabular-nums; }
.rvBar { height: 10px; overflow: hidden; border: 2px solid #2b2140; border-radius: 999px; background: #fff; }
.rvBar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(#7be07b, #3cb55c); transition: width .4s ease; }
.rvBar--big { height: 16px; border-width: 3px; }
.rvBar--big > i { background: linear-gradient(#ffb36b, #ff7a59); }

.rvTrackWrap { flex: none; min-width: 0; }
.rvTrack { position: relative; display: flex; gap: .45rem; margin: 0; padding: .35rem .25rem .5rem; overflow-x: auto; overflow-y: hidden; list-style: none; scrollbar-width: thin; scrollbar-color: #2b2140 #fff3c9; }
.rvStep { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; width: 82px; min-height: 86px; padding: .25rem .2rem; border: 3px solid #2b2140; border-radius: 12px; background: #fff; text-align: center; box-shadow: 2px 3px 0 #2b2140; }
.rvStepNum { position: absolute; top: -2px; left: -2px; min-width: 22px; padding: 0 .25rem; border-radius: 9px 0 9px 0; background: #2b2140; color: #ffd45a; font-size: .7rem; font-weight: 900; line-height: 18px; }
.rvStepIcon { font-size: 1.5rem; line-height: 1.1; margin-top: .55rem; }
.rvStepLabel { font-size: .66rem; font-weight: 800; line-height: 1.1; overflow-wrap: break-word; hyphens: auto; letter-spacing: -.01em; }
.rvStep.is-special { background: #f1e6ff; }
.rvStep.is-paid { background: #d9d3c4; opacity: .85; }
.rvStep.is-next { background: #fff7d6; border-color: #ff7a59; box-shadow: 0 0 0 3px #ffd45a, 2px 3px 0 #2b2140; }
.rvStamp { position: absolute; right: -5px; top: 12px; padding: 0 .3rem; border: 2px solid #c1362b; border-radius: 5px; background: #fff; color: #c1362b; font-size: .6rem; font-weight: 900; letter-spacing: .08em; transform: rotate(-14deg); }
.rvBonus { margin: .1rem 0 0; font-size: .82rem; font-weight: 900; text-align: center; color: #8b3b00; }

.rvScroll { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem .9rem; align-items: start; overflow: auto; padding: .1rem .2rem .3rem .1rem; overscroll-behavior: contain; }
.rvCol { display: grid; gap: .6rem; min-width: 0; }
.rvSection { min-width: 0; }
.rvH { margin: 0 0 .3rem; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; }
.rvQuests { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.rvQuest { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .4rem .55rem; border: 3px solid #2b2140; border-radius: 12px; background: #fff; box-shadow: 2px 3px 0 #2b2140; }
.rvQuest.is-done { background: #d9d3c4; color: #6a6478; }
.rvQuest.is-done .rvQuestText span:first-child { text-decoration: line-through; }
.rvQuestTick { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #2b2140; border-radius: 6px; background: #fff; color: #2b8a3e; font-weight: 900; font-size: .95rem; }
.rvQuest.is-done .rvQuestTick { background: #7be07b; }
.rvQuestBody { min-width: 0; display: grid; gap: .25rem; }
.rvQuestText { font-weight: 800; font-size: .9rem; overflow-wrap: anywhere; }
.rvQuest .rvBar { height: 9px; border-width: 2px; }
.rvQuestSide { min-width: 5.2rem; display: grid; justify-items: end; gap: .1rem; text-align: right; white-space: nowrap; }
.rvCount { font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rvRp { color: #b25a00; font-size: .78rem; font-weight: 900; }
.rvQuest.is-done .rvRp { color: inherit; }
.rvTag { display: inline-block; margin-left: .4rem; padding: 0 .4rem; border-radius: 999px; background: #5b4a86; color: #fff; font-size: .65rem; font-weight: 800; vertical-align: middle; }
.rvEmpty { padding: .5rem .6rem; border: 3px dashed #8b7a4a; border-radius: 12px; font-size: .85rem; font-weight: 700; color: #5b4a30; }
.rvHint { margin: .3rem 0 0; font-size: .78rem; font-weight: 700; color: #5b4a30; }

/* Results strip */
.rvStrip { display: grid; justify-items: center; gap: .3rem; max-width: min(96vw, 520px); margin: .3rem auto 0; padding: .45rem .8rem; border: 3px solid #2b2140; border-radius: 14px; background: #fff3c9; color: #2b2140; font: 700 .9rem system-ui, sans-serif; box-shadow: 3px 4px 0 #0007; text-align: center; }
.rvStrip *, .rvStrip *::before, .rvStrip *::after { box-sizing: border-box; }
.rvStripLine { margin: 0; font-size: 1rem; }
.rvStripLine b { color: #b25a00; }
.rvStamps, .rvToasts { display: grid; gap: .25rem; width: 100%; margin: 0; padding: 0; list-style: none; }
.rvStamps:empty, .rvToasts:empty { display: none; }
.rvStripStamp, .rvStripToast { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .2rem .55rem; border: 2px solid #2b2140; border-radius: 10px; background: #fff; }
.rvStripStamp { border-color: #2b8a3e; }
.rvStripTick { color: #2b8a3e; font-weight: 900; }
.rvStripToast { background: #ffd45a; }
.rvStrip.is-animated .rvStripStamp { animation: rv-stamp .3s cubic-bezier(.2, 1.6, .4, 1) both; }
.rvStrip.is-animated .rvStripToast { animation: rv-pop .35s cubic-bezier(.2, 1.6, .4, 1) both; }

@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rv-stamp { from { opacity: 0; transform: scale(1.8) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes rv-pop { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rvOverlay, .rvStripStamp, .rvStripToast { animation: none !important; }
  .rvBar > i { transition: none; }
}
@media (max-width: 700px) { .rvScroll { grid-template-columns: minmax(0, 1fr); } .rvBanner { max-width: 30%; height: 52px; } }
@media (max-height: 430px) {
  .rvPanel { gap: .3rem; padding: .4rem .6rem .5rem; border-width: 3px; border-radius: 14px; }
  .rvHead { min-height: 40px; gap: .6rem; }
  .rvBack { min-height: 40px; padding: .25rem .7rem; font-size: .85rem; }
  .rvTitle { font-size: 1.05rem; }
  .rvSeason { margin: 0; font-size: .75rem; }
  .rvBanner { height: 40px; }
  .rvMeterTop { margin-bottom: .1rem; font-size: .75rem; }
  .rvBar--big { height: 12px; }
  .rvTrack { padding: .25rem .2rem .35rem; gap: .35rem; }
  .rvStep { width: 70px; min-height: 66px; }
  .rvStepIcon { font-size: 1.15rem; margin-top: .45rem; }
  .rvStepLabel { font-size: .58rem; }
  .rvBonus { font-size: .72rem; }
  .rvScroll { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .3rem .6rem; }
  .rvH { margin-bottom: .2rem; font-size: .8rem; }
  .rvQuests { gap: .3rem; }
  .rvQuest { padding: .25rem .4rem; gap: .4rem; }
  .rvQuestText { font-size: .78rem; }
  .rvCount, .rvRp { font-size: .7rem; }
  .rvQuestSide { min-width: 4.4rem; }
  .rvStamp { top: 8px; font-size: .52rem; }
  .rvHint { margin-top: .15rem; font-size: .68rem; }
}
