/* چالش */
.ch-meta{ display:flex; flex-wrap:wrap; gap:8px 14px; justify-content:center; margin-top:14px; color:var(--ink-soft); font-size:.92rem; }
.ch-kind{ padding:3px 14px; border-radius:999px; font-weight:700; color:#16110a; background:linear-gradient(135deg, #F3D488, #C08A2E); }
.ch-kind.written{ background:linear-gradient(135deg, #9DC8F5, #5B8DD6); }
.ch-desc{ padding:18px 22px; border:1px solid var(--line-strong); border-radius:16px; background:rgba(217,169,62,.07); line-height:2.1; margin-bottom:18px; }
.ch-desc p{ margin:0 0 8px; }
.ch-file{ text-align:center; margin:0 0 18px; }
.ch-form h2, .ch-others h2, .ch-review h2{ font-size:1.1rem; margin:22px 0 12px; color:var(--violet-bright); }
.ch-trap{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.ch-error{ margin:0 0 14px; padding:12px 16px; border-radius:12px; background:rgba(224,82,47,.14); border:1px solid rgba(224,82,47,.5); }
.ch-q{ margin:0 0 14px; padding:16px 18px; border:1px solid var(--line-strong); border-radius:16px; background:rgba(243,231,208,.04); }
.ch-q legend{ padding:0 8px; font-weight:700; line-height:2; }
.ch-n{ display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; margin-left:10px; border-radius:50%; font-size:.85rem; font-weight:800; color:#16110a; background:linear-gradient(135deg, #F3D488, #C08A2E); }
.ch-opts{ display:grid; gap:8px; margin-top:8px; }
.ch-opt{ display:block; cursor:pointer; }
.ch-opt input{ position:absolute; opacity:0; pointer-events:none; }
.ch-opt span{ display:flex; gap:10px; align-items:center; padding:10px 14px; border-radius:12px; border:1px solid var(--line); transition:background .2s, border-color .2s; }
.ch-opt span b{ flex:none; width:26px; height:26px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:.8rem; border:1px solid var(--line-strong); }
.ch-opt:hover span{ background:rgba(217,169,62,.1); }
.ch-opt input:checked + span{ background:rgba(217,169,62,.2); border-color:var(--violet-bright); }
.ch-opt input:checked + span b{ background:var(--violet-bright); color:#16110a; }
.ch-opt input:focus-visible + span{ outline:2px solid var(--violet-bright); outline-offset:2px; }
.ch-hint{ font-size:.84rem; color:var(--ink-dim); line-height:2; }
.ch-empty{ text-align:center; color:var(--ink-dim); }
.ch-drop{ display:flex; flex-direction:column; align-items:center; gap:4px; padding:28px 16px; text-align:center; cursor:pointer; border:2px dashed var(--line-strong); border-radius:16px; background:rgba(217,169,62,.05); }
.ch-drop span{ font-weight:700; color:var(--violet-bright); word-break:break-all; }
.ch-drop small{ color:var(--ink-dim); }
.ch-upload input[type=file]{ position:absolute; opacity:0; width:1px; height:1px; }
.ch-answer{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-top:22px; padding:16px 20px; border-radius:16px; background:linear-gradient(135deg, rgba(79,180,119,.18), rgba(60,141,221,.12)); border:1px solid rgba(79,180,119,.5); }
.ch-others{ margin-top:30px; }
.ch-others a{ display:flex; justify-content:space-between; gap:12px; padding:12px 16px; margin-bottom:8px; border:1px solid var(--line); border-radius:12px; }
.ch-others a:hover{ border-color:var(--line-strong); background:rgba(217,169,62,.07); }
.ch-others small{ color:var(--ink-dim); }

.ch-score{ display:flex; align-items:center; justify-content:center; gap:26px; flex-wrap:wrap; padding:24px; border-radius:20px; border:1px solid var(--line-strong); background:rgba(217,169,62,.07); }
.ch-score .ring{ width:140px; height:140px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; background:conic-gradient(#D9A93E calc(var(--p) * 1%), rgba(243,231,208,.12) 0); }
.ch-score .ring::before{ content:''; position:absolute; inset:10px; border-radius:50%; background:var(--bg, #0b0906); }
.ch-score .ring b, .ch-score .ring small{ position:relative; }
.ch-score .ring b{ font-size:1.6rem; color:var(--violet-bright); }
.ch-score .ring small{ font-size:.66rem; color:var(--ink-dim); }
.ch-score ul{ list-style:none; display:grid; gap:8px; margin:0; padding:0; }
.ch-score li{ display:flex; align-items:baseline; gap:10px; min-width:170px; padding:6px 16px; border-radius:12px; border:1px solid var(--line); }
.ch-score li b{ font-size:1.3rem; } .ch-score li.ok b{ color:#7be0a4; } .ch-score li.bad b{ color:#ff8d73; } .ch-score li.no b{ color:var(--ink-dim); }
.ch-nowrong{ margin:16px 0 0; padding:14px 18px; border-radius:14px; background:rgba(79,180,119,.12); border:1px solid rgba(79,180,119,.45); line-height:2; text-align:center; }
.ch-nowrong b{ color:#7be0a4; font-size:1.15rem; }
.ch-received{ justify-content:flex-start; }
.ch-received p{ margin:4px 0 0; color:var(--ink-soft); }
.ch-check{ width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:2rem; font-weight:800; color:#16110a; background:linear-gradient(135deg, #8FE3B0, #4FB477); }
.ch-rq{ margin-bottom:12px; padding:14px 16px; border-radius:14px; border:1px solid var(--line); }
.ch-rq.ok{ border-color:rgba(79,180,119,.55); } .ch-rq.bad{ border-color:rgba(224,82,47,.55); }
.ch-rq-t{ font-weight:700; line-height:2; margin-bottom:6px; }
.ch-rq ul{ list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.ch-rq li{ padding:6px 12px; border-radius:10px; font-size:.92rem; }
.ch-rq li b{ margin-left:8px; opacity:.7; }
.ch-rq li.right{ background:rgba(79,180,119,.2); } .ch-rq li.wrong{ background:rgba(224,82,47,.2); }
.ch-rq small{ color:var(--ink-dim); }
@media (max-width:640px){ .ch-score{ flex-direction:column; } .ch-score li{ min-width:0; } }
