/* Retrospectiva: stories em tela cheia, cinematográficos. Cada tema pinta o fundo e as partículas. */
[hidden] { display: none !important; }
.r-root { --rb1: color-mix(in srgb, var(--c1) 82%, #1a0a2a); --rb2: color-mix(in srgb, var(--c2) 80%, #12062a); --ink: #fff; --mut: rgba(255,255,255,.78); --glass: rgba(255,255,255,.14); --card: rgba(255,255,255,.13); --line: rgba(255,255,255,.26);
  position: fixed; inset: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; color: #fff; font-family: var(--sans-f);
  background: radial-gradient(70% 50% at 50% 0%, color-mix(in srgb, var(--c3) 40%, transparent), transparent 70%), linear-gradient(165deg, var(--rb1), var(--rb2)); }
.r-root::before { display: none; }
.r-start, .r-stage { width: min(100vw, 460px); height: 100svh; max-height: 920px; position: relative; overflow: hidden; }
@media (min-width: 560px) { .r-start, .r-stage { border-radius: 34px; height: min(100svh - 32px, 880px); box-shadow: 0 40px 90px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.16); } .r-root { background-attachment: fixed; } }

/* Partículas: neve, brilho dourado ou corações, conforme o tema */
.r-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.r-fx i { position: absolute; top: -8%; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: .0; animation: r-fall var(--d) linear var(--l) infinite; filter: blur(.3px); }
.r-root[data-theme="natal"] .r-fx i { box-shadow: 0 0 6px rgba(255,255,255,.8); }
.r-root[data-theme="reveillon"] .r-fx i { background: radial-gradient(circle, #fff 0, var(--c1) 45%, transparent 70%); box-shadow: 0 0 10px var(--c1); animation-name: r-spark; top: var(--y); }
.r-root:not([data-theme="natal"]):not([data-theme="reveillon"]) .r-fx i { background: radial-gradient(circle, #fff 0, var(--c3) 55%, transparent 72%); animation-name: r-float; top: auto; bottom: -6%; }
@keyframes r-fall { 0% { transform: translate3d(0,0,0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate3d(var(--w), 112svh, 0); opacity: .9; } }
@keyframes r-spark { 0%, 100% { transform: scale(.2); opacity: 0; } 50% { transform: scale(1.4); opacity: 1; } }
@keyframes r-float { 0% { transform: translate3d(0,0,0) scale(.6); opacity: 0; } 15% { opacity: .85; } 100% { transform: translate3d(var(--w), -108svh, 0) scale(1.2); opacity: 0; } }

/* Início */
.r-start { display: grid; place-items: center; text-align: center; padding: 30px; z-index: 3; }
.r-start .r-hello { display: grid; gap: 18px; justify-items: center; }
.r-start .r-kicker { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--mut); }
.r-start .r-yr { padding-right: .06em; font-size: clamp(3.4rem, 30vw, 8.6rem); font-weight: 800; letter-spacing: -.06em; line-height: .86; background: linear-gradient(180deg, #fff 10%, color-mix(in srgb, var(--c3) 75%, #fff) 60%, var(--c1) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.r-start p.r-sub { margin: 0; font-size: 1.15rem; line-height: 1.4; max-width: 18em; }
.r-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 32px; border: 0; border-radius: 999px; cursor: pointer; font: 800 1rem var(--sans-f); color: #1d0b2e; text-decoration: none;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--c3) 35%, #fff)); box-shadow: 0 16px 34px -12px rgba(0,0,0,.5), inset 0 -3px 0 rgba(0,0,0,.08); transition: transform .15s; }
.r-btn:active { transform: scale(.97); } .r-btn.ghost { background: var(--glass); color: #fff; box-shadow: inset 0 0 0 1.5px var(--line); backdrop-filter: blur(6px); }
.r-hold { font-size: .78rem; color: var(--mut); margin: 4px 0 0; }

/* Progresso e áreas de toque */
.r-prog { position: absolute; z-index: 6; top: 14px; left: 14px; right: 14px; display: flex; gap: 4px; }
.r-prog i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.24); overflow: hidden; } .r-prog b { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.r-zone { position: absolute; z-index: 5; top: 30px; bottom: 0; width: 36%; border: 0; background: transparent; -webkit-tap-highlight-color: transparent; } .r-zone.l { left: 0; } .r-zone.r { right: 0; width: 64%; }
.r-slides, .r-slide { position: absolute; inset: 0; }
.r-slide { display: grid; place-items: center; padding: 70px 26px 60px; text-align: center; z-index: 2; animation: r-in .55s cubic-bezier(.2,.7,.2,1); }
@keyframes r-in { from { opacity: 0; transform: translateY(14px) scale(1.02); } }
.r-slide.is-photo { padding: 0; }
.r-slide .r-rise > * { opacity: 0; animation: r-pop .7s cubic-bezier(.2,.8,.2,1) forwards; } .r-slide .r-rise > *:nth-child(2) { animation-delay: .15s; } .r-slide .r-rise > *:nth-child(3) { animation-delay: .3s; } .r-slide .r-rise > *:nth-child(4) { animation-delay: .45s; }
@keyframes r-pop { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Capa */
.r-cover .r-yr { padding-right: .06em; display: block; font-size: clamp(3.4rem, 32vw, 9rem); font-weight: 800; letter-spacing: -.06em; line-height: .86; background: linear-gradient(180deg, #fff 8%, color-mix(in srgb, var(--c3) 70%, #fff) 62%, var(--c1) 140%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 12px 34px rgba(0,0,0,.28)); }
.r-cover h1 { font-weight: 300; font-size: 1.15rem; letter-spacing: .34em; text-transform: uppercase; margin: 18px 0 30px; }
.r-cover p { font-size: 1.5rem; font-weight: 800; margin: 0; letter-spacing: -.02em; } .r-cover small { display: block; margin-top: 10px; color: var(--mut); font-size: .95rem; }

/* Números grandes */
.r-big p { font-size: 1.15rem; margin: 0; line-height: 1.4; color: var(--mut); } .r-big b { display: block; font-size: clamp(3.2rem, 28vw, 8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; margin: 8px 0 12px; color: #fff; text-shadow: 0 8px 40px color-mix(in srgb, var(--c1) 60%, transparent); }
.r-big p:last-child { color: #fff; font-weight: 700; font-size: 1.25rem; }

/* Estatísticas */
.r-stats h2, .r-top h2, .r-words h2, .r-mosaic h2, .r-count h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 24px; }
.r-stats > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st { background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); border: 1px solid var(--line); border-radius: 26px; padding: 22px 10px 18px; backdrop-filter: blur(8px); box-shadow: 0 18px 34px -22px rgba(0,0,0,.6); }
.st b { display: block; font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; } .st span { display: block; margin-top: 8px; font-size: .86rem; color: var(--mut); line-height: 1.25; }

/* Foto em tela cheia, com movimento lento */
.r-photo { position: absolute; inset: 0; margin: 0; overflow: hidden; background: color-mix(in srgb, var(--rb2) 80%, #000); }
.r-photo img { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; animation: r-ken 9s ease-out forwards; }
@keyframes r-ken { from { transform: scale(1.0) translate(0,0); } to { transform: scale(1.1) translate(-1.5%, -1.5%); } }
.r-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0, transparent 22%, transparent 48%, rgba(10,3,22,.9) 100%); }
.r-photo figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 26px 104px; text-align: left; }
.r-photo small { display: inline-block; background: #fff; color: #1d0b2e; font-weight: 800; border-radius: 999px; padding: 5px 15px; margin-bottom: 12px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.r-photo span { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; text-shadow: 0 4px 22px rgba(0,0,0,.5); }

/* Mosaico */
.r-mosaic { width: 100%; } .r-mosaic .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-radius: 22px; overflow: hidden; }
.r-mosaic .grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; opacity: 0; animation: r-pop .6s ease forwards; } .r-mosaic .grid img:nth-child(1), .r-mosaic .grid img:nth-child(5) { grid-row: span 2; aspect-ratio: auto; height: 100%; }

/* Rankings */
.r-top ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: n; }
.r-top li { counter-increment: n; display: flex; align-items: center; gap: 14px; text-align: left; background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); border: 1px solid var(--line); border-radius: 22px; padding: 14px 18px; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; opacity: 0; animation: r-pop .6s ease forwards; }
.r-top li:nth-child(1) { animation-delay: .1s; } .r-top li:nth-child(2) { animation-delay: .35s; } .r-top li:nth-child(3) { animation-delay: .6s; } .r-top li:nth-child(n+4) { animation-delay: .8s; }
.r-top li::before { content: counter(n); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; font-weight: 800; color: #1d0b2e; background: linear-gradient(135deg, #fff, var(--c3)); }

/* Palavras */
.r-words > div { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.r-words span { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 8px 22px; opacity: 0; animation: r-pop .6s ease forwards; backdrop-filter: blur(6px); } .r-words span:nth-child(even) { transform: rotate(-3deg); font-family: var(--hand); font-weight: 700; font-size: 2.3rem; }

/* Contagem para o próximo ano */
.r-count .r-clock { display: flex; gap: 10px; justify-content: center; } .r-count .r-clock div { min-width: 70px; padding: 14px 6px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); } .r-count .r-clock b { display: block; font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; } .r-count .r-clock span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.r-count p { margin: 22px 0 0; font-size: 1.2rem; font-weight: 700; }

/* Carta */
.r-letter .paper { background: rgba(255,255,255,.14); border: 1px solid var(--line); border-radius: 26px; padding: 26px 22px; text-align: left; font: italic 400 1.1rem/1.65 var(--serif); max-height: 100%; overflow: auto; backdrop-filter: blur(10px); white-space: pre-line; }
.r-letter .sg { margin-top: 14px; font: 700 2rem var(--hand); text-align: right; }

/* Final */
.r-end { position: relative; z-index: 7; } .r-end h2 { font-size: 2.2rem; font-weight: 800; line-height: 1.08; letter-spacing: -.04em; margin: 0 0 28px; text-wrap: balance; } .r-end .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.r-ans { margin-top: 20px; font-size: 1.05rem; } .r-foot { margin-top: 36px; font-size: .85rem; color: var(--mut); } .r-foot a { color: #fff; font-weight: 700; }
.r-slide .cnt { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .r-photo img { animation: none; } .r-fx { display: none; } }

.r-start { padding: 18px; } .r-btn { white-space: nowrap; } .r-photo span { font-size: clamp(1.15rem, 6.6vw, 1.75rem); } .r-stats h2, .r-top h2, .r-words h2, .r-mosaic h2, .r-count h2 { font-size: clamp(1.2rem, 6vw, 1.7rem); } .r-end h2 { font-size: clamp(1.5rem, 8vw, 2.2rem); }
.r-cover h1 { font-size: clamp(.8rem, 4.2vw, 1.15rem); letter-spacing: .3em; margin-right: -.3em; }
.r-slide > *, .r-start > * { min-width: 0; max-width: 100%; }
.r-start .r-kicker { letter-spacing: .16em; font-size: clamp(.66rem, 3.2vw, .82rem); }
/* A foto passa um pouco da borda de propósito (movimento lento); sem este ajuste o limite de largura deixava uma faixa roxa na lateral. */
.r-photo img { max-width: none; }
