/* Teranga — rétention (quêtes, coffre, ligue, nouveautés, rappels). Charte : variables de style.css, rien de nouveau. */
.ret-nouveau { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--rouge); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .02em; vertical-align: 2px; line-height: 1.5; }
html.nuit .ret-nouveau { background: var(--jaune); color: var(--encre-jaune); }

/* quêtes du jour */
.ret-quetes { padding: 14px 16px 16px; }
.ret-sous { margin: 0 0 4px !important; font-size: 15px !important; }
.ret-quete { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; border-top: 1px solid var(--bord);
  padding: 12px 0; text-align: left; color: var(--texte); min-height: 56px; }
.ret-quete:first-of-type { border-top: 0; }
.ret-q-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--ciel); display: grid; place-items: center; font-size: 20px; flex: none; }
.ret-quete.faite .ret-q-ico { background: var(--vert-pale); color: var(--vert); font-weight: 800; }
.ret-q-corps { flex: 1; min-width: 0; }
.ret-q-titre { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.ret-quete .mini-barre { display: block; margin-top: 7px; }
.ret-q-nb { font-size: 14px; font-weight: 800; color: var(--doux); white-space: nowrap; }
.ret-quete.faite .ret-q-nb { color: var(--vert); }
.ret-coffre { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--sable-2);
  color: var(--doux); font-size: 15px; font-weight: 600; }
.ret-coffre > span:first-child { font-size: 22px; }
.ret-coffre.ouvert { background: var(--vert-pale); color: var(--vert); }
.ret-coffre-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ret-coffre-ico { font-size: 22px; display: inline-block; animation: ret-frisson 2.4s ease-in-out infinite; }
@keyframes ret-frisson { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-10deg); } 88% { transform: rotate(9deg); } 92% { transform: rotate(-6deg); } 96% { transform: rotate(4deg); } }

/* animation du coffre (sobre : la boîte saute, un éclat, les points montent) */
.ret-coffre-anim { position: relative; height: 120px; display: grid; place-items: center; }
.ret-c-boite { font-size: 72px; display: block; animation: ret-saut .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.ret-c-eclat { position: absolute; top: 4px; font-size: 34px; opacity: 0; animation: ret-eclat .9s .35s ease-out both; }
.ret-coffre-anim.calme .ret-c-boite, .ret-coffre-anim.calme .ret-c-eclat { animation: none; opacity: 1; }
@keyframes ret-saut { 0% { transform: scale(.6) translateY(20px); } 55% { transform: scale(1.12) translateY(-8px); } 100% { transform: none; } }
@keyframes ret-eclat { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6) translateY(-14px); } }
.ret-c-points { font-size: 20px !important; color: var(--texte) !important; margin-top: 4px !important; }
.ret-c-points b { font-size: 34px; color: var(--kriolu); font-variant-numeric: tabular-nums; }
.feuille h2.centre, .feuille p.centre { text-align: center; }
.feuille h2 { margin: 6px 0 0; font-size: 23px; line-height: 1.25; }
.feuille > p { color: var(--doux); }

/* nouveautés */
.ret-nouveautes { padding-top: 6px; padding-bottom: 12px; }
.ret-nouveautes .resultat { align-items: center; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.ret-n-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--corail-pale); display: grid; place-items: center; font-size: 20px; flex: none; }
.ret-prochaine { margin: 10px 0 0 !important; padding-top: 10px; border-top: 1px solid var(--bord); font-size: 15px !important; font-weight: 600; }

