:root {
  --spotify-green: #2de2c0;
  --accent-primary: #2de2c0;
  --accent-secondary: #22d3ee;
  --accent-indigo: #6d5ef5;
  --accent-violet: #a855f7;
  --accent-gradient: linear-gradient(135deg, #2de2c0 0%, #22d3ee 42%, #6d5ef5 100%);
  --br-green: #009C3B;
  --br-gold: #FFE600;
  --br-blue: #002776;
  --acid-lime: #D4FF00;
  --funk-pink: #FF2E93;
  --ice-cyan: #00E5FF;
  --cinema-coral: #FF4D2E;
  --carnaval-purple: #8B3DFF;
  --surface-black: #111412;
  --surface-ink: #090B0A;
  --text-light: #F6F8F5;
  --text-dark: #061116;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Figtree', sans-serif;
  --font-mono: 'Figtree', sans-serif;
  --ambient-color: #2de2c0;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

[hidden] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: var(--surface-ink);
  color: var(--text-light);
  font-family: var(--font-body);
  user-select: none;
  -webkit-user-select: none;
}

/* Dynamic Ambient Glow */
#ambient-bg {
  position: fixed;
  inset: -25%;
  background: radial-gradient(circle at 50% 45%, var(--ambient-color) 0%, rgba(7, 7, 9, 0.25) 48%, #050507 78%);
  opacity: 0.42;
  filter: blur(70px);
  transition: background 0.7s ease, opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8) 25%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.mascot-fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 4;
}

.desktop-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
}

/* ==========================================
   HYPER-REALISTIC SMARTPHONE CHASSIS
   ========================================== */
.phone-chassis {
  position: relative;
  width: min(392px, calc((100dvh - 36px) * 0.48));
  aspect-ratio: 9 / 19.3;
  max-height: 820px;
  min-width: 310px;
  border-radius: 50px;
  padding: 11px;
  background: linear-gradient(145deg, #3a3a42 0%, #17171b 35%, #2b2b33 70%, #101014 100%);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 3px rgba(255, 255, 255, 0.35);
  transition: transform 0.3s ease;
}

.hw-btn {
  position: absolute;
  background: linear-gradient(90deg, #2d2d34, #1b1b20);
  border-radius: 3px;
  pointer-events: none;
}
.hw-mute { left: -3px; top: 106px; width: 3px; height: 26px; }
.hw-vol-up { left: -3px; top: 152px; width: 3px; height: 48px; }
.hw-vol-down { left: -3px; top: 210px; width: 3px; height: 48px; }
.hw-power { right: -3px; top: 170px; width: 3px; height: 72px; }

.phone-bezel {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: #000;
  padding: 4px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface-black);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Film Grain Overlay */
.grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.075;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* iOS Status Bar */
.ios-status-bar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.dynamic-island {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 94px;
  height: 25px;
  background: #000;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 9px;
  gap: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.di-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b4a8c, #080c18 65%);
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.35);
}
.di-sensor {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0d121c;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.icon-signal {
  width: 14px;
  height: 10px;
}
.status-5g {
  font-size: 10px;
  font-weight: 800;
}
.battery-icon {
  display: flex;
  align-items: center;
  gap: 1px;
}
.battery-body {
  width: 20px;
  height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  padding: 1.5px;
}
.battery-level {
  width: 82%;
  height: 100%;
  background: #fff;
  border-radius: 1px;
}
.battery-cap {
  width: 2px;
  height: 4px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 0 1px 1px 0;
}

/* Segmented Story Progress Bar */
.story-progress-bar {
  position: relative;
  z-index: 30;
  display: flex;
  gap: 4px;
  padding: 6px 12px 4px;
  flex-shrink: 0;
}
.story-progress-bar.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.progress-seg {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  overflow: hidden;
  cursor: pointer;
}
.progress-fill {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 99px;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* Story Top Chrome */
.story-top-chrome {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 8px;
  flex-shrink: 0;
}

.story-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.collab-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.wrapped-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #111412;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.wrapped-avatar + .wrapped-avatar {
  margin-left: -9px;
}
.wrapped-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}
.phone-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  pointer-events: none;
}
.phone-top-overlay .story-progress-bar,
.phone-top-overlay .story-top-chrome {
  pointer-events: auto;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.brand-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.story-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pause-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(17, 20, 18, 0.85);
  border: 1px solid rgba(246, 248, 245, 0.18);
  color: var(--text-light);
}
.chrome-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(246, 248, 245, 0.16);
  background: rgba(17, 20, 18, 0.9);
  color: var(--text-light);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .chrome-btn:hover {
    background: #1B201D;
    transform: scale(1.06);
  }
}
.chrome-btn:active {
  transform: scale(0.95);
}
.chrome-btn svg {
  width: 15px;
  height: 15px;
}

