/* Tutoriel guidé : projecteur et bulle. Chaque jeu règle les variables --guide-* à son goût. */
#guideMask { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
#guideHole { position: fixed; border-radius: 14px;
  box-shadow: 0 0 0 200vmax var(--guide-shade, #04060cd9), 0 0 0 4px var(--guide-accent, #ffd36b), 0 0 30px 6px var(--guide-accent, #ffd36b);
  transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease; }
#guideHole.none { box-shadow: 0 0 0 200vmax var(--guide-shade, #04060cd9); }
#guideBlock { position: fixed; inset: 0; z-index: 9001; }
#guideBubble { position: fixed; z-index: 9002; width: min(440px, 92vw); padding: 16px 18px 14px; border-radius: 12px;
  color: var(--guide-ink, #1d1a14); background: var(--guide-bg, #fbf5e6);
  box-shadow: 0 0 0 3px var(--guide-border, #3a2c14), 0 20px 50px #000d; transition: left .3s ease, top .3s ease;
  font: 400 16px/1.42 var(--guide-font, system-ui, sans-serif); }
#guideBubble h3 { margin: 0 0 6px; font: var(--guide-title-weight, 800) var(--guide-title-size, 24px)/1.1 var(--guide-title-font, system-ui, sans-serif);
  color: var(--guide-title, #7a3b0c); }
#guideBubble .guideStep { margin: 0; font: 800 12px system-ui, sans-serif; opacity: .65; }
#guideBubble .guideText p { margin: 0 0 8px; }
#guideBubble .guideText b { font-weight: 800; }
#guideBubble .guideDo { display: block; margin-top: 6px; padding: 6px 10px; border-radius: 8px; font: 800 14px system-ui, sans-serif;
  background: var(--guide-border, #3a2c14); color: var(--guide-accent, #ffd36b); }
#guideBubble .guideRow { display: flex; gap: 10px; margin-top: 10px; }
#guideBubble .guideRow button { flex: 1; cursor: pointer; padding: 8px 12px; border-radius: 10px; border: 0; font: 800 15px system-ui, sans-serif;
  background: var(--guide-button, #e9dfc7); color: var(--guide-ink, #1d1a14); }
#guideBubble .guideRow .guideNext { background: var(--guide-accent, #ffd36b); }
#guideBubble.action .guideNext { display: none; }
#guideBubble .cards { display: flex; gap: 6px; margin: 4px 0 8px; flex-wrap: wrap; }
#guideBubble .cards img { width: 58px; border-radius: 5px; box-shadow: 0 3px 8px #0006; cursor: zoom-in; position: relative;
  transition: scale .18s ease; transform-origin: 50% 0; }
#guideBubble .cards img.big { scale: 2.6; z-index: 3; box-shadow: 0 10px 30px #000a; }
#guideBubble .cardInfo { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: #0000000f; font-size: 14px; }
#guideBubble .cardInfo:empty { display: none; }
@media (prefers-reduced-motion: reduce) { #guideHole, #guideBubble { transition: none; } }

/* téléphone : pendant une action, bulle plus compacte (elle défile si le texte est long) */
@media (max-width: 700px) {
  #guideBubble.action { max-height: 40vh; overflow-y: auto; padding: 10px 12px; font-size: 14px; }
  #guideBubble.action h3 { font-size: 19px; }
  #guideBubble.action .cards img { width: 40px; }
}
