@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@500;700;800;900&display=swap');

:root {
  --red: #e72d4d;
  --dark-red: #a9163d;
  --blue: #2477c9;
  --dark-blue: #163d72;
  --cream: #fffaf0;
  --ink: #17233f;
  --mayo: #fff0a8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Nunito", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 15%, rgba(255,255,255,.23) 0 6%, transparent 7%),
    radial-gradient(circle at 88% 75%, rgba(255,255,255,.16) 0 8%, transparent 9%),
    linear-gradient(135deg, #d9264a 0%, #c9295b 38%, #2879c7 100%);
}

body::before {
  content: "🇫🇷";
  position: fixed;
  font-size: 180px;
  opacity: .07;
  right: -15px;
  top: 5px;
  pointer-events: none;
}

h1, h2, p { margin-top: 0; }
h1, h2, .big-button, .question { font-family: "Baloo 2", "Nunito", sans-serif; }

.home {
  min-height: calc(100vh - 62px);
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.hero-card, .panel {
  width: min(940px, 100%);
  background: rgba(255,250,240,.97);
  border: 5px solid rgba(255,255,255,.72);
  border-radius: 30px;
  box-shadow: 0 20px 55px rgba(21,35,63,.25);
}

.hero-card {
  padding: 42px 35px 38px;
  text-align: center;
}

.logo {
  width: min(300px, 70vw);
  height: auto;
  margin: 0 auto 14px;
  display: block;
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 900;
  font-size: .82rem;
  margin-bottom: 8px;
}

.hero-card h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: .95;
  color: var(--dark-red);
  margin-bottom: 18px;
}

.intro {
  max-width: 650px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.big-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  max-width: 800px;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--dark-red), var(--red));
  padding: 17px 25px;
  border-radius: 18px;
  font-size: 1.12rem;
  font-weight: 800;
  box-shadow: 0 8px 0 #801334, 0 15px 25px rgba(128,19,52,.2);
  transition: transform .15s, box-shadow .15s;
}
.big-button:hover { transform: translateY(-3px); box-shadow: 0 11px 0 #801334, 0 18px 30px rgba(128,19,52,.25); }
.big-button:active { transform: translateY(3px); box-shadow: 0 4px 0 #801334; }
.big-button span { font-size: 1.6rem; }
.small-note { margin: 28px 0 0; font-size: .9rem; opacity: .7; }

footer {
  text-align: center;
  color: white;
  font-weight: 800;
  padding: 17px;
  background: rgba(12,32,67,.25);
}

.game-page {
  width: min(1050px, 100%);
  margin: 0 auto;
  padding: 22px 16px 45px;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 18px;
  color: white;
  margin-bottom: 18px;
}
.mini-logo { display: block; }
.mini-logo img { width: 170px; display: block; }
.game-header h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); }
.game-header .eyebrow { color: white; margin: 0; opacity: .9; }

