/* ==========================================================================
1. FONTS & GLOBAL POP-ART THEME
   ========================================================================== */
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/Oswald-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lilita One';
  src: url('../fonts/LilitaOne-Regular.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --pop-lime: #B7D200;
  --pop-cyan: #00B8F0;
  --pop-yellow: #FFD600;
  --pop-magenta: #FF0055;
  --pop-black: #000000;
  --pop-white: #FFFFFF;
  --font-main: 'Lilita One', -apple-system, BlinkMacSystemFont, sans-serif;

  --job-bg-top: var(--pop-yellow);
  --job-bg-bottom: var(--pop-cyan);
  --job-content-align: flex-start;
  --job-text-align: left;

  --vh: 1vh;
  --card-w: calc(min(100vw, 430px) - 8px);
  --u: calc(var(--card-w) / 400);
  --hdr-h: calc(var(--card-w) * 0.21);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --ans-h: clamp(70px, calc(13 * var(--vh)), 95px);
  --job-h: var(--ans-h);

  --crown-scale: 1.4;
}

@supports (height: 100dvh) {
  :root { --vh: 1dvh; }
}

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

html, body {
  width: 100%;
  height: 100vh;
  background-color: #121212;
  font-family: var(--font-main);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: stretch;
  -webkit-text-size-adjust: 100%;
}

@supports (height: 100dvh) {
  html, body { height: 100dvh; }
}

.mobile-card {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  max-height: 100vh;
  background-color: var(--pop-lime);
  border: 4px solid var(--pop-black);
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@supports (height: 100dvh) {
  .mobile-card {
    height: 100dvh;
    max-height: 100dvh;
  }
}

@media (min-width: 600px) and (min-height: 600px) {
  :root {
    --card-w: 390px;
    --vh: min(8.1px, 0.9vh);
  }
  html, body { align-items: center; }
  .mobile-card {
    width: 400px;
    max-width: 400px;
    border-radius: 32px;
    border: 5px solid var(--pop-black);
    box-shadow: 8px 8px 0px var(--pop-black);
    height: 820px;
    max-height: 90vh;
  }
}

.screen {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 15px 15px;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  background-color: var(--pop-lime);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }

.screen-yellow { background-color: var(--pop-yellow) !important; }
.screen-win-bg { background-color: var(--pop-magenta) !important; color: var(--pop-white); }
#screen-question { background-color: var(--pop-cyan) !important; }
#screen-select { background-color: var(--pop-yellow) !important; }

.top-header,
.quiz-top-header,
.job-top-header,
#screen-masterclass .masterclass-top-header,
#screen-lose .lose-top-header {
  width: 100%;
  height: var(--hdr-h);
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.top-header-img,
.quiz-top-header-img,
.job-top-header-img,
#screen-masterclass .masterclass-top-header-img,
#screen-lose .lose-top-header-img {
  width: 100%;
  height: auto;
  display: block;
}

.start-content,
.quiz-container,
#screen-job-choice .job-container,
#screen-masterclass .masterclass-container,
#screen-lose .lose-container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 0 !important;
  padding: 8px 15px calc(12px + var(--safe-bottom)) 15px;
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  background-color: transparent;
  overflow: hidden;
}

.start-content > *:not(.decor-element),
.quiz-container > *:not(.quiz-decorations),
#screen-job-choice .job-container > *:not(.quiz-decorations),
#screen-masterclass .masterclass-container > *:not(.quiz-decorations),
#screen-lose .lose-container > *:not(.quiz-decorations) {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   2. ACCUEIL (START SCREEN)
   ========================================================================== */
#screen-start {
  padding: 0 !important;
  background-color: var(--pop-lime) !important;
  display: flex;
  flex-direction: column;
  position: relative !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

#screen-start .start-content {
  justify-content: space-evenly;
  padding: 6px 20px calc(70px + var(--safe-bottom)) 20px;
  overflow: hidden !important;
}

.header-title-graphic {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 1;
  min-height: 0;
}

.title-img {
  width: auto;
  height: auto;
  max-width: min(300px, 92%);
  max-height: calc(27 * var(--vh));
  display: block;
}

.start-subtext {
  color: var(--pop-black);
  font-family: var(--font-main) !important;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.3rem, calc(var(--card-w) * 0.063), 1.7rem);
  text-align: center;
  line-height: 1.1;
  margin: 0 !important;
}

.mascot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 !important;
  min-height: 0;
}

.mascot-img {
  width: auto;
  height: auto;
  max-width: 270px;
  max-height: calc(28 * var(--vh));
}

.btn-lets-go {
  width: 92%;
  font-family: var(--font-main) !important;
  position: relative;
  background-color: #FF0055;
  color: #FFFFFF;
  border: 4px solid #000000;
  border-radius: 40px;
  padding: 14px 20px;
  box-shadow: 2px 2px 0px #000000;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.1s, box-shadow 0.1s;
  flex-shrink: 0;
}

.btn-lets-go::before {
  position: absolute;
  top: -12px;
  right: 18px;
  width: 6px;
  height: 16px;
  background-color: #FF0055;
  border: 2px solid #000000;
  border-radius: 4px;
  transform: rotate(30deg);
  z-index: 2;
}

.btn-lets-go::after {
  position: absolute;
  top: -2px;
  right: -10px;
  width: 6px;
  height: 20px;
  background-color: #FF0055;
  border: 2px solid #000000;
  border-radius: 4px;
  transform: rotate(65deg);
  z-index: 2;
}

.btn-lets-go:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000000 !important;
}

