﻿/* DTECT — panneaux hub (maquettes) */

.logo {
  letter-spacing: 0.01em;
}

.hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 18px;
  min-height: 48px;
}
.hub-head .brand {
  text-decoration: none;
  color: inherit;
}

.hub-head .logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  line-height: 1.05;
  color: var(--ink);
}

.hub-head .logo .dot {
  color: var(--red);
}

.hub-head .tagline {
  margin: 4px 0 0;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hub-bell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-2);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
  border: none;
  padding: 0;
}

.hub-bell img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hub-bell .dot-badge {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--bg);
}

/* Accueil — quête semaine (ligne) */
.hq-week {
  margin: 0 0 18px;
}

.hq-week-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hq-week-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.hq-week-head a {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}

a.hq-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  font: inherit;
}

.hq-row-ico {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
}

.hq-row-ico img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hq-row-body {
  flex: 1;
  min-width: 0;
}

.hq-row-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2px;
}

.hq-row-body small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}

.hq-row-chev {
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
}

/* Catalogue enquêtes */
.eq-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 14px;
}

.eq-title-row h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}

.eq-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.eq-search-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.eq-tools {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.eq-tools .btn-filter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--red) 35%, transparent);
}
html[data-theme="dark"] .eq-tools .btn-filter {
  background: var(--red);
  color: #1c1412;
}

.eq-tools .btn-sort {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--bg-card-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  cursor: pointer;
}

.eq-fav-bar {
  margin: -6px 0 12px;
}
.eq-fav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.eq-fav-toggle.on {
  background: color-mix(in srgb, #e8a53a 22%, var(--bg-card));
  border-color: #e8a53a;
  color: #8a5a00;
}
html[data-theme="dark"] .eq-fav-toggle.on {
  color: #ffe6a8;
}

.eq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 20px;
}

.eq-card-wrap {
  position: relative;
  min-width: 0;
}

.eq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.eq-card.is-fav {
  border-color: color-mix(in srgb, #e8a53a 55%, var(--line));
}
.eq-card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 12, 10, 0.55);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}
.eq-card-fav.on {
  color: #f0c14d;
  background: rgba(20, 12, 10, 0.7);
}

.eq-card.locked {
  opacity: 0.88;
}

.eq-card-cover {
  position: relative;
  height: 92px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.eq-lock {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(28, 20, 18, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}
.eq-lock .ico-lock {
  width: 12px;
  height: 12px;
  color: #fff;
  background: currentColor;
  -webkit-mask: url("../assets/icons/lock-ios.svg") center / contain no-repeat;
  mask: url("../assets/icons/lock-ios.svg") center / contain no-repeat;
}

.eq-card-body {
  padding: 8px 9px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eq-card-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0;
}

.eq-tag {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  background: var(--red-soft);
  color: var(--red-deep);
}

.eq-tag:nth-child(n + 2) {
  display: none;
}

html[data-theme="dark"] .eq-tag {
  background: var(--red-soft);
  color: var(--red);
}

.eq-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.eq-card-meta img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  opacity: 0.7;
}

/* Sheet filtres */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(20, 12, 10, 0.48);
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-height: 86%;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 40px rgba(28, 20, 18, 0.18);
  pointer-events: none;
}

.sheet.open {
  transform: translateY(0);
  pointer-events: auto;
}


.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: rgba(120, 100, 90, 0.35);
  margin: 4px auto 8px;
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sheet-top h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.sheet-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 8px;
}

.sheet-sec {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.sheet-sec:last-of-type {
  border-bottom: none;
}

.sheet-sec-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

.sheet-sec-label img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: none;
  background: var(--bg-card-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.chip.on {
  background: var(--red);
  color: #fff;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  padding-top: 12px;
}

.sheet-actions .btn-ghost-wide,
.sheet-actions .btn-primary-wide {
  flex: 1;
  padding: 14px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.sheet-actions .btn-ghost-wide {
  background: var(--bg-card-2);
  color: var(--ink);
}

.sheet-actions .btn-primary-wide {
  background: var(--red);
  color: #fff;
}

/* Boutique — DA crème / corail */
.shop-page .shop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 16px;
}
.shop-page .shop-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.shop-sub {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-deep);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
html[data-theme="dark"] .hint-pill {
  color: var(--red);
}
.hint-pill img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.85;
}

.shop-home {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.shop-row-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
}
.shop-row-ico.tone-amber {
  background: #c4842e;
}
.shop-row-ico.tone-deep {
  background: var(--red-deep);
}
.shop-row-ico img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.shop-row-body {
  flex: 1;
  min-width: 0;
}
.shop-row-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--serif);
  margin-bottom: 2px;
  color: var(--ink);
}
.shop-row-body small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.shop-row-chev {
  color: var(--muted);
  font-size: 18px;
}

