:root {
  color: #f8fafc;
  background: #07111f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #07111f;
  --ink: #f8fafc;
  --soft: #d9e4ef;
  --muted: #8ca0b3;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.18);
  --green: #22c55e;
  --mint: #2dd4bf;
  --gold: #facc15;
  --orange: #fb923c;
  --red: #ef4444;
  --blue: #38bdf8;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 12% 14%, rgba(45, 212, 191, 0.22), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(250, 204, 21, 0.2), transparent 25%),
    radial-gradient(circle at 50% 110%, rgba(34, 197, 94, 0.2), transparent 38%),
    #07111f;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(250, 204, 21, 0.65);
  outline-offset: 4px;
}

.stadium-lights,
.pitch-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.stadium-lights {
  z-index: -3;
  background:
    conic-gradient(from 205deg at 18% -12%, rgba(255, 255, 255, 0.26), transparent 18deg),
    conic-gradient(from 150deg at 82% -12%, rgba(255, 255, 255, 0.22), transparent 18deg),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%);
  animation: lightSweep 6s ease-in-out infinite alternate;
}

.pitch-grid {
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, transparent 92%);
}

@keyframes lightSweep {
  from {
    opacity: 0.7;
    transform: translateY(-1%);
  }
  to {
    opacity: 1;
    transform: translateY(1%);
  }
}

.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  isolation: isolate;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 950;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(250, 204, 21, 0.6);
  border-radius: 8px;
  background: linear-gradient(135deg, #facc15, #22c55e);
  box-shadow: 0 14px 38px rgba(250, 204, 21, 0.2);
}

.team-credit,
.role-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.team-credit {
  justify-content: flex-end;
  gap: 8px;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 850;
}

