/* ——— Pages partagées ——— */
.brand {
  text-decoration: none;
  color: inherit;
}

.seg-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.seg-tabs::-webkit-scrollbar {
  display: none;
}
.seg-tabs.tight {
  margin-top: 4px;
}
.seg {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-card-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.seg.on {
  background: var(--red);
  color: #fff;
}

.sub,
.sub + .packs {
  margin-top: 4px;
}
.sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
h3.alone {
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 8px;
}
.body-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.text-link {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}
.back-link {
  display: inline-flex;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.back-link.light {
  color: #fff;
}

.btn-primary.full,
.play-cta {
  display: flex;
  width: 100%;
  margin: 14px 0 8px;
  padding: 14px;
  font-size: 15px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary[hidden],
.play-cta[hidden],
.buy-cta[hidden] {
  display: none !important;
}
.ico-lock {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  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;
  vertical-align: -2px;
}
.btn-primary.sm {
  padding: 8px 12px;
  font-size: 12px;
  width: 100%;
  margin-top: 8px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
}
.pill {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.pill.soft {
  background: var(--red-soft);
  color: var(--red-deep);
}
.pill.red {
  margin-bottom: 8px;
}

.event-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
  line-height: 1.35;
  max-width: 90%;
}
.event-card.slim {
  min-height: 110px;
  margin-bottom: 16px;
  text-decoration: none;
  color: #fff;
}
.event-card {
  text-decoration: none;
  color: #fff;
}

/* Profil */
.profile-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}
.avatar-wrap {
  position: relative;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.edit-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1c1412;
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.profile-info h2 {
  font-family: var(--serif);
  font-size: 18px;
}
.rank-line {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  margin: 2px 0 8px;
}
.xp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.xp-row .bar {
  flex: 1;
}
.level-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-2);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.league-badge {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.league-badge .medal {
  line-height: 1;
}
.league-badge .medal img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.milestones img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: 50%;
}
.league-float {
  position: absolute;
  right: 12px;
  top: 14px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
  font-size: 10px;
}
.league-float b {
  display: block;
  font-size: 14px;
}

.stat-grid.four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
}
.stat-card .si {
  display: block;
  margin-bottom: 4px;
}
.stat-card b {
  display: block;
  font-size: 15px;
  font-family: var(--serif);
}
.stat-card small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.2;
  display: block;
}

.list-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 8px;
}
.list-row img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}
.list-row strong {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
}
.list-row small {
  color: var(--muted);
  font-size: 11px;
}
.list-row .chev {
  color: var(--muted);
  font-size: 18px;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 12px;
}
.menu-tile {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-tile b {
  font-family: var(--serif);
  font-size: 13px;
}
.menu-tile small {
  font-size: 11px;
  color: var(--muted);
}

/* Classement */
.reward-tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 12px;
}
.tier b {
  display: block;
  font-family: var(--serif);
}
.tier small {
  color: var(--muted);
  font-size: 12px;
}
.tier.gold {
  background: linear-gradient(90deg, #f8e8c8, var(--bg-card));
}
.tier.silver {
  background: linear-gradient(90deg, #e8e8ea, var(--bg-card));
}
.tier.bronze {
  background: linear-gradient(90deg, #f0dcc8, var(--bg-card));
}

.lb-head,
.lb-row {
  display: grid;
  grid-template-columns: 36px 1fr 40px 56px auto;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}
.lb-head {
  color: var(--muted);
  padding: 0 8px 6px;
  font-weight: 600;
}
.lb-row {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 10px 8px;
  margin-bottom: 6px;
}
.lb-row.me {
  box-shadow: inset 0 0 0 1.5px var(--red);
}
.lb-row.r1 {
  background: linear-gradient(90deg, #f8e8c8, var(--bg-card));
}
.lb-row.r2 {
  background: linear-gradient(90deg, #e8e8ea, var(--bg-card));
}
.lb-row.r3 {
  background: linear-gradient(90deg, #f0dcc8, var(--bg-card));
}
.lb-row .who b {
  display: block;
  font-size: 12px;
}
.lb-row .who small {
  color: var(--muted);
  font-size: 10px;
}
.lb-row .lvl {
  background: var(--line);
  border-radius: 999px;
  text-align: center;
  padding: 2px 0;
  font-weight: 600;
}
.lb-row .pts {
  font-weight: 700;
  text-align: right;
}
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.mini-stats > div {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 10px;
}
.mini-stats small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 4px;
}
.mini-stats b {
  font-size: 12px;
}


/* ——— Page Quêtes (refonte) ——— */
.scroll.quests-page {
  --qp-coral: #e25a4a;
  --qp-amber: #e8a53a;
  --qp-rose: #d65b8c;
  --qp-teal: #2f9e8f;
  --qp-berry: #9b4d7a;
  --qp-gold: #f0c14d;
  scrollbar-width: none;
  padding-bottom: 14px;
  background:
    radial-gradient(120% 60% at 100% -10%, rgba(226, 90, 74, 0.18), transparent 55%),
    radial-gradient(90% 50% at -10% 20%, rgba(232, 165, 58, 0.16), transparent 50%),
    radial-gradient(80% 40% at 80% 90%, rgba(47, 158, 143, 0.1), transparent 45%),
    var(--bg);
}
.scroll.quests-page::-webkit-scrollbar {
  display: none;
}
html[data-theme="dark"] .scroll.quests-page {
  background:
    radial-gradient(120% 60% at 100% -10%, rgba(226, 90, 74, 0.22), transparent 55%),
    radial-gradient(90% 50% at -10% 20%, rgba(232, 165, 58, 0.14), transparent 50%),
    radial-gradient(80% 40% at 80% 90%, rgba(47, 158, 143, 0.12), transparent 45%),
    var(--bg);
}

.qp-hero {
  position: relative;
  margin: 0 0 14px;
  padding: 12px 12px 14px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(226, 90, 74, 0.92), rgba(155, 77, 122, 0.88) 48%, rgba(232, 165, 58, 0.9));
  color: #fff8f4;
  overflow: hidden;
  animation: qp-hero-in 0.55s ease both;
}
.qp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.28) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 62% 72%, rgba(255, 241, 180, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 80%, rgba(255, 255, 255, 0.22) 0 1.5px, transparent 2.5px);
  pointer-events: none;
  opacity: 0.9;
}
.qp-hero > * {
  position: relative;
  z-index: 1;
}

.qp-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.qp-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.qp-titles {
  flex: 1;
  min-width: 0;
}
.qp-kicker {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 248, 230, 0.9);
}
.qp-titles h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 0 rgba(80, 20, 30, 0.15);
}
.qp-titles p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 245, 238, 0.88);
  font-weight: 600;
}
.qp-timer {
  flex-shrink: 0;
  padding: 8px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  animation: qp-pulse 2.4s ease-in-out infinite;
}

