/* ============================================================
   REVIEW — a recap in the style of a music app's year in review.
   Bold gradients and big numbers; the story is full-screen slides.
============================================================ */
.rv-g1 { background: linear-gradient(135deg, #3b0a17 0%, #9b1c31 55%, #f97316 100%); }
.rv-g2 { background: linear-gradient(135deg, #1e1b4b 0%, #6d28d9 55%, #ec4899 100%); }
.rv-g3 { background: linear-gradient(135deg, #052e2b 0%, #0f766e 55%, #22d3ee 100%); }
.rv-g4 { background: linear-gradient(135deg, #172554 0%, #1d4ed8 55%, #38bdf8 100%); }
.rv-g5 { background: linear-gradient(135deg, #3f0d12 0%, #be123c 50%, #f59e0b 100%); }
.rv-g6 { background: linear-gradient(135deg, #14532d 0%, #15803d 55%, #a3e635 100%); }

.rv-header { align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.rv-controls { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.rv-controls select { width: auto; min-width: 200px; }
.rv-controls .btn { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rv-hero {
  color: #fff; border-radius: 24px; padding: 30px 32px; margin-bottom: 18px;
  box-shadow: 0 18px 40px rgba(20, 6, 10, 0.25); position: relative; overflow: hidden;
}
.rv-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.12);
}
.rv-hero-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; opacity: 0.85; }
.rv-hero-big { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; line-height: 1.05; margin: 10px 0 8px; letter-spacing: -0.02em; }
.rv-hero-sub { margin: 0; font-size: 1rem; opacity: 0.92; max-width: 640px; }

.rv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.rv-tile { color: #fff; border-radius: 18px; padding: 16px 18px; min-height: 112px; display: flex; flex-direction: column; justify-content: flex-end; }
.rv-tile-num { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.rv-tile-label { font-weight: 700; margin-top: 6px; font-size: 0.9rem; }
.rv-tile-sub { font-size: 0.75rem; opacity: 0.85; margin-top: 2px; }

.rv-wingman { color: #fff; border-radius: 22px; padding: 22px 26px; margin-bottom: 18px; }
.rv-wing-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 700; opacity: 0.9; }
.rv-wing-body { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.rv-wing-name { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.rv-wing-title { opacity: 0.85; font-size: 0.85rem; }
.rv-wing-why { margin-top: 6px; font-size: 0.9rem; opacity: 0.95; }

.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.rv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; min-width: 0; }
.rv-card h3 { font-size: 0.95rem; margin: 0 0 12px; }
.rv-card--wide { grid-column: 1 / -1; }
.rv-empty { color: var(--text3); font-size: 0.86rem; }
.rv-sub { color: var(--text2); font-size: 0.78rem; margin-top: 10px; overflow-wrap: anywhere; }

.rv-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv-rank li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rv-rank-n { width: 18px; font-weight: 800; color: var(--accent); text-align: center; }
.rv-rank-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-rank-count { color: var(--text2); font-size: 0.8rem; white-space: nowrap; }

.rv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv-bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; gap: 10px; align-items: center; }
.rv-bar-label { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-bar { height: 8px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.rv-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #9b1c31, #f97316); }
.rv-bar-n { font-weight: 700; font-size: 0.82rem; }

.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rv-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; min-width: 0; overflow-wrap: anywhere; }
.rv-list li span { color: var(--text3); font-size: 0.76rem; white-space: nowrap; }
.rv-faces { display: flex; flex-wrap: wrap; gap: 12px; }
.rv-faces > span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.74rem; color: var(--text2); }
.rv-faces em { font-style: normal; }
.rv-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-style: italic; color: var(--text2); }

.rv-avatar {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden;
  background: var(--accent); color: #fff; font-weight: 700; flex-shrink: 0;
}
.rv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rv-avatar--sm { width: 30px; height: 30px; font-size: 0.72rem; }
.rv-avatar--md { width: 40px; height: 40px; font-size: 0.85rem; }
.rv-avatar--lg { width: 64px; height: 64px; font-size: 1.3rem; border: 3px solid rgba(255, 255, 255, 0.8); }
.rv-avatar--xl { width: 110px; height: 110px; font-size: 2.2rem; border: 4px solid rgba(255, 255, 255, 0.85); margin: 18px auto 6px; background: rgba(255, 255, 255, 0.18); }

/* ---- Story ---- */
.rv-story { position: fixed; inset: 0; z-index: 10000; color: #fff; display: flex; align-items: center; justify-content: center; transition: background 0.4s; }
.rv-story-bars { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; z-index: 2; }
.rv-story-bars span { flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.rv-story-bars i { display: block; height: 100%; width: 0; background: #fff; }
.rv-story-skip {
  position: absolute; top: 30px; right: 16px; z-index: 3; background: rgba(0, 0, 0, 0.25); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 6px 16px; font-weight: 700; cursor: pointer;
}
.rv-story-skip:focus-visible, .rv-story-done:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rv-story-stage { position: relative; z-index: 2; width: min(560px, 90vw); text-align: center; pointer-events: none; }
.rv-slide { animation: rvIn 0.5s ease both; }
.rv-slide-kicker { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; font-size: 0.85rem; opacity: 0.9; }
.rv-slide-big { font-size: clamp(2.2rem, 9vw, 4.6rem); font-weight: 800; line-height: 1.02; margin: 14px 0; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.rv-slide-line { font-size: 1.1rem; opacity: 0.95; }
.rv-story-done {
  pointer-events: auto; margin-top: 26px; background: #fff; color: #1c1917; border: 0; border-radius: 999px;
  padding: 12px 28px; font-weight: 800; font-size: 1rem; cursor: pointer;
}
.rv-story-nav { position: absolute; top: 0; bottom: 0; z-index: 1; background: transparent; border: 0; cursor: pointer; }
.rv-story-prev { left: 0; width: 30%; }
.rv-story-next { right: 0; width: 70%; }
@keyframes rvIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv-slide { animation: none; } .rv-story { transition: none; } }

/* Pages shown inside a module keep their buttons, not their own title. */
.page-header--embedded { margin-bottom: 14px; justify-content: flex-end; }
.module-tab-host { margin-top: 4px; }

@media (max-width: 600px) {
  .rv-hero { padding: 22px 20px; }
  .rv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-controls { width: 100%; }
  .rv-controls select { flex: 1; min-width: 0; }
}