.shop-back {
  border: none;
  background: none;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  padding: 0;
  margin: 0 0 14px;
  cursor: pointer;
}
.shop-sec-head {
  margin: 0 0 14px;
}
.shop-sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.shop-sec-head p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.shop-offer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-offer {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.shop-offer.highlight {
  border-color: color-mix(in srgb, var(--red) 45%, var(--line));
  background: color-mix(in srgb, var(--red-soft) 35%, var(--bg-card));
}
.shop-offer-qty {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
}
.shop-offer-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.shop-offer-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}
.shop-buy {
  padding: 9px 14px;
  border-radius: 999px;
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.shop-buy.ghost {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.shop-buy:disabled {
  opacity: 0.55;
  cursor: default;
  color: var(--muted);
  border-color: var(--line);
}

.sub-carousel {
  overflow: hidden;
  margin-top: 4px;
}
.sub-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.sub-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 1px;
}
.shop-plan {
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.shop-plan.popular {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red-soft) 40%, var(--bg-card));
}
.shop-plan-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.shop-plan-kicker.popular {
  color: var(--red);
}
.shop-plan-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.shop-plan-top h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.shop-plan-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}
.shop-plan-price small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.shop-plan-feats {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.shop-plan-feats li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.shop-plan-feats li:last-child {
  border-bottom: none;
}
.shop-plan-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.shop-plan .shop-buy {
  width: 100%;
  padding: 12px;
  font-size: 13px;
}
.sub-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.sub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--bg-card-2);
  cursor: pointer;
}
.sub-dot.on {
  background: var(--red);
  width: 18px;
  border-radius: 99px;
}

