/* Retrospectiva do ano (/retrospectiva). Só carrega nela (layout.php: $page === 'retro'). Tokens e "sticker" vêm do zovy.css. */
.ry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 1100px; margin: 12px auto 48px; }
.ry > * { margin: 0; }
.ry-preview { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--gold); color: var(--on-accent); font-weight: 800; font-size: 14px; border: 2px solid var(--line); }

/* ---------- topo ---------- */
.ry-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 24px;
  padding: clamp(24px, 5vw, 56px); color: #fff; border: 3px solid var(--line); border-radius: 34px; box-shadow: var(--sticker);
  background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--lime) 30%, transparent), transparent 40%), radial-gradient(circle at 5% 110%, color-mix(in srgb, var(--pink) 55%, transparent), transparent 48%), linear-gradient(135deg, #4a27b8, #2a1766 60%, var(--inkbg)); }
.ry-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; background: radial-gradient(rgba(255, 255, 255, .22) 1.4px, transparent 1.6px) 0 0 / 22px 22px; }
.ry-tag { display: inline-flex; gap: 6px; align-items: center; margin: 0 0 10px; padding: 6px 12px; border-radius: 99px; background: var(--lime); color: var(--on-accent); font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.ry-hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: .98; margin: 0 0 14px; }
.ry-hero h1 span { color: var(--lime); }
.ry-hero p { margin: 0 0 20px; font-size: 17px; max-width: 46ch; color: #E9E2FF; }
.ry-hero-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.ry-hero .btn.big { font-size: 17px; padding: 14px 22px; }
.ry-hero-art { position: relative; display: grid; place-items: center; min-height: 220px; }
.ry-hero-year { position: absolute; z-index: -1; font: 900 clamp(90px, 15vw, 170px)/1 var(--display); color: transparent; -webkit-text-stroke: 3px rgba(255, 255, 255, .28); letter-spacing: -.04em; }
.ry-hero-av { width: clamp(140px, 18vw, 200px); aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--line); box-shadow: 0 0 0 6px var(--lime), 8px 8px 0 6px var(--shade); overflow: hidden; background: var(--card); }
.ry-hero-av img, .ry-hero-masc { width: 100%; height: auto; }
.ry-hero-masc { width: min(220px, 70%); filter: drop-shadow(6px 6px 0 var(--shade)); }
.ry-conf { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ry-conf i { position: absolute; z-index: -1; width: 12px; height: 12px; border-radius: 3px; background: var(--lime); opacity: .9; }
.ry-conf i:nth-child(2n) { background: var(--pink); border-radius: 50%; }
.ry-conf i:nth-child(3n) { background: var(--cyan); width: 8px; height: 18px; }
.ry-conf i:nth-child(1) { top: 12%; left: 52%; } .ry-conf i:nth-child(2) { top: 80%; left: 58%; } .ry-conf i:nth-child(3) { top: 18%; left: 88%; }
.ry-conf i:nth-child(4) { top: 64%; left: 94%; } .ry-conf i:nth-child(5) { top: 8%; left: 30%; } .ry-conf i:nth-child(6) { top: 88%; left: 10%; }
.ry-conf i:nth-child(7) { top: 40%; left: 70%; } .ry-conf i:nth-child(8) { top: 92%; left: 80%; }
@media (prefers-reduced-motion: no-preference) {
  .ry-conf i { animation: rtFloat 5s ease-in-out infinite; }
  .ry-conf i:nth-child(2n) { animation-duration: 6.5s; animation-delay: -2s; }
  .ry-conf i:nth-child(3n) { animation-duration: 4.2s; animation-delay: -1s; }
  .ry-hero-av, .ry-hero-masc { animation: rtBob 4s ease-in-out infinite; }
}
@keyframes rtFloat { 50% { transform: translateY(-14px) rotate(40deg); } }
@keyframes rtBob { 50% { transform: translateY(-8px) rotate(-3deg); } }

/* ---------- resumo ---------- */
.ry-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.ry-tile { display: grid; gap: 2px; align-content: center; padding: 16px 18px; background: var(--card); border: 3px solid var(--line); border-radius: 22px; box-shadow: 5px 5px 0 var(--shade); position: relative; overflow: hidden; }
.ry-tile::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: var(--c); opacity: .9; }
.ry-tile b { font: 900 34px/1 var(--display); position: relative; z-index: 1; }
.ry-tile small { color: var(--muted); font-weight: 700; position: relative; z-index: 1; }
.ry-tile-p { background: var(--inkbg); color: #fff; }
.ry-tile-p::after { opacity: .5; }
.ry-tile-p span { color: var(--c); }
.ry-tile-p b { font-size: 22px; }
.ry-tile-p small { color: #C9BEEA; }

/* ---------- mais jogados ---------- */
.ry-list h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 14px; }
.ry-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ry-list a { display: grid; grid-template-columns: 40px 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; text-decoration: none; transition: transform .15s; }
.ry-list a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--shade); }
.ry-list img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.ry-list b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ry-list small { color: var(--muted); font-weight: 700; }
.ry-pos { font: 900 26px/1 var(--display); color: var(--violet); text-align: center; }

