/* Contextual explanations share the active Rétro, Bonta or Brâkmar palette. */
#player-dialog[data-view=guide]{width:min(780px,calc(100vw - 24px))}
.guide-tabs{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid var(--theme-border)}
body #player-dialog .guide-tabs button{font-size:12px;min-height:36px;padding:8px 13px;border-radius:8px;background:var(--theme-card)!important;color:var(--theme-ink)!important;border:1px solid var(--theme-border)!important}
body #player-dialog .guide-tabs button[aria-pressed=true]{background:var(--theme-accent)!important;color:var(--theme-accent-text)!important;border-color:var(--theme-accent)!important}
.guide-content{color:var(--theme-ink);line-height:1.6}.guide-content h3{font:400 26px/1.2 var(--font-display);margin:5px 0 9px;color:var(--theme-ink)}
body #player-dialog .guide-content p{font-size:13px;line-height:1.65;margin:8px 0;color:var(--theme-muted)}
.guide-hero{display:flex;gap:16px;align-items:flex-start;margin-bottom:18px}.guide-hero>div:last-child{min-width:0}.guide-hero-icon{display:flex;align-items:center;justify-content:center;flex:none;width:54px;height:54px;border:1px solid var(--theme-border);border-radius:13px;background:var(--theme-accent-soft)}
.guide-hero-icon .rv-stat-icon{width:32px;height:32px;object-fit:contain}.mana-hero .guide-hero-icon{background:var(--theme-mana-bg)}
.guide-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:18px 0}
.guide-facts>div{display:flex;flex-direction:column;gap:3px;align-items:center;text-align:center;padding:14px 8px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-card)}
.guide-facts strong{font-size:25px;line-height:1.3;font-variant-numeric:tabular-nums;color:var(--theme-accent-ink)}.guide-facts span{font-size:11.5px;color:var(--theme-muted)}
[data-guide-topic=mana] .guide-facts>div:first-child{background:var(--theme-mana-bg)}[data-guide-topic=mana] .guide-facts>div:first-child strong{color:var(--theme-mana-ink)}
.guide-content h4{display:flex;align-items:center;gap:7px;font-size:14px;line-height:1.4;margin:0 0 8px;color:var(--theme-ink)}.guide-content h4 .rv-stat-icon{width:21px;height:21px;object-fit:contain}
.mana-example{padding:18px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-mana-bg);margin:18px 0}.mana-example h4{color:var(--theme-mana-ink)}
.mana-example-track{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center;margin:14px 0}
.mana-example-track>div{min-width:0;display:flex;flex-direction:column;gap:4px}.mana-example-track b{font-size:26px;line-height:1.2;color:var(--theme-mana-ink)}.mana-example-track span{font-size:11.5px;color:var(--theme-mana-ink)}
.mana-example-track .example-arrow{font-size:20px}.mana-example-track i{height:5px;border-radius:10px;background:color-mix(in srgb,var(--theme-mana-ink) 16%,transparent);overflow:hidden;margin-top:4px}.mana-example-track i:before{content:'';display:block;width:var(--mana-level);height:100%;background:var(--theme-mana-ink);border-radius:inherit}
body #player-dialog .mana-example p{font-size:11.5px;color:var(--theme-mana-ink);margin-bottom:0}
.guide-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.guide-two-columns>article{padding:16px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-card)}.guide-two-columns>article p:last-child{margin-bottom:0}
.guide-disclosure{margin:12px 0;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-card);padding:0 16px}
.guide-disclosure summary{font-size:13px;font-weight:700;line-height:1.5;padding:13px 0;cursor:pointer;color:var(--theme-accent-ink)}.guide-disclosure p:last-child{padding-bottom:10px}
.guide-origin{border-top:1px solid var(--theme-border);padding-top:14px}body #player-dialog .guide-origin{font-size:11.5px;line-height:1.65}
.guide-steps-cards{list-style:none;display:flex;flex-direction:column;gap:10px;padding:0;margin:18px 0}.guide-steps-cards>li{display:flex;gap:13px;align-items:flex-start;padding:15px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-card)}.guide-steps-cards>li>b{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:9px;background:var(--theme-accent-soft);color:var(--theme-accent-ink);font-size:16px}.guide-steps-cards>li p{margin-bottom:0!important}.guide-content kbd{display:inline-block;min-width:19px;font:600 11.5px var(--font-ui);text-align:center;padding:1px 4px;background:var(--theme-paper-deep);border:1px solid var(--theme-border);border-bottom-width:2px;border-radius:4px;color:var(--theme-ink)}
.guide-tip{padding:16px;border-left:3px solid var(--theme-accent);border-radius:0 9px 9px 0;background:var(--theme-accent-soft);margin:18px 0}.guide-definitions{margin:0}.guide-definitions>div{display:grid;grid-template-columns:105px 1fr;gap:10px;padding:9px 0;border-top:1px solid var(--theme-border);font-size:12px}.guide-definitions dt{font-weight:700;color:var(--theme-ink)}.guide-definitions dd{margin:0;color:var(--theme-muted)}
.guide-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:18px}.guide-actions>*{min-height:38px;font-size:12px}.guide-actions>a{display:inline-flex;align-items:center;padding:9px 14px;border-radius:8px;text-decoration:none;background:var(--theme-accent);color:var(--theme-accent-text)}
body #player-dialog .guide-pause{padding:9px 12px;margin:0 0 16px;border-radius:7px;background:var(--theme-accent-soft);color:var(--theme-accent-ink);font-size:12px;line-height:1.5}
body #player-dialog button.context-help{display:inline-flex;align-items:center;font-size:11.5px;line-height:1.5;padding:7px 0;margin:4px 0 0;background:transparent!important;color:var(--theme-accent-ink)!important;border:0;border-radius:0;text-align:left;min-height:30px;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--theme-accent-ink) 40%,transparent);text-underline-offset:3px;box-shadow:none}
.stat-help-links{display:flex;flex-wrap:wrap;gap:0 15px}.reward-delivery{color:var(--theme-accent-ink)!important}
body #player-dialog :is(.guide-tabs button,.guide-actions>*,.context-help,.guide-disclosure summary):focus-visible{outline:2px solid var(--theme-accent-ink);outline-offset:3px}
@media(max-width:600px){.guide-hero{gap:11px}.guide-hero-icon{width:40px;height:40px;border-radius:10px}.guide-hero-icon .rv-stat-icon{width:25px;height:25px}.guide-content h3{font-size:23px}.guide-two-columns{grid-template-columns:1fr}.guide-facts{gap:5px}.guide-facts>div{padding:12px 5px}.guide-facts strong{font-size:22px}.mana-example{padding:13px}.mana-example-track{gap:6px}.guide-tabs{gap:5px}body #player-dialog .guide-tabs button{font-size:11.5px;padding:7px 10px}.guide-definitions>div{grid-template-columns:1fr;gap:3px}.guide-actions{align-items:stretch;flex-direction:column}.guide-actions>*{text-align:center;justify-content:center}}

/* Me débloquer (15/10/2026) : encart en tête de l'aide */
.guide-unstuck{margin:0 0 10px;padding:7px 10px;border:1px solid var(--theme-border,#c9a46a);border-radius:8px;background:color-mix(in srgb,var(--theme-panel,#f4e6c8) 85%,#d84 15%);font-size:13px}
.guide-unstuck button{margin:0 6px;padding:3px 10px;border-radius:6px;font-weight:700;cursor:pointer}
.guide-unstuck small{opacity:.75}