/* ==========================================
   STORY STAGE & SLIDES
   ========================================== */
.story-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  outline: none;
  cursor: pointer;
}

.three-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.88;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 108px 18px 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  will-change: transform, opacity, filter;
}

.slide-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.slide-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  z-index: 0;
  animation: kenBurns 8.5s ease-out forwards;
}

@keyframes kenBurns {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

.slide-photo-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 8, 12, 0.72) 0%,
    rgba(6, 8, 12, 0.22) 34%,
    rgba(6, 8, 12, 0.78) 66%,
    rgba(6, 8, 12, 0.96) 100%
  );
}

.photo-spacer {
  flex: 1;
  min-height: 92px;
}

.slide.has-photo .slide-copy-block {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 8px;
}

.visual-hero {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 2px 0;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.visual-hero svg {
  height: 100%;
  width: auto;
  max-width: 170px;
  display: block;
}

.slide-copy-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Staggered reveal animations (Emil Kowalski non-uniform stagger, scale(0.96) entry) */
.reveal {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  animation: revealUp 320ms var(--ease-out) forwards;
}
.reveal-d1 { animation-delay: 0ms; }
.reveal-d2 { animation-delay: 45ms; }
.reveal-d3 { animation-delay: 85ms; }
.reveal-d4 { animation-delay: 120ms; }
.reveal-d5 { animation-delay: 155ms; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.slide-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.state-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 4px;
  border-radius: 10px;
  background: #111412;
  border: 1.5px solid rgba(246, 248, 245, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.state-flag-badge img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.state-flag-badge span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #FFE600;
}

.emoji-sticker {
  position: absolute;
  font-size: 32px;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
  animation: stickerFloat 3.6s ease-in-out infinite;
}
.emoji-sticker.e1 {
  top: 44px;
  right: 4px;
  transform: rotate(14deg);
}
.emoji-sticker.e2 {
  top: 110px;
  left: -4px;
  font-size: 26px;
  transform: rotate(-16deg);
  animation-delay: -1.6s;
}
@keyframes stickerFloat {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-6px) rotate(18deg); }
}

.caricato-stamp {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
  margin-bottom: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .emoji-sticker,
  .slide-photo-bg,
  .year-echo,
  .starburst {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Typography & Shared Slide Elements */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 0;
  background: transparent !important;
  border: none;
  border-radius: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.88);
  width: fit-content;
}
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  flex-shrink: 0;
}

.hero-number {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  max-width: 100%;
}

.headline-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 7.2vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.headline-lg {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.body-copy {
  font-size: 13.5px;
  line-height: 1.42;
  font-weight: 500;
  opacity: 0.92;
}

.stat-card {
  border-radius: 14px;
  padding: 12px 14px;
  background: #111412;
  border: 1.5px solid rgba(246, 248, 245, 0.16);
}

/* ==========================================
   SLIDE THEMES & KINETIC DECOR
   ========================================== */

/* 0. SPLASH */
.theme-splash {
  background: radial-gradient(circle at 80% 15%, #1ED760 0%, #0d3b1e 38%, #0A0A0D 82%);
  color: #fff;
}
.splash-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  gap: 14px;
}
.year-echo {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 84px;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--br-gold);
  text-shadow:
    0 -24px 0 rgba(30, 215, 96, 0.35),
    0 24px 0 rgba(255, 46, 147, 0.35);
  animation: pulseBeat 2.2s ease-in-out infinite;
}
@keyframes pulseBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
.starburst {
  position: absolute;
  width: 140px;
  height: 140px;
  opacity: 0.25;
  animation: spinSlow 18s linear infinite;
}
.starburst-1 { top: 85px; right: -40px; color: var(--acid-lime); }
.starburst-2 { bottom: 90px; left: -45px; color: var(--funk-pink); animation-direction: reverse; }
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
.cta-spotify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  background: var(--accent-gradient);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(6, 17, 22, 0.38);
  transition: transform 140ms var(--ease-out), filter 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .cta-spotify:hover { transform: scale(1.02); filter: brightness(1.05); }
}
.cta-spotify:active { transform: scale(0.97); }

