/* --- Hors ligne (sw.js, shell-extras.js) --- */
.offline-pill { position: fixed; left: 50%; bottom: calc(var(--nav-bottom-h, 64px) + 14px); z-index: 900; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 700; color: #1a1200; background: #fbbf24; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7); }
@media (min-width: 900px) { .offline-pill { bottom: 18px; } }

/* --- Images de cartes : fond de chargement teinte par la rarete (core.js
   ajoute .is-loaded au chargement). :root:not(#fx) pour passer devant les
   effets de carte v3 (card-fx.css), qui animent aussi l'image. --- */
:root:not(#fx) .collection-card .card-art img:not(.is-loaded),
:root:not(#fx) .craft-card .card-art img:not(.is-loaded),
:root:not(#fx) .card-modal .card-art img:not(.is-loaded),
:root:not(#fx) .album-slot img:not(.is-loaded),
:root:not(#fx) .mu-item img:not(.is-loaded) {
  background: linear-gradient(110deg, color-mix(in srgb, var(--r, var(--accent)) 14%, var(--bg-panel-2)) 25%, color-mix(in srgb, var(--r, var(--accent)) 32%, var(--bg-panel-solid)) 37%, color-mix(in srgb, var(--r, var(--accent)) 14%, var(--bg-panel-2)) 63%);
  background-size: 400% 100%;
  animation: skeletonShine 1.4s ease infinite;
}
@media (prefers-reduced-motion: reduce) {
  :root:not(#fx) .collection-card .card-art img:not(.is-loaded), :root:not(#fx) .craft-card .card-art img:not(.is-loaded), :root:not(#fx) .card-modal .card-art img:not(.is-loaded), :root:not(#fx) .album-slot img:not(.is-loaded), :root:not(#fx) .mu-item img:not(.is-loaded) { animation: none; }
}

/* --- Transitions de page (View Transitions API, Chrome / Edge / Safari
   recents ; ailleurs, navigation normale). L'en-tete et la barre du bas ne
   bougent pas, le contenu glisse selon le sens du menu (config.js pose le
   type forward / back), fondu sinon. --- */
@media (prefers-reduced-motion: no-preference) {
  #site-header { view-transition-name: site-header; }

  ::view-transition-group(site-header), ::view-transition-group(bottom-nav) { z-index: 2; animation-duration: 0.25s; }
  ::view-transition-old(page) { animation: vtPageOut 0.18s ease-in both; }
  ::view-transition-new(page) { animation: vtPageIn 0.26s ease-out both; }
  html:active-view-transition-type(forward)::view-transition-old(page) { animation: vtSlideOutLeft 0.22s ease-in both; }
  html:active-view-transition-type(forward)::view-transition-new(page) { animation: vtSlideInRight 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
  html:active-view-transition-type(back)::view-transition-old(page) { animation: vtSlideOutRight 0.22s ease-in both; }
  html:active-view-transition-type(back)::view-transition-new(page) { animation: vtSlideInLeft 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
}
@keyframes vtFadeIn { from { opacity: 0; } }
@keyframes vtPageOut { to { opacity: 0; } }
@keyframes vtPageIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes vtSlideOutLeft { to { opacity: 0; transform: translateX(-36px); } }
@keyframes vtSlideInRight { from { opacity: 0; transform: translateX(48px); } }
@keyframes vtSlideOutRight { to { opacity: 0; transform: translateX(36px); } }
@keyframes vtSlideInLeft { from { opacity: 0; transform: translateX(-48px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* --- Fil d'Ariane (shell-extras.js, Breadcrumb) --- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 10px; font-size: 0.78rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-dim); text-decoration: none; border-radius: 4px; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb a[aria-current="page"] { color: var(--text); font-weight: 600; }
.breadcrumb [data-bc-tab] { color: var(--accent-light, #a78bfa); font-weight: 600; }
.breadcrumb .bc-sep { opacity: 0.6; }

/* --- Inspecteur de carte (js/lazy/card-inspector.js) --- */
html.ci-open, html.ci-open body { overflow: hidden; }
.ci-overlay { position: fixed; inset: 0; z-index: 1200; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 22%, rgba(4, 5, 12, 0.94)), rgba(4, 5, 12, 0.97) 70%); backdrop-filter: blur(6px); animation: vtFadeIn 0.2s ease both; color: var(--text); }
.ci-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ci-title { display: grid; min-width: 0; }
.ci-title strong { font-size: 1.1rem; }
.ci-sub { font-size: 0.82rem; color: var(--text-dim); }
.ci-tools { display: flex; align-items: center; gap: 6px; }
.ci-tools .btn-ghost { min-width: 40px; min-height: 40px; padding: 6px 10px; font-size: 1.1rem; line-height: 1; }
.ci-zoom { min-width: 54px; text-align: center; font-variant-numeric: tabular-nums; font-size: 0.85rem; color: var(--text-dim); }
.ci-stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: default; perspective: 1400px; }
.ci-stage.zoomed { cursor: grab; }
.ci-stage.zoomed:active { cursor: grabbing; }
.ci-pan { transform-origin: center center; will-change: transform; transition: transform 0.08s linear; }
.ci-overlay .ci-card { width: min(calc((100dvh - 350px) * 0.75), 88vw, 520px); padding: 0; cursor: default; }
.ci-overlay .ci-card .card-art { aspect-ratio: 3 / 4; width: 100%; height: auto; border-radius: 14px; }
.ci-overlay .ci-card .card-art img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ci-overlay .ci-card.tilting { transform: rotateX(calc(var(--rx, 0deg) * 0.6)) rotateY(calc(var(--ry, 0deg) * 0.6)); transition: transform 0.1s ease-out; }
.ci-variants { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x proximity; justify-content: safe center; }
.ci-variant { flex: 0 0 auto; display: grid; justify-items: center; gap: 4px; width: 86px; padding: 6px; border-radius: 12px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); color: var(--text); font: inherit; cursor: pointer; scroll-snap-align: center; }
.ci-variant[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.ci-variant small { font-size: 0.64rem; line-height: 1.25; text-align: center; color: var(--text-dim); }
.ci-variant small b { color: var(--text); }
.ci-overlay .ci-mini { display: block; width: 64px; padding: 0; pointer-events: none; }
.ci-overlay .ci-mini .card-art { display: block; aspect-ratio: 3 / 4; border-radius: 6px; }
.ci-overlay .ci-mini .card-art img { width: 100%; height: 100%; object-fit: cover; }
.ci-hint { margin: 0; text-align: center; font-size: 0.75rem; color: var(--text-dim); }
@media (prefers-reduced-motion: reduce) { .ci-overlay { animation: none; } .ci-pan { transition: none; } }

/* --- Carte du monde des jeux (jeux-summary.js) : un lieu par jeu sur un
   paysage dessine, etat en direct. Vue "liste" = les pastilles d'avant. --- */
.games-hub { margin: 4px 0 14px; }
.games-hub[data-view="map"] #games-summary, .games-hub[data-view="list"] .wm-wrap, .games-hub[data-view="map"] .wm-toggle-back { display: none; }
.wm-wrap { position: relative; }
.wm-toggle-back { margin-top: 8px; font-size: 0.8rem; padding: 6px 12px; }
/* --- Session rapide (js/lazy/quick-session.js) --- */
.rc-head-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.qs-modal { width: min(560px, 100%); grid-template-rows: auto auto minmax(0, 1fr) auto; }
.qs-lead { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
.qs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; overflow-y: auto; }
.qs-step { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); }
.qs-step label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.qs-step input { width: 18px; height: 18px; accent-color: var(--accent); }
.qs-state { padding-left: 26px; font-size: 0.8rem; color: var(--text-dim); }
.qs-state:empty { display: none; }
.qs-step.running { border-color: var(--accent-2); }
.qs-step.done { border-color: color-mix(in srgb, var(--success) 60%, transparent); }
.qs-step.done .qs-state { color: var(--success); }
.qs-step.failed .qs-state { color: var(--danger); }
.qs-spin { display: inline-block; width: 12px; height: 12px; border-width: 2px; vertical-align: -2px; margin: 0; }

/* --- Rappels (js/lazy/reminders.js) --- */
.rm-modal { width: min(520px, 100%); grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
.rm-master { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); cursor: pointer; }
.rm-master input, .rm-list input { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.rm-master span { display: grid; gap: 2px; }
.rm-master small { color: var(--text-dim); font-size: 0.78rem; line-height: 1.4; }
.rm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; overflow-y: auto; }
.rm-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 10px; }
.rm-list li:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.rm-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.rm-list small { font-size: 0.75rem; color: var(--accent-2); white-space: nowrap; }
.rm-note { margin: 0; font-size: 0.8rem; color: var(--danger); }
.inv-remind { margin-left: 8px; padding: 2px 10px; font-size: 0.72rem; border-radius: var(--radius-pill); background: transparent; border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; box-shadow: none; }
.inv-remind:hover { color: var(--text); border-color: var(--accent); }

/* ==== Fluidite (2026-10-21) ==== */
/* Panneaux : plus de flou d'arriere-plan. Le fond anime (body::before/after)
   bouge en continu, donc chaque panneau floute devait etre recalcule a chaque
   image sur ordinateur (le mobile l'avait deja coupe, features.css). Fond un
   peu plus couvrant a la place (base.css), couleur du theme conservee. */
html[data-game-mode="cool"]:not([data-theme]) .panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Fonds des modes et des saisons : derive par translation (carte graphique)
   au lieu de la position de fond, qui redessinait tout l'ecran a chaque
   image. Memes trajets ; la marge couvre le plus long (520 px). */

html[data-game-mode]:not([data-game-mode="chaos"]):not([data-theme]) body::after, html[data-season-skin]:not([data-theme]) body::after { inset: -560px; }

/* Effets allegés (html[data-fx="light"], menu du compte ou detection d'un
   appareil lent, shell.js FxLevel) : fond fige, aucun flou, brillances des
   cartes jouees une seule fois, confettis reduits (core.js). */
html[data-fx="light"] body::before, html[data-fx="light"] body::after,
html[data-fx="light"] #site-brand, html[data-fx="light"] .brand-text, html[data-fx="light"] header#site-header { animation: none !important; }
html[data-fx="light"] *, html[data-fx="light"] *::before, html[data-fx="light"] *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html[data-fx="light"] header#site-header { background: rgba(6, 7, 15, 0.97); }
html[data-fx="light"] .bottom-nav { background: rgba(10, 11, 24, 0.98); }
html[data-fx="light"] .card-modal-overlay { background: rgba(4, 5, 12, 0.95); }
html[data-fx="light"] :is(.collection-card, .craft-card, .album-owned, .pv-mini, .fm-card, .achievement-tile, .booster-pack),
html[data-fx="light"] :is(.collection-card, .craft-card, .album-owned, .pv-mini, .fm-card, .achievement-tile, .booster-pack) :is(*, *::before, *::after),
html[data-fx="light"] :is(.collection-card, .craft-card, .album-owned, .pv-mini, .fm-card, .achievement-tile, .booster-pack)::before,
html[data-fx="light"] :is(.collection-card, .craft-card, .album-owned, .pv-mini, .fm-card, .achievement-tile, .booster-pack)::after { animation-iteration-count: 1 !important; }

/* --- Grille virtualisee de la collection (collection-core.js VGrid) ---
   Grille externe : une colonne de blocs (meme gap que la grille, donc meme
   espacement entre rangees) ; chaque bloc reprend le gabarit des colonnes.
   Un bloc hors de l'ecran n'est ni mis en page ni peint ; la marge interieure
   compensee laisse deborder lueurs, badges et bascule des vignettes. */
.collection-grid.vgrid.vgrid { grid-template-columns: minmax(0, 1fr) !important; }
.vchunk { content-visibility: auto; contain-intrinsic-size: auto calc(var(--vrow-h, 320px) * var(--vrows, 4)); padding: 18px 12px; margin: -18px -12px; }

/* --- Fenetre de carte sobre (2026-10-21, CardFly ui.js) : fondu court et
   leger glissement, sans rebond ni flou du fond (le flou recalculait toute la
   page a l'ouverture). --- */

.card-modal-overlay .card-modal { transform: translateY(8px); opacity: 0; animation: cardModalIn 0.18s ease-out forwards; }
.card-modal-overlay.is-closing { animation: cardModalOut 0.13s ease-in forwards; }
@keyframes cardModalIn { to { transform: none; opacity: 1; } }
@keyframes cardModalOut { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .card-modal-overlay .card-modal { animation-duration: 0.01s !important; } }

/* --- Application installable (shell-extras.js AppInstall) --- */
.app-install-banner { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--bg-panel-solid)), var(--bg-panel-solid) 60%); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(var(--accent-rgb), 0.5); animation: appBannerIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.app-install-banner img { border-radius: 12px; }
.app-install-banner strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.app-install-banner small { display: block; color: var(--text-dim); font-size: 0.76rem; line-height: 1.35; }
.app-install-banner .btn { padding: 8px 14px; white-space: nowrap; }
.app-install-x { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: transparent; border: 1px solid var(--border-soft); color: var(--text-dim); box-shadow: none; font-size: 1.1rem; line-height: 1; cursor: pointer; }
@keyframes appBannerIn { from { opacity: 0; transform: translate(-50%, 16px); } }
@media (max-width: 640px) { .app-install-banner { bottom: calc(var(--nav-bottom-h) + 10px + env(safe-area-inset-bottom, 0px)); } }
.app-ios-box { text-align: center; }
.app-ios-box img { display: block; margin: 0 auto 10px; border-radius: 16px; }
.app-ios-steps { text-align: left; margin: 8px 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 0.9rem; line-height: 1.45; }
/* Ouvert comme application : pas de lien d'installation, marge des encoches. */
html[data-standalone] header#site-header { padding-top: env(safe-area-inset-top, 0px); }

/* --- Comparateur de collections (js/lazy/compare.js) --- */
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.profile-actions .btn-secondary { padding: 7px 14px; font-size: 0.85rem; }
.cmp-modal { width: min(820px, 100%); grid-template-rows: auto minmax(0, 1fr); }
.cmp-body { overflow-y: auto; min-height: 0; display: grid; gap: 14px; align-content: start; padding: 2px; }
.cmp-meter { display: flex; height: 14px; border-radius: var(--radius-pill); overflow: hidden; background: var(--bg-panel-2); }
.cmp-meter span { display: block; height: 100%; }
.cmp-m-mine { background: var(--accent); }
.cmp-m-common { background: color-mix(in srgb, var(--accent) 50%, var(--accent-2)); }
.cmp-m-his { background: var(--accent-2); }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82rem; color: var(--text-dim); }
.cmp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.cmp-legend strong { color: var(--text); }
.cmp-pairs h3 { margin: 0 0 4px; font-size: 1rem; }
.cmp-pairs ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.cmp-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); }
.cmp-pair .cmp-tile { flex-direction: row; text-align: left; align-items: center; gap: 8px; padding: 6px; }
.cmp-pair .cmp-tile img { width: 42px; aspect-ratio: 3 / 4; flex: 0 0 auto; }
.cmp-pair .cmp-tile small { display: none; }
.cmp-swap { font-size: 1.3rem; color: var(--accent-2); }
.cmp-go { padding: 7px 12px; font-size: 0.82rem; }
.cmp-help { margin: 0 0 8px; font-size: 0.8rem; color: var(--text-dim); }
.cmp-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border-soft); padding-bottom: 8px; }
.cmp-tabs button { padding: 6px 12px; font-size: 0.84rem; border-radius: var(--radius-pill); background: transparent; border: 1px solid var(--border-soft); color: var(--text-dim); box-shadow: none; }
.cmp-tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); border-color: var(--accent); }
.cmp-tabs b { margin-left: 4px; font-weight: 800; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.cmp-tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 12px; background: var(--bg-panel-2); border: 1px solid color-mix(in srgb, var(--r) 55%, transparent); color: var(--text); text-decoration: none; min-width: 0; text-align: center; }
a.cmp-tile:hover { border-color: var(--r); box-shadow: 0 0 0 1px var(--r), 0 8px 20px -10px var(--r); }
.cmp-tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.cmp-name { font-size: 0.78rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-tile small { font-size: 0.7rem; font-weight: 600; }
.cmp-badge { position: absolute; top: 8px; right: 8px; padding: 1px 7px; border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 800; background: rgba(6, 7, 15, 0.85); color: #fff; border: 1px solid var(--r); }
.cmp-badge.cmp-wish { right: auto; left: 8px; color: #fde68a; border-color: #fbbf24; }
.cmp-pair .cmp-badge { position: static; }
.cmp-empty { color: var(--text-dim); text-align: center; padding: 16px; margin: 0; }
@media (max-width: 560px) { .cmp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cmp-pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .cmp-go { grid-column: 1 / -1; justify-self: stretch; text-align: center; } }

/* --- Studio de partage (js/lazy/share-studio.js) --- */
.ss-modal { width: min(720px, 100%); grid-template-rows: auto auto minmax(0, 1fr) auto; }
.ss-formats { display: flex; gap: 6px; flex-wrap: wrap; }
.ss-formats button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 0.84rem; border-radius: var(--radius-pill); background: transparent; border: 1px solid var(--border-soft); color: var(--text-dim); box-shadow: none; }
.ss-formats button[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); border-color: var(--accent); }
.ss-formats i { display: inline-block; border: 2px solid currentColor; border-radius: 3px; }
.ss-fmt-post { width: 12px; height: 15px; }
.ss-fmt-story { width: 10px; height: 18px; }
.ss-fmt-square { width: 14px; height: 14px; }
.ss-stage { min-height: 0; display: grid; place-items: center; padding: 6px; border-radius: 14px; background: repeating-conic-gradient(rgba(255, 255, 255, 0.03) 0 25%, transparent 0 50%) 0 0 / 22px 22px; overflow: hidden; }
.ss-canvas { display: block; max-width: 100%; max-height: min(62vh, 640px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8); }
.ss-actions { justify-content: flex-end; }
@media (max-width: 560px) { .ss-actions { justify-content: stretch; } .ss-actions > * { flex: 1 1 45%; } .ss-canvas { max-height: 52vh; } }

/* --- Centre de notifications (js/lazy/notif-center.js) --- */
/* Les boutons coupent ce qui depasse (overflow: hidden pour leur reflet,
   widgets.css) : la pastille de la cloche etait rognee dans le cercle. */

.notif-bell-trigger::before { display: none; }
.notif-bell-dot { top: -2px; right: -2px; }
.notif-bell-dot.has-count { width: auto; min-width: 16px; height: 16px; top: -4px; right: -4px; padding: 0 4px; border-radius: var(--radius-pill); font-size: 0.62rem; font-weight: 800; line-height: 16px; text-align: center; color: #fff; }
.notif-bell-dropdown.nc-root { width: min(420px, 92vw); max-height: min(70vh, 620px); padding: 8px 8px 4px; }
.nc-head { position: sticky; top: -8px; z-index: 1; background: var(--bg-panel-solid); padding-top: 8px; }
.nc-count { color: var(--accent-2); font-family: var(--font-body); text-transform: none; letter-spacing: normal; font-weight: 700; }
.nc-filters { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; }
.nc-filters button { flex: 0 0 auto; padding: 4px 10px; font-size: 0.76rem; border-radius: var(--radius-pill); background: transparent; border: 1px solid var(--border-soft); color: var(--text-dim); box-shadow: none; }
.nc-filters button[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 24%, transparent); border-color: var(--accent); color: var(--text); }
.nc-filters b { margin-left: 2px; font-weight: 800; color: var(--accent-2); }
.nc-sec + .nc-sec { margin-top: 6px; }
.nc-sec h3 { display: flex; align-items: center; gap: 6px; margin: 4px 6px 4px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
.nc-sec h3 .nc-btn { margin-left: auto; text-transform: none; letter-spacing: normal; }
.nc-sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nc-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 0.84rem; background: rgba(255, 255, 255, 0.025); }
.nc-todo { background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.nc-unread { box-shadow: inset 3px 0 0 var(--accent-2); background: rgba(255, 255, 255, 0.05); }
.nc-ico { flex: 0 0 22px; text-align: center; margin-top: 1px; }
.nc-ico .ico-token { width: 20px; height: 20px; }
.nc-h-success .nc-ico { color: var(--success); }
.nc-h-error .nc-ico { color: var(--danger); }
.nc-h-info .nc-ico { color: var(--accent-2); }
.nc-body { display: grid; gap: 4px; min-width: 0; flex: 1; }
.nc-msg { line-height: 1.38; overflow-wrap: anywhere; }
.nc-msg a { color: inherit; }
.nc-time { font-size: 0.72rem; color: var(--text-dim); }
.nc-ready { color: var(--success); }
.nc-new { color: var(--accent-2); text-transform: none; letter-spacing: normal; }
.nc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nc-btn { padding: 4px 10px; font-size: 0.76rem; border-radius: var(--radius-pill); background: transparent; border: 1px solid var(--border); color: var(--text); box-shadow: none; cursor: pointer; }
.nc-btn.nc-ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.nc-btn:disabled { opacity: 0.6; cursor: default; }
.nc-link { font-size: 0.76rem; color: var(--accent-2); }
.nc-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.78rem; }
.nc-pick select { max-width: 100%; padding: 4px 8px; font-size: 0.78rem; }
.nc-warn { color: var(--warning, #fbbf24); }
@media (max-width: 640px) {
  .notif-bell-dropdown.nc-root { position: fixed; left: 8px; right: 8px; top: calc(var(--header-h, 64px) + 6px); width: auto; max-height: calc(100vh - var(--header-h, 64px) - var(--nav-bottom-h) - 24px); }
}

/* --- Liste de souhaits (js/lazy/wishlist.js, collection-binder.js) ---
   Un coeur avec son libelle sur les cartes manquantes (l'etoile reste aux
   favoris des cartes possedees). */
.collection-card .wishlist-btn { width: auto; height: 26px; padding: 0 9px 0 7px; gap: 4px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 700; color: rgba(255, 255, 255, 0.82); background: rgba(6, 7, 15, 0.72); border: 1px solid rgba(255, 255, 255, 0.16); }
.collection-card .wishlist-btn .wl-ico { font-size: 0.9rem; line-height: 1; }
.collection-card .wishlist-btn:hover { color: #fff; border-color: #f472b6; }
.collection-card .wishlist-btn.active { color: #fff; background: #db2777; border-color: #f472b6; }
.collection-grid.dense .wishlist-btn { width: 22px; height: 22px; padding: 0; justify-content: center; }
.collection-grid.dense .wishlist-btn .wl-txt { display: none; }
.wish-alerts-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wish-alerts-head .btn-secondary { margin-left: auto; padding: 5px 12px; font-size: 0.8rem; }
.wl-modal { width: min(680px, 100%); grid-template-rows: auto auto minmax(0, 1fr); }
.wl-help { font-size: 0.84rem; color: var(--text-dim); border: 1px solid var(--border-soft); border-radius: 12px; padding: 8px 12px; background: var(--bg-panel-2); }
.wl-help summary { cursor: pointer; font-weight: 700; color: var(--text); }
.wl-help ul { margin: 8px 0 2px; padding-left: 18px; display: grid; gap: 4px; line-height: 1.45; }
.wl-list-host { overflow-y: auto; min-height: 0; }
.wl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wl-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 14px; background: var(--bg-panel-2); border: 1px solid color-mix(in srgb, var(--r) 35%, transparent); }
.wl-row.wl-available { border-color: color-mix(in srgb, var(--success) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--success) 25%, transparent); }
.wl-row img { width: 56px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 2px solid var(--r); }
.wl-body { display: grid; gap: 2px; min-width: 0; }
.wl-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-body small { font-size: 0.76rem; font-weight: 600; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.wl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 0.74rem; border: 1px solid var(--border-soft); color: var(--text-dim); background: rgba(255, 255, 255, 0.03); text-decoration: none; }
a.wl-chip.wl-go { color: var(--text); border-color: color-mix(in srgb, var(--success) 60%, transparent); background: color-mix(in srgb, var(--success) 14%, transparent); }
a.wl-chip.wl-go:hover { background: color-mix(in srgb, var(--success) 26%, transparent); }
.wl-chip.wl-ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.wl-remove { width: 36px; height: 36px; padding: 0; border-radius: 50%; background: rgba(219, 39, 119, 0.16); border: 1px solid #f472b6; color: #f472b6; font-size: 1.05rem; box-shadow: none; }
.wl-remove:hover { background: #db2777; color: #fff; }
.wl-empty { text-align: center; padding: 18px 12px; display: grid; justify-items: center; gap: 4px; }
.wl-empty > span { font-size: 2.4rem; color: #f472b6; line-height: 1; }
.wl-empty p { margin: 0; max-width: 46ch; }
.wl-empty .btn { margin-top: 10px; }

/* --- Journal d'ouvertures regroupe (pull-log.js) --- */
.pull-log-day { display: flex; align-items: baseline; gap: 10px; margin: 18px 2px 4px; font-size: 0.82rem; text-transform: capitalize; letter-spacing: 0.02em; color: var(--text-dim); }
.pull-log-day small { text-transform: none; font-weight: 600; color: var(--accent-2); }
.pull-log-group { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px; border-radius: 14px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); border-left: 3px solid var(--r); }
.pull-log-when { display: grid; gap: 2px; justify-items: start; font-size: 0.8rem; }
.pull-log-when .pull-log-source { font-size: 1.3rem; }
.pull-log-cards { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.pull-log-card { flex: 0 0 auto; width: 64px; display: grid; gap: 2px; text-align: center; min-width: 0; }
.pull-log-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 2px solid var(--r); }
.pull-log-card .pull-log-name { font-size: 0.68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pull-log-card small { font-size: 0.62rem; font-weight: 700; }
/* Anciennes regles mobiles des lignes du journal (features.css) neutralisees. */
.pull-log-when .pull-log-source, .pull-log-when .pull-log-time { grid-area: auto; }
.pull-log-more { justify-self: center; margin-top: 12px; }
@media (max-width: 560px) { .pull-log-group { grid-template-columns: 1fr; } .pull-log-when { grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; } .pull-log-card { width: 58px; } }
/* Calendrier : rendez-vous qui reviennent (communaute-calendar.js). */
.cal-filter.cal-all { margin-left: auto; }
.cal-every { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 600; color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent-2) 45%, transparent); }

/* --- Listes deroulantes natives (2026-10-21) : meme allure partout que les
   menus stylises (enhanceSelect, ui.js), fleche dessinee. --- */
select:not(.fancy-select-native) { -webkit-appearance: none; appearance: none; min-height: 38px; padding: 8px 32px 8px 12px; border-radius: 10px; border: 1px solid var(--border-soft); color: var(--text); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  background: var(--bg-panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a5a8c9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px; }
select:not(.fancy-select-native):hover { border-color: var(--border); }
select:not(.fancy-select-native):focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
/* Nouveautes : anciennes versions repliees (patchnotes.js). */
.pn-older { margin-top: 18px; border-top: 1px solid var(--border-soft); padding-top: 12px; }
.pn-older > summary { cursor: pointer; font-weight: 700; padding: 8px 12px; border-radius: 12px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); list-style-position: inside; }
.pn-older > summary small { margin-left: 8px; font-weight: 500; color: var(--text-dim); }
.pn-older[open] > summary { margin-bottom: 12px; }
/* Bandeau boutique de page (shop-strip.js) : decolle de ce qui precede. */
[data-shop-strip="ouverture"], [data-shop-strip="collection"] { margin: 14px 0; }
.dig-shop:empty { display: none; }

/* --- Communaute : rubriques au-dessus des onglets (communaute.js COMM_GROUPS) --- */
.cm-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 14px 0 6px; }
.cm-group { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 14px; font-size: 0.95rem; font-weight: 800; color: var(--text-dim); background: var(--bg-panel-2); border: 1px solid var(--border-soft); box-shadow: none; }
.cm-group::before { display: none; }
.cm-group:hover:not(.active) { color: var(--text); border-color: var(--border); transform: none; }
.cm-group.active { color: var(--text); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--bg-panel-2)), color-mix(in srgb, var(--accent-2) 18%, var(--bg-panel-2))); border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 8px 20px -14px var(--accent); }
.cm-group .tab-new-dot { position: absolute; top: 7px; right: 9px; }
.cm-tabs .tab.cm-out { display: none !important; }
@media (max-width: 560px) { .cm-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .cm-group { flex-direction: column; gap: 2px; padding: 8px 4px; font-size: 0.74rem; text-align: center; line-height: 1.15; } .cm-group > span { font-size: 1.15rem; } }

