/* Chagua 5.9.4 – Know your Constitution: levels, rounds, Question of the day, desktop button. */
.chq-daily,.chk-quiz,.chq-dialog,.chq-pill,.chq-week,.chq-wa,.chh-wa{
	--q-green:#006b3c;--q-green-2:#087f5b;--q-deep:#04361f;--q-red:#b51d2a;--q-gold:#f2b705;
	--q-ink:#14201a;--q-text:#26332c;--q-muted:#5b6b63;--q-line:#e3e9e5;--q-soft:#f1f7f3;--q-card:#fff;
	--q-shadow:0 1px 2px rgba(4,54,31,.06),0 10px 28px rgba(4,54,31,.10);
}
html.cht-night .chq-week,html.cht-night .chq-daily,html.cht-night .chk-quiz,html.cht-night .chq-dialog{--q-ink:#e6efe9;--q-text:#cfdcd5;--q-muted:#a9bab1;--q-line:#24352c;--q-soft:#14211b;--q-card:#101a15}
.chq-week *,.chq-daily *,.chk-quiz *,.chq-dialog *,.chq-pill *{box-sizing:border-box}
.chq-daily [hidden],.chk-quiz [hidden]{display:none!important}

/* ---------- a question ---------- */
.chq-card{background:var(--q-card);border:1px solid var(--q-line);border-radius:22px;box-shadow:var(--q-shadow);padding:22px 24px;color:var(--q-ink)}
.chq-top{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:.86rem;font-weight:700;color:var(--q-muted)}
.chq-top .chq-x{margin-left:auto;border:0;background:var(--q-soft);color:var(--q-muted);width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:1rem}
.chq-lv{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;color:#fff;font-weight:800;font-size:.82rem;margin:0}
.chq-lv1{background:linear-gradient(135deg,#2f9e44,#087f5b)}
.chq-lv2{background:linear-gradient(135deg,#006b3c,#04361f)}
.chq-lv3{background:linear-gradient(135deg,#b51d2a,#6e0f17)}
.chq-streak{padding:4px 10px;border-radius:999px;background:#fff1c2;color:#7a5a00}
.chq-bar{height:7px;border-radius:999px;background:var(--q-line);overflow:hidden;margin:0 0 18px}
.chq-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--q-green),var(--q-gold));transition:width .4s ease}
.chq-q{font-size:1.25rem!important;line-height:1.35!important;margin:0 0 16px!important;color:var(--q-ink)!important;font-weight:800!important}
.chq-opts{display:grid;gap:10px;margin:0 0 12px!important;padding:0!important;list-style:none!important}
.chq-opts li{margin:0!important;padding:0!important;list-style:none!important}
.chq-opts li::before{display:none!important}
.chq-opt{width:100%;display:flex;gap:12px;align-items:center;text-align:left;padding:13px 16px;border-radius:14px;border:2px solid var(--q-line);background:var(--q-card);color:var(--q-ink);font-family:inherit;font-weight:600;font-size:1rem;line-height:1.4;cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .1s ease}
.chq-opt:hover:not([disabled]){border-color:var(--q-green);transform:translateY(-1px)}
.chq-opt i{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--q-soft);font-style:normal;font-weight:800;color:var(--q-green)}
.chq-opt.is-right{border-color:#1f9d55;background:#e9f8ef}.chq-opt.is-right i{background:#1f9d55;color:#fff}
.chq-opt.is-wrong{border-color:var(--q-red);background:#fdeced}.chq-opt.is-wrong i{background:var(--q-red);color:#fff}
html.cht-night .chq-opt.is-right{background:#11301f}html.cht-night .chq-opt.is-wrong{background:#3a1416}
.chq-opt[disabled]{cursor:default}
.chq-why{padding:14px 16px;border-radius:14px;background:var(--q-soft);margin:0 0 12px;color:var(--q-text);line-height:1.55;animation:chqIn .25s ease}
.chq-why b{color:var(--q-ink)}
.chq-why a{display:inline-block;margin-top:4px;font-weight:700;color:var(--q-green)!important}
.chq-btns{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:12px}
.chq-btn{display:inline-flex;align-items:center;gap:6px;padding:11px 18px;border-radius:999px;border:0;background:var(--q-green);color:#fff!important;font-family:inherit;font-weight:700;font-size:.96rem;line-height:1.2;text-decoration:none!important;cursor:pointer}
.chq-btn:hover{background:var(--q-deep)}
.chq-btn--soft{background:var(--q-soft);color:var(--q-green)!important;border:1px solid var(--q-line)}
.chq-btn--soft:hover{background:var(--q-line)}
.chq-after>.chq-btn{margin-top:2px}
@keyframes chqIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* ---------- results ---------- */
.chq-done{text-align:center}
.chq-done .chq-lv{margin-bottom:6px}
.chq-score{font-size:4rem;font-weight:900;line-height:1;margin:10px 0 6px;color:var(--q-green)}
.chq-score small{font-size:1.6rem;color:var(--q-muted)}
.chq-msg{font-size:1.05rem;color:var(--q-text);max-width:46ch;margin:0 auto}
.chq-badge{display:inline-flex;align-items:center;gap:10px;margin:14px 0 0;padding:10px 18px;border-radius:999px;background:linear-gradient(135deg,#fff3c4,#ffe083);color:#5c4300;font-weight:800;box-shadow:0 6px 18px rgba(242,183,5,.35)}
.chq-badge span{font-size:1.4rem}
.chq-review{text-align:left;margin:20px 0 0!important;padding:0!important;list-style:none!important;display:grid;gap:8px}
.chq-review li{padding:10px 14px;border-radius:12px;background:var(--q-soft);font-size:.92rem;color:var(--q-text);margin:0!important}
.chq-review li.ok::before{content:"✓ ";color:#1f9d55;font-weight:800}
.chq-review li.no::before{content:"✗ ";color:var(--q-red);font-weight:800}
.chq-review a{font-weight:700;color:var(--q-green)!important}

/* ---------- level picker ---------- */
.chk-quiz{max-width:900px;margin:0 auto}
.chq-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.chq-level{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:230px;padding:22px 20px 18px;border-radius:22px;border:0;color:#fff;text-align:left;cursor:pointer;font-family:inherit;box-shadow:0 14px 30px rgba(4,54,31,.22);transition:transform .15s ease,box-shadow .15s ease;overflow:hidden}
.chq-level::after{content:"";position:absolute;inset:auto -30px -30px auto;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.08)}
.chq-level:hover{transform:translateY(-3px);box-shadow:0 18px 36px rgba(4,54,31,.28)}
.chq-level1{background:linear-gradient(150deg,#2f9e44 0%,#087f5b 100%)}
.chq-level2{background:linear-gradient(150deg,#006b3c 0%,#04361f 100%)}
.chq-level3{background:linear-gradient(150deg,#b51d2a 0%,#5b0c13 100%)}
.chq-level.is-locked{filter:grayscale(.85);opacity:.75;cursor:not-allowed}
.chq-level.is-shake{animation:chqShake .4s ease}
@keyframes chqShake{25%{transform:translateX(-6px)}50%{transform:translateX(6px)}75%{transform:translateX(-3px)}}
.chq-level-n{font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.chq-level-ic{font-size:2.2rem;line-height:1}
.chq-level b{font-size:1.45rem;line-height:1.1}
.chq-level small{font-size:.92rem;opacity:.9;line-height:1.4}
.chq-level-m{margin-top:auto;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.18);font-size:.82rem;font-weight:700}
.chq-level-b{padding:4px 10px;border-radius:999px;background:var(--q-gold);color:#14201a;font-size:.78rem;font-weight:800}
.chq-level.is-passed::before{content:"✓";position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--q-gold);color:#14201a;font-weight:900}
.chq-note{text-align:center;color:var(--q-muted);font-size:.9rem;margin:16px auto 0;max-width:60ch}

/* ---------- Question of the day ---------- */
.chq-daily{margin:28px 0;border-radius:22px;overflow:hidden;background:var(--q-card);border:1px solid rgba(0,107,60,.18);box-shadow:var(--q-shadow);color:var(--q-ink);clear:both}
.chq-daily-h{position:relative;display:flex;align-items:center;gap:12px;padding:14px 18px;color:#fff;background:linear-gradient(135deg,var(--q-deep),var(--q-green) 70%,var(--q-green-2))}
.chq-daily-h::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(to right,#111 0 25%,var(--q-red) 25% 75%,var(--q-green-2) 75%)}
.chq-daily-flag,.chq-pill-flag{flex:none;width:30px;height:30px;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--q-red) 0 34%,transparent 35%),linear-gradient(to bottom,#111 0 30%,#fff 30% 36%,var(--q-red) 36% 64%,#fff 64% 70%,var(--q-green) 70%);box-shadow:0 0 0 2px #fff}
.chq-daily-k{margin:0!important;font-weight:800;font-size:1rem;color:#fff!important}
.chq-daily-s{margin:0!important;font-size:.85rem;color:rgba(255,255,255,.85)!important}
.chq-daily .chq-daily-all{margin-left:auto;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.16);color:#fff!important;font-weight:700;font-size:.85rem;text-decoration:none!important;white-space:nowrap}
.chq-daily-body{padding:18px 20px 16px}
.chq-daily-wait{color:var(--q-muted);margin:0}
.chq-daily .chq-q{font-size:1.12rem!important}
.chq-daily .chq-btns{justify-content:flex-start}

/* ---------- desktop button + dialog ---------- */
.chq-pill{position:fixed;left:16px;bottom:16px;z-index:9988;display:flex;align-items:stretch;border-radius:999px;box-shadow:0 10px 28px rgba(4,54,31,.32);font-family:inherit;animation:chqIn .4s ease}
.chq-pill[hidden]{display:none}
.chq-pill-b{display:flex;align-items:center;gap:10px;padding:8px 14px 8px 8px;border:0;border-radius:999px 0 0 999px;background:linear-gradient(135deg,var(--q-deep),var(--q-green));color:#fff;font-family:inherit;font-weight:800;font-size:.9rem;line-height:1.2;cursor:pointer;text-align:left}
.chq-pill-b small{display:block;font-weight:600;font-size:.72rem;opacity:.85}
.chq-pill-b:hover{background:var(--q-deep)}
.chq-pill-x{border:0;border-radius:0 999px 999px 0;background:var(--q-deep);color:rgba(255,255,255,.75);padding:0 12px;cursor:pointer;font-size:.8rem}
.chq-pill-x:hover{color:#fff}
.chq-pill-flag{width:28px;height:28px}
/* 5.12.1: on phones a round flag bubble above the bottom bar; tap opens the same 5-question round */
@media (max-width:899px){
	.chq-pill{left:12px;bottom:calc(80px + env(safe-area-inset-bottom,0px));border-radius:50%;box-shadow:0 8px 22px rgba(4,54,31,.35)}
	.chq-pill-b{width:52px;height:52px;padding:0;justify-content:center;border-radius:50%;border:3px solid #fff;background:linear-gradient(135deg,var(--q-deep),var(--q-green))}
	.chq-pill-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
	.chq-pill-flag{width:30px;height:30px}
	.chq-pill-x{position:absolute;top:-6px;right:-6px;width:20px;height:20px;padding:0;border-radius:50%;font-size:10px;line-height:20px;text-align:center;border:2px solid #fff}
	.chq-pill::after{content:"?";position:absolute;bottom:-4px;right:-4px;width:20px;height:20px;border-radius:50%;background:#f2b705;color:#14201a;font:800 12px/20px system-ui,sans-serif;text-align:center;border:2px solid #fff;pointer-events:none}
}
.chq-dialog{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:16px;background:rgba(4,20,12,.55);backdrop-filter:blur(3px)}
.chq-dialog[hidden]{display:none}
.chq-dialog-in{width:min(640px,100%);max-height:calc(100vh - 32px);overflow:auto;outline:0;border-radius:22px}
html.chq-noscroll{overflow:hidden}

@media (max-width:760px){
	.chq-levels{grid-template-columns:1fr}
	.chq-level{min-height:0}
	.chq-card{padding:18px 16px}
	.chq-q{font-size:1.1rem!important}
	.chq-score{font-size:3.2rem}
	.chq-daily-h{flex-wrap:wrap}
}
@media (prefers-reduced-motion:reduce){.chq-daily *,.chk-quiz *,.chq-pill,.chq-dialog *{animation:none!important;transition:none!important}}

/* 5.9.6: progress strip, badge button */
.chq-prog{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin:0 auto 16px;padding:10px 16px;max-width:620px;border-radius:999px;background:var(--q-card);border:1px solid var(--q-line);box-shadow:var(--q-shadow);font-weight:700;color:var(--q-text)}
.chq-dots{display:inline-flex;gap:6px}
.chq-dots i{font-style:normal;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--q-soft);filter:grayscale(1);opacity:.55}
.chq-dots i.on{background:#fff3c4;filter:none;opacity:1;box-shadow:0 0 0 2px var(--q-gold)}
.chq-reset{border:0;background:none;color:var(--q-muted);text-decoration:underline;cursor:pointer;font:600 .85rem inherit}
.chq-btn--gold{background:linear-gradient(135deg,#f2b705,#e0a100);color:#14201a!important}
.chq-btn--gold:hover{background:#e0a100}
.chq-level{min-height:250px}

/* ---------- 5.9.7: WhatsApp Channel, question of the week, class mode ---------- */
.chq-wa{display:flex;align-items:center;gap:14px;margin:16px 0 0;padding:14px 18px;border-radius:18px;background:#e7f8ee;border:1px solid #bfe8cf;color:#0b3d24!important;text-decoration:none!important;transition:transform .15s}
.chq-wa:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(37,211,102,.18)}
.chq-wa b{display:block;font-size:1rem}.chq-wa small{display:block;font-size:.86rem;color:#2c5a40;margin-top:2px}
.chq-wa-ic{flex:0 0 42px;height:42px;border-radius:50%;background:#25d366 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.7-1.4a.5.5 0 0 0 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 0 0 1.8-1.2 2.2 2.2 0 0 0 .2-1.3c-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center/24px no-repeat}
html.cht-night .chq-wa{background:#0f2a1c;border-color:#1d4a31;color:#d8f5e3!important}html.cht-night .chq-wa small{color:#a6d9bb}
.chq-week{margin:0 0 22px;border:2px solid var(--q-gold)}
.chq-week-k{margin:0 0 8px;font-size:.78rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--q-red)}
.chq-cls{margin:22px 0 0;border:1px solid var(--q-line);border-radius:20px;background:var(--q-card);box-shadow:var(--q-shadow);padding:0 20px}
.chq-cls summary{display:flex;align-items:center;gap:14px;padding:16px 0;cursor:pointer;list-style:none;color:var(--q-ink)}
.chq-cls summary::-webkit-details-marker{display:none}
.chq-cls summary::after{content:"＋";margin-left:auto;font-weight:800;color:var(--q-green)}.chq-cls[open] summary::after{content:"−"}
.chq-cls summary b{display:block;font-size:1.05rem}.chq-cls summary small{display:block;color:var(--q-muted);font-size:.88rem}
.chq-cls-ic{flex:0 0 44px;height:44px;border-radius:14px;background:var(--q-soft);display:grid;place-items:center;font-size:1.4rem}
.chq-cls>p{color:var(--q-text);margin:0 0 12px}
.chq-cls-form{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.chq-cls-form input,.chq-cls-form select,.chq-cls-row input{flex:1 1 200px;min-width:0;padding:11px 14px;border-radius:12px;border:1px solid var(--q-line);background:var(--q-soft);color:var(--q-ink);font:inherit}
.chq-cls-form select{flex:0 1 180px}
.chq-cls-made{margin:0 0 16px;padding:14px;border-radius:16px;background:var(--q-soft)}
.chq-cls-made label{display:block;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--q-muted);margin:6px 0}
.chq-cls-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.chq-cls-row input{background:var(--q-card);font-size:.9rem}
.chq-btn--wa{background:#25d366}
.chq-cls-my{font-weight:800;color:var(--q-ink);margin:4px 0 6px}
.chq-cls-list{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.chq-cls-list a{display:inline-block;padding:8px 14px;border-radius:999px;background:var(--q-soft);border:1px solid var(--q-line);color:var(--q-green)!important;font-weight:700;text-decoration:none!important;font-size:.9rem}
.chq-cls-sent{font-weight:700;color:var(--q-green)}
.chq-res h4{margin:20px 0 10px;font-size:.95rem;color:var(--q-ink)}
.chq-res-k{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 0}
.chq-res-k p{margin:0;padding:16px;border-radius:16px;background:var(--q-soft);text-align:center}
.chq-res-k b{display:block;font-size:2.2rem;line-height:1;color:var(--q-green)}.chq-res-k b small{font-size:1rem;color:var(--q-muted)}
.chq-res-k>p>small{display:block;margin-top:6px;color:var(--q-muted);font-weight:700}
.chq-dist{display:grid;grid-template-columns:repeat(11,1fr);gap:6px;align-items:end;height:130px;padding:0 4px}
.chq-dist span{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;gap:4px}
.chq-dist i{display:block;width:100%;min-height:3px;border-radius:6px 6px 2px 2px;background:linear-gradient(var(--q-green-2),var(--q-green))}
.chq-dist em{font-style:normal;font-size:.75rem;font-weight:800;color:var(--q-ink)}
.chq-dist small{font-size:.75rem;color:var(--q-muted)}
.chq-hard{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.chq-hard li{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:var(--q-soft);color:var(--q-text);font-size:.93rem}
.chq-hard a{font-weight:700;color:var(--q-green)!important;white-space:nowrap}
.chq-hard-p{flex:0 0 58px;text-align:center;font-weight:900;padding:6px 0;border-radius:10px;color:#fff;background:linear-gradient(to right,var(--q-green) var(--p),var(--q-red) var(--p))}

/* ---------- 5.9.9: the card on pages starts folded ---------- */
.chq-daily--start{margin:24px 0}
.chq-daily-go{margin-left:auto;flex:none;padding:10px 20px!important}
.chq-daily--start .chq-daily-h{padding:14px 16px 16px}
.chq-daily--start .chq-daily-body{padding:16px 18px 14px}
.chq-daily--start .chq-card{box-shadow:none;border:0;padding:0;background:none}
.chq-daily--start .chq-review{display:none}
@media (max-width:520px){.chq-daily--start .chq-daily-h{flex-wrap:wrap}.chq-daily-go{margin-left:42px}}
.chq-daily--start .chq-done .chq-btns{justify-content:center}
/* 5.10.2: a compact card, not a full-width band */
.chq-daily--start{max-width:640px;margin:26px auto!important;border-radius:18px}
.chq-daily--start .chq-daily-h{padding:12px 14px 14px;gap:10px}
.chq-daily--start .chq-daily-k{font-size:.95rem}
.chq-daily--start .chq-daily-s{font-size:.8rem}
.chq-daily--start .chq-daily-flag{width:26px;height:26px}
.chq-daily--start .chq-daily-go{padding:8px 16px!important;font-size:.9rem}