.btn-lets-go span {
  font-size: clamp(2rem, calc(var(--card-w) * 0.085), 2.4rem);
  font-weight: 900;
  letter-spacing: 1px;
  color: #FFFFFF !important;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.btn-lets-go .arrow { margin-left: 8px; }

.decor-element {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  height: auto;
}

.decor-blue-bottom {
  left: 0;
  bottom: 0;
  width: calc(140 * var(--u));
}

.decor-pink-bottom {
  right: 0;
  bottom: 0;
  width: calc(120 * var(--u));
}

#screen-start .start-right-decor {
  position: absolute !important;
  right: 0 !important;
  top: 2% !important;
  transform: none !important;
  width: calc(95 * var(--u)) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* ==========================================================================
   03 - QUIZ SCREEN
   ========================================================================== */
#screen-quiz {
  flex-direction: column;
  width: 100%;
  background-color: #00B4F3 !important;
  padding: 0 !important;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

/* ==========================================================================
   CROWN PROGRESS
   ========================================================================== */
.crowns-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: -6px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.crown-step {
  width: 42px;
  height: 38px;
  background-image: url('../../images/crown-outline.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform-origin: 50% 70%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.crown-step.completed,
.crown-step.active {
  background-image: url('../../images/crown-filled.png');
  transform: scale(var(--crown-scale)) translateY(-2px);
  z-index: 2;
}

.crown-num {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 0.9rem;
  color: #000000;
  line-height: 1;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(2px);
}

.crown-step.completed .crown-num,
.crown-step.active .crown-num {
  transform: translateY(4px) scale(0.9);
}

/* ==========================================================================
   QUESTION TITLE
   ========================================================================== */
.question-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100% !important;
  margin: 2px 0;
  text-align: left !important;
  transform: rotate(-3deg);
  box-sizing: border-box;
  flex-shrink: 0;
}

.question-badge {
  align-self: flex-start;
  margin-left: 0;
  margin-right: auto;
  background-color: #FF0055;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.2rem;
  padding: 4px 14px;
  border: 4px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  display: inline-block;
  text-transform: uppercase;
  margin-bottom: 2px;
  z-index: 2;
  position: relative;
  border-radius: 4px;
}

.question-title {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #FFFFFF !important;
  font-family: var(--font-main);
  font-weight: 900 !important;
  font-size: clamp(30px, calc(var(--card-w) * 0.076), 35px);
  line-height: 1.05;
  padding: 4px 8px;
  max-width: 100%;
  text-transform: none;
  display: inline-block;
  margin-top: -1px !important;
  z-index: 1;
  position: relative;
  text-align: left !important;
  text-shadow:
    -5px -5px 0 #000,
     5px -5px 0 #000,
    -5px  5px 0 #000,
     5px  5px 0 #000,
     0px -6px 0 #000,
     0px  6px 0 #000,
    -6px  0px 0 #000,
     6px  0px 0 #000;
  filter: drop-shadow(0px 4px 0px #000000);
}

.question-title .highlight {
  color: #FFD200 !important;
  white-space: nowrap;
}

.quiz-mascot-container {
  flex-shrink: 1;
  min-height: 0;
  margin-top: 4px;
  margin-bottom: 4px;
  margin-left: calc(75 * var(--u));
  display: flex;
  justify-content: center;
}

.quiz-mascot-img {
  max-height: calc(19 * var(--vh));
  width: auto;
  object-fit: contain;
}

.answers-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  width: 100%;
  z-index: 5;
  position: relative;
  flex-shrink: 0;
}

.answer-card {
  background-color: #FFFFFF;
  border: 3px solid #000000;
  border-radius: 40px;
  padding: 6px 18px 6px 12px;
  display: flex;
  align-items: center;
  box-shadow: 3px 3px 0px #000000;
  cursor: pointer;
  position: relative;
  text-align: left;
  width: 100%;
  max-width: 380px;
  height: var(--ans-h);
  box-sizing: border-box;
  margin: 0 auto;
  flex-shrink: 0 !important;
}

.answer-card.active { background-color: #FFE600; }

.answer-letter {
  width: 46px;
  height: 46px;
  background-color: #FFE600;
  border: 3px solid #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.5rem;
  color: #000000;
  flex-shrink: 0;
  margin-right: 12px;
}

.answer-card.active .answer-letter {
  background-color: #000000;
  color: #FFFFFF;
}

.answer-text {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(1rem, calc(var(--card-w) * 0.058), 1.2rem);
  color: #000000;
  line-height: 1.05;
  text-transform: none;
}

.answer-card.correct {
  background-color: #FFD200 !important;
  border-color: #000000 !important;
  color: #000000 !important;
}

.answer-card.wrong {
  background-color: #FF0055 !important;
  border-color: #000000 !important;
  color: #FFFFFF !important;
}

.valide-badge {
  position: absolute;
  right: 12px;
  bottom: -10px;
  background-color: #FF0055;
  color: #FFFFFF;
  border: 3px solid #000000;
  padding: 2px 6px;
  transform: rotate(-6deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 2px 2px 0px #000000;
  z-index: 7;
}

.valide-text {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 0.8rem;
}

.valide-points {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1rem;
}

/* ==========================================================================
   5. SCREEN DISPLAY CONTROL
   ========================================================================== */
.screen.hidden,
#screen-start.hidden,
#screen-quiz.hidden,
#screen-select.hidden,
#screen-win.hidden,
#screen-lose.hidden,
#screen-job-choice.hidden,
#screen-masterclass.hidden {
  display: none !important;
}

.screen.active { display: flex !important; }

.quiz-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.quiz-decorations img {
  position: absolute;
  height: auto;
  display: block;
  pointer-events: none;
}

.quiz-decorations img[src="images/"] { display: none; }

/* ---------- QUIZ ---------- */
#screen-quiz .quiz-decorations .decor-img:nth-of-type(1) {
  left: 0;
  top: 27%;
  width: calc(100 * var(--u));
}
#screen-quiz .quiz-decorations .decor-img:nth-of-type(2) {
  left: -20px;
  bottom: -20px;
  width: calc(150 * var(--u));
}
#screen-quiz .quiz-decorations .decor-right {
  right: -20px;
  bottom: 0;
  width: calc(150 * var(--u));
}
#screen-quiz .quiz-right-decor {
  right: -5px;
  top: 0;
  width: calc(66 * var(--u));
}

/* ==========================================================================
   JOB CHOICE (MÉTIER) SCREEN
   ========================================================================== */
#screen-job-choice {
  flex-direction: column;
  width: 100%;
  background-color: #FFDE00;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

#screen-job-choice .job-container {
  flex: 1 1 0;
  min-height: 440px;
  padding-bottom: calc(16px + var(--safe-bottom));
}

#screen-job-choice .question-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  margin: 8px 0;
  text-align: left;
  box-sizing: border-box;
  transform: none;
}

#screen-job-choice .question-badge {
  align-self: flex-start;
  margin-left: 10px;
  margin-right: auto;
  background-color: #FF0055;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.2rem;
  padding: 4px 14px;
  border: 4px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  display: inline-block;
  text-transform: uppercase;
  margin-bottom: -4px;
  margin-top: 8px;
  z-index: 2;
  position: relative;
  border-radius: 4px;
  transform: rotate(-5deg);
  width: auto;
}