.role-group {
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.role-group small {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  color: #07111f;
  background: linear-gradient(135deg, var(--gold), #ffffff);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-credit span,
.team-credit strong {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.team-credit strong {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #ffffff);
}

.name-luiz {
  color: var(--green);
  text-shadow: 0 0 18px rgba(34, 197, 94, 0.34);
}

.progress-shell {
  position: fixed;
  inset: 72px 0 auto;
  z-index: 31;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  display: block;
  width: 14.285%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--orange));
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.72);
  transition: width 320ms ease;
}

.slide {
  position: absolute;
  inset: 76px 0 0;
  display: grid;
  align-items: center;
  width: 100%;
  height: calc(100vh - 76px);
  padding: clamp(18px, 4vw, 58px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(30px) scale(0.985);
  transition:
    opacity 320ms ease,
    visibility 320ms ease,
    transform 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.cover-slide {
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(22px, 5vw, 68px);
}

.cover-copy,
.slide-heading,
.final-content {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(45, 212, 191, 0.48);
  border-radius: 8px;
  color: #adfff2;
  background: rgba(45, 212, 191, 0.1);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 16px 0 14px;
  color: #ffffff;
  font-size: clamp(3rem, 7.6vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h1 span,
h2 span {
  color: transparent;
  background: linear-gradient(120deg, #ffffff, var(--mint) 38%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
}

h2 {
  max-width: 980px;
  margin: 18px 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
}

p {
  max-width: 780px;
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.68;
}

.student-panel,
.credits-board {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.75fr);
  gap: 12px;
  margin: 20px 0;
}

.student-panel article,
.credits-board article {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.student-panel small,
.credits-board small {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.student-panel strong,
.credits-board strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.primary-action,
.control-button,
.timeline-tab,
.emotion-card,
.answers button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  font-weight: 950;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  color: #07111f;
  background: linear-gradient(135deg, var(--gold), var(--green));
  box-shadow: 0 24px 58px rgba(34, 197, 94, 0.24);
}

.primary-action:hover,
.control-button:hover,
.emotion-card:hover,
.timeline-tab:hover,
.answers button:hover {
  transform: translateY(-3px);
}

.hero-art,
.interactive-art {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-art {
  min-height: min(62vh, 640px);
}

.hero-art::after,
.interactive-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.04), transparent 26%),
    linear-gradient(180deg, transparent 58%, rgba(7, 17, 31, 0.5));
}

.hero-art img,
.interactive-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #07111f;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 950;
}

.slide-heading {
  align-self: end;
  margin: 0 auto 22px;
  width: min(1180px, 100%);
}

.explore-slide,
.timeline-slide,
.energy-slide,
.brazil-slide,
.quiz-slide,
.final-slide {
  align-content: center;
}

.explore-layout,
.timeline-board,
.brazil-layout,
.quiz-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.explore-layout > *,
.timeline-board > *,
.brazil-layout > *,
.quiz-panel > * {
  min-width: 0;
}

.explore-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 20px;
  align-items: stretch;
}

.interactive-art {
  min-height: 440px;
}

.hotspot {
  position: absolute;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 0 rgba(250, 204, 21, 0.74),
    0 0 28px rgba(250, 204, 21, 0.9);
  animation: pulse 1.7s ease-out infinite;
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: #07111f;
}

.hotspot.trophy {
  left: 68%;
  top: 36%;
}

.hotspot.ball {
  left: 50%;
  top: 62%;
}

.hotspot.crowd {
  left: 18%;
  top: 76%;
}

.hotspot.flags {
  left: 82%;
  top: 64%;
}

@keyframes pulse {
  to {
    box-shadow:
      0 0 0 18px rgba(250, 204, 21, 0),
      0 0 28px rgba(250, 204, 21, 0.9);
  }
}

.fact-card,
.stage-card,
.emotion-output,
.brazil-hero-card,
.brazil-facts article,
.question-card,
.scoreboard {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.fact-card {
  display: grid;
  align-content: center;
  min-height: 360px;
  padding: clamp(22px, 3vw, 34px);
}

.fact-card.is-flashing {
  animation: cardPop 360ms ease;
}

.fact-kicker,
.stage-card span,
.emotion-output span,
.question-card small,
.scoreboard span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

@keyframes cardPop {
  50% {
    transform: scale(1.025);
    border-color: rgba(250, 204, 21, 0.58);
  }
}

.timeline-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
  gap: 20px;
}

.timeline-tabs {
  display: grid;
  gap: 12px;
}

.timeline-tab {
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
}

.timeline-tab.is-active {
  color: #07111f;
  background: linear-gradient(135deg, var(--gold), var(--mint));
  box-shadow: 0 20px 60px rgba(45, 212, 191, 0.2);
}

.stage-card {
  min-height: 330px;
  padding: clamp(24px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.18), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
}

.stage-card span {
  display: block;
  margin-bottom: 16px;
  font-size: 4rem;
  line-height: 1;
}

.stage-card.is-flashing {
  animation: cardPop 360ms ease;
}

.emotion-grid {
  width: min(1180px, 100%);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.emotion-card {
  display: grid;
  gap: 9px;
  min-height: 180px;
  place-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.emotion-card span {
  font-size: 3rem;
}

.emotion-card strong {
  font-size: 1.25rem;
}

.emotion-card small {
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
}

.emotion-card.is-active {
  color: #07111f;
  background: linear-gradient(135deg, var(--gold), var(--green));
  box-shadow: 0 28px 80px rgba(34, 197, 94, 0.22);
}

.emotion-output {
  width: min(1180px, 100%);
  min-height: 170px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 36px);
}

.brazil-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.brazil-slide .slide-heading {
  margin-bottom: 14px;
}

.brazil-slide h2 {
  max-width: 1120px;
  margin: 12px 0;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  line-height: 1;
}

.brazil-slide .slide-heading p {
  max-width: 920px;
  font-size: clamp(0.96rem, 1.5vw, 1.12rem);
}

.brazil-hero-card {
  display: grid;
  grid-template-rows: 150px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(18px, 2.6vw, 26px);
}

.brazil-flag {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.brazil-flag::before {
  content: "";
  width: 54%;
  aspect-ratio: 1.55;
  background: #facc15;
  transform: rotate(45deg);
  box-shadow: 0 0 42px rgba(250, 204, 21, 0.42);
}

.brazil-flag span {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background:
    linear-gradient(165deg, transparent 42%, rgba(255, 255, 255, 0.92) 43% 50%, transparent 51%),
    #1d4ed8;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.brazil-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.brazil-facts article {
  display: grid;
  align-content: start;
  min-height: 154px;
  padding: 18px;
}

.brazil-facts strong {
  color: var(--gold);
  font-size: 1.28rem;
}

.brazil-facts p {
  margin-bottom: 0;
  font-size: 1rem;
}

.quiz-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.scoreboard {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 260px;
  padding: 24px;
  text-align: center;
}

.scoreboard strong {
  color: #ffffff;
  font-size: clamp(5rem, 12vw, 8rem);
  line-height: 0.9;
}

.question-card {
  min-height: 360px;
  padding: clamp(22px, 4vw, 44px);
}

.question-card h3 {
  overflow-wrap: anywhere;
}

.answers {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.answers button {
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.answers button.correct {
  color: #07111f;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.answers button.wrong {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), #fb7185);
}

.final-slide {
  justify-items: center;
  text-align: center;
}

.final-content {
  width: min(860px, 100%);
}

.final-content h2 {
  margin-inline: auto;
}

.thank-you-animation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.thank-you-animation span {
  display: grid;
  place-items: center;
  width: clamp(38px, 6vw, 64px);
  height: clamp(44px, 7vw, 74px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #07111f;
  background: linear-gradient(135deg, var(--gold), var(--green));
  box-shadow: 0 20px 58px rgba(34, 197, 94, 0.22);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 950;
  animation: thanksBounce 1.4s ease-in-out infinite;
}

.thank-you-animation span:nth-child(2) {
  animation-delay: 0.06s;
}

.thank-you-animation span:nth-child(3) {
  animation-delay: 0.12s;
}

.thank-you-animation span:nth-child(4) {
  animation-delay: 0.18s;
}

.thank-you-animation span:nth-child(5) {
  animation-delay: 0.24s;
}

.thank-you-animation span:nth-child(6) {
  animation-delay: 0.3s;
}

.thank-you-animation .word-start {
  margin-left: clamp(10px, 2vw, 22px);
}

.thank-you-animation span:nth-child(7) {
  animation-delay: 0.36s;
}

.thank-you-animation span:nth-child(8) {
  animation-delay: 0.42s;
}

.thank-you-animation span:nth-child(9) {
  animation-delay: 0.48s;
}

@keyframes thanksBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  35% {
    transform: translateY(-12px) rotate(-3deg);
  }
  70% {
    transform: translateY(3px) rotate(2deg);
  }
}

.credits-board {
  text-align: left;
}

.deck-controls {
  position: fixed;
  right: clamp(14px, 4vw, 44px);
  bottom: clamp(14px, 4vw, 32px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.control-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #07111f;
  background: linear-gradient(135deg, var(--gold), var(--green));
}

.control-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  transform: none;
}

.slide-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 64px;
  justify-content: center;
  color: var(--soft);
  font-weight: 950;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: -24px;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  animation: confettiFall 1.8s ease-in forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .deck {
    min-height: 100vh;
    height: auto;
  }

  .topbar {
    position: fixed;
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .progress-shell {
    position: fixed;
    top: 108px;
  }

  .slide {
    position: relative;
    inset: auto;
    display: none;
    overflow-x: hidden;
    min-height: calc(100vh - 90px);
    height: auto;
    padding: 144px 16px 100px;
    transform: none;
  }

  .slide.is-active {
    display: grid;
  }

  .cover-slide,
  .explore-layout,
  .timeline-board,
  .brazil-layout,
  .quiz-panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .scoreboard,
  .question-card {
    width: 100%;
    max-width: 100%;
  }

  .cover-slide {
    gap: 22px;
  }

  .hero-art {
    min-height: 360px;
  }

  .interactive-art {
    min-height: 300px;
  }

  .emotion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brazil-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 72px;
    justify-content: center;
  }

  .progress-shell {
    top: 72px;
  }

  .team-credit {
    display: none;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .student-panel,
  .credits-board,
  .emotion-grid {
    grid-template-columns: 1fr;
  }

  .slide {
    padding-top: 106px;
  }

  .question-card {
    padding: 18px;
  }

  .question-card h3 {
    font-size: 1.12rem;
    line-height: 1.28;
  }

  .hero-art figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
  }

  .hotspot {
    width: 28px;
    height: 28px;
  }

  .deck-controls {
    left: 14px;
    right: 14px;
    justify-content: space-between;
  }
}