.qp-progress-block {
  margin: 0;
  padding: 10px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}
.qp-obj-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 8px;
}
.qp-obj-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.qp-obj-head span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 245, 230, 0.95);
}

.qp-bar {
  height: 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.qp-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe08a, #ffb347 40%, #ff7b6b);
  background-size: 200% 100%;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  animation: qp-shine 2.8s linear infinite;
  box-shadow: 0 0 12px rgba(255, 200, 100, 0.55);
}

.qp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}
.qp-card {
  --qp-accent: var(--qp-coral);
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1.5px solid color-mix(in srgb, var(--qp-accent) 28%, var(--line));
  box-shadow: 0 8px 20px rgba(80, 30, 20, 0.06);
  position: relative;
  overflow: hidden;
  animation: qp-card-in 0.45s ease both;
  animation-delay: calc(var(--qp-i, 0) * 0.06s);
}
.qp-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--qp-accent), color-mix(in srgb, var(--qp-accent) 40%, #fff));
}
.qp-card.tone-coral { --qp-accent: var(--qp-coral); }
.qp-card.tone-amber { --qp-accent: var(--qp-amber); }
.qp-card.tone-rose { --qp-accent: var(--qp-rose); }
.qp-card.tone-teal { --qp-accent: var(--qp-teal); }
.qp-card.tone-berry { --qp-accent: var(--qp-berry); }

.qp-card.is-ready {
  border-color: var(--qp-accent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--qp-accent) 35%, transparent),
    0 10px 24px color-mix(in srgb, var(--qp-accent) 22%, transparent);
}
.qp-card.is-done {
  opacity: 0.82;
  filter: saturate(0.85);
}
.qp-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.qp-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--qp-accent);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--qp-accent) 40%, transparent);
}
.qp-card-copy {
  flex: 1;
  min-width: 0;
}
.qp-card-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 4px;
}
.qp-state {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  max-width: 7.5rem;
  text-align: center;
  line-height: 1.2;
}
.qp-state.st-todo {
  color: #7a5a40;
  background: #f3e2d2;
}
.qp-state.st-in_progress {
  color: #8a5a00;
  background: #ffe6a8;
}
.qp-state.st-claimable {
  color: #7a2e18;
  background: #ffd0c4;
  animation: qp-wiggle 1.8s ease-in-out infinite;
}
.qp-state.st-claimed {
  color: #1f6b4a;
  background: #c8f0dc;
}
html[data-theme="dark"] .qp-state.st-todo {
  color: #f0d8c4;
  background: #3a2e28;
}
html[data-theme="dark"] .qp-state.st-in_progress {
  color: #ffe6a8;
  background: #4a3a18;
}
html[data-theme="dark"] .qp-state.st-claimable {
  color: #ffd0c4;
  background: #4a2820;
}
html[data-theme="dark"] .qp-state.st-claimed {
  color: #c8f0dc;
  background: #1e3a2e;
}
.qp-card-detail {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.qp-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.qp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.qp-reward {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #6b4a10;
  background: linear-gradient(135deg, #ffe9a8, #ffd06a);
  box-shadow: inset 0 0 0 1px rgba(180, 120, 20, 0.2);
}
html[data-theme="dark"] .qp-reward {
  color: #ffe9a8;
  background: linear-gradient(135deg, #5a4218, #7a5820);
}
.qp-card-meta .qp-prog {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.qp-mini {
  height: 5px;
  border-radius: 99px;
  background: var(--bg-card-2);
  overflow: hidden;
}
.qp-mini > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--qp-accent), color-mix(in srgb, var(--qp-accent) 50%, #fff));
  border-radius: inherit;
  font-style: normal;
  transition: width 0.35s ease;
}
.qp-claim {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--qp-accent), color-mix(in srgb, var(--qp-accent) 70%, #1c1412));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--qp-accent) 35%, transparent);
  animation: qp-claim-bounce 1.6s ease-in-out infinite;
}
.qp-claim:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
}
.qp-go {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--qp-accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--qp-accent) 12%, transparent);
}
.qp-done {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: #1f6b4a;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: #c8f0dc;
}
html[data-theme="dark"] .qp-done {
  color: #c8f0dc;
  background: #1e3a2e;
}

@keyframes qp-hero-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes qp-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes qp-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes qp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes qp-wiggle {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-2deg); }
  60% { transform: rotate(2deg); }
}
@keyframes qp-claim-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .qp-hero,
  .qp-card,
  .qp-timer,
  .qp-bar > span,
  .qp-claim,
  .qp-state.st-claimable {
    animation: none !important;
  }
}