#screen-job-choice .question-title {
  background: none;
  background-color: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(28px, calc(var(--card-w) * 0.08), 34px);
  line-height: 1.05;
  margin-left: 15px;
  padding: 4px 8px 4px 0;
  max-width: 100%;
  text-transform: none;
  display: inline-block;
  margin-top: 0;
  transform: rotate(-5deg);
  z-index: 1;
  position: relative;
  text-align: left;
  text-shadow:
    -5px -5px 0 #000,
     5px -5px 0 #000,
    -5px  5px 0 #000,
     5px  5px 0 #000,
     0px -6px 0 #000,
     0px  6px 0 #000,
    -6px  0px 0 #000,
     6px  0px 0 #000;
  filter: drop-shadow(0px 4px 0px #000000);
}

#screen-job-choice .highlight-pink {
  color: #FF0055;
  white-space: nowrap;
}

#screen-job-choice .job-subtitle-mascot-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-top: 2px !important;
  margin-bottom: 10px !important;
  box-sizing: border-box !important;
  padding-right: 10px !important;
  flex-shrink: 0;
}

#screen-job-choice .question-sub-title {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(1.25rem, calc(var(--card-w) * 0.06), 1.6rem);
  color: #000000;
  margin: 10px !important;
  text-transform: none !important;
  text-align: left;
  line-height: 1.05;
  flex: 1;
  max-width: calc(175 * var(--u));
  transform-origin: left center;
}

#screen-job-choice .job-inline-mascot {
  width: calc(180 * var(--u)) !important;
  flex-shrink: 0 !important;
  margin-left: calc(-25 * var(--u)) !important;
  margin-top: calc(-55 * var(--u)) !important;
  margin-bottom: calc(-10 * var(--u)) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#screen-job-choice .job-inline-mascot .mascot-img {
  width: 100% !important;
  max-width: none;
  max-height: calc(24 * var(--vh));
  object-fit: contain;
  height: auto !important;
  display: block !important;
}

#screen-job-choice .job-card {
  background-color: #FFFFFF;
  border: 3px solid #000000;
  border-radius: 40px;
  padding: 6px 22px;
  display: flex;
  align-items: center;
  box-shadow: 3px 3px 0px #000000;
  cursor: pointer;
  position: relative;
  text-align: left;
  width: 100%;
  max-width: 380px;
  height: var(--job-h);
  box-sizing: border-box;
  margin: 0 auto;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(1.2rem, calc(var(--card-w) * 0.058), 1.6rem);
  color: #000000;
  line-height: 1.05;
  text-transform: none;
  flex-shrink: 0 !important;
}

#screen-job-choice .job-card:active {
  background-color: #FFE600;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000000;
}

#screen-job-choice .answers-container {
  flex: 1 1 0 !important;
  min-height: calc(var(--job-h) * 2.4) !important;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 2px 6px 28px 2px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: #000000 transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent 100%);
}

#screen-job-choice .answers-container::-webkit-scrollbar { width: 5px; }
#screen-job-choice .answers-container::-webkit-scrollbar-track { background: transparent; }
#screen-job-choice .answers-container::-webkit-scrollbar-thumb {
  background-color: #000000;
  border-radius: 3px;
}

#screen-job-choice .quiz-decorations .decor-img:nth-of-type(2) {
  left: -20px;
  bottom: -20px;
  width: calc(150 * var(--u));
}
#screen-job-choice .quiz-decorations .decor-right {
  right: -20px;
  bottom: 0;
  width: calc(150 * var(--u));
}
#screen-job-choice .quiz-right-decor {
  right: -5px;
  top: 0;
  width: calc(62 * var(--u));
}

/* ==========================================================================
   MASTERCLASS / SUCCESS SCREEN
   ========================================================================== */
#screen-masterclass {
  flex-direction: column;
  width: 100%;
  background-color: #FF0055;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

#screen-masterclass .masterclass-container {
  padding-bottom: calc(24px + var(--safe-bottom));
}

#screen-masterclass .masterclass-header-img-box,
#screen-masterclass .masterclass-bottom-img-box {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 2px 0;
  box-sizing: border-box;
}

#screen-masterclass .masterclass-title-img,
#screen-masterclass .masterclass-bottom-img {
  max-width: 85%;
  height: auto;
  display: block;
}

#screen-masterclass .masterclass-mascot-container {
  width: min(370px, 100%);
  margin: 2px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

#screen-masterclass .masterclass-mascot-container .masterclass-mascot-img {
  width: auto;
  max-width: 100%;
  max-height: calc(44 * var(--vh));
  object-fit: contain;
  height: auto;
  display: block;
}

#screen-masterclass .masterclass-instruction {
  color: var(--pop-black);
  font-family: var(--font-main) !important;
  font-weight: 900;
  text-transform: none;
  font-size: clamp(1.1rem, calc(var(--card-w) * 0.05), 1.4rem);
  text-align: center;
  line-height: 1.1;
  margin-top: 8px !important;
  margin-bottom: 0;
}

#screen-masterclass .question-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  margin: 4px 0 8px 0;
  text-align: left;
  box-sizing: border-box;
  position: relative;
}

#screen-masterclass .question-badge {
  background-color: #00a2ff;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.6rem;
  padding: 4px 35px;
  border: 4px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  display: inline-block;
  text-transform: uppercase;
  transform: rotate(-10deg);
  margin-bottom: 2px;
  margin-top: 8px;
  border-radius: 4px;
  z-index: 2;
}

#screen-masterclass .question-header .masterclass-mascot-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  margin-top: -25px;
}

#screen-masterclass .quiz-decorations .decor-left {
  left: -15px;
  bottom: 0;
  width: calc(140 * var(--u));
}
#screen-masterclass .quiz-decorations .decor-right {
  right: -10px;
  bottom: 0;
  width: calc(150 * var(--u));
}
#screen-masterclass .quiz-right-decor {
  right: 0;
  top: 0;
  width: calc(70 * var(--u));
}

/* ==========================================================================
   LOSE / DOMMAGE SCREEN
   ========================================================================== */
#screen-lose {
  flex-direction: column;
  width: 100%;
  background-color: #FFDE00;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

#screen-lose .lose-container {
  padding-bottom: calc(30px + var(--safe-bottom));
}

#screen-lose .crowns-progress {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  width: 100%;
}

#screen-lose .question-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  text-align: left;
  transform: rotate(-3deg);
  box-sizing: border-box;
  position: relative;
}

#screen-lose .question-badge {
  background-color: #00a2ff;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.6rem;
  padding: 4px 35px;
  border: 4px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  display: inline-block;
  text-transform: uppercase;
  transform: rotate(-10deg);
  margin-bottom: 2px;
  margin-top: 15px;
  border-radius: 4px;
  z-index: 2;
}

