* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #cfeeff; font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; user-select: none; -webkit-user-select: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }

#hud { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 14px; padding: 10px 14px; pointer-events: none; }
#hud > * { pointer-events: auto; }
#gauge { flex: 1; display: flex; align-items: center; gap: 10px; max-width: 420px; }
.g-icon { font-size: 36px; }
.g-bar { flex: 1; height: 26px; background: rgba(255,255,255,.75); border-radius: 13px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
#gauge-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #3bb273, #ffd23f); border-radius: 10px; transition: width .5s cubic-bezier(.3,1.5,.5,1); }
#count { margin-left: auto; font-size: 30px; font-weight: 800; color: #25507a; background: rgba(255,255,255,.8); padding: 6px 16px; border-radius: 22px; }
.round { width: 68px; height: 68px; border-radius: 50%; border: 4px solid #fff; background: #ffd23f; font-size: 34px; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.18); touch-action: manipulation; }
.round:active { transform: translateY(3px); box-shadow: none; }

#hint { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(255,255,255,.92); color: #25507a; font-size: 26px; font-weight: 800; padding: 12px 24px; border-radius: 28px; pointer-events: none; text-align: center; max-width: 92vw; }

.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(120,190,240,.45); background-size: cover; background-position: center; padding: 16px; }
.overlay.has-title { background-color: rgba(0,0,0,0); }
.panel { background: rgba(255,255,255,.94); border-radius: 36px; padding: 24px 34px; text-align: center; box-shadow: 0 10px 0 rgba(0,0,0,.12); max-width: 560px; width: 100%; position: relative; }
.big-emoji { font-size: 64px; }
h1 { margin: 4px 0; font-size: 46px; color: #25507a; }
h2 { margin: 4px 0; font-size: 44px; color: #25507a; }
.sub { font-size: 24px; color: #4a6a8a; margin: 4px 0 16px; }
.btn { min-height: 72px; min-width: 200px; padding: 10px 36px; font-size: 32px; font-weight: 800; color: #fff; background: #3bb273; border: 4px solid #fff; border-radius: 40px; box-shadow: 0 6px 0 #2a8a57; cursor: pointer; touch-action: manipulation; font-family: inherit; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #2a8a57; }
#btn-voice-home { position: absolute; top: 12px; right: 12px; }

.card .thumb { width: 120px; height: 120px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 66px; background: #eee; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.chip { display: inline-block; padding: 8px 22px; border-radius: 26px; font-size: 28px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); margin-bottom: 6px; }
#fiche-text { font-size: 26px; color: #25507a; margin: 8px 0 16px; line-height: 1.25; }
#end-stars { font-size: 64px; letter-spacing: 6px; margin: 6px 0 14px; }
#end-stars .off { filter: grayscale(1) opacity(.3); }
#end-stars span { display: inline-block; animation: pop .5s both; }
#end-stars span:nth-child(2) { animation-delay: .2s; } #end-stars span:nth-child(3) { animation-delay: .4s; }
@keyframes pop { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.3) rotate(8deg); } 100% { transform: scale(1); } }

@media (max-width: 520px) { h1 { font-size: 36px; } .btn { font-size: 28px; min-width: 160px; } #count { font-size: 24px; } }
