/* Espace Duel */
:root { --dl-red: #E5383B; --dl-green: #2EAD4B; --dl-red-bg: #FDE7E7; --dl-green-bg: #E3F6E8; }
.dl-screen h1 { margin-top: 4px; }
.dl-label { display: block; font-weight: 700; font-size: .85rem; margin: 10px 0 4px; }
.dl-input { width: 100%; box-sizing: border-box; padding: 12px; border: 2px solid var(--line, #ddd); border-radius: 12px; font-size: 1rem; background: #fff; margin-top: 6px; }
.dl-err { color: var(--dl-red); font-size: .85rem; min-height: 1.1em; margin: 8px 0; }
.dl-me { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dl-stats { font-weight: 700; white-space: nowrap; }
.dl-res { margin-top: 8px; }
.dl-sub { margin: 4px 0; font-size: .8rem; }
.dl-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line, #eee); }
.dl-pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-w { font-size: .8rem; }
.dl-inv { padding: 8px 14px; font-size: .85rem; min-height: 0; width: auto; }
.dl-dot { width: 10px; height: 10px; border-radius: 50%; background: #bbb; flex: none; }
.dl-dot.on { background: var(--dl-green); box-shadow: 0 0 0 3px rgba(46,173,75,.25); }
.dl-list { margin: 8px 0 0; padding-left: 18px; font-size: .86rem; line-height: 1.45; }
.dl-invite { border: 2px solid var(--dl-green); background: var(--dl-green-bg); }
.dl-btns { display: flex; gap: 8px; margin-top: 8px; }
.dl-btns button { flex: 1; }
.dl-center { text-align: center; padding-top: 16px; }
.dl-center button { margin-top: 10px; }
.dl-pulse { font-size: 64px; animation: dlpulse 1.1s infinite ease-in-out; }
@keyframes dlpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.dl-top { display: flex; align-items: center; gap: 10px; }
.dl-top .muted { flex: 1; }
.dl-tnum { font-weight: 800; font-size: 1.1rem; min-width: 2.4em; text-align: right; }
.dl-quit { padding: 6px 10px; font-size: .75rem; min-height: 0; width: auto; }
.dl-tbar-wrap { height: 8px; background: var(--sand, #eee); border-radius: 6px; overflow: hidden; margin: 6px 0 10px; }
.dl-tbar { height: 100%; width: 100%; background: var(--orange); border-radius: 6px; transition: width .15s linear; }
.dl-tbar.low { background: var(--dl-red); }
.dl-board { display: flex; align-items: stretch; gap: 6px; margin-bottom: 8px; }
.dl-vs { align-self: center; font-weight: 900; color: var(--muted, #888); font-size: .8rem; }
.dl-pl { flex: 1; text-align: center; border: 3px solid var(--line, #ddd); border-radius: 16px; padding: 8px 4px; background: #fff; transition: all .2s; min-width: 0; }
.dl-pl.mine { border-color: var(--orange); }
.dl-pl.buzzed { box-shadow: 0 0 0 4px rgba(255,200,0,.55); transform: scale(1.03); }
.dl-pl.good { border-color: var(--dl-green); background: var(--dl-green-bg); }
.dl-pl.bad { border-color: var(--dl-red); background: var(--dl-red-bg); }
.dl-pl.susp { opacity: .75; background: #f0f0f0; }
.dl-pn { font-weight: 800; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.dl-pn small { font-weight: 500; color: var(--muted, #888); }
.dl-pc { font-size: .7rem; color: var(--muted, #888); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-score { font-size: 2.2rem; font-weight: 900; line-height: 1.1; }
.dl-pips { display: flex; justify-content: center; gap: 4px; margin-top: 2px; }
.dl-pip { width: 12px; height: 12px; border-radius: 50%; background: #ddd; display: inline-block; }
.dl-pip.on { background: var(--dl-red); }
.dl-badge { margin-top: 4px; font-size: .68rem; font-weight: 800; color: #fff; background: var(--dl-red); border-radius: 8px; padding: 2px 4px; }
.dl-strip { background: #FFF3CD; border: 2px solid #F0C36D; border-radius: 12px; padding: 8px 10px; font-size: .82rem; margin-bottom: 8px; }
.dl-q { font-size: 1.15rem; margin: 6px 0 8px; }
.dl-ctl { min-height: 56px; margin-bottom: 8px; }
.dl-buzz { width: 100%; padding: 18px; font-size: 1.6rem; font-weight: 900; letter-spacing: .06em; color: #fff; background: var(--dl-red); border: 0; border-bottom: 6px solid #A91E22; border-radius: 18px; cursor: pointer; }
.dl-buzz:active { transform: translateY(4px); border-bottom-width: 2px; }
.dl-buzz:disabled { opacity: .6; }
.dl-info { border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: .9rem; margin-bottom: 6px; background: #f2f2f2; }
.dl-info.go { background: var(--dl-green-bg); color: #1B7A33; }
.dl-info.lock { background: #fff3cd; }
.dl-info.good { background: var(--dl-green-bg); color: #1B7A33; }
.dl-info.bad { background: var(--dl-red-bg); color: #B3262A; }
.dl-info.warn { background: #FFF3CD; color: #7A5A00; }
.dl-expl { font-size: .82rem; margin: 4px 0 0; }
.dl-opts .opt:disabled { opacity: .85; }
.dl-opts .opt.correct { background: var(--dl-green-bg) !important; border-color: var(--dl-green) !important; }
.dl-opts .opt.incorrect { background: var(--dl-red-bg) !important; border-color: var(--dl-red) !important; }
.dl-res-h { font-size: 1.7rem; }
.dl-res-h.good { color: var(--dl-green); } .dl-res-h.bad { color: var(--dl-red); }
.dl-entry { border: 2px solid var(--dl-red) !important; }
.dl-feat-ico { font-size: 22px; line-height: 1; }
.dl-banner { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 9999; background: var(--dl-red); color: #fff; padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: .9rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; max-width: 92vw; }
.dl-screen { padding-bottom: 96px; }

.dl-rules { border-radius: 24px; color: #fff; padding: 18px 20px 22px; text-align: center; min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.dl-rules-top { width: 100%; display: flex; justify-content: space-between; align-items: center; opacity: .9; margin-bottom: auto; }
.dl-rskip { background: rgba(255,255,255,.2); color: #fff; border: 0; border-radius: 12px; padding: 6px 12px; font-weight: 700; }
.dl-rules-ico { font-size: 110px; line-height: 1.1; }
.dl-rules h2 { color: #fff; font-size: 1.7rem; margin: 6px 0; }
.dl-rules p { font-size: 1.1rem; line-height: 1.45; background: rgba(0,0,0,.2); border-radius: 18px; padding: 14px 16px; margin: 8px 0; }
.dl-rlisten { background: rgba(255,255,255,.22); color: #fff; border: 0; border-radius: 14px; padding: 8px 14px; font-weight: 700; }
.dl-rdots { display: flex; gap: 6px; margin: 12px 0; }
.dl-rdots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); }
.dl-rdots i.on { background: #fff; }
.dl-rnext { width: 100%; margin-top: auto; padding: 14px; border: 0; border-radius: 16px; background: #fff; color: #222; font-weight: 800; font-size: 1.05rem; }
.dl-rbtn { padding: 4px 10px; font-size: .75rem; min-height: 0; width: auto; margin-left: 6px; }
.dl-rwait { margin-top: auto; font-size: 1rem; background: rgba(0,0,0,.25); border-radius: 14px; padding: 10px 16px; }
/* Légendes du sport en question */
.lq-fact { font-size: 1.02rem; margin: 4px 0 2px; }
.lq-prompt { font-weight: 800; margin: 6px 0; color: var(--orange-dark, #B5651D); }
.lq-opts { width: 100%; max-width: 420px; }
.lq-opt .opt-text { display: flex; flex-direction: column; text-align: left; }
.lq-opt small { color: var(--muted, #888); font-size: .78rem; font-weight: 500; }
.lq-opt.correct small, .lq-opt.incorrect small { color: inherit; opacity: .8; }
.lq-ans { font-weight: 700; margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; }
.lq-ans.good { background: #E3F6E8; color: #1B7A33; } .lq-ans.bad { background: #FDE7E7; color: #B3262A; }

/* classement / amis */
.dl-two { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dl-table { padding: 6px 8px; }
.dl-trow { display: grid; grid-template-columns: 34px 1fr 30px 30px 44px 34px; gap: 4px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line, #eee); font-size: .88rem; }
.dl-trow.dl-fr { grid-template-columns: 30px 1fr 26px 26px 42px 52px 28px; }
.dl-thead { border-top: 0; font-size: .72rem; font-weight: 800; color: var(--muted, #888); text-transform: uppercase; }
.dl-trow.me { background: rgba(255,170,0,.14); border-radius: 8px; }
.dl-trow > span { text-align: center; }
.dl-trow > .dl-tn { text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-mini { padding: 2px 4px; font-size: .75rem; min-height: 0; width: auto; border: 0; background: transparent; cursor: pointer; }
.dl-addf { padding: 8px 10px; font-size: .8rem; min-height: 0; width: auto; }
.dl-mini { white-space: nowrap; }

.dl-link { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.dl-board4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.dl-slot { display: flex; align-items: center; gap: 8px; padding: 10px; border: 2px dashed var(--line, #c7d8e6); border-radius: 14px; margin-bottom: 8px; background: #fff; }
.dl-slot.on { border-style: solid; border-color: var(--dl-green); background: var(--dl-green-bg); }
.dl-slot.me { border-color: var(--orange); background: #fff6e8; }
.dl-code { font-size: 2rem; font-weight: 900; letter-spacing: 3px; text-align: center; color: var(--orange); background: #fff6e8; border-radius: 14px; padding: 10px; margin: 8px 0; }
.dl-trow.dl-rk { grid-template-columns: 34px 1fr 64px; }
.dl-badge.ok { background: #fff2b3; color: #8a6d00; }

/* ---- chrono des 5 dernières secondes : le temps restant grossit, pulse et vire au rouge ---- */
.dl-tnum { display: inline-block; transform-origin: right center; }
.dl-tnum.cd { color: var(--orange); transform: scale(1.9); animation: dlpulse 1s ease-in-out infinite; }
.dl-tnum.cd.hot { color: var(--dl-red); }
@keyframes dlpulse { 0%, 100% { transform: scale(1.9); } 50% { transform: scale(2.3); } }

/* ---- émoticônes en partie ---- */
.dl-emo { display: flex; justify-content: center; gap: 10px; margin: 12px 0 4px; }
.dl-emo button { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--sand, #eadfc8); background: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; padding: 0; }
.dl-emo button:active { transform: scale(.92); }
.dl-emofx { position: fixed; left: 0; right: 0; bottom: 150px; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 50; pointer-events: none; }
.dl-ebub { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 30px; padding: 6px 16px 6px 10px; box-shadow: 0 6px 18px rgba(0,0,0,.25); animation: dlpop 2.8s ease forwards; }
.dl-ebub .e { font-size: 2.2rem; line-height: 1; }
.dl-ebub small { font-weight: 800; }
@keyframes dlpop { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 12% { opacity: 1; transform: translateY(0) scale(1.1); } 20% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }

/* ---- salon d'après-match ---- */
.dl-chat { height: 36vh; min-height: 200px; overflow-y: auto; background: #fff; border: 1px solid var(--sand, #eadfc8); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.dl-msg { max-width: 82%; padding: 6px 11px; border-radius: 14px; background: #f3ead9; align-self: flex-start; word-break: break-word; }
.dl-msg small { display: block; font-weight: 800; opacity: .7; font-size: .72rem; }
.dl-msg.me { align-self: flex-end; background: var(--orange); color: #fff; }
.dl-chatrow { display: flex; gap: 8px; margin: 6px 0; }
.dl-chatrow .dl-input { flex: 1; margin: 0; }
.dl-chatrow .btn-primary { width: 54px; }
.dl-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }

/* ---- valeur de la question (1 contre 1) ---- */
.dl-val { margin: 6px 0 2px; padding: 7px 12px; border-radius: 12px; background: #FFF3C4; color: #7a5200; font-weight: 700; text-align: center; border: 1px solid #F0D27A; }
.dl-val b { font-size: 1.15em; }

/* ---- grand bouton Duel sur l'accueil ---- */
.home-duel-big { display: flex; align-items: center; gap: 14px; width: 100%; margin: 10px 0 8px; padding: 16px 18px; border: 0; border-bottom: 5px solid #A04F00; border-radius: 18px; background: linear-gradient(160deg, #F28A1E, #D96E00); color: #fff; text-align: left; box-shadow: 0 6px 16px rgba(217,110,0,.35); font-family: inherit; cursor: pointer; }
.home-duel-big:active { transform: translateY(2px); border-bottom-width: 3px; }
.home-duel-big .hd-ico { font-size: 34px; line-height: 1; }
.home-duel-big .hd-txt { display: flex; flex-direction: column; gap: 2px; }
.home-duel-big .hd-txt b { font-size: 1.35rem; letter-spacing: .04em; }
.home-duel-big .hd-txt small { font-size: .78rem; font-weight: 600; opacity: .95; }
.home-duel-big .hd-go { margin-left: auto; font-size: 1.6rem; }

/* ---- invitation / parrainage ---- */
.dl-refinfo { margin-top: 8px; font-size: .85rem; line-height: 1.4; }
.dl-fromref { text-align: center; border: 2px solid #F28A1E; }
.dl-fromref .btn-primary { margin-top: 8px; width: 100%; }
