:root{color-scheme:dark;--bg:#0b090e;--card:#1b121e;--card2:#281a2b;--line:#6b3655;--pink:#fa1680;--pink2:#ff428d;--orange:#ff8733;--white:#fff;--muted:#c4b4c3;--radius:21px}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;color:var(--white);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:radial-gradient(ellipse at 15% 1%,#421025 0,transparent 33%),radial-gradient(ellipse at 100% 60%,#281027 0,transparent 42%),#0b090e;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:not-allowed}.app-shell{max-width:590px;margin:auto;min-height:100vh;padding:calc(15px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));}.loading{display:flex;flex-direction:column;align-items:center;gap:20px;justify-content:center}.brand{width:100%;max-width:310px;display:block;margin:8px auto 12px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,0,0,.28))}.splash .brand{max-width:360px;margin:20px auto 10px}.app-head{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:12px;min-height:40px}.app-head span{font-weight:650}.small-link{background:transparent;text-decoration:none;color:#e9c8db;border:0;font-size:14px;padding:8px 0}.eyebrow{letter-spacing:.15em;color:#ff79b1;text-transform:uppercase;font-size:11px;font-weight:700;margin:0 0 8px}.panel{border:1px solid #6f3054;background:linear-gradient(135deg,#261423eb,#151019f7);padding:19px 17px;border-radius:var(--radius);margin:14px 0;box-shadow:0 12px 28px #0004}.panel h1,.panel h2{margin:0 0 11px}.panel h1{font-size:27px}.panel h2{font-size:21px}.panel h3{font-size:17px;margin:8px 0}.muted{color:var(--muted);font-size:14px}.subtle{color:#d7b4c9}.primary,.secondary,.danger,.chip{padding:13px 16px;border-radius:13px;font-weight:750}.primary{color:white;background:linear-gradient(100deg,#ef087a,#ff583f,#ff972c);width:100%}.secondary{color:white;background:#382332;border:1px solid #ff398b;width:100%}.danger{color:#fff;background:#a92147;width:100%}.chip{background:#281623;border:1px solid #8c496b;color:#fff}.small{font-size:13px}.button-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stack{display:flex;flex-direction:column;gap:11px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form label{font-size:14px;display:block;color:#f7e5ee;font-weight:600;margin:12px 0 6px}.form input:not([type=checkbox]),.form select,.form textarea,.input{width:100%;border:1px solid #84627b;background:#211b29;color:white;border-radius:11px;padding:12px;min-height:45px;outline:none}.form input:focus,.form select:focus,.form textarea:focus{border-color:#ff4792;box-shadow:0 0 0 2px #fc218044}.form input[type=file]{font-size:13px}.form .terms{display:flex;gap:9px;align-items:start;margin:15px 0}.terms input{margin-top:5px}.terms label{margin:0;font-weight:400}.msg{padding:11px;border-radius:12px;background:#501b36;color:#ffe4ec;white-space:pre-wrap;margin:12px 0}.ok{background:#18382f;color:#dcffec}.profile-row{display:flex;align-items:center;gap:13px}.avatar{width:52px;height:52px;border-radius:100%;object-fit:cover;border:2px solid #ff438e;background:#47233a;flex-shrink:0}.avatar.small-av{width:38px;height:38px}.avatar.big{width:82px;height:82px}.player-label{font-weight:750;font-size:15px}.score{font-size:25px;color:#ff78aa;font-weight:800}.duel-card{background:#241924;border:1px solid #73435e;border-radius:17px;padding:13px;margin:10px 0;text-align:left;width:100%;color:white}.duel-card.active{border-color:#ff3c8f;box-shadow:0 0 0 1px #ff3c8f}.duel-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.duel-card .players{display:flex;gap:12px;align-items:center;margin:10px 0}.duel-card .players img{width:34px;height:34px}.pill{font-weight:750;background:#f31d78;color:white;padding:3px 9px;border-radius:100px}.vs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}.score-card{background:#251a29;border:1px solid #66455a;border-radius:16px;padding:14px 8px;text-align:center}.score-card .avatar{margin:0 auto 5px}.score-card .score{display:block}.turn{border:1px solid #ed458c;background:linear-gradient(95deg,#47172e,#24141f);border-radius:15px;padding:13px;text-align:center;font-weight:750}.footer{margin-top:22px;text-align:center;color:#8f7b89;font-size:12px}.divider{height:1px;background:#60364f;margin:15px 0}.link-text{color:#ff91bc;text-decoration:underline}.list-row{border-bottom:1px solid #6b3b55;padding:12px 0}.list-row:last-child{border:0}.wrap-any{overflow-wrap:anywhere}.nav{display:flex;gap:9px;margin:10px 0}.nav button{border:1px solid #714766;background:#231423;color:white;border-radius:13px;padding:10px 12px;flex:1}.nav button.sel{background:#6d1543;border-color:#fb438f}.notice{font-size:13px;padding:10px;background:#281d2e;border-radius:12px;border:1px solid #604a5e}.select-title{display:flex;align-items:center;justify-content:space-between;gap:9px;cursor:pointer}.select-title h2{font-size:20px;margin:0}.heart{color:#fa3788}.draw-animation{animation:drawPop 2s ease-in-out}.draw-animation .flame{font-size:70px;display:block;animation:flamePulse 1s 2 alternate ease-in-out;text-align:center}@keyframes drawPop{0%{opacity:.3;transform:scale(.92)}60%{opacity:1;transform:scale(1.02)}100%{transform:scale(1)}}@keyframes flamePulse{to{transform:scale(1.22) rotate(8deg)}}.hidden{display:none!important}.filehint{font-size:12px;color:var(--muted)}@media(min-width:850px){.app-shell{max-width:700px;padding:35px}.panel{padding:25px 26px}}@media(prefers-reduced-motion:reduce){.draw-animation,.draw-animation .flame{animation:none}}

/* Parcours PWA v0.1.1 : installation avant inscription. */
.install-intro{text-align:center;padding-top:24px;padding-bottom:28px;}
.install-intro h1{font-size:clamp(24px,6vw,31px);line-height:1.15;margin:15px 0;}
.install-icon{display:block;width:112px;height:112px;border-radius:25px;margin:10px auto 17px;object-fit:cover;box-shadow:0 10px 36px #0008;}
.install-cta{margin:19px 0 6px;min-height:55px;font-size:18px;}
.install-hint{color:#d1b4c7;font-size:12px;margin:15px 0 0;}
.install-guide{text-align:left;border:1px solid #a8447c;background:#2b1a2a;border-radius:16px;padding:17px;margin-top:17px;color:#f9eaf1;}
.install-guide ol{padding-left:22px;margin:10px 0 0;}
.install-guide li{margin:9px 0;}
.install-guide p{margin-bottom:0;}
.install-warning{text-align:left;border:1px solid #fcaa51;background:#3e251c;border-radius:15px;padding:15px;margin-top:16px;}
.install-warning p{margin:8px 0 0;font-size:14px;}
.install-banner{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 15px;margin-bottom:17px;border-radius:15px;background:#34192c;border:1px solid #ff488f;font-size:14px;}
.install-banner span{flex:1;min-width:180px;}
.install-banner-button{width:auto;white-space:nowrap;font-size:14px;padding:10px 14px;}
.install-banner .install-guide,.install-banner .install-warning{width:100%;margin-top:4px;}
@media(max-width:365px){.install-banner-button{width:100%;}}

/* Mise à jour v0.1.2 : accueil d'installation simple et sans jargon. */
.install-intro{padding:28px 20px 30px;text-align:center;}
.install-intro h1{font-size:clamp(24px,6vw,30px);line-height:1.19;margin:12px 0 24px;}
.install-icon{width:104px;height:104px;object-fit:contain;display:block;margin:3px auto 22px;border-radius:24px;box-shadow:0 10px 34px #0006;}
.install-cta{min-height:58px;font-size:19px;margin:0;width:100%;}
.install-invite{color:#e2bdd0;font-size:14px;margin:0 0 16px;}
.install-feedback{padding:12px 13px;border:1px solid #a44378;border-radius:12px;background:#301928;color:#fae6f1;font-size:14px;text-align:left;margin:17px 0 0;line-height:1.45;}
.install-banner{padding:9px 10px;justify-content:center;gap:6px;}
.install-banner-button{width:100%;font-size:14px;padding:10px 13px;}
.install-banner .install-feedback{width:100%;margin:5px 0 0;}

/* Mise à jour v0.1.2 : accueil d'installation simple et sans jargon. */
.install-intro{padding:28px 20px 30px;text-align:center;}
.install-intro h1{font-size:clamp(24px,6vw,30px);line-height:1.19;margin:12px 0 24px;}
.install-icon{width:104px;height:104px;object-fit:contain;display:block;margin:3px auto 22px;border-radius:24px;box-shadow:0 10px 34px #0006;}
.install-cta{min-height:58px;font-size:19px;margin:0;width:100%;}
.install-invite{color:#e2bdd0;font-size:14px;margin:0 0 16px;}
.install-feedback{padding:12px 13px;border:1px solid #a44378;border-radius:12px;background:#301928;color:#fae6f1;font-size:14px;text-align:left;margin:17px 0 0;line-height:1.45;}
.install-banner{padding:9px 10px;justify-content:center;gap:6px;}
.install-banner-button{width:100%;font-size:14px;padding:10px 13px;}
.install-banner .install-feedback{width:100%;margin:5px 0 0;}

/* Défis daredare v0.2.0. */
.challenge-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0}
.points-badge{color:#fff;background:linear-gradient(110deg,#e81276,#ff8235);border-radius:999px;padding:9px 13px;white-space:nowrap}
.challenge-secret{text-align:center;background:#231523;border:1px solid #713c5f;padding:34px 14px;border-radius:16px;margin:16px 0 18px}
.challenge-content{white-space:normal;line-height:1.6;background:#2b1a29;border-radius:14px;padding:15px;margin:13px 0}
.countdown{font-size:18px;font-weight:700;color:#ff99c4;text-align:center}
.duration-choices{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.duration-choices button.selected{background:linear-gradient(120deg,#ec137c,#ff713e);border-color:#ffb8d6}
.day-counter{display:flex;align-items:center;justify-content:center;gap:24px;margin:14px 0 24px}
.day-counter strong{min-width:86px;text-align:center;font-size:24px}
.day-counter button{min-width:47px;min-height:45px;font-size:24px}
.chat-thread{display:flex;flex-direction:column;gap:12px;margin:16px 0}
.chat-message{border:1px solid #654356;background:#291b2b;padding:12px;border-radius:13px;overflow:hidden}
.chat-message .avatar{width:32px;height:32px}
.chat-message.official-proof{border:2px solid #ff4998;background:linear-gradient(130deg,#401a35,#231522)}
.chat-message.official-result{border:2px solid #f8a354;background:#39251b}
.chat-message p{overflow-wrap:anywhere;margin:8px 0}
.message-image,.message-video{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:10px;margin:8px 0}
.chat-message audio{max-width:100%;margin-top:8px}
.review-partial{border:1px solid #723e5a;border-radius:12px;padding:14px}
.review-partial input[type=range]{width:100%;accent-color:#ff418d}
.range-ends{display:flex;justify-content:space-between;color:#bfa8b8;font-size:13px;margin:2px 0 13px}
.history-attempt{background:#241827;border:1px solid #58354b;border-radius:12px;margin:8px 0;padding:10px;font-size:13px}.history-attempt button{margin-top:8px}

/* Invitations étiquetées — v0.2.1 */
.invite-person{display:block;font-size:18px;color:#fff;margin-bottom:5px;}
.invite-link{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:12px;font-size:12px;}
.invite-item{padding:15px 0;}

/* Invitations : action destructive distincte des actions de partage. */
.cancel-invite{display:block;width:100%;margin-top:10px;padding:11px 14px;border-radius:11px;background:rgba(139,30,63,.16);border:1px solid #ba5475;color:#ffc0d2;font-weight:650;font-size:14px;text-align:center;}
.cancel-invite:focus-visible{outline:2px solid #ff75ae;outline-offset:2px;}
.cancel-invite:disabled{opacity:.45;}

/* daredare v0.2.6 : expérience du duel mobile, sans toucher aux écrans de bienvenue. */
.duel-page{padding-bottom:calc(18px + env(safe-area-inset-bottom));}
.duel-topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 0;min-height:40px;}
.duel-switch{display:flex;gap:9px;align-items:center;min-width:0;flex:1;background:transparent;color:#fff;text-align:left;font-size:19px;font-weight:770;line-height:1.2;padding:7px 0;overflow-wrap:anywhere;}
.duel-switch span{color:#ff6da9;font-size:23px;font-weight:400;white-space:nowrap;}
.duel-rename{flex-shrink:0;background:rgba(255,104,169,.1);color:#ff9ac4;width:38px;height:38px;border-radius:13px;font-size:19px;}
.duel-page .brand-compact{display:block;max-width:min(210px,63vw);margin:0 auto 10px;filter:drop-shadow(0 5px 14px rgba(235,36,119,.18));}
.duel-page .panel{border:1px solid rgba(244,118,180,.12);border-radius:24px;background:linear-gradient(152deg,rgba(70,31,61,.66),rgba(26,17,34,.96) 66%,rgba(36,19,39,.95));box-shadow:0 15px 40px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,190,218,.07);margin:12px 0;padding:16px;}
.duel-page .score-panel{position:relative;padding:13px 13px 15px;overflow:hidden;background:radial-gradient(circle at 88% 8%,rgba(250,44,128,.14),transparent 45%),linear-gradient(150deg,#2c192f,#17121f 75%);}
.duel-page .score-panel:before{content:'';position:absolute;top:0;left:18%;right:18%;height:2px;background:linear-gradient(90deg,transparent,#fd318d 30%,#ff8b43 67%,transparent);opacity:.85;}
.duel-page .vs{gap:9px;margin:4px 0 12px;}
.duel-page .score-card{border:0;border-radius:19px;padding:11px 6px 10px;background:linear-gradient(160deg,rgba(255,255,255,.055),rgba(255,255,255,.025));box-shadow:inset 0 1px 0 rgba(255,255,255,.06);min-width:0;}
.duel-page .score-card .avatar{display:block;width:61px;height:61px;margin:0 auto 7px;border:2px solid #fd3d91;box-shadow:0 0 0 3px rgba(255,55,137,.10);}
.duel-page .player-label{font-size:15px;overflow-wrap:anywhere;}
.duel-page .score-value{display:flex;align-items:baseline;justify-content:center;gap:5px;margin-top:5px;}
.duel-page .score{font-size:30px;font-weight:830;line-height:1.1;font-variant-numeric:tabular-nums;}
.duel-page .score-unit{font-size:12px;color:#d1b0c2;}
.duel-phase{display:flex;align-items:center;gap:12px;border:0;border-radius:16px;padding:12px 13px;background:linear-gradient(110deg,rgba(235,30,114,.17),rgba(251,115,65,.065));}
.duel-phase-symbol{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;border-radius:14px;background:rgba(255,107,167,.13);color:#ff97bd;}
.duel-phase-copy{display:flex;flex-direction:column;min-width:0;gap:4px;}
.duel-phase-copy .duel-phase-eyebrow{font-size:10px;letter-spacing:.10em;font-weight:760;line-height:1.25;color:#ff97bd;}
.duel-phase-copy strong{font-size:14px;color:#fff0f6;line-height:1.32;font-weight:700;overflow-wrap:anywhere;}
.duel-phase-offered .duel-phase-symbol{color:#ffc18f;background:rgba(255,173,112,.12);}
.duel-phase-offered .duel-phase-eyebrow{color:#ffc18f;}
.duel-phase-accepted .duel-phase-symbol{color:#ff9dc7;}
.duel-phase-review .duel-phase-symbol{color:#d8adff;background:rgba(169,108,241,.13);}
.duel-phase-review .duel-phase-eyebrow{color:#d8adff;}
.duel-page .challenge-card{background:linear-gradient(150deg,rgba(68,28,56,.86),rgba(25,18,34,.96) 72%);}
.duel-page .challenge-heading{margin:5px 0 10px;}
.duel-page .challenge-heading .avatar{width:42px;height:42px;}
.duel-page .challenge-content{border-radius:17px;background:rgba(255,255,255,.047);padding:15px 16px;font-size:17px;line-height:1.5;margin:10px 0;}
.duel-page .points-badge{font-size:14px;padding:8px 12px;box-shadow:0 7px 20px rgba(241,47,118,.18);}
.duel-page .countdown{font-size:18px;margin:12px 0 15px;color:#ff9bc6;}
.duel-page .challenge-card .primary,.duel-page .challenge-card .secondary{min-height:49px;margin-top:4px;}
.duel-page .challenge-card .secondary{background:rgba(255,255,255,.055);border:1px solid rgba(246,96,165,.25);}
.duel-history-link{display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px;margin:12px 0;background:rgba(252,95,162,.07);color:white;border:1px solid rgba(246,96,165,.20);border-radius:15px;padding:14px 15px;font-size:15px;font-weight:680;text-align:left;}
.duel-history-link span{color:#ff97be;font-size:12px;white-space:nowrap;font-weight:550;}
.duel-tabs{position:sticky;bottom:calc(7px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:16px 0 0;padding:6px;background:rgba(30,20,34,.96);border:1px solid rgba(255,116,166,.17);border-radius:22px;box-shadow:0 12px 30px rgba(0,0,0,.32);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);z-index:3;}
.duel-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:51px;background:transparent;color:#f2d3e2;border-radius:14px;padding:5px 2px;}
.duel-tabs button span{font-size:22px;line-height:1.2;color:#ff7bb5;}
.duel-tabs button small{font-size:11px;white-space:nowrap;}
.duel-tabs button:active{background:rgba(255,94,156,.12);}
.duel-page .push-prompt{padding:12px;font-size:13px;}
@media(max-width:360px){.duel-page .brand-compact{max-width:180px}.duel-switch{font-size:17px}.duel-page .score-card .avatar{width:52px;height:52px}.duel-phase-copy strong{font-size:13px}}


/* v0.2.7 — Conversation de défi, affichage de messagerie mobile. */
.chat-page{--chat-ink:#fff;display:flex;flex-direction:column;min-height:calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:-6px -7px 0;padding:0 4px 4px;overflow:visible;}
.chat-topbar{display:flex;align-items:center;gap:10px;min-height:61px;padding:6px 4px 10px;flex-shrink:0;}
.chat-back{width:39px;height:42px;flex-shrink:0;border:0;background:rgba(255,255,255,.055);color:#fff;font-size:34px;line-height:1;border-radius:14px;display:grid;place-items:center;padding:0 0 4px;}
.chat-heading{display:flex;flex-direction:column;min-width:0;gap:1px;flex:1;}
.chat-heading strong{font-size:15px;line-height:1.25;}
.chat-heading span{font-size:12px;color:#cab1c3;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.chat-logo{width:110px;height:46px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 3px 8px #0004);}
.chat-context{background:linear-gradient(110deg,#3a1d37,#251925);border:1px solid rgba(255,102,165,.18);border-radius:17px;box-shadow:0 8px 26px #0002;margin:0 2px 10px;flex-shrink:0;}
.chat-context summary{cursor:pointer;list-style:none;display:flex;flex-direction:column;gap:4px;padding:12px 15px;position:relative;padding-right:39px;}
.chat-context summary::-webkit-details-marker{display:none;}
.chat-context summary:after{content:'⌄';position:absolute;right:15px;top:19px;color:#ff94c0;font-size:24px;line-height:1;transition:transform .18s ease;}
.chat-context[open] summary:after{transform:rotate(180deg);}
.chat-context-summary{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:12px;color:#edb1cb;}
.chat-context-summary strong{color:#ffe3ef;background:linear-gradient(95deg,#9c2864,#82405c);border-radius:999px;padding:3px 9px;white-space:nowrap;}
.chat-context-title{font-size:13px;color:#f1dfeb;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.chat-context p{margin:0;padding:0 15px 13px;color:#fff;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;}
.chat-scroll{flex:1 1 auto;min-height:210px;max-height:calc(100dvh - 285px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#654055 transparent;padding:7px 5px 18px;display:flex;flex-direction:column;gap:7px;background:radial-gradient(circle at 10% 35%,rgba(255,66,148,.06),transparent 45%),radial-gradient(circle at 95% 85%,rgba(235,98,94,.05),transparent 45%);border-radius:18px;}
.chat-day{display:flex;justify-content:center;margin:12px 0 9px;}
.chat-day span{font-size:11px;font-weight:650;color:#e9cadd;border-radius:999px;background:rgba(255,255,255,.075);padding:5px 12px;}
.chat-empty{color:#bdabba;text-align:center;margin:auto;font-size:14px;padding:24px;}
.chat-entry{display:flex;align-items:flex-end;gap:6px;width:100%;}
.chat-entry.mine{flex-direction:row-reverse;}
.chat-entry-avatar{flex:0 0 27px;align-self:flex-end;}
.chat-entry-avatar .avatar{width:27px;height:27px;border-radius:50%;border:1px solid rgba(255,131,181,.50);display:block;object-fit:cover;}
.chat-bubble{--bubble:#3d2b43;--bubble-glow:#675071;position:relative;min-width:70px;max-width:min(82%,380px);padding:9px 12px 7px;border:0;border-radius:17px 17px 17px 5px;background:linear-gradient(145deg,var(--bubble),color-mix(in srgb,var(--bubble) 83%,#100c18));box-shadow:0 3px 14px #0002,inset 0 1px 0 rgba(255,255,255,.095);color:#fff;overflow:hidden;overflow-wrap:anywhere;}
.chat-entry.mine .chat-bubble{border-radius:17px 17px 5px 17px;}
.chat-bubble.tone-rose-1{--bubble:#a52c68;--bubble-glow:#ff91bc;}
.chat-bubble.tone-rose-2{--bubble:#71234d;--bubble-glow:#e98bb2;}
.chat-bubble.tone-blue-1{--bubble:#205a8b;--bubble-glow:#90c8ef;}
.chat-bubble.tone-blue-2{--bubble:#2c3d80;--bubble-glow:#8ea6f1;}
.chat-bubble.tone-violet-1{--bubble:#62458a;--bubble-glow:#bea4ec;}
.chat-bubble.tone-violet-2{--bubble:#45346f;--bubble-glow:#9f8bcf;}
.chat-bubble.tone-teal-1{--bubble:#216d71;--bubble-glow:#90d9da;}
.chat-bubble.tone-teal-2{--bubble:#28545b;--bubble-glow:#87bac3;}
.chat-bubble.tone-slate-1{--bubble:#4a5065;--bubble-glow:#b0b5cb;}
.chat-bubble.tone-slate-2{--bubble:#394059;--bubble-glow:#9ca6c9;}
.chat-bubble-header{display:flex;align-items:center;justify-content:flex-start;margin:0 0 3px;}
.chat-sender{font-size:11px;line-height:1.3;font-weight:770;color:#fff;opacity:.94;}
.chat-message-text{font-size:14px;line-height:1.48;margin:0;white-space:normal;overflow-wrap:anywhere;}
.chat-bubble-body{display:flex;flex-direction:column;gap:6px;font-size:14px;}
.chat-time{display:block;font-size:10px;line-height:1.2;margin:5px 0 0;text-align:right;color:rgba(255,255,255,.83);font-variant-numeric:tabular-nums;}
.chat-bubble .message-image,.chat-bubble .message-video{display:block;max-width:100%;width:100%;max-height:320px;margin:1px 0 2px;object-fit:contain;border-radius:11px;}
.chat-bubble audio{width:100%;max-width:100%;margin:4px 0;min-width:185px;}
.chat-official-proof{outline:1px solid var(--bubble-glow);outline-offset:0;box-shadow:0 6px 21px #0004,0 0 0 2px color-mix(in srgb,var(--bubble-glow) 15%,transparent);}
.chat-proof-label{font-size:11px;letter-spacing:.01em;font-weight:800;color:#fff;display:inline-flex;align-items:center;gap:4px;background:rgba(0,0,0,.20);border-radius:9px;padding:5px 7px;margin:1px 0 4px;}
.chat-official-result{outline:1px solid #d6b56e;background:linear-gradient(130deg,#6e4825,#453321);max-width:88%;}
.chat-special-heading{font-size:11px;text-transform:uppercase;letter-spacing:.07em;font-weight:800;color:#ffe1a6;}
.chat-composer{position:sticky;bottom:calc(1px + env(safe-area-inset-bottom));z-index:4;background:linear-gradient(0deg,rgba(23,13,24,.98),rgba(32,20,35,.97));border:1px solid rgba(244,120,171,.18);border-radius:24px;padding:7px 8px;box-shadow:0 -8px 30px #0005;margin:6px 1px 0;flex-shrink:0;}
.chat-composer-row{display:flex;align-items:flex-end;gap:7px;}
.chat-composer textarea{min-height:42px;max-height:114px;resize:none;overflow-y:auto;border:0;background:rgba(255,255,255,.075);border-radius:18px;color:#fff;padding:10px 13px;outline:0;font-size:14px;line-height:1.4;flex:1;min-width:0;}
.chat-composer textarea:focus{box-shadow:0 0 0 1px #ef6da6;background:rgba(255,255,255,.095);}
.chat-composer textarea::placeholder{color:#c3adbc;}
.chat-attach,.chat-send{width:41px;height:41px;min-width:41px;display:flex;justify-content:center;align-items:center;border-radius:50%;cursor:pointer;font-size:26px;line-height:1;}
.chat-attach{color:#ffabd0;background:rgba(251,85,144,.12);font-weight:650;}
.chat-attach input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}
.chat-send{background:linear-gradient(125deg,#f4087a,#ff763c);color:#fff;padding:0 0 1px 2px;box-shadow:0 3px 10px rgba(252,49,135,.20);font-size:21px;}
.chat-attach:focus-within,.chat-send:focus-visible,.chat-back:focus-visible{outline:2px solid #ff8abd;outline-offset:2px;}
.chat-file-selection{margin:7px 7px 2px;font-size:11px;color:#f7bbda;overflow-wrap:anywhere;}
.chat-file-selection[hidden]{display:none;}
.chat-closed{text-align:center;color:#c5abbc;font-size:12px;padding:12px 4px 7px;margin-top:10px;}
@media(max-width:365px){.chat-logo{width:86px}.chat-heading strong{font-size:14px}.chat-bubble{max-width:82%;padding:8px 10px}.chat-entry-avatar{flex-basis:24px}.chat-entry-avatar .avatar{width:24px;height:24px}}
@media(min-width:650px){.chat-page{max-width:560px;margin:auto}.chat-scroll{max-height:630px}}
@media(prefers-reduced-motion:reduce){.chat-context summary:after{transition:none}}

/* Place les conversations courtes près de la zone de saisie, comme une messagerie. */
.chat-scroll > :first-child{margin-top:auto;}

/* v0.2.8 — Conversation: seule la zone de messages défile sur les écrans mobiles. */
html.dd-chat-active,body.dd-chat-active{height:100%;overflow:hidden!important;overscroll-behavior:none;}
body.dd-chat-active #root{height:100%;overflow:hidden;}
.app-shell.chat-shell{
 position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;
 width:100%;max-width:590px;height:var(--dd-chat-viewport,100dvh);min-height:0;max-height:none;
 padding:calc(7px + env(safe-area-inset-top)) 12px calc(9px + env(safe-area-inset-bottom));
 margin:0 auto;overflow:hidden;overscroll-behavior:none;
 background:radial-gradient(ellipse at 5% 10%,#421025,transparent 48%),#0b090e;
}
.chat-shell .chat-page{
 display:flex;flex:1 1 auto;flex-direction:column;min-height:0;height:100%;
 margin:0;padding:0;gap:0;overflow:hidden;
}
.chat-shell .chat-topbar{height:51px;min-height:51px;padding:0 1px 7px;flex:0 0 51px;gap:9px;}
.chat-shell .chat-back{width:37px;height:37px;flex:0 0 37px;border-radius:12px;font-size:32px;}
.chat-shell .chat-heading strong{font-size:15px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.chat-shell .chat-heading span{font-size:12px;}
.chat-shell .chat-logo{width:108px;height:39px;object-fit:contain;}
.chat-shell .chat-context{flex:0 0 auto;max-height:min(34dvh,205px);margin:0 0 6px;border-radius:15px;overflow-y:auto;overscroll-behavior:contain;}
.chat-shell .chat-context summary{padding:9px 33px 10px 12px;gap:3px;}
.chat-shell .chat-context summary:after{right:11px;top:16px;font-size:21px;}
.chat-shell .chat-context-summary strong{font-size:11px;padding:3px 9px;}
.chat-shell .chat-context-title{font-size:12px;line-height:1.4;white-space:nowrap;}
.chat-shell .chat-context[open] .chat-context-title{display:none;}
.chat-shell .chat-context p{padding:4px 12px 11px;font-size:13px;line-height:1.45;margin:0;}
.chat-shell .chat-scroll{
 flex:1 1 0;min-height:0;max-height:none;height:auto;width:100%;
 padding:6px 4px 10px;overflow-y:auto;overflow-x:hidden;
 scrollbar-width:thin;-webkit-overflow-scrolling:touch;
 overscroll-behavior-y:contain;
}
.chat-shell .chat-day{margin:8px 0 7px;}
.chat-shell .chat-composer{
 position:relative;bottom:auto;z-index:4;flex:0 0 auto;
 padding:6px 7px;margin:6px 0 0;border-radius:22px;
}
.chat-shell .chat-closed{flex:0 0 auto;padding:10px 4px 5px;}
@media(min-width:650px){.chat-shell .chat-page{max-width:none;margin:0}.chat-shell .chat-scroll{max-height:none}}
@media(max-height:570px){.chat-shell .chat-topbar{height:43px;min-height:43px;flex-basis:43px}.chat-shell .chat-logo{height:32px;width:90px}.chat-shell .chat-context summary{padding-top:6px;padding-bottom:7px}}

/* Bulles courtes alignées vers la saisie, sans gêner le défilement des longs échanges. */
.chat-shell .chat-scroll > :first-child{margin-top:auto;}

/* v0.2.9 — Messagerie épurée, texte confortable, heures hors des bulles et réactions. */
.chat-entry-main{display:flex;flex-direction:column;align-items:flex-start;min-width:0;max-width:calc(100% - 34px);flex:0 1 auto;gap:2px;}
.chat-entry.mine .chat-entry-main{align-items:flex-end;}
.chat-bubble-row{display:flex;align-items:center;gap:5px;max-width:100%;flex-direction:row;}
.chat-entry.mine .chat-bubble-row{flex-direction:row-reverse;}
.chat-entry-main .chat-bubble{max-width:100%;min-width:0;flex:0 1 auto;padding:11px 13px;box-shadow:0 4px 13px rgba(0,0,0,.19);}
.chat-bubble-header{display:none!important;}
.chat-message-text{font-size:16px;line-height:1.45;letter-spacing:.005em;}
.chat-bubble-body{font-size:16px;line-height:1.45;}
.chat-message-meta{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-height:15px;width:100%;padding:1px 3px 0;color:#c6aebd;}
.chat-entry.mine .chat-message-meta{justify-content:flex-end;}
.chat-time{display:inline-block;flex:0 0 auto;margin:0;font-size:11px;line-height:1.1;color:#bba9b7;text-align:inherit;font-weight:450;}
.chat-receipt{font-size:13px;letter-spacing:-.17em;padding-right:3px;white-space:nowrap;color:#b4a7b7;font-weight:650;}
.chat-receipt.read{color:#80d6fa;}
.chat-react-button{flex:0 0 25px;width:25px;height:27px;align-self:center;display:flex;align-items:center;justify-content:center;border:0;background:rgba(255,255,255,.045);color:#d3bfd0;border-radius:50%;font-size:19px;opacity:.75;padding:0;}
.chat-react-button:focus-visible{outline:2px solid #ff83b9;}
.chat-reaction-chips{display:flex;gap:3px;padding:1px 4px;font-size:16px;min-height:19px;}
.chat-reaction-chips span{background:#302030;border:1px solid rgba(255,255,255,.09);border-radius:15px;padding:0px 5px;line-height:21px;box-shadow:0 1px 3px #0002;}
.chat-reaction-picker{display:flex;align-items:center;gap:3px;flex-wrap:nowrap;max-width:100%;padding:5px;background:#2c202e;border:1px solid rgba(252,123,187,.30);border-radius:22px;box-shadow:0 5px 18px #0005;}
.chat-reaction-picker button{background:transparent;border:0;border-radius:16px;font-size:22px;min-width:32px;height:32px;padding:0;display:flex;align-items:center;justify-content:center;}
.chat-reaction-picker button.selected{background:#6d2e58;}
.chat-composer textarea{font-size:16px;}
@media(max-width:365px){.chat-reaction-picker button{font-size:19px;min-width:28px;height:30px}.chat-entry-main{max-width:calc(100% - 30px)}.chat-message-text{font-size:15.5px}}

/* v0.3.0 — Réactions Messenger : appui long, avatars bas de bulle, pastilles superposées. */
.chat-entry,.chat-entry.mine{display:flex;flex-direction:row;align-items:stretch;gap:0;width:100%;}
.chat-entry{justify-content:flex-start;margin:0 0 6px;}
.chat-entry.mine{justify-content:flex-end;}
.chat-entry.has-reaction{margin-bottom:12px;}
.chat-entry-main,.chat-entry.mine .chat-entry-main{
 display:flex;flex-direction:column;align-items:flex-start;max-width:100%;width:fit-content;min-width:0;flex:0 1 auto;gap:0;
}
.chat-entry.mine .chat-entry-main{align-items:flex-end;}
.chat-message-line{display:flex;align-items:flex-end;gap:7px;max-width:100%;min-width:0;}
.chat-entry.mine .chat-message-line{flex-direction:row-reverse;}
.chat-message-line .chat-entry-avatar{flex:0 0 28px;align-self:flex-end;}
.chat-message-line .chat-entry-avatar .avatar{width:28px;height:28px;}
.chat-message-line .chat-bubble-row,
.chat-entry.mine .chat-message-line .chat-bubble-row{
 display:flex;flex-direction:row;align-items:stretch;position:relative;gap:0;
 flex:0 1 auto;min-width:0;max-width:calc(100% - 35px);width:fit-content;
}
.chat-message-line .chat-bubble-row .chat-bubble{flex:0 1 auto;min-width:0;max-width:100%;padding:11px 13px;}
.chat-message-line .chat-bubble[data-react-target]{
 touch-action:pan-y;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;
 cursor:default;
}
.chat-message-line .chat-bubble[data-react-target]:focus-visible{outline:2px solid #ffa4d0;outline-offset:3px;}
.chat-entry .chat-message-meta{align-self:flex-start;width:auto;min-height:15px;margin:3px 0 0 35px;padding:0 2px;}
.chat-entry.mine .chat-message-meta{align-self:flex-end;margin:3px 35px 0 0;}
.chat-react-button,.chat-reaction-picker{display:none!important;}
.chat-reaction-chips{
 position:absolute;z-index:2;bottom:-14px;right:8px;left:auto;
 display:flex;align-items:center;gap:2px;padding:3px 7px;
 border:1px solid rgba(255,255,255,.08);border-radius:999px;
 background:rgba(35,22,38,.64);box-shadow:0 5px 13px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.07);
 -webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);
 font-size:22px;line-height:1.15;min-height:31px;
}
.chat-entry.mine .chat-reaction-chips{left:8px;right:auto;}
.chat-reaction-chips span{background:transparent;border:0;box-shadow:none;padding:0 1px;font-size:23px;line-height:1.1;}
.chat-reaction-popover{
 position:fixed;z-index:10000;width:min(380px,calc(100vw - 18px));
 max-width:calc(100vw - 18px);padding:9px 7px;
 border-radius:19px;border:1px solid rgba(255,158,202,.38);
 background:linear-gradient(155deg,#352437,#211923);color:#fff;
 box-shadow:0 10px 33px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.05);
 -webkit-user-select:none;user-select:none;
}
.chat-reaction-popover-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:3px;align-items:center;}
.chat-reaction-popover button{
 display:flex;justify-content:center;align-items:center;min-width:0;width:100%;
 min-height:36px;padding:3px 0;border:0;border-radius:12px;
 background:transparent;font-size:25px;line-height:1.05;
 font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;
}
.chat-reaction-popover button.selected{background:rgba(244,95,159,.25);outline:1px solid #ff85bd;}
.chat-reaction-popover button:focus-visible{outline:2px solid #ff85bd;}
.chat-reaction-popover button:disabled{opacity:.4;}
.chat-reaction-popover-error{font-size:12px;text-align:center;padding:4px;color:#ffc7d9;}
@media(max-width:360px){
 .chat-reaction-popover{padding:8px 5px;}
 .chat-reaction-popover-grid{gap:2px;}
 .chat-reaction-popover button{font-size:23px;min-height:34px;}
 .chat-message-line{gap:5px;}
 .chat-message-line .chat-entry-avatar{flex-basis:25px;}
 .chat-message-line .chat-entry-avatar .avatar{width:25px;height:25px;}
 .chat-message-line .chat-bubble-row{max-width:calc(100% - 30px);}
 .chat-entry .chat-message-meta{margin-left:30px;}
 .chat-entry.mine .chat-message-meta{margin-right:30px;}
}

/* v0.3.1 : emoji envoyé seul en grand, autres bulles inchangées. */
.chat-bubble .chat-message-emoji-only{font-size:46px;line-height:1.16;letter-spacing:0;white-space:nowrap;}
@media(max-width:360px){.chat-bubble .chat-message-emoji-only{font-size:40px;}}


/* v0.3.2 — Réactions individuelles et informations toujours lisibles. */
.chat-shell .chat-scroll{
  scrollbar-width:none; /* Firefox */
  -ms-overflow-style:none;
  -webkit-overflow-scrolling:touch;
}
.chat-shell .chat-scroll::-webkit-scrollbar{display:none;width:0;height:0;} /* Chrome / Android / Safari */

/* Une réaction chevauche la bulle, jamais l'heure ni les confirmations de lecture. */
.chat-entry.has-reaction .chat-message-meta{margin-top:21px;}
.chat-entry.has-reaction{margin-bottom:5px;}
.chat-reaction-chips{
  bottom:-11px;right:11px;left:auto;
  padding:0;gap:4px;min-height:28px;
  background:transparent;border:none;border-radius:0;
  box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;
}
.chat-entry.mine .chat-reaction-chips{left:2px;right:auto;}
.chat-reaction-chips span.chat-reaction-chip{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:32px;height:29px;
  padding:0 7px 1px;border-radius:999px;
  font-size:18px;line-height:1;
  border:none;
  box-shadow:0 5px 12px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05);
}
.chat-reaction-chips span.chat-reaction-chip.tone-rose-1{background:rgba(112,38,78,.92);}
.chat-reaction-chips span.chat-reaction-chip.tone-rose-2{background:rgba(93,37,73,.92);}
.chat-reaction-chips span.chat-reaction-chip.tone-blue-1{background:rgba(35,72,103,.92);}
.chat-reaction-chips span.chat-reaction-chip.tone-blue-2{background:rgba(44,55,93,.92);}
.chat-reaction-chips span.chat-reaction-chip.tone-violet-1{background:rgba(81,64,112,.92);}
.chat-reaction-chips span.chat-reaction-chip.tone-violet-2{background:rgba(61,52,92,.92);}
.chat-reaction-chips span.chat-reaction-chip.tone-teal-1{background:rgba(37,84,91,.92);}
.chat-reaction-chips span.chat-reaction-chip.tone-teal-2{background:rgba(41,75,81,.92);}
.chat-reaction-chips span.chat-reaction-chip.tone-slate-1{background:rgba(60,67,86,.92);}
.chat-reaction-chips span.chat-reaction-chip.tone-slate-2{background:rgba(53,61,84,.92);}
/* Pour les messages très courts, les réactions restent au bord de la bulle sans gêner les métadonnées. */
.chat-entry.has-reaction .chat-message-meta{position:relative;z-index:1;}

@media(max-width:360px){
  .chat-reaction-chips{bottom:-10px;right:9px;}
  .chat-entry.mine .chat-reaction-chips{left:0;}
  .chat-reaction-chips span.chat-reaction-chip{min-width:30px;height:27px;padding:0 6px 1px;font-size:17px;}
}


/* v0.3.4 — L'heure ne reste visible que sous le dernier message de chaque joueur.
   Sur les autres bulles, un appui bref dévoile ou masque l'heure. */
.chat-entry:not(.chat-time-visible) .chat-message-meta{display:none!important;}
.chat-entry.chat-time-visible .chat-message-meta{display:flex;}
.chat-entry.has-reaction:not(.chat-time-visible){margin-bottom:15px;}
.chat-entry.has-reaction.chat-time-visible .chat-message-meta{margin-top:21px;}
.chat-entry .chat-bubble[data-time-target]{cursor:pointer;}


/* v0.3.5 : titres de défis, pastille d'état et description repliable. */
.challenge-card-title{font-size:17px!important;line-height:1.3;margin:5px 0 11px!important;overflow-wrap:anywhere;}
.challenge-char-counter{text-align:right;color:#c9b2c3;font-size:12px;margin:-3px 2px 10px;font-variant-numeric:tabular-nums;}
.chat-context summary{padding:12px 14px!important;cursor:pointer;outline-offset:3px;}
.chat-context summary:after{content:none!important;display:none!important;}
.chat-context-header{display:flex;flex-direction:column;gap:8px;min-width:0;width:100%;}
.chat-context-heading{display:flex;align-items:baseline;gap:5px 8px;flex-wrap:wrap;min-width:0;}
.chat-context-heading .chat-context-title{font-size:14px;font-weight:650;color:#fff;white-space:normal;overflow-wrap:anywhere;line-height:1.35;}
.chat-context-heading .chat-context-status{font-size:11px;font-style:italic;font-weight:400;color:#d9a4c0;white-space:nowrap;}
.chat-context-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;}
.chat-context-points{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:5px 11px;border-radius:999px;font-weight:600;font-size:12px;color:#ffe4f0;background:linear-gradient(95deg,#90305f,#703453);white-space:nowrap;}
.chat-context-points svg{flex:0 0 16px;}
.chat-context-points.points-acquired{background:linear-gradient(95deg,#295a48,#285442);color:#dcffe9;}
.chat-context-points.points-closed{background:#4a3642;color:#e6c8d5;}
.chat-context-chevron{display:grid;place-items:center;width:33px;height:30px;border-radius:50%;background:rgba(255,255,255,.055);color:#fac3dd;flex:0 0 33px;}
.chat-context-chevron svg{transition:transform .18s ease;}
.chat-context[open] .chat-context-chevron svg{transform:rotate(180deg);}
.chat-context[open] .chat-context-title{display:inline;}
.chat-context p.chat-context-description{margin:0 12px 11px;padding:10px 2px 2px!important;border-top:1px solid rgba(255,255,255,.10);max-height:min(35dvh,260px);overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.48;color:#f3e5ec;overscroll-behavior:contain;}
.chat-shell .chat-context{max-height:none!important;overflow:visible!important;}
.chat-shell .chat-context summary{padding:9px 12px!important;}
.chat-shell .chat-context[open] .chat-context-title{display:inline;}
/* Recentrage visuel : descendre le glyphe sans modifier la position de la pastille. */
.chat-reaction-chips span.chat-reaction-chip{padding-top:3px!important;padding-bottom:0!important;}
@media(max-width:360px){.chat-reaction-chips span.chat-reaction-chip{padding-top:3px!important;padding-bottom:0!important;}}
@media(prefers-reduced-motion:reduce){.chat-context-chevron svg{transition:none;}}

/* v0.3.6 : en-tête monospace vertical, points codifiés et médias natifs. */
.chat-context summary{padding:7px 9px!important;min-height:42px!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:5px!important;}
.chat-context-header{width:100%;min-width:0;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;}
.chat-context-heading{flex:1 1 0!important;min-width:0!important;display:block!important;overflow:hidden!important;}
.chat-context-heading .chat-context-title,.chat-shell .chat-context-heading .chat-context-title,.chat-shell .chat-context[open] .chat-context-title{display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;font-size:12px!important;line-height:1.25!important;}
.chat-context-bottom{display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;min-width:0!important;}
.chat-context-points{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;font-size:11px;font-weight:650;white-space:nowrap;background:#84305e;color:#ffe8f2;}
.chat-context-points svg{flex:0 0 15px!important;display:block;}
.chat-context-points.points-pending{background:#84305e;color:#ffe8f2;}
.chat-context-points.points-acquired{background:#17634e;color:#e1fff0;}
.chat-context-points.points-lost{background:#943e49;color:#ffe5e6;}
.chat-context-points.points-proposed,.chat-context-points.points-closed{background:#514150;color:#eee0eb;}
.chat-context-chevron{height:25px!important;width:25px!important;flex:0 0 25px!important;border-radius:50%;}
.chat-context-expanded{padding:0 11px 10px;}
.chat-context-expanded-title{font-size:13px;font-weight:650;color:#f2e1ec;overflow-wrap:anywhere;margin:1px 0 3px;}
.chat-context-expanded .chat-context-status{display:block;font-style:italic;font-size:11px;color:#d9a4c0;margin-bottom:8px;}
.chat-context p.chat-context-description{margin:0!important;padding:9px 0 0!important;border-top:1px solid rgba(255,255,255,.11);max-height:min(35dvh,260px);overflow-y:auto;line-height:1.48;}
.chat-context summary:focus-visible{outline:2px solid #fa83b6;}
.challenge-heading .chat-context-points{font-size:12px;padding:7px 11px;}
/* Moins de place occupée, mais cibles tactiles de 44 px pour l'accessibilité. */
.chat-composer-row{align-items:center;gap:6px;}
.chat-attach{width:34px!important;height:34px!important;min-width:34px!important;align-self:center;border:0;border-radius:50%;font-family:inherit;font-size:24px!important;font-weight:400!important;padding:0;display:flex;justify-content:center;align-items:center;position:relative;}
.chat-attach:before{content:'';position:absolute;inset:-5px;}
.chat-send{width:40px!important;height:40px!important;min-width:40px!important;}
.chat-composer textarea{min-height:39px;padding:9px 12px;}
.chat-native-picker{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;}
.chat-media-menu{position:absolute;left:7px;bottom:calc(100% + 9px);width:min(310px,calc(100vw - 32px));padding:7px;background:#271b29;border:1px solid rgba(244,120,171,.24);border-radius:17px;box-shadow:0 14px 38px #000b;z-index:20;}
.chat-media-menu[hidden],#chat-media-preview[hidden]{display:none!important;}
.chat-media-menu button{display:flex;align-items:center;gap:11px;width:100%;min-height:52px;padding:8px 10px;text-align:left;border:0;border-radius:11px;background:transparent;color:#fff;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;}
.chat-media-menu button:hover,.chat-media-menu button:focus-visible{background:#463048;outline:0;}
.chat-media-menu button span:last-child{display:flex;flex-direction:column;gap:3px;}
.chat-media-menu button small{font-size:11px;color:#d9bfce;font-weight:400;}
.chat-media-choice-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:#60304e;color:#ffc1dc;font-size:19px;flex-shrink:0;}
.chat-media-preview{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:5px 3px 10px;}
.chat-media-tile{width:57px;height:57px;position:relative;flex-shrink:0;border-radius:9px;background:#382536;overflow:visible;}
.chat-media-tile img,.chat-media-tile video{width:100%;height:100%;object-fit:cover;border-radius:9px;display:block;}
.chat-media-video-symbol{position:absolute;left:21px;top:18px;color:#fff;text-shadow:0 1px 5px #000b;}
.chat-media-remove{position:absolute;right:-6px;top:-7px;width:22px;height:22px;border:0;border-radius:50%;background:#e94b88;color:#fff;font-size:17px;line-height:1;display:grid;place-items:center;cursor:pointer;}
.chat-media-count{margin-left:auto;color:#e4bfd1;font-size:11px;align-self:flex-end;}
.chat-media-error{color:#ffe3e3;background:#6d263b;border-radius:8px;padding:7px 9px;font-size:11px;width:100%;}
@media(max-width:365px){.chat-context-points{gap:4px;padding:4px 7px;font-size:10px;}.chat-context-heading .chat-context-title{font-size:11px!important;}}

/* v0.3.7 : miniatures carrées compactes, visionneuse modale et média unique. */
.chat-bubble .chat-media-open{
 display:block;position:relative;flex:0 0 auto;width:min(156px,42vw);height:auto;aspect-ratio:1/1;
 padding:0;margin:0;border:0;border-radius:10px;background:#1d1823;overflow:hidden;
 cursor:zoom-in;touch-action:manipulation;color:#fff;
}
.chat-bubble .chat-media-open .message-image,
.chat-bubble .chat-media-open .message-video{
 width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
 margin:0!important;display:block;object-fit:cover!important;object-position:center;
 border-radius:10px;
}
.chat-bubble .chat-media-open:focus-visible{outline:2px solid #ffb1d1;outline-offset:3px;}
.chat-media-video-open{cursor:pointer!important;}
.chat-media-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
 font-size:28px;color:white;text-shadow:0 2px 9px #000;pointer-events:none;
 background:rgba(0,0,0,.12);}
.chat-viewer{position:fixed;inset:0;z-index:100000;background:rgba(5,3,7,.98);
 display:flex;align-items:center;justify-content:center;color:white;overscroll-behavior:contain;
 -webkit-user-select:none;user-select:none;touch-action:none;}
.chat-viewer-stage{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;
 overflow:hidden;touch-action:none;}
.chat-viewer-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;
 object-fit:contain;transform-origin:center center;touch-action:none;will-change:transform;
 -webkit-user-drag:none;user-select:none;}
.chat-viewer-video{display:block;max-width:100vw;max-height:90dvh;width:auto;height:auto;z-index:1;
 touch-action:manipulation;}
.chat-viewer-close{position:absolute;right:max(12px,env(safe-area-inset-right));
 top:max(14px,env(safe-area-inset-top));z-index:5;width:44px;height:44px;
 border:1px solid rgba(255,255,255,.20);border-radius:50%;background:#2b202d;
 color:white;font:32px/1 system-ui,sans-serif;cursor:pointer;display:grid;place-items:center;}
.chat-viewer-close:focus-visible{outline:2px solid #fa85b6;}
.chat-viewer-hint{position:absolute;left:12px;right:12px;bottom:max(24px,env(safe-area-inset-bottom));
 pointer-events:none;text-align:center;color:#e3d8df;font:12px/1.35 system-ui,sans-serif;
 text-shadow:0 1px 6px #000;opacity:.75;}
.chat-media-preview .chat-media-count{display:none;}

/* v0.3.8 : logo sans signature dans le haut de la discussion uniquement. */
.chat-shell .chat-topbar .chat-logo-crop{
 display:block;flex:0 0 108px;width:108px;height:28px;max-height:28px;
 overflow:hidden;align-self:center;filter:drop-shadow(0 3px 8px #0004);
}
.chat-shell .chat-topbar .chat-logo-crop .chat-logo{
 display:block;width:108px!important;height:auto!important;max-width:none!important;
 object-fit:initial!important;filter:none!important;
}
@media(max-width:365px){
 .chat-shell .chat-topbar .chat-logo-crop{flex-basis:86px;width:86px;height:23px;max-height:23px;}
 .chat-shell .chat-topbar .chat-logo-crop .chat-logo{width:86px!important;}
}
@media(max-height:570px){
 .chat-shell .chat-topbar .chat-logo-crop{flex-basis:90px;width:90px;height:24px;max-height:24px;}
 .chat-shell .chat-topbar .chat-logo-crop .chat-logo{width:90px!important;}
}
/* Sablier fin avec sable visible, plus lisible dans les pastilles. */
.chat-context-points svg{width:18px!important;height:18px!important;flex:0 0 18px!important;}
/* La visionneuse ne montre plus de consigne permanente au bas de l'écran. */
.chat-viewer-hint{display:none!important;}
.chat-viewer-download{
 position:absolute;right:calc(max(12px,env(safe-area-inset-right)) + 55px);
 top:max(14px,env(safe-area-inset-top));z-index:6;width:44px;height:44px;
 border:1px solid rgba(255,255,255,.20);border-radius:50%;background:#2b202d;
 color:white;cursor:pointer;display:grid;place-items:center;padding:0;
}
.chat-viewer-download:focus-visible{outline:2px solid #fa85b6;outline-offset:2px;}
.chat-viewer-download:disabled{opacity:.55;cursor:progress;}

/* v0.3.9 : appui long sur les photos et vidéos sans le menu contextuel du système. */
.chat-shell .chat-media-open,
.chat-shell .chat-media-open .message-image,
.chat-shell .chat-media-open .message-video{
 -webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important;
 -webkit-user-drag:none!important;touch-action:pan-y;
}
/* Les bulles larges conservent l'heure juste sous le message. Sur une bulle
   étroite, le décalage de sécurité ne s'applique qu'en cas de collision mesurée. */
.chat-entry.has-reaction.chat-time-visible .chat-message-meta{margin-top:3px!important;}
.chat-entry.has-reaction.chat-time-visible.chat-reaction-tight .chat-message-meta{margin-top:21px!important;}

/* v0.3.10 : résultat centré, indépendant des messages des joueurs. */
.chat-shell .chat-scroll .chat-entry.chat-event-result{
 display:flex!important;flex-direction:row!important;justify-content:center!important;
 align-items:center!important;align-self:stretch!important;width:100%;margin:8px 0 10px!important;
}
.chat-event-result .chat-result-card{
 display:flex;flex-direction:column;align-items:center;gap:5px;
 width:fit-content;min-width:205px;max-width:min(90%,335px);
 padding:12px 17px;border-radius:17px;text-align:center;
 background:linear-gradient(140deg,#503b2a,#302529);
 border:1px solid rgba(235,189,122,.60);
 box-shadow:0 5px 18px rgba(0,0,0,.20);
 color:#fff;overflow-wrap:anywhere;
}
.chat-event-result .chat-result-heading{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:750;color:#edc68b;}
.chat-event-result .chat-result-title{font-size:16px;line-height:1.32;font-weight:700;}
.chat-event-result .chat-result-points{display:inline-flex;justify-content:center;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:normal;}
.chat-event-result .chat-result-points svg{flex:0 0 16px;}
.chat-event-result .chat-result-points.points-acquired{background:#17634e;color:#e1fff0;}
.chat-event-result .chat-result-points.points-lost{background:#943e49;color:#ffe5e6;}
.chat-event-result .chat-result-success{border-color:rgba(112,211,154,.48);background:linear-gradient(140deg,#264a3c,#202c2a);}
.chat-event-result .chat-result-success .chat-result-heading{color:#b9eacb;}
.chat-event-result .chat-result-failed{border-color:rgba(229,120,133,.40);background:linear-gradient(140deg,#513039,#33252c);}
.chat-event-result .chat-result-failed .chat-result-heading{color:#ffd4dc;}


/* v0.3.11 : événement de résultat ludique, doux et sensuel, sans aucun contour. */
.chat-shell .chat-scroll .chat-entry.chat-event-result .chat-result-card{
 position:relative;isolation:isolate;
 border:0!important;outline:0!important;
 min-width:220px;max-width:min(90%,335px);
 padding:15px 20px 16px;gap:5px;border-radius:20px;
 background:radial-gradient(ellipse at 13% 7%,rgba(255,110,155,.25),transparent 48%),
            radial-gradient(ellipse at 95% 97%,rgba(255,102,137,.18),transparent 52%),
            linear-gradient(140deg,#512039,#291523 88%);
 box-shadow:0 8px 23px rgba(12,3,12,.34),inset 0 1px rgba(255,255,255,.055);
}
.chat-event-result .chat-result-heading{
 color:#ffc3dc;letter-spacing:.12em;font-size:10px;font-weight:700;
 display:flex;gap:8px;align-items:center;justify-content:center;
}
.chat-event-result .chat-result-heading span{font-size:12px;color:#ff8cb4;line-height:1;}
.chat-event-result .chat-result-title{color:#fff8fb;font-size:17px;font-weight:750;line-height:1.34;}
.chat-event-result .chat-result-subtitle{color:#f5b9d1;font-size:12px;line-height:1.35;margin:0 0 3px;text-align:center;}
.chat-event-result .chat-result-points{padding:7px 12px;font-size:12px;font-weight:650;border:0;box-shadow:none;}
.chat-event-result .chat-result-points.points-acquired{background:#17644e;color:#e5fff0;}
.chat-event-result .chat-result-points.points-lost{background:#963e49;color:#ffe4e5;}
.chat-shell .chat-scroll .chat-entry.chat-event-result .chat-result-card.chat-result-success{
 background:radial-gradient(ellipse at 8% 6%,rgba(255,119,159,.25),transparent 55%),
            radial-gradient(ellipse at 95% 95%,rgba(92,175,144,.14),transparent 56%),
            linear-gradient(140deg,#422537,#202926 92%);
}
.chat-shell .chat-scroll .chat-entry.chat-event-result .chat-result-card.chat-result-failed{
 background:radial-gradient(ellipse at 8% 6%,rgba(255,130,166,.18),transparent 53%),
            linear-gradient(140deg,#49303b,#291925 92%);
}
.chat-event-result .chat-result-success .chat-result-heading,
.chat-event-result .chat-result-failed .chat-result-heading{color:#ffc3dc;}

/* v0.3.12 : désactiver la sélection de texte Android dans l'interface de jeu.
   Les champs éditables conservent leur menu de copier-coller et la sélection. */
html,body,#root{
 -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
input,textarea,select,[contenteditable]:not([contenteditable="false"]),
[contenteditable]:not([contenteditable="false"]) *{
 -webkit-user-select:text!important;user-select:text!important;
 -webkit-touch-callout:default!important;
}

/* v0.3.13 : images historiques, preuves et pièces jointes sans menu long-press
   Android. Les miniatures ne captent plus directement l'appui natif : le bouton
   parent reçoit les événements, conserve l'ouverture au toucher bref et, si
   autorisé, laisse le gestionnaire de réactions recevoir l'appui long. */
.chat-shell .chat-media-open .message-image,
.chat-shell .chat-media-open .message-video{
 pointer-events:none!important;
}
.chat-shell .chat-media-open,
.chat-shell .chat-media-open *,
.chat-viewer-image{
 -webkit-touch-callout:none!important;
 -webkit-user-select:none!important;user-select:none!important;
 -webkit-user-drag:none!important;
}


/* v0.3.14 : duo reuni autour des photos et description voilee sur l'accueil. */
.duel-page .brand-compact{margin:0 auto 8px;max-width:min(195px,58vw)}
.duel-page .score-panel{padding-top:11px}
.duel-couple-heading{display:flex;align-items:center;justify-content:center;position:relative;gap:8px;margin:0 0 12px;padding:0 35px;min-height:40px}
.duel-couple-heading .duel-switch{min-width:0;flex:0 1 auto;display:flex;align-items:center;justify-content:center;gap:7px;text-align:center;font-size:19px;font-weight:760;padding:5px 0;max-width:100%;line-height:1.25}
.duel-couple-heading .duel-couple-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.duel-couple-heading .duel-couple-heart{font-size:22px;color:#ff7bb5;font-weight:550;flex:none}
.duel-couple-heading .duel-couple-chevron{font-size:21px;color:#ff7bb5;font-weight:400;flex:none}
.duel-couple-heading .duel-rename{position:absolute;right:0;top:1px;width:35px;height:35px;background:rgba(255,104,169,.075)}
.duel-page .score-panel .vs{margin-top:0}
.duel-page .challenge-unveil{margin:10px 0 13px;border-radius:17px;background:rgba(255,255,255,.047);overflow:hidden;position:relative}
.duel-page .challenge-unveil .challenge-content{margin:0;border-radius:0;background:none;padding:15px 16px 10px;line-height:1.55}
.duel-page .challenge-veiled{position:relative;overflow:hidden;transition:max-height .45s cubic-bezier(.22,1,.36,1),mask-image .28s ease,-webkit-mask-image .28s ease}
.duel-page .challenge-veiled-0{max-height:3.5em;-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.95) 0%,rgba(0,0,0,.58) 48%,transparent 100%);mask-image:linear-gradient(to bottom,rgba(0,0,0,.95) 0%,rgba(0,0,0,.58) 48%,transparent 100%)}
.duel-page .challenge-veiled-1{max-height:8em;-webkit-mask-image:linear-gradient(to bottom,black 0%,black 46%,transparent 100%);mask-image:linear-gradient(to bottom,black 0%,black 46%,transparent 100%)}
.duel-page .challenge-veiled-2{max-height:2000px;-webkit-mask-image:none;mask-image:none}
.duel-page .challenge-unveil-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:9px 12px 13px;background:linear-gradient(180deg,rgba(92,37,75,.12),rgba(111,36,76,.35));color:#ffbfdc;font-size:13px;font-weight:730;letter-spacing:.015em;min-height:41px;border-radius:0}
.duel-page .challenge-unveil-button:focus-visible{outline:2px solid #ff94c0;outline-offset:-3px}
.duel-page .challenge-unveil-button span:first-child{color:#ff82b2}
@media(max-width:360px){.duel-couple-heading .duel-switch{font-size:17px}.duel-couple-heading{padding:0 32px}.duel-couple-heading .duel-rename{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.duel-page .challenge-veiled{transition:none}}

/* v0.3.15 : accueil du duo. Titre epure, avatar aux couleurs de la palette et VS central. */
.duel-couple-heading .duel-couple-name{margin:0;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f374ad;font-size:19px;font-weight:730;line-height:1.3;text-align:center}
.duel-page .score-panel .vs{position:relative;isolation:isolate;}
.duel-page .score-panel .vs::after{content:'VS';position:absolute;top:30px;left:50%;transform:translate(-50%,-50%) rotate(-7deg);z-index:2;display:flex;align-items:center;justify-content:center;width:39px;height:39px;border-radius:50%;font-size:13px;font-weight:900;letter-spacing:.04em;color:#ffe5f0;background:linear-gradient(135deg,#84335e,#3b214b 68%,#273958);box-shadow:0 3px 12px #0007,0 0 0 2px #261626;pointer-events:none;}
.duel-page .score-card.player-tone-rose{--player-ring:#ff4b9d;--player-glow:rgba(255,75,157,.24)}
.duel-page .score-card.player-tone-blue{--player-ring:#55b9f2;--player-glow:rgba(85,185,242,.24)}
.duel-page .score-card.player-tone-violet{--player-ring:#b790f5;--player-glow:rgba(183,144,245,.24)}
.duel-page .score-card.player-tone-teal{--player-ring:#52d4b7;--player-glow:rgba(82,212,183,.24)}
.duel-page .score-card.player-tone-slate{--player-ring:#b1acbf;--player-glow:rgba(177,172,191,.20)}
.duel-page .score-card .avatar{border-color:var(--player-ring,#fd3d91);box-shadow:0 0 0 3px var(--player-glow,rgba(255,55,137,.10));}
/* Le menu reste en bas des pages courtes tout en suivant le defilement des pages longues. */
.app-shell:has(> .duel-page){display:flex;flex-direction:column;}
.app-shell > .duel-page{display:flex;flex-direction:column;flex:1 0 auto;min-height:calc(100dvh - 47px - env(safe-area-inset-top) - env(safe-area-inset-bottom));}
.duel-page .duel-tabs{margin-top:auto;flex-shrink:0;}
@media(max-width:360px){.duel-page .score-panel .vs::after{width:34px;height:34px;font-size:12px;top:26px}.duel-couple-heading .duel-couple-name{font-size:17px}}

/* v0.3.17 : conserver un espace lisible entre l historique et la navigation basse. */
.duel-page .duel-history-link{margin-bottom:18px;scroll-margin-bottom:110px;}

/* v0.3.18 : portraits carres arrondis et embleme VS hexagonal lumineux valide. */
.duel-page .score-panel .vs{position:relative;isolation:isolate;overflow:visible;gap:10px;}
.duel-page .score-panel .vs::after{content:none!important;display:none!important;}
.duel-page .score-card{position:relative;min-width:0;overflow:visible;padding:13px 5px 13px;border-radius:22px;}
.duel-page .score-card .avatar{display:block;width:clamp(78px,23vw,103px);height:clamp(78px,23vw,103px);max-width:calc(100% - 12px);margin:0 auto 10px;border-radius:24%;border:3px solid var(--player-ring,#fd3d91);box-shadow:0 0 0 3px var(--player-glow,rgba(255,55,137,.18)),0 0 14px var(--player-glow,rgba(255,55,137,.22)),inset 0 1px 3px #fff6;object-fit:cover;}
.duel-page .score-panel .duel-vs-emblem{position:absolute;left:50%;top:16px;transform:translateX(-50%);width:76px;height:110px;display:flex;align-items:center;justify-content:center;z-index:5;pointer-events:none;filter:drop-shadow(0 0 8px rgba(255,83,126,.45)) drop-shadow(0 2px 7px #0009);}
.duel-page .score-panel .duel-vs-emblem svg{display:block;width:100%;height:100%;overflow:visible;}
@media(max-width:360px){.duel-page .score-card .avatar{width:75px;height:75px;border-radius:23%;}.duel-page .score-panel .duel-vs-emblem{top:13px;width:65px;height:99px;}}
@media(prefers-reduced-motion:reduce){.duel-page .score-panel .duel-vs-emblem{transition:none;animation:none;}}

/* v0.3.20 : flamme coeur officielle sur lancer un defi, sans ombre. */
.duel-page .duel-launch-button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:62px;padding:10px 16px;line-height:1.2;}
.duel-page .duel-launch-flame{display:block;width:auto;height:43px;max-width:44px;object-fit:contain;filter:none!important;box-shadow:none!important;text-shadow:none!important;flex-shrink:0;pointer-events:none;}
.duel-page .duel-launch-button span{font-weight:750;}
@media(max-width:360px){.duel-page .duel-launch-button{gap:9px}.duel-page .duel-launch-flame{height:37px;}}

/* v0.3.20 : symetrie du medaillon, rayons dans les limites des cartes et VS Impact incline. */
.duel-page .score-panel .vs::before{content:"";position:absolute;z-index:4;pointer-events:none;left:50%;top:3px;transform:translateX(-50%);width:3px;height:140px;max-height:calc(100% - 6px);background:linear-gradient(to bottom,transparent 0%,rgba(255,188,120,.5) 16%,rgba(255,233,177,.98) 31%,#fff1bd 47%,#fff1bd 53%,rgba(255,233,177,.98) 69%,rgba(255,188,120,.5) 84%,transparent 100%);filter:drop-shadow(0 0 5px #ff8d71) drop-shadow(0 0 9px rgba(255,67,137,.8));}
.duel-page .score-panel .duel-vs-emblem{filter:drop-shadow(0 0 8px rgba(255,83,126,.45)) drop-shadow(0 2px 7px #0009);}
@media(max-width:360px){.duel-page .score-panel .vs::before{height:124px;}}

/* v0.3.25 : mise en page compacte de la création de défi */
.compose-head{margin-bottom:2px;justify-content:flex-start;}
.compose-brand{display:block;width:min(100%,320px);max-width:320px;margin:0 auto 8px;object-fit:contain;filter:none;}
.compose-launch-button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:62px;padding:10px 16px;line-height:1.2;}
.compose-launch-button .duel-launch-flame{display:block;width:auto;height:43px;max-width:44px;object-fit:contain;filter:none!important;box-shadow:none!important;text-shadow:none!important;flex-shrink:0;pointer-events:none;}
.compose-launch-button span{font-weight:750;}
@media(max-width:360px){.compose-brand{max-width:min(290px,85vw)}.compose-launch-button{gap:9px}.compose-launch-button .duel-launch-flame{height:37px;}}

/* v0.3.26 : formulaire de defi plus compact et sans bordures des champs. */
.compose-brand{width:min(195px,58vw);max-width:min(195px,58vw);margin:0 auto 8px;display:block;object-fit:contain;filter:none;}
@media(max-width:360px){.compose-brand{width:min(180px,58vw);max-width:min(180px,58vw);}}
.compose-form input:not([type=checkbox]),.compose-form textarea,.compose-form select{
 box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;
 background:#39273c;border:0;outline:0;border-radius:15px;color:#fff;
 box-shadow:none;transition:background-color .15s,box-shadow .15s;
}
.compose-form input:focus,.compose-form textarea:focus,.compose-form select:focus{
 border:0;background:#483049;box-shadow:inset 0 0 0 1px rgba(255,119,172,.40);
}
.compose-form textarea[name="content"]{resize:vertical;min-height:125px;max-height:390px;overflow-y:auto;}
.compose-form label{min-width:0;max-width:100%;}
.compose-form .compose-launch-button:disabled{opacity:.48;filter:saturate(.65);}

/* v0.3.27 : toutes les pages utilisent exactement le bouton Retour de la messagerie.
   Ne pas modifier .chat-back ni .chat-shell .chat-back : le modèle reste inchangé. */
.app-head .chat-back{width:37px;height:37px;flex:0 0 37px;border-radius:12px;font-size:32px;}
.app-head{min-height:51px;}

/* Éviter que la règle des titres d’en-tête épaississe la flèche. */
.app-head .chat-back span{font-weight:normal;}

/* 0.3.28 : icônes pleines du menu Duels et compteur de notifications non lues. */
.duel-tabs .duel-tab-symbol{position:relative;display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;color:#ff7bb5;line-height:1;flex-shrink:0}
.duel-tabs .duel-tab-symbol svg{display:block;width:24px;height:24px}
.duel-tabs .duel-tab-badge{position:absolute;top:-5px;left:17px;min-width:17px;height:17px;padding:0 4px;border-radius:20px;display:flex;align-items:center;justify-content:center;font-size:10px;line-height:1;font-weight:850;color:#fff;background:#fb397f;box-shadow:0 0 0 2px #211426;font-variant-numeric:tabular-nums;pointer-events:none}