#screen-lose .question-header .lose-mascot-img {
  width: 100%;
  max-width: 210px;
  height: auto;
  display: block;
  margin-top: -22px;
}

#screen-lose .lose-mascot-box {
  width: 130px;
  margin: 4px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#screen-lose .lose-mascot-img {
  width: 100%;
  height: auto;
  display: block;
}

#screen-lose .lose-bottom-img-box {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
}

#screen-lose .lose-bottom-img {
  width: auto;
  max-width: 100%;
  max-height: calc(40 * var(--vh));
  object-fit: contain;
  height: auto;
  display: block;
}

#screen-lose .lose-btn-container {
  width: 100%;
  max-width: 300px;
  margin-top: 12px;
  z-index: 10;
  display: flex;
  justify-content: center;
}

#screen-lose .pink-action-btn {
  width: 96% !important;
  font-family: var(--font-main) !important;
  position: relative !important;
  background-color: #FF0055 !important;
  color: #FFFFFF !important;
  border: 4px solid #000000 !important;
  border-radius: 40px !important;
  padding: 16px 20px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: 2px 2px 0px #000000 !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  box-sizing: border-box !important;
  transition: transform 0.1s, box-shadow 0.1s !important;
  height: auto !important;
  min-height: unset !important;
}

#screen-lose .pink-action-btn::before {
  position: absolute !important;
  top: -12px !important;
  right: 18px !important;
  width: 6px !important;
  height: 16px !important;
  background-color: #FF0055 !important;
  border: 2px solid #000000 !important;
  border-radius: 4px !important;
  transform: rotate(30deg) !important;
  z-index: 2 !important;
}

#screen-lose .pink-action-btn::after {
  position: absolute !important;
  top: -2px !important;
  right: -10px !important;
  width: 6px !important;
  height: 20px !important;
  background-color: #FF0055 !important;
  border: 2px solid #000000 !important;
  border-radius: 4px !important;
  transform: rotate(65deg) !important;
  z-index: 2 !important;
}

#screen-lose .pink-action-btn:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0px #000000 !important;
}

#screen-lose .pink-action-btn span,
#screen-lose .pink-action-btn {
  font-size: clamp(1.7rem, calc(var(--card-w) * 0.075), 2.1rem) !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  color: #FFFFFF !important;
  line-height: 1 !important;
}

.pink-action-btn .arrow { margin-left: 8px; }

#screen-lose .quiz-decorations .decor-right:nth-of-type(1) {
  right: 0;
  top: 30px;
  width: calc(100 * var(--u));
}
#screen-lose .quiz-decorations .decor-right:nth-of-type(2) {
  right: 0;
  bottom: 0;
  width: calc(130 * var(--u));
}
#screen-lose .quiz-left-decor {
  left: -10px;
  bottom: -5px;
  width: calc(150 * var(--u));
}

@media (max-height: 600px) {
  .crown-step { width: 36px; height: 33px; }
  .crowns-progress { margin-bottom: 6px; gap: 12px; }
  .question-badge { font-size: 1rem; }
  .btn-lets-go { padding: 10px 20px; }
  #screen-lose .pink-action-btn { padding: 12px 20px !important; }
  .answers-container { gap: 8px; }
  #screen-start .start-content { padding-bottom: calc(56px + var(--safe-bottom)); }
}

@media (max-width: 360px) {
  .answer-letter { width: 40px; height: 40px; font-size: 1.5rem; margin-right: 10px; }
  #screen-job-choice .job-card { padding: 6px 16px; }
}

#screen-quiz .quiz-mascot-container {
  align-self: flex-end;
  margin: 0 8% 4px 0;
  position: relative;
  z-index: 1;
}
#screen-quiz .quiz-mascot-img[src*="question3"] {
  margin-bottom: calc(-3 * var(--vh));
  max-height: calc(14.5 * var(--vh));
}
#screen-quiz .answers-container {
  position: relative;
  z-index: 3;
}

#screen-quiz .answer-card {
  --letter: calc(var(--ans-h) * 0.56);
  height: auto;
  min-height: var(--ans-h);
  padding: 6px 18px 6px 12px;
}

#screen-quiz .answer-letter {
  width: var(--letter);
  height: var(--letter);
  background-color: #FFE600;
  border: none;
  margin-right: 14px;
  font-size: calc(var(--letter) * 1.05);
  line-height: 1;
  color: #000000;
  flex-shrink: 0;
}

#screen-quiz .answer-card.active .answer-letter,
#screen-quiz .answer-card.correct .answer-letter {
  background-color: #000000;
  color: #FFFFFF;
}

#screen-quiz .answer-text {
  text-transform: none;
  font-size: clamp(1.2rem, calc(var(--card-w) * 0.066), 1.6rem);
  line-height: 1.02;
}

.answer-card.correct {
  background-color: #FFE600 !important;
  border-color: #000000 !important;
  color: #000000 !important;
}

.valide-badge {
  position: absolute;
  top: 50%;
  bottom: auto;
  right: calc(12 * var(--u));
  width: calc(92 * var(--u));
  height: calc(92 * var(--u));
  transform: translateY(-50%);
  display: block;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  z-index: 7;
  pointer-events: none;
}

.valide-badge::before {
  content: "";
  position: absolute;
  top: 0;
  right: calc(2 * var(--u));
  width: calc(50 * var(--u));
  height: calc(44 * var(--u));
  transform: rotate(8deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 54'%3E%3Cpath d='M6 42 L6 15 L20 27 L30 5 L40 27 L54 15 L54 42 Z' fill='%23FFE600' stroke='%23000' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M6 42 H54 V50 L50 46 L46 50 L42 46 L38 50 L34 46 L30 50 L26 46 L22 50 L18 46 L14 50 L10 46 L6 50 Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}

.valide-text {
  position: absolute;
  left: 0;
  top: calc(32 * var(--u));
  display: block;
  background: #000000;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-weight: 900;
  font-style: italic;
  font-size: calc(24 * var(--u));
  line-height: 1.1;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-transform: uppercase;
  padding: calc(4 * var(--u)) calc(8 * var(--u));
  transform: rotate(-10deg);
}

.valide-points {
  position: absolute;
  right: calc(2 * var(--u));
  bottom: calc(2 * var(--u));
  display: block;
  background: #FF0055;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: calc(26 * var(--u));
  line-height: 1;
  padding: calc(3 * var(--u)) calc(10 * var(--u));
  border: 2px solid #000000;
  transform: rotate(-6deg);
}

#screen-job-choice .answer-text {
  font-size: clamp(1.2rem, calc(var(--card-w) * 0.066), 1.6rem);
  line-height: 1.02;
  padding-right: calc(70 * var(--u));
}

#screen-masterclass .crowns-progress {
  margin-bottom: 4px;
}
#screen-masterclass .question-header {
  margin: 0 0 4px 0;
}
#screen-masterclass .question-badge {
  margin-top: 4px;
}
#screen-masterclass .question-header .masterclass-mascot-img {
  max-width: 310px;
  margin-top: -30px;
}

