/* seasons.css - Skins saisonniers et lot du 2026-10-19 : finitions mobile, profondeurs de fouille, Milo, machines interdites, Devine la carte, secrets, fluidite.
   UI V2 (2026-11-20) : le socle commun (fond, en-tete, panneaux, boutons,
   champs, onglets, modales) est dans core.css et les habillages par mode /
   saison dans skins.css ; ce fichier ne garde que ses composants propres.
   Ordre : tokens, core, base ... refonte, feuilles de page, skins. */
/* Interrupteur du joueur (carte du cadeau saisonnier). */
.season-skin-toggle { font-size: 0.78rem; }

/* Icones de ressources (2026-10-18) : toujours a la taille du texte, meme dans
   un bloc qui dimensionne toutes ses images (.gc-card img, .gatcha-tier img...). */
img.ico-token:not(.ico-free) { width: 1.25em; height: 1.25em; max-width: none; object-fit: contain; border-radius: 0; filter: none; vertical-align: -0.28em; }
.st-chip img.ico-token:not(.ico-free) { width: 16px; height: 16px; }
.inv-icon img.ico-token:not(.ico-free) { width: 24px; height: 24px; vertical-align: middle; }

/* Coherence (2026-10-18) : icones de ressources dans les grandes cases. */
.thing-icon img.ico-token:not(.ico-free), .season-chest-icon img.ico-token:not(.ico-free) { width: 1.6em; height: 1.6em; vertical-align: middle; }
.pv-counter-card .pv-redeem { white-space: normal; min-width: 0; max-width: 100%; }

