:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
[hidden]{display:none!important}
img{max-width:100%}

/* Layout : colonne téléphone centrée ; le Fort en tours illustrées à faire défiler ; menu de 5 pictos, le Fort au centre ; le Navire en plein écran. Thème unique assumé (charte Fort Braillard). */
:root{
  --navy:#14294a; --navy-2:#1e3a63; --gold:#f5b335; --gold-deep:#d9931a;
  --stone:#e6eaf0; --paper:#f6f7fa; --ink:#14294a; --muted:#5d6b82; --line:#d5dbe5;
  --eru:#3d6fb6; --fra:#2f8a5b; --sag:#7a5aa6; --aud:#c8463d; --tig:#e07a1f;
  --display:"Poppins", system-ui, -apple-system, sans-serif;
  --body:"Poppins", system-ui, -apple-system, sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{height:100%}
body{background:var(--navy);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.45;margin:0}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.app{max-width:460px;margin:0 auto;min-height:100%;background:var(--paper);display:flex;flex-direction:column}
.gut{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}

.proto{background:#0c1a30;color:#9fb0c9;font-size:11px;display:flex;gap:8px;align-items:center;justify-content:space-between;padding-block:6px;flex-wrap:wrap}
.seg{display:flex;background:#1a2c4a;border-radius:99px;padding:2px}
.seg button{padding:3px 10px;border-radius:99px;color:#c9d3e3;font-size:11px}
.seg button[aria-pressed="true"]{background:var(--gold);color:var(--navy);font-weight:600}
.proto .reset{text-decoration:underline;color:#9fb0c9;font-size:11px}

header.top{background:var(--navy);color:#fff;padding-block:10px;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:env(safe-area-inset-top,0px);z-index:6}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--navy)}
header.top img{height:38px;width:auto}
.stats{display:flex;gap:6px}
.chip{display:flex;align-items:center;gap:5px;background:var(--navy-2);border-radius:99px;padding:5px 11px;font-weight:600;font-size:14px;font-variant-numeric:tabular-nums}
.chip svg{width:18px;height:18px}

main{flex:1;padding-block:18px 110px;display:flex;flex-direction:column;gap:18px}
h1,h2,h3{font-family:var(--display);font-weight:700;margin:0;text-wrap:balance;color:var(--navy)}
h1{font-size:26px;line-height:1.15;letter-spacing:-.01em} h2{font-size:19px;line-height:1.2} h3{font-size:17px}
p{margin:0}
.eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600}
.muted{color:var(--muted)}

/* ===== Le Fort : les tours ===== */
.jump{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.jump button{flex:none;font-size:11px;font-weight:600;border-radius:99px;padding:6px 8px;color:#fff}
.bld{display:flex;flex-direction:column;align-items:center;gap:10px;scroll-margin-top:70px;padding-top:8px}
.bld-title{text-align:center}
.bld-title h2{font-size:26px;letter-spacing:.06em;text-transform:uppercase}
.bld-title p{font-size:13px;color:var(--muted)}
.tower{width:min(280px,86%);display:flex;flex-direction:column;align-items:center}
.flag{display:flex;flex-direction:column;align-items:center;margin-bottom:-2px;position:relative}
.flag::before{content:"";width:12px;height:12px;border-radius:50%;background:var(--gold);margin-bottom:-2px}
.flag span{position:relative;background:var(--pc);color:#fff;font-weight:800;font-size:13px;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;padding:9px 30px;clip-path:polygon(0 0,100% 0,93% 50%,100% 100%,0 100%,7% 50%);box-shadow:inset 0 -4px 0 rgba(0,0,0,.18)}
.flag i{width:4px;height:20px;background:var(--navy)}
.roof{width:118%;height:78px;background:linear-gradient(90deg,var(--pc) 50%,color-mix(in srgb,var(--pc) 78%,#000) 50%);clip-path:polygon(50% 0,100% 100%,0 100%)}
.ring{width:110%;height:14px;background:#c5cedb;border-radius:3px}
.crenel{width:106%;height:18px;background:repeating-linear-gradient(90deg,#d3dae4 0 24px,transparent 24px 38px);border-bottom:4px solid #c5cedb}
.floor{position:relative;width:100%;height:96px;background-color:#e3e8ef;background-image:linear-gradient(#ccd4df 2px,transparent 2px),linear-gradient(90deg,#ccd4df 2px,transparent 2px);background-size:100% 24px,46px 24px;border-inline:4px solid #c5cedb;border-bottom:5px solid #c5cedb}
.floor .lbl{position:absolute;left:6px;top:5px;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);background:rgba(255,255,255,.75);border-radius:6px;padding:1px 6px}
.base{width:100%;height:70px;background-color:#e3e8ef;background-image:linear-gradient(#ccd4df 2px,transparent 2px),linear-gradient(90deg,#ccd4df 2px,transparent 2px);background-size:100% 24px,46px 24px;border-inline:4px solid #c5cedb;position:relative}
.base::after{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:44px;height:52px;background:var(--navy);border-radius:22px 22px 0 0}
.ground{width:150%;max-width:calc(100vw - 32px);height:10px;background:#c5cedb;border-radius:6px}
.court{width:100%;display:flex;flex-direction:column;align-items:center}
.court .crenel{width:100%}
.court .floor{background-color:#efe6d2;background-image:linear-gradient(#e2d5b8 2px,transparent 2px),linear-gradient(90deg,#e2d5b8 2px,transparent 2px);border-color:#d8c9a6}
.tiger{font-size:46px;line-height:1;margin-bottom:-6px}
.kb{position:absolute;transform:translate(-50%,-50%);width:52px;height:52px;border-radius:50%;background:#fff;border:3px solid var(--pc);box-shadow:0 4px 0 color-mix(in srgb,var(--pc) 70%,#000);display:grid;place-items:center;transition:transform .12s}
.kb:active{transform:translate(-50%,-46%)}
.kb svg{width:26px;height:26px}
.kb.got{background:var(--pc)}
.kb.or{border-color:var(--gold);box-shadow:0 4px 0 var(--gold-deep);background:#fff7e0}
.kb.or.got{background:var(--gold)}
.kb .n{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:99px;background:var(--navy);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 5px;box-shadow:0 0 0 2px #fff}
.kb .st{position:absolute;bottom:-6px;right:-4px;font-size:13px}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--muted);justify-content:center}
.legend span{display:flex;align-items:center;gap:6px}
.legend i{width:14px;height:14px;border-radius:50%;border:2px solid var(--navy);background:#fff}

.tw-img{position:relative;width:100%;max-width:400px}
.tw-img img{display:block;width:100%;height:auto;mix-blend-mode:multiply}
.tw-img .kb{width:46px;height:46px;box-shadow:0 4px 0 color-mix(in srgb,var(--pc) 70%,#000),0 6px 14px rgba(0,0,0,.25)}
/* ===== Ma progression ===== */
.kr{width:100%;max-width:300px;height:auto}
/* ===== Trésor ===== */
.mini-tr{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#fff;background:var(--navy);border-radius:99px;padding:7px 16px;align-self:flex-start;font-variant-numeric:tabular-nums;box-shadow:0 3px 0 #0c1a30}
.mini-tr .mk{display:flex;gap:1px}
.mini-tr svg{width:17px;height:17px}
.mini-tr b{color:var(--gold)}
.chests{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.chest-card{background:#fff;border:2px solid var(--line);border-bottom-width:5px;border-radius:20px;padding:14px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.chest-card.wide{grid-column:1/-1}
.chest-card.wide .cs{max-width:150px}
.chest-card .cs{width:100%;max-width:120px}
.chest-card b{font-size:15px;font-weight:700}
.chest-card small{font-size:12px;color:var(--muted)}
.chest-card.locked b{color:var(--muted)}
.chest-card:active{transform:translateY(3px);border-bottom-width:2px}
.ready-card{display:flex;align-items:center;gap:12px;background:var(--navy);color:#fff;border-radius:20px;padding:12px 16px;text-align:left;box-shadow:0 5px 0 #0c1a30}
.ready-card .wig{flex:none;width:96px;animation:wiggle 2s infinite}
.ready-card b{display:block;font-size:17px}
.ready-card small{color:#c9d3e3;font-size:12px}
@keyframes wiggle{0%,80%,100%{transform:rotate(0)}85%{transform:rotate(-7deg)}90%{transform:rotate(7deg)}95%{transform:rotate(-4deg)}}
.prog{background:var(--navy);color:#fff;border-radius:22px;padding:18px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.prog h2{color:#fff}
.prog svg.tr{width:190px;height:190px}
.prog .sub{font-size:13px;color:#c9d3e3}
.prog .pl{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.prog .pl span{font-size:11px;font-weight:600;padding:3px 9px;border-radius:99px;background:#2a4570;color:#9fb0c9}
.prog .pl span.on{color:#fff}
.nums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.num{border-radius:16px;padding:14px 6px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#fff;box-shadow:0 4px 0 rgba(0,0,0,.18)}
.num:nth-child(1){background:var(--gold);color:var(--navy)}
.num:nth-child(2){background:var(--navy)}
.num:nth-child(3){background:var(--tig)}
.num .ico{width:22px;height:22px}
.num b{display:block;font-family:var(--display);font-size:26px;font-weight:800;line-height:1.1;color:inherit;font-variant-numeric:tabular-nums}
.num small{font-size:11px;font-weight:600;color:inherit;opacity:.9;line-height:1.25}
.bars{display:flex;flex-direction:column;gap:8px}
.bars div{display:grid;grid-template-columns:120px 1fr 24px;gap:8px;align-items:center;font-size:13px}
.bars i{display:block;height:10px;border-radius:99px;background:var(--stone);overflow:hidden}
.bars i b{display:block;height:100%;border-radius:99px}

/* ===== Le Fort ===== */
.fort{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.place{border-radius:18px;padding:14px;color:#fff;display:flex;flex-direction:column;gap:4px;text-align:left;min-height:118px;position:relative;overflow:hidden}
.place h3{color:#fff;font-size:18px}
.place small{opacity:.85;font-size:12px}
.place b{font-variant-numeric:tabular-nums;margin-top:auto;font-size:13px}
.place.wide{grid-column:1/-1;min-height:100px}
.place svg.deco{position:absolute;right:-8px;bottom:-8px;width:74px;height:74px;opacity:.18}
.klist{display:flex;flex-direction:column;gap:8px}
.krow{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px 12px;text-align:left;width:100%}
.krow .t{flex:1;min-width:0;font-size:14px;font-weight:500;line-height:1.3}
.tag{flex:none;font-size:11px;font-weight:600;border-radius:99px;padding:2px 8px;background:var(--stone);color:var(--muted)}
.tag.or{background:#fff1cf;color:#8a5a00}
.dot{flex:none;width:12px;height:12px;border-radius:50%}
.back{display:inline-flex;gap:6px;align-items:center;font-size:14px;font-weight:600;color:var(--muted)}

/* ===== Trésor ===== */
.coffres{display:flex;flex-direction:column;gap:10px}
.tier{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px}
.tier .ic{flex:none;width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:22px;background:var(--stone)}
.tier.off{opacity:.5}
.tier b{display:block;font-size:14px}
.tier small{color:var(--muted);font-size:12px}
.blasons{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.bl{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;font-size:10px;font-weight:600;color:var(--muted)}
.bl svg{width:100%;max-width:58px;height:auto}
.bl.on{color:var(--navy)}
.opened-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.op-card{background:#fff8e6;border:2px solid #f3d28a;border-radius:20px;padding:12px 10px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.op-card .cs{width:100%;max-width:110px}
.op-card b{font-size:14px}
.op-card small{font-size:12px;color:var(--muted);line-height:1.3}
.op-st{margin-top:6px;font-size:11px;font-weight:700;color:#8a5a00;background:#ffe9b0;border-radius:99px;padding:2px 10px}
.opened{font-size:13px;display:flex;flex-direction:column;gap:6px}
.opened div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}

/* ===== Équipage ===== */
.lrow{display:grid;grid-template-columns:24px 36px 1fr auto;align-items:center;gap:10px;padding:9px 4px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.lrow.me{background:#fff6e2;border-radius:12px;border-bottom-color:transparent;padding-inline:8px}
.rk{font-family:var(--display);font-weight:700;font-size:17px;color:var(--muted);text-align:center}
.av{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:13px;color:#fff;background:var(--navy-2)}
.nm{font-weight:600;font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc{display:flex;align-items:center;gap:4px;font-weight:700}
.sc svg{width:16px;height:16px}
.feed{display:flex;flex-direction:column;gap:8px}
.fi{display:flex;gap:10px;align-items:center;font-size:13px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.fi .t{flex:1;min-width:0}
.cheer{flex:none;font-size:12px;font-weight:600;border:1px solid var(--line);border-radius:99px;padding:4px 10px;background:#fff}
.cheer[aria-pressed="true"]{background:var(--gold);border-color:var(--gold)}
.note{font-size:12px;color:var(--muted);background:var(--stone);border-radius:12px;padding:10px 12px}

/* ===== commun ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--gold);color:var(--navy);font-weight:700;border-radius:14px;padding:13px 18px;box-shadow:0 4px 0 var(--gold-deep);width:100%}
.btn:active{transform:translateY(2px);box-shadow:0 2px 0 var(--gold-deep)}
.btn.ghost{background:#fff;border:1px solid var(--line);box-shadow:none}
.btn:disabled{opacity:.5;cursor:not-allowed}
nav.tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:460px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding:6px max(8px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));z-index:5}
nav.tabs button{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:600;color:var(--muted);padding:6px 0;border-radius:12px;position:relative}
nav.tabs button svg{width:24px;height:24px}
nav.tabs button[aria-current="page"]{color:var(--navy);background:var(--stone)}
.badge{position:absolute;top:2px;left:calc(50% + 8px);background:var(--aud);color:#fff;font-size:10px;border-radius:99px;padding:0 5px;line-height:16px}

.sheet-bg{position:fixed;inset:0;background:rgba(10,20,40,.55);z-index:20;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:var(--paper);width:100%;max-width:460px;border-radius:22px 22px 0 0;padding:20px max(16px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:14px;max-height:90%;overflow:auto;animation:up .25s ease-out}
@keyframes up{from{transform:translateY(40px)}}
.pick{display:flex;flex-direction:column;gap:8px}
.pick button{display:flex;align-items:center;gap:12px;border-radius:14px;padding:12px;color:#fff;text-align:left;font-weight:600}
.pick button small{display:block;font-weight:400;font-size:12px;opacity:.85}
.pick button:disabled{opacity:.35;cursor:not-allowed}
.exbox{background:#fff6e2;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;font-size:14px}
.exbox b{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#8a5a00}
.gardien{background:var(--navy);color:#fff;border-radius:20px;padding:22px 18px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;font-size:14px;line-height:1.5}
.gardien h2{color:#fff;font-size:20px}
.gardien b{color:var(--gold)}
.g-ico{width:76px;height:76px;border-radius:50%;background:var(--gold);display:grid;place-items:center;box-shadow:0 0 0 8px rgba(245,179,53,.25);animation:pop .7s cubic-bezier(.2,1.6,.4,1)}
.g-ico svg{width:42px;height:42px;color:var(--navy)}
.g-ia{font-size:13px;background:rgba(255,255,255,.08);border-radius:12px;padding:8px 12px;color:#e3e9f2}
.g-small{font-size:12px;color:#9fb0c9}
.refused{background:#fdecea;border-radius:14px;padding:14px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:14px}
.refused b{color:var(--aud)}
.note-f{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--navy)}
.note-f em{font-style:normal;font-weight:400;color:var(--muted)}
.note-f textarea{font:inherit;font-weight:400;font-size:16px;color:var(--ink);border:2px solid var(--line);border-radius:14px;padding:10px 12px;resize:vertical;background:#fff}
.note-f textarea:focus{outline:none;border-color:var(--gold)}
.said{font-size:13px;background:var(--stone);border-radius:8px;padding:8px 10px}
.rule{font-size:13px;background:#fff6e2;border-left:4px solid var(--gold);padding:10px 12px;border-radius:8px}
.drop{border:2px dashed var(--line);border-radius:16px;padding:16px;text-align:center;font-size:13px;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;background:#fff;position:relative}
.drop input{position:absolute;opacity:0;width:1px;height:1px}
.drop img{max-height:160px;border-radius:10px}
.linkbtn{font-size:13px;text-decoration:underline;color:var(--muted);align-self:center}
.ai{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:20px 0}
.spin{width:54px;height:54px;border-radius:50%;border:5px solid var(--stone);border-top-color:var(--gold);animation:sp 1s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}

.celebrate{position:fixed;inset:0;z-index:30;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:24px max(24px,env(safe-area-inset-right,0px)) 24px max(24px,env(safe-area-inset-left,0px));overflow:hidden}
.celebrate h1{color:#fff;font-size:32px}
.celebrate p{color:rgba(255,255,255,.85);max-width:300px}
.bigkey{width:130px;height:130px;animation:pop .7s cubic-bezier(.2,1.6,.4,1)}
@keyframes pop{0%{transform:scale(.2) rotate(-60deg);opacity:0}100%{transform:scale(1) rotate(0)}}
.spark{position:absolute;width:9px;height:9px;border-radius:2px;left:50%;top:40%;animation:fall 1.6s ease-out forwards}
@keyframes fall{to{transform:translate(var(--dx),var(--dy)) rotate(540deg);opacity:0}}
.toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--navy);color:#fff;padding:10px 16px;border-radius:12px;font-size:13px;z-index:40;max-width:90%;text-align:center}

.vq{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px}
.vq .shot{background:var(--stone);border-radius:12px;min-height:90px;display:grid;place-items:center;color:var(--muted);font-size:12px;overflow:hidden}
.vq .shot img{width:100%;max-height:220px;object-fit:contain}
.vq .acts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.vq .why{font-size:12px;background:#fff6e2;border-radius:8px;padding:8px 10px}
.empty{text-align:center;color:var(--muted);padding:26px 10px;font-size:14px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ===== V17 : en-tête, menu, mission façon Duolingo, Navire, annuaire, animations ===== */
[class^="ico-"],[class*=" ico-"]{width:22px;height:22px;flex:none}
header.top{gap:8px}
header.top img{height:46px}
.stats{align-items:center;gap:6px}
.icon-btn{position:relative;width:38px;height:38px;border-radius:50%;background:var(--navy-2);display:grid;place-items:center;color:#c9d3e3}
.icon-btn .ico-bell{width:21px;height:21px}
.dot-b{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;border-radius:99px;background:var(--aud);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center;padding:0 4px;box-shadow:0 0 0 2px var(--navy)}
.chip .ico-coin{width:18px;height:18px}
.chrono{display:flex;align-items:center;gap:6px;background:var(--gold);color:var(--navy);font-weight:800;font-size:14px;border-radius:99px;padding:7px 13px 7px 9px;box-shadow:0 3px 0 var(--gold-deep);font-variant-numeric:tabular-nums}
.chrono .ico-timer{width:22px;height:22px;color:var(--navy)}
.chrono.run{background:#fff;animation:pulse-c 1.6s ease-in-out infinite}
@keyframes pulse-c{50%{box-shadow:0 3px 0 var(--gold-deep),0 0 0 6px rgba(245,179,53,.35)}}

/* menu du bas : pictos seuls, le Fort au centre */
nav.tabs{grid-template-columns:repeat(5,1fr);align-items:end}
nav.tabs button{height:52px;justify-content:center;color:#9aa5b6;border-radius:14px}
nav.tabs button svg{width:28px;height:28px}
nav.tabs button[aria-current="page"]{color:var(--navy);background:transparent}
nav.tabs button[aria-current="page"]::after{content:"";position:absolute;bottom:2px;width:6px;height:6px;border-radius:50%;background:var(--gold)}
nav.tabs button.center{width:64px;height:64px;margin:-18px auto 0;border-radius:50%;background:var(--navy);color:#c9d3e3;box-shadow:0 4px 0 #0c1a30,0 0 0 4px #fff}
nav.tabs button.center[aria-current="page"]{color:var(--gold);background:var(--navy)}
nav.tabs button.center[aria-current="page"]::after{display:none}
nav.tabs button.center svg{width:32px;height:32px}
.badge{top:4px;left:calc(50% + 6px)}

/* bloc trousseau + routine */
.stat-block{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:2px solid var(--line);border-bottom-width:4px;border-radius:18px;padding:10px 14px;text-align:left;width:100%}
.sb-tr{display:flex;flex-direction:column;gap:3px;min-width:0}
.sb-tr .mk{display:flex;gap:0}
.sb-tr .mk svg{width:17px;height:17px}
.sb-tr b{font-size:12px;color:var(--navy);white-space:nowrap}
.sb-sep{width:1px;align-self:stretch;background:var(--line)}
.sb-fl{display:flex;align-items:center;gap:6px}
.sb-fl svg{width:26px;height:26px}
.sb-fl b{display:block;font-size:18px;line-height:1;font-weight:800;color:var(--navy)}
.sb-fl small{font-size:10px;color:var(--muted);line-height:1.2;display:block}

/* clés des tours : entrée en douceur */
.tw-img .kb{animation:kpop .45s cubic-bezier(.2,1.5,.4,1) backwards}
@keyframes kpop{from{transform:translate(-50%,-50%) scale(.3);opacity:0}}
.kb .st{bottom:-8px;right:-8px;width:22px;height:22px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 0 0 2px var(--line)}
.kb .st svg{width:14px;height:14px;color:var(--navy)}
.legend span svg{width:14px;height:14px;color:var(--navy)}

/* fenêtre de mission */
.q-sheet{align-items:stretch;text-align:center;padding-top:28px}
.q-card{display:flex;flex-direction:column;align-items:center;gap:10px;padding-bottom:6px}
.q-bubble{width:var(--sz);height:var(--sz);border-radius:50%;background:var(--pc);display:grid;place-items:center;box-shadow:0 6px 0 color-mix(in srgb,var(--pc) 70%,#000),0 0 0 8px color-mix(in srgb,var(--pc) 18%,transparent);animation:bob .5s cubic-bezier(.2,1.5,.4,1)}
.q-bubble svg{width:52%;height:52%}
.q-bubble.or{background:var(--gold);box-shadow:0 6px 0 var(--gold-deep),0 0 0 8px rgba(245,179,53,.22)}
.q-bubble.act{--pc:#2a7fb8;color:#fff}
.q-bubble.act svg{color:#fff}
@keyframes bob{from{transform:scale(.4) translateY(10px)}}
.q-title{font-size:21px;line-height:1.25;max-width:330px}
.q-or{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;background:#fff1cf;color:#8a5a00;border-radius:99px;padding:3px 10px}
.q-sub{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px;justify-content:center}
.q-sub svg{width:15px;height:15px}
.q-warn{font-size:13px;background:#fff6e2;border-radius:12px;padding:10px 12px;color:#8a5a00}
.q-head{display:flex;align-items:center;gap:12px}
.q-head .q-bubble{flex:none;animation:none;box-shadow:0 4px 0 color-mix(in srgb,var(--pc) 70%,#000)}
.q-head .q-bubble.or{box-shadow:0 4px 0 var(--gold-deep)}
.q-head h2{font-size:17px;line-height:1.3}
.q-rule{font-size:14px;color:var(--muted)}
.big-ic svg{width:34px;height:34px;color:var(--navy)}

/* notifications */
.nt-list{display:flex;flex-direction:column;gap:8px}
.nt{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;font-size:14px}
.nt.new{border-color:var(--gold);background:#fffaf0}
.nt-ic{flex:none;width:40px;height:40px;border-radius:50%;background:var(--navy);display:grid;place-items:center;color:#c9d3e3}
.nt-ic svg{width:22px;height:22px}
.nt b{display:block;font-weight:600;line-height:1.35}
.nt small{font-size:12px;color:var(--muted)}

/* routine : choix de durée */
.rt-head{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.rt-ic{width:84px;height:84px;border-radius:50%;background:#2a7fb8;display:grid;place-items:center;color:#fff;box-shadow:0 6px 0 #1d5d88}
.rt-ic svg{width:48px;height:48px;color:#fff}
.durs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.dur{border:2px solid var(--line);border-bottom-width:4px;border-radius:14px;padding:12px 0;font-weight:800;font-size:15px;color:var(--navy);background:#fff}
.dur[aria-pressed="true"]{border-color:var(--gold-deep);background:#fff3d6}

/* le Navire */
.nav-ov{position:fixed;inset:0;z-index:18;background:linear-gradient(180deg,#e4eef9 0%,#f6f7fa 70%);color:var(--navy);display:flex;flex-direction:column;gap:12px;padding:calc(14px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) calc(18px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));overflow:auto;animation:up .3s ease-out}
.nav-ov>*{width:100%;max-width:460px;margin-inline:auto}
.nv-top{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:center}
.nv-min{width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid var(--line);color:var(--navy);font-size:22px;line-height:1}
.nv-time{font-size:44px;font-weight:800;color:var(--navy);line-height:1;font-variant-numeric:tabular-nums}
.nv-count{min-width:40px;font-weight:800;font-size:15px;background:var(--navy);color:var(--gold);border-radius:99px;padding:6px 10px}
.nv-bar{height:10px;border-radius:99px;background:rgba(20,41,74,.1);overflow:hidden}
.ship{mix-blend-mode:multiply;max-width:420px;margin-inline:auto}
.nv-bar b{display:block;height:100%;background:var(--gold);border-radius:99px;transition:width 1s linear}
.nv-ship{position:relative}
.ship{display:block;width:100%;height:auto}
.ab{position:absolute;transform:translate(-50%,-50%);width:50px;height:50px;border-radius:50%;background:#fff;border:3px solid #2a7fb8;box-shadow:0 4px 0 #1d5d88,0 6px 14px rgba(0,0,0,.3);display:grid;place-items:center;color:var(--navy);animation:kpop .45s cubic-bezier(.2,1.5,.4,1) backwards}
.ab svg{width:26px;height:26px}
.ab.done{background:#2a7fb8;color:#fff}
.ab .ck{position:absolute;top:-7px;right:-7px}
.ab .ck svg{width:22px;height:22px}
.ab:nth-child(3){animation-delay:.05s}.ab:nth-child(4){animation-delay:.1s}.ab:nth-child(5){animation-delay:.15s}.ab:nth-child(6){animation-delay:.2s}.ab:nth-child(7){animation-delay:.25s}.ab:nth-child(8){animation-delay:.3s}.ab:nth-child(9){animation-delay:.35s}
.nv-hint{font-size:13px;color:var(--muted);text-align:center}
.nav-ov .eyebrow{color:var(--muted)!important}
.bigcoin svg{width:130px;height:130px;animation:coin 1s cubic-bezier(.2,1.4,.4,1)}
@keyframes coin{0%{transform:scale(.2) rotateY(0)}70%{transform:scale(1.1) rotateY(540deg)}100%{transform:scale(1) rotateY(720deg)}}

/* trésor : bourse et coffres qui tremblent */
.chest-card.unl .cs{animation:shake .7s ease-in-out var(--d,.2s) 2 backwards}
@keyframes shake{0%,100%{transform:rotate(0)}20%{transform:rotate(-6deg)}40%{transform:rotate(6deg)}60%{transform:rotate(-4deg)}80%{transform:rotate(3deg)}}
.tier .ic svg{width:26px;height:26px;color:var(--navy)}
.bourse{background:#fff;border:2px solid var(--line);border-bottom-width:4px;border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:12px}
.b-top{display:flex;align-items:center;gap:12px}
.b-top .b-coin{width:44px;height:44px}
.b-top b{display:block;font-size:18px;color:var(--navy)}
.b-top small{font-size:12px;color:var(--muted)}
.b-coins{display:flex;align-items:center;justify-content:center;gap:6px}
.b-coins span svg{width:30px;height:30px}
.b-coins span{opacity:.3}.b-coins span.on{opacity:1}
.b-coins .b-eq{opacity:1;font-weight:800;color:var(--navy);font-size:18px;margin-inline:4px}
.b-coins>svg{width:30px;height:30px}
.mini-tr{gap:8px}

/* équipage : fil défilant */
.feed-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px}
.feed-box{display:flex;flex-direction:column;gap:8px;max-height:212px;overflow-y:auto;overscroll-behavior:contain;padding-right:2px;mask-image:linear-gradient(#000 88%,transparent)}
.feed-box .fi{flex:none}
.cheer{display:inline-flex;align-items:center;gap:4px}
.cheer svg{width:16px;height:16px}

/* annuaire */
.dir{display:flex;flex-direction:column;gap:10px}
.dir-card{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px;position:relative}
.dir-card.me{border:2px solid var(--gold);background:#fffaf0}
.dir-card .av,.av-img{flex:none;border-radius:50%;object-fit:cover}
.dc{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.dc b{font-size:15px}
.dc small{font-size:12px;color:var(--muted);font-weight:600}
.quote{font-size:13px;font-style:italic;color:var(--ink)}
.nets{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.net{font-size:12px;font-weight:700;color:#fff;background:var(--navy);border-radius:99px;padding:4px 10px;text-decoration:none}
.net.off{background:var(--stone);color:var(--muted)}
.edit{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;background:#fff;border:1px solid var(--line);display:grid;place-items:center;color:var(--navy)}
.edit svg{width:18px;height:18px}
.dir-new{display:flex;gap:12px;align-items:center;background:var(--navy);color:#fff;border-radius:18px;padding:14px;text-align:left;box-shadow:0 4px 0 #0c1a30}
.dir-new svg{width:40px;height:40px;color:var(--gold)}
.dir-new b{display:block;font-size:16px}
.dir-new small{font-size:12px;color:#c9d3e3}
.ph-pick{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--navy);cursor:pointer}
.ph-pick input{position:absolute;opacity:0;width:1px;height:1px}
.fld{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600;color:var(--navy)}
.fld input{font:inherit;font-size:16px;font-weight:400;border:2px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;color:var(--ink)}
.fld input:focus{outline:none;border-color:var(--gold)}

/* progression : apparitions */
.kin{animation:kin .5s cubic-bezier(.2,1.4,.4,1) backwards;transform-box:fill-box;transform-origin:center top}
@keyframes kin{from{opacity:0;transform:translateY(-18px) scale(.6)}}
.pop{animation:popin .45s cubic-bezier(.2,1.5,.4,1) backwards}
@keyframes popin{from{opacity:0;transform:scale(.7)}}
.bars i b{animation:fillbar 1s cubic-bezier(.3,.8,.3,1) backwards;transform-origin:left}
@keyframes fillbar{from{transform:scaleX(0)}}
.num svg{width:24px;height:24px}
.num:nth-child(2) svg,.num:nth-child(3) svg{color:#fff}

/* ===== V19 : palmarès, annuaire, blasons, statistiques ===== */
.feed-wrap{position:relative;padding-right:14px}
.feed-box{max-height:258px;scrollbar-width:none}
.feed-box::-webkit-scrollbar{display:none}
.fb-track{position:absolute;right:0;top:0;bottom:0;width:7px;border-radius:4px;background:var(--stone)}
.fb-thumb{position:absolute;left:0;width:7px;border-radius:4px;background:var(--navy)}
.ranks{display:flex;flex-direction:column}
.ranks .lrow{animation:popin .35s ease-out backwards}
.ranks .lrow.me{position:relative;z-index:2;animation:climb 1.4s cubic-bezier(.3,.9,.3,1) .5s backwards;box-shadow:0 6px 18px rgba(20,41,74,.15)}
@keyframes climb{from{transform:translateY(var(--from));background:#fff}}
.mini-tr .mk svg{animation:kin .4s cubic-bezier(.2,1.5,.4,1) backwards}
.mini-tr .mk svg:nth-child(1){animation-delay:.1s}.mini-tr .mk svg:nth-child(2){animation-delay:.18s}.mini-tr .mk svg:nth-child(3){animation-delay:.26s}.mini-tr .mk svg:nth-child(4){animation-delay:.34s}.mini-tr .mk svg:nth-child(5){animation-delay:.42s}.mini-tr .mk svg:nth-child(6){animation-delay:.5s}.mini-tr .mk svg:nth-child(7){animation-delay:.58s}
.mini-tr .mk svg{transform-box:fill-box}

.ann-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.btn-sm{flex:none;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--navy);background:var(--gold);border-radius:99px;padding:8px 12px;box-shadow:0 3px 0 var(--gold-deep);margin-top:4px}
.btn-sm svg{width:16px;height:16px}
.dir-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dcard{background:#fff;border:2px solid var(--line);border-bottom-width:4px;border-radius:18px;padding:14px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;cursor:pointer;min-width:0;animation:popin .4s ease-out backwards}
.dcard.me{border-color:var(--gold)}
.dcard b{font-size:14px;line-height:1.25}
.dcard small{font-size:11px;color:var(--muted);font-weight:600}
.dcard .quote{font-size:12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dcard .nets{justify-content:center;margin-top:auto;padding-top:4px}
.net{font-size:11px;padding:4px 9px}
.av,.av-img{flex:none}
.pf-top{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.pf-job{font-weight:600;color:var(--muted);font-size:14px}
.pf-top .nets{justify-content:center}
.pf-rows{display:flex;flex-direction:column;gap:8px}
.pf-row{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.pf-row>svg{width:22px;height:22px;color:var(--navy)}
.pf-row span{flex:1;min-width:0;display:flex;flex-direction:column}
.pf-row small{font-size:11px;color:var(--muted)}
.pf-row b,.pf-row a{font-size:14px;color:var(--navy);word-break:break-word}
.cp{flex:none;font-size:12px;font-weight:700;border:1px solid var(--line);border-radius:99px;padding:5px 10px;background:var(--paper)}
.pf-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.pf-stats div{background:var(--navy);color:#fff;border-radius:14px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;gap:2px}
.pf-stats svg{width:22px;height:22px;color:#fff}
.pf-stats b{font-size:20px;line-height:1}
.pf-stats small{font-size:10px;opacity:.85}
.pf-bl{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
.pf-bl .sh{width:100%;height:auto}
.pf-bl span{display:block}
.pf-bl span .sh{filter:none}
.fld em{font-style:normal;font-weight:400;color:var(--muted)}
.fld input.bad{border-color:var(--aud)}
.pf-err{color:var(--aud);font-size:13px;font-weight:600}
.signup{display:flex;flex-direction:column;gap:16px}
.su-head{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.su-ic{width:84px;height:84px;border-radius:50%;background:var(--navy);display:grid;place-items:center;box-shadow:0 6px 0 #0c1a30}
.su-ic svg{width:46px;height:46px;color:var(--gold)}
.su-form{display:flex;flex-direction:column;gap:12px}

.bl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.blz{background:#fff;border:2px solid var(--line);border-radius:16px;padding:10px 6px;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center}
.blz.on{border-color:var(--gold);background:#fffaf0}
.blz .sh{width:56px;height:auto}
.blz:not(.on) .sh{opacity:.7}
.blz b{font-size:12px;line-height:1.2;color:var(--navy)}
.blz small{font-size:10px;color:var(--muted);line-height:1.25}
.bl-ok{font-size:10px;font-weight:800;color:#8a5a00;background:#ffe9b0;border-radius:99px;padding:2px 8px;margin-top:2px}
.blbar{display:block;width:80%;height:6px;border-radius:99px;background:var(--stone);overflow:hidden;margin-top:4px}
.blbar i{display:block;height:100%;background:var(--gold);border-radius:99px;animation:fillbar 1s ease-out .5s backwards;transform-origin:left}
.blv{font-weight:700}
.rts{display:flex;flex-direction:column;gap:10px}
.rts h4{font-size:14px;margin:8px 0 0;color:var(--navy)}
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.kpi{background:#fff;border:2px solid var(--line);border-bottom-width:4px;border-radius:16px;padding:10px 12px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center}
.kpi svg{grid-row:1/3;width:30px;height:30px;color:var(--navy)}
.kpi b{font-size:19px;line-height:1.1;color:var(--navy);font-variant-numeric:tabular-nums}
.kpi small{font-size:11px;color:var(--muted);line-height:1.2}
.cal-h,.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.cal-h span{text-align:center;font-size:11px;font-weight:700;color:var(--muted)}
.cd{position:relative;aspect-ratio:1;border-radius:10px;background:var(--stone);display:grid;place-items:center;animation:popin .3s ease-out backwards}
.cd em{font-style:normal;font-size:11px;font-weight:600;color:var(--muted)}
.cd.r{background:#2a7fb8}.cd.r em{color:#fff}
.cd.fut{background:transparent;border:1px dashed var(--line)}
.cd i{position:absolute;top:4px;right:4px;width:8px;height:8px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 1.5px #fff}
.cal-leg{display:flex;gap:14px;font-size:12px;color:var(--muted)}
.cal-leg span{display:flex;align-items:center;gap:6px}
.lg-r{width:12px;height:12px;border-radius:4px;background:#2a7fb8}
.lg-q{width:9px;height:9px;border-radius:50%;background:var(--gold)}
.mbars{display:grid;grid-template-columns:repeat(14,1fr);gap:4px;height:130px;align-items:end;padding-top:14px}
.mb{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px}
.mb i{display:block;width:100%;min-height:3px;border-radius:5px 5px 2px 2px;background:linear-gradient(#2a7fb8,#1e3a63);animation:grow .7s cubic-bezier(.3,.9,.3,1) backwards;transform-origin:bottom}
.mb small{font-size:9px;color:var(--muted)}
.mb-v{font-size:9px;font-weight:700;color:var(--navy);min-height:11px}
@keyframes grow{from{transform:scaleY(0)}}
.abars{display:flex;flex-direction:column;gap:7px}
.abars>div{display:grid;grid-template-columns:24px 1fr 70px 20px;gap:8px;align-items:center;font-size:12px}
.ab-ic svg{width:22px;height:22px;color:var(--navy)}
.ab-t{min-width:0;line-height:1.25}
.abars i{display:block;height:8px;border-radius:99px;background:var(--stone);overflow:hidden}
.abars i b{display:block;height:100%;background:#2a7fb8;border-radius:99px;animation:fillbar .9s ease-out backwards;transform-origin:left}
.abars>div>b{text-align:right;color:var(--navy)}

/* ===== V20 : fermeture, astuce, blasons colorés, pastilles jaune vif ===== */
.sh-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.x-btn{width:38px;height:38px;border-radius:50%;background:#fff;border:2px solid var(--line);display:grid;place-items:center;color:var(--navy)}
.x-btn svg{width:18px;height:18px}
.nv-min{width:44px;height:44px;border-radius:50%;background:var(--navy);border:0;color:#fff;display:grid;place-items:center;box-shadow:0 3px 0 #0c1a30}
.nv-min svg{width:24px;height:24px;color:#fff}
.tip{display:flex;gap:10px;align-items:flex-start;background:var(--navy);color:#fff;border-radius:16px;padding:12px 14px;font-size:13px;line-height:1.4;text-align:left}
.tip>svg{flex:none;width:24px;height:24px;margin-top:1px}
.tip b{color:var(--gold)}
.tip.light{background:#fff8dc;color:var(--navy);border:2px solid var(--gold)}
.tip.light b{color:var(--navy)}
.blz{border-color:color-mix(in srgb,var(--bc) 30%,#fff);background:color-mix(in srgb,var(--bc) 6%,#fff)}
.blz.on{border-color:var(--bc);background:color-mix(in srgb,var(--bc) 14%,#fff);box-shadow:0 4px 0 color-mix(in srgb,var(--bc) 55%,#fff)}
.blz:not(.on) .sh{opacity:1}
.blz b{color:color-mix(in srgb,var(--bc) 75%,#14294a)}
.blbar{background:color-mix(in srgb,var(--bc) 15%,#fff)}
.blbar i{background:var(--bc)}
.blv{color:var(--bc)}
.bl-ok,.op-st,.q-or,.tag.or{background:#ffd31a;color:var(--navy);font-weight:800}
.q-warn{background:#fff8dc;color:var(--navy);border:2px solid #ffd31a}
.exbox b{color:var(--navy)}

/* ===== V21 : bandeau du Fort animé à l'arrivée ===== */
.stat-block{animation:sbin .5s cubic-bezier(.2,1.3,.4,1) backwards}
@keyframes sbin{from{transform:translateY(-12px) scale(.96);opacity:0}}
.sb-tr .mk svg{transform-box:fill-box;animation:kin .4s cubic-bezier(.2,1.5,.4,1) backwards}
.sb-tr .mk svg:nth-child(1){animation-delay:.25s}.sb-tr .mk svg:nth-child(2){animation-delay:.32s}.sb-tr .mk svg:nth-child(3){animation-delay:.39s}.sb-tr .mk svg:nth-child(4){animation-delay:.46s}.sb-tr .mk svg:nth-child(5){animation-delay:.53s}.sb-tr .mk svg:nth-child(6){animation-delay:.6s}.sb-tr .mk svg:nth-child(7){animation-delay:.67s}
.sb-fl b{animation:popin .45s cubic-bezier(.2,1.6,.4,1) .7s backwards}
.sb-fl:nth-of-type(2) b{animation-delay:.85s}
.sb-fl .ico-flame{transform-origin:50% 90%;animation:flicker 1.6s ease-in-out .6s 2}
@keyframes flicker{0%,100%{transform:scale(1) rotate(0)}25%{transform:scale(1.15,.92) rotate(-4deg)}50%{transform:scale(.95,1.1) rotate(3deg)}75%{transform:scale(1.08,.95) rotate(-2deg)}}
.sb-fl .ico-coin{animation:coinspin 1s ease-in-out .9s backwards}
@keyframes coinspin{from{transform:rotateY(0)}to{transform:rotateY(360deg)}}

/* ===== V22 : célébrations ===== */
.cel2{gap:14px}
.cel2 .burst{position:absolute;left:50%;top:36%;width:560px;height:560px;margin:-280px 0 0 -280px;border-radius:50%;background:repeating-conic-gradient(rgba(255,255,255,.16) 0 10deg,transparent 10deg 20deg);-webkit-mask:radial-gradient(circle,#000 25%,transparent 68%);mask:radial-gradient(circle,#000 25%,transparent 68%);animation:spin 14s linear infinite,fadein .6s ease-out}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadein{from{opacity:0}}
.cel-art{position:relative;animation:bigpop .8s cubic-bezier(.2,1.8,.4,1) backwards,float 2.4s ease-in-out .8s infinite}
@keyframes bigpop{0%{transform:scale(0) rotate(-25deg)}60%{transform:scale(1.18) rotate(6deg)}100%{transform:scale(1) rotate(0)}}
@keyframes float{50%{transform:translateY(-8px)}}
.cel-art .bigkey{animation:none;width:140px;height:140px;filter:drop-shadow(0 8px 0 rgba(0,0,0,.18))}
.cel-shield{width:150px}
.cel-shield svg{width:100%;height:auto;filter:drop-shadow(0 8px 0 rgba(0,0,0,.18))}
.cel2 .bigcoin svg{animation:coin 1.1s cubic-bezier(.2,1.4,.4,1)}
.cel-plus{position:relative;display:inline-flex;align-items:center;gap:6px;font-size:22px;font-weight:800;color:#14294a;background:#ffd31a;border-radius:99px;padding:4px 14px;box-shadow:0 4px 0 #d9931a;animation:plusin .5s cubic-bezier(.2,1.8,.4,1) .45s backwards}
.cel-plus svg{width:22px;height:22px}
@keyframes plusin{from{transform:scale(0) translateY(20px);opacity:0}}
.cel-eb{color:rgba(255,255,255,.85)!important;animation:up2 .4s ease-out .3s backwards}
.cel-t{position:relative;animation:up2 .45s cubic-bezier(.2,1.5,.4,1) .35s backwards}
.cel-p{position:relative;animation:up2 .45s ease-out .5s backwards}
.cel-b{position:relative;animation:up2 .45s ease-out .7s backwards}
@keyframes up2{from{transform:translateY(18px);opacity:0}}
.cel2.out{animation:popout .26s ease-in forwards}
@keyframes popout{to{opacity:0;transform:scale(1.06)}}
.cheer.sent{background:var(--gold);border-color:var(--gold);animation:popin .3s cubic-bezier(.2,1.6,.4,1)}

/* ===== V22b : menu du bas toujours visible pendant la routine ===== */
.nav-ov{bottom:calc(66px + env(safe-area-inset-bottom,0px));padding-bottom:16px}
nav.tabs{z-index:19}
.cel-shield svg{filter:drop-shadow(0 0 0 #fff) drop-shadow(0 8px 0 rgba(0,0,0,.25))}

/* ===== V23 : blasons en couleurs unies ===== */
.blz{background:#fff;border:2px solid var(--line);border-bottom-width:4px}
.blz.on{background:var(--bc);border-color:var(--bc);box-shadow:0 4px 0 #14294a33}
.blz.on b{color:#fff}
.blz.on small{color:rgba(255,255,255,.92)}
.blz:not(.on) b{color:var(--navy)}
.blbar{background:var(--stone)}
.blbar i{background:var(--bc)}
.blv{color:var(--navy)}

/* ===== V25 : partage du trousseau ===== */
.tr-img{flex:none;background:var(--navy);border-radius:16px;min-height:200px;display:grid;place-items:center;overflow:hidden}
.tr-img img{display:block;width:100%;height:auto;-webkit-touch-callout:default}
.steps3{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:4px;font-size:14px;color:var(--ink)}
.chk{display:flex;gap:10px;align-items:center;font-size:14px;font-weight:600;color:var(--navy);background:#fff8dc;border:2px solid #ffd31a;border-radius:14px;padding:12px}
.chk input{width:22px;height:22px;accent-color:#14294a;flex:none}
.btn svg{width:20px;height:20px}

/* ===== V26 : missions en vérification ===== */
.pend-bar{display:flex;align-items:center;gap:10px;width:100%;background:#fff8dc;border:2px solid #ffd31a;border-radius:16px;padding:10px 14px;text-align:left;color:var(--navy);animation:popin .4s ease-out .3s backwards}
.pend-bar svg{width:24px;height:24px;color:var(--navy);animation:tilt 2s ease-in-out infinite}
.pend-bar b{flex:1;font-size:14px}
.pend-bar span{font-size:12px;font-weight:800;background:#ffd31a;border-radius:99px;padding:3px 10px}
@keyframes tilt{0%,70%,100%{transform:rotate(0)}80%{transform:rotate(180deg)}}
.nt small{display:block}

.gift-art svg{width:130px;height:130px;color:#fff;filter:drop-shadow(0 8px 0 rgba(0,0,0,.25))}

/* ===== Appli : invitations ===== */
.invite{background:#fff;border:2px solid var(--line);border-bottom-width:4px;border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:10px;margin-bottom:6px}
.inv-list{display:flex;flex-direction:column;gap:6px}
.inv-list>div{display:flex;gap:10px;align-items:center;font-size:13px;border-radius:12px;padding:8px 10px}
.inv-list .ok{background:#dff0e6}.inv-list .ko{background:#fdecea}
.inv-list svg{width:20px;height:20px;flex:none}
.inv-list .ko svg{color:var(--aud)}
.inv-list span{display:flex;flex-direction:column}
