/* Les Marionnettistes — direction artistique cabaret noir et or — Sebdesign Studio */
body[data-jeu="marionnettistes"] {
  background: radial-gradient(120% 70% at 50% 0%, #2A1F0E 0%, #0E0B08 55%, #070605 100%) fixed;
  color: #F3E6C4;
}
body[data-jeu="marionnettistes"] #scene { display: none; }
.mar-page {
  --or: #D9B25F; --or-clair: #F6DC96; --or-fonce: #8C6A2A; --creme: #F3E6C4; --noir: #0E0B08;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; gap: 14px; padding-bottom: calc(18px + env(safe-area-inset-bottom));
}
.mar-entete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mar-titre { margin: 0; white-space: nowrap; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 700; font-size: clamp(19px, 5.6vw, 26px); line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, var(--or-clair), var(--or) 55%, var(--or-fonce)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mar-entete-d { display: flex; gap: 5px; align-items: center; flex: none; }
.mar-badge, .mar-mini { padding: 5px 9px; white-space: nowrap; border: 1px solid rgba(217, 178, 95, .6); border-radius: 999px; background: rgba(217, 178, 95, .08); color: var(--or-clair); font-family: inherit; font-weight: 700; font-size: 12px; }
.mar-panneau {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 18px; text-align: center;
  border: 1px solid rgba(217, 178, 95, .55); border-radius: 18px; background: linear-gradient(180deg, rgba(42, 31, 14, .75), rgba(14, 11, 8, .85));
  box-shadow: inset 0 0 0 4px rgba(14, 11, 8, .9), inset 0 0 0 5px rgba(217, 178, 95, .25), 0 18px 40px rgba(0, 0, 0, .5);
}
.mar-sur { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--or); text-align: center; }
.mar-nom-or { margin: 0; text-align: center; font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: clamp(26px, 8vw, 36px); line-height: 1.1;
  background: linear-gradient(180deg, #FFF1C4, var(--or) 60%, var(--or-fonce)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mar-orn { width: 120px; height: 12px; fill: none; stroke: var(--or); stroke-width: 1.2; }
.mar-orn circle, .mar-orn path:nth-child(2) { fill: var(--or); }
.mar-texte { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(243, 230, 196, .85); }
.mar-texte b { color: var(--or-clair); }
.mar-sujet { margin: 2px 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 24px; line-height: 1.25; color: #FFF6DC; }
.mar-sujet.petit { font-size: 20px; }
.mar-attente { margin: 0; text-align: center; font-style: italic; color: rgba(243, 230, 196, .75); }
.mar-btn {
  width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: 14px; font-family: inherit; font-weight: 800; font-size: 17px; color: #1A1206;
  background: linear-gradient(180deg, #FBE3A2, #D9B25F 55%, #A9802F); box-shadow: 0 6px 18px rgba(217, 178, 95, .25), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.mar-btn.sombre { background: transparent; color: var(--or-clair); border: 1px solid rgba(217, 178, 95, .7); box-shadow: none; }
.mar-btn:disabled { opacity: .45; }
.mar-btn:active:not(:disabled) { transform: scale(.98); }
.mar-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.mar-lien { align-self: center; padding: 8px 12px; border: 0; background: none; color: var(--or); font-family: inherit; font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* Cartes façon tarot */
.mar-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mar-cartes.une { grid-template-columns: minmax(0, 200px); justify-content: center; }
.mar-carte {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 230px; padding: 26px 8px 14px;
  border: 1px solid var(--or); border-radius: 12px; color: var(--creme); font-family: inherit; text-align: center;
  background: linear-gradient(180deg, #221A0D, #0E0B08); box-shadow: inset 0 0 0 4px #0E0B08, inset 0 0 0 5px rgba(217, 178, 95, .45), 0 10px 24px rgba(0, 0, 0, .5);
}
.mar-carte.tire { animation: mar-tirage .5s cubic-bezier(.2, 1.4, .4, 1) both; }
button.mar-carte:active { transform: translateY(-4px); }
.mar-carte.choisie { border-color: var(--or-clair); box-shadow: inset 0 0 0 4px #0E0B08, inset 0 0 0 5px var(--or-clair), 0 0 30px rgba(246, 220, 150, .35); }
.mar-carte-coin { position: absolute; top: 8px; left: 0; right: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 13px; color: var(--or); }
.mar-carte-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(217, 178, 95, .6); color: var(--or-clair); }
.mar-carte-ico svg { width: 24px; height: 24px; }
.mar-carte-cat { font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--or); }
.mar-carte-txt { overflow-wrap: anywhere; hyphens: auto; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
@keyframes mar-tirage { from { opacity: 0; transform: translateY(24px) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* Chrono */
.mar-chrono { height: 4px; border-radius: 99px; background: rgba(217, 178, 95, .18); overflow: hidden; }
.mar-chrono span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--or-fonce), var(--or-clair)); transition: width .25s linear; }
.mar-chrono-txt { margin: -8px 0 0; text-align: right; font-size: 12px; font-weight: 700; color: var(--or); }

/* Secrets cachés */
.mar-voile, .mar-secrets { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 18px 16px; border-radius: 16px; font-family: inherit; text-align: center; color: var(--creme); }
.mar-voile { min-height: 96px; justify-content: center; border: 1px dashed rgba(217, 178, 95, .7); background: repeating-linear-gradient(135deg, rgba(217, 178, 95, .06) 0 10px, transparent 10px 20px); }
.mar-voile span { font-weight: 800; font-size: 16px; color: var(--or-clair); }
.mar-voile small, .mar-secrets small { font-size: 12px; color: rgba(243, 230, 196, .6); }
.mar-secrets { border: 1px solid var(--or); background: #1A1309; }
.mar-lbl { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--or); }
.mar-contrainte { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 20px; line-height: 1.3; color: #FFF6DC; margin-bottom: 6px; }
.mar-contrainte.petite { font-size: 16px; color: rgba(243, 230, 196, .85); }
.mar-bilan { margin: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(217, 178, 95, .35); text-align: center; font-size: 13px; color: rgba(243, 230, 196, .8); }
.mar-bilan.ok { border-color: var(--or); color: var(--or-clair); }

/* Table et fils */
.mar-table { width: 100%; max-width: 330px; align-self: center; }
.mar-table svg { width: 100%; height: auto; max-height: 46vh; display: block; margin: 0 auto; overflow: visible; }
.mar-plateau { fill: rgba(217, 178, 95, .05); stroke: rgba(217, 178, 95, .55); stroke-width: 1.5; }
.mar-fil { fill: none; stroke: var(--or-clair); stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(246, 220, 150, .7)); }
.mar-fil.anime { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mar-trace 1s ease-out forwards; }
@keyframes mar-trace { to { stroke-dashoffset: 0; } }
.mar-jeton-fond { fill: #1A1309; stroke: rgba(217, 178, 95, .7); stroke-width: 1.5; }
.mar-jeton-init { text-anchor: middle; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 18px; fill: var(--creme); }
.mar-jeton-nom { text-anchor: middle; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 12px; fill: rgba(243, 230, 196, .85); }
.mar-jeton.moi .mar-jeton-fond { fill: #3A2A10; stroke: var(--or-clair); stroke-width: 2.5; }
.mar-jeton.cible .mar-jeton-fond { stroke: var(--or-clair); stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(246, 220, 150, .8)); }
.mar-jeton.clic { cursor: pointer; }
.mar-jeton.clic .mar-jeton-fond { stroke-dasharray: 4 3; }
.mar-jeton.choisi .mar-jeton-fond { fill: var(--or); stroke: var(--or-clair); stroke-dasharray: none; }
.mar-jeton.choisi .mar-jeton-init { fill: #1A1206; }

/* Pastilles d'avancement */
.mar-pastilles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: rgba(243, 230, 196, .7); }
.mar-pastilles span { margin-right: 4px; }
.mar-pastilles i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(217, 178, 95, .5); font-style: normal; font-size: 12px; opacity: .45; }
.mar-pastilles i.oui { opacity: 1; background: var(--or); color: #1A1206; border-color: var(--or-clair); }

/* Révélation */
.mar-liste, .mar-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mar-liste li { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid rgba(217, 178, 95, .2); font-size: 14px; font-weight: 700; }
.mar-liste em { font-style: normal; font-size: 11px; font-weight: 600; color: rgba(243, 230, 196, .55); }
.mar-liste i { font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 99px; border: 1px solid rgba(217, 178, 95, .5); white-space: nowrap; }
.mar-liste i.demasque { background: rgba(217, 178, 95, .2); color: var(--or-clair); }
.mar-liste i.cache { color: rgba(243, 230, 196, .65); }
.mar-points li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(217, 178, 95, .35); font-weight: 700; }
.mar-points li:first-child { background: linear-gradient(90deg, rgba(217, 178, 95, .28), rgba(217, 178, 95, .06)); border-color: var(--or); }
.mar-points b { color: var(--or-clair); }
.mar-signature { margin: 6px 0 0; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(217, 178, 95, .55); }
.mar-texte.centre { text-align: center; }
.mar-voile.grand { min-height: 300px; gap: 12px; }
.mar-voile.grand span { font-size: 20px; }
.mar-voile-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--or); color: var(--or-clair); }
.mar-voile-ico svg { width: 32px; height: 32px; }
.mar-secrets { gap: 12px; background: transparent; border: 0; padding: 0; }
.mar-carte-secret { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 18px 16px; border-radius: 14px; border: 1px solid rgba(217, 178, 95, .6);
  background: linear-gradient(180deg, #221A0D, #0E0B08); box-shadow: inset 0 0 0 4px #0E0B08, inset 0 0 0 5px rgba(217, 178, 95, .3); }
.mar-carte-secret.moi { border-color: var(--or-clair); box-shadow: inset 0 0 0 4px #0E0B08, inset 0 0 0 5px var(--or), 0 0 26px rgba(246, 220, 150, .25); }
.mar-carte-secret .mar-contrainte { font-size: 24px; margin: 0; }
.mar-carte-secret:not(.moi) .mar-contrainte { font-size: 19px; }