#screen-masterclass .masterclass-instruction {
  text-wrap: balance;
  max-width: 92%;
}

#screen-masterclass .question-header .masterclass-mascot-img {
  max-width: 275px;
}
#screen-masterclass .question-badge {
  top: calc(26 * var(--u));
}

#screen-masterclass .question-badge {
  top: calc(8 * var(--u));
}

/* ==========================================================================
   MASCOT ANIMATIONS
   ========================================================================== */
:root {
  --float-amp: -5px;
  --float-time: 3.6s;
}

@keyframes mascot-pop {
  0%   { scale: 0.3; opacity: 0; }
  60%  { scale: 1.08; opacity: 1; }
  100% { scale: 1; opacity: 1; }
}
@keyframes mascot-float {
  0%, 100% { translate: 0 0;               rotate: -1.2deg; }
  50%      { translate: 0 var(--float-amp); rotate: 1.2deg; }
}
@keyframes mascot-jump {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  25%      { transform: translateY(-18px) scale(0.96, 1.06); }
  55%      { transform: translateY(0) scale(1.06, 0.94); }
  75%      { transform: translateY(-5px) scale(1, 1); }
}
@keyframes mascot-shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-7px) rotate(-3deg); }
  40% { transform: translateX(6px) rotate(3deg); }
  60% { transform: translateX(-4px) rotate(-2deg); }
  80% { transform: translateX(3px) rotate(1deg); }
}
@keyframes crown-pop {
  0%   { scale: 0; }
  70%  { scale: 1.35; }
  100% { scale: 1; }
}
@keyframes confetti-fall {
  0%   { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--drift, 0px), 110vh, 0) rotate(var(--spin, 540deg)); opacity: 0.9; }
}

#screen-start.active .mascot-img,
#screen-job-choice.active .job-inline-mascot .mascot-img,
.quiz-mascot-img.mascot-pop {
  transform-origin: 50% 90%;
  animation:
    mascot-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    mascot-float var(--float-time) ease-in-out 0.6s infinite;
}
.quiz-mascot-img.mascot-pop[src*="question3"] {
  --float-amp: -2px;
}

#screen-quiz .quiz-mascot-container.react-happy { animation: mascot-jump 0.65s ease-out; }
#screen-quiz .quiz-mascot-container.react-wrong { animation: mascot-shake 0.55s ease-in-out; }

#screen-masterclass.active .crown-step { animation: crown-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
#screen-masterclass.active .crown-step:nth-child(1) { animation-delay: 0.1s; }
#screen-masterclass.active .crown-step:nth-child(2) { animation-delay: 0.3s; }
#screen-masterclass.active .crown-step:nth-child(3) { animation-delay: 0.5s; }
#screen-masterclass.active .crown-step:nth-child(4) { animation-delay: 0.7s; }

.confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
}
.confetti-piece {
  position: absolute;
  top: 0;
  width: 10px;
  height: 14px;
  border: 2px solid #000;
  border-radius: 3px;
  will-change: transform;
  animation: confetti-fall var(--dur, 3s) linear var(--delay, 0s) forwards;
}
.confetti-piece.round { border-radius: 50%; width: 12px; height: 12px; }

@media (prefers-reduced-motion: reduce) {
  #screen-start.active .mascot-img,
  #screen-job-choice.active .job-inline-mascot .mascot-img,
  .quiz-mascot-img.mascot-pop,
  #screen-quiz .quiz-mascot-container.react-happy,
  #screen-quiz .quiz-mascot-container.react-wrong,
  #screen-masterclass.active .crown-step {
    animation: none !important;
  }
  .confetti-layer { display: none; }
}

:root {
  --final-overlap: calc(2.5 * var(--vh));
}

@keyframes mascot-celebrate {
  0%, 100% { translate: 0 0;      scale: 1 1; }
  15%      { translate: 0 0;      scale: 1.06 0.94; }
  40%      { translate: 0 -16px;  scale: 0.97 1.05; }
  65%      { translate: 0 0;      scale: 1.05 0.95; }
  80%      { translate: 0 -4px;   scale: 1 1; }
}
@keyframes mascot-drop {
  0%   { translate: 0 -30px; scale: 0.9; opacity: 0; }
  70%  { translate: 0 4px;   scale: 1;   opacity: 1; }
  100% { translate: 0 0;     scale: 1;   opacity: 1; }
}
@keyframes mascot-sad-shake {
  0%, 100% { rotate: 0deg; }
  20% { rotate: -5deg; }
  40% { rotate: 4deg; }
  60% { rotate: -3deg; }
  80% { rotate: 2deg; }
}
@keyframes mascot-sad-sway {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 3px; }
}

.final-text-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 94%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--final-overlap));
}

#screen-masterclass .masterclass-mascot-container {
  flex-direction: column;
  align-items: center;
}
#screen-masterclass .masterclass-mascot-container .masterclass-mascot-img {
  max-height: calc(30 * var(--vh));
  position: relative;
  z-index: 1;
}
#screen-masterclass .final-text-img {
  max-height: calc(19 * var(--vh));
}
#screen-masterclass.active .masterclass-mascot-container .masterclass-mascot-img {
  transform-origin: 50% 90%;
  animation:
    mascot-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both,
    mascot-celebrate 1.5s ease-in-out 0.9s infinite;
}

#screen-lose .lose-bottom-img-box {
  flex-direction: column;
  align-items: center;
}
#screen-lose .lose-bottom-img {
  max-height: calc(26 * var(--vh));
  position: relative;
  z-index: 1;
}
#screen-lose .final-text-img {
  max-height: calc(18 * var(--vh));
}
#screen-lose.active .lose-bottom-img {
  transform-origin: 50% 90%;
  animation:
    mascot-drop 0.6s cubic-bezier(0.34, 1.3, 0.64, 1) both,
    mascot-sad-shake 0.7s ease-in-out 0.7s 1,
    mascot-sad-sway 3.4s ease-in-out 1.4s infinite;
}

