/* css/sheet-menus.css — menus, panneaux (.panel), carte du jour, boutons et fiches du Sanctuaire.
   V11 : système de boutons unifié (modèle « Relever le défi ») + nouveaux éléments
   ====================================================================== */
/* --- Blocs plus aérés --- */
.panel { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); padding: 16px 18px; }
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) { .panel { padding: 20px 22px; } }
.panel-title { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-xs); margin-bottom: 12px; }
.daily-card { background: radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 60%), radial-gradient(ellipse at 100% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%), var(--panel); overflow: hidden; align-items: center; grid-template-columns: auto minmax(0, 1fr); display: grid; padding: 22px 24px; gap: 18px; }
@media (max-width: 599px) { .daily-card { padding: 18px; } }
.stack { flex-direction: column; display: flex; gap: 14px; }
/* --- Boutons : dégradé, ombre portée de 3 px, gras ; cadre pointillé incliné derrière --- */
/* Cadre pointillé incliné : primaires, dorés, danger et grands boutons */
.subnav button, .tabbar button, .icon-btn, .seg button { box-shadow: none; }
.icon-btn { place-items: center; display: grid; font-size: var(--fs-lg); cursor: pointer; border-radius: 12px; flex-shrink: 0; height: 44px; width: 44px; background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 85%, #fff), var(--panel-2)); border: 0; box-shadow: 0 2px 0 color-mix(in srgb, var(--line) 85%, #000); }
/* --- Page du donjon : personnage + actions à gauche, caractéristiques en barres à droite --- */
.hero-go { display: flex; flex-direction: column; gap: 10px; }
.run-note { font-size: var(--fs-xs); line-height: 1.3; }
.hero-stats.bars .panel-title { margin: 0 0 2px; }
.hsb-top b { font-family: var(--font-title); font-size: var(--fs-md); }
.hsb-top small { color: var(--muted); font-weight: 600; font-family: inherit; font-size: var(--fs-xs); }
.hsb-top i { font-style: normal; font-size: var(--fs-xs); font-weight: 800; color: var(--ok-ink); }
.hsb-top i.down { color: var(--danger); }
.hsb-bar i { border-radius: 99px; }
.rule-chip { margin-top: 10px; display: inline-flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: var(--fs-xs); line-height: 1.35;
  background: color-mix(in srgb, var(--tc, var(--accent)) 12%, transparent); border: 1px dashed color-mix(in srgb, var(--tc, var(--accent)) 50%, transparent); color: var(--text); }
.rule-chip img.pxi { width: 18px; height: 18px; flex: none; margin-top: 1px; }
@media (min-width: 700px) {
  .hero-card.v2 .hero-body { gap: 22px; }
}
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) {
  .hero-card.v2 .hero-body { align-items: start; }
  .hero-card.v2 .hero-portrait { border-radius: 18px; padding: 10px; }
  
  
}
/* --- Défi du jour / de la semaine --- */
.daily-me { font-size: var(--fs-sm); color: var(--muted); margin-top: 6px; }
.daily-me b { color: var(--text); font-family: var(--font-title); }
.daily-top { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); width: 100%; display: grid; gap: 4px; font-size: var(--fs-xs); }
.daily-top li { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.daily-top li b { color: var(--text); font-variant-numeric: tabular-nums; }
.weekly-card { border-color: color-mix(in srgb, var(--weekly) 55%, var(--line));
  background: radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--weekly) 24%, transparent), transparent 60%), radial-gradient(ellipse at 100% 100%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 55%), var(--panel); }