.panel { padding: 28px; margin-bottom: 20px; }
.panel-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.panel-title h2 { margin: 0 0 2px; color: var(--dark-blue); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.panel-title p { margin: 0; opacity: .7; }

.round-badge {
  width: 48px; height: 48px; flex: 0 0 48px;
  display: grid; place-items: center;
  color: white; background: var(--blue);
  border-radius: 50%; font-weight: 900; font-size: 1.3rem;
}

.question-box {
  background: #edf6ff;
  border: 3px dashed #8bbbe7;
  border-radius: 22px;
  padding: 25px;
  text-align: center;
}
.question-label { margin-bottom: 5px; font-weight: 800; color: var(--blue); }
.question {
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 800;
  color: var(--dark-red);
  margin-bottom: 15px;
}
.answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  max-width: 650px;
  margin: auto;
}
.answer {
  border: 3px solid #b6cbe0;
  border-radius: 14px;
  padding: 14px;
  background: white;
  color: var(--ink);
  font: 800 1rem "Nunito", sans-serif;
  cursor: pointer;
  transition: .15s;
}
.answer:hover { border-color: var(--blue); transform: translateY(-2px); background: #f4faff; }
.answer.correct { background: #d9f8dd; border-color: #39a950; }
.answer.wrong { background: #ffe0e5; border-color: #e0445d; animation: shake .25s; }
.message { min-height: 24px; margin: 14px 0 0; font-weight: 900; }

.hidden { display: none !important; }

.shooting-panel {
  background: linear-gradient(#fffdf5, #eef8ff);
}
.score-row {
  display: flex; justify-content: space-between;
  padding: 10px 14px; margin-bottom: 10px;
  border-radius: 12px; background: #17233f; color: white;
}

.shooting-range {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 24px;
  border: 4px solid #9fc6e6;
  background:
    linear-gradient(#9ed8ff 0 58%, #74bd69 58% 100%);
}
.shooting-range::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18%;
  background: repeating-linear-gradient(90deg, rgba(20,110,58,.15) 0 7px, transparent 7px 18px);
}
.cloud { position: absolute; font-size: 45px; opacity: .75; }
.cloud-1 { top: 25px; left: 9%; }
.cloud-2 { top: 75px; right: 10%; }

.mayo-field {
  position: absolute; inset: 0;
  z-index: 2;
}
.mayo-pot {
  position: absolute;
  width: 86px; height: 104px;
  border: 0; background: transparent;
  cursor: crosshair;
  transform: translate(-50%, -50%);
  transition: transform .15s;
}
.mayo-pot:hover { transform: translate(-50%, -50%) scale(1.08) rotate(-2deg); }
.mayo-pot .lid {
  width: 72px; height: 17px; margin: 0 auto -1px;
  border-radius: 50% 50% 35% 35%;
  background: #d83b4d;
  border: 3px solid #8d2438;
}
.mayo-pot .jar {
  width: 70px; height: 68px; margin: auto;
  border: 3px solid #d0aa37;
  border-radius: 10px 10px 18px 18px;
  background: linear-gradient(#fffce8 0 35%, #fff2a5 35%);
  box-shadow: inset 0 -7px 0 rgba(206,165,42,.18);
  display: grid; place-items: center;
}
.mayo-pot .label {
  background: white;
  border: 2px solid #e6d48c;
  border-radius: 7px;
  width: 56px; padding: 5px 1px;
  color: #d9284b;
  font-size: 12px; font-weight: 900;
  line-height: 1;
}
.mayo-pot.hit { animation: potHit .45s forwards; pointer-events: none; }

.banana {
  position: absolute;
  left: 50%; bottom: 5px;
  z-index: 4;
  font-size: 54px;
  opacity: 0;
  pointer-events: none;
}
.banana.fly { animation: bananaFly .55s ease-out forwards; }

.blaster {
  display: block; margin: 15px auto 8px;
  border: 0; border-radius: 18px;
  background: linear-gradient(135deg, #f2b928, #ef7f1a);
  color: #321f05;
  padding: 15px 25px;
  font: 900 1.15rem "Nunito", sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 0 #9d5c0c;
}
.blaster span { display: block; font-size: .75rem; }
.blaster:active { transform: translateY(4px); box-shadow: 0 2px 0 #9d5c0c; }

.result-panel { text-align: center; padding: 45px 25px; }
.trophy { font-size: 80px; animation: bounce 1s infinite alternate; }
.result-panel h2 { color: var(--dark-red); font-size: clamp(2.5rem, 8vw, 4.5rem); margin: 0; }
.result-stats {
  display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;
  margin: 25px 0 30px;
}
.result-stats div {
  min-width: 125px; padding: 15px;
  border-radius: 16px; background: #edf6ff;
}
.result-stats strong { display: block; font: 900 2rem "Baloo 2"; color: var(--blue); }
.result-stats span { font-weight: 800; opacity: .7; }
.home-button { display: inline-flex; }

@keyframes bananaFly {
  from { opacity: 1; left: 50%; bottom: 5px; transform: rotate(0deg) scale(1); }
  to { opacity: 0; left: var(--target-x); top: var(--target-y); transform: rotate(500deg) scale(.65); }
}
@keyframes potHit {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  45% { transform: translate(-50%, -50%) scale(1.3) rotate(15deg); }
  100% { transform: translate(-50%, -50%) scale(.1) rotate(35deg); opacity: 0; }
}
@keyframes shake {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@keyframes bounce { to { transform: translateY(-10px); } }

@media (max-width: 650px) {
  .hero-card { padding: 28px 17px; }
  .panel { padding: 18px 13px; }
  .game-header { align-items: flex-start; }
  .mini-logo img { width: 115px; }
  .answers { grid-template-columns: 1fr; }
  .shooting-range { min-height: 390px; }
  .mayo-pot { width: 72px; height: 88px; }
  .mayo-pot .lid { width: 60px; height: 14px; }
  .mayo-pot .jar { width: 58px; height: 57px; }
  .mayo-pot .label { width: 47px; font-size: 10px; }
}