@media (prefers-reduced-motion: reduce) {
  #screen-masterclass.active .masterclass-mascot-container .masterclass-mascot-img,
  #screen-lose.active .lose-bottom-img {
    animation: none !important;
  }
}

@keyframes crown-earn {
  0%   { scale: 0.7;  rotate: 0deg;   filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  35%  { scale: 1.35; rotate: -10deg; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.95)); }
  60%  { scale: 0.95; rotate: 6deg;   filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6)); }
  80%  { scale: 1.08; rotate: -3deg;  filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  100% { scale: 1;    rotate: 0deg;   filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
}
.crown-step.crown-just-earned {
  animation: crown-earn 0.8s cubic-bezier(0.34, 1.4, 0.64, 1);
  z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  .crown-step.crown-just-earned { animation: none; }
}

#screen-masterclass .masterclass-mascot-container .masterclass-mascot-img {
  max-height: calc(24 * var(--vh));
}
#screen-masterclass .final-text-img {
  max-height: calc(15 * var(--vh));
  max-width: 88%;
}

.stand-btn-container {
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.stand-validate-btn {
  width: 92%;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(2rem, calc(var(--card-w) * 0.085), 2.4rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  color: #000000;
  background-color: #FFE600;
  border: 4px solid #000000;
  border-radius: 40px;
  height: var(--big-btn-h);
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 0 #000000;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s, box-shadow 0.1s;
}
.stand-validate-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000000;
}

#screen-masterclass .masterclass-instruction {
  margin-top: 4px !important;
}
.stand-validate-btn .arrow { margin-left: 8px; }
.stand-validate-btn.is-validated {
  background-color: #B7D200;
}
.stand-validate-btn.is-replay {
  background-color: #00B8F0;
  color: #FFFFFF;
}

:root {
  --big-btn-h: clamp(64px, calc(9 * var(--vh)), 76px);
}
.btn-lets-go,
#screen-lose .pink-action-btn,
.stand-validate-btn {
  height: var(--big-btn-h) !important;
  min-height: var(--big-btn-h) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

#screen-job-choice .job-scroll-hint {
  position: relative;
  z-index: 12;
  align-self: center;
  margin-top: -22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #FF0055;
  color: #FFFFFF;
  border: 3px solid #000000;
  border-radius: 30px;
  box-shadow: 2px 2px 0 #000000;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(0.9rem, calc(var(--card-w) * 0.042), 1.1rem);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-3deg);
  pointer-events: none;
  flex-shrink: 0;
  transition: opacity 0.3s, scale 0.3s;
}
#screen-job-choice .job-scroll-hint-arrow {
  display: inline-block;
  font-size: 1.3em;
  line-height: 1;
  animation: hint-bounce 0.9s ease-in-out infinite;
}
#screen-job-choice .job-scroll-hint.is-hidden {
  opacity: 0;
  scale: 0.6;
}

@keyframes hint-bounce {
  0%, 100% { translate: 0 -2px; }
  50%      { translate: 0 4px; }
}

#screen-job-choice .job-inline-mascot {
  position: relative;
}
#screen-job-choice .job-bubble {
  position: absolute;
  top: 38%;
  right: 62%;
  z-index: 15;
  padding: 6px 12px;
  background: #FFFFFF;
  color: #000000;
  border: 3px solid #000000;
  border-radius: 18px;
  box-shadow: 2px 2px 0 #000000;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(1rem, calc(var(--card-w) * 0.05), 1.3rem);
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-6deg);
  opacity: 0;
  scale: 0;
  pointer-events: none;
}
#screen-job-choice .job-bubble::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-right: 3px solid #000000;
  border-bottom: 3px solid #000000;
  transform: rotate(-45deg);
}
#screen-job-choice .job-bubble.is-visible {
  animation: bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bubble-pop {
  0%   { opacity: 0; scale: 0; }
  100% { opacity: 1; scale: 1; }
}

#screen-job-choice .job-inline-mascot.react-happy {
  animation: mascot-jump 0.65s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  #screen-job-choice .job-scroll-hint-arrow,
  #screen-job-choice .job-inline-mascot.react-happy {
    animation: none;
  }
  #screen-job-choice .job-bubble.is-visible {
    animation: none;
    opacity: 1;
    scale: 1;
  }
}

/* ==========================================================================
   TON POPCORN EST DÉBLOQUÉ / BLOQUÉ !
   ========================================================================== */
:root {
  --font-title: 'Oswald', 'Arial Narrow', sans-serif;
}

.title-img-replaced { display: none !important; }

.pop-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  transform: rotate(-6deg);
  position: relative;
  z-index: 2;
  white-space: nowrap;
}
.pop-line {
  display: inline-block;
  background: #000000;
  padding: 0.04em 0.16em 0.08em;
  box-shadow: 0.07em 0.07em 0 #000000;
}
.pop-line + .pop-line {
  margin-top: -0.04em;
  margin-left: 0.3em;
}
.pop-title .c-lime { color: #B7D200; }
.pop-title .c-pink { color: #FF0055; }

.pop-title-main {
  font-size: clamp(44px, calc(var(--card-w) * 0.125), 54px);
  margin-top: -4px;
  margin-left: 4px;
}

.pop-title-popcorn {
  font-size: clamp(36px, calc(var(--card-w) * 0.105), 46px);
  align-self: center;
  align-items: center;
  margin-top: calc(-1 * var(--final-overlap, 0px));
  margin-bottom: 6px;
}
.pop-title-popcorn .pop-line + .pop-line { margin-left: 0.5em; }

#screen-masterclass .question-badge,
#screen-lose .question-badge {
  transform: rotate(-6deg) !important;
  margin-left: 4px;
}

#screen-masterclass .masterclass-instruction {
  font-size: clamp(1.3rem, calc(var(--card-w) * 0.062), 1.6rem) !important;
  line-height: 1.15;
  margin-top: 14px !important;
}

.stand-validate-btn {
  font-size: clamp(1.6rem, calc(var(--card-w) * 0.07), 1.95rem);
  letter-spacing: 0;
}

.question-title,
#screen-job-choice .question-title {
  line-height: 0.98 !important;
}
.answer-text,
#screen-quiz .answer-text,
#screen-job-choice .answer-text {
  line-height: 0.95 !important;
}
#screen-masterclass .masterclass-instruction {
  line-height: 1.02 !important;            /* "Montre cet écran…" */
}

