/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette from the game box */
  --mint: #8EBFAB;
  --mint-light: #A8D5BA;
  --mint-dark: #6EA08C;
  --gold: #F2C94C;
  --gold-dark: #D4A828;
  --gold-light: #FAE27C;
  --red: #D63B31;
  --red-glow: rgba(214, 59, 49, 0.35);
  --red-light: #E85D54;
  --navy: #1A1A2E;
  --navy-light: #2A2A4A;
  --cream: #FFF8E7;
  --cream-dark: #F0E6CC;
  --white: #FFFFFF;
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.3);
  --error-red: #ef4444;
  --error-red-glow: rgba(239, 68, 68, 0.3);

  /* Design tokens */
  --bg: #FFFFFF;
  --surface: rgba(255, 248, 231, 0.6);
  --surface-solid: var(--cream);
  --border: var(--navy);
  --border-light: rgba(26, 26, 46, 0.15);
  --text: var(--navy);
  --text-muted: #4A4A6A;
  --radius: 18px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 4px 4px 0px var(--navy);
  --shadow-card-hover: 6px 6px 0px var(--navy);
  --shadow-soft: 0 4px 20px rgba(26, 26, 46, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ===== PARTICLES (confetti style) ===== */

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px 30px;
  max-width: 800px;
  margin: 0 auto;
}

.hero--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 20px;
  max-width: none;
}

.hero__logo {
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-shadow:
    4px 4px 0px var(--red),
    8px 8px 0px rgba(26, 26, 46, 0.15);
  animation: logoIn 1s cubic-bezier(0.4, 0, 0.2, 1) both;
  cursor: default;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    text-shadow 0.4s ease;
}

.hero__logo:hover {
  transform: scale(1.05) rotate(-1deg);
  text-shadow:
    5px 5px 0px var(--red),
    10px 10px 0px rgba(26, 26, 46, 0.12);
}

@keyframes logoIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.8);
    letter-spacing: 0.3em;
  }

  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: -0.02em;
  }
}

.hero__logo {
  height: 120px;
  width: auto;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease both;
}

.hero__title {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--navy);
  animation: fadeInDown 0.8s ease both;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.4);
}

.highlight {
  color: var(--red);
  -webkit-text-fill-color: var(--red);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.word-highlight {
  position: relative;
}

.word-highlight::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -4px;
  width: calc(100% + 8px);
  height: 6px;
  background: var(--gold);
  border-radius: 99px;
  border: 2px solid var(--navy);
  animation: shimmer 2.5s ease-in-out infinite;
  z-index: -1;
}

@keyframes shimmer {

  0%,
  100% {
    opacity: 0.6;
    transform: scaleX(0.95);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  animation: fadeInDown 1s ease both;
  font-weight: 500;
}

.hero__counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--cream);
  border: 3px solid var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--red);
  box-shadow: 3px 3px 0px var(--navy);
  animation: fadeInDown 1.2s ease both;
  transition: var(--transition);
}

.hero__counter.pulse {
  animation: counterPulse 0.4s ease;
}

@keyframes counterPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* ===== GRID ===== */
.grid-section {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px 60px;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 700px) {
  .player-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* ===== PLAYER CARD ===== */
.player-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
  border: 3px solid var(--navy);
  transition: var(--transition);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-card);
  animation: cardIn 0.5s ease both;
}

.player-card:nth-child(1) {
  animation-delay: 0.05s;
}

.player-card:nth-child(2) {
  animation-delay: 0.10s;
}

.player-card:nth-child(3) {
  animation-delay: 0.15s;
}

.player-card:nth-child(4) {
  animation-delay: 0.20s;
}

.player-card:nth-child(5) {
  animation-delay: 0.25s;
}

.player-card:nth-child(6) {
  animation-delay: 0.30s;
}

.player-card:nth-child(7) {
  animation-delay: 0.35s;
}

.player-card:nth-child(8) {
  animation-delay: 0.40s;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--red);
}

.player-card.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-glow), var(--shadow-card);
}

.player-card.selected::before {
  content: "🎯";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  background: var(--cream);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
  animation: popIn 0.3s ease;
}

.player-card.revealed-correct {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow), var(--shadow-card);
  pointer-events: none;
}

.player-card.revealed-correct::after {
  content: "✅ POSER";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
  z-index: 5;
  border-top: 3px solid var(--navy);
  animation: slideUp 0.4s ease;
}

.player-card.revealed-wrong {
  border-color: var(--error-red);
  box-shadow: 0 0 0 4px var(--error-red-glow), var(--shadow-card);
  pointer-events: none;
}

.player-card.revealed-wrong::after {
  content: "❌ NOT A POSER";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: var(--error-red);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
  z-index: 5;
  border-top: 3px solid var(--navy);
  animation: slideUp 0.4s ease;
}

.player-card.disabled {
  pointer-events: none;
  opacity: 0.5;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.player-card__gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.5s ease;
  opacity: 0;
}

.player-card.video-loaded .player-card__gif {
  opacity: 1;
}

