/* Le Camembert du midi — direction artistique Pop BD — Sebdesign Studio */
body[data-jeu="camembert"] { background-color: #FFE45C; background-image: radial-gradient(rgba(0, 0, 0, .12) 1.4px, transparent 1.6px); background-size: 12px 12px; color: #111; }
body[data-jeu="camembert"] #scene { display: none; }
.cam-page { font-family: 'Nunito', system-ui, sans-serif; color: #111; gap: 12px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.cam-entete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cam-titre { margin: 0; white-space: nowrap; font-family: 'Luckiest Guy', 'Nunito', cursive; font-weight: 400; font-size: clamp(22px, 6.6vw, 30px); line-height: 1; color: #FFF; -webkit-text-stroke: 2px #111; text-shadow: 3px 3px 0 #111; letter-spacing: .01em; }
.cam-entete-d { display: flex; gap: 6px; align-items: center; }
.cam-badge, .cam-mini-btn { padding: 4px 8px; white-space: nowrap; border: 3px solid #111; border-radius: 10px; background: #FFF; font-weight: 900; font-size: 13px; color: #111; }
.cam-mini-btn { box-shadow: 2px 2px 0 #111; }
.cam-theme { align-self: flex-start; padding: 5px 12px; border: 3px solid #111; border-radius: 999px; background: var(--c); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.cam-bulle { position: relative; padding: 18px; border: 3px solid #111; border-radius: 22px; background: #FFF; box-shadow: 5px 5px 0 #111; margin-bottom: 8px; }
.cam-bulle p { margin: 0; font-weight: 900; font-size: 22px; line-height: 1.22; }
.cam-queue { position: absolute; left: 40px; bottom: -20px; }
.cam-chrono { height: 12px; border: 3px solid #111; border-radius: 99px; background: #FFF; overflow: hidden; }
.cam-chrono span { display: block; height: 100%; width: 100%; background: #FF6FA8; transition: width .25s linear; }
.cam-reponses { display: flex; flex-direction: column; gap: 10px; }
.cam-rep {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; text-align: left;
  border: 3px solid #111; border-radius: 14px; box-shadow: 4px 4px 0 #111; font-family: inherit; font-weight: 900; font-size: 18px; color: #111;
  transition: transform .08s, box-shadow .08s;
}
.cam-rep.r0 { background: #BDE8FF; } .cam-rep.r1 { background: #FFD0E2; } .cam-rep.r2 { background: #FFF1A8; } .cam-rep.r3 { background: #DCCBFF; }
.cam-rep:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111; }
.cam-rep:disabled { opacity: .55; }
.cam-rep.rate { background: #FF5A5A; color: #FFF; opacity: 1; animation: cam-secousse .4s; }
@keyframes cam-secousse { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.cam-lettre { width: 30px; height: 30px; flex: none; border-radius: 8px; background: #111; color: #FFF; display: grid; place-items: center; font-family: 'Luckiest Guy', cursive; font-size: 17px; }
.cam-blocage { margin: -4px 0 0; min-height: 18px; text-align: center; font-weight: 900; color: #C21E1E; }
.cam-moi { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 3px solid #111; border-radius: 18px; background: #FFF; box-shadow: 4px 4px 0 #111; }
.cam-moi > div { display: flex; flex-direction: column; }
.cam-moi-lbl { font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.cam-moi-n { font-family: 'Luckiest Guy', cursive; font-size: 26px; line-height: 1.1; }
.cam-moi.grand { justify-content: center; }
.cam-chrono-txt { margin-left: auto; font-family: 'Luckiest Guy', cursive; font-size: 24px; }
.cam-autres { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 4px 2px 8px; }
.cam-autre { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; }
.cam-autre span { font-weight: 900; font-size: 12px; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-autre em { font-style: normal; font-weight: 800; font-size: 11px; }
.cam-autre.choisit { background: #FFF; border: 3px solid #111; box-shadow: 3px 3px 0 #111; }
.cam-resultat { padding: 14px 16px; border: 3px solid #111; border-radius: 18px; background: #FFF; box-shadow: 4px 4px 0 #111; display: grid; gap: 4px; }
.cam-verdict { margin: 0; font-family: 'Luckiest Guy', cursive; font-size: 21px; line-height: 1.15; }
.cam-bonne { margin: 0; font-weight: 800; }
.cam-anecdote { margin: 0; font-size: 14px; font-weight: 700; color: #333; }
.cam-consigne { margin: 4px 0 0; text-align: center; font-family: 'Luckiest Guy', cursive; font-size: 24px; color: #FFF; -webkit-text-stroke: 1.5px #111; text-shadow: 2px 2px 0 #111; }
.cam-grand { display: flex; justify-content: center; }
.cam-svg { display: block; overflow: visible; }
.cam-part-clic { cursor: pointer; transition: transform .15s; transform-origin: 50px 50px; }
.cam-part-clic:active { transform: scale(1.06); }
.cam-nouvelle { animation: cam-brille 1.4s ease-in-out 3; }
@keyframes cam-brille { 0%, 100% { filter: none; } 50% { filter: brightness(1.35) drop-shadow(0 0 4px #FFF); } }
.cam-legende { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cam-leg { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border: 3px solid #111; border-radius: 12px; background: #FFF; box-shadow: 3px 3px 0 #111; font-family: inherit; font-weight: 900; font-size: 13px; color: #111; text-align: left; white-space: nowrap; overflow: hidden; }
.cam-leg i { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2.5px solid #111; background: var(--c); }
.cam-leg.acquis { background: #F2F2F2; }
.cam-leg.acquis::after { content: '✓'; margin-left: auto; font-weight: 900; }
.cam-victoire { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border: 3px solid #111; border-radius: 22px; background: #FFF; box-shadow: 5px 5px 0 #111; }
.cam-boum { margin: 0; font-family: 'Luckiest Guy', cursive; font-size: 46px; color: #FF6FA8; -webkit-text-stroke: 2px #111; text-shadow: 3px 3px 0 #111; transform: rotate(-4deg); }
.cam-gagnant { margin: 0; text-align: center; font-weight: 900; font-size: 20px; }
.cam-classement { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cam-classement li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 6px 12px; border: 3px solid #111; border-radius: 14px; background: #FFF; font-weight: 900; }
.cam-gros-btn { height: 58px; border: 3px solid #111; border-radius: 16px; background: #FF6FA8; box-shadow: 4px 4px 0 #111; font-family: 'Luckiest Guy', cursive; font-size: 22px; color: #FFF; -webkit-text-stroke: 1px #111; }
.cam-signature { margin: 6px 0 0; text-align: center; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

/* ---- Annonce du thème + décompte */
.cam-annonce { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 18px 30px; border: 3px solid #111; border-radius: 24px; background: #FFF; box-shadow: 6px 6px 0 #111; text-align: center; }
.cam-annonce-par { margin: 0; font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.cam-annonce-theme { padding: 10px 22px; border: 3px solid #111; border-radius: 999px; background: var(--c); box-shadow: 4px 4px 0 #111; font-family: 'Luckiest Guy', cursive; font-size: clamp(26px, 8vw, 36px); line-height: 1.1; transform: rotate(-2deg); animation: cam-entree .45s cubic-bezier(.2, 1.6, .4, 1); }
.cam-annonce-mode { margin: 0; max-width: 280px; font-weight: 800; font-size: 14px; color: #333; }
.cam-decompte { width: 120px; height: 120px; display: grid; place-items: center; font-family: 'Luckiest Guy', cursive; font-size: 84px; line-height: 1; color: #FF6FA8; -webkit-text-stroke: 3px #111; text-shadow: 4px 4px 0 #111; }
.cam-decompte.pop { animation: cam-pop .9s ease-out; }
@keyframes cam-pop { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 25% { transform: scale(1.25) rotate(4deg); opacity: 1; } 45% { transform: scale(1) rotate(0); } 100% { transform: scale(.92); opacity: .85; } }
@keyframes cam-entree { from { transform: scale(.4) rotate(-10deg); opacity: 0; } to { transform: scale(1) rotate(-2deg); opacity: 1; } }

/* ---- Réponse libre */
.cam-mode { margin: 0; text-align: center; font-weight: 900; font-size: 14px; }
.cam-saisie-ligne { display: flex; gap: 8px; }
.cam-saisie { flex: 1; min-width: 0; height: 56px; padding: 0 14px; border: 3px solid #111; border-radius: 14px; background: #FFF; box-shadow: 4px 4px 0 #111; font-family: inherit; font-weight: 900; font-size: 19px; color: #111; outline: none; }
.cam-saisie:focus { background: #FFFDE8; }
.cam-saisie.rate { border-color: #C21E1E; animation: cam-secousse .4s; }
.cam-envoyer { width: 64px; height: 56px; flex: none; border: 3px solid #111; border-radius: 14px; background: #6EE07A; box-shadow: 4px 4px 0 #111; font-family: 'Luckiest Guy', cursive; font-size: 22px; color: #111; }
.cam-envoyer:active, .cam-seche:active, .cam-pm:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111; }
.cam-seche { align-self: center; height: 44px; padding: 0 22px; border: 3px solid #111; border-radius: 999px; background: #FFF; box-shadow: 3px 3px 0 #111; font-family: inherit; font-weight: 900; font-size: 15px; color: #111; }
.cam-attente { padding: 14px 16px; border: 3px dashed #111; border-radius: 16px; background: rgba(255, 255, 255, .7); text-align: center; font-weight: 900; }
.cam-alerte { margin: 0; padding: 10px 14px; border: 3px solid #111; border-radius: 14px; background: #FF5A5A; color: #FFF; box-shadow: 3px 3px 0 #111; text-align: center; font-weight: 900; font-size: 15px; }

/* ---- Pastilles (qui a séché, validé, est prêt) */
.cam-pastilles { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.cam-compte { width: 100%; text-align: center; font-weight: 900; font-size: 13px; }
.cam-pastilles i { width: 28px; height: 28px; display: grid; place-items: center; border: 2.5px solid #111; border-radius: 50%; background: #FFF; font-style: normal; font-weight: 900; font-size: 13px; opacity: .45; }
.cam-pastilles i.oui { background: #6EE07A; opacity: 1; }

/* ---- Curseur */
.cam-valeur-bloc { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border: 3px solid #111; border-radius: 18px; background: #FFF; box-shadow: 4px 4px 0 #111; }
.cam-valeur { font-family: 'Luckiest Guy', cursive; font-size: clamp(26px, 8vw, 36px); line-height: 1.1; text-align: center; }
.cam-valeur-lbl { font-weight: 800; font-size: 13px; color: #444; }
.cam-curseur-ligne { display: flex; align-items: center; gap: 10px; width: 100%; }
.cam-pm { width: 44px; height: 44px; flex: none; border: 3px solid #111; border-radius: 12px; background: #FFD23F; box-shadow: 3px 3px 0 #111; font-family: inherit; font-weight: 900; font-size: 24px; line-height: 1; color: #111; }
.cam-curseur { flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; touch-action: none; }
.cam-curseur::-webkit-slider-runnable-track { height: 14px; border: 3px solid #111; border-radius: 99px; background: #FF6FA8; }
.cam-curseur::-moz-range-track { height: 8px; border: 3px solid #111; border-radius: 99px; background: #FF6FA8; }
.cam-curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -13px; border: 3px solid #111; border-radius: 50%; background: #FFF; box-shadow: 2px 2px 0 #111; }
.cam-curseur::-moz-range-thumb { width: 28px; height: 28px; border: 3px solid #111; border-radius: 50%; background: #FFF; }
.cam-bornes { display: flex; justify-content: space-between; width: 100%; padding: 0 54px; font-weight: 800; font-size: 12px; color: #444; }
.cam-valider { width: 100%; }
.cam-gros-btn:disabled { opacity: .45; }
.cam-estims { margin: 4px 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.cam-estims li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 10px; border: 2.5px solid #111; border-radius: 10px; font-weight: 800; font-size: 14px; }
.cam-estims li.top { background: #6EE07A; }
.cam-pertes { margin: 0; padding: 6px 10px; border-radius: 10px; background: #FFE1E1; font-weight: 900; font-size: 14px; color: #C21E1E; }

/* ---- Pause entre les questions */
.cam-pause { display: flex; flex-direction: column; gap: 10px; }
.cam-suivant { margin: 0; text-align: center; font-weight: 900; font-size: 16px; }
.cam-chrono.petit { height: 9px; border-width: 2.5px; }
.cam-chrono.petit span { background: #4FC3F7; }