#screen-masterclass .question-header,
#screen-lose .question-header {
  transform: none !important;
  margin: 4px 0 8px 0 !important;
  align-items: flex-start !important;
}
#screen-masterclass .question-badge,
#screen-lose .question-badge {
  position: relative;
  top: 0 !important;
  margin: 6px 0 -4px 10px !important;
  z-index: 3;
}

#screen-lose .lose-btn-container {
  margin-top: 28px !important;
}

#screen-job-choice .question-sub-title {
  line-height: 0.95 !important;
}

.crown-num,
.crown-step.completed .crown-num,
.crown-step.active .crown-num {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  transform: translateY(-50%) !important;
  display: block;
  text-align: center;
  line-height: 1;
}

.pop-title-popcorn {
  align-items: flex-start !important;
}
.pop-title-popcorn .pop-line + .pop-line {
  margin-left: 0 !important;
}

#screen-quiz .answer-letter {
  font-size: calc(var(--letter) * 0.72) !important;
  padding-top: 2px;
}

.crown-step.completed .crown-num,
.crown-step.active .crown-num {
  top: 70%;
  font-size: 0.78rem;
}

.answer-text,
#screen-quiz .answer-text,
#screen-job-choice .answer-text {
  font-family: 'Fredoka', var(--font-main) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

#screen-quiz .quiz-mascot-img {
  max-height: calc(14 * var(--vh));
}
#screen-quiz .answers-container {
  gap: 7px;
}
#screen-quiz .answer-card {
  min-height: calc(var(--ans-h) * 0.88);
  padding-top: 5px;
  padding-bottom: 5px;
}

.pop-title-main {
  font-size: clamp(38px, calc(var(--card-w) * 0.11), 48px) !important;
}

#screen-masterclass .masterclass-instruction {
  max-width: 100% !important;
  font-size: clamp(1.15rem, calc(var(--card-w) * 0.054), 1.4rem) !important;
  text-wrap: pretty;
}

#screen-lose .lose-instruction {
  color: #000000;
  font-family: var(--font-main);
  font-weight: 900;
  text-transform: none;
  font-size: clamp(1.15rem, calc(var(--card-w) * 0.054), 1.4rem);
  line-height: 1.02;
  text-align: center;
  text-wrap: pretty;
  max-width: 100%;
  margin: 10px 0 0 0;
  position: relative;
  z-index: 2;
}

#screen-lose .lose-btn-container {
  margin-top: 14px !important;
}

#screen-job-choice .question-badge {
  margin-bottom: 8px !important;
  transform: rotate(-3deg) !important;
}

#screen-quiz .answer-text {
  font-size: clamp(1.05rem, calc(var(--card-w) * 0.054), 1.35rem) !important;
  line-height: 1.05 !important;
  text-wrap: pretty;
}
#screen-quiz .answer-card {
  padding-right: 14px;
}
#screen-quiz .answer-letter {
  margin-right: 12px;
}

#screen-masterclass .masterclass-instruction {
  font-size: clamp(1.25rem, calc(var(--card-w) * 0.06), 1.55rem) !important;
}

#screen-masterclass .stand-btn-container {
  margin-top: 26px !important;
}

#screen-masterclass .masterclass-instruction,
#screen-lose .lose-instruction {
  text-transform: uppercase !important;
  line-height: 1.1 !important;
  font-size: clamp(1.05rem, calc(var(--card-w) * 0.05), 1.3rem) !important;
  max-width: 100% !important;
  text-wrap: balance;
}

#screen-masterclass .pop-line,
#screen-lose .pop-line {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  -webkit-text-stroke: 14px #000000;
  paint-order: stroke fill;
  text-shadow: 4px 5px 0 #000000;
}
#screen-masterclass .pop-line + .pop-line,
#screen-lose .pop-line + .pop-line {
  margin-top: 0.32em !important;
}

#screen-masterclass .pop-title-main .c-lime { color: #B7D200 !important; }
#screen-lose .pop-title-main .c-pink { color: #FF0055 !important; }

#screen-masterclass .pop-title-popcorn .pop-line,
#screen-lose .pop-title-popcorn .pop-line { color: #FFFFFF !important; }
#screen-masterclass .pop-title-popcorn .c-lime,
#screen-lose .pop-title-popcorn .c-pink { color: #4FB3EA !important; }

#screen-masterclass .question-badge,
#screen-lose .question-badge {
  font-family: var(--font-title) !important;
  font-weight: 700 !important;
  font-size: clamp(2.2rem, calc(var(--card-w) * 0.12), 2.9rem) !important;
  line-height: 1 !important;
  padding: 2px 38px 4px !important;
  background: #4FB3EA !important;
  color: #FFFFFF !important;
  border: 5px solid #000000 !important;
  box-shadow: 4px 4px 0 #000000 !important;
  border-radius: 0 !important;
  margin-bottom: 10px !important;
}

#screen-lose .pop-title-main .pop-line,
#screen-lose .pop-title-main .c-pink { color: #FF0055 !important; }

#screen-masterclass .masterclass-instruction,
#screen-lose .lose-instruction {
  text-transform: none !important;
  font-size: clamp(1.1rem, calc(var(--card-w) * 0.052), 1.3rem) !important;
  line-height: 1.05 !important;
  margin-top: 18px !important;
}

#screen-start .start-subtext {
  margin: 14px 0 10px 0 !important;
}
#screen-start .start-right-decor {
  width: calc(60 * var(--u)) !important;
  top: 8% !important;
}

#screen-masterclass .question-badge,
#screen-lose .question-badge {
  font-size: clamp(1.8rem, calc(var(--card-w) * 0.095), 2.3rem) !important;
  padding: 1px 28px 3px !important;
  border-width: 4px !important;
}

#screen-lose .quiz-decorations .decor-right:nth-of-type(1) {
  top: -15px !important;
}

#screen-job-choice .answer-text {
  font-size: clamp(1.05rem, calc(var(--card-w) * 0.054), 1.35rem) !important;
  line-height: 1.05 !important;
  text-wrap: pretty;
}

#screen-masterclass .question-badge,
#screen-lose .question-badge {
  margin-top: 14px !important;
  margin-bottom: 6px !important;
}

#screen-job-choice .job-card,
#screen-job-choice .answer-card {
  height: auto !important;
  min-height: calc(var(--job-h) * 0.76) !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

