/* Guided visit: Help,Practice and /aide. Colours come from the shared UI tokens. */
.dhelp{--dhelp-bg:var(--ui-bg,#08131d);--dhelp-surface:var(--ui-surface,#0f1f2c);--dhelp-text:var(--ui-text,#eef4f8);--dhelp-muted:var(--ui-text-muted,#a9b8c4);--dhelp-line:var(--ui-divider,#ffffff24);--dhelp-action:var(--ui-action,#f0c674);--dhelp-on-action:var(--ui-on-action,#1b1405);--dhelp-ring:#ff3b30;
 box-sizing:border-box;display:flex;flex-direction:column;height:100%;min-height:0;background:var(--dhelp-bg);color:var(--dhelp-text);font-family:var(--ui-font,Inter,"Segoe UI",Arial,sans-serif);text-align:start}
.dhelp.dhelp *,.dhelp.dhelp *::before,.dhelp.dhelp *::after{box-sizing:border-box}
dialog.dhelp-dialog.dhelp{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden}
dialog.dhelp-dialog.dhelp::backdrop{background:#000a}
dialog.dhelp-dialog.dhelp:not([open]){display:none!important}
.dhelp.dhelp .dhelp-head{flex:none;display:flex;align-items:center;gap:8px;min-height:56px;padding:6px max(10px,env(safe-area-inset-right)) 4px max(6px,env(safe-area-inset-left));border-bottom:1px solid var(--dhelp-line)}
.dhelp.dhelp .dhelp-close{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:12px;background:transparent;color:inherit;cursor:pointer}
.dhelp.dhelp .dhelp-close svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dhelp.dhelp .dhelp-close[hidden]{display:none}
.dhelp.dhelp .dhelp-title{flex:1;min-width:0;margin:0;font-size:17px;line-height:1.25;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dhelp.dhelp .dhelp-count{flex:none;padding:4px 10px;border-radius:999px;background:var(--dhelp-surface);border:1px solid var(--dhelp-line);font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.dhelp.dhelp :focus-visible{outline:2px solid var(--ui-focus,var(--dhelp-action));outline-offset:3px}
.dhelp.dhelp .dhelp-status{margin:auto;padding:24px;font-size:17px;line-height:1.5;text-align:center;color:var(--dhelp-muted)}

/* The list */
.dhelp.dhelp .dhelp-list-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px max(20px,env(safe-area-inset-bottom))}
.dhelp.dhelp .dhelp-intro{margin:4px 2px 14px;font-size:16px;line-height:1.5;color:var(--dhelp-muted)}
.dhelp.dhelp .dhelp-practice-entry{display:flex;align-items:center;gap:14px;width:100%;min-height:72px;margin:0 0 14px;padding:14px 16px;border:1px solid var(--dhelp-action);border-radius:16px;background:color-mix(in srgb,var(--dhelp-action) 14%,var(--dhelp-surface));color:inherit;font:inherit;text-align:start;cursor:pointer}
.dhelp.dhelp .dhelp-practice-entry strong{display:block;font-size:17px}
.dhelp.dhelp .dhelp-practice-entry small{display:block;margin-top:3px;font-size:14px;line-height:1.4;color:var(--dhelp-muted)}
.dhelp.dhelp .dhelp-practice-entry .dhelp-icon{color:var(--dhelp-action)}
.dhelp.dhelp .dhelp-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.dhelp.dhelp .dhelp-item{display:flex;align-items:center;gap:14px;width:100%;min-height:60px;padding:10px 14px;border:1px solid var(--dhelp-line);border-radius:14px;background:var(--dhelp-surface);color:inherit;font:inherit;font-size:16px;font-weight:600;text-align:start;cursor:pointer}
.dhelp.dhelp .dhelp-item-title{flex:1;min-width:0}
.dhelp.dhelp .dhelp-icon{flex:none;width:26px;height:26px}
.dhelp.dhelp .dhelp-item .dhelp-icon{color:var(--ui-link,var(--dhelp-action))}
.dhelp.dhelp .dhelp-paid{flex:none;display:inline-flex;align-items:center;gap:4px;padding:3px 9px 3px 6px;border-radius:999px;background:color-mix(in srgb,var(--dhelp-action) 22%,transparent);color:var(--dhelp-text);font-size:13px;font-weight:700}
.dhelp.dhelp .dhelp-coin{width:16px;height:16px;color:var(--dhelp-action)}

/* One step fills the screen: sentence,picture,buttons. */
.dhelp.dhelp .dhelp-caption{flex:none;display:flex;align-items:center;justify-content:center;min-height:calc(3 * 1.3em + 16px);margin:0;padding:8px 16px;font-size:18px;line-height:1.3;font-weight:700;text-align:center;overflow-wrap:anywhere}
.dhelp.dhelp .dhelp-stage{flex:1;min-height:0;display:grid;place-items:center;padding:4px 12px;container-type:size}
.dhelp.dhelp .dhelp-phone{position:relative;container-type:inline-size;height:min(100cqh,100cqw * 780 / 360);aspect-ratio:360/780;border:5px solid #05080b;border-radius:22px;background:#05080b;box-shadow:0 0 0 1px #ffffff2e,0 12px 36px #0007}
.dhelp.dhelp .dhelp-phone>img{display:block;width:100%;height:100%;border-radius:17px;object-fit:cover;user-select:none;-webkit-user-select:none}
.dhelp.dhelp .dhelp-nav{flex:none;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:10px;padding:10px 16px max(12px,env(safe-area-inset-bottom))}
.dhelp.dhelp .dhelp-nav button,.dhelp.dhelp .dhelp-primary{min-height:52px;padding:10px 14px;border-radius:14px;font:inherit;font-size:17px;font-weight:700;cursor:pointer}
.dhelp.dhelp .dhelp-prev{border:1px solid var(--dhelp-line);background:var(--dhelp-surface);color:inherit}
.dhelp.dhelp .dhelp-prev:disabled{opacity:.4;cursor:default}
.dhelp.dhelp .dhelp-next,.dhelp.dhelp .dhelp-primary{border:1px solid var(--dhelp-action);background:var(--dhelp-action);color:var(--dhelp-on-action)}
.dhelp.dhelp .dhelp-practice-hint{margin:0;font-size:15px;line-height:1.35;font-weight:600;text-align:center;color:var(--dhelp-muted)}

/* The spot: a zero-size point at the centre of the box,carrying the hand and the ring. */
.dhelp.dhelp .dhelp-spot{position:absolute;width:0;height:0;pointer-events:none;--hx:1;--hy:1;--hand:clamp(26px,15cqw,46px)}
.dhelp.dhelp .dhelp-spot.is-right{--hx:-1}
.dhelp.dhelp .dhelp-spot.is-low{--hy:-1}
.dhelp.dhelp .dhelp-hand{position:absolute;left:calc(var(--hand) * -.2);top:calc(var(--hand) * -.026);width:var(--hand);height:auto;margin:0;overflow:visible;transform-origin:20% 2%;filter:drop-shadow(0 3px 4px #000a);animation:dhelp-hand 2.4s cubic-bezier(.3,.7,.4,1) infinite}
.dhelp.dhelp .dhelp-ring{position:absolute;left:calc(var(--hand) * -.68);top:calc(var(--hand) * -.68);width:calc(var(--hand) * 1.36);height:calc(var(--hand) * 1.36);border:max(3px,calc(var(--hand) * .08)) solid var(--dhelp-ring);border-radius:50%;opacity:0;animation:dhelp-ring 2.4s ease-out infinite}
.dhelp.dhelp .dhelp-pulse{display:none}
@keyframes dhelp-hand{
 0%{transform:translate(calc(var(--hx) * var(--hand) * .9),calc(var(--hy) * var(--hand) * 1.1)) scale(var(--hx),var(--hy));opacity:0}
 18%{opacity:1}
 34%{transform:translate(0,0) scale(var(--hx),var(--hy))}
 44%{transform:translate(0,0) scale(calc(var(--hx) * .88),calc(var(--hy) * .88))}
 54%{transform:translate(0,0) scale(var(--hx),var(--hy))}
 86%{transform:translate(0,0) scale(var(--hx),var(--hy));opacity:1}
 100%{transform:translate(0,0) scale(var(--hx),var(--hy));opacity:0}
}
@keyframes dhelp-ring{0%,44%{transform:scale(.25);opacity:0}48%{opacity:.95}84%,100%{transform:scale(1.25);opacity:0}}

/* Practice: the spot pulses; the hand comes only after a tap elsewhere. */
.dhelp.dhelp .dhelp-spot.is-practice .dhelp-hand,.dhelp.dhelp .dhelp-spot.is-practice .dhelp-ring{display:none}
.dhelp.dhelp .dhelp-spot.is-practice.is-shown .dhelp-hand,.dhelp.dhelp .dhelp-spot.is-practice.is-shown .dhelp-ring{display:block}
.dhelp.dhelp .dhelp-spot.is-practice .dhelp-pulse{display:block;position:absolute;left:calc(var(--hand) * -.55);top:calc(var(--hand) * -.55);width:calc(var(--hand) * 1.1);height:calc(var(--hand) * 1.1);margin:0;border-radius:50%;background:color-mix(in srgb,var(--dhelp-action) 45%,transparent);box-shadow:0 0 0 3px var(--dhelp-action);animation:dhelp-pulse 1.4s ease-in-out infinite}
@keyframes dhelp-pulse{0%,100%{transform:scale(.7);opacity:.9}50%{transform:scale(1.15);opacity:.45}}
.dhelp.dhelp .dhelp-phone:has(.is-practice){cursor:pointer}

/* End screens */
.dhelp.dhelp .dhelp-end{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px 22px max(24px,env(safe-area-inset-bottom));text-align:center;overflow-y:auto}
.dhelp.dhelp .dhelp-end h3{margin:0;font-size:26px;line-height:1.2}
.dhelp.dhelp .dhelp-end p{margin:0;font-size:18px;line-height:1.45;color:var(--dhelp-muted)}
.dhelp.dhelp .dhelp-end-mark{width:72px;height:72px;border-radius:50%;background:var(--dhelp-action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1405' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/42px no-repeat}
.dhelp.dhelp .dhelp-known{display:grid;gap:8px;margin:4px 0 8px;padding:0;list-style:none;font-size:17px;font-weight:600}
.dhelp.dhelp .dhelp-known li::before{content:"✓ ";color:var(--dhelp-action)}
.dhelp.dhelp .dhelp-primary{width:min(100%,360px);margin-top:8px}

/* Home card */
.dhelp-card{position:relative;display:flex;gap:14px;align-items:flex-start;margin:0 0 18px;padding:16px 48px 16px 16px;border:1px solid var(--ui-action,#f0c674);border-radius:var(--ui-card-radius,16px);background:color-mix(in srgb,var(--ui-action,#f0c674) 12%,var(--ui-surface,#0f1f2c));color:var(--ui-text,inherit)}
.dhelp-card.dhelp-card h2{margin:0 0 4px;font-size:17px;line-height:1.3}
.dhelp-card.dhelp-card p{margin:0 0 12px;font-size:15px;line-height:1.45;color:var(--ui-text-muted,inherit)}
.dhelp-card.dhelp-card .dhelp-card-icon{flex:none;width:30px;height:30px;color:var(--ui-action,#f0c674)}
.dhelp-card.dhelp-card .dhelp-card-start{min-height:44px;padding:10px 18px;border:1px solid var(--ui-action,#f0c674);border-radius:var(--ui-control-radius,10px);background:var(--ui-action,#f0c674);color:var(--ui-on-action,#1b1405);font:inherit;font-weight:700;cursor:pointer}
.dhelp-card.dhelp-card .dhelp-card-close{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:12px;background:transparent;color:inherit;cursor:pointer}
.dhelp-card.dhelp-card .dhelp-card-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

@media (prefers-reduced-motion:reduce){
 .dhelp.dhelp .dhelp-hand{animation:none;transform:scale(var(--hx),var(--hy))}
 .dhelp.dhelp .dhelp-ring{animation:none;opacity:.8;transform:scale(.9)}
 .dhelp.dhelp .dhelp-spot.is-practice .dhelp-pulse{animation:none}
}

/* Contextual help keeps the current workshop in sight on a computer. */
@media(min-width:761px) and (min-height:501px){dialog.dhelp-context.dhelp{inset:12px 12px 12px auto;width:min(760px,65vw);height:calc(100dvh - 24px);border:1px solid var(--dhelp-line);border-radius:18px;box-shadow:0 16px 64px #0005}dialog.dhelp-context.dhelp::backdrop{background:#0003}.dhelp.dhelp .dhelp-list{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}}
.dhelp.dhelp .dhelp-phone[data-layout=desktop]{max-width:100%;border-radius:6px}
.dhelp.dhelp .dhelp-exit{flex:none;min-width:44px;min-height:44px;border:0;background:transparent;color:inherit;font:inherit;font-size:24px;cursor:pointer}
.dhelp.dhelp .dhelp-zoom{min-height:44px;padding:6px 12px;border:1px solid var(--dhelp-line);border-radius:10px;background:var(--dhelp-surface);color:inherit;cursor:pointer}
dialog.dhelp-context.dhelp.dhelp-expanded{inset:0;width:100%;height:100dvh;border-radius:0}
