/* NossaRetrô — story player styles */
:root { --disp: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif; --txt: 'Inter', system-ui, -apple-system, sans-serif; }
html, body { margin: 0; height: 100%; }
[hidden] { display: none !important; }
body.nr-page { background: #07070b; overflow: hidden; overscroll-behavior: none; }
body.nr-missing { background: #0b0b10; color: #fff; font-family: var(--txt); display: grid; place-items: center; min-height: 100vh; text-align: center; padding: 24px; box-sizing: border-box; }
body.nr-missing h1 { font-family: var(--disp); font-size: 26px; max-width: 420px; }
body.nr-missing p { opacity: .7; }
body.nr-missing a { display: inline-block; margin-top: 16px; background: #ff2e63; color: #fff; padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; }

.nr-story { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(1200px 600px at 50% 0%, #1d1030, #07070b); font-family: var(--txt); z-index: 50; }
.nr-frame {
  position: relative; overflow: hidden; container-type: inline-size;
  width: min(100vw, calc(100dvh * 9 / 16)); height: 100dvh; max-height: 100dvh;
  background: #000; color: #fff; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 700px) and (min-height: 700px) {
  .nr-frame { height: min(100dvh - 40px, 900px); width: calc(min(100dvh - 40px, 900px) * 9 / 16); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
}
.nr-stage, .nr-slide { position: absolute; inset: 0; }
.nr-slide {
  display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden;
  background: linear-gradient(160deg, var(--a), var(--b)); color: var(--fg); transition: opacity .35s ease, visibility 0s .35s; overflow: hidden;
}
.nr-slide.is-on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.nr-body { position: relative; z-index: 2; padding: 18cqw 8cqw 12cqw; display: flex; flex-direction: column; gap: 3cqw; }
.nr-blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .45; z-index: 1; pointer-events: none; }
.nr-blob1 { width: 90cqw; height: 90cqw; background: rgba(255,255,255,.35); top: -30cqw; right: -35cqw; animation: nrDrift 9s ease-in-out infinite alternate; }
.nr-blob2 { width: 70cqw; height: 70cqw; background: rgba(0,0,0,.35); bottom: -25cqw; left: -25cqw; animation: nrDrift 11s ease-in-out infinite alternate-reverse; }
@keyframes nrDrift { to { transform: translate(-10cqw, 12cqw) scale(1.15); } }

.nr-slide .nr-in { opacity: 0; }
.nr-slide.is-on .nr-in { animation: nrIn .75s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes nrIn { from { opacity: 0; transform: translateY(6cqw) scale(.98); } to { opacity: 1; transform: none; } }

/* progress bars */
.nr-bars { position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: flex; gap: 1cqw; padding: calc(env(safe-area-inset-top) + 3cqw) 3cqw 0; pointer-events: none; }
.nr-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.nr-bars b { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.nr-frame.is-held .nr-bars { opacity: .4; }

/* typography */
.nr-kicker { font-family: var(--disp); font-weight: 800; font-size: 9cqw; letter-spacing: .02em; text-transform: uppercase; }
.nr-year { font-family: var(--disp); font-weight: 800; font-size: 42cqw; line-height: .85; letter-spacing: -.05em; text-shadow: 1.6cqw 1.6cqw 0 rgba(0,0,0,.18); }
.nr-names { font-family: var(--disp); font-weight: 600; font-size: 8cqw; line-height: 1.15; margin-top: 4cqw; word-break: break-word; }
.nr-joiner { display: inline-block; margin: 0 .22em; animation: nrBeat 1.2s ease-in-out infinite; }
@keyframes nrBeat { 50% { transform: scale(1.25); } }
.nr-label { font-weight: 700; font-size: 5cqw; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.nr-date { font-family: var(--disp); font-weight: 600; font-size: 7.5cqw; line-height: 1.1; }
.nr-big { font-family: var(--disp); font-weight: 800; font-size: 30cqw; line-height: .9; letter-spacing: -.04em; margin-top: 6cqw; font-variant-numeric: tabular-nums; }
.nr-unit { font-family: var(--disp); font-weight: 800; font-size: 11cqw; line-height: 1; }
.nr-sub { font-size: 4.4cqw; opacity: .9; margin-top: 4cqw; line-height: 1.35; }
.nr-ticker { display: inline-block; align-self: flex-start; font-size: 3.8cqw; font-weight: 700; padding: 2cqw 3.4cqw; background: rgba(0,0,0,.22); border-radius: 999px; font-variant-numeric: tabular-nums; }
.nr-title { font-family: var(--disp); font-weight: 800; font-size: 10cqw; line-height: 1; letter-spacing: -.02em; margin-bottom: 4cqw; }

/* photo */
.nr-s-photo { background: #000; justify-content: flex-end; }
.nr-photo { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.nr-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nr-photo-bg { filter: blur(24px) brightness(.6); transform: scale(1.2); }
.nr-s-photo.is-on .nr-photo-fg { animation: nrKen 6s ease-out both; }
.nr-photo.is-wide .nr-photo-fg { object-fit: contain; }
@keyframes nrKen { from { transform: scale(1.12); } to { transform: scale(1); } }
.nr-s-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 45%), linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 20%); }
.nr-s-photo .nr-blob { display: none; }
.nr-s-photo .nr-body { padding-bottom: calc(env(safe-area-inset-bottom) + 12cqw); }
.nr-cap { font-family: var(--disp); font-weight: 800; font-size: 7.4cqw; line-height: 1.1; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.nr-idx { position: absolute; top: 14cqw; right: 6cqw; font-family: var(--disp); font-weight: 800; font-size: 5cqw; opacity: .8; }

/* stats */
.nr-cards { display: flex; flex-direction: column; gap: 3.4cqw; }
.nr-card { background: rgba(255,255,255,.16); border-radius: 5cqw; padding: 4.6cqw 5cqw; display: flex; align-items: baseline; gap: 4cqw; backdrop-filter: blur(8px); }
.nr-s-stats .nr-card { background: rgba(0,0,0,.14); }
.nr-card-n { font-family: var(--disp); font-weight: 800; font-size: 14cqw; line-height: 1; letter-spacing: -.03em; min-width: 22cqw; font-variant-numeric: tabular-nums; }
.nr-card-l { font-size: 4.8cqw; font-weight: 600; line-height: 1.2; }

/* music */
.nr-s-music .nr-body { align-items: center; text-align: center; }
.nr-disc { width: 62cqw; height: 62cqw; border-radius: 50%; margin: 4cqw 0; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #111 0 1.2cqw, #1d1d1d 1.2cqw 1.6cqw); box-shadow: 0 4cqw 10cqw rgba(0,0,0,.4); }
.nr-s-music.is-on .nr-disc { animation: nrIn .75s both .3s, nrSpin 4s linear infinite; }
@keyframes nrSpin { to { transform: rotate(360deg); } }
.nr-disc-in { width: 22cqw; height: 22cqw; border-radius: 50%; background: linear-gradient(160deg, var(--a), var(--b)); display: grid; place-items: center; font-size: 9cqw; color: #fff; }
.nr-song { font-family: var(--disp); font-weight: 800; font-size: 8cqw; line-height: 1.1; }
.nr-eq { display: flex; gap: 1.4cqw; height: 8cqw; align-items: flex-end; }
.nr-eq i { width: 1.8cqw; background: currentColor; border-radius: 2px; animation: nrEq .9s ease-in-out infinite alternate; }
.nr-eq i:nth-child(2) { animation-delay: -.3s } .nr-eq i:nth-child(3) { animation-delay: -.6s } .nr-eq i:nth-child(4) { animation-delay: -.15s } .nr-eq i:nth-child(5) { animation-delay: -.45s }
@keyframes nrEq { from { height: 20%; } to { height: 100%; } }

/* lists */
.nr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3.2cqw; }
.nr-list li { display: flex; gap: 3.4cqw; align-items: flex-start; background: rgba(0,0,0,.16); border-radius: 4.5cqw; padding: 3.6cqw 4cqw; }
.nr-li-n { flex: none; width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--fg); color: var(--a); display: grid; place-items: center; font-weight: 800; font-size: 4.2cqw; }
.nr-li-t { font-size: 4.8cqw; font-weight: 600; line-height: 1.3; padding-top: .8cqw; }

/* mosaic */
.nr-grid { display: grid; gap: 2cqw; grid-template-columns: repeat(2, 1fr); }
.nr-grid-5, .nr-grid-6, .nr-grid-7, .nr-grid-8, .nr-grid-9 { grid-template-columns: repeat(3, 1fr); }
.nr-cell { aspect-ratio: 1; border-radius: 3cqw; overflow: hidden; background: rgba(0,0,0,.2); }
.nr-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nr-s-mosaic .nr-cell:nth-child(odd) { transform: rotate(-2deg); }

/* letter */
.nr-letter { background: #fff; color: #2a0a12; border-radius: 5cqw; padding: 7cqw 6cqw; box-shadow: 0 4cqw 12cqw rgba(120,0,40,.18); }
.nr-letter-t { margin: 0 0 5cqw; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.nr-letter.is-l .nr-letter-t { font-family: var(--disp); font-weight: 600; font-size: 6.6cqw; line-height: 1.25; }
.nr-letter.is-m .nr-letter-t { font-size: 4.6cqw; }
.nr-letter.is-s .nr-letter-t { font-size: 3.7cqw; }
.nr-sign { display: flex; flex-direction: column; font-size: 4cqw; opacity: .8; }
.nr-sign b { font-family: var(--disp); font-size: 6cqw; opacity: 1; }
.nr-s-letter .nr-label { color: #8a1238; }

/* final */
.nr-s-final .nr-body { align-items: center; text-align: center; }
.nr-final-t { font-family: var(--disp); font-weight: 800; font-size: 17cqw; line-height: .9; letter-spacing: -.03em; }
.nr-final-to { font-family: var(--disp); font-weight: 600; font-size: 9cqw; }
.nr-final-s { font-size: 4.6cqw; opacity: .9; max-width: 70cqw; line-height: 1.35; }
.nr-actions { display: flex; flex-direction: column; gap: 3cqw; width: 100%; margin-top: 8cqw; }
.nr-made { font-size: 3.2cqw; opacity: .6; margin-top: 2cqw; }
.nr-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.nr-fx span { position: absolute; top: -10%; animation: nrFall linear infinite; color: #fff; }
@keyframes nrFall { to { transform: translateY(120cqh) rotate(240deg); } }
.nr-frame { container-type: size; }

.nr-btn { display: block; box-sizing: border-box; width: 100%; border: 0; border-radius: 999px; padding: 4.2cqw 6cqw; font: 700 4.4cqw/1 var(--txt);
  background: #fff; color: #1a0610; text-decoration: none; text-align: center; cursor: pointer; box-shadow: 0 2cqw 6cqw rgba(0,0,0,.25); }
.nr-btn-ghost { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.nr-btn-big { padding: 5cqw 8cqw; font-size: 5.2cqw; background: #ff2e63; color: #fff; width: auto; animation: nrPulse 1.8s ease-in-out infinite; }
@keyframes nrPulse { 50% { transform: scale(1.05); box-shadow: 0 0 0 4cqw rgba(255,46,99,.15); } }

/* gate */
.nr-gate { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqw; text-align: center; padding: 8cqw;
  background: radial-gradient(80cqw 80cqw at 50% 35%, #3b1d6e, #0b0b14); transition: opacity .5s ease, transform .5s ease; }
.nr-gate.is-gone { opacity: 0; transform: scale(1.08); pointer-events: none; }
.nr-gift { font-size: 30cqw; line-height: 1; animation: nrGift 1.6s ease-in-out infinite; filter: drop-shadow(0 4cqw 8cqw rgba(255,46,99,.45)); }
@keyframes nrGift { 0%,100% { transform: rotate(-6deg) } 50% { transform: rotate(6deg) translateY(-3cqw) } }
.nr-gate-k { font-size: 5cqw; opacity: .85; font-weight: 500; }
.nr-gate-to { font-family: var(--disp); font-weight: 800; font-size: 12cqw; line-height: 1; margin-bottom: 4cqw; word-break: break-word; }
.nr-gate-hint { font-size: 3.6cqw; opacity: .6; }

.nr-mute { position: absolute; z-index: 12; top: calc(env(safe-area-inset-top) + 7cqw); right: 3cqw; width: 10cqw; height: 10cqw; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.3); color: #fff; font-size: 4.6cqw; cursor: pointer; }
.nr-wm { position: absolute; inset: -20%; z-index: 9; pointer-events: none; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; transform: rotate(-24deg); }
.nr-wm span { font: 800 9cqw var(--disp); color: rgba(255,255,255,.13); padding: 6cqw; text-shadow: 0 0 2px rgba(0,0,0,.15); }
.nr-yt { position: absolute; left: 0; bottom: 0; width: 200px; height: 200px; opacity: 0; pointer-events: none; z-index: 0; }