#screen-quiz .question-title {
  font-size: clamp(30px, calc(var(--card-w) * 0.08), 36px) !important;
  text-shadow:
    -4.2px -4.2px 0 #000,
     4.2px -4.2px 0 #000,
    -4.2px  4.2px 0 #000,
     4.2px  4.2px 0 #000,
     0px -5px 0 #000,
     0px  5px 0 #000,
    -5px  0px 0 #000,
     5px  0px 0 #000 !important;
  filter: drop-shadow(0px 3px 0px #000000) !important;
  line-height: 0.9 !important;
}

#screen-lose .quiz-decorations .decor-right:nth-of-type(1) {
  width: calc(65 * var(--u)) !important;
}

#screen-quiz .question-title .highlight,
.question-title .highlight {
  white-space: normal !important;
}
#screen-quiz .question-title {
  overflow-wrap: break-word;
  max-width: 100% !important;
}

#screen-masterclass .pop-title-popcorn .pop-line,
#screen-lose .pop-title-popcorn .pop-line { position: relative; }
#screen-masterclass .pop-title-popcorn .pop-line:first-child,
#screen-lose .pop-title-popcorn .pop-line:first-child { z-index: 2; }

/* ==========================================================================
   MASTERCLASS !, PAS DE CHANCE !, TON POPCORN EST (DÉ)BLOQUÉ !
   ========================================================================== */
#screen-masterclass .pop-title,
#screen-lose .pop-title {
  font-family: var(--font-main) !important;   /* Lilita One */
  font-weight: 400 !important;
  letter-spacing: 0.5px;
}

#screen-masterclass .pop-title-main,
#screen-lose .pop-title-main {
  font-size: clamp(41px, calc(var(--card-w) * 0.12), 52px) !important;
}
#screen-masterclass .pop-title-popcorn,
#screen-lose .pop-title-popcorn {
  font-size: clamp(39px, calc(var(--card-w) * 0.113), 50px) !important;
}
#screen-masterclass .pop-line + .pop-line,
#screen-lose .pop-line + .pop-line {
  margin-top: 0.12em !important;
}
#screen-masterclass .stand-validate-btn,
#retry-btn,
#retry-btn span {
  font-family: var(--font-title) !important;   /* Oswald */
  font-weight: 700 !important;
}

.btn-lets-go,
.btn-lets-go span {
  font-family: var(--font-title) !important;   /* Oswald */
  font-weight: 700 !important;
}

#screen-masterclass .quiz-right-decor {
  top: 40px !important;
}

#screen-quiz .quiz-mascot-container {
  z-index: 1 !important;
  pointer-events: none;
}
#screen-quiz .quiz-mascot-img,
#screen-quiz .quiz-mascot-img[src*="question3"] {
  max-height: calc(21 * var(--vh)) !important;
  margin-top: calc(-3 * var(--vh));
  margin-bottom: calc(-5 * var(--vh)) !important;
}
#screen-quiz .answers-container { position: relative; z-index: 5 !important; }

#screen-start .title-img {
  max-width: min(360px, 96%) !important;
  max-height: calc(33 * var(--vh)) !important;
}

#screen-quiz .quiz-mascot-container {
  flex: 1 1 0 !important;
  min-height: calc(13 * var(--vh)) !important;
  align-self: stretch !important;
  margin: 0 !important;
  position: relative !important;
}
#screen-quiz .quiz-mascot-img,
#screen-quiz .quiz-mascot-img[src*="question3"] {
  position: absolute !important;
  right: 10%;
  bottom: calc(-4 * var(--vh));
  height: calc(100% + 4 * var(--vh)) !important;
  max-height: calc(28 * var(--vh)) !important;
  width: auto !important;
  max-width: 70%;
  margin: 0 !important;
  object-fit: contain;
  object-position: bottom right;
}

#screen-masterclass .pop-title-main,
#screen-lose .pop-title-main {
  font-size: clamp(36px, calc(var(--card-w) * 0.104), 45px) !important;
}
#screen-masterclass .pop-title-popcorn,
#screen-lose .pop-title-popcorn {
  font-size: clamp(35px, calc(var(--card-w) * 0.1), 44px) !important;
}
#screen-masterclass .masterclass-mascot-container .masterclass-mascot-img {
  max-height: calc(26 * var(--vh)) !important;
  margin-bottom: calc(-3 * var(--vh));
}

#screen-masterclass .question-badge,
#screen-lose .question-badge {
  font-size: clamp(1.5rem, calc(var(--card-w) * 0.078), 1.9rem) !important;
  padding: 0 22px 2px !important;
}

#screen-quiz .quiz-mascot-img[src*="question3"] {
  max-height: calc(22 * var(--vh)) !important;
}

#screen-start { overflow-y: hidden !important; }
#screen-start .start-content {
  flex: 1 1 0 !important;
  min-height: 0 !important;
}
#screen-start .header-title-graphic,
#screen-start .mascot-container {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
#screen-start .header-title-graphic { flex-grow: 1.25 !important; }
#screen-start .title-img,
#screen-start .mascot-img {
  height: 100% !important;
  width: auto !important;
  object-fit: contain;
}
#screen-start .title-img  { max-height: calc(33 * var(--vh)) !important; }
#screen-start .mascot-img { max-height: calc(28 * var(--vh)) !important; }
#screen-start .start-subtext,
#screen-start .btn-lets-go { flex-shrink: 0 !important; }
#screen-start .btn-lets-go { margin-top: 8px !important; }

#screen-quiz .question-title {
  text-shadow: none !important;
  -webkit-text-stroke: 10px #000000;
  paint-order: stroke fill;
  filter: drop-shadow(3px 4px 0 #000000) !important;
}
#screen-quiz .question-title .highlight {
  -webkit-text-stroke: 10px #000000;
  paint-order: stroke fill;
}

#screen-job-choice .question-title,
#screen-job-choice .question-title .highlight {
  text-shadow: none !important;
  -webkit-text-stroke: 10px #000000;
  paint-order: stroke fill;
}
#screen-job-choice .question-title {
  filter: drop-shadow(3px 4px 0 #000000) !important;
}

.crowns-progress {
  margin-top: 8px !important;
}

#screen-start .start-content {
  padding-bottom: calc(28px + var(--safe-bottom)) !important;
}
#screen-start .title-img  { max-height: calc(37 * var(--vh)) !important; max-width: min(380px, 98%) !important; }
#screen-start .mascot-img { max-height: calc(31 * var(--vh)) !important; }

#screen-quiz .quiz-mascot-container {
  min-height: calc(9 * var(--vh)) !important;
}
