/* tamilnaduswadeshi.com — 🎓 Swadeshi quiz page + certificate check page (loaded only there). */
.qz [hidden], .qzc-page [hidden] { display: none !important; }
.qz { --qz-navy: #10243B; --qz-saffron: #C44619; --qz-gold: #C99A2E; --qz-green: #2C6E49; --qz-paper: #FAF7F1; --qz-line: #E7DECB; font-family: 'FlagIN', 'Noto Sans Tamil', 'Inter', sans-serif; }
.qz .btn-lg, .qzc-page .btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 999px; }
.qz-btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px; padding: 13px 22px; }
.qz-btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- hero ---------- */
.qz-hero { position: relative; overflow: hidden; color: #fff; padding: 46px 0 0; background: radial-gradient(90% 120% at 85% 10%, #1E4E33 0%, rgba(30,78,51,0) 55%), radial-gradient(80% 90% at 0% 100%, #5A1F0C 0%, rgba(90,31,12,0) 60%), linear-gradient(160deg, #10243B 0%, #142E4B 60%, #10243B 100%); }
.qz-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, #E8772E 0 33.3%, #fff 0 66.6%, #2C6E49 0); }
.qz-hero-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(242,193,78,.18) 1.4px, transparent 1.6px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(70% 80% at 80% 40%, #000, transparent); mask-image: radial-gradient(70% 80% at 80% 40%, #000, transparent); pointer-events: none; }
.qz-hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: end; }
.qz-hero-text { padding-bottom: 46px; }
.qz-chip { display: inline-block; background: rgba(242,193,78,.16); color: #F2C14E; border: 1px solid rgba(242,193,78,.45); font-weight: 700; font-size: .85rem; padding: 7px 15px; border-radius: 999px; }
.qz-h1 { font-family: 'Noto Serif Tamil', serif; font-weight: 900; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.2; margin: 16px 0 10px; color: #fff; }
.qz-h1 small { display: block; font: 600 clamp(.95rem, 1.6vw, 1.15rem)/1.4 'Inter', 'Noto Sans Tamil', sans-serif; color: #F2C14E; margin-top: 10px; letter-spacing: .01em; }
.qz-lead { color: #DCE6F1; font-size: 1.06rem; line-height: 1.8; max-width: 62ch; }
.qz-facts { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 620px; }
.qz-facts li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 10px; text-align: center; }
.qz-facts b { display: block; font: 800 1.6rem/1 'Inter', sans-serif; color: #F2C14E; }
.qz-facts span { display: block; font-size: .82rem; font-weight: 700; margin-top: 6px; color: #fff; }
.qz-facts small { display: block; font: 500 .7rem 'Inter', sans-serif; color: #B7C6D8; margin-top: 2px; }
.qz-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.qz-go { box-shadow: 0 10px 28px rgba(196,70,25,.45), 0 0 0 4px rgba(255,255,255,.12); animation: qzGlow 2.6s ease-in-out infinite; }
@keyframes qzGlow { 0%, 100% { box-shadow: 0 10px 28px rgba(196,70,25,.45), 0 0 0 4px rgba(255,255,255,.1); } 50% { box-shadow: 0 10px 34px rgba(196,70,25,.6), 0 0 0 8px rgba(255,255,255,.06); } }
.qz-count { margin-top: 16px; color: #C9D6E4; font-size: .92rem; }
.qz-count b { color: #fff; }
.qz-hero-art { position: relative; align-self: end; justify-self: center; width: min(100%, 560px); }
.qz-girl { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.qz-hero-art::before { content: ""; position: absolute; left: 4%; right: 4%; top: 14%; aspect-ratio: 1.3; border-radius: 50%; background: radial-gradient(closest-side, rgba(242,193,78,.32), rgba(242,193,78,0)); }
.qz-bubble { position: absolute; z-index: 2; left: 16%; top: 1%; max-width: 300px; background: #fff; color: #1B1B1A; font-size: .9rem; line-height: 1.5; padding: 12px 15px; border-radius: 18px 18px 18px 4px; box-shadow: 0 16px 34px rgba(0,0,0,.3); animation: qzPop .6s .4s both cubic-bezier(.2,1.4,.4,1); }
.qz-bubble b { color: #C44619; display: block; }
.qz-float { position: absolute; z-index: 2; background: #fff; color: #10243B; font-weight: 800; font-size: .8rem; padding: 7px 12px; border-radius: 999px; box-shadow: 0 10px 22px rgba(0,0,0,.25); white-space: nowrap; animation: qzFloat 4s ease-in-out infinite; }
.qz-f1 { right: 2%; top: 34%; color: #B8862A; }
.qz-f2 { right: -2%; top: 78%; animation-delay: -1.3s; }
.qz-f3 { left: -4%; top: 86%; color: #2C6E49; animation-delay: -2.4s; }
@keyframes qzFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes qzPop { from { opacity: 0; transform: scale(.7) translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- body ---------- */
.qz-body { padding: 34px 0 56px; }
.qz-steps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.qz-steps li { position: relative; background: #fff; border: 1px solid var(--qz-line); border-radius: 16px; padding: 14px 14px 14px 62px; box-shadow: 0 4px 14px rgba(16,36,59,.05); }
.qz-steps i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--qz-navy); color: #F2C14E; font: 800 1rem/36px 'Inter', sans-serif; text-align: center; font-style: normal; }
.qz-steps b { display: block; color: var(--qz-navy); font-size: .98rem; }
.qz-steps span { display: block; color: #6A6459; font-size: .82rem; margin-top: 2px; }

.qz-stage { position: relative; background: #fff; border: 1px solid var(--qz-line); border-radius: 24px; box-shadow: 0 22px 60px rgba(16,36,59,.12); padding: clamp(18px, 3.2vw, 34px); scroll-margin-top: 90px; }
.qz-stage::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 5px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #E8772E, #F2C14E, #2C6E49); }
.qz-closed { padding: 26px; text-align: center; font-size: 1.05rem; color: #6A6459; }
.qz-closed small { display: block; margin-top: 6px; }

/* start form */
.qz-start-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.qz-start-head img { width: 84px; height: 84px; border-radius: 50%; background: #FFF3DD; border: 3px solid #C99A2E; flex: none; object-fit: cover; }
.qz-start-head h2 { font-family: 'Noto Serif Tamil', serif; font-size: 1.5rem; color: var(--qz-navy); }
.qz-start-head h2 small { font: 600 .9rem 'Inter', sans-serif; color: #6A6459; margin-left: 6px; }
.qz-start-head p { color: #6A6459; margin-top: 4px; font-size: .92rem; }
.qz-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qz-f > span { display: block; font-weight: 700; font-size: .9rem; color: var(--qz-navy); margin-bottom: 6px; }
.qz-f em { color: var(--qz-saffron); font-style: normal; }
.qz-f input { width: 100%; font: 600 1.02rem 'Noto Sans Tamil', 'Inter', sans-serif; padding: 13px 14px; border: 1.5px solid #D9CDB6; border-radius: 12px; background: #FFFDF8; color: #1B1B1A; transition: border-color .2s, box-shadow .2s; }
.qz-f input:focus { outline: none; border-color: var(--qz-saffron); box-shadow: 0 0 0 4px rgba(196,70,25,.14); background: #fff; }
.qz-f input.is-bad { border-color: #C0392B; background: #FFF6F4; }
.qz-err { display: block; min-height: 1.1em; color: #C0392B; font-size: .8rem; font-weight: 600; margin-top: 4px; }
.qz-f-city > label > span { display: block; font-weight: 700; font-size: .9rem; color: var(--qz-navy); margin-bottom: 6px; }
.qz-combo { position: relative; }
.qz-combo input { padding-right: 48px; }
.qz-combo-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #8A7F6E; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.qz-combo-btn svg { transition: transform .25s; }
.qz-combo-btn:hover { background: #F3ECDF; color: var(--qz-navy); }
.qz-combo.open .qz-combo-btn { color: var(--qz-saffron); }
.qz-combo.open .qz-combo-btn svg { transform: rotate(180deg); }
.qz-combo.open input { border-color: var(--qz-saffron); box-shadow: 0 0 0 4px rgba(196,70,25,.14); background: #fff; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.qz-combo-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; background: #fff; border: 1px solid #E7DECB; border-radius: 16px; box-shadow: 0 22px 50px rgba(16,36,59,.22), 0 2px 6px rgba(16,36,59,.08); overflow: hidden; animation: qzDrop .16s ease-out; min-width: 280px; }
@keyframes qzDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.qz-combo-head { padding: 10px 14px 8px; font-size: .78rem; font-weight: 700; color: #8A5A0E; background: linear-gradient(90deg, #FFF6E6, #FFFDF8); border-bottom: 1px solid #F1E6D2; }
.qz-combo-list { list-style: none; margin: 0; padding: 6px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #E2D5BD transparent; }
.qz-co { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; cursor: pointer; border-left: 3px solid transparent; transition: background .12s; }
.qz-co + .qz-co { margin-top: 2px; }
.qz-co.on { background: #FFF2E4; border-left-color: var(--qz-saffron); }
.qz-co-pin { width: 30px; height: 30px; border-radius: 9px; background: #F6EFE2; display: grid; place-items: center; font-size: .9rem; }
.qz-co.on .qz-co-pin { background: #FDE2CC; }
.qz-co-t { min-width: 0; }
.qz-co-t b { display: block; font-size: .98rem; color: #1B1B1A; font-weight: 700; line-height: 1.3; }
.qz-co-t small { display: block; font: 500 .78rem 'Inter', sans-serif; color: #7A7164; }
.qz-co mark { background: #FDE2B8; color: inherit; border-radius: 3px; padding: 0 1px; }
.qz-co-d { font-style: normal; font-size: .72rem; font-weight: 700; color: #2C6E49; background: #E9F5EC; border-radius: 999px; padding: 3px 9px; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.qz-co-d.hq { color: #8A5A0E; background: #FFF1D6; }
.qz-co-own .qz-co-t b { color: var(--qz-saffron); }
.qz-co-own { border-top: 1px dashed #E7DECB; margin-top: 6px !important; }
.qz-co-none { padding: 14px; color: #6A6459; font-size: .9rem; text-align: center; }
@media (max-width: 640px) { .qz-combo-list { max-height: 46vh; } .qz-co-d { max-width: 110px; } }
.qz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.qz-langs { border: 0; padding: 0; margin: 10px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qz-langs legend { float: left; font-weight: 700; font-size: .9rem; color: var(--qz-navy); margin-right: 10px; }
.qz-langs label { cursor: pointer; }
.qz-langs input { position: absolute; opacity: 0; pointer-events: none; }
.qz-langs span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #D9CDB6; font-weight: 700; font-size: .9rem; background: #FFFDF8; transition: .2s; }
.qz-langs input:checked + span { background: var(--qz-navy); color: #fff; border-color: var(--qz-navy); }
.qz-langs input:focus-visible + span { box-shadow: 0 0 0 3px rgba(196,70,25,.35); }
.qz-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; font-size: .9rem; cursor: pointer; }
.qz-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--qz-saffron); flex: none; }
.qz-check small { display: block; color: #6A6459; font-size: .8rem; }
.qz-privacy { font-size: .82rem; color: #6A6459; margin: 10px 0 16px; }
.qz-privacy a { color: var(--qz-saffron); }
.qz-start-go { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.qz-start-go .btn { min-width: 260px; }
.qz-form-msg { color: #C0392B; font-weight: 700; font-size: .9rem; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.btn.is-busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff; animation: qzSpin .7s linear infinite; position: relative; z-index: 1; }
@keyframes qzSpin { to { transform: rotate(360deg); } }
.qz-resume { margin-bottom: 16px; display: grid; gap: 10px; }
.qz-continue, .qz-last { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: #FFF4DE; border: 1px solid #F1D9A6; border-radius: 14px; padding: 12px 14px; }
.qz-last { background: #EEF6F0; border-color: #CFE5D6; }
.qz-continue > span, .qz-last > span { font-size: 1.6rem; }
.qz-continue > div, .qz-last > div { flex: 1; min-width: 160px; }
.qz-continue b, .qz-last b { display: block; color: var(--qz-navy); }
.qz-continue small, .qz-last small { color: #6A6459; }

/* question screen */
.qz-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.qz-bar-l, .qz-bar-r { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qz-qno { font: 800 1.15rem 'Inter', 'Noto Sans Tamil', sans-serif; color: var(--qz-navy); margin-right: 4px; }
.qz-qno small { color: #9A9284; font-weight: 700; }
.qz-pill { background: #F3ECDF; border-radius: 999px; padding: 5px 11px; font-size: .85rem; font-weight: 700; color: #3A3630; }
.qz-score { background: #E7F3EA; color: #1E4E33; }
.qz-lang { display: inline-flex; background: #F3ECDF; border-radius: 999px; padding: 3px; }
.qz-lang button { border: 0; background: transparent; font: 700 .8rem 'Noto Sans Tamil', 'Inter', sans-serif; padding: 6px 10px; border-radius: 999px; cursor: pointer; color: #6A6459; }
.qz-lang button.on { background: #fff; color: var(--qz-navy); box-shadow: 0 2px 6px rgba(16,36,59,.12); }
.qz-tool { border: 1.5px solid #D9CDB6; background: #fff; border-radius: 999px; min-width: 40px; height: 36px; padding: 0 12px; font: 800 .85rem 'Inter', sans-serif; cursor: pointer; color: var(--qz-navy); }
.qz-tool:hover:not([disabled]) { border-color: var(--qz-saffron); color: var(--qz-saffron); }
.qz-fifty { background: linear-gradient(135deg, #FFF4DE, #FBE2B8); border-color: #E9C27A; color: #8A5A0E; }
.qz-tool[disabled] { opacity: .45; cursor: not-allowed; }
.qz-prog { height: 8px; background: #F3ECDF; border-radius: 99px; margin: 14px 0 18px; overflow: hidden; }
.qz-prog i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #E8772E, #F2C14E, #2C6E49); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.qz-card { animation: qzIn .35s ease both; }
@keyframes qzIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.qz-q { display: flex; gap: 14px; align-items: flex-start; font-family: 'Noto Sans Tamil', 'Inter', sans-serif; font-size: clamp(1.12rem, 2.2vw, 1.42rem); line-height: 1.6; font-weight: 700; color: #1B1B1A; margin-bottom: 18px; outline: none; }
.qz-qn { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--qz-navy); color: #F2C14E; font: 800 1.1rem/44px 'Inter', sans-serif; text-align: center; }
.qz-qt { flex: 1; min-width: 0; }
.qz-en { display: block; font: 500 .86em/1.55 'Inter', sans-serif; color: #6A6459; margin-top: 4px; }
.qz-opts { display: grid; gap: 10px; }
.qz-opt { position: relative; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: #FFFDF8; border: 2px solid #E7DECB; border-radius: 16px; padding: 13px 48px 13px 13px; font: 600 1.02rem/1.55 'Noto Sans Tamil', 'Inter', sans-serif; color: #1B1B1A; cursor: pointer; transition: border-color .18s, background .18s, transform .12s, box-shadow .18s; }
.qz-opt:hover:not([disabled]) { border-color: var(--qz-saffron); background: #fff; box-shadow: 0 8px 20px rgba(196,70,25,.12); transform: translateY(-1px); }
.qz-opt:focus-visible { outline: 3px solid rgba(196,70,25,.45); outline-offset: 2px; }
.qz-opt[disabled] { cursor: default; }
.qz-let { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #F3ECDF; color: var(--qz-navy); font: 800 .95rem/36px 'Inter', sans-serif; text-align: center; transition: .2s; }
.qz-ot { flex: 1; min-width: 0; }
.qz-ot .qz-en { font-size: .84em; }
.qz-mark { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; font: 900 .9rem/26px 'Inter', sans-serif; text-align: center; color: #fff; }
.qz-opt.is-picked { border-color: var(--qz-navy); }
.qz-opt.is-picked .qz-let { background: var(--qz-navy); color: #fff; }
.qz-opt.is-wait .qz-mark { border: 3px solid #E7DECB; border-top-color: var(--qz-saffron); animation: qzSpin .7s linear infinite; }
.qz-opt.is-right { border-color: #2C8A55; background: #ECF8F0; }
.qz-opt.is-right .qz-let { background: #2C8A55; color: #fff; }
.qz-opt.is-right .qz-mark { background: #2C8A55; }
.qz-opt.is-right .qz-mark::before { content: "✓"; }
.qz-opt.is-wrong { border-color: #C0392B; background: #FDF0EE; }
.qz-opt.is-wrong .qz-let { background: #C0392B; color: #fff; }
.qz-opt.is-wrong .qz-mark { background: #C0392B; }
.qz-opt.is-wrong .qz-mark::before { content: "✕"; }
.qz-opt.is-gone { opacity: .28; filter: grayscale(1); text-decoration: line-through; }
.qz-opt.shake { animation: qzShake .45s; }
@keyframes qzShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.qz-fb-in { margin-top: 16px; border-radius: 16px; padding: 16px 18px; animation: qzIn .3s ease both; }
.qz-fb-in.ok { background: #ECF8F0; border: 1px solid #BFE3CB; }
.qz-fb-in.no { background: #FFF6E6; border: 1px solid #F1D9A6; }
.qz-fb-h { font-weight: 800; font-size: 1.08rem; color: #1E4E33; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qz-fb-in.no .qz-fb-h { color: #8A4A0B; }
.qz-streak { background: #FFF; border: 1px solid #F2C14E; color: #B8620E; padding: 2px 10px; border-radius: 999px; font-size: .82rem; }
.qz-ex { margin-top: 8px; line-height: 1.75; color: #2E2A25; font-size: .97rem; }
.qz-ex .qz-en { font-size: .9em; }
.qz-learn { display: inline-block; margin-top: 8px; font-weight: 700; font-size: .9rem; color: var(--qz-saffron); }
.qz-fb-go { margin-top: 14px; display: flex; justify-content: flex-end; }
.qz-next { min-width: 210px; border-radius: 999px; }
.qz-dots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 22px; }
.qz-dot { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #D9CDB6; background: #fff; font: 700 .78rem 'Inter', sans-serif; color: #6A6459; cursor: pointer; padding: 0; }
.qz-dot[disabled] { cursor: default; opacity: .55; }
.qz-dot.on { border-color: var(--qz-navy); background: var(--qz-navy); color: #fff; }
.qz-dot.ok { background: #2C8A55; border-color: #2C8A55; color: #fff; }
.qz-dot.no { background: #E9A23B; border-color: #E9A23B; color: #fff; }
.qz-dot.on.ok, .qz-dot.on.no { box-shadow: 0 0 0 3px #10243B; }
.qz-wait { padding: 40px; text-align: center; font-weight: 700; color: var(--qz-navy); }
/* ⏱ total-time countdown + answers-at-the-end mode */
.qz-play { position: relative; }
.qz-time.cd { --p: 100%; background: linear-gradient(90deg, #DCE8F5 var(--p), #F3ECDF var(--p)); color: var(--qz-navy); min-width: 88px; text-align: center; font-variant-numeric: tabular-nums; transition: color .3s; }
.qz-time.warn { background: linear-gradient(90deg, #FAD9A0 var(--p), #FFF4DE var(--p)); color: #8A5A0E; }
.qz-time.crit { background: linear-gradient(90deg, #F5BDB4 var(--p), #FDF0EE var(--p)); color: #A3271B; animation: qzTick 1s ease-in-out infinite; }
@keyframes qzTick { 50% { transform: scale(1.08); } }
.qz-fclock { position: fixed; left: 50%; transform: translateX(-50%); z-index: 1100; box-shadow: 0 8px 22px rgba(16,36,59,.22); font-size: .95rem; padding: 7px 14px; }
.qz-fclock.crit { animation: none; }
.qz-fclock[hidden] { display: none !important; }
.qz-done-pill { background: #E9EFF7; color: var(--qz-navy); }
.qz-opt.is-sel { border-color: var(--qz-saffron); background: #FFF6EC; box-shadow: 0 0 0 3px rgba(232,119,46,.16); }
.qz-opt.is-sel .qz-let { background: var(--qz-saffron); color: #fff; }
.qz-opt.is-sel .qz-mark { background: var(--qz-saffron); }
.qz-opt.is-sel .qz-mark::before { content: "✓"; }
.qz-opt.is-locked { border-color: var(--qz-navy); background: #F1F5FA; }
.qz-opt.is-locked .qz-let { background: var(--qz-navy); color: #fff; }
.qz-opt.is-locked .qz-mark { background: var(--qz-navy); }
.qz-opt.is-locked .qz-mark::before { content: "✓"; }
.qz-exam { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.qz-exam-note { margin: 0; flex: 1 1 260px; font-size: .9rem; color: #6A6459; line-height: 1.6; }
.qz-exam-go { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.qz-exam-go .btn { border-radius: 999px; }
.qz-next[disabled] { opacity: .5; cursor: not-allowed; }
.qz-dot.done { background: #DCE5F1; border-color: #9DB1CC; color: var(--qz-navy); }
.qz-dot.on.done { background: var(--qz-navy); border-color: var(--qz-navy); color: #fff; box-shadow: 0 0 0 3px #9DB1CC; }
.qz-timeup { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(16,36,59,.45); backdrop-filter: blur(3px); animation: qzIn .3s ease both; }
.qz-timeup > div { background: #fff; border: 2px solid #F2C14E; border-radius: 22px; padding: 24px 34px; text-align: center; box-shadow: 0 22px 54px rgba(16,36,59,.22); }
.qz-timeup-ic { display: block; font-size: 2.6rem; animation: qzTick 1s ease-in-out infinite; }
.qz-timeup b { display: block; font: 800 1.5rem 'Noto Sans Tamil', 'Inter', sans-serif; color: #A3271B; margin: 4px 0; }
.qz-timeup span:last-child { color: #3A3630; }
.qz-rules { list-style: none; margin: 16px 0 0; padding: 12px 16px; display: grid; gap: 8px; background: #FFF8EA; border: 1px dashed #E9C27A; border-radius: 14px; font-size: .93rem; line-height: 1.55; color: #3A3630; }
.qz-rules b { color: var(--qz-navy); }
.qz-rules small { display: block; color: #8A8172; font-size: .8rem; }

/* result */
.qz-res-head { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; background: linear-gradient(135deg, #FFF8EA, #FBEEE6); border: 1px solid #F0DDC0; border-radius: 20px; padding: 20px 22px; }
.qz-ring { position: relative; width: 150px; height: 150px; flex: none; }
.qz-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.qz-ring-bg { fill: none; stroke: #EADFC9; stroke-width: 12; }
.qz-ring-fg { fill: none; stroke: var(--g); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1); }
.qz-ring-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.qz-ring-t b { font: 800 2.7rem 'Inter', sans-serif; color: var(--qz-navy); }
.qz-ring-t small { font: 700 1rem 'Inter', sans-serif; color: #9A9284; margin-top: -2px; }
.qz-ring-t em { font: 800 .95rem 'Inter', sans-serif; color: var(--g); font-style: normal; margin-top: 6px; }
.qz-res-txt { flex: 1; min-width: 240px; }
.qz-res-grade { display: inline-block; background: var(--g); color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: .92rem; }
.qz-res-txt h2 { font-family: 'Noto Serif Tamil', serif; font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--qz-navy); line-height: 1.4; margin: 10px 0 6px; }
.qz-res-txt p { color: #3A3630; font-size: .95rem; }
.qz-hint { margin-top: 6px; font-weight: 700; color: #8A5A0E !important; }
.qz-res-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qz-res-chips span { background: #fff; border: 1px solid #EADFC9; border-radius: 999px; padding: 3px 11px; font-size: .86rem; font-weight: 700; color: #3A3630; }
.qz-res-chips .c-ok { color: #1E4E33; border-color: #BFE3CB; } .qz-res-chips .c-no { color: #8B2A1E; border-color: #F1C9C2; } .qz-res-chips .c-skip { color: #6A6459; }
.qz-res-note { margin-top: 6px; font-weight: 700; color: #A3271B !important; }
.qz-rev-jump { margin-top: 10px; border: 0; background: var(--qz-navy); color: #fff; border-radius: 999px; padding: 9px 16px; font: 700 .9rem 'Noto Sans Tamil', 'Inter', sans-serif; cursor: pointer; }
.qz-rev-jump:hover { background: var(--qz-saffron); }
.qz-rev-h { font: 800 1.15rem 'Noto Sans Tamil', 'Inter', sans-serif; color: var(--qz-navy); margin: 6px 0 4px; }
.qz-rev-h small { display: block; font-weight: 600; font-size: .82rem; color: #8A8172; margin-top: 2px; }
.qz-rv-a { display: block; margin-top: 4px; font-size: .84rem; font-weight: 700; color: #1E6B42; line-height: 1.5; }
.qz-rv-a i { font-style: normal; color: #8B2A1E; }
.qz-rv.skip .qz-rv-n { background: #9A9284; color: #fff; }
.qz-cert-box { position: relative; margin: 22px auto 0; max-width: 980px; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(16,36,59,.25); background: #FBF4E6; aspect-ratio: 2000 / 1414; }
.qz-cert-canvas { display: block; width: 100%; height: auto; }
.qz-cert-loading { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: var(--qz-navy); background: #FBF4E6; z-index: 1; }
.qz-cert-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.qz-cert-actions .btn { border-radius: 999px; }
.qz-btn-wa { background: #1F9D55; color: #fff; border: 0; }
.qz-btn-wa:hover { background: #178046; color: #fff; }
.qz-challenge { margin: 22px auto 0; max-width: 820px; text-align: center; background: #10243B; color: #fff; border-radius: 18px; padding: 16px 18px; }
.qz-challenge > b { display: block; font-size: 1.05rem; margin-bottom: 4px; color: #F2C14E; }
.qz-inv-sub { color: #C9D6E4; font-size: .88rem; margin: 0 0 12px; }
.qz-links { display: grid; gap: 8px; margin-top: 14px; text-align: left; }
.qz-link { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 6px 6px 6px 12px; }
.qz-link-l { flex: none; font-size: .8rem; font-weight: 700; color: #F2C14E; white-space: nowrap; }
.qz-link input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 600 .86rem 'Inter', sans-serif; padding: 6px 4px; text-overflow: ellipsis; }
.qz-link input:focus { outline: none; background: rgba(255,255,255,.08); border-radius: 8px; }
.qz-link button { flex: none; border: 0; cursor: pointer; background: #F2C14E; color: #10243B; font: 800 .8rem 'Noto Sans Tamil', 'Inter', sans-serif; padding: 8px 14px; border-radius: 9px; }
.qz-link button.done { background: #2C8A55; color: #fff; }
@media (max-width: 640px) { .qz-link { flex-wrap: wrap; } .qz-link-l { width: 100%; } }
.qz-sh { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.qz-sh-b { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; padding: 9px 16px; border-radius: 999px; font: 700 .88rem 'Inter', 'Noto Sans Tamil', sans-serif; color: #fff !important; text-decoration: none; }
.sh-wa { background: #25D366; } .sh-fb { background: #1877F2; } .sh-x { background: #000; } .sh-tg { background: #229ED9; } .sh-cp { background: rgba(255,255,255,.16); }
.qz-res-more { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.qz-res-more .btn { border-radius: 999px; }
.qz-review { margin-top: 18px; display: grid; gap: 8px; }
.qz-rv { border: 1px solid var(--qz-line); border-radius: 14px; background: #FFFDF8; }
.qz-rv summary { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 700; line-height: 1.55; }
.qz-rv summary::-webkit-details-marker { display: none; }
.qz-rv-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #F3ECDF; font: 800 .82rem/30px 'Inter', sans-serif; text-align: center; color: var(--qz-navy); }
.qz-rv.ok .qz-rv-n { background: #2C8A55; color: #fff; } .qz-rv.no .qz-rv-n { background: #E9A23B; color: #fff; }
.qz-rv-q { flex: 1; min-width: 0; }
.qz-rv ul { list-style: none; margin: 0; padding: 0 14px 4px 54px; display: grid; gap: 4px; }
.qz-rv li { padding: 6px 10px; border-radius: 10px; font-size: .93rem; }
.qz-rv li.r { background: #ECF8F0; color: #1E4E33; font-weight: 700; }
.qz-rv li.w { background: #FDF0EE; color: #8B2A1E; }
.qz-rv li em { font-style: normal; font-size: .8rem; color: #6A6459; }
.qz-rv .qz-ex, .qz-rv .qz-learn { margin-left: 54px; margin-right: 14px; }
.qz-rv .qz-learn { margin-bottom: 12px; }
.qz-rv .qz-ex:last-child { margin-bottom: 12px; }

/* grades, topics, wall */
.qz-h2 { font-family: 'Noto Serif Tamil', serif; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--qz-navy); text-align: center; margin: 46px 0 16px; }
.qz-h2 small { display: block; font: 600 .9rem 'Inter', sans-serif; color: #6A6459; margin-top: 4px; }
.qz-grade-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.qz-grade { position: relative; background: #fff; border: 1px solid var(--qz-line); border-top: 5px solid var(--g); border-radius: 18px; padding: 18px 14px; text-align: center; box-shadow: 0 8px 22px rgba(16,36,59,.06); }
.qz-grade-ic { font-size: 2.2rem; display: block; }
.qz-grade b { display: block; font-size: 1.1rem; color: var(--g); margin-top: 6px; }
.qz-grade em { display: block; font: 700 .82rem 'Cinzel', 'Inter', serif; letter-spacing: .08em; text-transform: uppercase; color: #6A6459; font-style: normal; }
.qz-grade-r { display: inline-block; margin-top: 10px; background: #F3ECDF; border-radius: 999px; padding: 4px 12px; font: 800 .86rem 'Inter', sans-serif; color: var(--qz-navy); }
.qz-grade small { display: block; color: #6A6459; font-size: .8rem; margin-top: 6px; }
.qz-topic-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qz-topic-row a { display: grid; grid-template-columns: 46px 1fr; gap: 2px 12px; align-items: center; background: #fff; border: 1px solid var(--qz-line); border-radius: 16px; padding: 14px; text-decoration: none; color: inherit; transition: .2s; }
.qz-topic-row a:hover { border-color: var(--qz-saffron); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,36,59,.08); }
.qz-topic-row i { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; background: #FBEEE6; display: grid; place-items: center; font-size: 1.4rem; font-style: normal; }
.qz-topic-row b { color: var(--qz-navy); font-size: .98rem; }
.qz-topic-row span { color: #6A6459; font-size: .84rem; }
.qz-wall-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.qz-wall-list li { display: grid; grid-template-columns: 40px 1fr; gap: 0 10px; align-items: center; background: #fff; border: 1px solid var(--qz-line); border-radius: 14px; padding: 10px 12px; }
.qz-wall-ic { grid-row: span 3; font-size: 1.7rem; text-align: center; }
.qz-wall-list b { color: var(--qz-navy); font-size: .95rem; }
.qz-wall-list span { color: #6A6459; font-size: .8rem; }
.qz-wall-list em { font-style: normal; font-weight: 700; font-size: .8rem; color: #B8862A; }

/* effects */
.qz-confetti { position: fixed; inset: 0; z-index: 5000; pointer-events: none; }
.qz-spark { position: fixed; z-index: 5000; pointer-events: none; color: #F2C14E; font-style: normal; font-size: 16px; animation: qzSpark .75s ease-out forwards; }
@keyframes qzSpark { to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }
.qz-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); z-index: 5100; background: #10243B; color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; max-width: min(92vw, 460px); box-shadow: 0 12px 30px rgba(0,0,0,.3); opacity: 0; transition: .3s; pointer-events: none; }
.qz-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* certificate check page */
.qzc-page { font-family: 'FlagIN', 'Noto Sans Tamil', 'Inter', sans-serif; }
.qzc-page .crumbs { font-size: .85rem; color: #6A6459; margin-bottom: 16px; }
.qzc-page .crumbs a { color: #C44619; }
.qzc-verified { display: flex; gap: 16px; align-items: flex-start; background: #ECF8F0; border: 1px solid #BFE3CB; border-radius: 18px; padding: 16px 18px; margin-bottom: 20px; }
.qzc-tick { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #2C8A55; color: #fff; font: 900 1.6rem/52px 'Inter', sans-serif; text-align: center; box-shadow: 0 0 0 6px rgba(44,138,85,.18); }
.qzc-verified h1 { font-family: 'Noto Serif Tamil', serif; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: #1E4E33; }
.qzc-verified h1 small { display: block; font: 700 .88rem 'Inter', sans-serif; color: #2C6E49; margin-top: 2px; }
.qzc-verified p { margin-top: 6px; color: #2E2A25; line-height: 1.7; }
.qzc-bad { text-align: center; background: #fff; border: 1px solid #E7DECB; border-radius: 20px; padding: 40px 20px; }
.qzc-bad h1 { font-family: 'Noto Serif Tamil', serif; color: #8B2A1E; }
.qzc-bad h1 small { display: block; font: 600 .95rem 'Inter', sans-serif; color: #6A6459; }
.qzc-bad p { margin: 12px auto 20px; max-width: 60ch; color: #3A3630; }
.qzc-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: #10243B; color: #fff; border-radius: 20px; padding: 18px 20px; margin-top: 30px; }
.qzc-cta img { width: 96px; height: 96px; border-radius: 50%; background: #FFF3DD; border: 3px solid #C99A2E; object-fit: cover; }
.qzc-cta > div { flex: 1; min-width: 220px; }
.qzc-cta h2 { font-family: 'Noto Serif Tamil', serif; color: #F2C14E; font-size: 1.4rem; }
.qzc-cta h2 small { font: 600 .85rem 'Inter', sans-serif; color: #C9D6E4; margin-left: 6px; }
.qzc-cta p { color: #DCE6F1; margin-top: 4px; }

/* responsive */
@media (max-width: 980px) {
  .qz-hero-in { grid-template-columns: 1fr; }
  .qz-hero-text { padding-bottom: 8px; text-align: center; }
  .qz-lead { margin: 0 auto; }
  .qz-facts { margin-left: auto; margin-right: auto; }
  .qz-hero-btns { justify-content: center; }
  .qz-hero-art { width: min(96%, 520px); order: -1; margin: 0 auto; }
  .qz-hero-text { padding-top: 6px; }
  .qz-bubble { left: 18%; right: auto; top: 0; }
  .qz-girl { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .qz-f1 { right: 0; top: 36%; }
  .qz-f2 { right: 0; top: 80%; }
  .qz-f3 { left: 0; top: 88%; }
  .qz-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qz-grade-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qz-topic-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .qz-hero { padding-top: 28px; }
  .qz-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qz-hero-art { width: 100%; }
  .qz-bubble { left: 14%; top: 0; max-width: 220px; font-size: .74rem; line-height: 1.45; padding: 8px 11px; }
  .qz-f2 { display: none; }
  .qz-f1 { right: 0; top: 34%; }
  .qz-f3 { left: 0; top: 90%; }
  .qz-float { font-size: .72rem; padding: 6px 10px; }
  .qz-f3 { left: 0; }
  .qz-steps { gap: 8px; }
  .qz-steps li { padding: 12px 10px 12px 52px; }
  .qz-steps i { left: 10px; width: 32px; height: 32px; line-height: 32px; }
  .qz-stage { border-radius: 18px; padding: 16px 14px 20px; }
  .qz-fields { grid-template-columns: 1fr; gap: 6px; }
  .qz-start-head img { width: 62px; height: 62px; }
  .qz-start-head h2 { font-size: 1.25rem; }
  .qz-start-go .btn { width: 100%; min-width: 0; }
  .qz-bar-r { width: 100%; justify-content: flex-start; }
  .qz-q { gap: 10px; }
  .qz-qn { width: 36px; height: 36px; line-height: 36px; border-radius: 11px; font-size: .95rem; }
  .qz-opt { padding: 11px 42px 11px 11px; font-size: .97rem; border-radius: 14px; }
  .qz-let { width: 32px; height: 32px; line-height: 32px; }
  .qz-next { width: 100%; }
  .qz-dot { width: 28px; height: 28px; font-size: .72rem; }
  .qz-res-head { padding: 16px; justify-content: center; text-align: center; }
  .qz-ring { width: 124px; height: 124px; }
  .qz-cert-actions .btn { flex: 1 1 44%; }
  .qz-grade-row { gap: 8px; }
  .qz-grade { padding: 14px 8px; }
  .qz-topic-row { grid-template-columns: 1fr; }
  .qz-rv ul, .qz-rv .qz-ex, .qz-rv .qz-learn { margin-left: 0; padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .qz-go, .qz-float, .qz-bubble, .qz-card, .qz-fb-in { animation: none !important; } }
@media print {
  .qz-hero, .qz-steps, .qz-grades, .qz-topics, .qz-wall, .qz-cert-actions, .qz-challenge, .qz-res-more, .qz-review, .qz-res-head, .qzc-cta, .qzc-verified, .crumbs { display: none !important; }
  .qz-stage, .qz-cert-box { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
}