/* Quêtes */
.quest-card {
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}
.quest-card.big {
  margin-bottom: 12px;
}
.quest-card.done {
  background: #e8f0e6;
}
.quest-reward.tall {
  min-width: 88px;
  font-size: 9px;
}
.done-check {
  color: #2f9e78 !important;
  font-weight: 700;
}
.milestones {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  position: relative;
  padding: 8px 0 4px;
}
.milestones::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22px;
  height: 2px;
  background: var(--line);
}
.ms {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 18px;
}
.ms small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

/* Pass */
.pass-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 16px;
  margin-bottom: 12px;
}
.pass-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.pass-level {
  text-align: center;
}
.pass-level .hex {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  background: rgba(0, 0, 0, 0.45);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}
.pass-level .btn-primary {
  margin-top: 8px;
  width: 100%;
  font-size: 11px;
  padding: 10px 8px;
}
.pass-level small {
  font-size: 10px;
  opacity: 0.85;
}
.pass-track {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
}
.track-levels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.track-levels .cur {
  color: var(--red);
  background: var(--red-soft);
  border-radius: 8px;
}
.track-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin: 8px 0 6px;
}
.track-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.rew {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--line);
}
.rew.done {
  border-color: #2f9e78;
  color: #2f9e78;
}
.rew.on {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.rew.lock {
  opacity: 0.55;
}
.track-row.premium .rew {
  background: var(--bg-card-2);
}
.final-reward {
  background: #1c1412;
  color: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
.final-reward .bar {
  background: rgba(255, 255, 255, 0.15);
  margin: 8px 0 4px;
}
.final-reward small {
  opacity: 0.7;
  font-size: 11px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.preview-grid > div {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.preview-grid img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.inline-ico {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}
.level-chip {
  display: flex;
  align-items: center;
  gap: 6px;
}
.level-chip .inline-ico {
  width: 20px;
  height: 20px;
}
.stat-card .si img {
  width: 32px;
  height: 32px;
  margin: 0 auto 4px;
}
.quest-ico {
  background: transparent !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0;
}
.menu-tile > img.tile-ico {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}
.verdict-head img.inline-ico {
  width: 28px;
  height: 28px;
}

/* Boutique */
.wallet-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: -4px 0 10px;
}
.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  font-weight: 700;
  font-size: 13px;
}
.coin-pill .plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.shop-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.shop-case {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.shop-case img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}
.shop-case h4 {
  font-family: var(--serif);
  font-size: 13px;
  margin-bottom: 4px;
}
.shop-case small {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
}
.packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pack {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pack.highlight {
  background: var(--red-soft);
}
.pack .price {
  color: var(--red);
  font-weight: 700;
}
.subs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sub-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid transparent;
}
.sub-card.hot {
  border-color: var(--red);
}
.sub-card h4 {
  font-family: var(--serif);
  margin: 6px 0;
}
.sub-card ul {
  margin: 8px 0 12px 16px;
  font-size: 12px;
  color: var(--ink);
}
.sub-card .price {
  font-weight: 700;
  color: var(--red);
}

/* Detail */
.detail-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 16px;
  margin-bottom: 12px;
}
.detail-hero > *:not(.event-shade):not(.collage) {
  position: relative;
  z-index: 1;
}
.detail-page .back-link {
  display: inline-block;
  margin: 0;
}
.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 12px;
}
.fav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.fav-btn.on {
  color: #e8a53a;
  background: color-mix(in srgb, #e8a53a 18%, var(--bg-card));
  border-color: color-mix(in srgb, #e8a53a 45%, var(--line));
}
.block-synopsis {
  position: relative;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
}
.block-synopsis .alone {
  margin-top: 0;
}
.synopsis-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 4px;
}
.detail-fact {
  padding: 10px 8px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-align: center;
}
.detail-fact small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.detail-fact b {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.cast-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cast-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.cast-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(80, 30, 20, 0.12);
  background: var(--red);
}
.cast-avatar.tone-coral {
  background: linear-gradient(145deg, #e25a4a, #b03a3a);
}
.cast-avatar.tone-teal {
  background: linear-gradient(145deg, #3cb8a8, #1f7a70);
}
.cast-avatar.tone-amber {
  background: linear-gradient(145deg, #f0b24a, #c77a18);
}
.cast-avatar.tone-berry {
  background: linear-gradient(145deg, #c45a8c, #7a2e5a);
}
.cast-avatar.tone-slate {
  background: linear-gradient(145deg, #6a7a8a, #3a4550);
}
.cast-avatar.has-photo {
  background: var(--bg-card-2);
  border: 2px solid color-mix(in srgb, var(--red) 35%, transparent);
}
.cast-avatar.has-photo.tone-coral { border-color: #e25a4a; }
.cast-avatar.has-photo.tone-teal { border-color: #2f9e8f; }
.cast-avatar.has-photo.tone-amber { border-color: #e8a53a; }
.cast-avatar.has-photo.tone-berry { border-color: #9b4d7a; }
.cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stat-grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  align-items: stretch;
}
.stat-grid.three .stat-card {
  min-width: 0;
}
.cast-row strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.cast-row small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.detail-soon {
  margin: 10px 2px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-card-2);
  border: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.detail-lead {
  font-size: 13px;
  max-width: 70%;
  line-height: 1.35;
  margin-top: 8px;
  opacity: 0.9;
}
.hero-meta-line {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 4px;
}
.collage {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.warn-bar {
  display: none !important;
}

/* Résultat — clôture narrative DTECT */
.no-brand,
.scroll.end-page {
  padding-top: 0;
  overflow-x: hidden;
  max-width: 100%;
}
.end-empty {
  padding: 18px 2px 12px;
  min-width: 0;
}
.end-empty .end-brand,
.end-stamp,
.end-nav-mid small,
.end-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.end-empty h2,
.end-title,
.end-letter h3 {
  font-family: var(--serif);
  letter-spacing: -0.03em;
}
.end-empty .btn-ghost.end-home {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.end-hero {
  margin: 0 0 18px;
  padding: 8px 0 6px;
  min-width: 0;
}
.end-nav {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.end-nav .back-link {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  padding: 4px 0;
}
.end-nav-mid {
  min-width: 0;
}
.end-nav-mid h2 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.end-hero-art {
  position: relative;
  margin: 0 -16px 18px;
  height: 196px;
  max-width: calc(100% + 32px);
  overflow: hidden;
  background: #1c1412;
}
.end-hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(0.85) contrast(1.05);
  transform: scale(1.06);
}
.end-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 10, 0.15) 0%, rgba(12, 10, 10, 0.55) 55%, #1c1412 100%),
    radial-gradient(ellipse at 50% 80%, rgba(176, 74, 77, 0.45), transparent 62%);
}
html[data-theme="dark"] .end-hero-art::after {
  background:
    linear-gradient(180deg, rgba(12, 10, 10, 0.25) 0%, rgba(12, 10, 10, 0.7) 58%, #161210 100%),
    radial-gradient(ellipse at 50% 80%, rgba(208, 112, 114, 0.38), transparent 62%);
}
.end-sparks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.end-sparks i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f3ebe4;
  box-shadow: 0 0 10px rgba(224, 138, 136, 0.9);
  left: calc(8% + (var(--i) * 6.4%));
  top: calc(18% + (var(--i) * 4.2%));
  animation: end-spark 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
  opacity: 0.15;
}
@keyframes end-spark {
  0%,
  100% {
    transform: translateY(0) scale(0.6);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-10px) scale(1);
    opacity: 0.85;
  }
}
.end-seal {
  --p: 0;
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  transform: translateX(-50%);
}
.end-seal-ring {
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: conic-gradient(#e08a88 calc(var(--p) * 1%), rgba(255, 255, 255, 0.14) 0);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(176, 74, 77, 0.25);
}
.end-seal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: #1c1412;
  color: #f7ebe3;
  text-align: center;
}
.end-seal-inner b {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.end-seal-inner small {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #e08a88;
}
.end-kicker {
  margin: 0 0 6px;
  text-align: center;
}
.end-title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  overflow-wrap: anywhere;
}
.end-chrono-plus {
  display: table;
  margin: 0 auto 4px;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}
.end-chrono-plus.ok {
  background: #d7ede4;
  color: #1f6b4a;
}
.end-chrono-plus.ko {
  background: var(--red-soft);
  color: var(--red-deep);
}
html[data-theme="dark"] .end-chrono-plus.ok {
  background: #1e3328;
  color: #b7e0c8;
}
.end-fact-chrono {
  grid-column: 1 / -1;
  border-top-color: #2f8f62 !important;
}
.end-score-sum {
  margin: 10px 0 8px;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.end-score-sum span {
  color: #2f8f62;
}
.score-lines > div.is-chrono {
  font-weight: 700;
}
.score-lines > div.is-chrono b {
  color: #2f8f62;
}
.end-ribbon {
  display: table;
  margin: 0 auto 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(140, 40, 45, 0.28);
  overflow-wrap: anywhere;
  max-width: 100%;
  text-align: center;
}
.end-letter {
  position: relative;
  margin: 0 0 16px;
  padding: 18px 14px 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(28, 20, 18, 0.06);
  min-width: 0;
  overflow: hidden;
}
html[data-theme="dark"] .end-letter {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.end-wax {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #d07072, var(--red-deep));
  color: #f7ebe3;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(12deg);
  box-shadow: 0 6px 14px rgba(140, 40, 45, 0.35);
}
.end-stamp {
  margin: 0 0 8px;
}
.end-letter h3 {
  margin: 0 0 10px;
  font-size: 20px;
}
.end-letter p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.end-letter p:last-child {
  margin-bottom: 0;
}
.end-you {
  font-weight: 600;
}
.end-badge {
  display: block;
  margin-top: 4px !important;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.end-badge.ok {
  background: #d7ede4;
  color: #1f6b4a;
}
.end-badge.ko {
  background: var(--red-soft);
  color: var(--red-deep);
}
html[data-theme="dark"] .end-badge.ok {
  background: #1e3328;
  color: #b7e0c8;
}
.end-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 16px;
}
.end-facts > div {
  min-width: 0;
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  text-align: center;
}
.end-facts small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.end-facts b {
  display: block;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.end-scorebox,
.end-rewards {
  min-width: 0;
}
.end-pen {
  overflow-wrap: anywhere;
}
.score-lines > div {
  display: grid;
  grid-template-columns: minmax(0, 6.8em) minmax(0, 1fr) 2.4em;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  min-width: 0;
}
.score-lines span,
.score-lines b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.score-lines .bar {
  min-width: 0;
}
.end-reward-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.end-reward-list > div {
  min-width: 0;
  padding: 12px 8px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-align: center;
  overflow-wrap: anywhere;
}
.end-reward-list small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.end-reward-list b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--red-deep);
}
.end-reward-list .is-new {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red-soft);
  animation: end-pop 0.7s ease;
}
.end-fold {
  margin: 0 0 16px;
  padding: 4px 0 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.end-fold summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 0;
  color: var(--red);
}
.end-fold .explain {
  margin-bottom: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  min-width: 0;
}
.result-actions .btn-ghost,
.result-actions .btn-primary {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  padding: 12px 10px;
  overflow-wrap: anywhere;
}
.end-hero,
.end-letter,
.end-facts,
.end-scorebox,
.end-rewards {
  animation: end-rise 0.55s ease both;
}
.end-letter {
  animation-delay: 0.12s;
}
.end-facts {
  animation-delay: 0.2s;
}
.end-scorebox {
  animation-delay: 0.28s;
}
.end-rewards {
  animation-delay: 0.36s;
}
@keyframes end-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes end-pop {
  0% {
    transform: scale(0.94);
  }
  60% {
    transform: scale(1.04);
  }
  100% {
    transform: none;
  }
}
.end-pop {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(224, 138, 136, 0.62), rgba(176, 74, 77, 0.42) 42%, rgba(12, 10, 10, 0.72) 70%);
  animation: end-pop-in 0.32s ease;
}
.end-pop.is-out {
  animation: end-pop-out 0.28s ease forwards;
}
.end-pop-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.end-pop-burst i {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: #e08a88;
  transform: rotate(calc(var(--i) * 16.3deg)) translateY(0);
  animation: end-burst 0.9s cubic-bezier(0.15, 0.85, 0.25, 1) both;
  animation-delay: calc(var(--i) * 0.012s);
}
.end-pop-burst i:nth-child(3n) {
  background: #f7ebe3;
  width: 6px;
  height: 10px;
}
.end-pop-burst i:nth-child(3n + 1) {
  background: #c9a227;
  width: 5px;
  height: 12px;
}
.end-pop-card {
  position: relative;
  width: 100%;
  max-width: 310px;
  padding: 28px 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbf3ed 0%, #f3e4da 100%);
  color: #1c1412;
  border: 2px solid #b04a4d;
  box-shadow:
    0 0 0 6px rgba(224, 138, 136, 0.45),
    0 22px 50px rgba(80, 20, 24, 0.4);
  text-align: center;
  min-width: 0;
  animation: end-card-bang 0.55s cubic-bezier(0.18, 1.4, 0.3, 1) both;
}
.end-pop-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #b04a4d;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
}
.end-pop-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #b04a4d;
}
.end-pop-card h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #9a3d41;
}
.end-pop-label {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #b04a4d;
  overflow-wrap: anywhere;
}
.end-pop-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.end-pop-card li {
  min-width: 0;
  padding: 12px 4px 10px;
  border-radius: 14px;
  animation: end-chip 0.45s ease both;
}
.end-pop-card li.xp {
  background: #e8c5c4;
  border: 1px solid #b04a4d;
}
.end-pop-card li.sz {
  background: #f3e4da;
  border: 1px solid #c9a227;
}
.end-pop-card li.bd {
  background: #d7ede4;
  border: 1px solid #2f7d4a;
}
.end-pop-card li:nth-child(1) {
  animation-delay: 0.18s;
}
.end-pop-card li:nth-child(2) {
  animation-delay: 0.28s;
}
.end-pop-card li:nth-child(3) {
  animation-delay: 0.38s;
}
.end-pop-card li b {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: #1c1412;
  overflow-wrap: anywhere;
}
.end-pop-card li span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a3d41;
}
.end-pop-card li.bd span {
  color: #1f6b4a;
}
.end-pop-card li.sz span {
  color: #8a6a12;
}
.end-pop-note {
  margin: 0;
  font-size: 11px;
  color: #8a7a72;
  overflow-wrap: anywhere;
}
@keyframes end-pop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes end-pop-out {
  to {
    opacity: 0;
  }
}
@keyframes end-card-bang {
  0% {
    transform: scale(0.4) rotate(-6deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.08) rotate(2deg);
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes end-burst {
  0% {
    opacity: 0;
    transform: rotate(calc(var(--i) * 16.3deg)) translateY(0) scale(0.3);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(calc(var(--i) * 16.3deg)) translateY(-118px) scale(1);
  }
}
@keyframes end-chip {
  from {
    transform: translateY(10px) scale(0.85);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .end-sparks i,
  .end-hero,
  .end-letter,
  .end-facts,
  .end-scorebox,
  .end-rewards,
  .end-reward-list .is-new,
  .end-pop,
  .end-pop.is-out,
  .end-pop-card,
  .end-pop-card li,
  .end-pop-burst i {
    animation: none;
  }
}

/* Compat anciennes classes résultat (autres pages / générateurs) */
.result-top {
  position: relative;
  margin: 0 0 12px;
  padding: 12px 0 16px;
  color: var(--ink);
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
}
.result-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  min-width: 0;
}
.result-nav h2 {
  font-family: var(--serif);
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.rewards-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.rewards-row > div {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red-deep);
  overflow-wrap: anywhere;
}

/* Téléphone iOS — springboard */
.phone-ios {
  background: #000;
  display: flex;
  flex-direction: column;
  border-radius: 47px;
  box-shadow:
    0 0 0 1px #2a2a2c,
    0 0 0 11px #0b0b0c,
    0 0 0 13px #3a3a3c,
    0 30px 70px rgba(0, 0, 0, 0.45) !important;
}
.phone-ios .ios-home {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #000;
}
.ios-wallpaper {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
  pointer-events: none;
}
.phone-ios .status.ios {
  background: transparent;
  color: #fff;
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  padding: 16px 28px 0;
  height: 54px;
  box-sizing: border-box;
  flex-shrink: 0;
  align-items: center;
}
.phone-ios .status.ios .status-time {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  padding-left: 2px;
  padding-top: 0;
}
.phone-ios .notch {
  width: 126px;
  height: 37px;
  border-radius: 24px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  margin-top: 0;
}
.ios-sys {
  color: #fff !important;
  gap: 6px !important;
  align-items: center !important;
}
.ios-sys .fiveg {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}
.ios-sys .batt {
  width: 27px;
  height: 12px;
  border: 1.4px solid rgba(255, 255, 255, 0.45);
  border-radius: 3.5px;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1.5px;
  box-sizing: border-box;
  margin-left: 1px;
}
.ios-sys .batt::after {
  content: "";
  position: absolute;
  right: -3.5px;
  width: 2px;
  height: 5px;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, 0.45);
}
.ios-sys .batt i {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: 1.5px;
  background: #fff;
}

.ios-springboard {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.ios-apps {
  display: flex;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  cursor: grab;
}
.ios-apps::-webkit-scrollbar {
  display: none;
}
.ios-apps.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}
.ios-apps.is-dragging .ios-app {
  pointer-events: none;
}
.ios-page {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  align-content: start;
  column-gap: 0;
  row-gap: 18px;
  padding: 6px 18px 12px;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.ios-app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  max-width: 74px;
  color: #fff;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}
.ios-app:active .app-ico-wrap {
  transform: scale(0.88);
  filter: brightness(0.9);
}
.app-ico-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.12s ease;
}
.app-ico-img {
  width: 60px;
  height: 60px;
  display: block;
  border-radius: 13.4px;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.app-ico-verdict {
  display: grid !important;
  place-items: center;
  background: linear-gradient(180deg, #ff6b5a 0%, #c44536 100%);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}
.app-label {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.08px;
  line-height: 1.1;
  text-shadow: 0 0.5px 2px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.app-ico-wrap .badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  display: grid;
  place-items: center;
  z-index: 3;
  line-height: 1;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.app-lock {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.app-lock svg {
  display: block;
}
.ios-app.is-locked .app-ico-img {
  filter: saturate(0.75) brightness(0.9);
}
.ios-page-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 6px 0 4px;
  flex-shrink: 0;
}
.ios-page-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 0 0 3px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ios-page-arrow:active {
  background: rgba(255, 255, 255, 0.38);
}
.ios-page-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.ios-page-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 6px 4px;
  flex-shrink: 0;
}
.ios-page-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  display: block;
  cursor: pointer;
  transition: background 0.2s;
}
.ios-page-dots i.on {
  background: #fff;
}

.ios-live {
  position: relative;
  z-index: 2;
  margin: 4px 18px 10px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  color: #fff;
  width: auto;
  display: block;
  text-align: left;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.ios-live:active {
  transform: scale(0.985);
  opacity: 0.95;
}
.ios-live-inner {
  padding: 12px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}
.ios-live-day {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  text-transform: capitalize;
}
.ios-live strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.ios-live span:last-child {
  font-size: 13px;
  opacity: 0.92;
  margin-top: 2px;
}

.ios-footer {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  padding: 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ios-dock {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 92px;
  padding: 14px 16px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.22);
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  overflow: visible;
}
.ios-dock .ios-app {
  flex: 0 0 auto;
  width: 62px;
  max-width: 62px;
  gap: 0;
}
.ios-dock .app-label {
  display: none;
}
.ios-dock .app-ico-wrap,
.ios-dock .app-ico-img {
  width: 60px;
  height: 60px;
  border-radius: 13.4px;
}
.ios-dock .app-ico-wrap {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
}
.ios-dock .app-ico-wrap .badge {
  top: -4px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  font-size: 12px;
}
.ios-home .home-indicator.light {
  height: 26px;
  background: transparent;
  margin: 0;
  flex-shrink: 0;
}
.ios-home .home-indicator.light::after {
  width: 134px;
  height: 5px;
  bottom: 10px;
  background: #fff;
  box-shadow: none;
  opacity: 0.95;
}

.ios-sheet .sheet-kicker {
  font-size: 12px;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.ios-sheet .sheet-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
}
.sheet-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-top: 10px;
  border: none;
  border-radius: 14px;
  background: #fff;
  font-size: 17px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.sheet-row.accent {
  background: #ff3b30;
  color: #fff;
}
.sheet-row span {
  color: #c7c7cc;
  font-size: 22px;
  font-weight: 300;
}
.sheet-row.accent span {
  color: rgba(255, 255, 255, 0.7);
}
html[data-theme="dark"] .sheet-row:not(.accent) {
  background: #1c1c1e;
  color: #fff;
}

.play-bar {
  display: grid;
  grid-template-columns: 1fr auto 1.3fr;
  gap: 8px;
  align-items: center;
  padding: 10px 14px 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.play-bar .btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border: none;
}


/* Accueil : remplit l’écran sans curseur ni trou (le hero absorbe l’espace libre) */
.home-lite .hero-bookmark,
.home-lite .hero-tags { display: none !important; }

.scroll.home-lite {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  overflow: hidden;
  scrollbar-width: none;
  padding-top: 4px;
  padding-bottom: 6px;
}
.scroll.home-lite::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.home-lite .hub-head {
  flex: 0 0 auto;
  margin: 4px 0 14px;
  min-height: 48px;
  align-items: center;
}
.home-lite .hub-head .logo {
  font-size: 26px;
  line-height: 1.1;
}

.home-lite .hero {
  flex: 1 1 auto;
  min-height: 240px;
  margin-bottom: 12px;
}
.home-lite .hero-body {
  padding: 16px 16px 56px;
  max-width: 70%;
}
.home-lite .hero-title {
  font-size: 24px;
  margin-bottom: 8px;
}
.home-lite .hero-progress {
  margin-bottom: 0;
}
.home-lite .hero-actions {
  bottom: 16px;
  right: 16px;
}

.home-lite .hq-week {
  flex: 0 0 auto;
  margin: 0 0 12px;
}
.home-lite .hq-week-head {
  margin-bottom: 8px;
}
.home-lite .hq-week-head h3 {
  font-size: 16px;
}
.home-lite a.hq-row {
  padding: 11px 12px;
}

.home-lite .block-cases {
  flex: 0 0 auto;
  margin: 0;
}
.home-lite .block-head {
  margin-bottom: 8px;
}
.home-lite .block-head h3 {
  font-size: 16px;
}
.home-lite .block-cases .cases {
  margin-top: 0;
  padding-bottom: 0;
}
.home-lite .case-card {
  flex: 0 0 142px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 14px;
}
.home-lite .case-cover {
  height: 100px;
  border-radius: 0;
  margin-bottom: 0;
  background-size: cover;
  background-position: center;
}
.home-lite .case-card h4 {
  padding: 7px 9px 0;
  margin-bottom: 5px;
  min-height: 0;
  font-size: 12px;
}
.home-lite .case-foot {
  padding: 0 9px 9px;
}
.home-lite .active-cap {
  margin: -2px 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.home-lite .active-empty {
  margin: 4px 2px 0;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: var(--bg-card);
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.home-lite .active-empty span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
}
.home-lite .case-card-btn {
  display: block;
  width: auto;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.home-lite .hero-cta {
  border: none;
  cursor: pointer;
  font: inherit;
}

.case-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 6, 0.55);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
}
.case-sheet-backdrop.open {
  opacity: 1;
}
.case-sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 78px;
  z-index: 45;
  padding: 10px 14px 16px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.case-sheet.open {
  transform: none;
  opacity: 1;
}
.case-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  margin: 0 auto 12px;
}
.case-sheet h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.case-sheet-sub {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.case-sheet-btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.case-sheet-btn.primary {
  background: var(--red);
  color: #fff;
}
.case-sheet-btn.danger {
  background: transparent;
  color: #c44;
  border: 1px solid color-mix(in srgb, #c44 35%, var(--line));
}
.case-sheet-btn.ghost {
  background: var(--bg-card-2);
  color: var(--ink);
  margin-bottom: 0;
}
html[data-theme="dark"] .case-sheet-btn.danger {
  color: #f08888;
}


/* Pages hub allégées */
.page-lite .brand-row.compact {
  align-items: center;
  margin-bottom: 8px;
}
.page-title {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.profile-head.slim {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 14px 12px;
}
.profile-head.slim .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.stat-grid.two {
  grid-template-columns: 1fr 1fr;
  margin: 0 14px 12px;
}
.menu-list {
  margin: 8px 14px 24px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card, #fff);
  border: 1px solid var(--line, rgba(60,60,67,0.14));
}
.menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 0.33px solid var(--line, rgba(60,60,67,0.14));
}
.menu-link:last-child { border-bottom: 0; }
.menu-link span { color: #c7c7cc; font-weight: 400; }
.shop-hero .event-desc { display: none; }
.page-lite .lb-head,
.page-lite .lb-row {
  grid-template-columns: 36px 1fr auto;
}
.page-lite .lb-row .lvl { display: none; }

/* ========== Boutique v5 — maquette 06_Boutique (page unique) ========== */
.shop-page {
  padding-bottom: 10px;
}
.shop-head {
  margin-bottom: 14px;
}
.shop-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 6px 5px 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(80, 40, 30, 0.05);
}
.coin-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.coin-pill b {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  min-width: 1.2em;
}
.coin-pill .plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}
.shop-bag {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.shop-bag-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--bg);
}

.shop-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 16px;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.shop-pills::-webkit-scrollbar { display: none; }
.shop-pill {
  flex: 0 0 auto;
  border: none;
  background: var(--bg-card-2);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.shop-pill.on {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--red) 35%, transparent);
}

.shop-sec {
  margin: 0 0 26px;
  scroll-margin-top: 8px;
}
.shop-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.shop-sec-head.col {
  flex-direction: column;
  align-items: flex-start;
}
.shop-sec-head h2,
.shop-sec-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.shop-sec-head p {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}
.shop-sort,
.shop-see {
  border: none;
  background: none;
  color: var(--red);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  white-space: nowrap;
}

.shop-featured {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 210px;
  margin-bottom: 18px;
  background: #1a1412;
  box-shadow: 0 12px 28px rgba(40, 20, 16, 0.18);
}
.shop-featured-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}
.shop-featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,12,10,0.25) 0%, rgba(20,12,10,0.78) 70%, rgba(20,12,10,0.9) 100%);
}
.shop-featured-body {
  position: relative;
  z-index: 1;
  padding: 16px 16px 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 210px;
}
.shop-feat-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.shop-feat-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shop-feat-sale {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}
.shop-feat-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.shop-feat-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
}
.shop-feat-prices s {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 600;
}
.shop-feat-prices b {
  font-size: 14px;
  font-weight: 800;
}
.shop-feat-cta {
  border: none;
  cursor: pointer;
}
.shop-featured-body h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.shop-featured-body > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.92;
  max-width: 260px;
}
.shop-featured-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
}
.shop-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
}
.shop-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.shop-meta-item img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.shop-meta-tag {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--red) 70%, #fff);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.shop-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.shop-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  display: inline-block;
}
.shop-dots i.on {
  background: var(--red);
}
.shop-case-meta .shop-dots i {
  background: var(--line);
}
.shop-case-meta .shop-dots i.on {
  background: var(--red);
}
.shop-feat-cta {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.shop-carousel {
  position: relative;
  margin: 0 -2px;
}
.shop-carousel-fade {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 12px;
  width: 28px;
  z-index: 2;
}
.shop-carousel-fade.end {
  right: 0;
  background: linear-gradient(90deg, transparent, var(--bg));
}
.shop-carousel-nav {
  position: absolute;
  top: 42%;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  color: var(--red);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(80, 40, 30, 0.1);
  padding: 0;
  transform: translateY(-50%);
}
.shop-carousel-nav.prev { left: 2px; }
.shop-carousel-nav.next { right: 2px; }
.shop-carousel-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.shop-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 36px 12px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
}
.shop-rail::-webkit-scrollbar { display: none; }
.shop-rail.is-snapping {
  scroll-behavior: smooth;
}

