/* jeu-appart.css — « Les clés de notre appart » */
.jeu-wrap { max-width: 640px; margin: 0 auto; }

.progress-mini { text-align: center; font-size: .8em; opacity: .6; margin: 6px 0 2px; letter-spacing: .04em; }

.flamebar { display: flex; gap: 4px; justify-content: center; align-items: center; margin: 4px 0 8px; min-height: 2em; }
.flame-piece { font-size: 1.7em; line-height: 1; transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
.flame-piece.dead { opacity: .18; transform: scale(.55) rotate(24deg); filter: grayscale(1); }
.flammetag { font-size: .72em; opacity: .55; margin-left: 6px; }

.scene-card { background: #fff; border-radius: 16px; padding: 16px 18px 12px; box-shadow: 0 4px 16px rgba(0,0,0,.08); margin: 10px 0; }
.scene-num { font-size: .78em; text-transform: uppercase; letter-spacing: .08em; opacity: .55; }
.scene-title { font-size: 1.45em; font-weight: 600; margin: .15em 0; }
.scene-sub { font-style: italic; opacity: .75; margin-bottom: .7em; font-size: .95em; }
.scene-text { line-height: 1.65; white-space: pre-line; }

.evt-card { background: #fff7ec; border: 2px dashed #ff9d5c; transform: rotate(-1.1deg); }
.evt-head { font-weight: 600; color: #e2690f; margin-bottom: .4em; letter-spacing: .04em; }

.choice-btn { display: block; width: 100%; box-sizing: border-box; margin: 9px 0; padding: 13px 14px; font-size: 1rem; line-height: 1.45; text-align: left; background: #fff; color: inherit; border: 2px solid #ff6b35; border-radius: 14px; cursor: pointer; font-family: inherit; transition: transform .12s ease, background .2s ease; }
.choice-btn:hover, .choice-btn:focus { background: #fff1e8; transform: scale(1.015); outline: none; }
.choice-btn:disabled { opacity: .55; cursor: default; transform: none; }
.choix-chip { display: inline-block; min-width: 1.55em; text-align: center; font-weight: 600; background: #ff6b35; color: #fff; border-radius: 8px; margin-right: .5em; }

.note-apres { margin-top: .8em; background: #fff6d8; border-left: 4px solid #f2b630; padding: 9px 12px; border-radius: 8px; font-size: .93em; }

.overlay { position: fixed; inset: 0; background: rgba(255, 246, 238, .97); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 60; text-align: center; padding: 24px; }
.flame-delta { font-size: 2.2em; font-weight: 600; animation: pop .5s ease; }
.flame-delta.plus { color: #2e8b57; }
.flame-delta.minus { color: #c0392b; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.overlay-note { max-width: 460px; margin-top: 12px; background: #fff6d8; border-left: 4px solid #f2b630; padding: 9px 12px; border-radius: 8px; }

.fin-screen { text-align: center; padding: 22px 16px; }
.fin-emoji { font-size: 3em; }
.fin-titre { font-size: 1.5em; font-weight: 600; margin: .3em 0; }
.fin-texte { line-height: 1.6; opacity: .9; }
.waiting-box { max-width: 520px; margin: 18px auto; }
.poll-note { font-size: .85em; opacity: .6; }

.badge-block { text-align: center; margin: 16px 0; }
.badge-line { font-size: 1.25em; font-weight: 600; padding: 10px 14px; border-radius: 12px; display: inline-block; }
.badge-ok { background: #e7f8ee; color: #1e7f3c; }
.badge-attente { background: #fff5d4; color: #8a6a12; }
.badge-elim { background: #ffe6e4; color: #b0372b; }
.badge-detail { font-size: .9em; opacity: .75; margin-top: 6px; }

.radar-wrap { position: relative; height: 340px; margin: 12px auto; }
.faf-line { background: #fff; border-left: 4px solid #ff6b35; border-radius: 10px; padding: 10px 12px; margin: 9px 0; line-height: 1.55; }
.faf-title { font-size: .8em; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-bottom: 3px; }
.meme-box { background: #f4fbf7; border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.meme-box ul { margin: 6px 0 0 18px; padding: 0; }
.meme-box li { margin: 4px 0; }
.fin-pair { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.fin-pair .quiz-card { flex: 1 1 240px; margin: 0; text-align: center; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 18px 0; }

.links-block .link-line { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.links-block input { flex: 1 1 260px; font-size: .85rem; padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; }
.important-note { background: #fff6d8; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #333; color: #fff; padding: 9px 16px; border-radius: 10px; z-index: 99; font-size: .9rem; display: none; }