@media (max-width: 760px) {
  .ry-hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .ry-hero p { margin-left: auto; margin-right: auto; }
  .ry-hero-acts { justify-content: center; }
  .ry-hero-art { order: -1; min-height: 160px; }
  .ry-list a { grid-template-columns: 28px 52px minmax(0, 1fr); }
  .ry-list a small { display: none; }
  .ry-list img { width: 52px; height: 52px; }
}

/* ---------- stories ---------- */
.ry-st { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(14, 7, 34, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ry-st[hidden] { display: none; }
html.ry-lock, html.ry-lock body { overflow: hidden; }
.ry-frame { position: relative; height: min(94vh, 880px); aspect-ratio: 9 / 16; max-width: 100vw; overflow: hidden; border-radius: 28px; border: 3px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #1E1338; color: #fff; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.ry-bars { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5; display: flex; gap: 4px; }
.ry-bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.ry-bars b { display: block; height: 100%; width: 0; background: var(--card); border-radius: 4px; }
.ry-bars i.done b { width: 100%; }
.ry-x, .ry-pause { position: absolute; top: 26px; z-index: 6; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .28); color: #fff; cursor: pointer; }
.ry-x { right: 12px; }
.ry-pause { right: 58px; }
.ry-pause i { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.ry-st.paused .ry-pause i { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.ry-nav { position: absolute; top: 80px; bottom: 0; z-index: 3; width: 34%; border: 0; background: transparent; cursor: pointer; padding: 0; }
.ry-nav.prev { left: 0; }
.ry-nav.next { right: 0; width: 66%; }
.ry-nav:focus-visible { outline: 3px solid var(--lime); outline-offset: -6px; }
.ry-slide { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 84px 26px 40px; text-align: center; overflow: hidden; visibility: hidden; opacity: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .22), transparent 45%), radial-gradient(circle at 0% 100%, rgba(0, 0, 0, .3), transparent 55%), var(--bg); }
.ry-slide.on { visibility: visible; opacity: 1; z-index: 2; }
.ry-in { position: relative; z-index: 4; display: grid; justify-items: center; gap: 12px; width: 100%; max-height: 100%; }
.ry-slide .ry-in a, .ry-slide .ry-in button, .ry-slide canvas { position: relative; z-index: 4; }
.ry-deco i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.ry-deco i:nth-child(1) { width: 260px; height: 260px; top: -90px; left: -90px; }
.ry-deco i:nth-child(2) { width: 160px; height: 160px; bottom: 8%; right: -60px; background: rgba(0, 0, 0, .14); }
.ry-deco i:nth-child(3) { width: 26px; height: 26px; top: 22%; right: 16%; background: var(--lime); }
.ry-kick { margin: 0; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, .28); font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.ry-slide h2 { font-size: clamp(28px, 4.4vh, 40px); line-height: 1.05; margin: 0; text-wrap: balance; text-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.ry-lead { margin: 0; font-size: clamp(16px, 2.2vh, 19px); font-weight: 700; max-width: 30ch; color: rgba(255, 255, 255, .92); }
.ry-lead b { color: var(--lime); }
.ry-big { font: 900 clamp(72px, 13vh, 120px)/.9 var(--display); letter-spacing: -.04em; text-shadow: 5px 5px 0 rgba(0, 0, 0, .22); font-variant-numeric: tabular-nums; }
.ry-unit { margin: -4px 0 0; font: 800 clamp(20px, 3vh, 26px)/1.1 var(--display); }
.ry-chip { display: inline-flex; gap: 6px; align-items: center; margin: 0; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .16); font-weight: 800; font-size: 15px; }
.ry-chip.lime { background: var(--lime); color: var(--on-accent); }
.ry-av { width: 150px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 4px solid var(--line); box-shadow: 0 0 0 6px var(--lime); background: var(--card); }
.ry-av img { width: 100%; height: auto; }
.ry-logo { width: 220px; height: auto; }
.ry-cover { display: block; width: min(64%, 260px); aspect-ratio: 1; border-radius: 26px; overflow: hidden; border: 4px solid var(--line); box-shadow: 8px 8px 0 var(--shade); background: #2a1766; }
.ry-cover img { width: 100%; height: 100%; object-fit: cover; }
.ry-cover.tilt { transform: rotate(-4deg); }
.ry-cover.sm { width: 84px; border-radius: 18px; box-shadow: 4px 4px 0 var(--shade); flex: none; }
.ry-top { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; max-width: 330px; text-align: left; }
.ry-top li { display: grid; grid-template-columns: 22px 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, .12); font-weight: 800; font-size: 14px; }
.ry-top { counter-reset: ry; }
.ry-top li { counter-increment: ry; }
.ry-top li::before { content: counter(ry); font: 900 18px/1 var(--display); color: var(--lime); }
.ry-top img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.ry-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ry-top small { opacity: .8; }
.ry-top.big li { grid-template-columns: 24px 52px minmax(0, 1fr) auto; font-size: 15px; }
.ry-top.big img { width: 52px; height: 52px; }
.ry-ico { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 40px; background: rgba(255, 255, 255, .18); border: 3px solid rgba(255, 255, 255, .35); }
.ry-ico.flame { width: 110px; height: 110px; border-radius: 50%; color: var(--gold); background: rgba(0, 0, 0, .2); }
.ry-ico svg { width: 60%; height: 60%; }
.ry-nums { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ry-nums > span { display: grid; justify-items: center; min-width: 120px; padding: 14px 16px; border-radius: 22px; background: rgba(0, 0, 0, .22); }
.ry-nums .ry-big { font-size: clamp(54px, 8.5vh, 80px); }
.ry-nums small { font-weight: 800; font-size: 15px; }
.ry-lvl { color: var(--lime); }
.ry-fav, .ry-rare { display: flex; gap: 14px; align-items: center; text-align: left; padding: 12px 16px 12px 12px; border-radius: 22px; background: rgba(255, 255, 255, .14); max-width: 340px; width: 100%; }
.ry-fav small, .ry-rare small { display: block; font-weight: 800; opacity: .85; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.ry-fav b, .ry-rare b { display: block; font: 800 20px/1.15 var(--display); }
.ry-fav em, .ry-rare em { display: block; font-style: normal; font-weight: 800; color: var(--lime); }
.ry-rare > span { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--c); color: var(--ink); border: 3px solid var(--line); }
.ry-extras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; width: 100%; max-width: 340px; }
.ry-extras li { display: grid; justify-items: center; gap: 2px; padding: 14px 8px; border-radius: 20px; background: rgba(0, 0, 0, .22); }
.ry-extras li > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--c); color: var(--ink); border: 2px solid var(--line); }
.ry-extras b { font: 900 34px/1 var(--display); }
.ry-extras small { font-weight: 700; font-size: 13px; line-height: 1.2; }
.ry-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 330px; }
.ry-strip img { width: 56px; height: 56px; border-radius: 14px; border: 2px solid var(--line); object-fit: cover; }
.ry-persona .ry-ico { width: 170px; height: 170px; border-radius: 50%; background: rgba(0, 0, 0, .2); border: 4px solid #fff; }
.ry-ptitle { font-size: clamp(36px, 6vh, 52px) !important; }
.ry-card { width: auto; height: min(52vh, 470px); aspect-ratio: 9 / 16; border-radius: 18px; border: 3px solid var(--line); box-shadow: 6px 6px 0 rgba(0, 0, 0, .35); background: #2a1766; }
.ry-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ry-acts .btn { color: var(--ink); }
.ry-acts .btn:not(.btn-lime) { background: var(--card); }
.ry-again { display: inline-flex; gap: 6px; align-items: center; border: 0; background: transparent; color: #fff; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 6px; }
@media (max-width: 600px), (max-height: 520px) {
  .ry-frame { height: 100dvh; width: 100vw; aspect-ratio: auto; border-radius: 0; border: 0; }
}
@media (max-height: 520px) {
  .ry-slide { padding: 66px 18px 18px; }
  .ry-in { gap: 6px; }
  .ry-av, .ry-ico, .ry-persona .ry-ico { width: 84px; height: 84px; }
  .ry-cover { width: 120px; }
  .ry-card { height: 46vh; }
  .ry-top li { padding: 3px 8px; }
}
/* entrada de cada parte */
@media (prefers-reduced-motion: no-preference) {
  .ry-slide { transition: opacity .35s, visibility .35s; }
  .ry-slide.on .ry-in > * { animation: rtIn .55s var(--ease-pop) both; }
  .ry-slide.on .ry-in > *:nth-child(2) { animation-delay: .12s; }
  .ry-slide.on .ry-in > *:nth-child(3) { animation-delay: .24s; }
  .ry-slide.on .ry-in > *:nth-child(4) { animation-delay: .36s; }
  .ry-slide.on .ry-in > *:nth-child(5) { animation-delay: .48s; }
  .ry-slide.on .ry-in > *:nth-child(n+6) { animation-delay: .6s; }
  .ry-slide.on .ry-cover.tilt { animation: rtSpin .8s var(--ease-pop) both .1s; }
  .ry-slide.on .ry-persona .ry-ico { animation: rtPop 1s var(--ease-pop) both .2s; }
  .ry-slide.on .ry-deco i:nth-child(3) { animation: rtFloat 3s ease-in-out infinite; }
  .ry-slide.on .ry-ico.flame svg { animation: rtFlick 1.2s ease-in-out infinite; }
}
@keyframes rtIn { from { opacity: 0; transform: translateY(26px) scale(.92); } }
@keyframes rtSpin { from { opacity: 0; transform: rotate(-30deg) scale(.4); } }
@keyframes rtPop { 0% { opacity: 0; transform: scale(.2) rotate(-90deg); } 70% { transform: scale(1.12) rotate(6deg); } }
@keyframes rtFlick { 50% { transform: scale(1.08) rotate(-4deg); } }