/* 1. INTRO */
.theme-intro {
  background: linear-gradient(155deg, #1ED760 0%, #009C3B 45%, #002776 100%);
  color: #fff;
}
.ribbon-marquee {
  position: absolute;
  width: 200%;
  left: -50%;
  padding: 5px 0;
  background: rgba(0, 0, 0, 0.35);
  color: var(--acid-lime);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transform: rotate(-8deg);
  opacity: 0.55;
}
.ribbon-top { top: 62px; animation: marqueeMove 12s linear infinite; }
.ribbon-bot { bottom: 54px; animation: marqueeMove 14s linear infinite reverse; }
@keyframes marqueeMove {
  from { transform: rotate(-10deg) translateX(0); }
  to { transform: rotate(-10deg) translateX(-25%); }
}

/* 2. MEGA DA VIRADA */
.theme-mega {
  background: radial-gradient(circle at 20% 20%, #FFE600 0%, #FFB800 32%, #004E22 100%);
  color: #09140C;
}
.coin-orb {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(9, 20, 12, 0.25);
  animation: spinSlow 24s linear infinite;
}

/* 3. OURO NO GELO */
.theme-ice {
  background: linear-gradient(175deg, #001B3A 0%, #004987 48%, #00E5FF 100%);
  color: #fff;
}
.snowflake {
  position: absolute;
  top: -20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  animation: snowFall linear infinite;
}
@keyframes snowFall {
  to {
    transform: translateY(720px) translateX(24px);
    opacity: 0;
  }
}
.medal-badge {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFF799, #FFD000 58%, #B8860B 100%);
  color: #111;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.45), inset 0 0 0 4px rgba(255, 255, 255, 0.55);
  animation: floatMedal 3s ease-in-out infinite;
}
@keyframes floatMedal {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

/* 4. CARNAVAL */
.theme-carnaval {
  background: radial-gradient(circle at 50% 30%, #FF2E93 0%, #8B3DFF 48%, #1A0836 100%);
  color: #fff;
}
.drum-ring {
  position: absolute;
  left: 50%;
  top: 46%;
  border-radius: 50%;
  border: 2px solid rgba(255, 230, 0, 0.25);
  transform: translate(-50%, -50%);
  animation: drumPulse 2.4s ease-out infinite;
}
@keyframes drumPulse {
  0% { width: 80px; height: 80px; opacity: 0.7; }
  100% { width: 460px; height: 460px; opacity: 0; }
}

/* 5. OSCAR */
.theme-oscar {
  background: linear-gradient(165deg, #171210 0%, #2C120E 48%, #FF4D2E 100%);
  color: #FFF7EB;
}
.cinema-spotlight {
  position: absolute;
  top: -80px;
  left: 50%;
  width: 320px;
  height: 460px;
  transform: translateX(-50%);
  background: conic-gradient(from 165deg at 50% 0%, rgba(255, 215, 130, 0.24) 0deg, transparent 50deg);
  pointer-events: none;
}

/* 6. COPA 2026 */
.theme-copa {
  background: linear-gradient(160deg, #002776 0%, #001440 55%, #FFE600 135%);
  color: #fff;
}
.scoreboard-box {
  background: rgba(0, 0, 0, 0.48);
  border: 1.5px solid rgba(255, 230, 0, 0.45);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.team-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  opacity: 0.8;
}
.team-score {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

/* 7. ELEIÇÕES */
.theme-eleicoes {
  background: linear-gradient(170deg, #11131C 0%, #172033 55%, #009C3B 130%);
  color: #fff;
}
.vote-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vote-row {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
}
.vote-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.vote-name {
  font-weight: 800;
  font-size: 14px;
}
.vote-pct {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}
.vote-track {
  width: 100%;
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.vote-fill {
  height: 100%;
  border-radius: 99px;
  transform-origin: left;
  animation: growBar 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
@keyframes growBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* 8. TOP MÚSICA */
.theme-musica {
  background: linear-gradient(160deg, #FF2E93 0%, #191414 54%, #1ED760 135%);
  color: #fff;
}
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px 12px;
}
.rank-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--acid-lime);
  min-width: 34px;
  text-align: center;
  flex-shrink: 0;
}
.rank-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.rank-cat {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}
.rank-val {
  font-weight: 800;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 9. ARQUÉTIPO */
.theme-arquetipo {
  background: radial-gradient(circle at 25% 20%, #D4FF00 0%, #1ED760 35%, #0F1016 88%);
  color: #fff;
}
.aura-card {
  position: relative;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(16, 18, 26, 0.88), rgba(25, 35, 28, 0.92));
  border: 1.5px solid rgba(212, 255, 0, 0.55);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
  overflow: hidden;
}
.aura-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
  transform: translateX(-60%);
  animation: holoSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes holoSweep {
  0%, 100% { transform: translateX(-65%); }
  50% { transform: translateX(65%); }
}
.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.micro-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* 10. SUMMARY CARD */
.theme-summary {
  background: #0D0F12;
  color: #fff;
}

/* NEW CATEGORY THEMES (SAÚDE, POLÍTICA, ECONOMIA, TECH, CLIMA, ESPORTE CLUBE) */
.theme-saude {
  background: linear-gradient(165deg, #042A2B 0%, #0A5C5E 52%, #00E5FF 145%);
  color: #fff;
}
.ecg-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 26%;
  opacity: 0.28;
  pointer-events: none;
}
.ecg-line {
  fill: none;
  stroke: #00E5FF;
  stroke-width: 3;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: ecgDraw 3.2s linear infinite;
}
@keyframes ecgDraw {
  to { stroke-dashoffset: -420; }
}

.theme-politica {
  background: linear-gradient(160deg, #0C152B 0%, #162B52 55%, #009C3B 145%);
  color: #fff;
}

.theme-economia {
  background: linear-gradient(160deg, #171406 0%, #3E3306 48%, #FFE600 150%);
  color: #fff;
}

.theme-tech {
  background: linear-gradient(160deg, #120B29 0%, #2B1766 52%, #D4FF00 155%);
  color: #fff;
}

.theme-clima {
  background: linear-gradient(165deg, #0B2027 0%, #144552 52%, #FFB703 150%);
  color: #fff;
}

.theme-esporte-clube {
  background: linear-gradient(160deg, #072915 0%, #0E582C 54%, #FFE600 145%);
  color: #fff;
}

.theme-meme {
  background: linear-gradient(155deg, #FF2E93 0%, #5B189A 54%, #D4FF00 155%);
  color: #fff;
}

.theme-estado {
  background: linear-gradient(160deg, #06283D 0%, #0E5E6F 52%, #1ED760 150%);
  color: #fff;
}
.summary-poster {
  border-radius: 18px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background 240ms var(--ease-out), color 240ms ease, transform 200ms var(--ease-out);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.summary-poster[data-card-format="reels"] {
  outline: 2px dashed rgba(246, 248, 245, 0.35);
  outline-offset: -5px;
}
.summary-poster[data-card-format="xpost"] .poster-collage {
  height: 44px;
}
.format-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #131614;
  border: 1px solid rgba(246, 248, 245, 0.14);
}
.format-btn {
  padding: 6px 8px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: rgba(246, 248, 245, 0.72);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.format-btn.is-active {
  background: var(--accent-gradient);
  color: var(--text-dark);
}
.format-btn:active {
  transform: scale(0.96);
}
.poster-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.poster-edition-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  font-weight: 800;
}
.poster-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  height: 58px;
  overflow: hidden;
}
.poster-collage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}
.poster-aura {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.poster-aura-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.72;
}
.poster-aura-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.poster-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.poster-list-col {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 11px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.poster-list-head {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 1px;
}
.poster-list-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.22;
}
.poster-num {
  font-weight: 800;
  opacity: 0.65;
  flex-shrink: 0;
}
.poster-val {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster-states {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.poster-state-chip {
  background: rgba(0, 0, 0, 0.16);
  border-radius: 9px;
  padding: 5px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.poster-state-chip img {
  width: 17px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.poster-uf {
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.poster-state-val {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.summary-poster[data-card-theme="spotify"] {
  background: linear-gradient(155deg, #1ED760 0%, #0E6B33 100%);
  color: #06130A;
}
.summary-poster[data-card-theme="brasil"] {
  background: linear-gradient(155deg, #FFE600 0%, #009C3B 100%);
  color: #09130C;
}
.summary-poster[data-card-theme="funk"] {
  background: linear-gradient(155deg, #FF2E93 0%, #8B3DFF 100%);
  color: #FFFFFF;
}
.summary-poster[data-card-theme="noite"] {
  background: linear-gradient(155deg, #1E2433 0%, #090A0F 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sum-cell {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  padding: 8px 10px;
}
.sum-cell-label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  opacity: 0.75;
}
.sum-cell-val {
  font-weight: 800;
  font-size: 12.5px;
  line-height: 1.2;
  margin-top: 2px;
}

.theme-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.theme-swatches {
  display: flex;
  gap: 7px;
}
.poster-preview-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}
#summary-preview-canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48);
  display: block;
}
.pattern-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(246, 248, 245, 0.12);
}
.pattern-btn {
  flex: 1;
  padding: 5px 4px;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(246, 248, 245, 0.62);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, transform 140ms var(--ease-out);
}
.pattern-btn.is-active {
  background: transparent;
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}
.pattern-btn:active {
  transform: scale(0.95);
}
.theme-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.swatch-btn {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1.5px solid rgba(246, 248, 245, 0.35);
  cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 150ms ease;
}
.swatch-btn.is-active {
  transform: scale(1.14);
  border-color: var(--text-light);
  box-shadow: 0 0 0 2px #111412, 0 0 0 3.5px var(--spotify-green);
}
.creator-credits {
  font-size: 10px;
  font-weight: 700;
  color: rgba(246, 248, 245, 0.62);
  text-align: center;
  line-height: 1.2;
}
.creator-credits a {
  color: var(--spotify-green);
  text-decoration: none;
}
.desktop-hint a {
  color: var(--spotify-green);
  text-decoration: none;
}
.summary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-card-action {
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease;
}
.btn-card-action svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.btn-card-action:active { transform: scale(0.96); }
.btn-download { background: var(--accent-gradient); color: var(--text-dark); }
.btn-replay { background: rgba(246, 248, 245, 0.14); color: var(--text-light); border: 1px solid rgba(246, 248, 245, 0.16); }

/* ==========================================
   BOTTOM AUDIO HUD & HOME INDICATOR
   ========================================== */
.story-bottom-hud {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px 16px;
}
.story-bottom-hud.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.now-playing-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: 12px;
  background: #131614;
  border: 1px solid rgba(246, 248, 245, 0.14);
  cursor: pointer;
  transition: transform 140ms var(--ease-out);
}
.now-playing-pill:active {
  transform: scale(0.98);
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  flex-shrink: 0;
}
.eq-bars span {
  width: 3px;
  height: 100%;
  background: var(--spotify-green);
  border-radius: 2px;
  animation: eqBounce 0.75s ease-in-out infinite;
}
.eq-bars span:nth-child(2) { animation-delay: 0.2s; }
.eq-bars span:nth-child(3) { animation-delay: 0.4s; }
.eq-bars.is-muted span {
  animation: none;
  height: 3px;
  background: rgba(255, 255, 255, 0.45);
}
@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

.np-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.np-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--spotify-green);
}
.np-track {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-next-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-primary);
  flex-shrink: 0;
  opacity: 0.9;
}

.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  z-index: 35;
  pointer-events: none;
}

/* ==========================================
   DESKTOP EXTERNAL CONTROLS
   ========================================== */
.desktop-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #131614;
  border: 1px solid rgba(246, 248, 245, 0.14);
}
.desk-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(246, 248, 245, 0.12);
  background: #1C201D;
  color: var(--text-light);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 150ms ease, transform 140ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .desk-btn:hover { background: #262C28; transform: scale(1.06); }
}
.desk-btn:active { transform: scale(0.95); }
.desk-btn svg { width: 16px; height: 16px; }

.desk-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
}
.desk-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.desk-dot.is-active {
  width: 18px;
  background: var(--spotify-green);
}

.desktop-hint {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
.desktop-hint span {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   MOBILE FULL-BLEED RESPONSIVE
   ========================================== */
@media (max-width: 520px) {
  #ambient-bg,
  .bg-grid,
  .desktop-controls,
  .desktop-hint,
  .hw-btn,
  .ios-status-bar,
  .home-indicator {
    display: none;
  }

  .desktop-stage {
    padding: 0;
    gap: 0;
  }

  .phone-chassis {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    min-width: 0;
    aspect-ratio: auto;
    border-radius: 0;
    padding: 0;
    background: #000;
    box-shadow: none;
  }

  .phone-bezel {
    border-radius: 0;
    padding: 0;
  }

  .phone-screen {
    border-radius: 0;
  }

  .story-progress-bar {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .slide {
    inset: 0;
    padding: 74px 16px 74px;
  }
}

#btn-mute .icon-sound-off {
  display: none;
}

#btn-mute.is-muted .icon-sound-on {
  display: none;
}

#btn-mute.is-muted .icon-sound-off {
  display: block;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  background: #131614;
  border: 1px solid rgba(246, 248, 245, 0.14);
  flex-shrink: 0;
}

.vol-icon {
  width: 14px;
  height: 14px;
  color: rgba(246, 248, 245, 0.72);
  flex-shrink: 0;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: rgba(246, 248, 245, 0.22);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #2de2c0;
  border: 2px solid #0b0e17;
  cursor: pointer;
  transition: transform 120ms ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #2de2c0;
  border: 2px solid #0b0e17;
  cursor: pointer;
}

@media (max-width: 560px) {
  .mascot-fx-canvas {
    display: none;
  }
}
