/* L'Estimateur — direction artistique tableau noir de labo — Sebdesign Studio */
body[data-jeu="estimateur"] {
  background-color: #1F3326;
  background-image: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .06), transparent 60%), radial-gradient(ellipse at 80% 80%, rgba(255, 255, 255, .04), transparent 50%), linear-gradient(180deg, #2A4434, #1A2B20);
  background-attachment: fixed; color: #F1F3EC;
}
body[data-jeu="estimateur"] #scene { display: none; }
.est-page { --craie: #F4F6EE; --jaune: #F7E27A; --rose: #F5A3B5; --bleu: #9FD3F2; --bois: #8A5A34;
  font-family: 'Caveat', 'Comic Sans MS', cursive; gap: 14px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.est-entete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.est-titre { margin: 0; white-space: nowrap; font-family: 'Caveat', cursive; font-weight: 700; font-size: clamp(32px, 10vw, 42px); line-height: 1; color: var(--craie); text-shadow: 0 0 1px rgba(255, 255, 255, .6); }
.est-entete-d { display: flex; gap: 5px; flex: none; }
.est-badge, .est-mini { padding: 3px 10px; white-space: nowrap; border: 2px solid rgba(244, 246, 238, .7); border-radius: 12px 10px 14px 9px; background: transparent; color: var(--craie); font-family: 'Caveat', cursive; font-weight: 700; font-size: 18px; }
.est-tableau { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 16px; text-align: center; border: 2px solid rgba(244, 246, 238, .55); border-radius: 18px 14px 20px 12px; }
.est-tableau.petit { padding: 12px; }
.est-sur { margin: 0; font-size: 20px; color: var(--jaune); }
.est-question { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.15; color: var(--craie); }
.est-question.petite { font-size: 22px; opacity: .85; }
.est-aide { margin: 0; text-align: center; font-size: 20px; color: rgba(244, 246, 238, .8); }
.est-chrono { height: 5px; border-radius: 9px; background: rgba(244, 246, 238, .15); overflow: hidden; }
.est-chrono span { display: block; height: 100%; width: 100%; background: var(--jaune); transition: width .25s linear; }
.est-ecran { display: flex; align-items: baseline; justify-content: center; gap: 10px; min-height: 76px; padding: 6px 14px; border-bottom: 3px solid var(--craie); }
.est-ecran span { font-family: 'Caveat', cursive; font-weight: 700; font-size: 58px; line-height: 1; color: var(--jaune); }
.est-ecran small { font-size: 24px; color: rgba(244, 246, 238, .75); }
.est-pave { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.est-touche { height: 66px; border: 2.5px solid rgba(244, 246, 238, .85); border-radius: 16px 12px 18px 10px; background: rgba(255, 255, 255, .03); color: var(--craie);
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 38px; line-height: 1; touch-action: manipulation; }
.est-touche:active:not(:disabled) { background: rgba(244, 246, 238, .18); transform: scale(.96); }
.est-touche.effacer { color: var(--rose); border-color: rgba(245, 163, 181, .8); font-size: 30px; }
.est-touche.ok { color: #1F3326; background: var(--jaune); border-color: var(--jaune); }
.est-touche:disabled { opacity: .35; }
.est-valeur { margin: 0; font-size: 44px; font-weight: 700; color: var(--jaune); }
.est-valeur small { font-size: 22px; color: var(--craie); }
.est-compteur { margin: 4px 0; font-size: 64px; font-weight: 700; line-height: 1; color: var(--jaune); }
.est-compteur small { font-size: 26px; color: var(--craie); }
.est-anecdote { margin: 0; font-size: 21px; line-height: 1.2; color: var(--bleu); }
.est-classement { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.est-classement li { display: grid; grid-template-columns: 30px 1fr auto 40px; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 2px dashed rgba(244, 246, 238, .3); font-size: 24px; }
.est-classement li.gagne { color: var(--jaune); }
.est-rang { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid currentColor; border-radius: 50%; font-size: 18px; }
.est-classement b { font-weight: 700; }
.est-classement em { font-style: normal; font-weight: 700; color: var(--rose); text-align: right; }
.est-btn { width: 100%; min-height: 58px; padding: 0 16px; border: 3px solid var(--craie); border-radius: 18px 12px 20px 10px; background: var(--craie); color: #1F3326; font-family: 'Caveat', cursive; font-weight: 700; font-size: 28px; }
.est-btn.clair { background: transparent; color: var(--craie); }
.est-btn:active { transform: scale(.98); }
.est-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.est-duo .est-btn { font-size: 24px; }
.est-pastilles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 18px; color: rgba(244, 246, 238, .75); }
.est-pastilles i { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid rgba(244, 246, 238, .7); border-radius: 50%; font-style: normal; opacity: .35; }
.est-pastilles i.oui { opacity: 1; background: var(--craie); color: #1F3326; }
.est-signature { margin: 6px 0 0; text-align: center; font-size: 18px; color: rgba(244, 246, 238, .45); }
