.hero-portrait { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.avatar-view { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
.av-img { width: clamp(96px, 22dvh, 180px); height: auto; aspect-ratio: 1; image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.av-preview p { margin: 0; text-align: center; font-size: var(--fs-sm); }
.av-options { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.av-group { display: flex; flex-direction: column; gap: 6px; }
.av-label { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.av-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.av-chip { background: var(--panel-2); }
.av-swatch { cursor: pointer; }
.av-swatch.on { border-color: var(--text); }
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) {
  
  
  
  .av-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
}
/* V8.1 : pseudo */
.av-input { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: var(--fs-lg); font-weight: 700; }
.av-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.av-shown-name { font-family: var(--font-title); font-size: var(--fs-lg); min-height: 1.4em; }
.hero-name { font-family: var(--font-title); font-size: var(--fs-lg); }
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) { .av-name { grid-column: 1 / -1; } }
/* V8.2 : trois donjons côte à côte sur ordinateur */
/* V8.3 : donjons verrouillés */
.unlock-note { color: var(--gold-ink); font-weight: 700; margin: 6px 0 0; }
/* ===== V9 : équipement, coffre, boutique visuelle ===== */
.item-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.item-card {
  display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; text-align: left; font: inherit; color: var(--text);
  border: 1px solid var(--line); border-left: 4px solid var(--ic); background: var(--panel);
}
button.item-card { cursor: pointer; }
button.item-card:hover { border-color: var(--accent); }
.item-card.worn { box-shadow: 0 0 0 2px var(--accent); }
.item-card.owned { opacity: .7; }
.item-head { display: flex; align-items: center; gap: 10px; }
.item-head strong { display: block; font-size: var(--fs-md); }
.item-head small { font-size: var(--fs-xs); }
.item-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--ic) 45%, #000), rgba(0, 0, 0, .35)); }
.item-ico img.pxi { width: 26px; height: 26px; }
.item-stats { display: flex; flex-wrap: wrap; gap: 4px; }
.item-stats .fx { font-size: var(--fs-xs); }
.item-desc { margin: 0; font-size: var(--fs-sm); line-height: 1.35; }
.item-state { align-self: flex-end; font-size: var(--fs-xs); font-weight: 800; color: var(--accent-ink); }
.item-card .btn { align-self: stretch; margin-top: auto; }
.item-card.locked { opacity: .55; }
.shop-cards { gap: 14px; }
/* V13.13 : marchand décoratif en en-tête du rayon « Cartes » (retour d'Alexandre — même moteur de sprite
   que le joueur/les PNJ, apparence fixe). Colonne à côté de l'encart d'offre du jour ; passe au-dessus
   sur mobile faute de largeur. */
.shop-cards-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.shop-cards-head .shop-note { flex: 1 1 220px; min-width: 0; }
.shop-merchant { width: clamp(72px, 14dvh, 120px); height: auto; aspect-ratio: 1; flex: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
@media (max-width: 480px) { .shop-merchant { width: clamp(64px, 20vw, 88px); } }
.slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line); background: var(--panel-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.slot.full { border-style: solid; }
.slot:hover { border-color: var(--accent); }
.slot-ico { width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.slot-ico img.pxi { width: 24px; height: 24px; }
.slot-txt { display: flex; flex-direction: column; min-width: 0; }
.slot-txt strong { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-txt small { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.slot-n { position: absolute; top: 4px; right: 6px; font-size: var(--fs-xs); font-weight: 800; color: var(--gold-ink); }
.log > div { padding: 5px 0; display: flex; align-items: flex-start; gap: 6px; }
.log img.log-ico { width: 14px; height: 14px; flex: none; margin-top: 2px; opacity: .85; }
.codex-eq { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.codex-eq-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-left: 3px solid var(--ic, var(--line)); border-radius: 10px; background: var(--panel-2); color: var(--text); font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.codex-eq-item .item-ico { width: 28px; height: 28px; border-radius: 8px; }
.codex-eq-item .item-ico img.pxi { width: 18px; height: 18px; }
.codex-eq-item.unknown { opacity: .45; cursor: default; }
.lore-item.unknown { opacity: .45; }
.item-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (max-width: 599px) {
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .item-card { padding: 9px; gap: 6px; }
  .item-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .item-ico { width: 32px; height: 32px; }
  .item-head strong { font-size: var(--fs-sm); }
  .item-desc { font-size: var(--fs-xs); }
  .item-card .btn { font-size: var(--fs-xs); padding: 8px 6px; white-space: normal; }
}
html:not(.dark) .av-img { filter: drop-shadow(0 8px 10px rgba(150, 118, 70, .4)); }
/* Mentions de verrou : petites, jamais hors de la fiche */
.lock-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; padding: 8px 6px; border-radius: 10px; border: 1px dashed var(--line);
  font-size: var(--fs-xs); line-height: 1.25; font-weight: 700; color: var(--muted); text-align: center; overflow-wrap: anywhere; min-width: 0; }
.lock-note img.pxi { width: 14px; height: 14px; flex: none; opacity: .7; }
.shop-item .lock-note { margin-top: 0; border: 0; padding: 0; max-width: 45%; justify-content: flex-end; text-align: right; }
.item-card, .item-card > * { min-width: 0; }
.item-grid { display: grid; overflow-x: hidden; }
.hero-head h3 { margin: 0; font-family: var(--font-title); color: var(--tc); font-size: var(--fs-xl); }
.hero-head p { margin: 2px 0 0; font-size: var(--fs-sm); }
.hero-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.hero-card.v2 .hero-portrait img { width: var(--hero-portrait); }
.dpath { border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.dpath-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dpath-head .panel-title { margin: 0; }
.dpath-link { height: 0; }
.dpath-link.open { border-top-style: solid; border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.dpath-hint { margin: 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.3; }
.dpath-hint img { width: 28px; height: 28px; flex: none; image-rendering: pixelated; }
@keyframes keyPulse { 50% { filter: brightness(1.35) drop-shadow(0 0 6px rgba(255, 230, 150, .7)); } }
/* Codex : une seule tuile pour ce qui reste à découvrir */
.codex-head .codex-bar { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; margin-top: 4px; }
.codex-head .codex-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: inherit; }
.codex-rest { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); background: repeating-linear-gradient(45deg, transparent 0 6px, color-mix(in srgb, var(--line) 25%, transparent) 6px 12px); }
.codex-rest strong { font-family: var(--font-title); font-size: var(--fs-xl); color: var(--text); }
.codex-rest small { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.codex-rest.as-card { width: auto; aspect-ratio: 5 / 7; }
/* V13 (retour d'Alexandre) : même hauteur que .relic-tile.sm (32px d'icône + 8px de rembourrage haut/bas
   ⇒ 48px), qu'il partage ou non la ligne d'une relique dans la grille (align-self, pas seulement le
   min-height, au cas où il se retrouve seul sur sa ligne). */
.codex-rest.as-row { flex-direction: row; gap: 8px; padding: 8px 10px; min-height: 48px; align-self: stretch; }
.codex-rest.as-row strong { font-size: var(--fs-lg); }
.codex-rest.as-beast { min-height: 90px; }
.codex-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.codex-key { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--kc) 50%, var(--line)); background: color-mix(in srgb, var(--kc) 10%, var(--panel-2)); }
.codex-key img { width: 36px; height: 36px; image-rendering: pixelated; }
.codex-key span { display: flex; flex-direction: column; line-height: 1.15; }
.codex-key small { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.codex-key strong { font-family: var(--font-title); font-size: var(--fs-sm); color: var(--kc); }
html:not(.dark) .codex-key strong { color: color-mix(in srgb, var(--kc) 60%, var(--ink-dark)); }
/* ===== V10.5 — V13.13 : même largeur de contenu élargie (1400px) que layout.css, pour que le Sanctuaire,
   le résumé et la fiche de personnage profitent eux aussi du grand écran. ===== */
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) {
  :root:has(.sanct), :root:has(.summary), :root:has(.avatar-view), :root:has(.multi) { --edge: max(56px, calc((100vw - var(--page-w)) / 2)); }
}
.topbar-home { border-radius: 8px; }
.topbar-home:hover, .topbar-home:focus-visible { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.hero-card.v2 .hero-portrait, .hero-card.v2 .hero-portrait.hero-portrait { background: radial-gradient(closest-side, color-mix(in srgb, var(--tc) 16%, transparent), transparent) !important; }
/* Ascension lisible, même verrouillée */
.asc-row { border-radius: 12px; border: 1px solid var(--line); padding: 10px 12px; gap: 12px; justify-content: space-between; align-items: center; display: flex; flex-wrap: wrap; background: var(--panel); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.asc-row .stepper { border-radius: 99px; flex: none; border: 1px solid var(--line); background: var(--panel-2); }
.asc-row .stepper .asc-val { font-size: var(--fs-lg); padding: 0; color: var(--text); font-weight: 800; }
.asc-row .stepper button:disabled { color: var(--muted); opacity: .45; }
.asc-lock { flex: none; font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 99px; border: 1px dashed var(--line); color: var(--muted); }
/* Comment jouer */
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: h; }
.howto li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: var(--fs-md); line-height: 1.35; color: var(--muted); }
.howto li b { color: var(--text); }
.howto li img.pxi { width: 22px; height: 22px; margin: 1px auto 0; }
/* Boutique en lignes */
.shop-groups { display: flex; flex-direction: column; gap: 18px; }
.shop-group > .panel-title { margin: 0 0 8px; }
.shop-rows { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 900px) { .shop-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shop-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--ic) 12%, transparent), transparent 45%), var(--panel); color: var(--text); font: inherit; text-align: left; min-width: 0; }
button.shop-row { cursor: pointer; }
button.shop-row:hover { border-color: var(--ic); }
.sr-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--ic) 28%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--ic) 45%, transparent); }
.sr-ico img.pxi { width: 24px; height: 24px; }
.sr-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sr-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sr-title strong { font-size: var(--fs-md); line-height: 1.2; }
.sr-title small { font-size: var(--fs-xs); color: var(--muted); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sr-chips .fx { font-size: var(--fs-xs); }
.sr-desc { margin: 0; font-size: var(--fs-xs); line-height: 1.3; color: var(--muted); }
.sr-act { display: flex; justify-content: flex-end; min-width: 0; max-width: 130px; }
.sr-price { min-width: 64px; min-height: 44px; padding: 0 12px; border-radius: 99px; border: 0; font: inherit; font-weight: 800; font-size: var(--fs-md); cursor: pointer; white-space: nowrap;
  background: var(--accent); color: var(--ink-dark); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.sr-price span { color: inherit; opacity: .8; }
.sr-price:hover:not(:disabled) { filter: brightness(1.08); }
.sr-price.poor, .sr-price:disabled { background: var(--panel-2); color: var(--muted); box-shadow: none; cursor: not-allowed; border: 1px solid var(--line); }
.sr-tag { font-size: var(--fs-xs); font-weight: 800; padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.sr-tag.ok { color: var(--ok-ink); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.sr-tag.go { color: var(--text); border: 1px solid var(--line); background: var(--panel-2); }
.sr-lock { display: flex; align-items: center; gap: 5px; font-size: var(--fs-xs); line-height: 1.2; font-weight: 700; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.sr-lock img.pxi { width: 12px; height: 12px; flex: none; opacity: .7; }
.shop-row.owned { opacity: .78; }
.shop-row.locked { opacity: .55; }
.shop-row.blessing .sr-title strong { font-family: var(--font-title); font-size: var(--fs-sm); }
@media (max-width: 599px) {
  .shop-row { gap: 10px; padding: 10px; align-items: start; }
  .sr-act { max-width: 84px; align-self: center; }
  .sr-price { min-width: 56px; padding: 0 10px; font-size: var(--fs-sm); }
  .sr-ico { width: 34px; height: 34px; }
  .sr-ico img.pxi { width: 20px; height: 20px; }
  .sr-lock img.pxi { display: none; }
}
/* ===== V10.6 : prix inaccessibles explicites, éléments inconnus regroupés ===== */
.sr-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.sr-buy.wide { align-items: stretch; text-align: center; }
.sr-miss { font-size: var(--fs-xs); font-weight: 800; color: var(--danger); white-space: nowrap; letter-spacing: .02em; }
html:not(.dark) .sr-miss { color: #a3302a; }
.shop-list { display: flex; flex-direction: column; gap: 10px; }
.shop-rest { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); margin-bottom: 12px;
  background: repeating-linear-gradient(45deg, transparent 0 6px, color-mix(in srgb, var(--line) 25%, transparent) 6px 12px); }
.shop-rest strong { grid-row: span 2; font-family: var(--font-title); font-size: var(--fs-2xl); color: var(--text); }
.shop-rest span { font-weight: 800; color: var(--text); font-size: var(--fs-md); }
.shop-rest small { font-size: var(--fs-xs); }
/* Caractéristiques sur la page du donjon */
.hero-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hero-stats small { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-stats b { font-family: var(--font-title); font-size: var(--fs-lg); line-height: 1.1; }
.hero-stats i { position: absolute; top: -7px; right: -4px; font-style: normal; font-size: var(--fs-xs); font-weight: 800; padding: 1px 5px; border-radius: 99px; background: var(--ok); color: #10200f; }
.hero-stats i.down { background: var(--danger); color: #fff; }
@media (max-width: 599px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hero-stats small { font-size: var(--fs-xs); } }
/* Défi du jour, façon affiche */
.daily-card { position: relative; border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.daily-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; border: 10px solid color-mix(in srgb, var(--gold) 14%, transparent); pointer-events: none; }
.daily-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 30%, var(--panel-2)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent), 0 8px 18px color-mix(in srgb, var(--gold) 25%, transparent); }
.daily-ico img.pxi { width: 32px; height: 32px; animation: dailySpin 4s ease-in-out infinite; }
@keyframes dailySpin { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }
.daily-body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.daily-kicker { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: color-mix(in srgb, var(--gold-ink) 80%, var(--text)); }
.daily-title { font-family: var(--font-title); font-size: var(--fs-lg); line-height: 1.2; }
.daily-text { margin: 0 0 4px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.daily-card.off { filter: grayscale(1); opacity: .6; border-color: var(--line); }
.daily-card.off .daily-ico img.pxi { animation: none; }
html:not(.dark) .daily-kicker { color: #8a5d0e; }
/* Options : blocs par deux sur ordinateur */
.settings-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .settings-grid .span-2 { grid-column: 1 / -1; } }
.settings-grid .panel p { margin: 0; font-size: var(--fs-sm); }
.settings-grid .panel .btn { margin-top: auto; }
.keys-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.keys-list kbd { font: inherit; font-size: var(--fs-xs); font-weight: 800; color: var(--text); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--panel-2); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.danger-zone .panel-title { color: var(--danger); }
/* ===== V10.8 : menus repensés ===== */
/* --- Sous-menu : onglets segmentés, tout visible --- */
.subnav { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px;
  background: var(--panel-2); border: 1px solid var(--line); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08); }
.subnav button { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 12px;
  background: transparent; color: var(--muted); font: inherit; font-weight: 800; font-size: var(--fs-sm); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; min-width: 0; }
.subnav button img.pxi { width: 20px; height: 20px; opacity: .6; transition: opacity .15s, transform .15s; flex: none; }
.subnav button:hover { color: var(--text); background: color-mix(in srgb, var(--panel) 60%, transparent); }
.subnav button:hover img.pxi { opacity: .9; }
/* V12.65 : plus de cadre autour de l'onglet actif (jugé pas joli) ; juste le trait du bas, sur un
   léger fondu du bas vers le haut. */
.subnav button.active { background: none; color: var(--text); box-shadow: none; }
.subnav button.active::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 75%); pointer-events: none; }
.subnav button.active img.pxi { opacity: 1; transform: scale(1.08); }
.subnav button.active::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 3px; height: 3px; border-radius: 99px; background: var(--accent); }
.subnav .sn-short { display: none; }
.subnav .sn-full, .subnav .sn-short { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subnav .sn-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--ink-dark); font-size: var(--fs-xs); font-weight: 800; display: inline-grid; place-items: center; flex: none; }
.sticky-top .seg, .sticky-top > .seg { display: none; }
@media (max-width: 760px) {
  .subnav { gap: 2px; padding: 3px; border-radius: 14px; }
  .subnav button { flex-direction: column; gap: 3px; min-height: 54px; padding: 6px 2px 8px; font-size: var(--fs-xs); border-radius: 11px; }
  .subnav button img.pxi { width: 22px; height: 22px; }
  .subnav .sn-full { display: none; }
  .subnav .sn-short { display: block; max-width: 100%; }
  .subnav .sn-badge { position: absolute; top: 3px; right: calc(50% - 22px); min-width: 16px; height: 16px; font-size: var(--fs-xs); }
  .subnav button.active::after { bottom: 2px; height: 2px; }
}
/* ======================================================================
