/* arena.css — Arène (PvP) + quêtes + 8 races: phone layout (390 × 844 stage). Tablet / desktop rules: css/responsive.css
 * (section « Arène »). Every class is prefixed (.ar-, .nv-ar, .qs-, .dk-) — meta.css has generic names (.dk, .pill…). */

/* ---------- nav: 6 tabs on the phone (Arène unlocked) ---------- */
body:not(.lay-desk) #nav.n6 { padding: 0 2px 8px; }
body:not(.lay-desk) #nav.n6 .nb { width: 62px; font-size: 13.5px; letter-spacing: .2px; }
body:not(.lay-desk) #nav.n6 .nb .nic { width: 36px; font-size: 22px; }
body:not(.lay-desk) #nav.n6 .nb.mid .nic { width: 48px; height: 46px; font-size: 27px; }
.nb .badge.cnt { background: var(--pink); }

/* ---------- shared pieces ---------- */
.ar { --arp: #ff5fb8; }
.ar-load { padding: 60px 0; text-align: center; font: 600 20px/1 var(--ui); color: #aab0d6; text-transform: uppercase; }
.ar-face { flex: none; display: inline-block; width: var(--s); height: var(--s); border-radius: 50%; border: 3px solid #fff; background-color: var(--rc, #2a2f55); background-repeat: no-repeat; box-shadow: 0 0 0 2px var(--ink), 0 3px 0 rgba(0,0,0,.5); }
.ar-tb { flex: none; display: inline-block; width: var(--s); height: calc(var(--s) * 1.08); filter: drop-shadow(0 3px 0 rgba(0,0,0,.55)); }
.ar-tb svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ar-bar { position: relative; display: block; height: 10px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.ar-bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--tc, var(--y)), #fff); }
.ar-bar.b > span { background: linear-gradient(90deg, #33d6ff, #b9f0ff); }
.ar-echo { display: inline-block; padding: 1px 6px 0; border-radius: 7px; background: #33d6ff; color: var(--ink); font: 400 12px/15px var(--pop); letter-spacing: .4px; vertical-align: 2px; border: 1.5px solid #fff; }
.ar-pow { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "l bar n"; align-items: center; gap: 8px; margin-top: 8px; }
.ar-pw-l { grid-area: l; font: 600 16px/1 var(--ui); text-transform: uppercase; color: #ffd84a; display: flex; align-items: center; gap: 3px; }
.ar-pow b { grid-area: n; font: 400 20px/1 var(--num); }
.ar-pow b small { font-size: 14px; color: #aab0d6; }
.ar-pow .ar-bar { grid-area: bar; }
.ar-pow .ar-bar > span { background: linear-gradient(90deg, #ffd21a, #ff9d00); }
.ar-pow.over .ar-bar > span { background: linear-gradient(90deg, #ff3b5c, #ff8a9b); }
.ar-pow.over b { color: #ff6a7f; }
.ar-empty { display: grid; justify-items: center; gap: 10px; padding: 22px 16px; margin: 10px 0; background: rgba(11,13,28,.85); text-align: center; font-size: 30px; }
.ar-empty b { font: 600 20px/1.1 var(--ui); text-transform: uppercase; }

/* ---------- hub ---------- */
.ar-hub { background: radial-gradient(120% 50% at 50% 0%, rgba(255,95,184,.22), transparent 70%); }
.ar-head { display: flex; align-items: center; gap: 10px; margin: 2px 2px 8px; }
.ar-head h2 { margin: 0; font-size: 36px; color: #fff; text-shadow: 0 4px 0 var(--arp); rotate: -2deg; }
.ar-season { margin-left: auto; background: #2a1f55; }
.ar-rank { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "b t" "p p"; align-items: center; gap: 4px 12px; padding: 10px 12px 10px; background: linear-gradient(135deg, var(--td), #12152a 70%); }
.ar-rank > .ar-tb { grid-area: b; }
.ar-rk-t { grid-area: t; display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 10px; }
.ar-rk-t small { grid-column: 1 / -1; font: 600 15px/1 var(--ui); letter-spacing: 1px; color: #e3e6f7; opacity: .8; }
.ar-rating { font: 400 50px/.95 var(--num); letter-spacing: .5px; text-shadow: 0 3px 0 rgba(0,0,0,.5); }
.ar-tier-n { font: 400 22px/1 var(--pop); color: var(--tc); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; padding-bottom: 5px; }
.ar-rk-p { grid-area: p; display: grid; grid-template-columns: 1fr; gap: 4px; }
.ar-rk-p i { font: normal 600 16px/1 var(--ui); color: #f1e8ff; text-transform: uppercase; }
.ar-rk-p i b, .ar-rk-p i em { color: var(--tc); font-style: normal; }
.ar-rec { font: 600 15px/1 var(--ui); color: #b8bedd; text-transform: uppercase; }
.ar-rec em { color: #ffd84a; font-style: normal; }
.ar-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ar-box { padding: 7px 8px 8px; background: rgba(11,13,28,.88); min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ar-box h4 { margin: 0; display: flex; align-items: center; gap: 4px; font: 600 14px/1 var(--ui); letter-spacing: .6px; color: #cfd4ee; }
.ar-box h4 .sp { flex: 1; }
.ar-box h4 b { font: 400 16px/1 var(--num); color: #fff; }
.ar-box > i { font: normal 600 14px/1.05 var(--ui); color: #aab0d6; text-transform: uppercase; }
.ar-box > i b { color: #fff; font-weight: 600; }
.ar-tks { display: flex; gap: 2px; justify-content: space-between; }
.ar-tk { width: 20px; height: 20px; display: grid; place-items: center; font-size: 19px; color: rgba(255,255,255,.18); }
.ar-tk.on { color: var(--arp); filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
.ar-dv { display: flex; align-items: center; gap: 5px; }
.ar-dv b { font: 400 26px/1 var(--num); color: #ffd84a; }
.ar-daily.done .ar-dv { opacity: .45; }
.ar-daily.on { border-color: #ffd84a; }
.ar-bp { display: flex; align-items: center; gap: 6px; }
.ar-bp img { width: 30px; height: 40px; object-fit: contain; rotate: -8deg; filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
.ar-bp b { font: 400 26px/1 var(--num); }
.ar-bp b small { font-size: 15px; color: #aab0d6; }
.ar-deck { margin-top: 10px; padding: 8px 10px 9px; background: linear-gradient(160deg, rgba(11,13,28,.92), rgba(11,13,28,.75)), radial-gradient(80% 120% at 0% 0%, var(--rc), transparent); }
.ar-deck h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; font: 400 17px/1 var(--pop); letter-spacing: .5px; }
.ar-deck h4 .sp { flex: 1; }
.ar-chg { height: 30px; font-size: 16px; background: #1f8de6; cursor: pointer; }
.ar-dk { display: flex; align-items: center; gap: 8px; }
.ar-dk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-dk-t b { font: 400 18px/1.05 var(--pop); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-dk-t i { font: normal 600 15px/1 var(--ui); color: #b8bedd; text-transform: uppercase; }
.ar-dk-c { display: flex; gap: 3px; flex: none; }
.ar-warn { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255,59,92,.18); border: 2px solid #ff3b5c; font: 600 15px/1.1 var(--ui); color: #ffd0d8; }
.ar-warn.soft { background: rgba(255,210,26,.12); border-color: #ffd21a; color: #fff1b8; }
.ar-def { display: block; margin-top: 7px; font: normal 600 14px/1 var(--ui); color: #9fe8b8; text-transform: uppercase; }
.ar-go { width: 100%; height: 56px; margin-top: 12px; font-size: 22px; }
.ar-go small, .ar-atk small { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; padding: 2px 7px 0; border-radius: 9px; background: rgba(11,13,28,.85); color: #fff; font: 400 15px/18px var(--num); }
.ar-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ar-lk { position: relative; font-size: 17px; }
.ar-badge { position: absolute; top: -9px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--red); border: 2px solid #fff; font: 400 13px/19px var(--pop); color: #fff; }
.ar-away { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 10px; background: linear-gradient(90deg, #4a1238, #1b1236); border-color: var(--arp); color: #fff; font-size: 22px; }
.ar-aw-i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--arp); color: var(--ink); border: 2.5px solid #fff; font-size: 24px; rotate: -6deg; }
.ar-aw-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ar-aw-t small { font: 600 13px/1 var(--ui); letter-spacing: 1px; color: #ffb8de; }
.ar-aw-t b { font: 400 17px/1.05 var(--pop); }
.ar-aw-t i { font: normal 600 16px/1 var(--ui); }
.ar-aw-t em, .ar-je-d, .ar-delta { font-style: normal; }
.up { color: #5cf08e; } .down { color: #ff6a7f; }

/* ---------- opponents (picker) ---------- */
.ar-zh { margin-bottom: 8px; }
.ar-tkc { background: #3a1032; }
.ar-opps { display: grid; gap: 12px; }
.ar-opp { position: relative; padding: 14px 10px 10px; background: linear-gradient(160deg, #1b1f3d, #0d0f22); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; cursor: pointer; }
.ar-opp::before { content: ""; position: absolute; inset: 0; border-radius: 13px; background: radial-gradient(70% 90% at 0% 0%, var(--rc), transparent 70%); opacity: .25; pointer-events: none; }
.ar-slot { position: absolute; left: 10px; top: -11px; padding: 2px 9px 0; border-radius: 9px; background: var(--sc); color: var(--ink); border: 2.5px solid #fff; font: 400 14px/18px var(--pop); letter-spacing: .6px; rotate: -3deg; box-shadow: 0 3px 0 rgba(0,0,0,.5); }
.ar-o1 { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ar-o-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ar-on { font: 400 19px/1.05 var(--pop); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-o-m { display: flex; align-items: center; gap: 5px; font: 600 15px/1 var(--ui); text-transform: uppercase; color: #e6e9f7; }
.ar-o-m em { font-style: normal; color: var(--tc); }
.ar-o-t > i { font: normal 600 14px/1 var(--ui); color: #aab0d6; text-transform: uppercase; }
.ar-chance { position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: conic-gradient(var(--sc) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); box-shadow: 0 3px 0 rgba(0,0,0,.5); }
.ar-chance::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #0d0f22; }
.ar-chance b, .ar-chance i { position: relative; }
.ar-chance b { font: 400 22px/1 var(--num); }
.ar-chance b small { font-size: 13px; }
.ar-chance i { font: normal 600 10.5px/1 var(--ui); color: #aab0d6; text-transform: uppercase; }
.ar-o2 { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.ar-prev { display: flex; gap: 3px; }
.ar-gains { display: flex; flex-direction: column; gap: 3px; font: 600 15px/1 var(--ui); white-space: nowrap; }
.ar-gains span { display: flex; align-items: center; gap: 3px; }
.ar-gains .w { color: #9ff0b8; } .ar-gains .l { color: #ffb0bd; }
.ar-gains b { font: 400 16px/1 var(--num); color: #fff; }
.ar-gains .ico-coin { width: 15px; height: 15px; }
.ar-atk { height: 46px; padding: 0 10px; font-size: 17px; }
.ar-atk.busy { filter: brightness(.7); }
.ar-ref { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ar-ref .btn { font-size: 16px; flex: 1; }
.ar-ref .btn small { font: 400 15px/1 var(--num); color: #ffd84a; }
.ar-terr { background: #1b2a55; }

/* ---------- result ---------- */
.ar-rs .rs-sub .ar-echo { vertical-align: 3px; }
.ar-rd { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin: 6px auto 0; width: 300px; padding: 10px 14px; background: linear-gradient(135deg, var(--td), #12152a 75%); }
.ar-rd-t { display: flex; flex-direction: column; }
.ar-rd-t small { font: 600 15px/1 var(--ui); letter-spacing: 1px; opacity: .8; }
.ar-delta { position: absolute; right: -10px; top: -14px; padding: 4px 10px 1px; border-radius: 12px; border: 3px solid #fff; background: var(--ink); font: 400 28px/1 var(--num); box-shadow: 0 4px 0 rgba(0,0,0,.6); }
.ar-delta.up { background: #12823e; color: #fff; } .ar-delta.down { background: #a01834; color: #fff; }
.ar-tierup { margin: 10px auto 0; height: 32px; font-size: 20px; background: var(--y); color: var(--ink); }
.ar-tierup.down { background: #4a5072; color: #fff; }
.ar-rs .rs-gains { margin-top: 12px; }
.ar-rg-b img { width: 36px; height: 46px; object-fit: contain; rotate: -8deg; }
.ar-fw { margin: 8px auto 0; background: #ffd84a; color: var(--ink); }
.ar-bst-won { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 300px; margin: 10px auto 0; padding: 8px 12px; background: linear-gradient(135deg, #ff5fb8, #9b5cff); color: #fff; text-align: left; cursor: pointer; }
.ar-bst-won img { width: 52px; height: 66px; object-fit: contain; }
.ar-bst-won small { display: block; font: 600 14px/1 var(--ui); letter-spacing: 1px; }
.ar-bst-won b { font: 400 20px/1.05 var(--pop); }
.ar-bst-won .play { width: 40px; height: 40px; border-radius: 12px; background: var(--y); color: var(--ink); display: grid; place-items: center; font-size: 22px; border: 2.5px solid #fff; }
.ar-rs .rs-act small { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 0; border-radius: 8px; background: rgba(11,13,28,.85); color: #fff; font: 400 14px/17px var(--num); }
.ar-next { margin-top: 16px; text-align: center; }
.ar-next h4 { margin: 0 0 6px; font: 600 16px/1 var(--ui); letter-spacing: 1px; color: #cfd4ee; }
.ar-nx { display: flex; justify-content: center; gap: 10px; }
.ar-nxo { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 16px; border: 2.5px solid var(--sc); background: rgba(11,13,28,.85); color: #fff; text-align: left; cursor: pointer; }
.ar-nxo b { display: block; font: 400 15px/1.1 var(--pop); }
.ar-nxo i { font: normal 600 14px/1 var(--ui); color: #aab0d6; }

/* ---------- journal ---------- */
.ar-jr .ar-away { cursor: default; grid-template-columns: auto 1fr; }
.ar-jl { display: grid; gap: 8px; }
.ar-je { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "k f t r" "k f t rv"; align-items: center; column-gap: 8px; row-gap: 4px; padding: 8px 8px 8px 6px; background: rgba(11,13,28,.88); cursor: pointer; }
.ar-je.won { border-color: #5cf08e; } .ar-je.lost { border-color: rgba(255,255,255,.5); }
.ar-je.unseen { box-shadow: 0 0 0 3px var(--arp), var(--sh); }
.ar-je-k { grid-area: k; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; border: 2px solid #fff; color: var(--ink); }
.ar-je-k.atk { background: var(--arp); } .ar-je-k.def { background: #33d6ff; }
.ar-je > .ar-face { grid-area: f; }
.ar-je-t { grid-area: t; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-je-t b { font: 400 15.5px/1.1 var(--pop); }
.ar-je-t i { font: normal 600 14px/1 var(--ui); color: #aab0d6; text-transform: uppercase; }
.ar-nw { color: var(--arp); font-style: normal; }
.ar-je-r { grid-area: r; display: flex; align-items: center; gap: 6px; justify-self: end; }
.ar-res { padding: 2px 6px 0; border-radius: 7px; font: 400 13px/16px var(--pop); color: var(--ink); }
.ar-res.w { background: #5cf08e; } .ar-res.l { background: #c9cee6; }
.ar-je-d { font: 400 18px/1 var(--num); }
.ar-je-g { display: flex; align-items: center; gap: 2px; font: 400 15px/1 var(--num); color: #ffd84a; }
.ar-je-g .ico-coin { width: 14px; height: 14px; }
.ar-rv { grid-area: rv; justify-self: end; min-height: 32px; height: 32px; padding: 0 10px; font-size: 14px; border-width: 2.5px; }
.ar-more { width: 100%; margin-top: 4px; font-size: 16px; }

/* ---------- leaderboard ---------- */
.ar-tiers { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 10px; padding: 6px 4px; border-radius: 14px; background: rgba(11,13,28,.7); }
.ar-ti { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.ar-ti b { font: 400 12px/1 var(--pop); color: var(--tc); }
.ar-ti i { font: normal 400 12px/1 var(--num); color: #aab0d6; }
.ar-lrows { display: grid; gap: 6px; }
.ar-lr { display: grid; grid-template-columns: 42px auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; background: rgba(11,13,28,.88); border-width: 2.5px; }
.ar-lr.me { background: linear-gradient(90deg, #4a1238, #1b1236); border-color: var(--arp); }
.ar-rk { position: relative; display: grid; place-items: center; height: 36px; font-size: 13px; color: var(--pc, #fff); }
.ar-rk .i { position: absolute; top: -6px; font-size: 16px; }
.ar-rk b { font: 400 22px/1 var(--num); color: var(--pc, #fff); }
.ar-lr-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-lr-t b { font: 400 16px/1.1 var(--pop); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-lr-t b em { font: 400 11px/1 var(--pop); font-style: normal; padding: 1px 5px 0; border-radius: 6px; background: var(--arp); color: var(--ink); vertical-align: 2px; }
.ar-lr-t i { font: normal 600 13px/1 var(--ui); color: #aab0d6; text-transform: uppercase; }
.ar-lr-r { display: flex; flex-direction: column; align-items: flex-end; }
.ar-lr-r b { font: 400 22px/1 var(--num); }
.ar-lr-r i { font: normal 600 13px/1 var(--ui); color: var(--tc); text-transform: uppercase; }
.ar-me-pin { position: sticky; bottom: -72px; margin-top: 10px; padding-top: 6px; }

/* ---------- home pill + NOUVEAU Arène ---------- */
.pill.arn .pi { background: #ff5fb8; }
.nv-ar { position: relative; z-index: 2; width: 340px; margin: 6px auto 0; display: grid; gap: 10px; }
.nv-tiers { display: flex; justify-content: center; align-items: flex-end; gap: 4px; min-height: 66px; }
.nv-ti { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nv-ti b { font: 400 11.5px/1 var(--pop); color: var(--tc); -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; }
.nv-pts { list-style: none; margin: 0; padding: 8px 12px; display: grid; gap: 6px; border-radius: 14px; background: rgba(11,13,28,.78); border: 2.5px solid #fff; }
.nv-pts li { display: flex; align-items: center; gap: 8px; font: 600 17px/1.05 var(--ui); text-transform: uppercase; text-align: left; }
.nv-pts li > .i { flex: none; width: 26px; height: 26px; padding: 3px; border-radius: 8px; background: #ff5fb8; color: var(--ink); }

/* ---------- album: 8 race tabs scroll horizontally on the phone ---------- */
body:not(.lay-desk) .alb-races.many { overflow-x: auto; overflow-y: visible; padding: 12px 2px 4px; margin-top: -4px; scrollbar-width: none; scroll-snap-type: x proximity; }
body:not(.lay-desk) .alb-races.many::-webkit-scrollbar { display: none; }
body:not(.lay-desk) .alb-races.many .alb-race { flex: none; min-width: 118px; scroll-snap-align: start; }

/* ---------- deck editor: race filter, synergy preview, hero picker ---------- */
.dk-filt { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.dk-filt::-webkit-scrollbar { display: none; }
.dk-rf { flex: none; display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px 0 4px; border-radius: 16px; border: 2px solid rgba(255,255,255,.35); background: rgba(11,13,28,.8); color: #fff; font: 600 15px/1 var(--ui); text-transform: uppercase; cursor: pointer; }
.dk-rf .ri { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--rc); color: var(--ink); font-size: 14px; border: 1.5px solid #fff; }
.dk-rf.on { background: var(--rc); color: var(--ink); border-color: #fff; }
.dk-rf.on .ri { background: #fff; }
.dk-rf em { font: 400 13px/1 var(--num); font-style: normal; opacity: .8; }
.dk-syn { display: grid; gap: 4px; margin-top: 6px; }
.dk-sy { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px; font: 600 14.5px/1.1 var(--ui); color: #cfd4ee; }
.dk-sy b { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 0; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.4); font: 400 13px/16px var(--num); color: #aab0d6; }
.dk-sy.on { color: #fff; } .dk-sy.on b { background: var(--rc); color: var(--ink); border-color: #fff; }
.dk-sy.nx b { border-color: var(--rc); color: var(--rc); }
.dk-sy span em { color: var(--rc); font-style: normal; }
.dk-hbtn { position: relative; cursor: pointer; }
.dk-hbtn::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--y) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3 2 8l5 5v-3.5h9V6.5H7zm10 8v3.5H8v3h9V21l5-5z' fill='%230b0d1c'/%3E%3C/svg%3E") center / 15px no-repeat; border: 2px solid #fff; }
.hp-sheet h3 { margin-bottom: 4px; }
.hp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 470px; overflow-y: auto; padding: 4px 2px 8px; }
.hp-h { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 5px; border-radius: 14px; border: 2.5px solid rgba(255,255,255,.3); background: rgba(11,13,28,.8); color: #fff; cursor: pointer; }
.hp-h .ar-face { --s: 56px; }
.hp-h b { font: 400 13px/1.05 var(--pop); text-align: center; }
.hp-h i { font: normal 600 12px/1 var(--ui); color: #aab0d6; text-transform: uppercase; }
.hp-h.on { border-color: var(--y); background: linear-gradient(180deg, #3a2f12, #12152a); }
.hp-h.lock { cursor: default; }
.hp-h.lock .ar-face { filter: grayscale(1) brightness(.55); }
.hp-h.lock::after { content: ""; position: absolute; top: 32px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #4a5072 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1.5v12h-13V10zm2.5 0h5V7a2.5 2.5 0 0 0-5 0z' fill='%23fff'/%3E%3C/svg%3E") center / 13px no-repeat; border: 2px solid #fff; }
.hp-race { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin-top: 4px; font: 400 15px/1 var(--pop); color: var(--rc); }
.hp-race .ri { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--rc); color: var(--ink); font-size: 13px; }
.hp-info { margin: 4px 0 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.08); font: 600 15px/1.15 var(--ui); color: #e6e9f7; }
.hp-info b { color: var(--y); font-weight: 600; }
.hp-det { min-height: 54px; margin: 6px 0 2px; font: 600 15px/1.15 var(--ui); color: #e6e9f7; }
.hp-det b { font: 400 17px/1.1 var(--pop); color: #fff; display: block; }
.hp-det em { color: #ffd84a; font-style: normal; }

/* NOUVEAU Arène: the moment also shows the tiers + 3 rules (smaller icon, everything moved up) */
.nv-arene .nv-stk { top: 54px; font-size: 50px; }
.nv-arene .nv-ico { top: 140px; width: 128px; height: 128px; margin-left: -64px; border-radius: 32px; font-size: 78px; }
.nv-arene .nv-t { top: 290px; }
.nv-arene .nv-d { top: 342px; font-size: 21px; }
.nv-arene .nv-ar { position: absolute; left: 50%; top: 380px; margin: 0 0 0 -170px; }
.nv-arene .nv-go { top: 612px; }

/* result: flow layout (several rewards may stack: tier change, first win, booster, level) */
.ar-rs.rs { overflow-y: auto; scrollbar-width: none; padding-bottom: 80px; }
.ar-rs .rs-title { margin-top: 10px; font-size: 50px; }
.ar-rs .rs-act { position: relative; left: auto; right: auto; bottom: auto; margin: 16px 16px 0; }
.ar-rs .rs-act .btn { height: 58px; font-size: 22px; white-space: nowrap; }
.ar-rd { grid-template-areas: "b t" "p p"; }
.ar-rd > .ar-tb { grid-area: b; } .ar-rd-t { grid-area: t; }
.ar-rd-p { grid-area: p; display: grid; gap: 4px; text-align: left; }
.ar-rd-p:empty { display: none; }
.ar-rd-p i { font: normal 600 15px/1 var(--ui); text-transform: uppercase; color: #f1e8ff; }
.ar-rd-p em { color: var(--tc); font-style: normal; }
.ar-nx { flex-wrap: wrap; }
body.lay-phone .ar-nx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 12px; }
body.lay-phone .ar-nxo { flex-direction: column; gap: 4px; padding: 6px 4px; text-align: center; }
body.lay-phone .ar-nxo b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
/* hub: compact rank card on the phone, CTA right under it */
body.lay-phone .ar-rank { padding: 8px 12px; }
body.lay-phone .ar-rank .ar-tb { --s: 62px !important; }
body.lay-phone .ar-rating { font-size: 44px; }
.ar-hub .ar-go { margin: 10px 0 0; }
.ar-dk-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 16px; }
.ar-away.nolink { grid-template-columns: auto 1fr; cursor: default; }
/* picker: button in the 2nd row */
.ar-o2 { grid-template-columns: auto minmax(0, 1fr) auto; }
body.lay-phone .ar-atk small { display: none; }
body.lay-phone .ar-atk { padding: 0 12px; font-size: 16px; }
/* deck chooser rows */
.ar-dl { display: grid; gap: 8px; margin: 8px 0 12px; }
.ar-dli { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.2); }
.ar-dli.cur { border-color: var(--y); }
.ar-dli .ar-pow { margin-top: 4px; }
.ar-cur { background: var(--y); color: var(--ink); }
.ar-sheet p { margin: 4px 0 0; font: 600 16px/1.2 var(--ui); color: #cfd4ee; }
.ar-sheet .mrow { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dk-hbtn { padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* world map with N zones (phone: tall board scrolled to the current zone) */
body.lay-phone .board.zmap.tall { overflow-y: auto; scrollbar-width: none; }
body.lay-phone .board.zmap.tall::-webkit-scrollbar { display: none; }
.board.zmap .bzn { position: absolute; left: 10px; top: 46px; z-index: 5; background: #2a1f55; }
.ztile.cur { z-index: 4; }

/* bottom sheets of the Arène deck chooser / hero picker: dark like the game (meta .sbox is a light sticker) */
.sbox.hp-sheet, .sbox.ar-sheet { background: linear-gradient(180deg, #1b1f3d, #0d0f22); color: #fff; }
.sbox.hp-sheet h3, .sbox.ar-sheet h3 { color: #fff; }
.hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 500px; }
.hp-grp { padding: 4px 6px 6px; border-radius: 14px; background: rgba(255,255,255,.05); border: 2px solid rgba(255,255,255,.12); }
.hp-grp .hp-race { margin: 2px 0 4px; }
.hp-hs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hp-h { padding: 5px 2px 4px; }
.hp-h.lock::after { top: 28px; }
.hp-det { color: #e6e9f7; }

/* ---------- quests (#/quetes, home pill, dashboard block) ---------- */
.pill.qst .pi { background: #3fdc72; }
.pill.qst { position: relative; }
.qs-dot { position: absolute; top: -8px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--red); border: 2px solid #fff; font: 400 13px/19px var(--pop); color: #fff; text-align: center; }
.qs-cols { display: grid; gap: 4px; }
.qs-sec .sec h3 { font-size: 20px; }
.qs-tm { background: #1b2a55; font-size: 15px; height: 26px; }
.qs-q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 8px; padding: 9px 10px; background: rgba(11,13,28,.88); }
.qs-q.done { border-color: var(--y); background: linear-gradient(90deg, rgba(255,210,26,.16), rgba(11,13,28,.9) 60%); }
.qs-q.claimed { opacity: .62; }
.qs-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: #2a2f55; border: 2px solid #fff; color: #fff; }
.qs-q.done .qs-ic, .qs-mini.done .qs-ic { background: var(--y); color: var(--ink); }
.qs-q.claimed .qs-ic, .qs-mini.claimed .qs-ic { background: var(--green); color: var(--ink); }
.qs-t { min-width: 0; display: grid; gap: 5px; }
.qs-t > b { font: 600 17px/1.1 var(--ui); text-transform: uppercase; letter-spacing: .3px; }
.qs-bar { position: relative; display: block; height: 16px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; }
.qs-bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, #3fdc72, #b9ffcf); }
.qs-q.done .qs-bar > span, .qs-mini.done .qs-bar > span { background: linear-gradient(90deg, #ffd21a, #fff3a8); }
.qs-bar em { position: relative; display: block; text-align: center; font: 400 13px/16px var(--num); font-style: normal; color: #fff; text-shadow: 0 1px 2px #000; }
.qs-rws { display: flex; flex-wrap: wrap; gap: 6px; }
.qs-rw { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px 0 4px; border-radius: 11px; background: rgba(255,255,255,.08); font: 400 15px/1 var(--num); }
.qs-rw .ico-coin, .qs-rw .ico-gem { width: 15px; height: 15px; }
.qs-rw.xp i { font: 400 11px/1 var(--pop); font-style: normal; color: #33d6ff; }
.qs-rw.qb .qs-bimg { width: 16px; height: 21px; object-fit: contain; }
.qs-rw.ch { color: var(--y); }
.qs-claim { height: 44px; padding: 0 12px; font-size: 17px; }
.qs-ok { font: 400 14px/1 var(--pop); color: var(--green); }
.qs-chest { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin: 4px 0 8px; padding: 8px 12px; background: linear-gradient(135deg, #3a2f12, #12152a 70%); }
.qs-chest .qs-cimg { width: 46px; height: 58px; object-fit: contain; rotate: -8deg; }
.qs-chest b { display: block; font: 400 17px/1 var(--pop); }
.qs-cbar { display: flex; gap: 4px; margin: 5px 0 3px; font-size: 20px; color: rgba(255,255,255,.2); }
.qs-cbar i.on { color: var(--y); filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
.qs-chest small { font: 600 14px/1.1 var(--ui); color: #cfd4ee; text-transform: uppercase; }
.qs-mock { margin: 10px 4px; font: 600 14px/1.2 var(--ui); color: #ffb0bd; text-transform: uppercase; }
.qs-home { padding: 12px 14px; background: rgba(11,13,28,.88); display: grid; gap: 8px; }
.qs-home .ds-h { display: flex; align-items: center; }
.qs-home .ds-h .sp { flex: 1; }
.qs-home .qs-tm { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; font: 600 15px/1 var(--ui); }
.qs-mini { display: grid; grid-template-columns: auto minmax(0, 1fr) 120px; align-items: center; gap: 8px; color: #fff; }
.qs-mini .qs-ic { width: 30px; height: 30px; font-size: 16px; border-radius: 10px; }
.qs-mini b { font: 600 16px/1.05 var(--ui); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-all { height: 44px; font-size: 18px; }

/* PvE result: heroes that join (zone boss), zone opened */
.rs-heroes { display: flex; align-items: center; gap: 8px; margin: 10px auto 0; padding: 6px 14px 6px 8px; border-radius: 30px; background: rgba(11,13,28,.85); border: 3px solid #fff; box-shadow: 0 4px 0 rgba(0,0,0,.5); max-width: 92%; }
.rs-hero { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 3px solid var(--rc); background: #222 center 20% / cover; margin-right: -14px; }
.rs-hero:last-of-type { margin-right: 0; }
.rs-heroes b { font: 400 17px/1.1 var(--pop); color: #fff; }
.rs-zone { margin: 8px auto 0; background: #1f9e57; }
/* journal: the opponent's best 3 cards (from the replay log, loaded lazily) */
.ar-je-c { display: flex; gap: 4px; min-height: 46px; margin-top: 1px; }
.ar-je-c:empty { min-height: 0; }
.ar-je-c .card { flex: none; pointer-events: none; }
body.lay-desk .ar-je-c { gap: 6px; min-height: 61px; }