.player-card:hover .player-card__gif {
  transform: scale(1.06);
}

/* ===== VIDEO LOADING SPINNER ===== */
.player-card__spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: var(--cream);
  transition: opacity 0.4s ease;
}

.player-card.video-loaded .player-card__spinner {
  opacity: 0;
  pointer-events: none;
}

.spinner-ring {
  width: 36px;
  height: 36px;
  border: 4px solid var(--border-light);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
  to {
    transform: rotate(360deg);
  }
}

.player-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.8));
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  z-index: 2;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ===== RESULT OVERLAY ===== */
.result-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.result-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.result-card {
  background: var(--cream);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 44px 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 6px 6px 0px var(--navy);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s ease;
  margin: auto;
}

.result-overlay.visible .result-card {
  transform: translateY(0) scale(1);
}

.result-emoji {
  font-size: 4rem;
  margin-bottom: 14px;
  animation: bounce 0.6s ease;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-14px);
  }

  60% {
    transform: translateY(-6px);
  }
}

.result-title {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--navy);
}

.result-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 26px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 30px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0px var(--navy);
}

.btn:active {
  box-shadow: 1px 1px 0px var(--navy);
  transform: translate(2px, 2px);
}

.btn--play-again {
  background: var(--red);
  color: var(--white);
  margin-bottom: 22px;
}

.btn--play-again:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 4px 5px 0px var(--navy);
}

.btn--submit {
  background: var(--red);
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn--submit:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 4px 5px 0px var(--navy);
}

/* ===== LEAD CAPTURE ===== */
.lead-capture {
  text-align: center;
}

.posers-box-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 12px;
}

.lead-divider {
  width: 70px;
  height: 4px;
  background: var(--gold);
  border: 2px solid var(--navy);
  border-radius: 99px;
  margin: 0 auto 22px;
}

.lead-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--navy);
}

.lead-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.lead-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .lead-form {
    flex-direction: column;
  }
}

.lead-input {
  flex: 1;
  padding: 12px 16px;
  border: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
  box-shadow: 2px 2px 0px var(--navy);
}

.lead-input::placeholder {
  color: #999;
}

.lead-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow), 2px 2px 0px var(--navy);
}

.lead-success {
  display: none;
  margin-top: 16px;
  font-size: 1rem;
  color: var(--green);
  font-weight: 700;
  animation: fadeInDown 0.4s ease;
}

.lead-success.show {
  display: block;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FOOTER-LIKE BRANDING ===== */
.footer-brand {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--mint);
}

::-webkit-scrollbar-thumb {
  background: var(--navy);
  border-radius: 99px;
  border: 2px solid var(--mint);
}

/* ===== SELECTION ===== */
::selection {
  background: var(--gold);
  color: var(--navy);
}

/* ===== BREVO FORM OVERRIDES ===== */
.brevo-embed {
  max-width: 420px;
  margin: 0 auto;
}

.brevo-embed .sib-form {
  background-color: transparent !important;
  text-align: center !important;
}

.brevo-embed #sib-container {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  max-width: 100% !important;
}

.brevo-embed .sib-form-container {
  max-width: 100% !important;
}

/* Email input */
.brevo-embed .brevo-email-input,
.brevo-embed #sib-container input.input {
  width: 100% !important;
  padding: 13px 18px !important;
  border: 3px solid var(--navy) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--white) !important;
  color: var(--navy) !important;
  font-family: "Outfit", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  outline: none !important;
  box-shadow: 2px 2px 0px var(--navy) !important;
  transition: var(--transition) !important;
}

.brevo-embed #sib-container input.input:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px var(--red-glow), 2px 2px 0px var(--navy) !important;
}

.brevo-embed #sib-container input.input::placeholder {
  color: #999 !important;
  font-family: "Outfit", sans-serif !important;
}

/* Submit button */
.brevo-embed .brevo-submit-btn,
.brevo-embed .sib-form-block__button {
  width: 100% !important;
  padding: 13px 30px !important;
  border: 3px solid var(--navy) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--red) !important;
  color: var(--white) !important;
  font-family: "Outfit", sans-serif !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  box-shadow: 3px 3px 0px var(--navy) !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}

.brevo-embed .brevo-submit-btn:hover,
.brevo-embed .sib-form-block__button:hover {
  background: var(--red-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 4px 5px 0px var(--navy) !important;
}

.brevo-embed .brevo-submit-btn:active,
.brevo-embed .sib-form-block__button:active {
  box-shadow: 1px 1px 0px var(--navy) !important;
  transform: translate(2px, 2px) !important;
}

/* Hide default Brevo labels */
.brevo-embed .entry__label,
.brevo-embed .entry__specification {
  display: none !important;
}

/* Error & success message panels */
.brevo-embed .sib-form-message-panel {
  border-radius: var(--radius-sm) !important;
  font-family: "Outfit", sans-serif !important;
  border-width: 3px !important;
  border-style: solid !important;
  max-width: 100% !important;
  margin: 0 0 12px !important;
}

/* Hide honeypot */
.brevo-embed .input--hidden {
  display: none !important;
}