/* Cinematique d'entree en saison (2026-10-18). */
.season-cine { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; overflow: hidden; cursor: pointer; opacity: 0; transition: opacity 0.45s ease;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--sc-a) 35%, transparent), transparent 60%), var(--sc-bg); }
.season-cine.sc-in { opacity: 1; }
.season-cine::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--sc-a2, var(--sc-a)) 45%, transparent), transparent 62%), var(--sc-bg2, var(--sc-bg)); }
.season-cine.sc-new::before { opacity: 1; }
.sc-center { position: relative; text-align: center; padding: 0 16px; }
.sc-icon { font-size: clamp(4rem, 18vmin, 9rem); transform: scale(0.2) rotate(-20deg); opacity: 0; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--sc-a2, var(--sc-a)) 70%, transparent)); }
.sc-in .sc-icon { animation: scIcon 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) 0.2s forwards; }
.sc-title { margin: 8px 0 4px; font-family: var(--font-brand, inherit); font-size: clamp(1.8rem, 6vmin, 3.2rem); color: #fff; opacity: 0; transform: translateY(14px); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.sc-sub { margin: 0; color: rgba(255, 255, 255, 0.8); opacity: 0; }
.sc-in .sc-title { animation: scText 0.6s ease 0.55s forwards; }
.sc-in .sc-sub { animation: scText 0.6s ease 0.8s forwards; }
.sc-burst { position: absolute; inset: 0; pointer-events: none; }
.sc-burst span { position: absolute; left: 50%; top: 45%; font-size: clamp(1.4rem, 4vmin, 2.4rem); opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
.sc-in .sc-burst span { animation: scBurst 1.4s cubic-bezier(0.15, 0.8, 0.3, 1) calc(0.45s + var(--i) * 0.025s) forwards; }
.season-cine.sc-out { -webkit-mask: radial-gradient(circle at 50% 45%, transparent 0 var(--sc-r, 0%), #000 calc(var(--sc-r, 0%) + 1%)); mask: radial-gradient(circle at 50% 45%, transparent 0 var(--sc-r, 0%), #000 calc(var(--sc-r, 0%) + 1%)); animation: scOpen 0.7s ease-in forwards; }
@property --sc-r { syntax: "<percentage>"; inherits: false; initial-value: 0%; } /* --sc-r, pas --r : --r porte la couleur de rarete partout (enregistrer --r en pourcentage cassait tous les cadres). */
@keyframes scIcon { to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes scText { to { opacity: 1; transform: none; } }
@keyframes scBurst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); } 25% { opacity: 1; } 100% { opacity: 0.85; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(25deg); } }
@keyframes scOpen { to { --sc-r: 150%; } }

.pv-counter-card { grid-template-columns: minmax(0, 1fr); }
.pv-counter-card .pv-redeem { gap: 4px; padding: 8px 6px; }

/* Lot du 2026-10-18 : histoire, defis de saison, surprises, nouveautes, compact, musee. */
.story-panel { display: flex; flex-direction: column; gap: 12px; }
.story-panel[hidden] { display: none; }
.story-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.story-head h2 { margin: 0; font-size: 1.1rem; }
.story-scene { display: flex; gap: 12px; align-items: flex-start; }
.story-who { font-size: 2.6rem; flex: none; }
.story-bubble { position: relative; flex: 1; padding: 12px 14px; border-radius: 14px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); }
.story-bubble strong { display: block; }
.story-bubble small { color: var(--accent-2); }
.story-bubble p { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.45; }
.story-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; }
.story-steps li small { color: var(--text-dim); margin-left: 4px; }
.story-steps li.done { color: #86efac; }
.story-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.season-quests { margin-top: 14px; }
.season-quests[hidden] { display: none; }
.season-quests h3 { margin: 0 0 8px; font-size: 1rem; }
.sq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sq-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-panel-2); }
.sq-list li.ready { box-shadow: 0 0 0 1px var(--accent-2); }
.sq-list li.done { opacity: 0.6; }
.sq-label { flex: 1; min-width: 0; }
.sq-label small { color: var(--text-dim); margin-left: 4px; }
.sq-ok { color: #86efac; font-size: 0.85rem; white-space: nowrap; }
.sq-bonus { margin: 6px 0 0; font-size: 0.8rem; }

.notes-dot { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--accent-3, #f472b6); color: #111; font-size: 0.68rem; font-weight: 800; vertical-align: middle; }
.pn-entry { padding: 14px 0; border-top: 1px solid var(--border-soft); }
.pn-entry:first-child { border-top: 0; }
.pn-entry header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pn-entry time { color: var(--accent-2); font-size: 0.85rem; font-weight: 700; }
.pn-entry h2 { margin: 0; font-size: 1.1rem; }
.pn-entry ul { margin: 8px 0 0; padding-left: 1.2em; line-height: 1.55; }
.pn-entry.is-new h2 { color: var(--accent-light, inherit); }
.pn-new { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--accent-3, #f472b6); color: #111; font-size: 0.72rem; font-weight: 800; }
.mu-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.mu-badge { padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); border: 1px dashed var(--border-soft); color: var(--text-dim); font-size: 0.8rem; }
.mu-badge.earned { border-style: solid; border-color: rgba(250, 204, 21, 0.6); color: #fde68a; background: rgba(250, 204, 21, 0.1); }
.recap-share { margin-left: auto; font-size: 0.82rem; padding: 6px 12px; }
.surprise-types { display: flex; flex-wrap: wrap; gap: 8px; }
.compact-bar { display: none; }
@media (max-width: 640px) {
  html[data-compact="1"] .lead { display: none; }
  html[data-compact="1"] .panel { padding: 12px; margin-bottom: 10px; }
  html[data-compact="1"] h1 { font-size: 1.3rem; margin-bottom: 6px; }
  html[data-compact="1"] h2 { font-size: 1rem; }
  html[data-compact="1"] main { padding-top: 8px; }
  html[data-compact="1"] .compact-bar { position: fixed; left: 8px; right: 8px; bottom: calc(var(--nav-bottom-h) + 8px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: color-mix(in srgb, var(--bg-panel-solid) 92%, transparent); border: 1px solid var(--border-soft); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); }
  html[data-compact="1"] .compact-bar > * { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 10px 6px; border-radius: 10px; font-size: 0.82rem; font-weight: 700; text-decoration: none; color: var(--text); background: var(--bg-panel-2); border: 0; }
  html[data-compact="1"] .compact-bar > :first-child { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
  html[data-compact="1"] body { padding-bottom: 64px; }
  .story-scene { flex-direction: column; }
}

/* Conforts (2026-10-18) : minuteurs, infobulles, tirer pour rafraichir. */
.inv-timers { margin: 8px 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.inv-timers ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.inv-timers a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none; background: rgba(255, 255, 255, 0.03); font-size: 0.82rem; }
.inv-timers a:hover { background: rgba(255, 255, 255, 0.07); }
.inv-timer-ico { width: 22px; text-align: center; flex: none; }
.inv-timer-label { flex: 1; min-width: 0; }
.inv-timer-left { color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-timers li.ready .inv-timer-left { color: #86efac; font-weight: 700; }
.res-pop { position: fixed; z-index: 1500; max-width: 260px; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--bg-panel-solid); border: 1px solid var(--border); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6); font-size: 0.82rem; }
.res-pop small { color: var(--text-dim); }
img.ico-token { cursor: help; }
button img.ico-token, a img.ico-token, label img.ico-token { cursor: inherit; }
.ptr-indicator { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 6px); left: 50%; z-index: 1400; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; color: var(--text); background: var(--bg-panel-solid); border: 1px solid var(--border); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6); opacity: 0; transform: translate(-50%, 0); pointer-events: none; }
.ptr-indicator.armed { color: var(--accent-2); border-color: var(--accent-2); }
.ptr-indicator.loading { animation: ptrSpin 0.6s linear infinite; }
@keyframes ptrSpin { to { transform: translate(-50%, 60px) rotate(360deg); } }

/* Murissoir (2026-10-18). */
.murissoir { margin: 18px 0; padding: 16px; border-radius: 16px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); }
.murissoir[hidden] { display: none; }
.rip-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rip-head h2 { margin: 0; font-size: 1.15rem; }
.rip-ready { padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(250, 204, 21, 0.14); border: 1px solid rgba(250, 204, 21, 0.5); color: #fde68a; font-size: 0.82rem; font-weight: 700; }
.rip-lead { margin: 6px 0 8px; font-size: 0.85rem; color: var(--text-dim); }
.rip-stages { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.78rem; color: var(--text-dim); margin-bottom: 12px; }
.rip-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rip-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px; border-radius: 14px; background: var(--bg-panel); border: 1px dashed var(--border-soft); text-align: center; min-height: 150px; justify-content: center; }
.rip-slot.planted { border-style: solid; }
.rip-slot.stage-2 { border-color: rgba(134, 239, 172, 0.5); }
.rip-slot.stage-3 { border-color: rgba(248, 113, 113, 0.55); }
.rip-slot.stage-4 { border-color: rgba(250, 204, 21, 0.7); box-shadow: 0 0 18px -6px rgba(250, 204, 21, 0.8); }
.rip-slot.locked { opacity: 0.55; }
.rip-ico { font-size: 2rem; }
.rip-slot small { color: var(--text-dim); font-size: 0.75rem; }
.rip-slot .st-bar { width: 100%; }
.rip-slot .btn, .rip-slot .btn-secondary, .rip-slot .btn-ghost { font-size: 0.8rem; padding: 6px 10px; }

/* Murissoir integre au distributeur (2026-10-18). */
.vend-cart-ripen { width: 100%; margin-top: 6px; }
.vend-cart-ripen small { opacity: 0.75; font-weight: 500; }
.vend-ripen-pick { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border-soft); }
.vend-ripen-pick > span { font-size: 0.82rem; font-weight: 700; }
.vend-ripen-stage { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 10px; background: var(--bg-panel-2); border: 1px solid var(--border-soft); color: var(--text); font: inherit; cursor: pointer; box-shadow: none; }
.vend-ripen-stage:hover { border-color: var(--accent-2); }
.vend-ripen-stage span { font-size: 0.75rem; color: var(--text-dim); font-weight: 500; }
.vend-lots { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.vend-lots:empty { display: none; }
.vend-lot { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px dashed var(--border-soft); }
.vend-lot.ready { border: 1px solid rgba(250, 204, 21, 0.7); box-shadow: 0 0 18px -6px rgba(250, 204, 21, 0.7); }
.vend-lot-ico { font-size: 1.6rem; flex: none; }
.vend-lot-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vend-lot-body small { color: var(--text-dim); font-size: 0.74rem; }
.vend-lot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.vend-lot-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.85rem; }
.vend-lot .btn { font-size: 0.8rem; padding: 8px 10px; }
.vend-lot .btn-ghost { font-size: 0.72rem; padding: 2px 8px; }
.lot-ripe-now { margin: 0; padding: 6px 10px; border-radius: 10px; background: rgba(250, 204, 21, 0.14); color: #fde68a; font-size: 0.8rem; font-weight: 700; }
@media (max-width: 640px) { .vend-lot { flex-wrap: wrap; } .vend-lot .btn { width: 100%; } }

/* Lots dans la colonne etroite du monnayeur : disposition verticale. */
.vend-lot { flex-direction: column; align-items: stretch; text-align: center; gap: 6px; }
.vend-lot-ico { align-self: center; }
.vend-lot-body strong { font-size: 0.85rem; line-height: 1.25; }
.vend-lot-side { flex-direction: row; justify-content: space-between; align-items: center; }
.vend-lot .btn { width: 100%; }

/* Roue de la fortune en cinematique (2026-10-18, js/wheel-fx.js). */
.wf-overlay { position: fixed; inset: 0; z-index: 1300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; overflow: hidden; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 35%, #000), #05030c 70%); }
.wf-overlay.wf-in { opacity: 1; }
.wf-overlay.wf-out { opacity: 0; }
.wf-rays { position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255, 235, 170, 0.09) 0 6deg, transparent 6deg 18deg); animation: wfRays 24s linear infinite; pointer-events: none; mask-image: radial-gradient(circle, #000 0 18%, transparent 55%); -webkit-mask-image: radial-gradient(circle, #000 0 18%, transparent 55%); }
.wf-won .wf-rays { animation-duration: 6s; background: repeating-conic-gradient(from 0deg, rgba(255, 225, 120, 0.2) 0 6deg, transparent 6deg 18deg); }
.wf-stage { position: relative; width: min(84vw, 62vh, 460px); aspect-ratio: 1; }
.wf-wheel { width: 100%; height: 100%; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 40%, transparent)); transform: scale(0.85); transition: transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
.wf-in .wf-wheel { transform: scale(1); }
.wf-svg { width: 100%; height: 100%; display: block; }
.wf-seg { stroke: rgba(0, 0, 0, 0.25); stroke-width: 1; }
.wf-sep { stroke: url(#wf-gold); stroke-width: 2.5; }
.wf-peg { fill: #fff6d5; stroke: #8a5a0a; stroke-width: 1.5; }
.wf-emoji { font-size: 30px; text-anchor: middle; dominant-baseline: middle; }
.wf-label { fill: #fff; font: 800 11px var(--font-display, system-ui), system-ui, sans-serif; text-anchor: middle; letter-spacing: 0.04em; paint-order: stroke; stroke: rgba(0, 0, 0, 0.45); stroke-width: 3px; text-transform: uppercase; }
.wf-label-jackpot { fill: #fff7cc; font-size: 12px; }
.wf-hub { filter: drop-shadow(0 0 6px rgba(196, 181, 253, 0.8)); }
.wf-hub-text { fill: #fff; font: 900 22px var(--font-brand, system-ui), system-ui, sans-serif; text-anchor: middle; paint-order: stroke; stroke: #3b0764; stroke-width: 3px; }
.wf-bulb { fill: #fff3b0; opacity: 0.45; }
.wf-spinning .wf-bulb { animation: wfChase 0.6s linear infinite; animation-delay: calc(var(--i) * -0.025s); }
.wf-won .wf-bulb { animation: wfBlink 0.35s steps(1) infinite; animation-delay: calc((var(--i) % 2) * 0.175s); }
.wf-seg-win { animation: wfWin 0.5s ease-in-out infinite alternate; }
.wf-pointer { position: absolute; left: 50%; top: -4%; width: 11%; transform: translateX(-50%); transform-origin: 50% 25%; z-index: 2; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.wf-pointer svg { width: 100%; display: block; }
.wf-pointer.wf-kick { animation: wfKick 0.16s ease-out; }
.wf-hint { margin: 0; color: rgba(255, 255, 255, 0.75); font-weight: 600; min-height: 1.4em; }
.wf-prize { position: absolute; inset: 0; margin: auto; width: min(88vw, 380px); height: fit-content; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 20px 20px; border-radius: 22px; text-align: center; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 55%, #120822), #0b0616); border: 1px solid rgba(255, 230, 150, 0.5); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px -10px rgba(255, 215, 100, 0.5); transform: scale(0.4); opacity: 0; transition: transform 0.55s cubic-bezier(0.2, 1.5, 0.35, 1), opacity 0.3s ease; z-index: 3; }
.wf-prize.wf-show { transform: scale(1); opacity: 1; }
.wf-prize-icon { font-size: 4.2rem; line-height: 1; filter: drop-shadow(0 0 22px rgba(255, 220, 120, 0.8)); animation: wfFloat 2.2s ease-in-out infinite; }
.wf-prize-icon img { width: 96px; height: 96px; object-fit: contain; }
.wf-prize-k { font: 900 1.6rem var(--font-brand, system-ui), system-ui, sans-serif; letter-spacing: 0.05em; background: linear-gradient(90deg, #fff3b0, #fbbf24, #fff3b0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wf-prize-label { font-size: 1.15rem; font-weight: 700; }
.wf-prize-jackpot { border-color: #fde047; box-shadow: 0 0 90px -5px rgba(253, 224, 71, 0.8); }
.wf-close { margin-top: 8px; min-width: 160px; }
.wf-flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: wfFlash 0.6s ease-out forwards; pointer-events: none; z-index: 4; }
.wf-coins { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.wf-coins span { position: absolute; top: -10%; font-size: 1.8rem; animation: wfCoin 2.4s ease-in forwards; }
@keyframes wfRays { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes wfChase { 0%, 70% { opacity: 0.3; } 80% { opacity: 1; fill: #fff; } 100% { opacity: 0.3; } }
@keyframes wfBlink { 0% { opacity: 1; fill: #fff; } 50% { opacity: 0.25; } }
@keyframes wfWin { from { filter: brightness(1); } to { filter: brightness(1.6) drop-shadow(0 0 10px #fff3b0); } }
@keyframes wfKick { 0% { transform: translateX(-50%) rotate(0); } 40% { transform: translateX(-50%) rotate(-22deg); } 100% { transform: translateX(-50%) rotate(0); } }
@keyframes wfFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.05); } }
@keyframes wfFlash { from { opacity: 0.85; } to { opacity: 0; } }
@keyframes wfCoin { to { transform: translateY(120vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .wf-rays, .wf-coins, .wf-bulb, .wf-prize-icon { animation: none !important; } }

/* Peche : choix entre 3 remous (2026-10-18, remplace la jauge de ferrage). */
.fish-pick { position: absolute; left: 50%; bottom: 10%; translate: -50% 0; z-index: 5; width: min(420px, 92%); display: grid; gap: 10px; justify-items: center; padding: 12px 12px 14px; border-radius: 16px; background: rgba(4, 12, 28, 0.82); border: 1px solid rgba(125, 211, 252, 0.45); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7); animation: lvxUp 0.25s ease both; }
.fish-pick.in-controls { position: static; translate: none; width: 100%; margin-top: 8px; }
.fp-label { font-weight: 800; letter-spacing: 0.02em; color: #e0f2fe; text-align: center; }
.fp-spots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.fp-spot { position: relative; height: 84px; border-radius: 50%/40%; border: 2px solid rgba(125, 211, 252, 0.5); background: radial-gradient(ellipse at 50% 55%, rgba(56, 189, 248, 0.35), rgba(8, 47, 73, 0.6) 70%); color: #e0f2fe; font: inherit; cursor: pointer; overflow: hidden; box-shadow: none; padding: 0; }
.fp-spot:hover, .fp-spot:focus-visible { border-color: #7dd3fc; transform: translateY(-2px); }
.fp-ring { position: absolute; left: 50%; top: 55%; width: 30px; height: 12px; translate: -50% -50%; border-radius: 50%; border: 2px solid rgba(224, 242, 254, 0.7); animation: fpRipple 1.6s ease-out infinite; }
.fp-ring2 { animation-delay: 0.8s; }
.fp-n { position: relative; font-weight: 900; font-size: 1.3rem; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.fp-chosen .fp-spot:not(.picked) { opacity: 0.55; }
.fp-spot.picked { border-color: #fff; box-shadow: 0 0 0 2px #fff inset; }
.fp-spot.golden { border-color: #fde047; background: radial-gradient(ellipse at 50% 55%, rgba(253, 224, 71, 0.6), rgba(120, 53, 15, 0.6) 70%); opacity: 1; }
.fp-spot.golden::after { content: "★"; position: absolute; top: 6px; right: 12px; color: #fde047; font-size: 1rem; }
@keyframes fpRipple { from { width: 20px; height: 8px; opacity: 1; } to { width: 90px; height: 34px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fp-ring { animation: none; } }

/* Taille du texte choisie dans le menu (2026-10-18, TextSize dans shell.js). */
html[data-text-size="large"] { font-size: 112.5%; }
html[data-text-size="xlarge"] { font-size: 125%; }

/* Raccourcis clavier (2026-10-18). */
.kbd-help { border-collapse: collapse; width: 100%; text-align: left; }
.kbd-help td { padding: 4px 8px; }
.kbd-help td:first-child { white-space: nowrap; }
.kbd-help kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.25); border-bottom-width: 2px; background: rgba(255, 255, 255, 0.06); font: 600 0.85rem/1.4 ui-monospace, monospace; text-align: center; }
@media (pointer: coarse) { .only-fine-pointer { display: none !important; } }

/* ==== Finitions mobile et uniformisation (2026-10-19) ==== */
/* Bandeau de l'heure de chance : fond opaque (le contenu ne transparait plus). */
.lucky-banner { background-color: var(--bg-deep, #06070f); }
.dig-bag { display: block; line-height: 1.6; }
.dig-bag .ico-art { vertical-align: -0.3em; }
@media (max-width: 640px) {

  .lucky-banner { padding: 4px 12px; font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Rangees de puces : une ligne qui defile, comme les rayons de la boutique. */
  .obj-tabs, .cal-filters, .dig-shop, #games-summary { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); padding-right: 20px; }
  .obj-tabs::-webkit-scrollbar, .cal-filters::-webkit-scrollbar, .dig-shop::-webkit-scrollbar, #games-summary::-webkit-scrollbar { display: none; }
  .obj-tabs > *, .cal-filters > *, .dig-shop > *, #games-summary > * { flex: 0 0 auto; white-space: nowrap; }
  #games-summary { display: flex; gap: 6px; }
  .cal-filters { display: flex; gap: 6px; }
  /* Statistiques : deux tuiles par ligne. */
  .mystats-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* Retour en haut : plus discret, ne cache plus les boutons. */
  .back-to-top { width: 40px; height: 40px; font-size: 1rem; opacity: 0.85; right: 12px; }
}
@media (max-width: 420px) {
  /* Filtres de la collection : un menu par ligne, plus de libelles tronques. */
  .toolbar-row .toolbar-group > select { flex: 1 1 100%; }
}
/* Cibles tactiles d'au moins 32 px. */
@media (pointer: coarse) {
  .fav-btn, .card-quick-action, .ext-fold-toggle, .pv-withdraw, .vend-lot-side .btn-ghost, .dig-shop-more, .sleeve-swatch, .set-summary-link { min-height: 32px; min-width: 32px; }
  .dig-shop-more, .set-summary-link, .ext-fold-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* Saisie dans une fenetre du site (Prompt, ui.js). */
.prompt-input { width: 100%; margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-panel-2, rgba(255,255,255,0.05)); color: var(--text); font: inherit; font-size: 1rem; }
.prompt-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Ressources dorees (appat dore = vers dores), 2026-10-19. */
img.ico-gold:is(.ico-token, .ico-art):not(.ico-free), .ico-gold { filter: sepia(1) saturate(5) hue-rotate(-8deg) brightness(1.15) contrast(1.05) drop-shadow(0 0 2px rgba(250, 204, 21, 0.85)); }

/* ==== Fouille : un decor par profondeur (2026-10-19) ==== */
.dig-site { position: relative; overflow: hidden; transition: background 0.5s ease, border-color 0.5s ease; }
.dig-site > * { position: relative; z-index: 1; }
.dig-site::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.9; }
.dig-depth-banner { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; color: #fef3c7; }
.dig-depth-banner .ddb-icon { font-size: 1.6rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.dig-depth-banner small { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.dig-depth-banner strong { font-family: var(--font-display, inherit); font-size: 1.05rem; letter-spacing: 0.02em; }
.dig-site-enter { animation: digSiteEnter 0.6s ease both; }
@keyframes digSiteEnter { from { filter: brightness(0.3) blur(2px); transform: translateY(6px); } to { filter: none; transform: none; } }

/* 1 · Surface : terre et herbe au soleil. */
.dig-site[data-depth="1"] { background: linear-gradient(180deg, #3f6212 0, #365314 10px, #4a3423 10px, #2f2117 100%); border-color: rgba(163, 230, 53, 0.35); }
.dig-site[data-depth="1"]::after { background: radial-gradient(ellipse at 80% -10%, rgba(253, 224, 71, 0.22), transparent 55%); }
.dig-site[data-depth="1"] .dig-tile:not(.dug) { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 6px, transparent 6px 14px), linear-gradient(160deg, #6b4a2e, #3f2c1b); }

/* 2 · Galeries : pierre grise etayee, lueur de lanterne. */
.dig-site[data-depth="2"] { background: linear-gradient(180deg, #2a2724, #1c1a18); border-color: rgba(251, 191, 36, 0.3); }
.dig-site[data-depth="2"]::after { background: radial-gradient(circle at 12% 10%, rgba(251, 191, 36, 0.28), transparent 32%), radial-gradient(circle at 88% 12%, rgba(251, 191, 36, 0.2), transparent 30%), linear-gradient(90deg, rgba(120, 72, 32, 0.55) 0 10px, transparent 10px calc(100% - 10px), rgba(120, 72, 32, 0.55) calc(100% - 10px)), linear-gradient(180deg, rgba(120, 72, 32, 0.55) 0 8px, transparent 8px); animation: digLantern 3.5s ease-in-out infinite alternate; }
.dig-site[data-depth="2"] .dig-tile:not(.dug) { background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 12px), linear-gradient(160deg, #57534e, #33302c); }
@keyframes digLantern { from { opacity: 0.75; } to { opacity: 1; } }

/* 3 · Cavernes : roche bleutee et eclats de cristaux. */
.dig-site[data-depth="3"] { background: linear-gradient(180deg, #172033, #0b1120); border-color: rgba(103, 232, 249, 0.35); }
.dig-site[data-depth="3"]::after { background-image: radial-gradient(circle, rgba(165, 243, 252, 0.9) 0 1.5px, transparent 2px), radial-gradient(circle, rgba(196, 181, 253, 0.8) 0 1px, transparent 1.5px); background-size: 90px 70px, 130px 110px; background-position: 10px 20px, 50px 5px; animation: digSparkle 4s ease-in-out infinite alternate; }
.dig-site[data-depth="3"] .dig-tile:not(.dug) { background: radial-gradient(circle at 70% 30%, rgba(103, 232, 249, 0.18), transparent 40%), linear-gradient(160deg, #334155, #1e293b); border-color: rgba(103, 232, 249, 0.2); }
@keyframes digSparkle { from { opacity: 0.35; } to { opacity: 0.95; } }

/* 4 · Gouffre : basalte et failles de lave. */
.dig-site[data-depth="4"] { background: linear-gradient(180deg, #1c1210, #0c0706); border-color: rgba(249, 115, 22, 0.45); box-shadow: inset 0 -30px 60px -30px rgba(234, 88, 12, 0.55), inset 0 2px 18px rgba(0,0,0,0.5); }
.dig-site[data-depth="4"]::after { background: radial-gradient(ellipse at 50% 110%, rgba(249, 115, 22, 0.45), transparent 60%); animation: digLava 2.8s ease-in-out infinite alternate; }
.dig-site[data-depth="4"] .dig-tile:not(.dug) { background: linear-gradient(115deg, transparent 46%, rgba(249, 115, 22, 0.55) 48%, rgba(253, 186, 116, 0.7) 49%, transparent 51%), linear-gradient(160deg, #292524, #0c0a09); border-color: rgba(249, 115, 22, 0.25); }
@keyframes digLava { from { opacity: 0.6; } to { opacity: 1; } }

/* 5 · Noyau : cristal irise qui pulse. */
.dig-site[data-depth="5"] { background: linear-gradient(160deg, #2e1065, #134e4a 60%, #1e1b4b); border-color: rgba(192, 132, 252, 0.5); }
.dig-site[data-depth="5"]::after { background: conic-gradient(from 0deg at 50% 50%, rgba(192, 132, 252, 0.18), rgba(45, 212, 191, 0.18), rgba(244, 114, 182, 0.18), rgba(192, 132, 252, 0.18)); animation: digCore 12s linear infinite; }
.dig-site[data-depth="5"] .dig-tile:not(.dug) { background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 40%), linear-gradient(160deg, #6d28d9, #0f766e); border-color: rgba(233, 213, 255, 0.35); }
@keyframes digCore { to { filter: hue-rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { .dig-site::after, .dig-site-enter { animation: none !important; } }

.dig-site[data-depth="4"] .dig-tile[data-variant="1"]:not(.dug) { background: linear-gradient(65deg, transparent 38%, rgba(249, 115, 22, 0.5) 40%, rgba(253, 186, 116, 0.65) 41%, transparent 43%), linear-gradient(160deg, #292524, #0c0a09); }
.dig-site[data-depth="4"] .dig-tile[data-variant="2"]:not(.dug) { background: linear-gradient(150deg, transparent 55%, rgba(249, 115, 22, 0.5) 57%, rgba(253, 186, 116, 0.65) 58%, transparent 60%), linear-gradient(160deg, #292524, #0c0a09); }
.dig-site[data-depth="4"] .dig-tile[data-variant="3"]:not(.dug) { background: radial-gradient(circle at 70% 75%, rgba(249, 115, 22, 0.45), transparent 22%), linear-gradient(160deg, #292524, #0c0a09); }
.dig-site[data-depth="4"] .dig-tile[data-variant="4"]:not(.dug) { background: linear-gradient(30deg, transparent 60%, rgba(249, 115, 22, 0.5) 62%, rgba(253, 186, 116, 0.65) 63%, transparent 65%), linear-gradient(160deg, #292524, #0c0a09); }

/* Devine la carte : gain possible (2026-10-19). */
.guess-gain { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 10px auto 0; max-width: 520px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(250, 204, 21, 0.14), rgba(168, 85, 247, 0.12)); border: 1px solid rgba(250, 204, 21, 0.35); }
.gg-main small { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.gg-main strong { font-family: var(--font-display, inherit); font-size: 1.6rem; color: #fde047; font-variant-numeric: tabular-nums; }
.gg-steps { display: flex; gap: 6px; }
.gg-step { padding: 2px 8px; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700; background: rgba(255, 255, 255, 0.06); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.gg-step.on { background: rgba(250, 204, 21, 0.25); color: #fde047; }
.gg-step.lost { text-decoration: line-through; opacity: 0.5; }
.gg-day { flex-basis: 100%; font-size: 0.78rem; color: var(--text-dim); }
.guess-gain.gg-drop .gg-main strong { color: #f87171; animation: ggShake 0.4s ease; }
.guess-gain.won { border-color: rgba(74, 222, 128, 0.5); background: linear-gradient(135deg, rgba(74, 222, 128, 0.16), rgba(250, 204, 21, 0.1)); }
.guess-gain.lost .gg-main strong { color: var(--text-dim); }
@keyframes ggShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .guess-gain.gg-drop .gg-main strong { animation: none; } }

/* ==== Milo : medaillon (2026-10-19, remplace collier et cape) ==== */
.dig-dog-collar, .dig-dog-cape { display: none !important; }
.dig-kennel-dog-wrap { --ring: linear-gradient(135deg, #f4a261, #9c4a1a); width: 68px; height: 68px; flex: 0 0 68px; border-radius: 50%; padding: 4px; background: var(--ring); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7); }
.dig-kennel-dog-wrap::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3b2f4a, #1a1424 75%); }
.dig-kennel-dog-wrap .dig-kennel-dog { position: relative; z-index: 1; font-size: 2.1rem; }
.dig-kennel-dog-wrap[data-tier="bleu"] { --ring: linear-gradient(135deg, #93c5fd, #1d4ed8); }
.dig-kennel-dog-wrap[data-tier="or"] { --ring: linear-gradient(135deg, #fff3b0, #d4a017 55%, #8a6408); box-shadow: 0 0 14px -2px rgba(250, 204, 21, 0.55), 0 6px 16px -6px rgba(0, 0, 0, 0.7); }
.dig-kennel-dog-wrap[data-tier="cape"] { --ring: conic-gradient(from 0deg, #f472b6, #facc15, #4ade80, #38bdf8, #a78bfa, #f472b6); box-shadow: 0 0 18px -2px rgba(167, 139, 250, 0.7), 0 6px 16px -6px rgba(0, 0, 0, 0.7); animation: miloRing 6s linear infinite; }
.dig-dog-badge { position: absolute; z-index: 2; right: -4px; top: -6px; font-size: 1.05rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.dig-kennel-dog-wrap[data-tier="or"] .dig-dog-badge::after { content: "\1F3C5"; }
.dig-kennel-dog-wrap[data-tier="cape"] .dig-dog-badge::after { content: "\1F451"; }
@keyframes miloRing { to { filter: hue-rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dig-kennel-dog-wrap[data-tier="cape"] { animation: none; } }

/* Moka : tourne vers sa canne (le retournement ne passe plus par transform,
   que l'animation de balancement ecrasait). */
.fish-cat-body { transform: none; scale: -1 1; }

/* Moka : meme medaillon que Milo (2026-10-19). */
.dig-kennel-dog-wrap .fish-cat-pic { position: relative; z-index: 1; font-size: 2.1rem; }

/* ==== Salle des Machines Interdites (2026-10-19) ==== */
/* Engrenages caches (ARG) : discrets, ils se revelent au survol. */
.arg-gear { position: absolute; right: 6px; bottom: 4px; z-index: 6; display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; border: 0; background: none; box-shadow: none; color: inherit; cursor: pointer; opacity: 0.18; font-size: 0.85rem; transition: opacity 0.3s ease, transform 0.3s ease; }
.arg-gear:hover, .arg-gear:focus-visible { opacity: 0.95; transform: scale(1.25); }
.arg-gear:hover .arg-gear-ico { animation: argSpin 2s linear infinite; }
.arg-gear-ico { display: inline-block; }
.arg-gear-n { font: 700 0.55rem/1 ui-serif, Georgia, serif; letter-spacing: 0.05em; opacity: 0.8; }
.arg-gear.taken { opacity: 0.45; filter: sepia(1) saturate(3); }
.arg-gear-fall { position: fixed; right: auto; left: 50%; top: -40px; bottom: auto; font-size: 2rem; opacity: 1; z-index: 3000; animation: argFall 1.6s cubic-bezier(.3,1.4,.6,1) forwards; }
@keyframes argSpin { to { transform: rotate(360deg); } }
@keyframes argFall { to { top: 45vh; transform: rotate(540deg); } }
.arg-board { margin: 26px auto 0; max-width: 560px; padding: 16px; border-radius: 14px; border: 1px dashed rgba(248, 113, 113, 0.4); background: rgba(40, 6, 6, 0.35); }
.arg-board p { margin: 0 0 12px; color: #fca5a5; font-style: italic; }
.arg-slots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.arg-slot { display: grid; gap: 2px; justify-items: center; padding: 8px 0 4px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08); }
.arg-slot b { font: 1.2rem/1 Bungee, var(--font-display, sans-serif); color: rgba(255, 255, 255, 0.25); }
.arg-slot.on b { color: #fde68a; text-shadow: 0 0 10px rgba(253, 230, 138, 0.6); }
.arg-slot small { font-size: 0.6rem; color: var(--text-dim); }

/* Page de la porte : ambiance sombre. */
body.forbidden-page { background: radial-gradient(ellipse at 50% 10%, #2a0a0a, #0a0505 60%, #050203); }
.fd-panel { background: linear-gradient(180deg, rgba(30, 10, 10, 0.92), rgba(12, 6, 8, 0.95)); border-color: rgba(248, 113, 113, 0.25); }
.fd-inscription { text-align: center; font: italic 600 1rem/1.6 ui-serif, Georgia, serif; color: #fca5a5; text-shadow: 0 0 12px rgba(248, 113, 113, 0.35); margin: 4px 0 18px; }
.fd-stage { position: relative; display: grid; place-items: center; perspective: 1400px; padding: 10px 0 20px; }
.fd-light { position: absolute; inset: 10% 20%; border-radius: 50%; background: radial-gradient(circle, rgba(253, 230, 138, 0.9), rgba(251, 146, 60, 0.35) 40%, transparent 70%); opacity: 0; transition: opacity 1.5s ease 0.6s; pointer-events: none; }
.fd-stage.fd-open .fd-light { opacity: 1; }
.fd-door { position: relative; z-index: 1; width: min(360px, 82vw); aspect-ratio: 1; transform-origin: 8% 50%; transition: transform 2s cubic-bezier(.5,0,.3,1); }
.fd-door-face { position: absolute; inset: 0; border-radius: 50%; background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 40%),
    repeating-conic-gradient(from 0deg, #3f3f46 0 10deg, #52525b 10deg 20deg),
    radial-gradient(circle, #27272a, #18181b);
  box-shadow: 0 0 0 10px #1c1917, 0 0 0 14px #57534e, 0 0 0 18px #1c1917, 0 30px 80px -20px rgba(0, 0, 0, 0.9), inset 0 0 60px rgba(0, 0, 0, 0.8); }
.fd-rim { position: absolute; inset: 8%; border-radius: 50%; border: 6px solid #71717a; box-shadow: inset 0 0 0 3px #27272a, inset 0 0 30px rgba(0, 0, 0, 0.7); background-image: radial-gradient(circle, #a1a1aa 0 3px, transparent 3.5px); background-size: 34px 34px; background-position: center; }
.fd-locks { position: absolute; inset: 0; }
.fd-lock { position: absolute; left: 50%; top: 50%; width: 14%; height: 14%; margin: -7% 0 0 -7%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #78716c, #292524); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 0 2px #44403c; transform: rotate(calc(var(--i) * 360deg / var(--n))) translateY(-170%) rotate(calc(var(--i) * -360deg / var(--n))); display: grid; place-items: center; transition: box-shadow 0.6s ease, background 0.6s ease; }
.fd-hole { width: 22%; height: 46%; border-radius: 40% 40% 20% 20%; background: #0c0a09; clip-path: polygon(30% 0, 70% 0, 70% 45%, 100% 100%, 0 100%, 30% 45%); }
.fd-lock.on { background: radial-gradient(circle at 40% 35%, #fde68a, #b45309); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 0 2px #fbbf24, 0 0 18px rgba(251, 191, 36, 0.8); }
.fd-lock.on .fd-hole { background: #78350f; }
.fd-lock.just { animation: fdLockIn 0.9s ease; }
@keyframes fdLockIn { 0% { filter: brightness(3); } 100% { filter: none; } }
.fd-wheel { position: absolute; left: 50%; top: 50%; width: 34%; height: 34%; margin: -17% 0 0 -17%; border-radius: 50%; border: 8px solid #a8a29e; box-shadow: 0 0 0 3px #292524, inset 0 0 0 3px #292524, 0 6px 14px rgba(0, 0, 0, 0.7); transition: transform 1.6s cubic-bezier(.6,0,.3,1); }
.fd-wheel span { position: absolute; left: 50%; top: 50%; width: 140%; height: 8px; margin: -4px 0 0 -70%; background: linear-gradient(#d6d3d1, #78716c); border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.fd-wheel span:nth-child(2) { transform: rotate(45deg); } .fd-wheel span:nth-child(3) { transform: rotate(90deg); } .fd-wheel span:nth-child(4) { transform: rotate(135deg); }
.fd-wheel::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #e7e5e4, #57534e); z-index: 1; }
.fd-door.fd-unlocking .fd-wheel { transform: rotate(720deg); }
.fd-door.fd-opening { transform: rotateY(-105deg); }
.fd-door-status { text-align: center; color: #fca5a5; margin: 4px 0 18px; }
.fd-forge { max-width: 760px; margin: 0 auto; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(251, 146, 60, 0.25); }
.fd-forge-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fd-forge-head h2 { margin: 0; }
.fd-skeys { display: inline-flex; align-items: center; gap: 6px; font-size: 1.05rem; }
.fd-skey-img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6)); }
.fd-forge-help { color: var(--text-dim); font-size: 0.85rem; }
.fd-recipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; margin: 10px 0 14px; }
.fd-ing { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.fd-ing img { width: 70%; height: 70%; object-fit: contain; }
.fd-ing small { position: absolute; right: 3px; bottom: 1px; font-size: 0.65rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fd-ing.ok { border-color: rgba(74, 222, 128, 0.45); }
.fd-ing.ko { opacity: 0.4; filter: grayscale(0.8); }

/* La machine a sous. */
.fm-cabinet { position: relative; max-width: 560px; margin: 0 auto; padding: 18px; border-radius: 24px 24px 16px 16px; background: linear-gradient(180deg, #450a0a, #1c0606 60%, #0c0303); border: 3px solid #7f1d1d; box-shadow: 0 0 0 4px #fbbf24, 0 0 40px -6px rgba(251, 191, 36, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.7); }
.fm-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.fm-title { font: 1.2rem/1 Bungee, var(--font-display, sans-serif); color: #fde68a; text-shadow: 0 0 8px rgba(251, 191, 36, 0.8), 0 0 22px rgba(239, 68, 68, 0.7); letter-spacing: 0.04em; animation: fmNeon 3s ease-in-out infinite; }
@keyframes fmNeon { 50% { opacity: 0.82; } 52% { opacity: 1; } 54% { opacity: 0.7; } 56% { opacity: 1; } }
.fm-jackpot { padding: 6px 12px; border-radius: 10px; background: #0a0a0a; border: 2px solid #b45309; font: 700 1.1rem/1 ui-monospace, monospace; color: #fbbf24; text-shadow: 0 0 8px rgba(251, 191, 36, 0.8); font-variant-numeric: tabular-nums; }
.fm-jackpot small { display: block; font: 600 0.6rem/1.4 var(--font-body, sans-serif); color: #fca5a5; text-transform: uppercase; letter-spacing: 0.12em; text-shadow: none; }
.fm-window { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; border-radius: 14px; background: #0a0a0a; box-shadow: inset 0 0 0 3px #78350f, inset 0 10px 24px rgba(0, 0, 0, 0.9); }
.fm-reel { position: relative; height: 240px; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #d6d3d1, #fafaf9 30%, #fafaf9 70%, #d6d3d1); box-shadow: inset 0 18px 18px -12px rgba(0, 0, 0, 0.7), inset 0 -18px 18px -12px rgba(0, 0, 0, 0.7); }
.fm-strip { will-change: transform; }
.fm-sym { height: 80px; display: grid; place-items: center; font-size: 2.6rem; }
.fm-payline { position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; margin-top: -1px; background: rgba(239, 68, 68, 0.75); box-shadow: 0 0 8px rgba(239, 68, 68, 0.9); pointer-events: none; }
.fm-reel.stop { animation: fmBounce 0.25s ease; }
@keyframes fmBounce { 50% { transform: translateY(4px); } }
.fm-reel.win { box-shadow: inset 0 0 0 4px #fbbf24, 0 0 18px rgba(251, 191, 36, 0.8), inset 0 18px 18px -12px rgba(0, 0, 0, 0.7), inset 0 -18px 18px -12px rgba(0, 0, 0, 0.7); }
.fm-reel.odd { box-shadow: inset 0 0 0 4px #60a5fa, inset 0 18px 18px -12px rgba(0, 0, 0, 0.7), inset 0 -18px 18px -12px rgba(0, 0, 0, 0.7); animation: fmOdd 1.2s ease-in-out infinite; }
@keyframes fmOdd { 50% { filter: brightness(1.15); } }
.fm-heat { display: flex; align-items: center; gap: 8px; margin: 12px 2px 0; font-size: 0.8rem; color: #fca5a5; }
.fm-heat-bar { flex: 1; height: 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.fm-heat-bar div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #ef4444); transition: width 0.6s ease; }
.fm-heat.hot .fm-heat-bar div { animation: fmHot 0.6s ease-in-out infinite alternate; }
@keyframes fmHot { to { filter: brightness(1.5); } }
.fm-heat small { font-variant-numeric: tabular-nums; }
.fm-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.fm-lever { min-width: 200px; padding: 14px 22px; border: 0; border-radius: var(--radius-pill); font: 1rem/1 Bungee, var(--font-display, sans-serif); letter-spacing: 0.04em; color: #fff; background: radial-gradient(circle at 40% 30%, #fca5a5, #dc2626 45%, #7f1d1d); box-shadow: 0 6px 0 #450a0a, 0 10px 24px -6px rgba(239, 68, 68, 0.7); cursor: pointer; transition: transform 0.1s ease, box-shadow 0.1s ease; }
.fm-lever:active, .fm-lever.pulled { transform: translateY(5px); box-shadow: 0 1px 0 #450a0a, 0 4px 12px -6px rgba(239, 68, 68, 0.7); }
.fm-lever:disabled { filter: grayscale(0.5); cursor: progress; }
.fm-result { min-height: 54px; margin-top: 14px; text-align: center; }
.fm-result.win .fm-label { color: #fde68a; text-shadow: 0 0 10px rgba(251, 191, 36, 0.7); }
.fm-result.triple .fm-label { font-size: 1.3rem; }
.fm-label { font-weight: 800; font-size: 1.05rem; }
.fm-forced { color: #fb923c; font-weight: 800; animation: fmHot 0.5s ease-in-out infinite alternate; }
.fm-gains { margin-top: 6px; font-weight: 700; }
.fm-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.fm-card { position: relative; width: 84px; padding: 4px 4px 6px; border-radius: 10px; background: #1c0a0a; border: 2px solid var(--rc); box-shadow: 0 0 0 1px #7f1d1d, 0 0 14px -4px var(--rc); animation: fmCardIn 0.45s cubic-bezier(.3,1.4,.6,1) both; }
.fm-card img, .fm-card-ph { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 6px; display: grid; place-items: center; background: #0a0a0a; }
.fm-card small { display: block; margin-top: 3px; font-size: 0.68rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-card em { display: block; font-size: 0.6rem; font-style: normal; color: var(--rc); }
.fm-card-ed { position: absolute; left: 6px; top: 6px; font-size: 0.8rem; filter: drop-shadow(0 1px 2px #000); }
.fm-card-fin { position: absolute; right: 6px; top: 6px; font-size: 0.8rem; }
@keyframes fmCardIn { from { transform: scale(0.4) rotate(-8deg); opacity: 0; } }
.fm-nudge { margin-top: 10px; }
.fm-miss { margin-top: 8px; color: #93c5fd; font-style: italic; }
.fm-ten { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; margin-top: 8px; font-size: 1.1rem; }
.fm-ten-row { padding: 3px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); text-align: left; }
.fm-ten-row small { font-size: 0.65rem; color: var(--text-dim); }
.fm-ten-row.pair { background: rgba(251, 191, 36, 0.12); }
.fm-ten-row.triple { background: rgba(251, 191, 36, 0.3); }
.fm-cabinet.fm-jackpot-hit { animation: fmJackpot 0.18s linear 12; }
@keyframes fmJackpot { 50% { box-shadow: 0 0 0 4px #fff, 0 0 80px 10px rgba(253, 230, 138, 0.95); } }
.fm-help { max-width: 560px; margin: 14px auto 0; font-size: 0.85rem; color: var(--text-dim); }
.fm-help summary { cursor: pointer; color: #fca5a5; }
.fm-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; max-width: 560px; margin: 12px auto 0; font-size: 0.8rem; color: var(--text-dim); }
.fm-winners { flex-basis: 100%; text-align: center; }
@media (max-width: 480px) { .fm-reel { height: 180px; } .fm-sym { height: 60px; font-size: 2rem; } .fm-lever { min-width: 0; flex: 1; } }
@media (prefers-reduced-motion: reduce) { .fm-title, .fm-reel.odd, .fm-heat.hot .fm-heat-bar div, .fm-forced, .fm-cabinet.fm-jackpot-hit, .arg-gear-fall { animation: none; } .fd-door, .fd-wheel { transition-duration: 0.3s; } }

/* Edition Interdite : cadre rouge sombre, chaines. */
[data-edition="forbidden"] { --ed: #dc2626; }
:root:not(#fx) .collection-card[data-edition="forbidden"],
:root:not(#fx) .craft-card[data-edition="forbidden"],
:root:not(#fx) .card-modal[data-edition="forbidden"],
:root:not(#fx) .card[data-edition="forbidden"] {
  --ed: #dc2626; --fx-e: contrast(1.08) saturate(1.1) brightness(0.96);
  --fx-e-shine: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0) 0 14px, rgba(127, 29, 29, 0.28) 14px 17px), radial-gradient(80% 60% at 50% 100%, rgba(220, 38, 38, 0.38), transparent 70%), linear-gradient(180deg, #dc26261f, #7f1d1d40);
  --fx-e-size: 100% 100%, 100% 100%, 100% 100%;
  --fx-e-ring: inset 0 0 0 5px color-mix(in srgb, #dc2626 92%, transparent), inset 0 0 24px -4px #7f1d1d; --fx-e-glow: 0 0 24px -2px #dc2626;
}

/* Engrais dore : l'engrais de dino avec le filtre dore (2026-10-19). */
.emo-poop { display: inline-block; }
.emo-poop.ico-gold { filter: sepia(1) saturate(6) hue-rotate(-12deg) brightness(1.25) drop-shadow(0 0 3px rgba(250, 204, 21, 0.9)); }

/* Retouches machine/porte (2026-10-19). */
.fd-lock { transform: rotate(calc(var(--i) * 360deg / var(--n))) translateY(-262%) rotate(calc(var(--i) * -360deg / var(--n))); }
.fm-ten-row { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.fm-ten-row small { overflow: hidden; text-overflow: ellipsis; }
.fm-lever { white-space: nowrap; }
@media (max-width: 480px) { .fm-lever { font-size: 0.85rem; padding: 14px 12px; } .fm-controls .btn { white-space: nowrap; } }

/* ==== Devine la carte : refonte (2026-10-19) ==== */
.guess-game { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; }
.guess-visual { display: grid; gap: 12px; justify-items: center; }
.guess-frame { border: 0; padding: 8px; border-radius: 18px; background: linear-gradient(135deg, #fde68a, #b45309 45%, #fde68a 70%, #92400e); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4); }
.guess-frame .guess-img { border-radius: 11px; }
.guess-frame::before { content: ""; position: absolute; inset: 8px; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.45); pointer-events: none; z-index: 2; }
.guess-frame::after { top: 16px; right: 16px; z-index: 3; }
.guess-frame.revealed { background: linear-gradient(135deg, #bbf7d0, #15803d 50%, #bbf7d0); }
.guess-zoom { position: absolute; left: 16px; bottom: 16px; z-index: 3; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(8, 8, 16, 0.78); color: #fde68a; font-weight: 800; font-size: 0.85rem; font-variant-numeric: tabular-nums; backdrop-filter: blur(4px); }
.guess-rounds-host .guess-rounds { display: flex; gap: 8px; justify-content: center; }
.guess-side { gap: 16px; align-content: start; }
.guess-side .guess-gain { margin: 0; max-width: none; }
.guess-side .guess-gain:empty { display: none; }
.guess-choices { gap: 12px; }
.guess-choice { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; text-align: left; font-weight: 700; font-size: 1rem; border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--bg-panel-2) 90%, #fff 4%), var(--bg-panel-2)); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; }
.guess-choice:not(:disabled):hover { box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 0 18px -6px var(--accent); }
.guess-choice:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.gc-letter { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font: 0.85rem/1 Bungee, var(--font-display, sans-serif); color: #1c1917; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2); }
.gc-name { min-width: 0; overflow-wrap: anywhere; }
.guess-choice.right .gc-letter { background: linear-gradient(135deg, #bbf7d0, #22c55e); }
.guess-choice.wrong .gc-letter { background: linear-gradient(135deg, #fecaca, #ef4444); }
.guess-tries { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; margin: 0; }
.guess-streak { padding-top: 12px; border-top: 1px solid var(--border-soft); font-size: 0.9rem; color: var(--text-dim); }
.guess-streak strong { color: var(--text); }
.guess-result.win, .guess-result.lose { padding: 12px 14px; border-radius: 14px; }
@media (max-width: 640px) {
  .guess-game { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .guess-frame { max-width: 210px; }
  .guess-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .guess-choice { min-height: 52px; padding: 8px 10px; gap: 8px; font-size: 0.9rem; }
  .gc-letter { flex-basis: 24px; height: 24px; font-size: 0.7rem; }
}

/* Cadre dessine par-dessus l image zoomee (sinon le zoom recouvre la bordure). */
.guess-frame { padding: 0; background: #0b0b14; }
.guess-frame .guess-img { border-radius: 18px; }
.guess-frame::before { inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 8px #c9971f, inset 0 0 0 10px rgba(253, 230, 138, 0.9), inset 0 0 0 11px rgba(0, 0, 0, 0.45), inset 0 0 44px rgba(0, 0, 0, 0.5); }
.guess-frame.revealed { background: #0b0b14; }
.guess-frame.revealed::before { box-shadow: inset 0 0 0 8px #15803d, inset 0 0 0 10px rgba(187, 247, 208, 0.9), inset 0 0 0 11px rgba(0, 0, 0, 0.45), inset 0 0 44px rgba(0, 0, 0, 0.4); }

/* Acces a la salle interdite (2026-10-19). */
.fd-denied { text-align: center; padding: 40px 12px; }
.fd-whisper { color: var(--text-dim); font-style: italic; opacity: 0.8; animation: fdWhisper 4s ease-in-out infinite; }
@keyframes fdWhisper { 50% { opacity: 0.35; } }
.secret-banner { display: grid; gap: 10px; justify-items: center; background: radial-gradient(circle at 50% 0%, rgba(127, 29, 29, 0.6), rgba(10, 5, 5, 0.9)); border-color: rgba(248, 113, 113, 0.45); color: #fecaca; }
.secret-banner p { margin: 0; font: italic 600 1rem/1.5 ui-serif, Georgia, serif; }
.secret-gear { font-size: 2.2rem; animation: argSpin 4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .fd-whisper, .secret-gear { animation: none; } }

/* ==== Cinematique du mot et porte enigmatique (2026-10-19) ==== */
.sc-overlay { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; background: #000; opacity: 0; transition: opacity 1.2s ease; overflow: hidden; cursor: default; }
.sc-overlay.sc-in { opacity: 1; animation: scShake 0.5s linear 2 0.6s; }
@keyframes scShake { 25% { transform: translate(-3px, 2px); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-2px, -3px); } }
.sc-gears { position: absolute; width: min(70vmin, 520px); aspect-ratio: 1; }
.sc-gears span { position: absolute; left: 50%; top: 50%; font-size: clamp(1.2rem, 4vmin, 2rem); opacity: 0; filter: sepia(1) saturate(4) hue-rotate(-30deg) brightness(0.8) drop-shadow(0 0 8px rgba(239, 68, 68, 0.7)); transform: translate(-50%, -50%) rotate(calc(var(--i) * 36deg)) translateY(-46%) translateY(-120px); animation: scGear 1s ease forwards, scSpin 6s linear infinite; animation-delay: calc(1s + var(--i) * 0.32s), calc(1s + var(--i) * 0.32s); }
@keyframes scGear { to { opacity: 0.85; } }
@keyframes scSpin { to { rotate: 360deg; } }
.sc-line { position: relative; z-index: 2; max-width: 32ch; padding: 0 20px; text-align: center; font: italic 600 clamp(1.1rem, 3.4vmin, 1.6rem)/1.5 ui-serif, Georgia, serif; color: #fecaca; text-shadow: 0 0 18px rgba(239, 68, 68, 0.6); min-height: 3em; opacity: 0; }
.sc-line.sc-show { animation: scLine 1.6s ease forwards; }
@keyframes scLine { 0% { opacity: 0; filter: blur(4px); } 20% { opacity: 1; filter: none; } 85% { opacity: 1; } 100% { opacity: 0.15; } }
.sc-crack { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; transform: translateX(-50%); background: linear-gradient(90deg, transparent, #fde68a 40%, #fff 50%, #fde68a 60%, transparent); box-shadow: 0 0 60px 20px rgba(251, 146, 60, 0.6); opacity: 0; }
.sc-overlay.sc-open .sc-crack { animation: scCrack 2.2s cubic-bezier(.7,0,.3,1) forwards; }
.sc-overlay.sc-open .sc-gears span { animation: scGearOut 1s ease forwards; }
@keyframes scCrack { 0% { width: 0; opacity: 0; } 15% { width: 4px; opacity: 1; } 60% { width: 18vw; } 100% { width: 140vw; opacity: 1; } }
@keyframes scGearOut { to { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--i) * 36deg)) translateY(-200%); } }

/* Arrivee devant la porte : elle emerge du noir. */
body.fd-arrival::after { content: ""; position: fixed; inset: 0; z-index: 4000; pointer-events: none; background: #000; animation: fdArrive 2.6s ease forwards; }
body.fd-arrival .fd-door { animation: fdDoorEmerge 3s ease both; }
@keyframes fdArrive { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fdDoorEmerge { 0% { transform: scale(0.9); filter: brightness(0); } 60% { filter: brightness(0.6); } 100% { transform: none; filter: none; } }

/* Porte : pas de mode d'emploi. */
.fd-door { cursor: pointer; }
.fd-door-status { min-height: 1.4em; }
.fd-roman { font: 600 0.95rem/1 ui-serif, Georgia, serif; letter-spacing: 0.2em; color: #fca5a5; opacity: 0.8; }
.fd-anvil-text { text-align: center; font: italic 0.95rem/1.5 ui-serif, Georgia, serif; color: var(--text-dim); margin: 0 0 12px; }
.fd-sockets { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; max-width: 560px; margin: 0 auto 14px; }
.fd-socket { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #1c1917, #0c0a09); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(120, 113, 108, 0.35); color: rgba(255, 255, 255, 0.12); font: 700 0.9rem/1 ui-serif, Georgia, serif; }
.fd-socket.known { box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(251, 191, 36, 0.5), 0 0 10px -2px rgba(251, 146, 60, 0.5); }
.fd-socket img { width: 72%; height: 72%; object-fit: contain; }
.fd-forge-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fd-anvil { padding: 12px 20px; border-radius: 12px; border: 1px solid #57534e; background: linear-gradient(180deg, #44403c, #1c1917); color: #d6d3d1; font-weight: 800; box-shadow: 0 4px 0 #0c0a09; cursor: pointer; }
.fd-anvil.hot { color: #fff7ed; border-color: #f97316; background: linear-gradient(180deg, #9a3412, #431407); box-shadow: 0 4px 0 #1c0a03, 0 0 22px -4px #f97316; animation: fdHot 1.4s ease-in-out infinite alternate; }
@keyframes fdHot { to { box-shadow: 0 4px 0 #1c0a03, 0 0 34px 0 #fb923c; } }
.fd-anvil.shake { animation: scShake 0.3s linear 2; }
.fd-approach { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(251, 191, 36, 0.5); background: rgba(69, 26, 3, 0.6); color: #fde68a; font-weight: 700; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sc-overlay.sc-in, .sc-gears span, .sc-line.sc-show, .sc-overlay.sc-open .sc-crack, body.fd-arrival::after, body.fd-arrival .fd-door, .fd-anvil.hot { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; } }

/* Cinematique : l anneau entier tourne, chaque rouage s allume a son tour. */
.sc-gears { animation: scSpin 24s linear infinite; }
.sc-gears span { transform: translate(-50%, -50%) rotate(calc(var(--i) * 36deg)) translateY(calc(-1 * min(30vmin, 230px))); animation: scGear 1s ease forwards; animation-delay: calc(1s + var(--i) * 0.32s); }
.sc-overlay.sc-open .sc-gears span { animation: scGearOut 1s ease forwards; }
@keyframes scGearOut { from { opacity: 0.85; } to { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--i) * 36deg)) translateY(calc(-1 * min(60vmin, 460px))); } }

/* ==== Le parchemin (2026-10-19) ==== */
.fish-scroll-btn { color: #fde68a; border-color: rgba(253, 230, 138, 0.35); }
.scroll-overlay { position: fixed; inset: 0; z-index: 4500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); background: radial-gradient(ellipse at 50% 40%, rgba(30, 20, 8, 0.9), rgba(0, 0, 0, 0.96)); opacity: 0; transition: opacity 0.5s ease; overflow-y: auto; overscroll-behavior: contain; }
.scroll-overlay.open { opacity: 1; }
.scroll-overlay.closing { opacity: 0; }
.scroll-catch { margin: 0; text-align: center; font: italic 1rem/1.5 ui-serif, Georgia, serif; color: #bae6fd; opacity: 0; animation: scrollCatch 0.8s ease 0.2s forwards; }
@keyframes scrollCatch { to { opacity: 1; } }
.scroll-paper { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 90px); display: flex; flex-direction: column; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8)); }
.scroll-rod { height: 18px; margin: 0 -10px; border-radius: 9px; background: linear-gradient(180deg, #a16207, #422006 70%, #713f12); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6); position: relative; z-index: 2; }
.scroll-rod::before, .scroll-rod::after { content: ""; position: absolute; top: -3px; width: 14px; height: 24px; border-radius: 6px; background: radial-gradient(circle at 40% 35%, #fde68a, #92400e); }
.scroll-rod::before { left: -6px; } .scroll-rod::after { right: -6px; }
.scroll-body { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 22px clamp(16px, 5vw, 34px) 20px; color: #3b2a12; background:
    radial-gradient(circle at 20% 15%, rgba(120, 72, 20, 0.18), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(120, 72, 20, 0.22), transparent 40%),
    repeating-linear-gradient(0deg, rgba(120, 80, 30, 0.04) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #f3e3bf, #e8cf9b 50%, #f0dcb0);
  box-shadow: inset 0 0 40px rgba(92, 52, 12, 0.45); transform-origin: top center; }
.scroll-overlay.open .scroll-body { animation: scrollUnroll 1.4s cubic-bezier(.2,.8,.2,1) both; }
.scroll-overlay.open.no-anim .scroll-body { animation: none; }
@keyframes scrollUnroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.scroll-seal { position: absolute; top: 10px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f87171, #7f1d1d); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); font-size: 1.2rem; filter: grayscale(0.2); }
.scroll-title { margin: 0 52px 14px 0; font: 700 1.25rem/1.3 ui-serif, Georgia, serif; color: #422006; }
.scroll-riddles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.scroll-riddles li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: baseline; font: italic 0.98rem/1.5 ui-serif, Georgia, serif; }
.scroll-overlay.open:not(.no-anim) .scroll-riddles li { opacity: 0; animation: scrollLine 0.6s ease forwards; animation-delay: calc(1s + var(--d) * 0.18s); }
@keyframes scrollLine { from { opacity: 0; transform: translateY(4px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.scroll-riddles b { font: 700 0.85rem/1.5 ui-serif, Georgia, serif; color: #7c2d12; font-style: normal; letter-spacing: 0.05em; }
.scroll-riddles li.found span { text-decoration: line-through; text-decoration-color: rgba(124, 45, 18, 0.5); opacity: 0.65; }
.scroll-outro { margin: 16px 0 14px; font: 700 italic 1rem/1.5 ui-serif, Georgia, serif; color: #7c2d12; text-align: center; }
.scroll-close { display: block; margin: 0 auto; min-height: 44px; }
@media (max-width: 480px) { .scroll-riddles li { grid-template-columns: 28px 1fr; font-size: 0.92rem; } .scroll-title { font-size: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .scroll-catch { animation: none; opacity: 1; } }

/* Rouages caches : un peu plus visibles et faciles a toucher sur mobile (pas de survol). */
@media (pointer: coarse) {
  .arg-gear { opacity: 0.32; min-width: 34px; min-height: 34px; justify-content: center; font-size: 1rem; }
  .arg-gear:active { opacity: 0.95; transform: scale(1.2); }
}

/* ==== Cinematique de deblocage (UnlockFx) ==== */
.ux-overlay { --ux: #fbbf24; --ux2: #f59e0b; position: fixed; inset: 0; z-index: 5500; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 45%, rgba(40, 20, 60, 0.9), rgba(0, 0, 0, 0.97)); opacity: 0; transition: opacity 0.45s ease; overflow-y: auto; }
.ux-overlay.ux-violet { --ux: #c4b5fd; --ux2: #8b5cf6; }
.ux-overlay.ux-ghost { --ux: #e2e8f0; --ux2: #94a3b8; }
.ux-overlay.ux-shadow { --ux: #a78bfa; --ux2: #1e1b4b; background: radial-gradient(circle at 50% 45%, rgba(10, 6, 30, 0.95), #000); }
.ux-overlay.ux-in { opacity: 1; }
.ux-overlay.ux-out { opacity: 0; }
.ux-rays { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--ux) 22%, transparent) 0 8deg, transparent 8deg 22deg); opacity: 0; transition: opacity 0.6s ease; animation: uxSpin 18s linear infinite; pointer-events: none; }
.ux-burst .ux-rays { opacity: 0.55; }
@keyframes uxSpin { to { transform: rotate(360deg); } }
.ux-seal { position: absolute; width: 160px; height: 160px; display: grid; place-items: center; cursor: pointer; transition: transform 0.5s ease, opacity 0.5s ease; }
.ux-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--ux); box-shadow: 0 0 30px var(--ux), inset 0 0 30px color-mix(in srgb, var(--ux) 50%, transparent); animation: uxPulse 1.2s ease-in-out infinite; }
.ux-ring2 { inset: 18px; animation-delay: 0.3s; border-style: dashed; animation: uxPulse 1.2s ease-in-out infinite 0.3s, uxSpin 6s linear infinite; }
.ux-core { font-size: 3rem; color: var(--ux); text-shadow: 0 0 20px var(--ux); }
@keyframes uxPulse { 50% { transform: scale(1.08); opacity: 0.7; } }
.ux-burst .ux-seal { transform: scale(3); opacity: 0; pointer-events: none; }
.ux-content { position: relative; z-index: 2; width: min(560px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s; pointer-events: none; }
.ux-burst .ux-content { opacity: 1; transform: none; pointer-events: auto; }
.ux-title { margin: 0; font: 1.5rem/1.2 Bungee, var(--font-display, sans-serif); color: var(--ux); text-shadow: 0 0 18px color-mix(in srgb, var(--ux) 60%, transparent); }
.ux-sub { margin: 0; color: var(--text-dim); font-style: italic; }
.ux-cards { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ux-card { width: 120px; padding: 6px 6px 8px; border-radius: 12px; background: rgba(10, 10, 20, 0.85); border: 2px solid var(--rc); box-shadow: 0 0 22px -6px var(--rc); display: grid; gap: 4px; opacity: 0; animation: uxCard 0.6s cubic-bezier(.3,1.4,.6,1) forwards; animation-delay: calc(0.6s + var(--d) * 0.18s); }
.ux-card img, .ux-card-ph { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 8px; display: grid; place-items: center; background: #0a0a0a; }
.ux-card strong { font-size: 0.8rem; } .ux-card small { font-size: 0.7rem; color: var(--rc); }
@keyframes uxCard { from { opacity: 0; transform: rotateY(90deg) scale(0.7); } to { opacity: 1; transform: none; } }
.ux-rewards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.ux-rewards li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid color-mix(in srgb, var(--ux) 35%, transparent); font-weight: 700; opacity: 0; animation: uxItem 0.45s ease forwards; animation-delay: calc(0.6s + var(--d) * 0.18s); }
.ux-ico { font-size: 1.4rem; }
@keyframes uxItem { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.ux-close { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .ux-rays, .ux-ring, .ux-ring2 { animation: none; } .ux-card, .ux-rewards li { animation-duration: 0.01s; animation-delay: 0s; } }

/* ==== Secrets ==== */
.hero-highlight.sx-blip { animation: sxBlip 0.25s steps(2) 1; }
@keyframes sxBlip { 50% { filter: hue-rotate(160deg) blur(1px); transform: translateX(2px); } }
html[data-shadow-hour] #main-content, html[data-shadow-hour] header#site-header { filter: saturate(0.6) hue-rotate(-20deg) contrast(1.08); }
html[data-shadow-hour] body::before { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 120%, transparent 40%, rgba(0, 0, 0, 0.55)); animation: sxFlicker 7s steps(1) infinite; }
@keyframes sxFlicker { 0%, 100% { opacity: 1; } 47% { opacity: 0.7; } 48% { opacity: 1; } 81% { opacity: 0.85; } }
.sx-shadow { position: fixed; z-index: 60; bottom: 18%; left: -120px; width: 90px; height: 120px; border: 0; padding: 0; background: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.95) 0 35%, rgba(0, 0, 0, 0.7) 55%, transparent 72%); border-radius: 50% 50% 40% 40%; filter: blur(1px); cursor: pointer; animation: sxDrift 26s linear infinite; box-shadow: none; }
.sx-eye { position: absolute; top: 30%; width: 8px; height: 5px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 10px #a78bfa; animation: sxBlink 4s infinite; }
.sx-eye:first-child { left: 34%; } .sx-eye:last-child { right: 34%; }
@keyframes sxDrift { 0% { left: -120px; transform: translateY(0); } 50% { transform: translateY(-30px); } 100% { left: calc(100vw + 120px); transform: translateY(0); } }
@keyframes sxBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.sx-shadow.caught { animation: none; opacity: 0; transition: opacity 0.8s ease; }
.wheel-secret-btn { background: linear-gradient(90deg, #0a0a0a, #7f1d1d, #0a0a0a); color: #fecaca; letter-spacing: 0.3em; animation: sxBlip 1.6s steps(2) infinite; }
.wf-overlay.wf-secret .wf-seg-secret { filter: url(#none); }
@media (prefers-reduced-motion: reduce) { .sx-shadow { animation-duration: 60s; } html[data-shadow-hour] body::before, .wheel-secret-btn { animation: none; } }

/* Nouveaux cosmetiques (codes et secrets). */
.decor-frame-retro { box-shadow: 0 0 0 3px #22c55e, 0 0 0 5px #052e16, 0 0 12px rgba(34, 197, 94, 0.6); image-rendering: pixelated; }
.decor-frame-shadow { box-shadow: 0 0 0 3px #1e1b4b, 0 0 16px 2px rgba(167, 139, 250, 0.7); }
.decor-frame-forbidden { box-shadow: 0 0 0 3px #dc2626, 0 0 0 5px #450a0a, 0 0 16px rgba(220, 38, 38, 0.8); }
.decor-frame-heart { box-shadow: 0 0 0 3px #f97316, 0 0 0 5px #7f1d1d, 0 0 18px rgba(249, 115, 22, 0.85), 0 0 34px -6px rgba(239, 68, 68, 0.7); }
.decor-color-pepper { color: #fb7185 !important; text-shadow: 0 0 8px rgba(251, 113, 133, 0.5); }
.decor-color-ember { background: linear-gradient(90deg, #f97316, #facc15, #ef4444); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

/* ==== Machine interdite v2 (2026-10-19) ==== */
.fm-layout { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 20px; align-items: start; justify-content: center; }
.fm-layout .fm-cabinet { margin: 0; width: 100%; }
.fm-window { grid-template-columns: repeat(var(--reels, 3), minmax(0, 1fr)); }
.fm-sym { transition: transform 0.25s ease, filter 0.25s ease; }
.fm-sym.lit { filter: drop-shadow(0 0 10px #fbbf24) brightness(1.3); animation: fmLit 0.6s ease-in-out infinite alternate; }
@keyframes fmLit { to { transform: scale(1.18); } }
.fm-sym.boom { animation: fmBoom 0.42s ease forwards; }
@keyframes fmBoom { to { transform: scale(1.8); opacity: 0; filter: blur(4px) brightness(2); } }
.fm-sym.drop { animation: fmDrop 0.45s cubic-bezier(.3,1.5,.6,1) both; }
@keyframes fmDrop { from { transform: translateY(-90px); opacity: 0; } }
.fm-level { display: flex; align-items: center; gap: 8px; margin: -4px 0 10px; font-size: 0.78rem; color: #fca5a5; }
.fm-lv { font-weight: 800; color: #fde68a; }
.fm-lv-bar { flex: 1; height: 6px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.fm-lv-bar div { height: 100%; background: linear-gradient(90deg, #a855f7, #f472b6); border-radius: inherit; transition: width 0.6s ease; }
.fm-banner { margin: 0 0 10px; padding: 6px 10px; border-radius: 10px; text-align: center; font-weight: 800; font-size: 0.9rem; }
.fm-banner.bonus { background: linear-gradient(90deg, #78350f, #b45309, #78350f); color: #fef3c7; animation: fmNeon 2s ease-in-out infinite; }
.fm-banner.frenzy { background: linear-gradient(90deg, #581c87, #db2777, #581c87); background-size: 200% 100%; color: #fff; animation: luckySlide 3s linear infinite; }
.fm-bets { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.fm-bet { min-width: 54px; min-height: 36px; border-radius: var(--radius-pill); border: 1px solid #7f1d1d; background: #1c0606; color: #fca5a5; font-weight: 800; cursor: pointer; }
.fm-bet.on { background: linear-gradient(180deg, #fbbf24, #b45309); color: #1c0a03; border-color: #fde68a; box-shadow: 0 0 12px -2px #fbbf24; }
.fm-lever.bonus { background: radial-gradient(circle at 40% 30%, #fde68a, #f59e0b 45%, #92400e); box-shadow: 0 6px 0 #451a03, 0 10px 24px -6px rgba(251, 191, 36, 0.8); }
.fm-lever small { font-size: 0.7em; opacity: 0.85; }
.fm-free { min-height: 1.2em; margin-top: 8px; text-align: center; font-size: 0.8rem; color: #fde68a; }
.fm-jackpot.tick { animation: fmTick 0.6s ease; }
@keyframes fmTick { 30% { transform: scale(1.08); box-shadow: 0 0 18px rgba(251, 191, 36, 0.8); } }
.fm-cabinet.tense { animation: fmTense 0.6s ease-in-out infinite; }
@keyframes fmTense { 50% { box-shadow: 0 0 0 4px #fbbf24, 0 0 60px 6px rgba(239, 68, 68, 0.7), inset 0 0 40px rgba(0, 0, 0, 0.7); } }
.fm-cabinet.tense .fm-reel:last-child { box-shadow: inset 0 0 0 3px #ef4444, 0 0 20px rgba(239, 68, 68, 0.7); }
.fm-kind { font-size: 0.8rem; color: #fca5a5; }
.fm-cascade { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(251, 191, 36, 0.35); animation: fmDrop 0.45s ease both; }
.fm-cascade .fm-label { color: #fde68a; }
.fm-bonus-hit { margin-bottom: 8px; font: 1rem/1.3 Bungee, var(--font-display, sans-serif); color: #fde68a; text-shadow: 0 0 14px #f59e0b; animation: fmNeon 1s ease-in-out infinite; }
.fm-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.fm-side { display: grid; gap: 12px; }
.fm-panel { padding: 12px 14px; border-radius: 14px; background: rgba(28, 6, 6, 0.7); border: 1px solid rgba(127, 29, 29, 0.6); }
.fm-panel h3 { margin: 0 0 8px; font-size: 0.95rem; color: #fde68a; }
.fm-panel.fm-help { margin: 0; max-width: none; }
.fm-ch { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; font-size: 0.82rem; margin-bottom: 8px; }
.fm-ch-bar { grid-column: 1 / -1; height: 5px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.fm-ch-bar div { height: 100%; background: #f59e0b; border-radius: inherit; }
.fm-ch.done { color: #86efac; } .fm-ch.done .fm-ch-bar div { background: #22c55e; }
.fm-ch small { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.fm-combo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fm-combo { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; font-size: 1.4rem; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); filter: grayscale(1); opacity: 0.45; }
.fm-combo.done { filter: none; opacity: 1; border-color: #fbbf24; box-shadow: 0 0 10px -3px #fbbf24; }
.fm-combo.bonus { border-style: dashed; }
.fm-combo.locked { font-size: 0.9rem; }
.fm-combo-reward { margin: 8px 0 0; font-size: 0.78rem; color: var(--text-dim); }
.fm-combo-reward.done { color: #86efac; }
.fm-top5 { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 0.82rem; }
.fm-top5 span { color: #fde68a; } .fm-top5 small { color: var(--text-dim); }
.fm-rarest, .fm-empty { margin: 8px 0 0; font-size: 0.78rem; color: var(--text-dim); }
@media (max-width: 900px) { .fm-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .fm-window[style*="--reels:4"] .fm-sym { font-size: 1.6rem; } .fm-bets .fm-bet { min-width: 48px; } }
@media (prefers-reduced-motion: reduce) { .fm-sym.lit, .fm-cabinet.tense, .fm-banner.bonus, .fm-banner.frenzy, .fm-bonus-hit { animation: none; } }

/* ==== Pierres de la salle interdite (2026-11-06, js/forbidden-stones.js) ==== */
/* Incrustations : un creux sous chaque rouleau. */
.fm-inlays { display: grid; grid-template-columns: repeat(var(--reels, 3), minmax(0, 1fr)); gap: 8px; margin: 8px 6px 0; }
.fm-inlay { justify-self: center; position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; color: rgba(255, 255, 255, 0.25); font: 700 1.1rem/1 ui-serif, Georgia, serif; background: radial-gradient(circle at 50% 40%, #1c1917, #0c0a09); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(120, 113, 108, 0.45); transition: transform 0.15s ease, box-shadow 0.2s ease; }
.fm-inlay:hover, .fm-inlay.picking { transform: scale(1.08); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.9), 0 0 0 2px #fbbf24; }
.fm-inlay img { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.55)); }
.fm-inlay.on { box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(251, 191, 36, 0.6), 0 0 12px -2px var(--gem-glow, rgba(251, 146, 60, 0.7)); animation: fsPulse 2.4s ease-in-out infinite; }
.fm-inlay small { position: absolute; bottom: -6px; right: -6px; min-width: 20px; padding: 1px 4px; border-radius: var(--radius-pill); background: #1c0606; border: 1px solid #7f1d1d; color: #fde68a; font: 800 0.66rem/1.2 var(--font-body, sans-serif); font-variant-numeric: tabular-nums; }
.fm-inlay.set { animation: fsSet 0.9s ease; }
@keyframes fsSet { 30% { transform: scale(1.35); box-shadow: 0 0 0 3px #fde68a, 0 0 30px 8px rgba(251, 191, 36, 0.8); } }
@keyframes fsPulse { 50% { box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(251, 191, 36, 0.9), 0 0 18px 0 var(--gem-glow, rgba(251, 146, 60, 0.8)); } }
.fm-inlay.tier-1, .fm-ip-row.tier-1, .fs-feed-row.tier-1, .fs-tier.tier-1, .fs-gem-pick.tier-1 { --gem-glow: rgba(168, 162, 158, 0.7); }
.fm-inlay.tier-2, .fm-ip-row.tier-2, .fs-feed-row.tier-2, .fs-tier.tier-2, .fs-gem-pick.tier-2 { --gem-glow: rgba(52, 211, 153, 0.7); }
.fm-inlay.tier-3, .fm-ip-row.tier-3, .fs-feed-row.tier-3, .fs-tier.tier-3, .fs-gem-pick.tier-3 { --gem-glow: rgba(96, 165, 250, 0.75); }
.fm-inlay.tier-4, .fm-ip-row.tier-4, .fs-feed-row.tier-4, .fs-tier.tier-4, .fs-gem-pick.tier-4 { --gem-glow: rgba(192, 132, 252, 0.8); }
.fm-inlay.tier-5, .fm-ip-row.tier-5, .fs-feed-row.tier-5, .fs-tier.tier-5, .fs-gem-pick.tier-5 { --gem-glow: rgba(251, 191, 36, 0.9); }
.fm-inlay-pick { margin: 12px 0 0; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(251, 191, 36, 0.3); text-align: left; }
.fm-ip-head { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: #fde68a; }
.fm-ip-head .btn-ghost { margin-left: auto; min-height: 32px; padding: 2px 10px; }
.fm-ip-note { margin: 6px 0; font-size: 0.78rem; color: var(--text-dim); }
.fm-ip-list { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; margin-top: 8px; padding-right: 2px; }
.fm-ip-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.fm-ip-row.same { border-color: rgba(251, 191, 36, 0.6); }
.fm-ip-row img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 5px var(--gem-glow)); }
.fm-ip-row span { display: block; font-size: 0.74rem; color: var(--text-dim); }
.fm-ip-row small { color: var(--text-dim); }
.fm-ip-acts { display: flex; gap: 4px; }
.fm-ip-acts .btn, .fm-ip-acts .btn-ghost { min-height: 34px; padding: 4px 10px; font-size: 0.8rem; }
.fm-sym[data-k="joker"] { filter: drop-shadow(0 0 8px #fde68a); }

/* Zone des pierres, sous la machine. */
.fs-zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; margin-top: 20px; align-items: start; }
.fs-panel { padding: 14px 16px; border-radius: 16px; background: rgba(28, 6, 6, 0.7); border: 1px solid rgba(127, 29, 29, 0.6); min-width: 0; }
body.forbidden-page .fs-panel { background: rgba(0, 0, 0, 0.4); border-color: rgba(212, 169, 74, 0.3); }
.fs-panel h3, .fs-panel h4 { margin: 0 0 6px; color: #fde68a; }
.fs-panel h4 { margin-top: 14px; font-size: 0.9rem; }
.fs-dim { color: var(--text-dim); font-size: 0.82rem; }
.fs-heart-top { display: flex; gap: 14px; align-items: center; }
.fs-heart-txt { flex: 1; min-width: 0; }
.fs-heart-txt p { margin: 0 0 8px; }
.fs-bar { height: 7px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 4px; }
.fs-bar div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7f1d1d, #ef4444, #f97316); transition: width 0.6s ease; }
/* Le coeur : un cristal qui bat, plus vite et plus chaud a chaque palier. */
.fs-core { --beat: 1.6s; --c1: #7f1d1d; --c2: #ef4444; flex: none; position: relative; width: 74px; height: 74px; display: grid; place-items: center; }
.fs-core span { width: 46px; height: 46px; transform: rotate(45deg); border-radius: 10px 50% 50% 50%; background: radial-gradient(circle at 35% 35%, #fecaca, var(--c2) 40%, var(--c1)); box-shadow: 0 0 22px 2px var(--c2), inset -6px -6px 14px rgba(0, 0, 0, 0.45); animation: fsBeat var(--beat) ease-in-out infinite; }
.fs-core::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--c2), transparent 70%); opacity: 0.35; animation: fsBeatHalo var(--beat) ease-in-out infinite; }
.fs-core.lv-0 { --beat: 3s; --c1: #292524; --c2: #57534e; }
.fs-core.lv-1 { --beat: 2.2s; } .fs-core.lv-2 { --beat: 1.9s; } .fs-core.lv-3 { --beat: 1.6s; --c2: #f43f5e; }
.fs-core.lv-4 { --beat: 1.3s; --c2: #f97316; } .fs-core.lv-5 { --beat: 1.1s; --c2: #fb923c; --c1: #9a3412; } .fs-core.lv-6 { --beat: 0.9s; --c2: #fbbf24; --c1: #b45309; }
.fs-core.gulp span { animation: fsGulp 0.5s ease, fsBeat var(--beat) ease-in-out 0.5s infinite; }
.fs-core.surge span { animation: fsSurge 1.2s ease, fsBeat var(--beat) ease-in-out 1.2s infinite; }
@keyframes fsBeat { 0%, 100% { transform: rotate(45deg) scale(1); } 12% { transform: rotate(45deg) scale(1.12); } 24% { transform: rotate(45deg) scale(0.98); } 36% { transform: rotate(45deg) scale(1.07); } }
@keyframes fsBeatHalo { 0%, 100% { opacity: 0.2; transform: scale(0.9); } 15% { opacity: 0.55; transform: scale(1.15); } }
@keyframes fsGulp { 40% { transform: rotate(45deg) scale(1.25); filter: brightness(1.5); } }
@keyframes fsSurge { 30% { transform: rotate(45deg) scale(1.5); filter: brightness(2) saturate(1.5); } 60% { transform: rotate(405deg) scale(1.2); } }
.fs-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.fs-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 8px; font-size: 0.8rem; color: var(--text-dim); background: rgba(255, 255, 255, 0.025); }
.fs-steps b { font: 700 0.8rem/1 ui-serif, Georgia, serif; color: #a8a29e; }
.fs-steps small { font-variant-numeric: tabular-nums; }
.fs-steps li.done { color: var(--text, #fff); background: rgba(239, 68, 68, 0.12); }
.fs-steps li.done b { color: #fbbf24; }
.fs-feed { display: grid; gap: 4px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
.fs-feed-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 6px; align-items: center; font-size: 0.8rem; }
.fs-feed-row img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 4px var(--gem-glow)); }
.fs-feed-row small { color: var(--text-dim); }
.fs-feed-row .btn-ghost { min-height: 32px; padding: 2px 10px; font-size: 0.76rem; }
/* Atelier */
.fs-atelier > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; cursor: pointer; list-style: none; font-weight: 800; color: #fde68a; }
.fs-atelier > summary::-webkit-details-marker { display: none; }
.fs-atelier > summary::after { content: "\25BE"; margin-left: auto; transition: transform 0.2s ease; }
.fs-atelier[open] > summary::after { transform: rotate(180deg); }
.fs-atelier > summary small { font-weight: 500; color: var(--text-dim); }
.fs-tabs { display: flex; gap: 6px; margin: 12px 0 8px; }
.fs-tabs button { flex: 1; min-height: 40px; border-radius: var(--radius-pill); border: 1px solid #7f1d1d; background: #1c0606; color: #fca5a5; font-weight: 700; cursor: pointer; }
.fs-tabs button.on { background: linear-gradient(180deg, #fbbf24, #b45309); color: #1c0a03; border-color: #fde68a; }
.fs-tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.fs-tier { display: grid; gap: 2px; padding: 6px 4px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.35); color: inherit; cursor: pointer; font-size: 0.72rem; }
.fs-tier small { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.fs-tier.on { border-color: #fbbf24; box-shadow: 0 0 12px -3px var(--gem-glow); background: rgba(251, 191, 36, 0.08); }
.fs-q { width: 100%; margin-bottom: 8px; }
.fs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px 2px; }
.fs-card { position: relative; display: grid; gap: 2px; padding: 4px; border-radius: 10px; border: 1px solid var(--rc); background: rgba(0, 0, 0, 0.35); color: inherit; cursor: pointer; text-align: center; overflow: hidden; transition: transform 0.15s ease, box-shadow 0.2s ease; }
.fs-card:hover { transform: translateY(-2px); }
.fs-card.on { box-shadow: 0 0 0 2px #fbbf24, 0 0 16px -2px rgba(251, 191, 36, 0.7); }
.fs-card img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 6px; }
.fs-ph { display: grid; place-items: center; aspect-ratio: 5 / 7; background: rgba(255, 255, 255, 0.05); border-radius: 6px; }
.fs-card small { font-size: 0.7rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-card em { font-size: 0.62rem; font-style: normal; color: var(--rc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-tag { position: absolute; top: 6px; left: 6px; padding: 1px 5px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, 0.75); color: #fca5a5; font-size: 0.58rem; font-weight: 800; }
.fs-gem { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, 0.6); box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.6); }
.fs-card .fs-gem img { width: 19px; height: 19px; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
/* Fissures : un trait brise par-dessus l'image. */
.fs-crack { position: absolute; left: 4px; right: 4px; top: 4px; aspect-ratio: 5 / 7; pointer-events: none; background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 70' fill='none' stroke='white' stroke-opacity='.8' stroke-width='.9'%3E%3Cpath d='M30 0 L26 14 L33 22 L24 35 L29 44 L21 58 L24 70'/%3E%3Cpath d='M26 14 L16 18 M24 35 L12 33 L6 40 M29 44 L40 50'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 1px #000); }
.fs-card.heating { animation: fsHeat 1.1s ease-in-out infinite; }
.fs-card.forged { animation: fsForged 0.8s ease forwards; }
.fs-card.cracking { animation: fsCracking 0.5s steps(3) 2; }
.fs-card.gemmed { animation: fsSet 0.9s ease; }
@keyframes fsHeat { 50% { box-shadow: 0 0 0 2px #f97316, 0 0 28px 4px rgba(239, 68, 68, 0.85); filter: brightness(1.3) sepia(0.4) saturate(2); } }
@keyframes fsForged { 40% { transform: scale(1.12); box-shadow: 0 0 0 3px #dc2626, 0 0 40px 10px rgba(220, 38, 38, 0.9); filter: brightness(1.6); } }
@keyframes fsCracking { 33% { transform: translateX(-3px) rotate(-1deg); } 66% { transform: translateX(3px) rotate(1deg); } }
.fs-more { grid-column: 1 / -1; text-align: center; }
.fs-action { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(251, 191, 36, 0.3); }
.fs-act-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.84rem; }
.fs-act-row span { color: var(--text-dim); }
.fs-go { margin-left: auto; }
.fs-gems { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: 8px 0; }
.fs-gem-pick { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.35); color: inherit; cursor: pointer; }
.fs-gem-pick img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 4px var(--gem-glow)); }
.fs-gem-pick small { font-size: 0.62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fs-gem-pick.on { border-color: #fbbf24; box-shadow: 0 0 12px -3px var(--gem-glow); }
.fs-gem-pick.same { opacity: 0.45; cursor: default; }
@media (max-width: 900px) { .fs-zone { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .fs-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fs-cards { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); } .fs-go { margin-left: 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .fm-inlay.on, .fs-core span, .fs-core::before, .fs-card.heating { animation: none; } }

/* Transmutation minerale (onglet Finitions de la collection, porte ouverte). */
.transmute-box { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, 0.35); background: linear-gradient(135deg, rgba(120, 53, 15, 0.22), rgba(30, 58, 138, 0.18)); }
.transmute-box > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; cursor: pointer; list-style: none; font-weight: 800; color: #fde68a; }
.transmute-box > summary::-webkit-details-marker { display: none; }
.transmute-box > summary small { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text-dim); }
.transmute-box > summary::after { content: "\25BE"; margin-left: auto; transition: transform 0.2s ease; }
.transmute-box[open] > summary::after { transform: rotate(180deg); }
.transmute-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.transmute-tabs .fusion-chip { display: inline-flex; align-items: center; gap: 4px; }
.transmute-list { display: grid; gap: 8px; max-height: 460px; overflow-y: auto; padding-right: 2px; }
.transmute-row .fusion-actions .btn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* Pierre sertie sur une carte Interdite (collection, fenetre de la carte). */
.gem-badge { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); z-index: 3; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #292524, #0c0a09); box-shadow: 0 0 0 1.5px #dc2626, 0 0 10px -1px var(--gem-glow, rgba(251, 191, 36, 0.8)); pointer-events: auto; }
.gem-badge img { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 0 3px var(--gem-glow, rgba(251, 191, 36, 0.8))); }
.gem-badge.tier-1 { --gem-glow: rgba(168, 162, 158, 0.7); } .gem-badge.tier-2 { --gem-glow: rgba(52, 211, 153, 0.7); } .gem-badge.tier-3 { --gem-glow: rgba(96, 165, 250, 0.75); } .gem-badge.tier-4 { --gem-glow: rgba(192, 132, 252, 0.8); } .gem-badge.tier-5 { --gem-glow: rgba(251, 191, 36, 0.9); }

/* ==== Carte « Erreur 404 » : glitch (2026-10-19, GlitchCard dans shell.js) ==== */
.gl404-host { overflow: hidden; }
.gl404 { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.gl404 span { position: absolute; left: 0; right: 0; background-size: cover; opacity: 0; mix-blend-mode: normal; filter: saturate(1.4) contrast(1.2); }
.gl404-host.gl404-on .gl404 span { opacity: 0.92; }
/* :root:not(#fx) : passe devant l'animation des effets de carte v3 (fenetre plein ecran comprise). */
:root:not(#fx) .gl404-host.gl404-on > img[data-gl404] { animation: gl404Shift 0.16s steps(2) infinite; }
.gl404-host.gl404-on .gl404::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px); }
@keyframes gl404Shift {
  0% { transform: translate(0, 0); filter: drop-shadow(3px 0 0 rgba(244, 63, 94, 0.8)) drop-shadow(-3px 0 0 rgba(34, 211, 238, 0.8)); }
  50% { transform: translate(-4px, 1px) skewX(-4deg); filter: drop-shadow(-3px 0 0 rgba(244, 63, 94, 0.8)) drop-shadow(3px 0 0 rgba(34, 211, 238, 0.8)); }
  100% { transform: translate(3px, -1px); }
}
@media (prefers-reduced-motion: reduce) { :root:not(#fx) .gl404-host.gl404-on > img[data-gl404] { animation: none; } }

/* Moka : indice en P.S. (2026-10-19). */
.cat-postcard-ps { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed rgba(59, 47, 34, 0.35); font: italic 0.9rem/1.45 ui-serif, Georgia, serif; color: #7c2d12; transform: rotate(-0.6deg); }

/* ==== Cartes secretes : effet unique (2026-10-19, SecretCardEffects) ==== */
.sfx-host { --fur: #6b4423; --fur-hi: #c08a5a; }
.sfx-host > .sfx-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; }
.sfx-fur-brown { --fur: #5b3a1e; --fur-hi: #b07a46; }
.sfx-fur-black { --fur: #0b0b0d; --fur-hi: #4b4b55; }
.sfx-fur-white { --fur: #e7e5e4; --fur-hi: #ffffff; }
.sfx-fur-brown > .sfx-layer, .sfx-fur-black > .sfx-layer, .sfx-fur-white > .sfx-layer {
  background-size: 120px 120px, 100% 100%;
  box-shadow: inset 0 0 0 4px var(--fur), inset 0 0 18px 8px var(--fur), inset 0 0 34px 10px color-mix(in srgb, var(--fur) 55%, transparent);
  mix-blend-mode: normal; opacity: 0.95; animation: sfxFurWind 6s ease-in-out infinite alternate;
}
.sfx-fur-brown > .sfx-layer { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.035' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.23  0 0 0 0 0.12  0 0 0 1.6 -0.55'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)'/%3E%3C/svg%3E"), radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(91, 58, 30, 0.45)); }
.sfx-fur-black > .sfx-layer { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.035' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.07  0 0 0 1.6 -0.55'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)'/%3E%3C/svg%3E"), radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(11, 11, 13, 0.55)); }
.sfx-fur-white > .sfx-layer { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.035' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.55'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)'/%3E%3C/svg%3E"), radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(255, 255, 255, 0.45)); }
.sfx-fur-brown, .sfx-fur-black, .sfx-fur-white { box-shadow: 0 0 0 2px var(--fur-hi), 0 0 14px 2px color-mix(in srgb, var(--fur-hi) 55%, transparent); }
@keyframes sfxFurWind { from { background-position: 0 0, 0 0; } to { background-position: 14px 6px, 0 0; } }
/* Contours (pour les prochaines cartes secretes). */
.sfx-aura-gold > .sfx-layer { box-shadow: inset 0 0 0 3px #fde047, inset 0 0 24px rgba(253, 224, 71, 0.6); animation: sfxAura 2.4s ease-in-out infinite; }
.sfx-aura-void > .sfx-layer { box-shadow: inset 0 0 0 3px #1e1b4b, inset 0 0 30px 6px rgba(76, 29, 149, 0.8); animation: sfxAura 3s ease-in-out infinite; }
@keyframes sfxAura { 50% { filter: brightness(1.4); } }
@media (prefers-reduced-motion: reduce) { .sfx-host > .sfx-layer { animation: none; } }

/* ==== Fluidite et effets des cartes secretes v2 (2026-10-19) ==== */
/* Animations des cartes en pause hors de l'ecran (CardAnimGate, shell.js). */
.anim-off, .anim-off *, .anim-off::before, .anim-off::after, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }
/* Ancienne couche (remplacee par l'anneau). */
.sfx-layer { display: none !important; }
/* Anneau statique pose sur le bord de la carte : rien ne deborde, rien ne bouge. */
.sfx-ring { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; padding: 7px; background: var(--sfx-tex, none) center / 90px 90px, var(--sfx-col, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
[data-sfx="fur-brown"] > .sfx-ring { --sfx-col: #5b3a1e; --sfx-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.04' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.72  0 0 0 0 0.48  0 0 0 0 0.27  0 0 0 1.7 -0.4'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23f)'/%3E%3C/svg%3E"); }
[data-sfx="fur-black"] > .sfx-ring { --sfx-col: #0b0b0d; --sfx-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.04' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.42  0 0 0 0 0.48  0 0 0 1.7 -0.4'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23f)'/%3E%3C/svg%3E"); }
[data-sfx="fur-white"] > .sfx-ring { --sfx-col: #e7e5e4; --sfx-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.04' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.7 -0.4'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23f)'/%3E%3C/svg%3E"); }
[data-sfx="aura-gold"] > .sfx-ring { padding: 3px; --sfx-col: linear-gradient(135deg, #fef3c7, #f59e0b, #fef3c7); background: var(--sfx-col); }
[data-sfx="aura-void"] > .sfx-ring { padding: 4px; background: linear-gradient(135deg, #1e1b4b, #6d28d9, #020617); }

/* « Les pierres » (2026-11-16) : un seul espace a onglets sous la machine. */
.fs-zone { display: block; }
.fs-head { margin-bottom: 8px; }
.fs-head h2 { margin: 0 0 4px; color: #fde68a; }
.fs-uses { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 0.84rem; color: var(--text-dim); }
.fs-uses b { color: var(--text); }
.fs-uses a, .fs-panel a { color: #fde68a; }
.fs-main-tabs { margin: 12px 0 10px; flex-wrap: wrap; }
.fs-main-tabs [data-tab] { flex: 1 1 140px; }
.fs-panel[hidden] { display: none; }

/* Machine interdite (2026-11-19, avis #98/#100) : bouton de tour gratuit a part, cascades dans le bilan x10. */
.fm-lever-free { background: radial-gradient(circle at 40% 30%, #a7f3d0, #059669 45%, #064e3b); box-shadow: 0 6px 0 #022c22, 0 10px 24px -6px rgba(16, 185, 129, 0.7); }
.fm-lever-free.bonus { background: radial-gradient(circle at 40% 30%, #fde68a, #f59e0b 45%, #92400e); box-shadow: 0 6px 0 #451a03, 0 10px 24px -6px rgba(251, 191, 36, 0.8); }
.fm-ten-casc { display: block; padding-left: 10px; font-size: 0.9rem; color: #fcd34d; }