/* --- Accueil plus court (home-fold.js) --- */
.fold-head { cursor: pointer; position: relative; padding-right: 40px; }
.fold-btn { position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 30px; height: 30px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-soft); color: var(--text-dim); box-shadow: none; font-size: 0.8rem; }
.fold-btn::before { display: none; }
.fold-btn:hover:not(:disabled) { color: var(--text); transform: translateY(-50%); }
.fold-btn span { display: inline-block; transition: transform 0.2s ease; }
.panel.is-folded > :not(.fold-head) { display: none !important; }
.panel.is-folded .fold-btn span { transform: rotate(-90deg); }
.panel.is-folded { padding-top: 16px; padding-bottom: 16px; }
.panel.is-folded > .fold-head { margin-top: 0; margin-bottom: 0; }
.panel.is-folded > .fold-head h2, .panel.is-folded > h2.fold-head { margin: 0; }
/* « A recuperer » compact : une ligne, le detail se deplie. */
.rewards-center .rc-items { display: none; }
.rewards-center.rc-open .rc-items { display: grid; }
.rc-summary:empty { display: none; }
.rc-toggle { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); color: var(--text); font-weight: 600; text-align: left; box-shadow: none; }
.rc-toggle::before { display: none; }
.rc-toggle:hover:not(:disabled) { transform: none; border-color: var(--border); }
.rc-sum-icons { display: inline-flex; gap: 4px; font-size: 1.15rem; }
.rc-chev { margin-left: auto; color: var(--text-dim); transition: transform 0.2s ease; }
.rewards-center.rc-open .rc-chev { transform: rotate(180deg); }
.rewards-center.rc-open .rc-items { margin-top: 8px; }
@media (max-width: 960px) { #whatnow-panel { order: 0; } }

/* =====================================================================
   Distributeur de boosters, refonte du 2026-10-21 (opening.js, opening-cart.js,
   ripen.js) : cases compactes avec selecteur -/+, panier large qui reste
   visible (sticky), lots du murissoir compacts, barre flottante sur mobile.
   ===================================================================== */
.vending-body { grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; }
.vending-glass .extension-picker { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; justify-content: stretch; }
.vending-glass .extension-tile { padding: 8px 8px 10px; border-radius: 14px; display: flex; flex-direction: column; gap: 4px; }
.vending-glass .extension-tile:hover:not(.disabled) { transform: translateY(-2px); }
.vending-glass .ext-art { margin-bottom: 4px; }
.vending-glass .extension-tile .ext-name { font-size: 0.82rem; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.vending-glass .ext-count { font-size: 0.72rem; color: var(--text-dim); }
.vending-glass .pity-row { margin-top: 0; font-size: 0.68rem; gap: 6px; }
.vending-glass .mystery-perk { margin-top: 0; font-size: 0.7rem; }
.vend-code { top: 4px; left: 4px; font-size: 0.64rem; padding: 0 5px; }
.extension-tile .last-opened-badge { font-size: 0.62rem; }
.ext-progress { display: flex; align-items: center; gap: 6px; }
.ext-progress-track { flex: 1; height: 5px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ext-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.ext-progress .ext-count { flex: none; font-variant-numeric: tabular-nums; }
/* Sommaire du set : petite icone dans le coin de l'illustration. */
.ext-art .set-summary-link { position: absolute; top: 6px; right: 6px; z-index: 3; width: 28px; height: 28px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; font-size: 0.8rem; background: rgba(6, 7, 15, 0.78); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: none; opacity: 0; transition: opacity 0.15s ease; }
.ext-art .set-summary-link::before { display: none; }
.extension-tile:hover .set-summary-link, .ext-art .set-summary-link:focus-visible, .extension-tile.in-cart .set-summary-link { opacity: 1; }
@media (hover: none) { .ext-art .set-summary-link { opacity: 1; } }
/* Case choisie : lisere dore + selecteur -/+ sur l'illustration. */
.vending-glass .extension-tile.in-cart { border-color: #fde68a; box-shadow: 0 0 0 1px #fde68a, 0 0 22px -6px rgba(253, 230, 138, 0.8); }
.vend-step { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: rgba(12, 6, 6, 0.92); border: 1px solid #fde68a; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.9); }
.vend-step b { min-width: 2.2em; text-align: center; font-weight: 800; color: #fde68a; font-variant-numeric: tabular-nums; }
.vend-step button { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; font-weight: 800; background: #3f0a0a; color: #fde68a; border: none; box-shadow: none; }
.vend-step button::before { display: none; }
.vend-step button:disabled { opacity: 0.35; }
/* Monnayeur + panier : colonne large, reste a l'ecran. */
.vending-coin { position: sticky; top: calc(var(--header-h, 78px) + 12px); max-height: calc(100vh - var(--header-h, 78px) - 24px); overflow-y: auto; scrollbar-width: thin; align-items: stretch; text-align: left; gap: 10px; padding: 12px; }
.vending-coin-row { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(252, 165, 165, 0.2); }
.vending-coin-row .vending-token { width: 48px; height: 48px; }
.vending-coin-row .vending-coin-count { display: flex; align-items: baseline; gap: 6px; }
.vending-coin-row .vending-coin-count strong { font-size: 1.7rem; }
.vending-coin-row .vending-slot { margin-left: auto; width: 34px; }
.vend-cart { gap: 8px; }
.vend-cart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; font-size: 0.86rem; color: #fecaca; }
.vend-cart-head strong { font-size: 1.05rem; }
.vend-cart-head small { color: #fca5a5; }
.vend-cart-clear { width: auto; min-height: 0; padding: 3px 10px; font-size: 0.74rem; border-radius: var(--radius-pill); background: transparent; border: 1px solid rgba(252, 165, 165, 0.4); color: #fecaca; box-shadow: none; }
.vend-cart-clear::before { display: none; }
.vend-cart-gauge { display: block; height: 4px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, 0.4); overflow: hidden; }
.vend-cart-gauge span { display: block; height: 100%; background: #fde68a; border-radius: inherit; }
.vend-cart-list { max-height: 260px; gap: 5px; }
.vend-cart-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; padding: 5px 6px; }
.vend-thumb { width: 28px; height: 37px; object-fit: cover; border-radius: 5px; display: grid; place-items: center; background: #1e293b; font-size: 0.9rem; }
.vend-thumb-mystery { background: conic-gradient(from 0deg, #7c3aed, #22d3ee, #f472b6, #facc15, #7c3aed); color: #fff; font-weight: 900; }
.vend-cart-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.84rem; font-weight: 600; }
.vend-cart-qty button { width: 26px; height: 26px; min-height: 0; padding: 0; display: grid; place-items: center; box-shadow: none; }
.vend-cart-qty button::before { display: none; }
.vend-cart-qty button:disabled { opacity: 0.35; }
.vend-cart-go { width: 100%; padding: 12px 14px; font-size: 1rem; }
.vend-cart-each { width: 100%; min-height: 0; padding: 7px 10px; font-size: 0.8rem; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px dashed rgba(253, 230, 138, 0.5); color: #fde68a; box-shadow: none; }
.vend-cart-each::before { display: none; }
.vend-cart-each small { opacity: 0.75; }
.vend-cart-ripen { width: 100%; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 0.85rem; background: rgba(132, 204, 22, 0.12); border: 1px solid rgba(163, 230, 53, 0.45); color: #ecfccb; box-shadow: none; }
.vend-cart-ripen::before { display: none; }
.vend-cart-ripen small { font-size: 0.72rem; opacity: 0.8; font-weight: 500; }
.vend-ripen-pick { margin-top: 0; }
.vend-ripen-stage b { font-size: 0.86rem; }
.vend-ripen-cancel { min-height: 0; padding: 4px 10px; font-size: 0.76rem; background: transparent; border: 1px solid var(--border-soft); color: var(--text-dim); box-shadow: none; }
.vend-ripen-cancel::before { display: none; }
.vend-cart-empty { display: grid; gap: 6px; text-align: center; padding: 6px 2px; }
.vend-cart-empty strong { color: #fde68a; }
.vend-cart-empty > span { font-size: 0.78rem; color: #fecaca; line-height: 1.45; }
/* Lots du murissoir. */
.vend-lots { margin-top: 0; padding-top: 10px; border-top: 1px solid rgba(252, 165, 165, 0.2); }
.vend-lots-head { font-weight: 800; font-size: 0.86rem; color: #ecfccb; }
.vend-lots-head small { font-weight: 500; opacity: 0.7; margin-left: 4px; }
.vend-lot { text-align: left; gap: 5px; padding: 10px; }
.vend-lot-top { display: flex; align-items: center; gap: 8px; }
.vend-lot-top .vend-lot-ico { font-size: 1.2rem; align-self: auto; }
.vend-lot-top strong { font-size: 0.88rem; }
.vend-lot-n { margin-left: auto; font-size: 0.74rem; font-weight: 700; padding: 1px 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); }
.vend-lot-perk { color: var(--text-dim); font-size: 0.74rem; }
.vend-lot-bar { display: block; height: 4px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, 0.4); overflow: hidden; }
.vend-lot-bar span { display: block; height: 100%; background: linear-gradient(90deg, #a3e635, #fde68a); border-radius: inherit; }
.vend-lot-items summary { cursor: pointer; font-size: 0.74rem; color: var(--text-dim); }
.vend-lot-items small { display: block; margin-top: 4px; font-size: 0.72rem; color: var(--text-dim); line-height: 1.4; }
/* Mobile : cases d'abord, panier dessous, barre flottante au-dessus du menu du bas. */
@media (max-width: 720px) {
  .vending-body { grid-template-columns: 1fr; }
  .vending-coin { position: static; max-height: none; order: 0; flex-direction: column; flex-wrap: nowrap; }
  .vending-glass { order: -1; }
  .vending-glass .extension-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.vend-mbar { display: none; }
@media (max-width: 720px) {
  .vend-mbar { position: fixed; z-index: 55; left: 10px; right: 10px; bottom: calc(var(--nav-bottom-h, 64px) + 10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 16px; background: linear-gradient(135deg, #7f1d1d, #3f0a0a); border: 1px solid #fca5a5; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.9); animation: vendBarIn 0.25s ease both; }
  .vend-mbar-info { flex: 1; display: grid; text-align: left; min-height: 0; padding: 0; background: none; border: 0; box-shadow: none; color: #fff; font-size: 0.9rem; }
  .vend-mbar-info::before { display: none; }
  .vend-mbar-info strong { display: inline; color: #fde68a; }
  .vend-mbar-info small { font-weight: 500; color: #fecaca; font-size: 0.72rem; }
  .vend-mbar .btn { padding: 10px 18px; }
}
@media (min-width: 641px) and (max-width: 720px) { .vend-mbar { bottom: 12px; } }
@keyframes vendBarIn { from { opacity: 0; transform: translateY(14px); } }
/* Le bouton « retour en haut » passe au-dessus de la barre du panier. */
@media (max-width: 720px) { body:has(#vend-mbar) .back-to-top { bottom: calc(var(--nav-bottom-h, 64px) + 86px + env(safe-area-inset-bottom, 0px)); } }
.ext-progress .ext-count b { color: var(--text); font-weight: 800; }

/* --- Ouverture de gros lots (opening.js BIG_LOT, 2026-10-21) ---
   Pile : seules les cartes proches du sommet sont dessinees ; pastilles
   groupees sur deux lignes au plus ; vue « tout reveler » : les cartes hors
   de l'ecran ne sont ni mises en page ni peintes. */
.reveal-grid.stacked .card.stack-far { display: none; }
.stack-pips { flex-wrap: wrap; max-width: min(560px, 92vw); margin-left: auto; margin-right: auto; }
.stack-pips.pips-grouped { gap: 5px; }
.stack-pips.pips-grouped .stack-pip { width: 10px; height: 10px; }
.stack-pips.pips-grouped .stack-pip.partial { background: linear-gradient(90deg, var(--pip-color, #9aa0b4) 50%, rgba(255, 255, 255, 0.18) 50%); box-shadow: none; }
.reveal-grid.big-lot.row-reveal .card { content-visibility: auto; contain-intrinsic-size: auto 280px; }

/* Coffre-fort perso, 25 octobre : groupes par extension + carte emeraude (7e case). */
.pv-ext-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 22px 0 8px; }
.pv-ext-group small { color: var(--text-dim); font-weight: 600; }
.pv-ext-bar { flex: 1 1 120px; max-width: 260px; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--border) 70%, transparent); overflow: hidden; }
.pv-ext-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #10b981, #34d399); border-radius: inherit; }
.pv-row-body { display: flex; gap: 12px; align-items: flex-start; }
.pv-row-body .pv-slots { flex: 1 1 auto; min-width: 0; }
.pv-emerald { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 6px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, #10b981 55%, transparent); background: color-mix(in srgb, #10b981 6%, transparent); min-height: 120px; justify-content: center; }
.pv-emerald small { color: var(--text-dim); font-size: 0.7rem; }
.pv-emerald-gem { font-size: 1.6rem; filter: grayscale(0.6) opacity(0.7); }
.pv-emerald.has { border-style: solid; border-color: #10b981; box-shadow: 0 0 18px -6px #10b981; justify-content: flex-start; }
.pv-emerald.has .pv-mini { width: 100%; border-radius: 10px; }
.pv-emerald.has .pv-mini .card-art img { aspect-ratio: 3 / 4; object-fit: cover; }
.pv-emerald-lock { font-size: 0.66rem; font-weight: 700; color: #34d399; }
@media (max-width: 640px) { .pv-row-body { flex-direction: column; } .pv-emerald { flex-basis: auto; width: 104px; } }
/* Finition emeraude, 2e version (26 octobre) : carte de maitrise du coffre,
   traitee comme le diamant mais en taille emeraude (gradins concentriques a
   pans coupes), eclats verts et cadre vert profond. Genere par
   emerald-gen (scratchpad) : texture SVG + calques. */
:root:not(#fx) .collection-card[data-finish="emerald"],
:root:not(#fx) .craft-card[data-finish="emerald"],
:root:not(#fx) .card-modal[data-finish="emerald"],
:root:not(#fx) .card[data-finish="emerald"] {
  --fx-f: saturate(1.15) contrast(1.16) brightness(1.06) hue-rotate(-6deg);
  --fx-f-shine: linear-gradient(125deg, transparent 0 32%, rgba(209,250,229,0.6) 44%, rgba(52,211,153,0.2) 51%, transparent 60% 100%),
    radial-gradient(circle at 74% 20%, rgba(255,255,255,0.95) 0 1.2%, transparent 3%),
    radial-gradient(circle at 24% 58%, rgba(236,253,245,0.9) 0 1%, transparent 2.6%),
    radial-gradient(circle at 60% 86%, rgba(167,243,208,0.9) 0 1%, transparent 2.4%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M16 0 L84 0 L78 9 L22 9Z' fill='%23ecfdf5' fill-opacity='0.154'/%3E%3Cpath d='M84 0 L100 16 L91 22 L78 9Z' fill='%23ecfdf5' fill-opacity='0.070'/%3E%3Cpath d='M100 16 L100 84 L91 78 L91 22Z' fill='%23022c22' fill-opacity='0.112'/%3E%3Cpath d='M100 84 L84 100 L78 91 L91 78Z' fill='%23022c22' fill-opacity='0.070'/%3E%3Cpath d='M84 100 L16 100 L22 91 L78 91Z' fill='%23022c22' fill-opacity='0.168'/%3E%3Cpath d='M16 100 L0 84 L9 78 L22 91Z' fill='%23022c22' fill-opacity='0.084'/%3E%3Cpath d='M0 84 L0 16 L9 22 L9 78Z' fill='%23ecfdf5' fill-opacity='0.056'/%3E%3Cpath d='M0 16 L16 0 L22 9 L9 22Z' fill='%23ecfdf5' fill-opacity='0.112'/%3E%3Cpath d='M22 9 L78 9 L72 18 L28 18Z' fill='%23ecfdf5' fill-opacity='0.131'/%3E%3Cpath d='M78 9 L91 22 L82 28 L72 18Z' fill='%23ecfdf5' fill-opacity='0.059'/%3E%3Cpath d='M91 22 L91 78 L82 72 L82 28Z' fill='%23022c22' fill-opacity='0.095'/%3E%3Cpath d='M91 78 L78 91 L72 82 L82 72Z' fill='%23022c22' fill-opacity='0.059'/%3E%3Cpath d='M78 91 L22 91 L28 82 L72 82Z' fill='%23022c22' fill-opacity='0.143'/%3E%3Cpath d='M22 91 L9 78 L18 72 L28 82Z' fill='%23022c22' fill-opacity='0.071'/%3E%3Cpath d='M9 78 L9 22 L18 28 L18 72Z' fill='%23ecfdf5' fill-opacity='0.048'/%3E%3Cpath d='M9 22 L22 9 L28 18 L18 28Z' fill='%23ecfdf5' fill-opacity='0.095'/%3E%3Cpath d='M28 18 L72 18 L66 27 L34 27Z' fill='%23ecfdf5' fill-opacity='0.108'/%3E%3Cpath d='M72 18 L82 28 L73 34 L66 27Z' fill='%23ecfdf5' fill-opacity='0.049'/%3E%3Cpath d='M82 28 L82 72 L73 66 L73 34Z' fill='%23022c22' fill-opacity='0.078'/%3E%3Cpath d='M82 72 L72 82 L66 73 L73 66Z' fill='%23022c22' fill-opacity='0.049'/%3E%3Cpath d='M72 82 L28 82 L34 73 L66 73Z' fill='%23022c22' fill-opacity='0.118'/%3E%3Cpath d='M28 82 L18 72 L27 66 L34 73Z' fill='%23022c22' fill-opacity='0.059'/%3E%3Cpath d='M18 72 L18 28 L27 34 L27 66Z' fill='%23ecfdf5' fill-opacity='0.039'/%3E%3Cpath d='M18 28 L28 18 L34 27 L27 34Z' fill='%23ecfdf5' fill-opacity='0.078'/%3E%3Cpath d='M34 27 L66 27 L60 36 L40 36Z' fill='%23ecfdf5' fill-opacity='0.085'/%3E%3Cpath d='M66 27 L73 34 L64 40 L60 36Z' fill='%23ecfdf5' fill-opacity='0.038'/%3E%3Cpath d='M73 34 L73 66 L64 60 L64 40Z' fill='%23022c22' fill-opacity='0.062'/%3E%3Cpath d='M73 66 L66 73 L60 64 L64 60Z' fill='%23022c22' fill-opacity='0.038'/%3E%3Cpath d='M66 73 L34 73 L40 64 L60 64Z' fill='%23022c22' fill-opacity='0.092'/%3E%3Cpath d='M34 73 L27 66 L36 60 L40 64Z' fill='%23022c22' fill-opacity='0.046'/%3E%3Cpath d='M27 66 L27 34 L36 40 L36 60Z' fill='%23ecfdf5' fill-opacity='0.031'/%3E%3Cpath d='M27 34 L34 27 L40 36 L36 40Z' fill='%23ecfdf5' fill-opacity='0.062'/%3E%3Cpath d='M40 36 L60 36 L64 40 L64 60 L60 64 L40 64 L36 60 L36 40Z' fill='%23d1fae5' fill-opacity='0.1'/%3E%3Cg fill='none' stroke='%23d1fae5' stroke-opacity='0.17' stroke-width='0.5' vector-effect='non-scaling-stroke'%3E%3Cpath d='M16 0 L84 0 L100 16 L100 84 L84 100 L16 100 L0 84 L0 16Z'/%3E%3Cpath d='M22 9 L78 9 L91 22 L91 78 L78 91 L22 91 L9 78 L9 22Z'/%3E%3Cpath d='M28 18 L72 18 L82 28 L82 72 L72 82 L28 82 L18 72 L18 28Z'/%3E%3Cpath d='M34 27 L66 27 L73 34 L73 66 L66 73 L34 73 L27 66 L27 34Z'/%3E%3Cpath d='M40 36 L60 36 L64 40 L64 60 L60 64 L40 64 L36 60 L36 40Z'/%3E%3Cpath d='M16 0 L40 36'/%3E%3Cpath d='M84 0 L60 36'/%3E%3Cpath d='M100 16 L64 40'/%3E%3Cpath d='M100 84 L64 60'/%3E%3Cpath d='M84 100 L60 64'/%3E%3Cpath d='M16 100 L40 64'/%3E%3Cpath d='M0 84 L36 60'/%3E%3Cpath d='M0 16 L36 40'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(52,211,153,0.3), rgba(4,120,87,0.42));
  --fx-f-size: 260% 260%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  --fx-f-anim: fxShine 4s ease-in-out infinite alternate;
  --fx-f-ring: inset 0 0 0 2px rgba(167,243,208,0.95), inset 0 0 0 4px rgba(6,78,59,0.55), inset 0 0 26px -4px rgba(16,185,129,0.95);
  --finish-glow: rgba(16,185,129,0.45);
}
.collection-card[data-finish="emerald"], .card-modal[data-finish="emerald"], .craft-card[data-finish="emerald"] { border-color: #10b981 !important; border-width: 2px; box-shadow: 0 0 0 1px rgba(6,78,59,0.8), 0 0 26px rgba(16,185,129,0.7); }
.card[data-finish="emerald"] .card-front { border-color: #10b981 !important; box-shadow: 0 0 26px rgba(16,185,129,0.7); }
.collection-card[data-finish="emerald"] .card-info, .craft-card[data-finish="emerald"] .card-info, .card[data-finish="emerald"] .card-info, .card-modal[data-finish="emerald"] .card-modal-body { background: linear-gradient(180deg, rgba(16,185,129,0.4) 0%, transparent 85%); }
.finish-indicator[data-finish="emerald"], .finish-tag[data-finish="emerald"] { border-color: #10b981; color: #d1fae5; background: linear-gradient(135deg, rgba(6,78,59,0.85), rgba(16,185,129,0.55)); box-shadow: 0 0 10px rgba(16,185,129,0.7); }
/* Eclats qui scintillent par-dessus (comme les etoiles du diamant). */
:root:not(#fx) .collection-card[data-finish="emerald"] .card-art,
:root:not(#fx) .card-modal[data-finish="emerald"] .card-art { box-shadow: 0 0 0 1px rgba(16,185,129,0.6), var(--fx-e-glow); }
:root:not(#fx) .collection-card[data-finish="emerald"] .card-art > img,
:root:not(#fx) .card-modal[data-finish="emerald"] .card-art > img { animation: emeraldGlint 3.2s ease-in-out infinite; }
@keyframes emeraldGlint { 0%, 100% { filter: var(--fx-q) var(--fx-f) var(--fx-e); } 50% { filter: var(--fx-q) var(--fx-f) var(--fx-e) brightness(1.1) drop-shadow(0 0 6px rgba(52,211,153,0.6)); } }
@media (prefers-reduced-motion: reduce) { :root:not(#fx) .collection-card[data-finish="emerald"] .card-art > img, :root:not(#fx) .card-modal[data-finish="emerald"] .card-art > img { animation: none; } }

/* Arbre celeste, 25 octobre : nebuleuses (rangs illimites) */
.sk-nebulae { margin-top: 18px; }
.sk-nebulae h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; }
.sk-nebulae h3 small { color: var(--text-dim); font-weight: 500; font-size: 0.78rem; }
.sk-neb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.sk-neb { display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 14px; background: radial-gradient(120% 90% at 0% 0%, rgba(167,139,250,0.16), transparent 60%), var(--bg-panel-2); border: 1px solid var(--border-soft); }
.sk-neb.on { border-color: rgba(167,139,250,0.6); box-shadow: 0 0 18px -8px #a78bfa; }
.sk-neb.locked { opacity: 0.6; }
.sk-neb header { display: flex; align-items: center; gap: 8px; }
.sk-neb header strong { flex: 1; font-size: 0.92rem; }
.sk-neb-rank { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(167,139,250,0.18); color: #c4b5fd; }
.sk-neb p { margin: 0; font-size: 0.86rem; }
.sk-neb small { color: var(--text-dim); font-size: 0.75rem; }
.pg-upgrades { margin-top: 22px; }
.shop-moved .shop-section-lead a { font-weight: 700; }

/* Tendresse pour Milo et Moka, 25 octobre */
.pet-love { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #f472b6 7%, transparent); border: 1px solid color-mix(in srgb, #f472b6 30%, transparent); display: grid; gap: 8px; }
.pet-love-head { display: flex; align-items: center; gap: 10px; }
.pet-mood { font-size: 1.5rem; line-height: 1; }
.pet-gauge { position: relative; flex: 1; height: 22px; border-radius: 99px; background: color-mix(in srgb, var(--border) 70%, transparent); overflow: hidden; }
.pet-gauge > span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #f9a8d4, #f472b6, #ec4899); border-radius: inherit; transition: width 0.6s cubic-bezier(.2,.8,.2,1); }
.pet-gauge > em { position: relative; display: block; text-align: center; font-style: normal; font-size: 0.74rem; font-weight: 700; line-height: 22px; color: var(--text); text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.pet-perks { margin: 0; font-size: 0.8rem; color: var(--text-dim); }
.pet-perks strong { color: var(--text); }
.pet-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.pet-act { display: inline-flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 12px; line-height: 1.2; }
.pet-act small { font-size: 0.68rem; color: var(--text-dim); font-weight: 600; }
.pet-heart { position: fixed; z-index: 9999; pointer-events: none; font-size: 1.1rem; animation: petHeart 1.3s ease-out forwards; }
@keyframes petHeart { 0% { transform: translate(-50%, 0) scale(0.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx, 0px)), -90px) scale(1.2); opacity: 0; } }

/* Archeologie, 25 octobre : tablettes anciennes a degager au pinceau */
.ar-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ar-stock { display: flex; align-items: baseline; gap: 8px; }
.ar-stock strong { font-size: 1.4rem; }
.ar-stock small { color: var(--text-dim); }
.ar-tablet-ico { width: 22px; height: 28px; align-self: center; border-radius: 6px 6px 4px 4px; background: linear-gradient(160deg, #cbb08a, #8a6d4a); box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15), inset 0 -6px 0 rgba(0,0,0,0.12); }
.ar-intro { color: var(--text-dim); }
.ar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ar-tool { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-panel-2); color: var(--text); cursor: pointer; font-weight: 700; }
.ar-tool small { font-weight: 500; font-size: 0.7rem; color: var(--text-dim); }
.ar-tool.on { border-color: #d6b98c; box-shadow: 0 0 0 2px color-mix(in srgb, #d6b98c 45%, transparent); }
.ar-strokes { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.ar-bar { width: 120px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--border) 70%, transparent); overflow: hidden; }
.ar-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #a16207, #d6b98c); transition: width 0.2s; }
.ar-slab { position: relative; max-width: 640px; margin: 0 auto; padding: 14px; border-radius: 18px 18px 14px 14px; background: linear-gradient(160deg, #b9a07c, #7d6446); box-shadow: inset 0 0 0 3px rgba(0,0,0,0.18), inset 0 0 40px rgba(0,0,0,0.25), 0 10px 30px -12px rgba(0,0,0,0.6); touch-action: none; user-select: none; }
.ar-slab.small { max-width: 360px; padding: 8px; }
.ar-grid { position: relative; z-index: 1; display: grid; gap: 2px; }
.ar-art { position: absolute; inset: 14px; z-index: 0; display: grid; grid-template-columns: repeat(var(--w), 1fr); grid-template-rows: repeat(var(--h), 1fr); gap: 2px; pointer-events: none; }
.ar-slab.small .ar-art { inset: 8px; }
.ar-cell { aspect-ratio: 1; border: 0; padding: 0; border-radius: 4px; cursor: crosshair; transition: background-color 0.25s, opacity 0.25s; position: relative; }
.ar-cell.l4 { background: #4a3322; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25); }
.ar-cell.l3 { background: #6b4a30; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2); }
.ar-cell.l2 { background: #8f6a45; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18); }
.ar-cell.l1 { background: #c09a6b; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12); }
.ar-cell.bare { background: transparent; cursor: default; }
.ar-cell.glint::after { content: "✨"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.7rem; animation: arGlint 1.8s ease-in-out infinite; }
.ar-cell.peek { background: transparent; box-shadow: inset 0 0 0 2px rgba(253,230,138,0.6); }
@keyframes arGlint { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.ar-find { grid-column: calc(var(--x) + 1) / span var(--cw); grid-row: calc(var(--y) + 1) / span var(--ch); display: grid; place-items: center; border-radius: 8px; background: radial-gradient(circle, rgba(255,255,255,0.35), rgba(255,255,255,0.05) 70%); animation: arFound 0.5s ease-out; }
.ar-find img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.4)); }
.ar-find span { font-size: 1.8rem; }
.ar-find.relic { background: radial-gradient(circle, rgba(253,224,71,0.55), transparent 70%); }
.ar-find.scratched img { filter: drop-shadow(0 3px 4px rgba(0,0,0,0.4)) saturate(0.8); }
.ar-find.cracked { background: repeating-linear-gradient(35deg, transparent 0 9px, rgba(0,0,0,0.35) 9px 10px); }
.ar-find.cracked img { filter: grayscale(0.6) brightness(0.85); }
@keyframes arFound { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ar-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 0.8rem; }
.ar-dust { position: fixed; z-index: 9999; width: 6px; height: 6px; border-radius: 50%; background: #c09a6b; pointer-events: none; animation: arDust 0.65s ease-out forwards; }
@keyframes arDust { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.ar-result { display: grid; gap: 12px; justify-items: center; text-align: center; }
.ar-loot { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; text-align: left; }
@media (max-width: 640px) { .ar-strokes { margin-left: 0; width: 100%; } .ar-slab { padding: 8px; } .ar-art { inset: 8px; } }

/* Casino de la salle interdite, 25 octobre */
/* Casino de la salle interdite, 25 octobre */
/* Premiere version (25 octobre), completee plus bas par les finitions du 26 :
   regles des classes disparues retirees le 30 octobre, et l'animation qui
   rejouait toutes les cartes du blackjack a chaque rendu. */
.cz { margin-top: 28px; padding-top: 20px; border-top: 1px dashed color-mix(in srgb, #fbbf24 40%, transparent); }
.cz-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cz-vip-bar { width: 60px; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.12); overflow: hidden; }
.cz-vip-bar > span { display: block; height: 100%; background: #fbbf24; }
.cz-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.cz-cashier { margin: 12px 0; padding: 12px; border-radius: 14px; background: var(--bg-panel-2); border: 1px solid #fbbf2455; display: grid; gap: 8px; }
.cz-cash-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cz-cash-row small { color: var(--text-dim); }
.cz-game { min-height: 260px; }
.cz-bets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; font-size: 0.85rem; }
.cz-bet { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.cz-bet.on { background: #fbbf24; color: #111; border-color: #fbbf24; font-weight: 800; }
.cz-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.cz-result { text-align: center; font-weight: 800; font-size: 1.1rem; }
/* Blackjack */
.bj-table { padding: 18px; border-radius: 24px; background: radial-gradient(ellipse at 50% 30%, #166534, #052e16); border: 6px solid #78350f; display: grid; gap: 14px; text-align: center; color: #ecfccb; }
.bj-row small { display: block; margin-bottom: 6px; opacity: 0.85; }
.bj-hand { display: flex; justify-content: center; gap: 6px; min-height: 84px; }
.bj-card { width: 58px; height: 82px; border-radius: 8px; background: #fff; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.4); animation-delay: calc(var(--i) * 90ms); }
.bj-card b { font-size: 1.2rem; }
.bj-card i { font-style: normal; font-size: 1.4rem; }
.bj-card.red { color: #dc2626; }
.bj-card.back { background: repeating-linear-gradient(45deg, #7c2d12 0 6px, #b45309 6px 12px); border: 3px solid #fff; }
/* Roulette */
.rl-layout { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 16px; align-items: start; }
.rl-wheel-wrap { position: relative; aspect-ratio: 1; }
.rl-wheel { position: absolute; inset: 0; border-radius: 50%; border: 8px solid #78350f; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.rl-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); color: #fbbf24; font-size: 1.4rem; z-index: 2; }
.rl-center { position: absolute; inset: 32%; border-radius: 50%; background: #1f2937; display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; color: #fff; border: 3px solid #fbbf24; }
.rl-center.red { background: #dc2626; }
.rl-center.green { background: #16a34a; }
.rl-center.black { background: #111827; }
.rl-outside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rl-spot { padding: 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-panel-2); color: var(--text); cursor: pointer; font-weight: 700; }
.rl-spot small { display: block; opacity: 0.7; font-weight: 500; }
.rl-spot.red { background: #7f1d1d; color: #fff; }
.rl-spot.black { background: #111827; color: #fff; }
.rl-num { padding: 6px 0; border: 0; border-radius: 6px; color: #fff; font-weight: 700; cursor: pointer; }
.rl-num.red { background: #b91c1c; }
.rl-num.black { background: #1f2937; }
.rl-num.green { background: #15803d; }
.rl-placed { font-size: 0.82rem; color: var(--text-dim); }
@media (max-width: 640px) { .rl-layout { grid-template-columns: 1fr; } .rl-wheel-wrap { max-width: 220px; margin: 0 auto; width: 100%; } }
/* Chamboule-tout */
.cn-stage { position: relative; height: 230px; border-radius: 16px; background: linear-gradient(#1e293b 0 70%, #78350f 70%); overflow: hidden; }
.cn-pyramid { position: absolute; left: 50%; bottom: 30%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.cn-row { display: flex; gap: 4px; margin-bottom: 2px; }
.cn-can { width: 36px; height: 44px; border-radius: 6px 6px 4px 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000), var(--c), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: inset 0 4px 0 rgba(255,255,255,0.35), inset 0 -4px 0 rgba(0,0,0,0.3); transition: transform 0.5s, opacity 0.5s; }
.cn-can.down { opacity: 0.18; transform: translateY(40px) rotate(70deg); }
.cn-can.hit { opacity: 0; }
.cn-ball { position: absolute; left: 50%; bottom: 4%; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #e5e7eb 40%, #9ca3af); }
.cn-legend, .cl-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; font-size: 0.78rem; margin: 8px 0; }
.cn-legend i, .cl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 4px; }
.cn-aim { display: grid; gap: 8px; justify-items: center; }
/* Pinces */
.cl-glass { position: relative; height: 280px; border-radius: 16px; background: linear-gradient(180deg, rgba(56,189,248,0.12), rgba(168,85,247,0.15)); border: 6px solid #db2777; overflow: hidden; }
.cl-cap { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: linear-gradient(180deg, var(--c) 0 50%, rgba(255,255,255,0.85) 50%); box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.35); display: grid; place-items: center; font-size: 1rem; transition: top 0.8s, opacity 0.5s; }
.cl-cap.lift { top: -20% !important; opacity: 0; }
.cl-claw { position: absolute; left: calc(var(--x) * 100%); top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 2; }
.cl-rope { width: 2px; height: calc(var(--y) * 250px); background: #e5e7eb; }
.cl-claw.drop .cl-rope { transition: height 0.6s ease-in; }
.cl-claw.up .cl-rope { height: 10px !important; transition: height 0.8s ease-out; }
.cl-head { font-size: 1.6rem; line-height: 1; transform: rotate(180deg); }
/* Plinko */
.pk-board { position: relative; height: 340px; max-width: 460px; margin: 0 auto; border-radius: 16px; background: linear-gradient(180deg, #1e1b4b, #312e81); overflow: hidden; }
.pk-drop { position: absolute; inset: 0 0 auto 0; height: 9%; display: grid; place-items: center; font-size: 0.75rem; color: #c7d2fe; cursor: pointer; background: rgba(255,255,255,0.05); z-index: 1; }
.pk-peg { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #e0e7ff; box-shadow: 0 0 6px #a5b4fc; }
.pk-ball { position: absolute; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #fbbf24); transition: left 0.16s ease-in, top 0.16s ease-in; z-index: 2; }
.pk-bins { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; padding: 2px; }
.pk-bin { text-align: center; font-size: 0.7rem; font-weight: 800; padding: 6px 0; border-radius: 6px; background: #4338ca; color: #fff; }
.pk-bin.hot { background: #b45309; }
.pk-bin.lit { animation: pkLit 0.9s; }
@keyframes pkLit { 50% { transform: translateY(-6px); filter: brightness(1.6); } }
/* Bonneteau */
.cp-stage { display: grid; justify-items: center; gap: 8px; padding: 16px; border-radius: 16px; background: radial-gradient(ellipse at 50% 80%, #7f1d1d, #1c1917); }
.cp-mascot { font-size: 2.4rem; }
.cp-cups { position: relative; width: min(100%, 360px); height: 110px; --ms: 400ms; }
.cp-cup { position: absolute; left: calc(var(--slot) * 33.3%); width: 33.3%; height: 100%; border: 0; background: none; cursor: pointer; transition: left var(--ms) ease-in-out; }
.cp-cup:disabled { cursor: default; }
.cp-hat { position: relative; z-index: 1; display: block; font-size: 3.4rem; transition: transform 0.35s; }
.cp-prize { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font-size: 1.6rem; opacity: 0; }
.cp-cup.has.lift .cp-prize { opacity: 1; }
.cp-cup.lift .cp-hat { transform: translateY(-40px) rotate(-10deg); }
.cp-cup:not(:disabled):hover .cp-hat { transform: translateY(-6px); }
/* Grattage */
.sc-wrap { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 16px; align-items: start; }
.sc-ticket { padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #451a03; box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.sc-ticket.free { background: linear-gradient(135deg, #a7f3d0, #10b981); color: #052e16; }
.sct-title { font-weight: 900; margin-bottom: 8px; }
.sct-title small { display: block; font-weight: 600; opacity: 0.8; }
.sc-area { position: relative; border-radius: 10px; overflow: hidden; }
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; }
.sc-grid span { display: grid; place-items: center; height: 72px; font-size: 2rem; border: 1px solid #f1f5f9; }
.sc-foil { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.sc-foot { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-empty { text-align: center; padding: 20px; }
.sc-prizes ul { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; display: grid; gap: 4px; }
@media (max-width: 640px) { .sc-wrap { grid-template-columns: 1fr; } }
/* Comptoir des lots */
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.lt-item { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 12px; border-radius: 14px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); }
.lt-item.owned { opacity: 0.6; }
.lt-icon { font-size: 2rem; }
/* Cosmetiques du casino et de la machine a pinces */
.decor-frame-casino { box-shadow: 0 0 0 3px #f59e0b, 0 0 0 5px #db2777, 0 0 16px rgba(219,39,119,0.7); }
.decor-color-casino { color: #fbbf24 !important; text-shadow: 0 0 8px rgba(251,191,36,0.6); }
.decor-frame-peluche { box-shadow: 0 0 0 3px #f9a8d4, 0 0 0 6px #fbcfe8, 0 0 12px rgba(244,114,182,0.5); }
.decor-color-bonbon { background: linear-gradient(90deg, #f472b6, #a78bfa, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

/* Cosmetiques, 25 octobre : animations des styles de l'editeur, boutique revue */
@keyframes decorPulse { 50% { filter: brightness(1.35) saturate(1.2); } }
@keyframes decorHue { to { filter: hue-rotate(360deg); } }
@keyframes decorShine { to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { [class*="decor-"] { animation: none !important; } }
.shop-item { position: relative; }
.shop-tag { position: absolute; top: 6px; right: 6px; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; padding: 2px 6px; border-radius: 99px; background: #22c55e; color: #052e16; }
.shop-tag.saison { background: #f97316; color: #fff; }
.shop-tag.limite { background: #e11d48; color: #fff; }
.shop-desc { display: block; color: var(--text-dim); font-size: 0.72rem; text-align: center; }
.shop-sample[data-try] { cursor: pointer; }
.shop-count { color: var(--text-dim); font-weight: 600; }
.shop-tryon { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #fbbf24; }
.cosm-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 16px; align-items: start; }
.cosm-list { max-height: 520px; overflow: auto; }
.cosm-list table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.cosm-list td, .cosm-list th { padding: 5px 6px; border-bottom: 1px solid var(--border-soft); text-align: left; }
.cosm-list tr.hidden-item td { opacity: 0.5; }
.cosm-form { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); }
.cosm-form label { display: grid; gap: 3px; font-size: 0.78rem; font-weight: 700; }
.cosm-form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.cosm-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg); }
@media (max-width: 860px) { .cosm-editor { grid-template-columns: 1fr; } }

/* Archeologie en deux etapes, 26 octobre : extraction puis atelier de nettoyage */
.ar-modes { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); }
.ar-mode { border: 0; background: transparent; color: var(--text); padding: 7px 14px; border-radius: 99px; font-weight: 700; cursor: pointer; }
.ar-mode.on { background: linear-gradient(135deg, #a16207, #d6b98c); color: #1c1306; }
.ar-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 0.72rem; }
.ar-empty { text-align: center; padding: 18px; display: grid; gap: 12px; justify-items: center; color: var(--text-dim); }
.ar-strokes { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; margin: 0 0 10px; }
.ar-block { grid-column: calc(var(--x) + 1) / span var(--cw); grid-row: calc(var(--y) + 1) / span var(--ch); display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 35% 30%, #a8a29e, #57534e 70%); box-shadow: inset 0 -4px 0 rgba(0,0,0,0.3), 0 0 0 2px rgba(253,230,138,0.7); animation: arFound 0.45s ease-out; }
.ar-block span { font-weight: 900; color: #fde68a; font-size: 1.3rem; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
.ar-block.scratched { box-shadow: inset 0 -4px 0 rgba(0,0,0,0.3), 0 0 0 2px #fb923c; }
.ar-block.cracked { box-shadow: inset 0 -4px 0 rgba(0,0,0,0.3), 0 0 0 2px #ef4444; background: repeating-linear-gradient(35deg, transparent 0 9px, rgba(0,0,0,0.4) 9px 10px), radial-gradient(circle at 35% 30%, #a8a29e, #57534e 70%); }
.ar-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 10px; }
.ar-rock { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--border-soft); background: var(--bg-panel-2); color: var(--text); cursor: pointer; transition: transform 0.15s, border-color 0.15s; }
.ar-rock:hover { transform: translateY(-3px); border-color: #d6b98c; }
.ar-rock small { font-weight: 700; font-size: 0.75rem; }
.ar-rock em { font-style: normal; font-size: 0.68rem; color: var(--text-dim); }
.ar-rock-stone { width: calc(34px + var(--s) * 10px); aspect-ratio: 1.15; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: radial-gradient(circle at 32% 28%, #d6d3d1, #78716c 55%, #44403c); box-shadow: inset -6px -8px 0 rgba(0,0,0,0.25), 0 6px 10px rgba(0,0,0,0.35); }
.ar-rock.shiny .ar-rock-stone { box-shadow: inset -6px -8px 0 rgba(0,0,0,0.25), 0 6px 10px rgba(0,0,0,0.35), 0 0 16px rgba(253,224,71,0.55); animation: arGlint 2.4s ease-in-out infinite; }
.ar-rock.cracked .ar-rock-stone, .ar-rock.broken .ar-rock-stone { background: repeating-linear-gradient(40deg, transparent 0 8px, rgba(0,0,0,0.45) 8px 9px), radial-gradient(circle at 32% 28%, #d6d3d1, #78716c 55%, #44403c); }
.ar-work-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.85rem; }
.ar-state { font-weight: 800; padding: 3px 10px; border-radius: 99px; background: rgba(52,211,153,0.15); color: #34d399; }
.ar-state.scratched { background: rgba(251,146,60,0.15); color: #fb923c; }
.ar-state.cracked, .ar-state.broken { background: rgba(239,68,68,0.15); color: #f87171; }
.ar-stone { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; padding: 12px; border-radius: 40% 46% 38% 44% / 42% 38% 46% 40%; background: radial-gradient(circle at 40% 35%, #57534e, #292524 75%); box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 12px 30px -10px rgba(0,0,0,0.7); touch-action: none; user-select: none; overflow: hidden; }
.ar-stone-art { position: absolute; inset: 18%; display: grid; place-items: center; }
.ar-stone-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
.ar-stone-art span { font-size: 5rem; }
.ar-stone-art.cracked img, .ar-stone-art.broken img { filter: grayscale(0.5) brightness(0.85) drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
.ar-stone-art.broken { opacity: 0.6; }
.ar-crust { position: relative; z-index: 1; height: 100%; gap: 0; }
.ar-crust .ar-cell { aspect-ratio: auto; border-radius: 3px; }
.ar-crust .ar-cell.l3 { background: #57534e; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25), inset 0 0 0 1px rgba(0,0,0,0.08); }
.ar-crust .ar-cell.l2 { background: #78716c; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2); }
.ar-crust .ar-cell.l1 { background: rgba(168,162,158,0.82); box-shadow: inset 0 -1px 0 rgba(0,0,0,0.15); }
.ar-crust .ar-cell.bare { background: transparent; box-shadow: none; }
.ar-stone.freed .ar-crust { opacity: 0; transition: opacity 0.5s; }
.ar-stone.freed .ar-stone-art { animation: arFreed 0.7s ease-out; }
@keyframes arFreed { 50% { transform: scale(1.12); filter: brightness(1.5); } }
.ar-hint { text-align: center; font-size: 0.78rem; }
.ar-freed { padding: 14px; border-radius: 16px; background: radial-gradient(circle at 50% 30%, rgba(253,230,138,0.18), transparent 70%); margin-bottom: 12px; }
.ar-freed-art { width: 96px; height: 96px; display: grid; place-items: center; }
.ar-freed-art img { width: 100%; height: 100%; object-fit: contain; }
.ar-freed-art span { font-size: 3.6rem; }
.ar-freed.broken { background: radial-gradient(circle at 50% 30%, rgba(239,68,68,0.14), transparent 70%); }
.shake { animation: arShake 0.35s; }
@keyframes arShake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

/* Tendresse, affichage discret (26 octobre) : pastille, anneau, boutons ronds */
.pet-chip { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 0.75rem; font-weight: 800; background: rgba(244,114,182,0.14); color: #f9a8d4; cursor: help; vertical-align: middle; }
.pet-chip small { font-weight: 700; color: var(--text-dim); font-size: 0.68rem; }
.pet-chip-heart { font-size: 0.8rem; }
.pet-loved { position: relative; }
.pet-loved::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; pointer-events: none; background: conic-gradient(#f472b6 calc(var(--love, 0) * 1%), rgba(244,114,182,0.12) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.pet-acts { display: flex; gap: 6px; justify-content: center; }
.pet-act { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-panel-2); font-size: 1.05rem; cursor: pointer; display: grid; place-items: center; padding: 0; transition: transform 0.15s, border-color 0.15s; }
.pet-act:not(:disabled):hover { transform: translateY(-2px) scale(1.06); border-color: #f472b6; }
.pet-act:disabled { opacity: 0.38; cursor: default; filter: grayscale(0.6); }
.pet-ready { position: absolute; top: 1px; right: 1px; width: 8px; height: 8px; border-radius: 50%; background: #f472b6; box-shadow: 0 0 6px #f472b6; }

/* Fouille rangee comme la peche (26 octobre) : raccourcis boutique au-dessus du chenil, puis le terrain */
#dig-pane > .dig-shop { margin: 0 0 10px; }
.dig-ground { margin-top: 14px; }
.dig-ground > .dig-bag { margin: 10px 0 12px; }
.dig-ground > .dig-all-btn { margin: 0 0 12px; }

/* ===================================================================== */
/* Salle interdite, refonte du 26 octobre : velours, laiton et neon.       */
/* Tout est limite a body.forbidden-page (pose par js/forbidden.js).      */
/* ===================================================================== */
body.forbidden-page {
  --fx-velvet: #1a0609; --fx-velvet-2: #2a0b10; --fx-brass: #d4a94a; --fx-brass-2: #f5d98a; --fx-neon: #ff3d7f; --fx-neon-2: #2ee6d6;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 61, 127, 0.16), transparent 60%),
    repeating-linear-gradient(90deg, rgba(212, 169, 74, 0.035) 0 2px, transparent 2px 46px),
    radial-gradient(ellipse at 50% 30%, #2a0b10, #12040a 55%, #070205);
  background-attachment: fixed;
}
body.forbidden-page .fd-panel { background: linear-gradient(180deg, rgba(42, 11, 16, 0.9), rgba(18, 4, 8, 0.94)); border: 1px solid rgba(212, 169, 74, 0.35); box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 30px 80px -30px rgba(0,0,0,0.9), inset 0 1px 0 rgba(245, 217, 138, 0.12); position: relative; }
/* Coins art deco */
body.forbidden-page .fd-panel::before, body.forbidden-page .fd-panel::after { content: ""; position: absolute; width: 46px; height: 46px; border: 2px solid var(--fx-brass); opacity: 0.55; pointer-events: none; }
body.forbidden-page .fd-panel::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
body.forbidden-page .fd-panel::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }

/* --- Hall : enseigne, portefeuille, stands */
body.forbidden-page .cz { margin: 0 0 18px; padding: 0; border: 0; }
.cz-hall { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.cz-sign { display: inline-flex; flex-direction: column; align-items: center; padding: 8px 22px 10px; border-radius: 14px; border: 2px solid var(--fx-neon); box-shadow: 0 0 12px var(--fx-neon), inset 0 0 12px rgba(255, 61, 127, 0.5); background: rgba(10, 2, 6, 0.7); animation: czFlicker 6s infinite; }
.cz-sign span { font: 0.7rem/1 Bungee, var(--font-display, sans-serif); letter-spacing: 0.5em; color: var(--fx-neon-2); text-shadow: 0 0 6px var(--fx-neon-2); }
.cz-sign strong { font: 1.6rem/1.1 Monoton, Bungee, var(--font-display, sans-serif); color: #ffd1e1; letter-spacing: 0.08em; text-shadow: 0 0 6px var(--fx-neon), 0 0 18px var(--fx-neon), 0 0 34px rgba(255, 61, 127, 0.6); }
@keyframes czFlicker { 0%, 90%, 100% { opacity: 1; } 91% { opacity: 0.55; } 92% { opacity: 1; } 94% { opacity: 0.7; } 95% { opacity: 1; } }
body.forbidden-page .cz-wallet { gap: 6px; }
body.forbidden-page .cz-chip, body.forbidden-page .cz-vip { background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(212, 169, 74, 0.35); color: #fde9c0; font-variant-numeric: tabular-nums; }
body.forbidden-page .cz-chip.gold { border-color: var(--fx-brass); box-shadow: 0 0 10px -2px rgba(212, 169, 74, 0.6); }
body.forbidden-page .cz-cashier { background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(212, 169, 74, 0.45); }
#fd-room[data-booth="machine"] #cz-game { display: none; }

/* --- Tables de jeu : meme cadre de laiton pour toutes */
body.forbidden-page .cz-game { min-height: 300px; }
.cz-table { padding: 16px; border-radius: 22px; border: 2px solid var(--fx-brass); box-shadow: 0 0 0 5px rgba(0,0,0,0.55), 0 0 0 6px rgba(212, 169, 74, 0.35), 0 30px 60px -30px rgba(0,0,0,0.9); background: radial-gradient(ellipse at 50% 20%, #3a0d18, #14040a 75%); }
body.forbidden-page .bj-table { border-color: var(--fx-brass); box-shadow: 0 0 0 5px rgba(0,0,0,0.55), 0 0 0 6px rgba(212, 169, 74, 0.35); }
.cz-help { text-align: center; font-size: 0.8rem; color: rgba(253, 233, 192, 0.65); margin: 10px 0 0; }
body.forbidden-page .fm-side .fm-panel { background: rgba(0, 0, 0, 0.4); border-color: rgba(212, 169, 74, 0.3); }
body.forbidden-page .fm-side .fm-panel h3 { color: var(--fx-brass-2); }
/* Payer la machine en jetons */
.fm-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 0.78rem; color: rgba(253, 233, 192, 0.7); }

/* --- Chamboule-tout (lance-pierre) */
.cn-table .cn-stage { position: relative; height: 380px; border-radius: 16px; overflow: hidden; touch-action: none; user-select: none; background: linear-gradient(180deg, #0d1b2a 0%, #1b2a40 72%, #6b3410 72%, #4a230b 100%); box-shadow: inset 0 0 0 2px rgba(212, 169, 74, 0.3); }
.cn-table .cn-stage::before { content: ""; position: absolute; inset: 0 0 28% 0; background: repeating-linear-gradient(90deg, rgba(255, 61, 127, 0.18) 0 28px, rgba(46, 230, 214, 0.12) 28px 56px); opacity: 0.35; }
.cn-shelf { position: absolute; left: 50%; top: 72%; width: 300px; height: 12px; margin-left: -150px; border-radius: 4px; background: linear-gradient(#a16207, #6b3410); box-shadow: 0 6px 10px rgba(0,0,0,0.5); }
.cn-table .cn-pyramid { position: absolute; left: 50%; bottom: auto; top: 72%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cn-table .cn-row { display: flex; gap: 6px; margin: 0; }
.cn-table .cn-can { position: relative; width: 52px; height: 58px; border-radius: 8px 8px 5px 5px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, #000), var(--c) 45%, color-mix(in srgb, var(--c) 80%, #fff) 55%, color-mix(in srgb, var(--c) 55%, #000)); box-shadow: inset 0 5px 0 rgba(255,255,255,0.35), inset 0 -5px 0 rgba(0,0,0,0.35), 0 3px 4px rgba(0,0,0,0.4); display: grid; place-items: center; transition: transform 0.7s cubic-bezier(.3,.6,.4,1), opacity 0.7s; }
.cn-table .cn-can i { font-style: normal; font: 0.8rem/1 Bungee, sans-serif; color: rgba(255,255,255,0.9); text-shadow: 0 1px 2px rgba(0,0,0,0.7); }
.cn-table .cn-can.down { opacity: 0; transform: translate(var(--fx, 0px), 70px) rotate(var(--spin, 80deg)); }
.cn-table .cn-can.hit { opacity: 0; }
.cn-table .cn-ball { position: absolute; left: 50%; bottom: 7%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e5e7eb 35%, #9ca3af 80%); box-shadow: 0 4px 8px rgba(0,0,0,0.5); z-index: 3; animation: none; }
.cn-table .cn-ball.ready { cursor: grab; box-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 0 0 0 rgba(245, 217, 138, 0.7); animation: cnPulse 1.6s infinite; }
.cn-table .cn-ball.held { cursor: grabbing; animation: none; }
@keyframes cnPulse { 70% { box-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 0 0 14px rgba(245, 217, 138, 0); } }
.cn-band { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.cn-band line { stroke: #f5d98a; stroke-width: 4; stroke-linecap: round; opacity: 0.85; }
.cn-aim { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px dashed var(--fx-neon-2); box-shadow: 0 0 10px var(--fx-neon-2); pointer-events: none; z-index: 2; }
.cn-aim.miss { border-color: #ef4444; box-shadow: 0 0 10px #ef4444; }
.cn-balls { position: absolute; left: 12px; bottom: 10px; font-size: 1.1rem; letter-spacing: 2px; z-index: 3; }
.cn-power { position: absolute; right: 12px; bottom: 14px; width: 120px; height: 10px; border-radius: 99px; background: rgba(0,0,0,0.5); overflow: hidden; z-index: 3; }
.cn-power > span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #fbbf24 60%, #ef4444); }
.cn-power.over > span { background: #ef4444; }
.cn-table .cn-legend { color: rgba(253, 233, 192, 0.75); }

/* --- Machine a pinces (vue de cote) */
.cl-machine { max-width: 520px; margin: 0 auto; padding: 12px; border-radius: 24px 24px 14px 14px; background: linear-gradient(180deg, #db2777, #9d174d 60%, #500724); box-shadow: inset 0 0 0 3px rgba(255,255,255,0.2), 0 20px 40px -20px rgba(0,0,0,0.8); }
.cl-marquee { text-align: center; font: 1rem/1.6 Bungee, sans-serif; color: #fff5fb; letter-spacing: 0.2em; text-shadow: 0 0 8px #fff, 0 0 18px var(--fx-neon); }
.cl-table .cl-glass { position: relative; height: 320px; border-radius: 12px; overflow: hidden; cursor: crosshair; background: linear-gradient(180deg, rgba(186, 230, 253, 0.18), rgba(167, 139, 250, 0.12) 55%, rgba(244, 114, 182, 0.18)), #1a0610; border: 4px solid #fbcfe8; box-shadow: inset 0 0 40px rgba(0,0,0,0.5); outline: none; }
/* Mobile (2026-10-28) : promener la pince au doigt ne fait ni defiler ni recharger la salle. */
.cl-glass { touch-action: none; user-select: none; }
.pk-drop, .cn-table .cn-ball { touch-action: none; user-select: none; -webkit-user-select: none; }
.cl-table .cl-glass:focus-visible { box-shadow: inset 0 0 40px rgba(0,0,0,0.5), 0 0 0 3px var(--fx-neon-2); }
.cl-table .cl-glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0.14) 0 18%, transparent 30%); pointer-events: none; }
.cl-rail { position: absolute; left: 0; right: 0; top: 0; height: 10px; background: linear-gradient(#9ca3af, #4b5563); z-index: 3; }
.cl-table .cl-claw { position: absolute; left: calc(var(--x) * 100%); top: 8px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 4; transition: left 0.12s ease-out; pointer-events: none; }
.cl-table .cl-rope { width: 3px; height: 8px; background: linear-gradient(#e5e7eb, #9ca3af); }
.cl-table .cl-head { position: relative; width: 34px; height: 22px; border-radius: 10px 10px 4px 4px; background: linear-gradient(#e5e7eb, #6b7280); box-shadow: 0 2px 4px rgba(0,0,0,0.5); transform: none; font-size: 0; }
.cl-head i { position: absolute; top: 14px; width: 6px; height: 26px; border-radius: 3px; background: linear-gradient(#d1d5db, #6b7280); transform-origin: top center; transition: transform 0.25s; }
.cl-head i.l { left: 2px; transform: rotate(28deg); }
.cl-head i.r { right: 2px; transform: rotate(-28deg); }
.cl-claw.closed .cl-head i.l { transform: rotate(6deg); }
.cl-claw.closed .cl-head i.r { transform: rotate(-6deg); }
.cl-shadow { position: absolute; left: calc(var(--x) * 100%); top: 10px; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(transparent 0 6px, rgba(46, 230, 214, 0.45) 6px 10px); z-index: 1; pointer-events: none; transition: left 0.12s ease-out; }
.cl-table .cl-cap { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: 1.1rem; z-index: 2; }
.cl-table .cl-cap.held { z-index: 5; }
.cl-chute { position: absolute; right: 0; bottom: 0; width: 16%; height: 30%; display: grid; place-items: end center; padding-bottom: 6px; font: 0.6rem/1 Bungee, sans-serif; color: #fff; letter-spacing: 0.1em; background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.6)); border-left: 3px solid #fbcfe8; border-top: 3px solid #fbcfe8; border-radius: 8px 0 0 0; z-index: 3; }
.cl-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.cl-table .cl-legend { margin: 0; color: #fff5fb; }

@media (max-width: 640px) {
  .cz-sign strong { font-size: 1.25rem; }
    .cn-table .cn-can { width: 40px; height: 46px; }
  .cn-shelf { width: 232px; margin-left: -116px; }
  .cl-table .cl-glass { height: 260px; }
}
.ar-cell.echo::after { content: ""; position: absolute; inset: 35%; border-radius: 50%; background: radial-gradient(circle, rgba(253,230,138,0.55), transparent 70%); animation: arGlint 2.6s ease-in-out infinite; }

/* Fatigue de Milo et Moka (26 octobre) */
.pet-work { color: #86efac; }
.pet-work.idle { color: var(--text-dim); }
.pet-fatigue { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.75rem; color: var(--text-dim); }
[data-working="0"] .pet-fatigue { display: none; }
.pet-fatigue-bar { flex: 0 1 140px; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.pet-fatigue-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #fbbf24 70%, #f97316); transition: width 0.6s; }
.pet-fatigue.resting { color: #93c5fd; }
.pet-fatigue.resting .pet-fatigue-bar > span { background: linear-gradient(90deg, #60a5fa, #a5b4fc); }

/* Salle interdite, 26 octobre (2) : la machine au centre, des portes vers des
   salles plein ecran construites comme la page Jeux, ampoules et neons. */
@keyframes czBulb { 0%, 100% { opacity: 1; box-shadow: 0 0 8px 2px rgba(253, 224, 71, 0.9); } 50% { opacity: 0.25; box-shadow: none; } }
.cz-bulbs { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.cz-bulbs i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fde047; animation: czBulb 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.15s); }
/* Ampoules reparties sur le haut et le bas du cadre. */
.cz-bulbs i:nth-child(odd) { top: 6px; left: calc((var(--i) / 2) * 6.4% + 2%); }
.cz-bulbs i:nth-child(even) { bottom: 6px; left: calc(((var(--i) - 1) / 2) * 6.4% + 2%); animation-delay: calc(var(--i) * -0.15s - 0.6s); }
@media (prefers-reduced-motion: reduce) { .cz-bulbs i, .cz-sign { animation: none !important; } }

/* Les portes sous la machine */
.cz-doors { position: relative; margin: 22px 0 0; padding: 26px 18px 30px; border-radius: 22px; border: 2px solid var(--fx-neon, #ff3d7f); box-shadow: 0 0 18px -4px var(--fx-neon, #ff3d7f), inset 0 0 30px rgba(255, 61, 127, 0.12); background: rgba(10, 2, 6, 0.55); }
.cz-doors-title { margin: 0 0 14px; text-align: center; font: 1.1rem/1.2 Bungee, var(--font-display, sans-serif); letter-spacing: 0.08em; color: #ffd1e1; text-shadow: 0 0 6px var(--fx-neon, #ff3d7f), 0 0 16px var(--fx-neon, #ff3d7f); }
.cz-door-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.cz-door { position: relative; display: grid; justify-items: center; gap: 3px; padding: 14px 8px 12px; border-radius: 60px 60px 14px 14px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel-solid, #15172e)); color: var(--text); cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; font: inherit; }
.cz-door:hover:not(.locked) { transform: translateY(-3px); border-color: var(--fx-neon-2, #2ee6d6); box-shadow: 0 0 0 1px var(--fx-neon-2, #2ee6d6), 0 0 22px -6px var(--fx-neon-2, #2ee6d6); }
.cz-door-ico { font-size: 1.9rem; line-height: 1.1; }
.cz-door strong { font-size: 0.85rem; }
.cz-door small { font-size: 0.7rem; color: var(--text-dim); }
.cz-door:not(.locked) small { color: var(--fx-neon-2, #2ee6d6); }
.cz-door.locked { opacity: 0.55; filter: grayscale(0.6); cursor: not-allowed; }

/* La salle plein ecran */
.cz-room { position: fixed; inset: 0; z-index: 1200; overflow-y: auto; overscroll-behavior: contain; padding: 24px 16px 40px;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 61, 127, 0.22), transparent 60%), radial-gradient(ellipse at 50% 30%, #2a0b10, #0b0207 70%); }
.cz-room[hidden] { display: none; }
html.cz-room-open, html.cz-room-open body { overflow: hidden; }
.cz-room > .cz-bulbs { position: fixed; inset: 0; border-radius: 0; z-index: 0; }
.cz-room-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; border: 2px solid var(--fx-neon, #ff3d7f); box-shadow: 0 0 24px -6px var(--fx-neon, #ff3d7f), 0 30px 80px -30px rgba(0,0,0,0.9); }
.cz-room-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cz-room-tabs { margin-bottom: 14px; }
.cz-room-tabs .tab.active { text-shadow: 0 0 8px var(--fx-neon, #ff3d7f); }
.cz-pane h2 { margin: 0 0 4px; }
.cz-room .cz-game { min-height: 320px; }
.cz-room .cz-wallet { gap: 6px; }
.cz-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.cz-chip.gold { border-color: rgba(251, 191, 36, 0.6); }

/* Choix (mise, vitesse) : les onglets du site */
.cz-choice { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; font-size: 0.85rem; color: var(--text-dim); }
.cz-choice .tabs { margin: 0; }
.cz-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.cz-room .cz-table { border-color: rgba(212, 169, 74, 0.7); }

/* Bouton « payer en » de la machine : meme style que les mises */
.fm-cur { min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid #7f1d1d; background: #1c0606; color: #fca5a5; font-weight: 800; cursor: pointer; }
.fm-cur.on { background: linear-gradient(180deg, #fbbf24, #b45309); color: #1c0a03; border-color: #fde68a; box-shadow: 0 0 12px -2px #fbbf24; }
@media (max-width: 640px) { .cz-room { padding: 10px 6px 30px; } .cz-door-grid { grid-template-columns: repeat(2, 1fr); } }
.cz-next { margin: 12px 0 0; text-align: center; font-size: 0.78rem; color: var(--text-dim); }

/* Archeologie, grattage libre (26 octobre) */
.ar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ar-toolbar .tabs { margin: 0; }
.ar-gauge { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-dim); }
.ar-gauge .ar-bar { width: 140px; height: 10px; }
.ar-pressure > span { display: block; height: 100%; width: 0; background: #22c55e; transition: width 0.08s, background 0.15s; }
.ar-pressure.amber > span { background: #f59e0b; }
.ar-pressure.red > span { background: #ef4444; }
.ar-pressure.hit { box-shadow: 0 0 0 2px #ef4444, 0 0 12px #ef4444; }
.ar-energy > span { display: block; height: 100%; background: linear-gradient(90deg, #a16207, #d6b98c); transition: width 0.15s; }
.ar-canvas { display: block; width: 100%; border-radius: 10px; touch-action: none; cursor: crosshair; }
.ar-slab .ar-canvas { box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15); }
.ar-stone .ar-canvas { height: 100%; border-radius: 40% 46% 38% 44% / 42% 38% 46% 40%; }
.ar-stone { padding: 10px; }
.ar-stone.freed .ar-canvas { animation: arFreed 0.7s ease-out; }
.ar-foot .ar-gauge strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* Pouvoirs des dinos (26 octobre) : actif ou en pause, avec la raison */
.dino-talent.on { color: #86efac; }
.dino-talent.off { color: var(--text-dim); }
.dino-talent em { font-style: normal; color: #fbbf24; }

/* Blackjack, finitions (26 octobre) */
.bj-table { position: relative; display: grid; gap: 10px; padding: 22px 16px 18px; border-radius: 160px 160px 26px 26px / 90px 90px 26px 26px; background: radial-gradient(ellipse at 50% 35%, #1f7a43, #0b3d20 70%, #072a16); border: 7px solid #6b3f17; box-shadow: inset 0 0 0 2px rgba(212, 169, 74, 0.6), inset 0 0 50px rgba(0,0,0,0.45), 0 18px 40px -18px rgba(0,0,0,0.8); text-align: center; color: #ecfccb; }
.bj-felt-text { font: 0.62rem/1 Bungee, sans-serif; letter-spacing: 0.16em; color: rgba(236, 252, 203, 0.35); }
.bj-row { display: grid; justify-items: center; gap: 4px; }
.bj-row small { opacity: 0.75; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.bj-hand { display: flex; justify-content: center; min-height: 96px; }
.bj-hand .bj-card + .bj-card { margin-left: -18px; }
.bj-card { position: relative; width: 66px; height: 94px; border-radius: 8px; background: linear-gradient(160deg, #ffffff, #f1f5f9); color: #111827; box-shadow: 0 6px 12px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(0,0,0,0.08); font-family: Georgia, serif; transform-style: preserve-3d; }
.bj-card.red { color: #b91c1c; }
.bj-corner { position: absolute; top: 4px; left: 5px; font-size: 0.78rem; font-weight: 700; line-height: 0.95; text-align: center; }
.bj-corner.br { top: auto; left: auto; bottom: 4px; right: 5px; transform: rotate(180deg); }
.bj-pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; }
.bj-card.back { background: #7f1d1d; }
.bj-back { position: absolute; inset: 4px; border-radius: 5px; border: 2px solid #fde68a; background: repeating-linear-gradient(45deg, #991b1b 0 5px, #7f1d1d 5px 10px); }
.bj-back::after { content: "2G"; position: absolute; inset: 0; display: grid; place-items: center; font: 1rem/1 Bungee, sans-serif; color: #fde68a; }
.bj-card.deal { animation: bjDeal2 0.45s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i) * 0.12s); }
@keyframes bjDeal2 { from { transform: translate(140px, -120px) rotate(25deg); opacity: 0; } }
.bj-total { display: inline-block; min-width: 42px; padding: 2px 10px; border-radius: 99px; background: rgba(0,0,0,0.45); font-weight: 800; font-variant-numeric: tabular-nums; }
.bj-total.best { background: #ca8a04; color: #1c1206; }
.bj-total.bust { background: #b91c1c; }
.bj-center { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 64px; }
/* Hauteur fixe sous la table (2026-10-30) : mise + Distribuer, boutons de la
   main et historique n'ont pas la meme hauteur ; la salle defilait d'un coup a
   chaque etat sur telephone. */
.bj-controls { min-height: 168px; display: grid; align-content: start; }
@media (max-width: 640px) { .bj-controls { min-height: 196px; } }
.bj-turn { font-weight: 800; color: #fde68a; }
.bj-banner { padding: 8px 18px; border-radius: 12px; font: 1.05rem/1.2 Bungee, sans-serif; letter-spacing: 0.04em; animation: bjPop 0.4s cubic-bezier(.2,1.6,.4,1); }
.bj-banner small { display: block; font: 700 0.85rem/1.3 var(--font-body, sans-serif); }
.bj-banner.win { background: linear-gradient(180deg, #fde047, #ca8a04); color: #1c1206; box-shadow: 0 0 24px rgba(253, 224, 71, 0.6); }
.bj-banner.push { background: #475569; color: #f8fafc; }
.bj-banner.lose { background: #7f1d1d; color: #fecaca; }
@keyframes bjPop { from { transform: scale(0.4); opacity: 0; } }
.bj-spot { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 2px dashed rgba(236, 252, 203, 0.45); display: grid; place-items: center; font-weight: 800; }
.bj-spot.on { border-style: solid; border-color: #fde68a; }
.bj-spot b { position: relative; z-index: 2; text-shadow: 0 1px 2px #000; }
.bj-chips { position: absolute; inset: 0; }
.bj-chips i { position: absolute; left: 50%; top: 50%; width: 40px; height: 12px; margin: -6px 0 0 -20px; border-radius: 50%; background: var(--c); border: 2px dashed rgba(255,255,255,0.7); transform: translateY(calc(var(--k) * -4px + 8px)); box-shadow: 0 2px 0 rgba(0,0,0,0.4); }
.cz-history { text-align: center; font-size: 0.78rem; color: var(--text-dim); }
.cz-history span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 2px; border-radius: 50%; font-weight: 800; font-size: 0.68rem; color: #fff; background: #475569; }
.cz-history span.win { background: #16a34a; } .cz-history span.lose { background: #b91c1c; }

/* Roulette, finitions (26 octobre) */
.rl-layout { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 18px; align-items: center; margin-bottom: 12px; }
.rl-wheel-wrap { position: relative; aspect-ratio: 1; }
.rl-wheel { position: absolute; inset: 0; border-radius: 50%; background: none !important; border: 0; box-shadow: 0 12px 30px rgba(0,0,0,0.6), 0 0 0 6px #3b240e, 0 0 0 8px #d4a94a; }
.rl-svg { width: 100%; height: 100%; display: block; }
.rl-n { font: 700 3.1px/1 Inter, sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: middle; }
.rl-ball-track { position: absolute; inset: 6%; pointer-events: none; }
.rl-ball { position: absolute; left: 50%; top: 0; width: 7%; height: 7%; margin-left: -3.5%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d1d5db 60%, #6b7280); box-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.rl-ball-track.landed .rl-ball { top: 10%; transition: top 0.3s ease-in; }
.rl-pointer { top: -14px; text-shadow: 0 0 8px #fbbf24; }
.rl-center { inset: 36%; opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.3s cubic-bezier(.2,1.6,.4,1); pointer-events: none; }
.rl-center.show { opacity: 1; transform: none; }
.rl-side { display: grid; gap: 8px; }
.rl-hist { display: flex; flex-wrap: wrap; gap: 4px; min-height: 26px; align-items: center; }
.rl-hist span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 0.75rem; color: #fff; }
.rl-hist span:first-child { box-shadow: 0 0 0 2px #fde68a; }
.rl-hist .red { background: #b91c1c; } .rl-hist .black { background: #111827; border: 1px solid #374151; } .rl-hist .green { background: #15803d; }
.rl-felt { padding: 12px; border-radius: 16px; background: radial-gradient(ellipse at 50% 30%, #1f7a43, #0b3d20 80%); border: 5px solid #6b3f17; box-shadow: inset 0 0 0 2px rgba(212,169,74,0.5); display: grid; gap: 6px; }
.rl-grid { display: grid; grid-template-columns: 0.8fr repeat(12, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; }
.rl-zero { grid-row: 1 / span 3; grid-column: 1; }
.rl-felt .rl-num { position: relative; min-height: 38px; padding: 0; border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; color: #fff; font-weight: 800; cursor: pointer; transition: transform 0.1s, filter 0.1s; }
.rl-felt .rl-num:hover, .rl-felt .rl-spot:hover { filter: brightness(1.25); }
.rl-felt .rl-num.red { background: #b91c1c; } .rl-felt .rl-num.black { background: #111827; } .rl-felt .rl-num.green { background: #15803d; }
.rl-dozens, .rl-outside { display: grid; gap: 3px; }
.rl-dozens { grid-template-columns: repeat(3, 1fr); margin-left: calc(100% * 0.8 / 12.8); }
.rl-outside { grid-template-columns: repeat(6, 1fr); margin-left: calc(100% * 0.8 / 12.8); }
.rl-felt .rl-spot { position: relative; min-height: 36px; padding: 4px; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; background: transparent; color: #ecfccb; font-weight: 800; font-size: 0.78rem; cursor: pointer; }
.rl-felt .rl-spot small { opacity: 0.7; font-weight: 600; }
.rl-diamond { display: inline-block; width: 14px; height: 14px; transform: rotate(45deg); vertical-align: -2px; }
.rl-diamond.red { background: #dc2626; } .rl-diamond.black { background: #111827; border: 1px solid #9ca3af; }
.rl-chip { position: absolute; right: -4px; top: -6px; z-index: 2; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 50%; display: grid; place-items: center; font: 800 0.62rem/1 Inter, sans-serif; color: #1c1206; background: radial-gradient(circle, #fde68a 55%, #ca8a04 56%); border: 2px dashed #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.5); animation: bjPop 0.25s ease-out; }
@media (max-width: 760px) {
  .rl-layout { grid-template-columns: 1fr; }
  .rl-wheel-wrap { max-width: 240px; margin: 0 auto; width: 100%; }
  .rl-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; grid-auto-flow: row; }
  .rl-zero { grid-row: auto; grid-column: 1 / -1; }
  .rl-dozens, .rl-outside { margin-left: 0; }
  .rl-outside { grid-template-columns: repeat(3, 1fr); }
}

/* Plinko, finitions (26 octobre) */
.pk-board { position: relative; height: 420px; max-width: 520px; margin: 0 auto; border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.35), transparent 60%), linear-gradient(180deg, #1e1b4b, #120f2e); border: 3px solid #a78bfa; box-shadow: 0 0 24px -6px #a78bfa, inset 0 0 30px rgba(0,0,0,0.5); }
.pk-drop { position: absolute; inset: 0 0 auto 0; height: 10%; cursor: pointer; background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent); z-index: 3; }
.pk-aim { position: absolute; top: 18%; transform: translateX(-50%); color: #fde68a; text-shadow: 0 0 8px #fde68a; font-size: 1.1rem; transition: left 0.05s; pointer-events: none; }
.pk-peg { position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c4b5fd 60%, #7c3aed); box-shadow: 0 0 6px rgba(196, 181, 253, 0.7); }
.pk-peg.hit { animation: pkHit 0.35s ease-out; }
@keyframes pkHit { 40% { transform: scale(1.8); box-shadow: 0 0 16px #fde68a; background: #fde68a; } }
.pk-ball { position: absolute; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #fde68a 45%, #f59e0b); box-shadow: 0 0 10px rgba(253, 224, 71, 0.9); z-index: 2; transition: none; }
.pk-bins { left: 5%; right: 5%; display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; padding: 0 0 6px; }
.pk-bin { background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); font-size: 0.72rem; padding: 8px 0; border-radius: 6px 6px 8px 8px; }
.pk-bin.lit { animation: pkLit2 0.9s; }
@keyframes pkLit2 { 30% { transform: translateY(-8px) scale(1.08); filter: brightness(1.7); box-shadow: 0 0 18px var(--c); } }

/* Bonneteau, finitions (26 octobre) */
.cp-stage { padding: 18px 16px 26px; border-radius: 20px; background: radial-gradient(ellipse at 50% 85%, #8b1a1a, #3b0a0a 65%, #1c0505); border: 4px solid #6b3f17; box-shadow: inset 0 0 0 2px rgba(212,169,74,0.5); }
.cp-host { display: flex; align-items: flex-end; justify-content: center; gap: 10px; min-height: 64px; }
.cp-mascot { font-size: 3rem; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }
.cp-bubble { position: relative; max-width: 360px; padding: 8px 12px; border-radius: 14px; background: #fff7ed; color: #431407; font-size: 0.82rem; font-weight: 700; }
.cp-bubble::before { content: ""; position: absolute; left: -7px; bottom: 10px; border: 7px solid transparent; border-right-color: #fff7ed; border-left: 0; }
.cp-bubble.pop { animation: bjPop 0.3s ease-out; }
.cp-cups { position: relative; width: min(100%, 420px); height: 150px; margin: 14px auto 0; --ms: 400ms; }
.cp-cup { position: absolute; bottom: 0; left: calc(var(--slot) * 33.3%); width: 33.3%; height: 130px; border: 0; background: none; padding: 0; cursor: pointer; transition: left var(--ms) ease-in-out, transform var(--ms) ease-in-out; }
.cp-cup.front { z-index: 3; transform: translateY(18px) scale(1.08); }
.cp-cup.back { z-index: 1; transform: translateY(-14px) scale(0.92); filter: brightness(0.8); }
.cp-cup:disabled { cursor: default; }
.cp-hat { position: absolute; left: 50%; bottom: 10px; width: 92px; height: 104px; margin-left: -46px; z-index: 2; transition: transform 0.4s cubic-bezier(.3,1.4,.5,1); }
.cp-hat .crown { position: absolute; left: 14px; right: 14px; top: 0; bottom: 16px; border-radius: 10px 10px 4px 4px; background: linear-gradient(90deg, #1f2937, #4b5563 45%, #111827); box-shadow: inset 0 -6px 10px rgba(0,0,0,0.4); }
.cp-hat .band { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 16px; background: linear-gradient(90deg, #991b1b, #dc2626 45%, #7f1d1d); box-shadow: inset 0 2px 0 rgba(255,255,255,0.25); }
.cp-hat .brim { position: absolute; left: 0; right: 0; bottom: 6px; height: 14px; border-radius: 50%; background: linear-gradient(180deg, #4b5563, #111827); box-shadow: 0 4px 6px rgba(0,0,0,0.5); }
.cp-shadow { position: absolute; left: 50%; bottom: 2px; width: 100px; height: 14px; margin-left: -50px; border-radius: 50%; background: rgba(0,0,0,0.45); filter: blur(2px); }
.cp-prize { position: absolute; left: 50%; bottom: 12px; width: 52px; margin-left: -26px; z-index: 1; opacity: 0; transition: opacity 0.2s; }
.cp-prize img { width: 100%; filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.8)); }
.cp-cup.has.lift .cp-prize { opacity: 1; }
.cp-cup.lift .cp-hat { transform: translateY(-62px) rotate(-12deg); }
.cp-cup.empty .cp-hat { transform: translateY(-48px) rotate(10deg); }
.cp-cup:not(:disabled):hover .cp-hat { transform: translateY(-8px); }

/* Ticket a gratter, finitions (26 octobre) */
.sc-ticket { position: relative; padding: 16px; border-radius: 18px; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 10px, transparent 10px 20px), linear-gradient(135deg, #fde047, #f59e0b 60%, #d97706); color: #451a03; box-shadow: 0 12px 28px rgba(0,0,0,0.45), inset 0 0 0 3px rgba(255,255,255,0.45); }
.sc-ticket::before, .sc-ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg, #0b0207); }
.sc-ticket::before { left: -11px; } .sc-ticket::after { right: -11px; }
.sc-ticket.free { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 10px, transparent 10px 20px), linear-gradient(135deg, #6ee7b7, #10b981 60%, #047857); color: #022c22; }
.sct-title span { display: block; font: 1.25rem/1.1 Bungee, sans-serif; letter-spacing: 0.06em; text-shadow: 0 2px 0 rgba(255,255,255,0.4); }
.sct-title small { display: block; margin-top: 2px; font-weight: 700; opacity: 0.85; }
.sc-area { border-radius: 12px; box-shadow: inset 0 0 0 3px rgba(0,0,0,0.15); }
.sc-grid { gap: 6px; padding: 8px; background: #fffbeb; }
.sc-grid span { height: 76px; border: 0; border-radius: 50%; background: radial-gradient(circle, #fff, #fef3c7); box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08); font-size: 2.2rem; transition: transform 0.3s, box-shadow 0.3s; }
.sc-area.revealed .sc-grid span.win { box-shadow: 0 0 0 3px #f59e0b, 0 0 18px rgba(245, 158, 11, 0.8); transform: scale(1.06); animation: scWin 1.2s ease-in-out infinite alternate; }
@keyframes scWin { to { transform: scale(1.12); } }
.sc-foil { cursor: grab; }
.sc-foil:active { cursor: grabbing; }
.sc-foot { justify-content: space-between; }
.sc-won { font-size: 1.05rem; }
.sc-flake { position: fixed; z-index: 9999; width: 5px; height: 5px; border-radius: 1px; background: #d1d5db; pointer-events: none; animation: arDust 0.6s ease-out forwards; }
.sc-empty-ticket .sc-empty { display: grid; gap: 6px; justify-items: center; padding: 26px 10px; }
.sc-prizes { padding: 14px; border-radius: 14px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); }
.sc-prizes h4 { margin: 0 0 8px; }
.sc-trio { letter-spacing: 1px; margin-right: 6px; }

/* Comptoir des lots, finitions (26 octobre) */
.lt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.lt-wallet { padding: 6px 14px; border-radius: 99px; background: rgba(236, 72, 153, 0.15); border: 1px solid rgba(236, 72, 153, 0.5); font-size: 1rem; }
.lt-item { position: relative; overflow: hidden; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.lt-item.can { border-color: rgba(253, 224, 71, 0.6); box-shadow: 0 0 18px -8px #fde047; }
.lt-item.can:hover { transform: translateY(-3px); }
.lt-icon { font-size: 2.4rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4)); }
.lt-bar { width: 100%; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.lt-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #ec4899, #fde047); }
.lt-item small { color: var(--text-dim); font-size: 0.72rem; }
.lt-owned { color: #86efac; font-weight: 800; font-size: 0.8rem; }
/* Ticket a gratter : titre lisible sur le fond dore (une regle generale le passait en blanc). */
.sc-ticket .sct-title { height: auto; min-height: 0; margin-bottom: 10px; }
.sc-ticket .sct-title span { color: #451a03; text-shadow: 0 1px 0 rgba(255,255,255,0.55); }
.sc-ticket.free .sct-title span { color: #022c22; }

/* Archeologie : sortes de tablettes + niveau d'archeologue (27 octobre) */
.ar-level { margin-bottom: 12px; padding: 10px 14px; border-radius: 14px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); }
.ar-level summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.ar-level summary::-webkit-details-marker { display: none; }
.ar-level-badge { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-weight: 900; font-size: 0.9rem; color: #3b2410; background: radial-gradient(circle at 35% 30%, #fde68a, #d6a456 70%, #8a5a24); box-shadow: 0 0 0 3px rgba(214, 164, 86, 0.3); }
.ar-level-main { flex: 1; display: grid; gap: 4px; min-width: 0; }
.ar-level-main small { color: var(--text-dim); }
.ar-xp > span { background: linear-gradient(90deg, #d6a456, #fde68a); }
.ar-perks { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 4px; font-size: 0.85rem; }
.ar-perks li { opacity: 0.55; }
.ar-perks li.on { opacity: 1; color: #86efac; }
.ar-perks li b { display: inline-block; min-width: 46px; }
.ar-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; width: 100%; }
.ar-kind { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 16px 12px; border-radius: 16px; cursor: pointer; color: var(--text); background: linear-gradient(180deg, color-mix(in srgb, var(--kc) 22%, transparent), var(--bg-panel-2)); border: 2px solid color-mix(in srgb, var(--kc) 60%, transparent); transition: transform 0.15s, box-shadow 0.15s; }
.ar-kind:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 8px 22px -10px var(--kc); }
.ar-kind:disabled { cursor: default; opacity: 0.45; filter: grayscale(0.6); }
.ar-kind.gold:not(:disabled) { box-shadow: 0 0 20px -6px var(--kc); }
.ar-kind-ico { font-size: 2.4rem; line-height: 1; }
.ar-kind-rar { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; color: var(--kc); }
.ar-kind-n { position: absolute; top: 8px; right: 10px; font-weight: 900; font-size: 1.05rem; }
.ar-kind small { font-size: 0.75rem; }
.ar-tablet-title { margin-bottom: 8px; padding-left: 10px; border-left: 4px solid var(--kc); }
.ar-tablet-title small { color: var(--text-dim); }
.ar-levelup { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(214, 164, 86, 0.18); border: 1px solid rgba(253, 230, 138, 0.5); font-weight: 800; }
.ar-fragile { color: #fca5a5 !important; }
.ar-fragile-note { margin: 8px 0 0; padding: 6px 10px; border-radius: 10px; background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.4); font-size: 0.85rem; }

/* Salle interdite : gains lisibles (27 octobre) */
.cz-tally { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(253, 224, 71, 0.35); font-size: 0.9rem; }
.cz-tally small { color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; }
.cz-tally b.up { color: #86efac; } .cz-tally b.down { color: #fca5a5; }
.cz-pay { margin: 6px 0 12px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(253, 224, 71, 0.3); }
.cz-pay summary { cursor: pointer; font-weight: 800; color: #fde68a; }
.cz-pay table { width: 100%; max-width: 680px; margin-top: 6px; border-collapse: collapse; font-size: 0.85rem; }
.cz-pay th { text-align: left; font-weight: 600; color: var(--text-dim); padding: 4px 10px 4px 0; vertical-align: top; }
.cz-pay td { padding: 4px 0; font-weight: 700; color: var(--text); }
.cz-pay tr + tr th, .cz-pay tr + tr td { border-top: 1px dashed rgba(255, 255, 255, 0.1); }
.cz-outcome { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; border: 2px solid; }
.cz-outcome.win { background: rgba(34, 197, 94, 0.14); border-color: rgba(134, 239, 172, 0.7); box-shadow: 0 0 18px -6px #22c55e; }
.cz-outcome.lose { background: rgba(239, 68, 68, 0.12); border-color: rgba(252, 165, 165, 0.5); }
.cz-outcome.even { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.25); }
.cz-outcome.pop { animation: czOut 0.35s ease-out; }
@keyframes czOut { from { transform: scale(0.96); opacity: 0.3; } }
.cz-out-label { font-size: 1.05rem; }
.cz-out-net { font-weight: 900; }
.cz-outcome.win .cz-out-net { color: #86efac; } .cz-outcome.lose .cz-out-net { color: #fca5a5; }
.cz-out-extra { color: #fde68a; }
.fm-ledger { margin-top: 8px; padding: 5px 12px; border-radius: 99px; display: inline-block; font-size: 0.85rem; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.18); }
.fm-ledger.up { border-color: rgba(134, 239, 172, 0.7); } .fm-ledger.up strong { color: #86efac; }
.fm-ledger.down { border-color: rgba(252, 165, 165, 0.5); } .fm-ledger.down strong { color: #fca5a5; }

/* Coffre-fort : vitrine, zoom et presentoir (26 octobre) */
.pv-showcase-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border-soft); background: var(--bg-panel-2); color: var(--text-dim); font-size: 0.74rem; font-weight: 700; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.pv-showcase-btn:hover { color: var(--text); border-color: #fbbf24; }
.pv-showcase-btn.on { color: #fde68a; border-color: #fbbf24; background: rgba(251, 191, 36, 0.14); }
.pv-showcase-btn.icon-only { padding: 4px 7px; font-size: 0.85rem; }
.pv-mini[data-zoom] { cursor: zoom-in; transition: transform 0.15s; }
.pv-mini[data-zoom]:hover { transform: translateY(-2px); }
.pv-mini[data-zoom]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pv-gallery { margin-top: 14px; }
.gal-hall { position: relative; padding: 18px 16px 26px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, rgba(253, 230, 138, 0.1), transparent 60%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 6px), linear-gradient(180deg, #1a0f1f, #0b0710 70%);
  border: 1px solid rgba(214, 185, 140, 0.35); box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.7), 0 18px 40px -20px rgba(0, 0, 0, 0.9); }
.gal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 12px; }
.gal-head h2 { margin: 0 0 4px; font-family: Georgia, "Times New Roman", serif; letter-spacing: 0.04em; color: #fde68a; text-shadow: 0 2px 12px rgba(253, 230, 138, 0.35); }
.gal-head p { margin: 0; font-size: 0.85rem; max-width: 560px; }
.gal-kpis { display: flex; flex-wrap: wrap; gap: 6px; }
.gal-kpis span { padding: 5px 12px; border-radius: 99px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(214, 185, 140, 0.35); font-size: 0.8rem; color: var(--text-dim); }
.gal-kpis strong { color: #fde68a; font-size: 0.95rem; }
.gal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.gal-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gal-chip { padding: 5px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.35); color: var(--text); font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.gal-chip b { margin-left: 3px; color: var(--text-dim); font-weight: 800; }
.gal-chip.on { border-color: #fde68a; background: rgba(253, 230, 138, 0.16); color: #fde68a; }
.gal-chip[data-finish="emerald"] { border-color: rgba(16, 185, 129, 0.7); }
.gal-chip[data-finish="emerald"].on { background: rgba(16, 185, 129, 0.22); color: #a7f3d0; }
.gal-chip[data-finish="rainbow"].on { border-image: linear-gradient(90deg, #ff6ec7, #ffd76e, #7dd3fc) 1; }
.gal-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-dim); }
.gal-case { position: relative; margin-top: 8px; padding: 18px 12px 10px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.gal-case + .gal-case { margin-top: 22px; }
/* Reflet de la vitre. */
.gal-case::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, 0.05) 46%, transparent 52%); }
.gal-case h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 4px 14px; font-size: 1rem; }
.gal-case h3 small { color: var(--text-dim); font-weight: 500; font-size: 0.78rem; }
.gal-emeralds { background: radial-gradient(90% 70% at 50% 0%, rgba(16, 185, 129, 0.18), transparent 70%), linear-gradient(180deg, rgba(6, 78, 59, 0.25), rgba(0, 0, 0, 0.1)); border-color: rgba(16, 185, 129, 0.45); }
.gal-emeralds h3 { color: #a7f3d0; }
.gal-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 18px; }
.gal-emeralds .gal-shelf { display: flex; flex-wrap: wrap; justify-content: center; }
.gal-emeralds .gal-item { flex: 0 1 210px; }
.gal-item { position: relative; margin: 0; display: grid; justify-items: center; gap: 0; padding-top: 14px; }
/* Projecteur : cone de lumiere tiede au-dessus de chaque carte. */
.gal-spot { position: absolute; top: -18px; left: 50%; width: 120%; height: 78%; transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--r) 30%, rgba(255, 244, 214, 0.28)), transparent 72%); filter: blur(2px); opacity: 0.9; }
.gal-item[data-finish="emerald"] .gal-spot { background: radial-gradient(50% 100% at 50% 0%, rgba(110, 231, 183, 0.42), transparent 72%); }
.gal-item[data-finish="rainbow"] .gal-spot { background: radial-gradient(50% 100% at 50% 0%, rgba(255, 182, 230, 0.34), rgba(125, 211, 252, 0.12) 50%, transparent 72%); }
.gal-card { position: relative; z-index: 1; width: 86%; cursor: zoom-in; border-radius: 12px; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.gal-card.tilting { transition: transform 0.05s linear; }
.gal-card:hover { box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.9), 0 0 26px -6px var(--r); }
.gal-card:focus-visible { outline: 2px solid #fde68a; outline-offset: 4px; }
.gal-card .card-art img { aspect-ratio: 3 / 4; object-fit: cover; }
.gal-card .quality-indicator { display: none; }
/* Socle : marbre sombre sous la carte. */
.gal-base { position: relative; z-index: 0; width: 100%; height: 16px; margin-top: -4px; border-radius: 4px 4px 10px 10px; background: linear-gradient(180deg, #3b2f3f, #1b1420 60%, #0d0910); box-shadow: 0 10px 14px -6px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.gal-item[data-finish="emerald"] .gal-base { background: linear-gradient(180deg, #14532d, #052e16 60%, #021a0d); }
.gal-plaque { position: relative; display: grid; justify-items: center; gap: 1px; width: 92%; margin-top: 8px; padding: 5px 10px 6px; border-radius: 6px; text-align: center;
  background: linear-gradient(180deg, #e9cf8f, #b08a45 55%, #8a6a2f); color: #2b1a05; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 3px 6px rgba(0, 0, 0, 0.6); }
.gal-plaque strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Georgia, "Times New Roman", serif; font-size: 0.82rem; }
.gal-plaque small { font-size: 0.66rem; font-weight: 700; color: #4a3210; }
.gal-plaque small span { filter: brightness(0.55) saturate(1.4); }
.gal-plaque .pv-showcase-btn { position: absolute; right: -8px; top: -12px; z-index: 2; padding: 3px 6px; font-size: 0.72rem; background: #e9cf8f; border-color: #8a6a2f; color: #2b1a05; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); }
.gal-plaque .pv-showcase-btn.on { background: #2b1a05; color: #fde68a; border-color: #2b1a05; }
.gal-item.big .gal-card { width: 92%; }
.gal-empty { display: grid; justify-items: center; gap: 8px; padding: 30px 12px; text-align: center; color: var(--text-dim); }
.gal-empty span { font-size: 2.6rem; filter: grayscale(0.4); }
@media (max-width: 640px) {
  .gal-hall { padding: 14px 10px 20px; }
  .gal-shelf, .gal-emeralds .gal-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .gal-plaque { padding: 4px 8px 5px; }
}
@media (prefers-reduced-motion: reduce) { .gal-card { transform: none !important; } }

/* Vitrine du profil : de vraies cartes (rarete, finition, etat, edition), zoomables. */
.showcase-grid .collection-card.showcase-card { display: block; width: 100%; padding: 0; margin: 0; font: inherit; color: inherit; text-align: center; cursor: zoom-in; border-width: 2px; }
.showcase-grid .showcase-card .card-art { display: block; }
.showcase-grid .showcase-card .card-info { display: grid; justify-items: center; gap: 4px; padding: 6px 6px 8px; }
.showcase-grid .showcase-card .showcase-card-name { padding: 0; max-width: 100%; }
.showcase-grid .showcase-card .rarity-badge { font-size: 0.66rem; }
.showcase-grid .showcase-card:hover { transform: translateY(-3px); }
.showcase-grid .showcase-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Archeologie, refonte visuelle (26 octobre, 2e passe) : chantier de fouille */
.ar-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.ar-top .ar-level { margin: 0; padding: 8px 12px; }
.ar-level summary { gap: 10px; }
.ar-level-badge { width: 40px; height: 40px; font-size: 1.05rem; }
.ar-level-main strong { font-size: 0.9rem; }
.ar-level-main .ar-bar { width: 100%; max-width: 280px; }
.ar-level-more { color: var(--text-dim); transition: transform 0.2s; }
.ar-level[open] .ar-level-more { transform: rotate(180deg); }
.ar-bar { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5); }
.ar-stock { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ar-stock small { width: 100%; text-align: right; font-size: 0.7rem; }
.ar-stock-kind { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 6px; border-radius: 99px; background: color-mix(in srgb, var(--kc, #b07a4c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--kc, #b07a4c) 50%, transparent); }
.ar-stock-kind b { font-size: 0.95rem; }
.ar-stock-kind.none { opacity: 0.45; }
.ar-top .ar-modes { justify-self: end; }
.ar-count.live { background: #22c55e; min-width: 12px; height: 12px; font-size: 0; padding: 0; box-shadow: 0 0 8px #22c55e; }
@media (max-width: 760px) { .ar-top { grid-template-columns: 1fr auto; } .ar-top .ar-level { grid-column: 1 / -1; } .ar-stock small { text-align: left; } }
@media (max-width: 460px) { .ar-top { grid-template-columns: 1fr; } .ar-top .ar-modes { justify-self: stretch; } }

/* Petites tablettes dessinees (reserve, titres). */
.ar-mini-tab { display: inline-block; width: 14px; height: 18px; border-radius: 3px 3px 2px 2px; vertical-align: -3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(40, 24, 10, 0.35) 3px 4px), linear-gradient(160deg, #e2c194, #a8764a); }
.ar-mini-tab.stone { background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(20, 24, 32, 0.4) 3px 4px), linear-gradient(160deg, #d3d6dc, #7f8694); }
.ar-mini-tab.gold { background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(90, 60, 10, 0.4) 3px 4px), linear-gradient(160deg, #fdeeb4, #c9961f); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 6px rgba(253, 224, 71, 0.6); }
.ar-kind-tab { position: relative; display: grid; align-content: center; gap: 7px; width: 62px; height: 78px; padding: 0 10px; border-radius: 10px 10px 7px 7px; transform: rotate(-4deg); margin-bottom: 4px;
  background: linear-gradient(160deg, #e2c194, #a8764a); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18), inset 3px 3px 0 rgba(255, 255, 255, 0.25), inset -4px -5px 0 rgba(0, 0, 0, 0.18), 0 8px 14px -6px rgba(0, 0, 0, 0.7); transition: transform 0.2s; }
.ar-kind-tab i { display: block; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(40, 24, 10, 0.45) 0 5px, transparent 5px 8px, rgba(40, 24, 10, 0.45) 8px 10px, transparent 10px 14px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3); }
.ar-kind-tab.stone { background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.3), transparent 40%), linear-gradient(160deg, #d3d6dc, #7f8694); }
.ar-kind-tab.stone i { background: repeating-linear-gradient(90deg, rgba(20, 24, 32, 0.5) 0 5px, transparent 5px 8px, rgba(20, 24, 32, 0.5) 8px 10px, transparent 10px 14px); }
.ar-kind-tab.gold { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 42%, transparent 52%), linear-gradient(160deg, #fdeeb4, #c9961f); box-shadow: inset 0 0 0 2px rgba(120, 80, 10, 0.3), inset 3px 3px 0 rgba(255, 255, 255, 0.35), inset -4px -5px 0 rgba(0, 0, 0, 0.15), 0 0 22px -4px #fde047; }
.ar-kind-tab.gold i { background: repeating-linear-gradient(90deg, rgba(110, 70, 10, 0.5) 0 5px, transparent 5px 8px, rgba(110, 70, 10, 0.5) 8px 10px, transparent 10px 14px); }
.ar-kind:not(:disabled):hover .ar-kind-tab { transform: rotate(3deg) translateY(-3px); }
.ar-empty > .btn-secondary { margin-top: 4px; }

/* Outils : une barre d'outils dessinee, raccourcis 1-5. */
.ar-dig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ar-dig-head .ar-tablet-title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ar-tools-dock { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-tool-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 26px 6px 8px; border-radius: 12px; border: 1px solid var(--border-soft); background: var(--bg-panel-2); color: var(--text); cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.ar-tool-btn:hover { transform: translateY(-1px); border-color: #d6b98c; }
.ar-tool-btn.on { border-color: #d6b98c; background: linear-gradient(180deg, rgba(214, 185, 140, 0.25), rgba(161, 98, 7, 0.15)); box-shadow: 0 0 0 2px rgba(214, 185, 140, 0.35); }
.ar-tool-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); font-size: 1.05rem; }
.ar-tool-btn.on .ar-tool-ico { background: rgba(214, 185, 140, 0.3); }
.ar-tool-txt { display: grid; line-height: 1.15; }
.ar-tool-txt b { font-size: 0.82rem; }
.ar-tool-txt small { font-size: 0.66rem; color: var(--text-dim); }
.ar-tool-btn kbd { position: absolute; top: 4px; right: 6px; font: 700 0.6rem/1 Inter, system-ui, sans-serif; padding: 2px 4px; border-radius: 4px; border: 1px solid var(--border-soft); color: var(--text-dim); background: rgba(0, 0, 0, 0.25); }
@media (hover: none) { .ar-tool-btn kbd { display: none; } .ar-tool-btn { padding-right: 10px; } }
@media (max-width: 560px) { .ar-tool-txt small, .ar-tool-btn kbd { display: none; } .ar-tool-btn { padding: 5px 8px; } .ar-toolbar .ar-gauge { width: 100%; } .ar-toolbar .ar-gauge .ar-bar { flex: 1; width: auto; } }
.ar-pressure { position: relative; overflow: visible; }
.ar-pressure > span { border-radius: inherit; }
.ar-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #fca5a5; border-radius: 1px; box-shadow: 0 0 4px #ef4444; }

/* Plateau : cadre en bois, vis aux coins, la tablette au centre. */
.ar-slab { padding: 16px; border-radius: 16px; max-width: 720px;
  background: radial-gradient(circle at 8px 8px, #f5f5f4 0 1.5px, #a8a29e 2.5px, #44403c 4px, transparent 4.6px), radial-gradient(circle at calc(100% - 8px) 8px, #f5f5f4 0 1.5px, #a8a29e 2.5px, #44403c 4px, transparent 4.6px), radial-gradient(circle at 8px calc(100% - 8px), #f5f5f4 0 1.5px, #a8a29e 2.5px, #44403c 4px, transparent 4.6px), radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), #f5f5f4 0 1.5px, #a8a29e 2.5px, #44403c 4px, transparent 4.6px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 3px, transparent 3px 11px), linear-gradient(180deg, #8a5a32, #5b3a1f);
  box-shadow: inset 0 0 0 2px rgba(255, 220, 170, 0.22), inset 0 2px 0 rgba(255, 230, 190, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.35), 0 16px 34px -14px rgba(0, 0, 0, 0.85); }
.ar-slab.gold { background: radial-gradient(circle at 8px 8px, #f5f5f4 0 1.5px, #a8a29e 2.5px, #44403c 4px, transparent 4.6px), radial-gradient(circle at calc(100% - 8px) 8px, #f5f5f4 0 1.5px, #a8a29e 2.5px, #44403c 4px, transparent 4.6px), radial-gradient(circle at 8px calc(100% - 8px), #f5f5f4 0 1.5px, #a8a29e 2.5px, #44403c 4px, transparent 4.6px), radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), #f5f5f4 0 1.5px, #a8a29e 2.5px, #44403c 4px, transparent 4.6px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 3px, transparent 3px 11px), linear-gradient(180deg, #6b2f1a, #3f1a0d); box-shadow: inset 0 0 0 2px rgba(253, 224, 71, 0.45), inset 0 2px 0 rgba(255, 240, 190, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.35), 0 16px 34px -14px rgba(0, 0, 0, 0.85), 0 0 28px -10px #fde047; }
.ar-slab.stone { background: radial-gradient(circle at 8px 8px, #f5f5f4 0 1.5px, #a8a29e 2.5px, #44403c 4px, transparent 4.6px), radial-gradient(circle at calc(100% - 8px) 8px, #f5f5f4 0 1.5px, #a8a29e 2.5px, #44403c 4px, transparent 4.6px), radial-gradient(circle at 8px calc(100% - 8px), #f5f5f4 0 1.5px, #a8a29e 2.5px, #44403c 4px, transparent 4.6px), radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), #f5f5f4 0 1.5px, #a8a29e 2.5px, #44403c 4px, transparent 4.6px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 3px, transparent 3px 11px), linear-gradient(180deg, #4b5563, #283040); }
.ar-slab .ar-canvas { border-radius: 6px; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), 0 3px 10px rgba(0, 0, 0, 0.5); }
@media (hover: hover) and (pointer: fine) { .ar-canvas { cursor: none; } }
.ar-foot { margin-top: 12px; }
.ar-energy.low > span { background: linear-gradient(90deg, #b91c1c, #f87171); }
.ar-blocks { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.ar-pips { display: inline-flex; gap: 4px; }
.ar-pips i { width: 12px; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.ar-pips i.on { background: radial-gradient(circle at 35% 30%, #e7e5e4, #78716c 70%); box-shadow: 0 0 6px rgba(253, 230, 138, 0.6); }
.ar-legend { font-size: 0.72rem; }

/* Atelier : etagere de blocs teintes selon la tablette, anneau d'avancement. */
.ar-shelf-lead { margin: 0 0 4px; }
.ar-shelf { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); padding: 14px 10px 18px; border-radius: 14px;
  background: linear-gradient(180deg, transparent calc(100% - 14px), #5b3a1f calc(100% - 14px), #3b2412), radial-gradient(120% 80% at 50% 0%, rgba(255, 230, 190, 0.06), transparent 70%); }
.ar-rock { position: relative; background: rgba(0, 0, 0, 0.22); }
.ar-rock-from { font-size: 0.66rem !important; }
.ar-rock.from-stone .ar-rock-stone { background: radial-gradient(circle at 32% 28%, #e5e7eb, #6b7280 55%, #374151); }
.ar-rock.from-gold .ar-rock-stone { background: radial-gradient(circle at 32% 28%, #fef3c7, #a8a29e 50%, #57534e); box-shadow: inset -6px -8px 0 rgba(0, 0, 0, 0.25), 0 6px 10px rgba(0, 0, 0, 0.35), 0 0 14px -2px rgba(253, 224, 71, 0.55); }
.ar-rock-stone { position: relative; }
.ar-rock-ring { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(#34d399 calc(var(--p) * 1%), transparent 0); -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%); mask: radial-gradient(circle, transparent 62%, #000 64%); }
.ar-work-head .ar-prog-g { margin-left: auto; }
.ar-prog > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #059669, #6ee7b7); transition: width 0.3s; }
.ar-stone { background: radial-gradient(circle at 40% 35%, #6b625a, #2a2520 75%); }
.ar-stone.from-gold { box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 12px 30px -10px rgba(0, 0, 0, 0.7), 0 0 30px -10px #fde047; }
.ar-result .btn, .ar-result .btn-secondary { margin-top: 8px; }

/* Collection sur telephone : filtres avances replies (26 octobre) */
.adv-toggle { display: none; }
.adv-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 800; }
.adv-count[hidden] { display: none; }
@media (max-width: 640px) {
  .toolbar-reset { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
  .adv-toggle { display: inline-flex; align-items: center; }
  #shared-toolbar:not(.adv-open) .toolbar-row[data-only-mode] { display: none !important; }
}

/* Crafter : bon de craft et Bourse visibles (26 octobre) */
.craft-card { position: relative; }
.craft-coupon { position: absolute; top: 8px; left: 8px; z-index: 3; padding: 3px 8px; border-radius: 99px; font-size: 0.72rem; font-weight: 800; color: #052e16; background: linear-gradient(135deg, #86efac, #22c55e); box-shadow: 0 2px 8px rgba(34, 197, 94, 0.5); }
.craft-card.has-coupon { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.55), 0 0 18px -6px #22c55e; }
.craft-cost s { color: var(--text-dim); font-weight: 500; }
.craft-cost strong { color: #86efac; }
.craft-bourse { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 99px; font-size: 0.66rem; font-weight: 800; }
.craft-bourse.up { color: #fca5a5; background: rgba(239, 68, 68, 0.14); }
.craft-bourse.down { color: #86efac; background: rgba(34, 197, 94, 0.14); }

/* Collection : filtres actifs en pastilles et barre collante (26 octobre) */
.coll-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.coll-chips[hidden] { display: none; }
.coll-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.coll-chip span { opacity: 0.7; }
.coll-chip:hover span { opacity: 1; }
.coll-chip.clear-all { border-style: dashed; background: transparent; color: var(--text-dim); }
.coll-sticky { position: fixed; left: 50%; transform: translateX(-50%); z-index: 40; width: min(1080px, calc(100% - 20px)); display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-top: 6px; border-radius: 14px; background: var(--bg-panel-solid); border: 1px solid var(--border-soft); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.9); animation: collStickyIn 0.18s ease both; }
.coll-sticky[hidden] { display: none; }
.coll-sticky input { flex: 0 1 260px; min-width: 0; padding: 6px 10px; }
.coll-sticky-chips { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.coll-sticky-chips .coll-chip { flex: none; }
.coll-sticky-up { flex: none; white-space: nowrap; }
@keyframes collStickyIn { from { opacity: 0; transform: translate(-50%, -8px); } }
@media (max-width: 640px) { .coll-sticky input { flex-basis: 40%; } }
body.cinema .coll-sticky { display: none; }

/* Vitrine : remplacement et ordre (js/lazy/showcase.js, 26 octobre) */
.skit-box { max-width: min(640px, 94vw); }
.skit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.skit-pick { display: grid; gap: 4px; justify-items: center; padding: 6px; border-radius: 12px; border: 1px solid var(--border-soft); background: var(--bg-panel-2); color: var(--text); cursor: pointer; }
.skit-pick:hover, .skit-pick:focus-visible { border-color: #f87171; box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.35); }
.skit-pick small, .skit-item small { font-size: 0.72rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skit-card { display: block; width: 100%; border-radius: 8px; }
.skit-card .card-art img { aspect-ratio: 3 / 4; object-fit: cover; }
.skit-order { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.skit-item { position: relative; display: grid; gap: 4px; justify-items: center; padding: 6px; border-radius: 12px; border: 1px solid var(--border-soft); background: var(--bg-panel-2); cursor: grab; }
.skit-item.dragging { opacity: 0.4; }
.skit-item.over { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.skit-pos { position: absolute; top: 2px; left: 4px; z-index: 2; font-weight: 900; font-size: 0.8rem; color: #fde68a; text-shadow: 0 1px 3px #000; }
.skit-arrows { display: flex; gap: 4px; }
.skit-arrows button { padding: 2px 8px; border-radius: 8px; border: 1px solid var(--border-soft); background: rgba(0, 0, 0, 0.3); color: var(--text); cursor: pointer; }
.skit-arrows button:disabled { opacity: 0.3; cursor: default; }
.gal-kpi-btn { padding: 5px 12px; border-radius: 99px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(214, 185, 140, 0.55); font-size: 0.8rem; color: var(--text-dim); cursor: pointer; }
.gal-kpi-btn:hover { color: var(--text); border-color: #fde68a; }
.gal-kpi-btn strong { color: #fde68a; font-size: 0.95rem; }
.profile-showcase-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-showcase-title .btn-ghost { font-size: 0.8rem; }
.ci-action { display: inline-flex; align-items: center; text-decoration: none; }

/* Jardin, refonte visuelle (26 octobre) : sachets, champ, sillons, cacas */
#garden-meta.garden-meta { display: grid; gap: 4px; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, #65a30d 14%, var(--bg-panel-2)); border: 1px solid color-mix(in srgb, #84cc16 40%, transparent); font-size: 0.82rem; }
.gm-chip.gold { border-color: rgba(250, 204, 21, 0.55); background: color-mix(in srgb, #facc15 12%, var(--bg-panel-2)); }
.gm-chip.poop { border-color: rgba(161, 98, 7, 0.6); background: color-mix(in srgb, #92400e 18%, var(--bg-panel-2)); }
.gm-chip.streak { border-color: rgba(251, 146, 60, 0.6); }
.gm-info { color: var(--text-dim); font-size: 0.74rem; }
.garden-h { margin: 14px 0 6px; font-size: 1rem; }
.garden-h small { font-weight: 500; font-size: 0.74rem; }

/* Sachets de graines : papier, bord dentele, gros dessin. */
.garden-seeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.garden-seeds .garden-seed { position: relative; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 10px; text-align: center; border-radius: 6px 6px 12px 12px; border: 1px solid rgba(120, 80, 40, 0.5);
  background: linear-gradient(180deg, #f5e6c8 0 22%, #e9d3a6 22% 100%); color: #3b2410; box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.8); transition: transform 0.15s, box-shadow 0.15s;
  -webkit-mask: radial-gradient(circle at 6px 0, transparent 5px, #000 5.5px) -6px 0 / 12px 100% repeat-x; mask: radial-gradient(circle at 6px 0, transparent 5px, #000 5.5px) -6px 0 / 12px 100% repeat-x; }
.garden-seeds .garden-seed:hover:not(:disabled) { transform: translateY(-3px) rotate(-1deg); }
.garden-seeds .garden-seed.active { box-shadow: 0 0 0 3px #84cc16, 0 8px 16px -8px rgba(0, 0, 0, 0.8); }
.garden-seeds .garden-seed .garden-seed-icon { font-size: 2rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #fff7e0, #e4c891); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1); }
.garden-seeds .garden-seed .garden-seed-icon img { width: 34px; height: 34px; }
.garden-seeds .garden-seed .garden-seed-body { display: grid; gap: 2px; }
.garden-seeds .garden-seed strong { font-family: Georgia, "Times New Roman", serif; font-size: 0.95rem; }
.garden-seeds .garden-seed small { color: #6b4a2a; font-size: 0.72rem; }
.garden-seed-price { margin-top: 4px; padding: 2px 8px; border-radius: 99px; background: rgba(59, 36, 16, 0.12); font-size: 0.74rem; font-weight: 800; justify-self: center; }
.garden-seeds .garden-seed.locked { filter: grayscale(0.8) brightness(0.7); cursor: not-allowed; }
.garden-seeds .seed-catnip { background: linear-gradient(180deg, #e3f4d0 0 22%, #c9e6a8 22% 100%); }
.garden-seeds .seed-bone { background: linear-gradient(180deg, #f1ece4 0 22%, #ddd3c4 22% 100%); }
.garden-seeds .seed-mushroom { background: linear-gradient(180deg, #ecdcf5 0 22%, #d5bde6 22% 100%); }
.garden-seeds .seed-dust { background: linear-gradient(180deg, #dfe4fb 0 22%, #c3cbf2 22% 100%); }
.garden-seeds .seed-bait { background: linear-gradient(180deg, #fbf1c7 0 22%, #f2dc8a 22% 100%); }

/* Le champ. */
.garden-field { position: relative; margin-top: 14px; padding: 92px 14px 18px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(132, 204, 22, 0.35);
  background: linear-gradient(180deg, #7dd3fc 0 70px, #65a30d 70px, #4d7c0f 100%); box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.25); --sky: #7dd3fc; }
.garden-field[data-sky="dawn"] { background: linear-gradient(180deg, #fbcfe8 0, #fde68a 70px, #65a30d 70px, #4d7c0f 100%); }
.garden-field[data-sky="dusk"] { background: linear-gradient(180deg, #7c3aed 0, #fb923c 70px, #4d7c0f 70px, #365314 100%); }
.garden-field[data-sky="night"] { background: linear-gradient(180deg, #0f172a 0, #312e81 70px, #365314 70px, #1a2e05 100%); }
.gf-sky { position: absolute; inset: 0 0 auto; height: 70px; pointer-events: none; }
.gf-sun { position: absolute; top: 12px; right: 28px; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle, #fff7ae, #facc15 60%, #f59e0b); box-shadow: 0 0 30px 6px rgba(250, 204, 21, 0.6); }
.garden-field[data-sky="night"] .gf-sun { background: radial-gradient(circle at 35% 35%, #f8fafc, #cbd5e1 60%, #94a3b8); box-shadow: 0 0 24px 4px rgba(226, 232, 240, 0.35); }
.gf-cloud { position: absolute; top: 18px; width: 70px; height: 20px; border-radius: 99px; background: rgba(255, 255, 255, 0.85); box-shadow: 18px -8px 0 2px rgba(255, 255, 255, 0.85); animation: gfCloud 60s linear infinite; }
.gf-cloud.c1 { left: -80px; } .gf-cloud.c2 { top: 34px; left: -200px; transform: scale(0.7); animation-duration: 90s; animation-delay: -30s; }
.garden-field[data-sky="night"] .gf-cloud { opacity: 0.15; }
@keyframes gfCloud { to { translate: calc(100vw + 300px) 0; } }
.gf-stars { position: absolute; inset: 0; opacity: 0; background: radial-gradient(1px 1px at 10% 30%, #fff, transparent), radial-gradient(1px 1px at 30% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 25%, #fff, transparent), radial-gradient(1px 1px at 70% 55%, #fff, transparent), radial-gradient(1px 1px at 85% 20%, #fff, transparent); }
.garden-field[data-sky="night"] .gf-stars { opacity: 1; }
.gf-back { position: absolute; left: 0; right: 0; top: 40px; height: 56px; pointer-events: none; }
.gf-hill { position: absolute; left: -10%; right: 30%; bottom: 0; height: 40px; border-radius: 50% 50% 0 0; background: #84cc16; opacity: 0.55; }
.gf-sunflowers { position: absolute; left: 14px; bottom: -6px; font-size: 1.5rem; letter-spacing: -4px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
/* Epouvantail dessine. */
.gf-scarecrow { position: absolute; right: 90px; bottom: -14px; width: 40px; height: 64px; }
.gf-scarecrow i { position: absolute; display: block; }
.gf-scarecrow .pole { left: 18px; top: 18px; width: 4px; height: 46px; background: #78350f; }
.gf-scarecrow .arms { left: 0; top: 26px; width: 40px; height: 4px; background: #78350f; border-radius: 2px; box-shadow: 0 6px 0 4px #2563eb; }
.gf-scarecrow .head { left: 11px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: #fde68a; box-shadow: inset 4px -3px 0 rgba(0, 0, 0, 0.12); }
.gf-scarecrow .hat { left: 6px; top: 2px; width: 28px; height: 10px; border-radius: 50% 50% 4px 4px; background: #a16207; box-shadow: 0 4px 0 -1px #78350f; z-index: 1; }
.gf-fence { position: absolute; left: 0; right: 0; top: 84px; height: 18px; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 22px, #a16207 22px 28px), linear-gradient(180deg, transparent 4px, #92400e 4px 7px, transparent 7px 11px, #92400e 11px 14px, transparent 14px); opacity: 0.9; }
.gf-bee { position: absolute; top: 110px; left: 20%; z-index: 3; font-size: 1rem; pointer-events: none; animation: gfBee 9s ease-in-out infinite; }
.gf-bee.b2 { left: 65%; top: 140px; animation-duration: 12s; animation-delay: -4s; }
.gf-snail { position: absolute; bottom: 6px; left: -20px; z-index: 3; font-size: 0.9rem; pointer-events: none; animation: gfSnail 80s linear infinite; }
@keyframes gfBee { 0%, 100% { translate: 0 0; } 25% { translate: 60px -20px; } 50% { translate: 120px 10px; } 75% { translate: 40px 24px; } }
@keyframes gfSnail { to { translate: 110vw 0; } }
.garden-field[data-sky="night"] .gf-bee { display: none; }

/* Parcelles : terre labouree, sillons, plante, anneau de pousse. */
.garden-field .garden-plots { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.garden-field .garden-plot { position: relative; display: grid; justify-items: center; align-content: end; gap: 6px; min-height: 160px; padding: 12px 8px 10px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 110%, #3b2312, #5b3a1f 70%); border: 2px solid #78350f; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.08), inset 0 -8px 16px rgba(0, 0, 0, 0.45), 0 6px 12px -6px rgba(0, 0, 0, 0.7); }
.gp-furrows { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0 14px, rgba(0, 0, 0, 0.22) 14px 17px, rgba(255, 220, 170, 0.06) 17px 19px); }
.garden-field .garden-plot .garden-plant { position: relative; z-index: 1; display: grid; place-items: end center; height: 84px; transform-origin: 50% 100%; }
.garden-field .garden-plot .garden-plant img { max-height: 84px; width: auto; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.45)); }
.garden-plant.stage-seed img { max-height: 40px !important; }
.garden-plant.stage-sprout img { max-height: 62px !important; animation: gpSway 4s ease-in-out infinite; }
.garden-plant.stage-ready { animation: gpBob 1.8s ease-in-out infinite; }
.gp-emoji { font-size: 3.4rem; line-height: 1; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.45)); }
@keyframes gpSway { 50% { rotate: 4deg; } }
@keyframes gpBob { 50% { translate: 0 -5px; } }
.garden-field .garden-plot.ready { border-color: #a3e635; box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.35), 0 0 22px -4px #a3e635, inset 0 -8px 16px rgba(0, 0, 0, 0.45); cursor: pointer; }
.garden-field .garden-plot.wilted { filter: saturate(0.4) brightness(0.8); }
.garden-field .garden-plot.fert { background: radial-gradient(60% 30% at 50% 92%, rgba(120, 53, 15, 0.9), transparent 70%), radial-gradient(120% 70% at 50% 110%, #2f1b0d, #4a2e17 70%); }
.gp-sparkles { position: absolute; inset: 8px 8px auto; height: 80px; pointer-events: none; z-index: 2; }
.gp-sparkles i { position: absolute; width: 8px; height: 8px; background: #fef08a; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: gpTwinkle 1.6s ease-in-out infinite; }
.gp-sparkles i:nth-child(1) { left: 22%; top: 20%; } .gp-sparkles i:nth-child(2) { right: 20%; top: 8%; animation-delay: 0.5s; } .gp-sparkles i:nth-child(3) { left: 60%; top: 52%; animation-delay: 1s; }
@keyframes gpTwinkle { 0%, 100% { opacity: 0; scale: 0.4; } 50% { opacity: 1; scale: 1; } }
.gp-ring { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(#a3e635 calc(var(--p) * 1%), rgba(255, 255, 255, 0.15) 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); }
.gp-tag { position: absolute; top: 8px; left: 8px; z-index: 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(245, 230, 200, 0.92); font-size: 0.9rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }
.gp-tag img { width: 18px; height: 18px; }
.garden-field .garden-fert-tag { position: absolute; top: 38px; right: 8px; z-index: 2; }
.garden-field .garden-label { position: relative; z-index: 1; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.45); color: #fef3c7; font-size: 0.74rem; font-weight: 700; }
.gp-fert-btns { position: relative; z-index: 2; display: flex; gap: 4px; }
.garden-field .garden-fert-btn { padding: 3px 8px; border-radius: 99px; border: 1px solid rgba(161, 98, 7, 0.8); background: rgba(69, 26, 3, 0.75); cursor: pointer; font-size: 0.85rem; }
.garden-field .garden-fert-btn.gold { border-color: #facc15; }
.garden-field .garden-plot.empty { align-content: center; }
.gp-plant { position: relative; z-index: 1; display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 2px dashed rgba(254, 243, 199, 0.55); background: rgba(0, 0, 0, 0.25); color: #fef3c7; font-weight: 800; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.gp-plant small { font-weight: 600; font-size: 0.72rem; opacity: 0.85; }
.gp-plant:hover:not(:disabled) { background: rgba(132, 204, 22, 0.25); transform: translateY(-2px); }
.gp-plant:disabled { opacity: 0.45; cursor: default; }
/* Pluie de cacas et gains qui s'envolent. */
.gp-poop-drop { position: absolute; top: 0; z-index: 6; font-size: 1.8rem; translate: -50% -40px; pointer-events: none; animation: gpDrop 0.55s cubic-bezier(.45,0,.9,.6) both; }
@keyframes gpDrop { to { translate: -50% var(--fall); rotate: 30deg; } }
.garden-plot.splat::after { content: ""; position: absolute; left: 50%; bottom: 30%; z-index: 0; width: 70%; height: 30px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, rgba(120, 53, 15, 0.95), rgba(120, 53, 15, 0) 70%); animation: gpSplat 0.6s ease-out both; }
@keyframes gpSplat { from { scale: 0.2; opacity: 1; } to { scale: 1.4; opacity: 0; } }
.gp-float { position: absolute; z-index: 6; translate: -50% 0; pointer-events: none; padding: 3px 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.6); color: #fef9c3; font-weight: 900; font-size: 0.9rem; white-space: nowrap; animation: gpFloat 1.6s ease-out both; }
.gp-float img { width: 16px; height: 16px; vertical-align: -3px; }
@keyframes gpFloat { from { opacity: 0; translate: -50% 10px; } 20% { opacity: 1; } to { opacity: 0; translate: -50% -60px; } }
.garden-poop-btn { border-color: rgba(161, 98, 7, 0.8) !important; }
@media (max-width: 640px) {
  .garden-field { padding: 86px 8px 14px; }
  .garden-field .garden-plots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .garden-field .garden-plot { min-height: 140px; }
  .garden-seeds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gf-scarecrow { right: 70px; }
}
@media (prefers-reduced-motion: reduce) { .gf-cloud, .gf-bee, .gf-snail, .garden-plant.stage-ready, .garden-plant.stage-sprout img, .gp-sparkles i { animation: none !important; } }
html[data-fx="light"] .gf-cloud, html[data-fx="light"] .gf-bee, html[data-fx="light"] .gf-snail { animation: none !important; }
/* Sachets : les 7 sur une ligne a l'ordinateur, defilement sur telephone. */
.garden-seeds { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.garden-seeds .garden-seed { padding: 14px 8px 8px; }
.garden-seeds .garden-seed .garden-seed-icon { width: 46px; height: 46px; font-size: 1.7rem; }
.garden-seeds .garden-seed strong { font-size: 0.86rem; }
@media (max-width: 640px) {
  .garden-seeds { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .garden-seeds .garden-seed { flex: 0 0 136px; scroll-snap-align: start; }
}

/* Deblocages surprises et adoptions (2026-10-29, starter.js checkUnlocks) :
   le cadenas eclate avant que la nouveaute apparaisse. */
.cine-unlock .discovery-card::before { content: "\1F512"; position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font-size: clamp(3rem, 14vw, 5rem); animation: unlockBurst 1s 0.25s cubic-bezier(.3,.7,.3,1) both; pointer-events: none; }
.cine-unlock .discovery-icon { animation: unlockReveal 0.7s 0.95s cubic-bezier(.2,.9,.3,1.4) both, discoveryFloat 2.4s 1.7s ease-in-out infinite; }
.discovery-go { justify-self: center; margin-top: 6px; }
.st-steps li.secret { background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.2); }
@keyframes unlockBurst { 0% { opacity: 1; transform: scale(1); } 45% { opacity: 1; transform: scale(1.15) rotate(-14deg); } 60% { opacity: 1; transform: scale(1.05) rotate(10deg); } 100% { opacity: 0; transform: scale(2.4) rotate(24deg); filter: blur(6px); } }
@keyframes unlockReveal { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cine-unlock .discovery-card::before { display: none; } .cine-unlock .discovery-icon { animation: none; } }

/* Sous-progressions secretes (2026-10-29) : ce qui n'est pas debloque reste un mystere. */
.mystery-slot { display: inline-flex; align-items: center; gap: 6px; opacity: 0.6; border-style: dashed !important; cursor: default; font-style: italic; }
.garden-seed.mystery-slot { display: grid; }
.ar-perks li:not(.on) { opacity: 0.55; font-style: italic; }

/* Bilan de session dans l'inventaire (2026-10-29) */
.inv-session { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; margin: 0 0 8px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: 0.82rem; }
.inv-session small { color: var(--text-dim); }
.inv-session-bits { display: flex; flex-wrap: wrap; gap: 4px 10px; font-weight: 700; }
.inv-session-reset { padding: 2px 8px; font-size: 0.8rem; }

/* Decomptes en direct (2026-10-29, shell-extras.js Countdown) */
[data-countdown-to] { font-variant-numeric: tabular-nums; }
[data-countdown-to].cd-soon { color: #fbbf24; }
.redeem-live { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); }
.redeem-live h3 { margin: 0 0 8px; font-size: 0.95rem; }
.redeem-live ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.redeem-live li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.redeem-live-code { font-family: ui-monospace, Consolas, monospace; font-weight: 800; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 8px; border: 1px dashed var(--accent); background: rgba(0, 0, 0, 0.25); color: inherit; cursor: pointer; }
.redeem-live-label { display: grid; font-size: 0.85rem; }
.redeem-live-label small { color: var(--text-dim); }
.redeem-live-left { font-size: 0.8rem; white-space: nowrap; }
@media (max-width: 520px) { .redeem-live li { grid-template-columns: auto 1fr; } .redeem-live-left { grid-column: 1 / -1; } }

/* Preferences (2026-10-29, js/lazy/prefs.js) */
.prefs-overlay { display: grid; place-items: center; padding: 16px; }
.prefs-box { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(640px, 100%); max-height: calc(100vh - 32px); border-radius: 18px; background: var(--bg-panel, #17192e); background: color-mix(in srgb, var(--bg-panel-2, #17192e) 35%, #14162a); border: 1px solid var(--border-soft); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.prefs-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); }
.prefs-head h2 { margin: 0; font-size: 1.1rem; }
.prefs-body { overflow-y: auto; padding: 6px 16px 12px; display: grid; gap: 4px; }
.prefs-body section { padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.prefs-body section:last-child { border-bottom: 0; }
.prefs-body h3 { margin: 4px 0 6px; font-size: 0.9rem; color: var(--text-dim); }
.prefs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 6px 0; }
.prefs-label { display: grid; gap: 2px; flex: 1 1 200px; font-size: 0.9rem; }
.prefs-label small { color: var(--text-dim); font-size: 0.76rem; }
.prefs-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.prefs-seg button { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border-soft); background: transparent; color: inherit; font: inherit; font-size: 0.8rem; cursor: pointer; }
.prefs-seg button.on { background: color-mix(in srgb, var(--accent) 30%, transparent); border-color: var(--accent); font-weight: 700; }
.prefs-seg button:disabled { opacity: 0.45; cursor: not-allowed; }
.prefs-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.prefs-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.prefs-switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.15); transition: background 0.2s; pointer-events: none; }
.prefs-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.prefs-switch input:checked + span { background: var(--accent); }
.prefs-switch input:checked + span::after { transform: translateX(20px); }
.prefs-switch input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.prefs-note { margin: 0; padding: 8px 16px 12px; font-size: 0.75rem; color: var(--text-dim); }
/* Donner un avis (2026-10-29, js/lazy/feedback.js) : meme boite que les preferences. */
.feedback-box { width: min(520px, 100%); }
.feedback-box .prefs-body { gap: 8px; padding-top: 12px; }
.feedback-label { font-size: 0.85rem; color: var(--text-dim); }
.feedback-box textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 120px; padding: 10px; border-radius: 10px; border: 1px solid var(--border-soft); background: rgba(0, 0, 0, 0.2); color: var(--text); font: inherit; }
.feedback-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.feedback-moods { display: inline-flex; gap: 4px; }
.feedback-moods button { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--border-soft); background: transparent; font-size: 1.2rem; cursor: pointer; opacity: 0.6; }
.feedback-moods button.on { opacity: 1; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 25%, transparent); }
.feedback-count { color: var(--text-dim); }
.feedback-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Aide sur place (2026-10-29, js/lazy/game-help.js) */
.gh-btn { display: inline-flex; margin: 4px 0 10px auto; padding: 4px 12px; font-size: 0.8rem; float: right; }
.gh-list { margin: 0; padding-left: 18px; text-align: left; display: grid; gap: 8px; line-height: 1.5; font-size: 0.9rem; }

/* Bloc termine a masquer (2026-10-30, home-more.js) : petite croix discrete dans le titre. */
.done-hide { margin-left: auto; padding: 2px 8px; font-size: 0.8rem; line-height: 1; opacity: 0.6; }
.done-hide:hover, .done-hide:focus-visible { opacity: 1; }

/* 2026-11-07 : fiche d'une carte arc-en-ciel invisible. Le cadre anime
   (card-fx.css, animation tierSpin) remplacait l'animation d'apparition de la
   fenetre (cardModalIn), qui restait a opacite 0. Les deux animations ensemble. */
:root:not(#fx) .card-modal-overlay .card-modal[data-finish="rainbow"] { animation: cardModalIn 0.18s ease-out forwards, tierSpin 3s linear infinite; }
