@charset "UTF-8";

:root {
  --night-1: #1b0705;
  --night-2: #3a0e0a;
  --ember: #e23a1e;
  --amber: #f5a623;
  --gold: #ffd34e;
  --cream: #ffe4b8;
  --f-red: #e23a1e;
  --f-amber: #f5a623;
  --f-green: #1fa98f;
  --f-blue: #2e86de;
  --f-pink: #e84393;
  --f-gold: #ffd34e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(245, 166, 35, 0.16), transparent 55%),
    radial-gradient(90% 70% at 50% 118%, rgba(226, 58, 30, 0.55), transparent 60%),
    radial-gradient(140% 120% at 50% 40%, var(--night-2), var(--night-1) 70%);
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55));
  mix-blend-mode: multiply;
  z-index: 5;
}

/* Base Container */
.container {
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
}

/* Botões base */
button,
a,
[role="button"] {
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover,
a:hover {
  opacity: 0.9;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

button:active,
a:active {
  transform: scale(0.98);
}

button:disabled,
[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Bandeirinhas ---------- */
.pennants {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 0;
  padding-top: 6px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}
.pennants::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 228, 184, 0.5) 8%, rgba(255, 228, 184, 0.5) 92%, transparent);
}
.flag {
  width: clamp(26px, 4.4vw, 46px);
  height: clamp(34px, 5.6vw, 58px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: sway 3.4s ease-in-out infinite;
  position: relative;
}
.flag::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 45%);
}
.flag:nth-child(6n+1) { background: var(--f-red); }
.flag:nth-child(6n+2) { background: var(--f-gold); }
.flag:nth-child(6n+3) { background: var(--f-green); }
.flag:nth-child(6n+4) { background: var(--f-blue); }
.flag:nth-child(6n+5) { background: var(--f-pink); }
.flag:nth-child(6n+6) { background: var(--f-amber); }
.flag:nth-child(2n)   { animation-delay: -1.1s; }
.flag:nth-child(3n)   { animation-delay: -0.55s; }
.flag:nth-child(5n)   { animation-delay: -1.7s; }

@keyframes sway {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(2px); }
}

/* ---------- Palco ---------- */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

.stage .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 5vh, 60px) 22px;
}

.pre-title {
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: clamp(0.62rem, 1.6vw, 0.8rem);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  opacity: 0;
  animation: subir 0.8s 0.15s ease-out forwards;
}
.pre-title::before,
.pre-title::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber));
}
.pre-title::after {
  transform: scaleX(-1);
}

.logo-container {
  position: relative;
  margin: clamp(18px, 3.5vh, 34px) 0 clamp(20px, 4vh, 38px);
  opacity: 0;
  animation: pular 1s 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.15) forwards;
}
.logo-container::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  background: radial-gradient(closest-side, rgba(245, 166, 35, 0.55), rgba(226, 58, 30, 0.18) 55%, transparent 72%);
  filter: blur(6px);
  z-index: -1;
  animation: respirar 4.5s ease-in-out infinite;
}
.logo-container img {
  display: block;
  width: min(80vw, 540px);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5));
  animation: flutuar 6s ease-in-out infinite;
}

.headline {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 5.2vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 0 rgba(196, 30, 30, 0.35), 0 10px 26px rgba(0, 0, 0, 0.35);
  max-width: 16ch;
  opacity: 0;
  animation: subir 0.9s 0.6s ease-out forwards;
}
.headline .glow {
  background: linear-gradient(90deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin-top: clamp(14px, 2.4vh, 22px);
  font-size: clamp(1rem, 2.5vw, 1.28rem);
  line-height: 1.55;
  color: rgba(255, 228, 184, 0.9);
  max-width: 34ch;
  opacity: 0;
  animation: subir 0.9s 0.78s ease-out forwards;
}
.subtitle b {
  color: var(--gold);
  font-weight: 700;
}

.badge {
  margin-top: clamp(26px, 4.6vh, 42px);
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 2.3vw, 1.1rem);
  color: #2a0806;
  padding: 0.85em 2.1em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--amber));
  box-shadow: 0 0 0 4px rgba(255, 211, 78, 0.12), 0 12px 30px rgba(226, 58, 30, 0.35);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  opacity: 0;
  animation: pular 0.8s 1s cubic-bezier(0.2, 0.9, 0.25, 1.15) forwards;
}
.badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-18deg);
  animation: varrer 3.2s 1.6s ease-in-out infinite;
}
.badge .dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
}

footer {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 22px clamp(18px, 3.4vh, 30px);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(255, 228, 184, 0.5);
  opacity: 0;
  animation: subir 1s 1.3s ease-out forwards;
}
footer b {
  color: rgba(255, 228, 184, 0.8);
  font-weight: 700;
}

/* ---------- Fagulhas ---------- */
.sparks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.spark {
  position: absolute;
  bottom: -12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold), var(--ember) 70%, transparent);
  filter: blur(0.3px);
  opacity: 0;
  animation: subir-fagulha linear infinite;
}

/* ---------- Keyframes ---------- */
@keyframes subir {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes pular {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes flutuar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes respirar {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes varrer {
  0% { left: -60%; }
  30%, 100% { left: 130%; }
}
@keyframes subir-fagulha {
  0% { opacity: 0; transform: translateY(0) translateX(0) scale(1); }
  12% { opacity: 1; }
  80% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-102vh) translateX(var(--offset, 20px)) scale(0.3); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .sparks { display: none; }
  .pre-title, .logo-container, .headline, .subtitle, .badge, footer { opacity: 1; }
}