.frame-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.frame-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3px;
  background: var(--bg-card-2);
  box-sizing: border-box;
}
.frame-preview img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.frame-preview.frame-coral {
  background: linear-gradient(145deg, #e8a09a, #b04a4d 55%, #7a3034);
  padding: 4px;
}
.frame-preview.frame-gold {
  background: linear-gradient(145deg, #e8d4a0, #c49a4a 50%, #8a6a28);
  padding: 4px;
}
.frame-preview.frame-noir {
  background: linear-gradient(145deg, #5a5048, #2a2420 60%, #1a1412);
  padding: 4px;
}
.frame-preview.frame-teal {
  background: linear-gradient(145deg, #8fcfc4, #4a9a8e 55%, #2a6a62);
  padding: 4px;
}
.frame-preview.frame-berry {
  background: linear-gradient(145deg, #d4a0b8, #9a4d6e 55%, #6a3048);
  padding: 4px;
}
.frame-preview.frame-moon {
  background: linear-gradient(145deg, #c8d0dc, #6a7388 50%, #2e3444);
  padding: 4px;
}
.frame-preview.frame-forest {
  background: linear-gradient(145deg, #a8c4a0, #4f7a4a 55%, #2a4a28);
  padding: 4px;
}
.frame-preview-cap {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.frame-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.frame-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.frame-card.on {
  border-color: var(--red);
}
.frame-mini {
  width: 44px;
  height: 44px;
  padding: 2px;
  cursor: pointer;
}
.frame-card-body strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--serif);
  color: var(--ink);
  margin-bottom: 2px;
}
.frame-card .shop-buy {
  padding: 8px 12px;
}

.shop-panel[hidden] {
  display: none !important;
}
.shop-toast {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

/* Classement — moderne */
.lb-page {
  padding-bottom: 8px;
}
.lb-hero {
  margin: 2px 0 14px;
}
.lb-hero-kicker {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.lb-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.lb-hero-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.lb-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.lb-seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 6px;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.lb-seg-btn.on {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(40, 20, 16, 0.08);
}
.lb-seg-btn:active {
  transform: scale(0.98);
}

.lb-week-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  padding: 10px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: lb-in 0.35s ease both;
}
.lb-week-cover {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}
.lb-week-body { min-width: 0; }
.lb-week-kicker {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.lb-week-card h3 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-week-card p:last-child {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.lb-case-panel {
  margin: 0 0 14px;
  animation: lb-in 0.3s ease both;
}
.lb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.lb-search img {
  width: 16px;
  height: 16px;
  opacity: 0.55;
  flex-shrink: 0;
}
.lb-search input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.lb-case-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 148px;
  overflow-y: auto;
  margin-bottom: 8px;
  padding-right: 2px;
}
.lb-case-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lb-case-item.on {
  border-color: var(--red);
  background: var(--bg-card);
}
.lb-case-item img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.lb-case-item span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lb-case-item b {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-case-item small {
  font-size: 11px;
  color: var(--muted);
}
.lb-case-picked {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.lb-empty {
  margin: 8px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.lb-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  align-items: end;
  min-height: 210px;
}
.pod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 6px 10px;
  border-radius: 18px 18px 14px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: lb-rise 0.45s ease both;
  animation-delay: calc(var(--d, 0) * 70ms);
}
.pod-stand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--h, 40%);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--red) 10%, transparent));
  pointer-events: none;
  z-index: 0;
}
.pod-card > *:not(.pod-stand) {
  position: relative;
  z-index: 1;
}
.pod-card.p1 {
  border-color: color-mix(in srgb, var(--red) 35%, var(--line));
  box-shadow: 0 12px 28px rgba(120, 40, 40, 0.12);
  background: linear-gradient(180deg, color-mix(in srgb, var(--red) 12%, var(--bg-card)), var(--bg-card));
  animation-name: lb-rise-top;
}
.pod-card.me {
  outline: 1.5px solid color-mix(in srgb, var(--red) 45%, transparent);
}
.pod-rank {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #1c1412;
}
.pod-card.p1 .pod-rank { background: #e8c76a; }
.pod-card.p2 .pod-rank { background: #c5c8ce; }
.pod-card.p3 .pod-rank { background: #c9956a; }
.pod-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 8px;
  display: block;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(40, 20, 16, 0.12);
}
.pod-card.p1 .pod-av {
  width: 58px;
  height: 58px;
  border-color: color-mix(in srgb, #e8c76a 70%, #fff);
}
.pod-card b {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  margin-bottom: 2px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pod-card .role {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pod-card .pts {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}
.pod-bar {
  display: block;
  width: 70%;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: hidden;
}
.pod-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 0.5s ease;
}

.lb-list-wrap {
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 10px 10px 6px;
}
.lb-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lb-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 6px;
  border-radius: 12px;
  margin-bottom: 4px;
  animation: lb-in 0.35s ease both;
  animation-delay: calc(var(--d, 0) * 45ms);
}
.lb-row.me {
  background: color-mix(in srgb, var(--red) 9%, transparent);
}
.lb-row .pos {
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.lb-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lb-who img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.lb-who b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-who small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.lb-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 64px;
}
.lb-metric strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.lb-bar {
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: hidden;
}
.lb-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--red) 70%, #c49a4a), var(--red));
  transition: width 0.45s ease;
}

@keyframes lb-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lb-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes lb-rise-top {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(-10px); }
}


/* Profil — jeu / fun */
.pf-page {
  padding-bottom: 12px;
}
.pf-identity {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2px 0 14px;
  padding: 6px 4px 2px;
  animation: pf-in 0.4s ease both;
}
.pf-hello {
  margin: 0 0 10px;
  max-width: 280px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}
.pf-edit-top {
  position: absolute;
  top: 0;
  right: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(40, 20, 16, 0.06);
  z-index: 2;
}
.pf-av-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.pf-av-wrap .crown-av-photo,
.pf-av-wrap #pf-av {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(40, 20, 16, 0.16);
}
.pf-av-wrap .crown-av-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}
.pf-av-pulse {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--red) 45%, transparent);
  animation: pf-pulse 2.4s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}
.pf-identity h1 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.pf-role-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.pf-lvl {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(140, 40, 45, 0.25);
}

.pf-xp {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--red) 10%, var(--bg-card)), var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--red) 22%, var(--line));
  text-align: left;
}
.pf-xp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.pf-xp-top b {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}
.pf-xp-top span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.pf-xp-bar {
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: hidden;
}
.pf-xp-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e8a53a, var(--red));
  box-shadow: 0 0 12px color-mix(in srgb, var(--red) 35%, transparent);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pf-xp small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.pf-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.pf-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}
