/* Talenta Pros Quiz Arena */
.tq{position:fixed;inset:0;z-index:96;background:rgba(10,24,20,.55);display:grid;place-items:center;font:15px/1.5 Manrope,system-ui,sans-serif;color:#172033}
.tq[hidden]{display:none}
body.tq-open{overflow:hidden}
.tq-card{width:100vw;height:100vh;background:linear-gradient(180deg,#F3FBF8 0,#fff 220px);display:flex;flex-direction:column;overflow:hidden}
.tq.compact .tq-card{width:min(860px,96vw);height:min(760px,94vh);border-radius:18px;box-shadow:0 30px 70px -30px rgba(0,0,0,.6)}
.tq-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-bottom:1px solid #E3EFEA;background:#fff}
.tq-brand{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tq-logo{width:32px;height:32px;border-radius:9px;background:#12B886;color:#fff;font-weight:800;display:grid;place-items:center;font-size:13px}
.tq-brand>b{font-size:17px}
.tq-sub{color:#596579;font-size:13.5px}
.tq-nav{display:flex;gap:4px;margin-left:12px;background:#F1F5F4;border-radius:999px;padding:3px}
.tq-nav button{border:0;background:none;border-radius:999px;padding:6px 14px;font-weight:700;font-size:13px;font-family:inherit;color:#596579;cursor:pointer}
.tq-nav button.on{background:#fff;color:#0F7A5A;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.tq-hr{display:flex;gap:6px}
.tq-ic{width:36px;height:36px;border-radius:10px;border:1px solid #DCE6E2;background:#fff;cursor:pointer;font-size:16px}
.tq-b{flex:1;overflow:auto;padding:24px clamp(14px,4vw,48px) 40px}
.tq-load,.tq-empty{display:grid;place-items:center;gap:10px;min-height:50vh;text-align:center}
.tq-spin{width:28px;height:28px;border-radius:50%;border:3px solid #CDEFE3;border-top-color:#12B886;animation:tqspin 1s linear infinite}
@keyframes tqspin{to{transform:rotate(360deg)}}
.tq-hero{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;align-items:center;max-width:1100px;margin:0 auto 16px}
.tq-hero h2{margin:0 0 6px;font-size:clamp(22px,3vw,30px)}
.tq-hero p{margin:0;color:#596579;max-width:620px}
.tq-stats{display:flex;gap:10px}
.tq-stats div{background:#fff;border:1px solid #DCEFE7;border-radius:14px;padding:10px 16px;text-align:center;min-width:96px}
.tq-stats b{display:block;font-size:22px;color:#0F7A5A}.tq-stats span{font-size:12px;color:#596579}
.tq-legend{display:flex;flex-wrap:wrap;gap:8px;max-width:1100px;margin:0 auto 18px}
.tq-tag{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 11px;font-size:12.5px;font-weight:700;background:#EEF4FF;color:#2846A8}
.tq-tag svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tq-tag.t-mcq{background:#EEF4FF;color:#2846A8}.tq-tag.t-tf{background:#E7F8F1;color:#0F7A5A}.tq-tag.t-match{background:#FFF1E6;color:#B4530F}
.tq-tag.t-order{background:#F3EEFF;color:#6234C2}.tq-tag.t-drcr{background:#E6F6FB;color:#0B6E8C}.tq-tag.t-calc{background:#FDECF3;color:#B02763}
.tq-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;max-width:1100px;margin:0 auto}
.tq-mod{display:flex;align-items:center;gap:14px;text-align:left;background:#fff;border:1.5px solid #E1ECE8;border-radius:16px;padding:14px;cursor:pointer;font-family:inherit;transition:transform .15s,box-shadow .15s,border-color .15s}
.tq-mod:hover{transform:translateY(-2px);box-shadow:0 12px 26px -16px rgba(15,122,90,.5);border-color:#12B886}
.tq-mod.locked{opacity:.6}.tq-mod.master{border-color:#12B886;background:linear-gradient(135deg,#fff,#EFFBF6)}
.tq-shape{flex:none;width:46px;height:46px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:17px;background:hsl(var(--h) 62% 45%)}
.tq-shape.s-circle{border-radius:50%}.tq-shape.s-square{border-radius:12px}.tq-shape.s-diamond{border-radius:8px;transform:rotate(45deg) scale(.82)}.tq-shape.s-diamond{text-indent:0}
.tq-shape.s-hex{clip-path:polygon(25% 4%,75% 4%,100% 50%,75% 96%,25% 96%,0 50%)}
.tq-mt{flex:1;display:flex;flex-direction:column}.tq-mt small{color:#596579;font-size:12px}.tq-mt b{font-size:15px}.tq-mt em{font-style:normal;font-size:12.5px;color:#596579}
.tq-go{color:#0F7A5A;font-weight:700;font-size:13px;white-space:nowrap}
.tq-ring .bg{fill:none;stroke:#E6EFEC;stroke-width:6}.tq-ring .fg{fill:none;stroke-width:6;stroke-linecap:round;transition:stroke-dashoffset .8s}
.tq-ring .ok{stroke:#12B886}.tq-ring .mid{stroke:#F2A93B}.tq-ring .lo{stroke:#E5534B}.tq-ring text{font:800 12px Manrope,sans-serif;fill:#172033}
.tq-res .tq-ring text{font-size:30px}
/* run */
.tq-run{max-width:860px;margin:0 auto}
.tq-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.tq-dots{display:flex;gap:5px;flex-wrap:wrap}.tq-dots i{width:22px;height:8px;border-radius:5px;background:#DDE7E3}.tq-dots i.on{background:#7FD9B8}.tq-dots i.ok{background:#12B886}.tq-dots i.no{background:#E5534B}
.tq-meta{display:flex;gap:10px;font-weight:700;color:#596579}.tq-streak.hot{color:#E8590C}
.tq-q{position:relative;background:#fff;border:1px solid #E1ECE8;border-radius:20px;padding:22px clamp(16px,3vw,32px);box-shadow:0 18px 40px -30px rgba(15,60,45,.45);animation:tqin .3s ease}
@keyframes tqin{from{opacity:0;transform:translateY(10px)}}
.tq-q.is-no{animation:tqshake .4s}
@keyframes tqshake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.tq-num{float:right;color:#596579;font-size:13px}
.tq-q h3{font-size:clamp(18px,2.4vw,23px);line-height:1.35;margin:14px 0 18px}
.tq-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.tq-opt{display:flex;align-items:center;gap:12px;text-align:left;border:1.5px solid #DDE7E3;background:#FAFCFB;border-radius:14px;padding:12px 14px;font-weight:600;font-size:15px;font-family:inherit;color:#172033;cursor:pointer;transition:transform .12s,border-color .12s,background .12s}
.tq-opt:hover:not([disabled]){border-color:#12B886;transform:translateY(-1px)}
.tq-oi{flex:none;width:40px;height:40px;display:grid;place-items:center;font-size:20px;background:#E9F7F2}
.tq-oi.s-circle{border-radius:50%}.tq-oi.s-square{border-radius:10px}.tq-oi.s-diamond{border-radius:6px;transform:rotate(45deg) scale(.86)}.tq-oi.s-hex{clip-path:polygon(25% 4%,75% 4%,100% 50%,75% 96%,25% 96%,0 50%)}
.tq-opt.right,.tq-tfb.right,.tq-chip.right,.tq-order li.right,.tq-acc.right{border-color:#12B886!important;background:#E7F8F1!important}
.tq-opt.wrong,.tq-tfb.wrong,.tq-chip.wrong,.tq-order li.wrong,.tq-acc.wrong{border-color:#E5534B!important;background:#FDEDEC!important}
.tq-opt.dim,.tq-tfb.dim{opacity:.55}
.tq-claim{margin:0 0 6px;font-size:19px;font-weight:700;background:#F4FBF8;border-left:5px solid #12B886;border-radius:10px;padding:12px 16px}
.tq-tf{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}
.tq-tfb{display:flex;flex-direction:column;align-items:center;gap:4px;border:2px solid #DDE7E3;border-radius:18px;background:#fff;padding:18px;font-weight:800;font-size:18px;font-family:inherit;cursor:pointer;color:#172033}
.tq-tfb span{font-size:38px}.tq-tfb.t:hover:not([disabled]){border-color:#12B886}.tq-tfb.f:hover:not([disabled]){border-color:#E5534B}
.tq-match{display:grid;grid-template-columns:1fr 1.4fr;gap:14px}
.tq-col{display:flex;flex-direction:column;gap:8px}
.tq-chip{border:1.5px solid #DDE7E3;background:#fff;border-radius:12px;padding:10px 12px;text-align:left;font-weight:600;font-size:14px;font-family:inherit;color:#172033;cursor:pointer}
.tq-chip.L{font-weight:800}.tq-chip.sel{border-color:#2846A8;box-shadow:0 0 0 3px rgba(40,70,168,.15)}
.tq-chip.paired.c0{background:#EEF4FF;border-color:#7E97E0}.tq-chip.paired.c1{background:#FFF1E6;border-color:#F1A877}.tq-chip.paired.c2{background:#F3EEFF;border-color:#B49BEA}.tq-chip.paired.c3{background:#E6F6FB;border-color:#79C3DA}
.tq-key{margin:10px 0 0;padding-left:18px;color:#3B4659;font-size:14px}
.tq-order{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.tq-order li{display:flex;align-items:center;gap:12px;border:1.5px solid #DDE7E3;border-radius:14px;padding:10px 12px;background:#fff;animation:tqin .2s}
.tq-pos{flex:none;width:30px;height:30px;border-radius:50%;background:#6234C2;color:#fff;display:grid;place-items:center;font-weight:800}
.tq-ot{flex:1;font-weight:600}
.tq-mv{display:flex;flex-direction:column;gap:3px}.tq-mv button{border:1px solid #DDE7E3;background:#FAFCFB;border-radius:6px;width:30px;height:22px;cursor:pointer;font-size:10px}
.tq-drcr{display:grid;gap:8px}
.tq-acc{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1.5px solid #DDE7E3;border-radius:14px;padding:10px 12px;background:#fff}
.tq-an{flex:1;font-weight:800;display:flex;flex-direction:column}.tq-an small{font-weight:600;color:#596579}
.tq-sw{display:flex;background:#F1F5F4;border-radius:999px;padding:3px}
.tq-sw button{border:0;background:none;border-radius:999px;padding:7px 18px;font-weight:800;font-size:13px;font-family:inherit;color:#596579;cursor:pointer}
.tq-sw button.on:first-child{background:#0B6E8C;color:#fff}.tq-sw button.on:last-child{background:#B4530F;color:#fff}
.tq-acc em{font-style:normal;font-weight:700;color:#C0392B}
.tq-tbal{display:flex;justify-content:space-between;margin-top:10px;font-weight:700;color:#596579}
.tq-calc{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tq-cur{font-size:28px;font-weight:800;color:#B02763}
.tq-calc input{font:800 28px Manrope,sans-serif;width:220px;border:2px solid #E7C6D5;border-radius:14px;padding:8px 14px}
.tq-calc input:focus{outline:none;border-color:#B02763}
.tq-fb{margin-top:16px;border-radius:14px;padding:12px 16px;animation:tqin .25s}.tq-fb.ok{background:#E7F8F1}.tq-fb.no{background:#FDF3E7}
.tq-fb b{font-size:16px}.tq-fb p{margin:4px 0 0}
.tq-act{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:18px;flex-wrap:wrap}.tq-act.center{justify-content:center}
.tq-hint{color:#596579;font-size:13.5px}
.tq-btn{border:0;background:#12B886;color:#fff;border-radius:999px;padding:11px 22px;font-weight:800;font-size:15px;font-family:inherit;cursor:pointer;box-shadow:0 8px 18px -10px rgba(18,184,134,.9)}
.tq-btn:hover{background:#0F9E73}.tq-btn.ghost{background:#fff;color:#0F7A5A;border:1.5px solid #BFE8D8;box-shadow:none}
.tq-muted{color:#596579;font-size:13.5px}.center{text-align:center}
.tq-conf{position:absolute;left:50%;top:40%;width:9px;height:9px;border-radius:2px;background:hsl(var(--h) 80% 55%);animation:tqconf .9s ease-out forwards;pointer-events:none}
@keyframes tqconf{to{transform:translate(var(--x),var(--y)) rotate(540deg);opacity:0}}
.tq-toast{position:absolute;left:50%;bottom:30px;transform:translateX(-50%);background:#172033;color:#fff;border-radius:999px;padding:9px 18px;font-weight:700;z-index:3}
/* results + history */
.tq-res{max-width:980px;margin:0 auto}
.tq-rtop{display:flex;gap:28px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #E1ECE8;border-radius:20px;padding:20px 24px;margin-bottom:14px}
.tq-rtop h2{margin:0}.tq-big{font-size:40px;line-height:1}
.tq-rst{display:flex;gap:16px;flex-wrap:wrap;margin-top:6px}.tq-rst span{background:#F4FBF8;border-radius:10px;padding:6px 12px}
.tq-hrow{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.tq-panel{background:#fff;border:1px solid #E1ECE8;border-radius:18px;padding:16px 18px}
.tq-panel h3{margin:0 0 10px;font-size:16px}
.tq-bar{display:grid;grid-template-columns:130px 1fr 52px;align-items:center;gap:10px;margin:7px 0;font-size:13.5px}
.tq-bar i{height:10px;border-radius:6px;background:#EDF2F0;overflow:hidden}.tq-bar b{display:block;height:100%;border-radius:6px}
.tq-bar b.ok{background:#12B886}.tq-bar b.mid{background:#F2A93B}.tq-bar b.lo{background:#E5534B}.tq-bar em{font-style:normal;font-weight:700;text-align:right}
.tq-rev{list-style:none;padding:0;margin:0;max-height:300px;overflow:auto;display:grid;gap:6px}
.tq-rev li{display:flex;gap:8px;font-size:13.5px}.tq-rev small{display:block;color:#596579;font-size:11.5px}
.tq-hist{max-width:1100px;margin:0 auto}
.tq-spark{width:100%;height:auto}.tq-spark polyline{fill:none;stroke:#12B886;stroke-width:3}.tq-spark circle{fill:#fff;stroke:#12B886;stroke-width:2.5}
.tq-spark .goal{stroke:#F2A93B;stroke-dasharray:5 5}.tq-spark text{font:700 11px Manrope,sans-serif;fill:#B4530F}
.tq-tbl{width:100%;border-collapse:collapse;font-size:14px}.tq-tbl th{text-align:left;color:#596579;font-size:12px;text-transform:uppercase;letter-spacing:.04em;padding:6px 8px;border-bottom:1px solid #E1ECE8}
.tq-tbl td{padding:8px;border-bottom:1px solid #F0F4F2}
.tq-pill{border-radius:999px;padding:2px 10px;font-weight:800;font-size:12px}.tq-pill.ok{background:#E7F8F1;color:#0F7A5A}.tq-pill.mid{background:#FFF4E1;color:#9A5B00}.tq-pill.lo{background:#FDECEC;color:#B42318}
@media (max-width:760px){.tq-hrow,.tq-match{grid-template-columns:1fr}.tq-nav{margin-left:0}.tq-b{padding:16px 12px 30px}.tq-bar{grid-template-columns:100px 1fr 44px}}
@media (prefers-reduced-motion:reduce){.tq-q,.tq-fb,.tq-order li{animation:none}}
