/* Sir Quiz — Pro Community (scoped cm-*) */
.cm-header{max-width:1100px}
.cm-nav .cm-pro-tag,.cm-pro-tag{margin-left:auto;font-size:10px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;background:#ffdc68;color:#3f285d;border-radius:20px;padding:2px 7px}
.cm-shortcut{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;white-space:nowrap;color:#5633b8;border-color:#d8c8ef}
.cm-shortcut svg,.cm-nav svg{width:19px;height:19px;flex-shrink:0}
.cm-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:10px 0 24px}
.cm-hero h1{font-size:clamp(32px,4.2vw,50px);outline:0}
.cm-hero p:not(.eyebrow){color:var(--muted);max-width:560px;line-height:1.65;margin:0;font-size:15px}
.cm-hero-badge{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:#fff8da;border:1px solid #ecdfaa;border-radius:18px;padding:16px 18px;transform:rotate(1.5deg);box-shadow:0 3px 0 #efe3b4}
.cm-hero-badge strong{font-family:'Fredoka',sans-serif;font-weight:600;font-size:18px;color:#5b3d10}
.cm-hero-badge span{font-size:12px;color:#79511b}
.cm-hero-badge .primary{margin-top:8px;padding:9px 16px;font-size:13px}
.cm-hero-badge.is-pro{background:#5633b8;border-color:#42248e;box-shadow:0 3px 0 #dfd1f7}
.cm-hero-badge.is-pro strong{color:#ffe18b}.cm-hero-badge.is-pro span{color:#eee5ff}
a.primary,a.cm-upgrade{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.cm-upgrade{background:#ffdc68!important;color:#3f285d!important;border-color:#3e226e!important;box-shadow:0 3px 0 #372258!important}
.cm-upgrade:hover{background:#ffe68e!important}
.cm-resume{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;background:#fff;border:2px solid #9b76e1;border-radius:20px;padding:18px 22px;margin-bottom:20px;box-shadow:0 3px 0 #eee6f7}
.cm-resume h2{font-size:21px;overflow-wrap:anywhere}.cm-resume .eyebrow{margin-bottom:4px}.cm-resume p.cq-meta{margin:4px 0 0}
.cm-alert .secondary{padding:8px 14px;font-size:13px}
.cm-notice{background:#eef6f1;border-color:#bfe0cd;color:#256b46}
.cm-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.cm-toolbar .secondary{display:inline-flex;align-items:center;gap:8px;padding:10px 15px;font-size:13px}
.cm-toolbar .secondary svg{width:17px;height:17px;color:#6840b5}
.cm-toolbar [aria-pressed="true"]{background:#eee4ff;border-color:#7750d5;color:#5633b8}
.cm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px}
.cm-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 3px 0 #eee6f7;padding:20px 22px;display:flex;flex-direction:column;min-width:0;animation:cqIn .4s ease both;animation-delay:calc(min(var(--i,0),8) * 40ms)}
.cm-card:hover{border-color:#c9b8e0}
.cm-card.is-gone{background:#fbf9fd;border-style:dashed;border-color:#c9b8e0}
.cm-card.is-gone h3{color:var(--muted)}
.cm-gone-chip{background:#f0ecf5;color:#6d647c}
.cm-card-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.cm-fav{margin-left:auto;width:40px;height:40px}
.cm-card h3{font-size:22px;overflow-wrap:anywhere}
.cm-topic{color:var(--muted);font-size:14px;line-height:1.5;margin:6px 0 6px;overflow-wrap:anywhere}
.cm-edition{margin:0 0 16px}
.cm-card-actions{margin-top:auto;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cm-card-actions .primary,.cm-card-actions .secondary{padding:10px 16px;font-size:13px}
.cm-share{display:inline-flex;align-items:center;gap:6px;margin-left:auto;border:0;background:none;color:#6840b5;font-size:13px;font-weight:700;padding:8px 4px;min-height:40px}
.cm-share svg{width:16px;height:16px}.cm-share:hover span{text-decoration:underline;text-underline-offset:4px}
.cm-skel-card{gap:12px;min-height:180px;animation:none}
.cm-more{display:flex;justify-content:center;margin-top:24px}
.cm-chip{background:#5633b8;color:#ffe18b}
.cm-play h1,.cm-results h1,#community-question-title,#community-review,#community-title{outline:0;overflow-wrap:anywhere}
/* Author panel */
.cm-creator{background:#fbf7ff;border-color:#d8c8ef}
.cm-vis{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:800;color:#5633b8;background:#eee4ff;border-radius:20px;padding:5px 11px}
.cm-vis.is-public{color:#256b46;background:#e2f3e9}
.cm-vis.is-loading{color:#875211;background:#fff0d5}.cm-vis.is-loading .cq-dot{animation:cqPulse 1s ease-in-out infinite}
.cm-creator-lead{font-size:14px;line-height:1.6;margin:0 0 10px}
.cm-rules{margin:0 0 16px;padding-left:18px;font-size:13px;line-height:1.65;color:var(--muted)}
.cm-rules li{margin-bottom:3px}
.cm-unpublish{color:#a13a2e;border-color:#f0c7bf}
.cm-unpublish:hover{background:#fff1ed}
.cm-creator-actions{margin-bottom:8px}
.cm-inline-link{color:#6840b5;font-weight:700}
@media(max-width:600px){
  .cm-hero{flex-direction:column;align-items:stretch}
  .cm-hero-badge{transform:none}
  .cm-shortcut{min-height:45px}
  .cm-grid{grid-template-columns:1fr}
  .cm-resume{flex-direction:column;align-items:stretch}
}
@media(prefers-reduced-motion:reduce){.cm-card,.cm-vis .cq-dot{animation:none!important}.cm-hero-badge{transform:none}}
