/* GetWheelSpinner v9.0 Stage 7 — product families for the generic engine pages.
   Every rule is scoped under body.gws-fam (set only on the 28 family pages). Loaded after the page CSS, before v81.css.
   Tokens: --fam-a/--fam-b = action gradient (white text >= 4.5:1), --fam-tint = accent text on dark cards,
   --fam-deep = accent text on light cards. Includes the family-page mobile fixes: 16 px editor (iOS focus zoom)
   and 44 px touch targets on the engine controls. */
body.gws-fam{--fam-a:#1D4ED8;--fam-b:#1E3A8A;--fam-tint:#93C5FD;--fam-deep:#1E40AF}
body.gws-fam.gws-fam-facilitate{--fam-a:#1D4ED8;--fam-b:#1E3A8A;--fam-tint:#93C5FD;--fam-deep:#1E40AF}
body.gws-fam.gws-fam-party{--fam-a:#A21CAF;--fam-b:#701A75;--fam-tint:#F0ABFC;--fam-deep:#86198F}
body.gws-fam.gws-fam-decide{--fam-a:#C2410C;--fam-b:#9A3412;--fam-tint:#FDBA74;--fam-deep:#9A3412}
body.gws-fam.gws-fam-group{--fam-a:#047857;--fam-b:#065F46;--fam-tint:#6EE7B7;--fam-deep:#065F46}
body.gws-fam.gws-fam-generate{--fam-a:#0E7490;--fam-b:#155E75;--fam-tint:#67E8F9;--fam-deep:#155E75}
body.gws-fam.gws-fam-draw{--fam-a:#6D28D9;--fam-b:#4C1D95;--fam-tint:#C4B5FD;--fam-deep:#5B21B6}
body.gws-fam.gws-fam-prompt{--fam-a:#0F766E;--fam-b:#134E4A;--fam-tint:#5EEAD4;--fam-deep:#115E59}

/* family identity around the shared wheel (the GWS rim/cap stay) */
body.gws-fam.gws-fam #spin-btn:not(:disabled){background:linear-gradient(135deg,var(--fam-a),var(--fam-b));color:#fff;box-shadow:0 14px 32px -14px var(--fam-a)}
body.gws-fam .card-label::before{background:var(--fam-tint)}
body.gws-fam .rp-label,body.gws-fam #overlay-label{color:var(--fam-tint)}
body.gws-fam #result-panel.has-result{border-color:var(--fam-tint)}
html[data-theme="light"] body.gws-fam .card-label::before{background:var(--fam-deep)}
html[data-theme="light"] body.gws-fam .rp-label,html[data-theme="light"] body.gws-fam #overlay-label{color:var(--fam-deep)}
html[data-theme="light"] body.gws-fam #result-panel.has-result{border-color:var(--fam-deep);background:#FFFFFF}
body.gws-fam .rp-winner{overflow-wrap:anywhere}
body.gws-fam #overlay-winner{overflow-wrap:anywhere;color:var(--fam-tint)}
html[data-theme="light"] body.gws-fam #overlay-winner{color:var(--fam-deep)}

/* family card */
body.gws-fam .gws-fam-card{border-top:3px solid var(--fam-a)}
body.gws-fam .gws-fam-tag{display:inline-block;margin:0 0 6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--fam-tint);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}
body.gws-fam .gws-fam-help{margin:0 0 10px;font-size:14px;line-height:1.5;color:inherit;opacity:.92}
body.gws-fam .gws-fam-sub{margin:12px 0 6px;font-size:12px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--fam-tint)}
body.gws-fam .gws-fam-chips{display:flex;flex-wrap:wrap;gap:8px}
body.gws-fam .gws-fam-chip,body.gws-fam .gws-fam-btn{min-height:44px;min-width:44px;padding:8px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.04);color:inherit;font:inherit;font-size:14px;font-weight:700;line-height:1.2;cursor:pointer;text-align:center}
body.gws-fam .gws-fam-chip[aria-pressed="true"],body.gws-fam .gws-fam-btn.is-primary{background:linear-gradient(135deg,var(--fam-a),var(--fam-b));border-color:transparent;color:#fff}
body.gws-fam .gws-fam-chip:disabled,body.gws-fam .gws-fam-btn:disabled{opacity:.5;cursor:not-allowed}
body.gws-fam .gws-fam-chip:focus-visible,body.gws-fam .gws-fam-btn:focus-visible,body.gws-fam .gws-fam-input:focus-visible{outline:3px solid var(--fam-tint);outline-offset:2px}
body.gws-fam .gws-fam-count,body.gws-fam .gws-fam-msg,body.gws-fam .gws-fam-note{margin:8px 0 0;font-size:13px;line-height:1.45;opacity:.9}
body.gws-fam .gws-fam-note{font-weight:700;opacity:1}
body.gws-fam .gws-fam-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
body.gws-fam .gws-fam-field{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:700;flex:1 1 88px;min-width:0}
body.gws-fam .gws-fam-input{min-height:44px;width:100%;box-sizing:border-box;padding:8px 10px;border-radius:10px;border:1px solid rgba(255,255,255,.22);background:rgba(0,0,0,.25);color:inherit;font:inherit;font-size:16px}
body.gws-fam .gws-fam-input[aria-invalid="true"]{border-color:#F87171}
body.gws-fam .gws-fam-clock{margin:4px 0 8px;font-size:34px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.1;color:var(--fam-tint)}
body.gws-fam .gws-fam-timer.is-done .gws-fam-clock::after{content:"  Time is up";font-size:15px;font-weight:700}
html[data-theme="light"] body.gws-fam .gws-fam-tag{color:var(--fam-deep);background:rgba(15,23,42,.04);border-color:rgba(15,23,42,.14)}
html[data-theme="light"] body.gws-fam .gws-fam-sub,html[data-theme="light"] body.gws-fam .gws-fam-clock{color:var(--fam-deep)}
html[data-theme="light"] body.gws-fam .gws-fam-chip,html[data-theme="light"] body.gws-fam .gws-fam-btn{border-color:rgba(15,23,42,.22);background:#FFFFFF}
html[data-theme="light"] body.gws-fam .gws-fam-chip[aria-pressed="true"],html[data-theme="light"] body.gws-fam .gws-fam-btn.is-primary{background:linear-gradient(135deg,var(--fam-a),var(--fam-b));border-color:transparent;color:#fff}
html[data-theme="light"] body.gws-fam .gws-fam-input{border-color:rgba(15,23,42,.3);background:#FFFFFF}
html[data-theme="light"] body.gws-fam .gws-fam-chip:focus-visible,html[data-theme="light"] body.gws-fam .gws-fam-btn:focus-visible,html[data-theme="light"] body.gws-fam .gws-fam-input:focus-visible{outline-color:var(--fam-deep)}

/* family-page mobile fixes (M1 / M2 / M3 from the 7A audit) */
body.gws-fam #options-textarea{font-size:16px}
body.gws-fam #theme-toggle,body.gws-fam #sound-toggle,body.gws-fam #mode-toggle,body.gws-fam #hist-clear,body.gws-fam #add-btn,body.gws-fam #shuffle-btn,body.gws-fam #clear-btn,body.gws-fam .v8-embed-link{min-height:44px}
body.gws-fam #shuffle-btn,body.gws-fam .opt-remove{min-width:44px}
body.gws-fam .opt-remove{min-height:44px}
@media (pointer:coarse){body.gws-fam .gws81-crumbrow .v8-crumb a{min-height:44px;display:inline-flex;align-items:center}}   /* same condition as the v8.1 44 px Save toggle */
@media (prefers-reduced-motion:reduce){body.gws-fam .gws-fam-chip,body.gws-fam .gws-fam-btn{transition:none}}
