/* Waiz Earn Promoters — guide blocks. ONE stylesheet for the Mini App, the
   public page and the Guide Studio preview, paired with assets/js/guide-render.js.
   Annotation colours are fixed (they sit on screenshots, not on the theme)
   and always carry a white/dark halo for legibility. */

.wg { --wg-accent: #6D5BFF; --wg-success: #19C38A; --wg-warning: #FFB020; --wg-danger: #FF4D6A; --wg-light: #FFFFFF; --wg-dark: #111827;
  display: grid; gap: 14px; container-type: inline-size; font-size: 15px; line-height: 1.55; color: var(--text); }
.wg a { color: var(--primary-text); font-weight: 700; }
.wg strong { font-weight: 800; }
.wg-h2 { font: 700 20px/1.25 var(--font-display); margin: 6px 0 0; }
.wg-h3 { font: 700 17px/1.3 var(--font-display); margin: 4px 0 0; }
.wg-text { color: var(--text); }
.wg-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.wg-step-n { width: 34px; height: 34px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; font: 800 15px/1 var(--font-display); }
.wg-step h4 { font: 700 16px/1.3 var(--font-body); margin: 6px 0 2px; }
.wg-step p { color: var(--muted); }
.wg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wg-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.wg-list .icon { width: 20px; height: 20px; }
.wg-call { padding: 12px 14px; border-radius: 14px; display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.wg-call h4 { font: 700 15px/1.3 var(--font-body); margin: 0 0 2px; }
.wg-call.rule { background: var(--surface-sunk); border: 1px solid var(--line-soft); }
.wg-call.warn { background: var(--warning-soft); }
.wg-call.warn .icon, .wg-call.warn h4 { color: var(--warning); }
.wg-call.tip { background: var(--success-soft); }
.wg-call.tip .icon, .wg-call.tip h4 { color: var(--success); }
.wg-box { border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px; background: var(--surface); }
.wg-box h4 { font: 700 14px/1.3 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.wg-reward { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.wg-reward div { padding: 10px 12px; border-radius: 12px; background: var(--surface-sunk); }
.wg-reward b { display: block; font: 700 20px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.wg-reward span { color: var(--muted); font-size: 13px; }
.wg-note { color: var(--muted); font-size: 13px; margin-top: 8px; }

.wg-figure { margin: 0; display: grid; gap: 8px; }
.wg-stage { position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: var(--surface-sunk); }
.wg-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wg-stage svg.wg-ov { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wg-figure figcaption { color: var(--muted); font-size: 13px; }
.wg-steps { margin: 0; padding-left: 20px; font-size: 14px; color: var(--text); display: grid; gap: 4px; }
.wg-steps b { color: var(--primary-text); }
.wg-ov .halo { stroke: rgba(0,0,0,.55); }
.wg-ov text { font-family: var(--font-body); font-weight: 800; paint-order: stroke; stroke: rgba(0,0,0,.65); stroke-width: 3px; stroke-linejoin: round; }
.wg-anim-pulse { transform-box: fill-box; transform-origin: center; animation: wg-pulse 1.8s ease-in-out infinite; }
.wg-anim-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: wg-draw 1.1s ease-out forwards; }
@keyframes wg-pulse { 50% { transform: scale(1.08); opacity: .85; } }
@keyframes wg-draw { to { stroke-dashoffset: 0; } }
.wg[data-motion="off"] .wg-anim-pulse, .wg[data-motion="off"] .wg-anim-draw { animation: none; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .wg-anim-pulse, .wg-anim-draw { animation: none; stroke-dashoffset: 0; } }

.wg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wg-pair figure { margin: 0; }
.wg-pair .tag { display: inline-flex; align-items: center; gap: 6px; font: 800 12px/1 var(--font-body); padding: 6px 9px; border-radius: 999px; margin-bottom: 6px; }
.wg-pair .do .tag { background: var(--success-soft); color: var(--success); }
.wg-pair .avoid .tag { background: var(--danger-soft); color: var(--danger); }
.wg-pair img { width: 100%; border-radius: 12px; }
@container (max-width: 420px) { .wg-pair { grid-template-columns: 1fr; } }

.wg-video { position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, var(--poster-a), var(--poster-b)); aspect-ratio: 16 / 9; }
.wg-video.v { aspect-ratio: 9 / 16; max-width: 320px; }
.wg-video img, .wg-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wg-video button { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.25); color: #fff; display: grid; place-items: center; cursor: pointer; font: 700 14px var(--font-body); }
.wg-video button span { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 999px; background: rgba(0,0,0,.55); }
.wg-example { border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; background: var(--surface); }
.wg-example .lbl { display: inline-flex; margin: 10px 12px 0; font: 800 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--warning-soft); color: var(--warning); }
.wg-example .body { padding: 10px 12px 12px; }
.wg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wg-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 12px; border: 1px dashed var(--line); background: var(--surface-sunk); color: var(--text); font: 700 14px/1.2 var(--font-body); cursor: pointer; }
.wg-chip .icon { width: 16px; height: 16px; color: var(--primary-text); }
.wg-chip.copied { border-style: solid; border-color: var(--success); }
.wg-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--primary-solid); color: var(--on-primary) !important; text-decoration: none; font-weight: 700; justify-self: start; border: 0; cursor: pointer; }
.wg-acc { border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); }
.wg-acc summary { min-height: 48px; padding: 12px 14px; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.wg-acc summary::-webkit-details-marker { display: none; }
.wg-acc[open] summary { border-bottom: 1px solid var(--line-soft); }
.wg-acc .inner { padding: 12px 14px; color: var(--muted); }
.wg-sep { height: 1px; background: var(--line-soft); margin: 4px 0; }
.wg-cols { display: grid; gap: 14px; }
@container (min-width: 700px) { .wg-cols { grid-template-columns: 1fr 1fr; } }
.wg-cols > div { display: grid; gap: 14px; align-content: start; }
.wg-missing { padding: 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; }