/* ligue */
.ret-ligue-tete { text-align: center; }
.ret-ligue-tete h2 { margin: 10px 0 4px; font-size: 24px; }
.ret-l-iles { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; padding: 3px 0; }
.ret-l-ile { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--sable-2); opacity: .45; }
.ret-l-ile.passee { opacity: .8; }
.ret-l-ile.ici { opacity: 1; background: var(--jaune-pale); outline: 2px solid var(--jaune); transform: scale(1.18); }
.ret-l-chrono { font-weight: 700; color: var(--texte) !important; }
.ret-l-groupe { list-style: none; padding: 6px 12px; margin-top: 12px; }
.ret-l-ligne { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-top: 1px solid var(--bord); min-height: 48px; }
.ret-l-ligne:first-child { border-top: 0; }
.ret-l-rang { width: 30px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.ret-l-nom { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ret-l-nom small { color: var(--doux); font-weight: 700; }
.ret-l-xp { font-weight: 700; color: var(--doux); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ret-l-ligne.zone-monte .ret-l-rang { color: var(--vert); }
.ret-l-ligne.zone-descend .ret-l-rang { color: var(--corail); }
.ret-l-ligne.moi { background: var(--ciel); border-radius: 12px; border-top-color: transparent; }
.ret-l-ligne.moi + .ret-l-ligne { border-top-color: transparent; }
.ret-l-sep { font-size: 13px; font-weight: 800; padding: 8px 6px 6px; letter-spacing: .02em; }
.ret-l-sep.monte { color: var(--vert); }
.ret-l-sep.descend { color: var(--corail); border-top: 2px dashed var(--corail-pale); }
.ret-l-res { font-size: 66px; text-align: center; margin: 8px 0 0; }
.ret-l-res.anime { animation: ret-saut .7s cubic-bezier(.3, 1.6, .5, 1) both; }

/* interrupteurs */
.ret-inter { display: flex; align-items: center; gap: 14px; padding: 14px 0 4px; cursor: pointer; position: relative; min-height: 52px; }
.ret-inter + .ret-inter { border-top: 1px solid var(--bord); margin-top: 10px; }
.ret-i-txt { flex: 1; display: flex; flex-direction: column; }
.ret-i-txt b { font-weight: 700; font-size: 16px; }
.ret-i-txt small { color: var(--doux); font-size: 14.5px; margin-top: 2px; line-height: 1.4; }
.ret-inter input { position: absolute; opacity: 0; width: 52px; height: 32px; right: 0; margin: 0; cursor: pointer; }
.ret-i-piste { width: 52px; height: 32px; border-radius: 16px; background: var(--bord); flex: none; position: relative; transition: background .15s; }
.ret-i-piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(6, 26, 64, .3); transition: transform .15s; }
.ret-inter input:checked + .ret-i-piste { background: var(--vert); }
html.nuit .ret-inter input:checked + .ret-i-piste { background: #2f9e64; }
.ret-inter input:checked + .ret-i-piste::after { transform: translateX(20px); }
.ret-inter input:focus-visible + .ret-i-piste { outline: 3px solid var(--lien); outline-offset: 2px; }
.ret-inter input:disabled + .ret-i-piste { opacity: .45; }
.ret-inter input:disabled { cursor: not-allowed; }

/* rappels */
.ret-heure { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-weight: 700; }
.ret-heure input { font: inherit; font-weight: 700; font-size: 18px; padding: 8px 12px; border: 1.5px solid var(--bord); border-radius: 12px;
  background: var(--sable); color: var(--texte); min-height: 48px; }
.ret-ios { margin-top: 12px !important; font-size: 14.5px !important; padding: 10px 12px; border-radius: 12px; background: var(--sable-2); }
.ret-cloche { font-size: 58px; text-align: center; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .ret-coffre-ico, .ret-c-boite, .ret-c-eclat, .ret-l-res.anime { animation: none !important; opacity: 1; } }
html.nuit .ret-l-ile { opacity: .7; background: var(--ciel); } html.nuit .ret-l-ile.ici { opacity: 1; background: var(--jaune-pale); }
/* nouveauté offerte aux comptes gratuits pendant sa semaine : mention douce, pas de serrure */
.ret-offert { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 700; color: var(--vert); }
.ret-offert::before { content: "🎁 "; }