.pf-chip.hot {
  background: color-mix(in srgb, #e8a53a 18%, var(--bg-card));
  border-color: color-mix(in srgb, #e8a53a 40%, var(--line));
  animation: pf-wiggle 3s ease-in-out infinite;
}
.pf-chip.link {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 30%, var(--line));
}

.pf-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}
.pf-metric {
  padding: 12px 8px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.pf-metric:active { transform: scale(0.97); }
.pf-metric b {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
}
.pf-metric b sup { font-size: 11px; }
.pf-metric span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}

.pf-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.pf-seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 6px;
  border-radius: 11px;
  cursor: pointer;
}
.pf-seg-btn.on {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(40, 20, 16, 0.08);
}

.pf-panel[hidden] { display: none !important; }
.pf-panel { animation: pf-in 0.32s ease both; }

.pf-mission {
  display: block;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(160deg, #2a1816 0%, #4a2420 55%, #6a3030 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(80, 30, 28, 0.22);
  overflow: hidden;
  position: relative;
}
.pf-mission-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 16%, transparent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pf-mission-main {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.pf-mission-main img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, #fff 25%, transparent);
}
.pf-mission-main strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 3px;
}
.pf-mission-main small {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 8px;
}
.pf-mission .pf-bar {
  background: color-mix(in srgb, #fff 18%, transparent);
}
.pf-mission .pf-bar i {
  background: linear-gradient(90deg, #f0c36a, #fff);
}
.pf-mission-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  animation: pf-cta-pulse 2s ease-in-out infinite;
}
.pf-mission-cta b { font-size: 16px; }

.pf-challenge {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 16px;
  background: color-mix(in srgb, #e8a53a 14%, var(--bg-card));
  border: 1px dashed color-mix(in srgb, #e8a53a 55%, var(--line));
  text-decoration: none;
  color: inherit;
}
.pf-challenge-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 4px 10px rgba(180, 100, 20, 0.12);
}
.pf-challenge-ico img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.pf-challenge strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}
.pf-challenge small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.pf-challenge-go {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8a53a;
  color: #1c1412;
  font-size: 12px;
  font-weight: 800;
}

.pf-section { margin-bottom: 16px; }
.pf-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pf-section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}
.pf-section-head a {
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
  text-decoration: none;
}
.pf-fun-lead {
  margin: -4px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.pf-bar {
  height: 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: hidden;
}
.pf-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e8a53a, var(--red));
}

.pf-badge-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}
.pf-badge-rail::-webkit-scrollbar { display: none; }
.pf-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
}
.pf-badge {
  flex: 0 0 82px;
  text-align: center;
}
.pf-badge-grid .pf-badge { flex: none; }
.pf-badge .ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 7px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 2px solid var(--line);
  box-shadow: 0 6px 14px rgba(40, 20, 16, 0.08);
  transition: transform 0.2s ease;
}
.pf-badge.pop .ring { animation: pf-pop 1.8s ease-in-out infinite; }
.pf-badge.elite .ring {
  background: var(--red);
  border-color: #e8a53a;
  box-shadow: 0 0 0 3px color-mix(in srgb, #e8a53a 35%, transparent);
}
.pf-badge.elite .ring img { filter: brightness(0) invert(1); }
.pf-badge.locked .ring { opacity: 0.45; }
.pf-badge .ring img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.pf-badge b {
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.pf-badge small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
}

.pf-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pf-stat {
  padding: 14px 12px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.pf-stat-ico {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-bottom: 8px;
}
.pf-stat b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}
.pf-stat span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.pf-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.pf-links a,
.pf-links button {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.pf-link-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--red) 10%, transparent);
}
.pf-link-ico img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.pf-links span {
  font-size: 14px;
  font-weight: 800;
}
.pf-links i {
  font-style: normal;
  color: var(--muted);
  font-weight: 800;
}

@keyframes pf-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pf-pulse {
  0% { transform: scale(0.92); opacity: 0.55; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes pf-cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
@keyframes pf-wiggle {
  0%, 90%, 100% { transform: rotate(0); }
  93% { transform: rotate(-4deg); }
  96% { transform: rotate(4deg); }
}
@keyframes pf-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