.shop-case-card {
  flex: 0 0 138px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(80, 40, 30, 0.05);
}
.shop-case-cover {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-card-2);
}
.shop-case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.shop-case-card.is-locked .shop-case-cover img {
  filter: saturate(0.85) brightness(0.92);
}
.shop-case-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);
}
.shop-case-lock .ico-lock {
  width: 12px;
  height: 12px;
  color: #fff;
}
.shop-case-title {
  text-decoration: none;
  color: inherit;
}
.shop-case-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  min-height: 2.5em;
}
.shop-lock {
  width: 12px;
  height: 12px;
  color: currentColor;
}
.shop-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.shop-case-meta img {
  width: 10px;
  height: 10px;
  object-fit: contain;
  vertical-align: -1px;
  margin-right: 2px;
}
.shop-case-cta {
  margin-top: auto;
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: none;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.shop-case-cta.owned {
  background: var(--bg-card-2);
  color: var(--muted);
}

.shop-pack-card {
  flex: 0 0 148px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(80, 40, 30, 0.06);
}
.shop-pack-card.unit {
  background: color-mix(in srgb, var(--red-soft) 45%, var(--bg-card));
}
.shop-pack-art {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-card-2);
}
.shop-pack-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
}
.shop-pack-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(176, 74, 77, 0.35);
}
.shop-pack-card h3 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.shop-price {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--red);
}
.shop-price small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}
.shop-pack-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.shop-pack-unit .shop-pack-art {
  aspect-ratio: 1.1 / 1;
}
.shop-buy {
  margin-top: 2px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  border: none;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--red) 28%, transparent);
}
.shop-buy.ghost {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
  box-shadow: none;
}
.shop-buy.sm {
  width: auto;
  padding: 7px 12px;
  font-size: 11px;
}
.shop-toast {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

.shop-subs-rail .shop-plan {
  flex: 0 0 200px;
}
.shop-perso-rail .shop-perso-card {
  flex: 0 0 156px;
}
.shop-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px 14px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(80, 40, 30, 0.06);
}
.shop-plan.popular {
  border-color: color-mix(in srgb, var(--red) 55%, #e8a53a);
  background: color-mix(in srgb, var(--red-soft) 22%, var(--bg-card));
  box-shadow: 0 10px 26px rgba(176, 74, 77, 0.12);
}
.shop-plan-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.shop-plan-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shop-plan-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--red) 14%, transparent);
  flex-shrink: 0;
  position: relative;
}
.shop-plan-ico::before {
  content: "";
  position: absolute;
  inset: 11px;
  background: var(--red);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.shop-plan-ico.glass::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath stroke='black' stroke-width='2' d='m15.5 15.5 5 5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath stroke='black' stroke-width='2' d='m15.5 15.5 5 5'/%3E%3C/svg%3E");
}
.shop-plan-ico.crown::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 18h18l-1.5-9-4.5 3L12 6l-3 6-4.5-3L3 18zm2 2h14v2H5v-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 18h18l-1.5-9-4.5 3L12 6l-3 6-4.5-3L3 18zm2 2h14v2H5v-2z'/%3E%3C/svg%3E");
}
.shop-plan-ico.cal::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm12 8H5v10h14V10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm12 8H5v10h14V10z'/%3E%3C/svg%3E");
}
.shop-plan h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.shop-mini-tag {
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.shop-plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.shop-plan li {
  position: relative;
  padding: 7px 0 7px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.shop-plan li:last-child { border-bottom: none; }
.shop-plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M4.5 9 1.5 6l1-1 2 2 5-5 1 1z'/%3E%3C/svg%3E") center / 8px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M4.5 9 1.5 6l1-1 2 2 5-5 1 1z'/%3E%3C/svg%3E") center / 8px no-repeat;
}

.shop-perso-card {
  position: relative;
  flex: 0 0 168px;
  padding: 12px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(80, 40, 30, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 128px;
}
.shop-perso-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
}
.shop-perso-row.avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  margin-left: -8px;
}
.shop-perso-row.avatars img:first-child { margin-left: 0; }
.shop-perso-row.frames .frame-preview {
  width: 42px;
  height: 42px;
}
.shop-perso-row.themes img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}
.shop-perso-row.titles {
  flex-wrap: wrap;
}
.shop-title-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.shop-title-pill.dark {
  background: #3a2a28;
}
.shop-perso-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.shop-perso-foot span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.shop-perso-foot b {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.shop-perso-foot b.accent { color: var(--red); }
.shop-perso-go {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.crown-sec {
  padding-bottom: 8px;
}
.crown-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 8px 0 4px;
}
.crown-stage-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.crown-stage-meta strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.crown-stage-meta span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.crown-cta {
  min-width: 168px;
  margin: 4px 0 0;
}
.crown-cta.is-done,
.crown-cta:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}
.crown-av {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.crown-av-hero {
  width: 118px;
  height: 118px;
  filter: drop-shadow(0 8px 18px rgba(80, 35, 28, 0.12));
}
.crown-av-photo {
  width: 62%;
  height: 62%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  z-index: 1;
  background: #ddd;
}
.crown-av-hero .crown-av-photo {
  width: 58%;
  height: 58%;
}
.crown-av-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}
.crown-fold {
  margin: 0 0 6px;
}
.crown-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 4px;
  padding: 2px 0 4px;
  max-height: 96px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.crown-fold.is-open .crown-picker {
  max-height: 640px;
}
.crown-chip {
  position: relative;
  appearance: none;
  border: none;
  background: transparent;
  padding: 4px;
  margin: 0;
  border-radius: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, background 0.18s ease;
}
.crown-chip:active {
  transform: scale(0.96);
}
.crown-chip.on {
  background: color-mix(in srgb, var(--red) 10%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--red) 55%, transparent);
}
.crown-chip .crown-av {
  width: 78px;
  height: 78px;
}
.crown-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.crown-more-arrow {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.25s ease;
}
.crown-fold.is-open .crown-more-arrow {
  transform: rotate(180deg);
}
.crown-chip-lock {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(28, 20, 18, 0.72);
  color: #fff;
  -webkit-mask: none;
}
.crown-chip-lock::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 4px auto 0;
  background: #fff;
  -webkit-mask: url("../assets/icons/lock-ios.svg") center / contain no-repeat;
  mask: url("../assets/icons/lock-ios.svg") center / contain no-repeat;
}