.weekly-card .daily-ico { background: color-mix(in srgb, var(--weekly) 30%, var(--panel-2)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--weekly) 50%, transparent), 0 8px 18px color-mix(in srgb, var(--weekly) 25%, transparent); }
.weekly-card .daily-ico img.pxi { animation: none; }
.weekly-card .daily-kicker { color: color-mix(in srgb, var(--weekly) 80%, var(--text)); }
.weekly-card::after { border-color: color-mix(in srgb, var(--weekly) 14%, transparent); }
/* --- Reliques --- */
.relic-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; text-align: left; min-width: 0; }
button.relic-tile { cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
button.relic-tile:hover { transform: translateY(-2px); border-color: var(--gold); }
.relic-tile.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 10px 22px rgba(217, 169, 58, .25); }
.relic-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 40%, transparent), color-mix(in srgb, var(--gold) 10%, var(--panel-2))); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); }
.relic-ico img.pxi { width: 26px; height: 26px; }
.relic-ico.sm, .relic-tile.sm .relic-ico { width: 32px; height: 32px; border-radius: 10px; }
.relic-ico.sm img.pxi, .relic-tile.sm .relic-ico img.pxi { width: 18px; height: 18px; }
.relic-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.relic-txt strong { font-family: var(--font-title); font-size: var(--fs-md); }
.relic-txt small { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.relic-tile.sm { padding: 8px 10px; }
.relic-tile.sm .relic-txt strong { font-size: var(--fs-sm); }
.relic-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; width: min(900px, 100%); }
.relic-choices .relic-tile { flex-direction: column; text-align: center; padding: 22px 16px; }
.relic-choices .relic-ico { width: 64px; height: 64px; }
.relic-choices .relic-ico img.pxi { width: 36px; height: 36px; }
.relic-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.relic-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rule-line { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.35; }
.rule-line + .rule-line { margin-top: 8px; }
.rule-line img.pxi { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.rule-line.sm { font-size: var(--fs-xs); color: var(--muted); }
.rule-line.sm b { color: var(--text); }
.menu-dot { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--gold); color: var(--ink-dark); font-size: var(--fs-xs); font-weight: 800; display: grid; place-items: center; }
/* --- Bulles de première fois --- */
.coach { position: fixed; z-index: var(--z-coach); left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 84px); transform: translateX(-50%); width: min(460px, calc(100vw - 24px));
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); animation: coachIn .35s ease-out both; }
@keyframes coachIn { from { opacity: 0; transform: translate(-50%, 12px); } }
.coach-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 22%, var(--panel-2)); }
.coach-body strong { font-family: var(--font-title); font-size: var(--fs-md); }
.coach-body p { margin: 4px 0 10px; font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); }
.coach-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.coach-skip { background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-xs); color: var(--muted); text-decoration: underline; cursor: pointer; }
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) { .coach { bottom: 110px; } }
/* --- Fin de descente --- */
.sum-track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: 100%; }
.sum-step { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); text-align: center; min-width: 0; }
.sum-step span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--panel-2); }
.sum-step small { font-size: var(--fs-xs); line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sum-step.ok { border-style: solid; border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); color: var(--text); }
.sum-step.ok span { background: var(--ok); color: #10200f; }
.sum-step.here { border-style: solid; border-color: var(--danger); }
.sum-step.here span { background: var(--danger); color: #fff; }
@media (max-width: 599px) { .sum-step small { display: none; } }
.sum-cause-row { display: flex; gap: 14px; align-items: center; }
.sum-cause-row img { width: 64px; height: 64px; image-rendering: pixelated; flex: none; }
.sum-cause-row p { margin: 4px 0 0; font-size: var(--fs-sm); line-height: 1.4; }
.sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.sum-list li { display: flex; align-items: center; gap: 8px; }
.sum-list li.ach { color: color-mix(in srgb, var(--gold-ink) 70%, var(--text)); font-weight: 700; }
/* --- Codex : hauts faits --- */
.ach-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ach-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); }
.ach-item.on { opacity: 1; border-style: solid; background: color-mix(in srgb, var(--gold) 8%, var(--panel-2)); }
.ach-sw { width: 22px; height: 22px; border-radius: 7px; flex: none; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); }
.ach-item span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ach-item strong { font-size: var(--fs-sm); }
.ach-item small { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.ach-item .ach-rw { color: var(--gold-ink); font-weight: 700; }
.ach-item:not(.on) { border-color: color-mix(in srgb, var(--muted) 45%, transparent); }
.ach-item:not(.on) strong { color: var(--muted); }
html:not(.dark) .ach-item .ach-rw { color: #6b4a08; }
.av-swatch.locked { opacity: .35; cursor: not-allowed; position: relative; }
.av-swatch.locked::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; }
/* --- Son --- */
.snd-btn .snd-ico { line-height: 1; position: relative; display: inline-grid; place-items: center; }
.snd-btn .snd-ico img.pxi { width: 20px; height: 20px; }
.snd-btn.muted .snd-ico { opacity: .45; }
.snd-btn.muted .snd-ico::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 2px; background: var(--danger); transform: rotate(-35deg); }
.topbar .snd-btn { position: relative; width: 36px; height: 36px; margin-left: auto; }
.topbar .snd-btn::after { content: ""; position: absolute; inset: -4px; }
.topbar:not(.topbar-run) > .snd-btn + .currency { margin-left: 8px; }
.confirm-box { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(420px, 100%); }
/* ===== V11.1 ===== */
/* Boutons principaux à la couleur de la tenue du joueur */
/* Lisibilité des boutons en thème sombre */
/* Page du donjon : personnage centré face aux caractéristiques, Ascension + Descendre sur une ligne */
.hero-card.v2 .hero-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; }
@media (min-width: 700px) { .hero-card.v2 .hero-body { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.hero-card.v2 .hero-portrait { position: relative; align-self: center; justify-content: center; }
.hero-class { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--muted); margin-top: -4px; }
.hero-class img.pxi { width: 14px; height: 14px; }
.hero-launch { align-items: stretch; }
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) {
  
  .hero-launch .asc-row { height: 100%; }
}
/* Barres de caractéristiques : fines et discrètes */
.hero-stats.bars { border-radius: 14px; flex-direction: column; display: flex; background: transparent; border: 0; padding: 4px 0; gap: 12px; }
.hsb-top { align-items: baseline; justify-content: space-between; display: flex; font-size: var(--fs-sm); }
.hsb-bar { border-radius: 99px; position: relative; height: 3px; margin-top: 6px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: visible; }
.hsb-bar i { bottom: 0; top: 0; left: 0; position: absolute; background: color-mix(in srgb, var(--tc, var(--accent)) 85%, var(--text)); }
.hsb-bar i::after { content: ""; position: absolute; right: -3px; top: 50%; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-50%); background: var(--panel); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc, var(--accent)) 85%, var(--text)); }
.hsb-bar u { bottom: 0; top: 0; position: absolute; height: 3px; background: color-mix(in srgb, var(--ok) 70%, transparent); border-radius: 99px; }
@media (max-width: 1023px) { .hsb-bar { height: 5px; } }
/* Bouton son : bien détaché de la navigation et de la monnaie */
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) {
  
  .topbar .snd-btn { margin-left: auto; margin-right: 10px; }
  .topbar:not(.topbar-run) > .snd-btn + .currency { margin-left: 0; }
}
/* Atelier : classes */
.cls-mods { display: flex; flex-wrap: wrap; gap: 4px; }
.cls-mods i { font-style: normal; font-size: var(--fs-xs); font-weight: 800; padding: 2px 6px; border-radius: 99px; }
.cls-mods i.up { background: color-mix(in srgb, var(--ok) 20%, transparent); color: color-mix(in srgb, var(--ok-ink) 70%, var(--text)); }
.cls-mods i.down { background: color-mix(in srgb, var(--danger) 16%, transparent); color: color-mix(in srgb, var(--danger) 75%, var(--text)); }
.hero-card.v2 .hero-class img.pxi { width: 14px !important; height: 14px !important; }
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) {
  
  .hero-launch .hero-go { justify-content: center; }
  
}
/* ===== V11.2 ===== */
/* Page du donjon : trois blocs à gauche, bouton de descente visible sans défiler */
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) {
  .play-grid { gap: var(--gap); grid-template-columns: 1.3fr 1fr; display: grid; align-items: start; }
  .hero-card.v2 { height: auto; min-height: 0; gap: 14px; padding: 18px 22px; }
  .hero-card.v2 .hero-body { flex: none; gap: 16px; }
  :root { --hero-portrait: clamp(96px, 16dvh, 170px); }
  .hero-card.v2 .hero-portrait img { width: var(--hero-portrait); }
  .hero-head h3 { font-size: var(--fs-2xl); }
  
  .hero-launch .hero-go > .btn-lg { min-height: 56px; }
}
.play-left { min-width: 0; }
.dpath.panel { border-top: 1px solid var(--line); padding-top: 16px; }
.last-run { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.last-run > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); }
.last-run small { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.last-run b { font-family: var(--font-title); font-size: var(--fs-lg); }
@media (max-width: 599px) { .last-run { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Pendant les animations de coup, la vibration ne doit pas gêner */
/* ===== V11.3 ===== */
/* Ascension et Descendre : même hauteur, légende dessous */
.hero-launch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) { .hero-launch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.launch-col { display: flex; }
.asc-row.asc-compact { min-height: 56px; height: 56px; padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
.asc-compact strong { font-family: var(--font-title); font-size: var(--fs-lg); }
.hero-go > .btn-lg, .hero-launch .hero-go > .btn-lg { min-height: 56px !important; height: 56px; }
/* Niveau du joueur au-dessus du personnage */
.hero-lvl { border: 1px solid color-mix(in srgb, var(--outfit, var(--accent)) 50%, var(--line)); background: color-mix(in srgb, var(--outfit, var(--accent)) 22%, var(--panel-2)); border-radius: 99px; letter-spacing: .06em; font-weight: 800; font-size: var(--fs-xs); font-family: var(--font-title); display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 12px 6px; }
.hero-lvl-bar { display: block; width: 72px; height: 3px; border-radius: 99px; background: color-mix(in srgb, var(--text) 12%, transparent); overflow: hidden; }
.hero-lvl-bar i { display: block; height: 100%; background: var(--outfit, var(--accent)); border-radius: inherit; }
/* Sanctuaire : offre du jour, articles à venir */
.shop-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: var(--fs-sm); color: var(--muted);
  background: color-mix(in srgb, var(--gold) 10%, var(--panel)); border: 1px dashed color-mix(in srgb, var(--gold) 45%, var(--line)); margin-bottom: 4px; }
.shop-note b { color: var(--text); }
.shop-rest.lvl { background: repeating-linear-gradient(45deg, transparent 0 6px, color-mix(in srgb, var(--gold) 12%, transparent) 6px 12px); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
/* ===== V11.4 ===== */
/* Niveau dans l'en-tête */
.lvl-chip { margin-right: 8px; }
.lvl-chip b { font-family: var(--font-title); font-size: var(--fs-xs); line-height: 1; }
.lvl-chip-bar { width: 46px; }
.lvl-chip-bar i { display: block; height: 100%; background: var(--outfit, var(--accent)); }
@media (max-width: 599px) { .lvl-chip { padding: 3px 8px; margin-right: 6px; } .lvl-chip-bar { width: 34px; } }
.enter .app-main .panel, .enter .app-main .shop-row, .enter .app-main .relic-tile, .enter .app-main .td-card, .enter .app-main .beast { animation: blockIn .26s ease-out both; animation-delay: calc(var(--in, 0) * 25ms); }
/* Mobile : caractéristiques à droite du personnage sur la page du donjon */
@media (max-width: 699px) {
  .hero-card.v2 .hero-body { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: center; }
  :root { --hero-portrait: clamp(64px, 20vw, 98px); }
  .hero-card.v2 .hero-portrait img { width: var(--hero-portrait); }
  .hero-card.v2 .hero-name { font-size: var(--fs-sm); text-align: center; }
  .hero-card.v2 .hero-portrait .btn-sm { min-height: 36px; padding: .2rem .6rem; font-size: var(--fs-xs); }
  .hero-stats.bars { gap: 6px; padding: 0; }
  .hero-stats.bars .panel-title { margin-bottom: 0; font-size: var(--fs-xs); }
  .hsb-top { font-size: var(--fs-xs); }
  .hsb-top b { font-size: var(--fs-sm); }
  .hsb-bar { height: 3px; margin-top: 3px; }
  .hsb-bar i::after { width: 6px; height: 6px; }
  .hero-lvl { padding: 3px 8px 4px; font-size: var(--fs-xs); }
  .hero-lvl-bar { width: 52px; }
}
.topbar:not(.topbar-run) > .snd-btn { margin-left: auto !important; }
/* ===== V11.5 ===== */
/* Légendes sous Ascension et Descendre : centrées, même interligne, même écart */
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) {
  .launch-col.only-desk { display: flex !important; }
}
.launch-col { min-width: 0; flex-direction: column; gap: 10px; }
.launch-cap { color: var(--muted); display: block; text-align: center; line-height: 1.35; font-size: var(--fs-xs); padding: 0 6px; margin: 0; }
/* Niveau au-dessus du personnage, plus discret */
.hero-card.v2 .hero-lvl { order: -1; padding: 2px 9px 3px; gap: 3px; font-size: var(--fs-xs); background: transparent; border-color: color-mix(in srgb, var(--line) 80%, transparent); color: var(--muted); }
.hero-card.v2 .hero-lvl .hero-lvl-bar { width: 44px; height: 2px; }
/* Niveau de l'en-tête : sans barre, aligné sur le bouton son et les Échos */
.lvl-chip-bar { overflow: hidden; background: color-mix(in srgb, var(--text) 12%, transparent); border-radius: 99px; height: 3px; display: none; }
.lvl-chip { white-space: nowrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; gap: 3px; justify-content: center; align-items: center; display: inline-flex; height: 36px; padding: 0 12px; flex-direction: row; box-sizing: border-box; }
.topbar .snd-btn, .topbar .lvl-chip, .topbar .currency { align-self: center; }
/* Sous-menu du Sanctuaire : pas de fond qui dépasse */
.sticky-top, .sticky-top.sticky-top { padding: 0 0 10px; margin: 0; top: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Atelier : classes en pastilles sous le personnage */
.cls-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.cls-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; }
.cls-chip img.pxi { width: 14px; height: 14px; }
.cls-chip.on { border-color: var(--outfit, var(--accent)); box-shadow: 0 0 0 2px var(--outfit, var(--accent)); background: color-mix(in srgb, var(--outfit, var(--accent)) 16%, var(--panel-2)); }
.cls-detail { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cls-detail small { font-size: var(--fs-xs); color: var(--muted); }
.cls-detail .cls-mods { justify-content: center; }
.cls-fee { margin: 0; font-size: var(--fs-xs); font-weight: 700; color: color-mix(in srgb, var(--gold-ink) 70%, var(--text)); text-align: center; }
.cls-fee.poor { color: var(--danger); }
/* ===== V11.6 : atelier de personnage ===== */
.av-preview { align-items: center; flex-direction: column; display: flex; gap: 8px; padding: 22px 20px; background: radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--outfit, var(--accent)) 20%, transparent), transparent 65%), var(--panel); }
.av-tagline { font-size: var(--fs-sm) !important; margin-top: -4px !important; }
.av-cls-label { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); width: 100%; text-align: center; }
.av-options.v2 { display: flex; flex-direction: column; gap: 14px; }
.av-sec { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.av-sec-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-title); font-size: var(--fs-md); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.av-sec-title img.pxi { width: 18px; height: 18px; }
.av-name-line { display: flex; gap: 8px; align-items: stretch; }
.av-name-line .av-input { flex: 1; min-width: 0; }
.av-name-line .btn-sm { flex: none; min-height: 44px; }
.av-chip.on { border-color: var(--outfit, var(--accent)); background: color-mix(in srgb, var(--outfit, var(--accent)) 22%, var(--panel-2)); box-shadow: 0 0 0 1px var(--outfit, var(--accent)); }
.av-swatch { position: relative; border: 2px solid var(--line); border-radius: 50%; width: 30px; height: 30px; }
.av-swatch::before { content: ""; position: absolute; inset: -7px; }
.av-swatch.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--outfit, var(--accent)) 60%, transparent); }
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) {
  .avatar-view { gap: calc(var(--gap) * 2); grid-template-rows: none; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); align-items: start; }
  .av-preview { justify-content: center; position: sticky; top: 0; }
  
  
  
  .av-sec-id .av-sec-title { grid-column: 1 / -1; }
  .av-img { width: clamp(150px, 30vh, 260px); }
}
@media (max-width: 1023px) { .avatar-view { display: flex; flex-direction: column; overflow-y: auto; } .avatar-view > .scroll { overflow: visible; } }
/* V11.7 : sections de l'atelier les unes sous les autres */
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) {
  .av-options.v2 { align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); display: flex; flex-direction: column; gap: 16px; }
  .av-sec-id { grid-column: 1 / -1; column-gap: 24px; align-items: start; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); display: flex; }
}
.av-options.v2 { padding-bottom: 14px; align-items: stretch !important; }
.av-options.v2 > .av-sec { width: 100%; box-sizing: border-box; }
/* ===== V11.8 : couleur libre, options spéciales ===== */
.av-custom { position: relative; display: inline-grid; place-items: center; cursor: pointer; overflow: hidden;
  background: conic-gradient(#e74c3c, #f1c40f, #2ecc71, #1abc9c, #3498db, #9b59b6, #e74c3c); }
.av-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.av-custom:not(.on)::after { content: "+"; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; font-size: var(--fs-lg); pointer-events: none; }
.av-chip { font: inherit; cursor: pointer; font-weight: 700; font-size: var(--fs-sm); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 5px; }
.av-chip .prem { font-size: var(--fs-xs); color: var(--gold-ink); }
.av-chip.premium { border-style: dashed; }
/* V11.9 : afficher / masquer l'équipement sur le personnage */
.gear-vis { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; }
.gear-vis input { width: 20px; height: 20px; accent-color: var(--outfit, var(--accent)); flex: none; margin-top: 1px; }
.gear-vis span { display: flex; flex-direction: column; gap: 2px; }
.gear-vis small { font-size: var(--fs-xs); line-height: 1.3; }
.tabbar .menu-dot { position: absolute; top: 6px; right: calc(50% - 22px); }
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) { .tabbar .menu-dot { top: 4px; right: 4px; } }
/* ===== V12.2 : accélérer la révélation, lueur de victoire ===== */
