:root{font-family:Inter,"Segoe UI",sans-serif;color:#18213c;background:linear-gradient(140deg,#f2f0ff,#fff7fb 55%,#e8f7ff);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;padding:28px 16px}.shell{max-width:1050px;margin:auto}header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}small{font-weight:800;letter-spacing:.13em;color:#635bdb}h1{margin:6px 0;font-size:clamp(27px,5vw,42px)}p{color:#61708c}h2{margin-top:0}.card{background:#fff;border:1px solid #dce3ef;border-radius:20px;padding:24px;margin:16px 0;box-shadow:0 12px 35px #26375b12}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:15px;margin:18px 0}label{display:grid;gap:7px;font-weight:750;color:#34415e}.check{display:flex;align-items:center}input,select{width:100%;padding:12px;border:1px solid #c8d3e5;border-radius:10px;background:#f8fafc;font:inherit}.check input{width:auto}button,.secondary,.quiet{display:inline-flex;justify-content:center;align-items:center;border:0;border-radius:10px;padding:12px 18px;font:inherit;font-weight:800;text-decoration:none;cursor:pointer}.primary{background:linear-gradient(110deg,#665cf2,#4c42df);color:white}.secondary{background:#eef2ff;color:#3730a3}.danger{background:#fee2e2;color:#b91c1c}.quiet{color:#3e4a65;background:#fff}.muted{color:#8490a5}.code{display:inline-flex;padding:10px 18px;border-radius:12px;background:#ecebff;color:#4438ca;font-weight:900;letter-spacing:.15em;font-size:24px}.actions,.pills,.playbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pill{padding:9px 13px;border-radius:30px;background:#f1f5f9}.question{font-size:clamp(22px,4vw,34px);font-weight:800;margin:18px 0}.options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.option{padding:15px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;text-align:left;cursor:pointer}.option:hover{border-color:#655cf2;background:#f0efff}.option:disabled{cursor:default}.score-row{display:flex;justify-content:space-between;padding:12px;border-bottom:1px solid #e5eaf2}.screen{max-width:1250px}.screen .card{min-height:65vh}.screen header h1{font-size:clamp(30px,6vw,62px)}#message{color:#b42318;margin-top:12px}@media(max-width:600px){body{padding:16px 11px}.card{padding:17px}.options{grid-template-columns:1fr}header{align-items:flex-start}}
.passage{font-size:clamp(17px,2.5vw,24px);line-height:1.6;padding:16px;background:#f3f5ff;border-left:4px solid #675ef0;border-radius:10px;margin:12px 0}.screen-timer{font-size:18px;text-align:center;font-weight:900;color:#4f46e5;margin-top:8px}.qimage{display:block;max-width:min(100%,720px);max-height:32vh;object-fit:contain;margin:10px auto;border-radius:10px}
.answer-reveal{font-weight:850;color:#136c3e;background:#e6f8ed;border-radius:12px;padding:12px;margin:14px 0;min-height:0}.answer-reveal:empty{display:none}.option.correct-answer{border-color:#16934f;background:#dcfce7;color:#14532d;box-shadow:0 0 0 2px #22c55e33}
/* Talent Hunt projector uses the Question Bank MCQ formatter and card language. */
.th-projector-body{margin:0;min-height:100vh;background:#0b1030;color:#eef2ff;overflow-x:hidden}
.th-projector{width:100%;min-height:100vh;height:auto;padding:clamp(14px,2.5vw,34px) clamp(12px,3vw,44px);gap:clamp(12px,1.7vh,22px);background:radial-gradient(ellipse at 12% 2%,#353b91 0,transparent 35%),radial-gradient(ellipse at 92% 15%,#7e2788 0,transparent 28%),linear-gradient(140deg,#101536 4%,#171946 50%,#101c3c 100%);overflow:hidden}
.th-projector::before{opacity:.42;background-size:38px 38px;background-image:linear-gradient(#9b9fff12 1px,transparent 1px),linear-gradient(90deg,#9b9fff12 1px,transparent 1px)}
.th-topbar{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:clamp(13px,1.6vw,22px) clamp(15px,2vw,28px);border:1px solid #c7ceff35;border-radius:20px;background:linear-gradient(110deg,#ffffff12,#ffffff08);box-shadow:0 14px 50px #05071f48,inset 0 1px #ffffff20;backdrop-filter:blur(18px)}
.th-brand{display:flex;align-items:center;gap:15px;min-width:0}.th-brand-mark{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:16px;color:white;font-size:28px;background:linear-gradient(140deg,#20c7ee,#7558f5 55%,#f24dba);box-shadow:0 0 30px #8270f277}.th-eyebrow{font:800 11px/1.2 "Exo 2",sans-serif;letter-spacing:.2em;color:#a9b9ff}.th-brand h1{margin:4px 0 0;color:#fff;font:900 clamp(21px,3vw,36px)/1.05 "Exo 2",sans-serif;letter-spacing:.02em}.th-live-meta{display:flex;align-items:center;gap:clamp(8px,1.5vw,20px)}.th-round{font:800 clamp(11px,1vw,14px) "Exo 2",sans-serif;letter-spacing:.12em;color:#d1d7ff}.th-join-code,.th-countdown{display:grid;gap:3px;min-width:95px;padding:9px 14px;border:1px solid #a99eff53;border-radius:13px;background:#8174fb19;text-align:center}.th-join-code span,.th-countdown span{font:800 9px "Exo 2",sans-serif;letter-spacing:.15em;color:#bdc4ff}.th-join-code b{font:900 21px "Exo 2",sans-serif;letter-spacing:.18em;color:#fff}.th-countdown b{font:900 20px "Exo 2",sans-serif;color:#71e9ff}
.th-timer-track{position:relative;z-index:2;height:6px;flex:none;overflow:hidden;border-radius:99px;background:#ffffff16}.th-timer-track #timerProgress{height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,#39e6c0,#41c8ff,#b77cff,#ff5ab7);box-shadow:0 0 18px #56d9fbb3;transition:width .25s linear}
.th-arena{position:relative;z-index:1;display:flex;flex:1;min-height:0;flex-direction:column}.th-question-card{display:flex;flex:1;min-height:0;flex-direction:column;padding:clamp(14px,2.4vw,30px);border:1px solid #d7dfff;border-radius:24px;background:linear-gradient(145deg,#fff 0%,#f8faff 64%,#fff8fe 100%);box-shadow:0 24px 80px #03051d75,0 0 0 5px #ffffff09;overflow:hidden}.th-question-cap{display:flex;align-items:center;gap:11px;flex:none;padding:0 2px 14px;color:#7176a0;font:900 11px "Exo 2",sans-serif;letter-spacing:.19em}.th-sparkle{color:#7c5cff;font-size:20px}.th-cap-line{height:1px;flex:1;background:linear-gradient(90deg,#d9d9ff,transparent)}.th-mode-tag{padding:5px 10px;border-radius:99px;color:#087c77;background:#dffbf5;font-size:9px;letter-spacing:.12em}
.th-content-area{flex:1;min-height:0;padding:clamp(4px,1.3vw,18px);overflow:auto;background:transparent;scrollbar-color:#b3a9fa transparent}.th-projector .mcq-enter{min-height:100%;filter:drop-shadow(0 8px 16px #3b4b7515)}.th-projector .mcq-q-text{color:#15213d;text-shadow:none;font-weight:850}.th-projector .mcq-option{color:#253452;background:linear-gradient(140deg,#fff,#f5f7ff);border-color:#d7def4;box-shadow:0 8px 22px #303d6812,inset 0 1px #fff}.th-projector .mcq-option .opt-label{background:linear-gradient(135deg,#745df5,#4a7bfc);box-shadow:0 5px 14px #675df44a}.th-projector .mcq-option.correct{color:#065f46;background:#dff9eb;border-color:#16a36c;box-shadow:0 0 0 2px #12b9812b,0 12px 28px #16a36c21;transform:translateY(-2px)}.th-projector .mcq-option.wrong-dim{opacity:.42;filter:grayscale(.3)}.th-projector .mcq-passage-container,.th-projector .mcq-sub-question{background:#fff;border-color:#e0e5f4;box-shadow:0 12px 32px #26375a11}.th-projector .mcq-passage-hint{color:#7058da}.th-projector .mcq-passage,.th-projector .mcq-point{color:#26344f;text-shadow:none}.th-projector .mcq-points{background:#f3f8ff;border-color:#dce7f7}.th-projector .mcq-subtext{color:#a04d0b}.th-projector .mcq-type3-layout,.th-projector .mcq-type4-layout{min-height:100%;align-items:center}.th-projector .mcq-sub-question .mcq-q-text{color:#172341}.th-question-card .mcq-q-img img{max-height:25vh}.th-question-card .mcq-passage-img img{max-height:25vh}
.th-answer-reveal{flex:none;margin:0 8px 4px;padding:0;color:#087449;font:850 clamp(15px,2vw,22px) "Exo 2",sans-serif}.th-answer-reveal:empty{display:none}.th-projector .mcq-option.answer-locked{cursor:default}.th-projector .mcq-option[role=button]{cursor:pointer}
.th-waiting{display:flex;flex:1;min-height:55vh;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #d6d9ff26;border-radius:28px;background:linear-gradient(145deg,#ffffff0d,#ffffff06);backdrop-filter:blur(18px);box-shadow:0 25px 80px #05071d45}.th-orbit{display:grid;place-items:center;width:clamp(82px,12vw,138px);height:clamp(82px,12vw,138px);margin-bottom:24px;border:1px solid #b9aaff66;border-radius:50%;color:#fff;font-size:clamp(37px,6vw,64px);background:radial-gradient(circle,#b34cff70,#6b5bff32 58%,transparent 70%);box-shadow:0 0 50px #7958ff77,inset 0 0 30px #ae5fff2b;animation:th-pulse 2.6s ease-in-out infinite}.th-waiting h2{margin:10px 0;color:#fff;font:900 clamp(27px,5vw,54px) "Exo 2",sans-serif}.th-waiting p{margin:0;color:#c1c8ed;font-size:clamp(15px,2vw,21px)}.th-wait-badges{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:28px}.th-wait-badges span{padding:10px 15px;border:1px solid #ffffff25;border-radius:99px;background:#ffffff0e;color:#e5e7ff;font-weight:750}@keyframes th-pulse{50%{transform:scale(1.06);box-shadow:0 0 70px #8b5cffb0,inset 0 0 34px #bf63ff48}}
.th-footer{position:relative;z-index:2;display:flex;align-items:center;gap:15px;min-height:42px;padding:0 7px}.th-footer-label,.th-footer-brand{flex:none;color:#b7c0ec;font:800 10px "Exo 2",sans-serif;letter-spacing:.14em}.th-footer-brand{margin-left:auto;color:#8c95bf}.th-footer-brand span{color:#fd68d2}.th-live-dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#3de2ac;box-shadow:0 0 12px #3de2ac;animation:th-pulse 1.7s infinite}.th-player-strip{display:flex;gap:7px;overflow:hidden}.th-player-strip .pill{padding:7px 11px;color:#edf0ff;background:#ffffff12;border:1px solid #ffffff20;font-size:12px}
.th-results{position:relative;z-index:2;margin:auto;width:min(760px,100%);padding:clamp(22px,4vw,46px);border:1px solid #ffffff30;border-radius:26px;background:linear-gradient(145deg,#ffffff18,#ffffff0b);box-shadow:0 25px 80px #03051d77;text-align:center;backdrop-filter:blur(18px)}.th-results h2{margin:10px 0 24px;color:#fff;font:900 clamp(27px,4vw,44px) "Exo 2",sans-serif}.th-results .th-trophy{font-size:50px}.th-results .score-row{color:#fff;border-color:#ffffff24;font-size:18px}.th-results .score-row b{color:#73f2ce}.th-projector [hidden]{display:none!important}
.th-student-body{min-height:100vh;background:radial-gradient(ellipse at 15% 0,#5a54bc 0,transparent 34%),linear-gradient(145deg,#111536,#151a43 55%,#2b164c);padding:24px 14px}.th-student-shell{max-width:1000px}.th-student-header{display:flex;align-items:center;gap:16px;color:white;margin:10px 0 22px}.th-student-header h1{margin:4px 0;color:white;font:900 clamp(27px,5vw,42px) "Exo 2",sans-serif}.th-student-header p{margin:0;color:#c7cdf2}.th-join-card,.th-play-card{border:1px solid #ffffff55;background:#fffffffa;box-shadow:0 24px 80px #0609236b}.th-join-card .th-eyebrow{margin-bottom:14px;color:#765be4}.th-join-card input{min-height:52px}.th-join-card #joinCode{text-transform:uppercase;letter-spacing:.17em;font-weight:900}.th-join-card .primary{width:100%;justify-content:space-between;padding:15px 20px;font-size:17px}.th-play-card .mcq-q-text{color:#15213d}.th-play-card .mcq-option{cursor:pointer}.th-play-card .mcq-option.selected{background:#e9e6ff;border-color:#7163ef;box-shadow:0 0 0 2px #7163ef38}.th-play-card .mcq-option.answer-locked{opacity:.6;cursor:default}.th-play-card .mcq-option.correct{opacity:1}.th-team-answer{display:grid;gap:5px;font-size:12px}.th-team-answer select{padding:10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;font:inherit}.team-entry{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.team-entry label{min-width:160px;flex:1}.th-projector .th-results [hidden]{display:none}.th-projector .score-row{display:flex;justify-content:space-between;padding:12px 4px;border-bottom:1px solid #ffffff20}
@media(max-width:700px){.th-projector{padding:10px;gap:10px;min-height:100dvh}.th-topbar{align-items:flex-start;flex-direction:column;padding:12px;border-radius:15px}.th-brand-mark{width:42px;height:42px;border-radius:13px;font-size:22px}.th-live-meta{width:100%;justify-content:space-between}.th-round{margin-right:auto}.th-join-code,.th-countdown{min-width:80px;padding:7px 9px}.th-join-code b{font-size:16px}.th-countdown b{font-size:17px}.th-question-card{padding:12px;border-radius:17px;overflow:visible}.th-question-cap{padding-bottom:8px}.th-content-area{overflow:visible;padding:2px}.th-arena{min-height:55vh}.th-waiting{padding:26px 16px;min-height:55vh}.th-wait-badges{margin-top:18px}.th-footer{flex-wrap:wrap;gap:8px}.th-footer-brand{display:none}.th-player-strip{flex:1}.th-student-body{padding:16px 11px}.th-student-header{margin:3px 0 16px}.team-entry{align-items:stretch;flex-direction:column}.team-entry label{width:100%}}
@media(max-width:440px){.th-round{font-size:9px}.th-join-code span,.th-countdown span{font-size:8px}.th-projector .mcq-q-text{font-size:1.2rem;line-height:1.35}.th-projector .mcq-point{font-size:1rem}.th-question-card .mcq-sub-question{padding:10px}.th-student-header .th-brand-mark{width:40px;height:40px}.th-student-header h1{font-size:26px}}

/* Bright, high-contrast Talent Hunt surfaces, isolated from other modules. */
.th-dashboard-body,.th-student-body{position:relative;isolation:isolate;color:#172344;background-color:#f4f6ff;background-image:radial-gradient(ellipse at 8% 4%,#b8dcff99 0,transparent 30%),radial-gradient(ellipse at 96% 10%,#ffc7e899 0,transparent 27%),radial-gradient(ellipse at 72% 100%,#c7f4e799 0,transparent 32%),linear-gradient(135deg,#f8f7ff,#fff9f4 55%,#f1fbff)}
.th-dashboard-body:before,.th-student-body:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.34;background-image:radial-gradient(#7b82c522 1px,transparent 1px);background-size:19px 19px;mask-image:linear-gradient(to bottom,black,transparent 82%)}
.th-dashboard-body>.shell{position:relative;z-index:0}
.th-dashboard-body header h1,.th-dashboard-body h2,.th-dashboard-body h3,.th-dashboard-body p,.th-dashboard-body label,.th-dashboard-body .muted,.th-dashboard-body #message{color:#192847!important}
.th-dashboard-body header p,.th-dashboard-body .muted{color:#5d6b87!important}
.th-dashboard-body header{padding:18px 22px;border:1px solid #ffffffd9;border-radius:22px;background:linear-gradient(110deg,#ffffffed,#f5f3ffdf 58%,#eefaffdf);box-shadow:0 14px 34px #414b8120}
.th-dashboard-body .card{position:relative;overflow:hidden;border:1px solid #ffffffd9;background:linear-gradient(145deg,#fffffffa,#fdfdffed);box-shadow:0 16px 42px #3443731c,0 3px 9px #6b5df20d}
.th-dashboard-body .card:before{content:"";position:absolute;top:0;left:24px;right:24px;height:4px;border-radius:0 0 8px 8px;background:linear-gradient(90deg,#38bdf8,#7661f6,#f472b6,#fbbf24)}
.th-dashboard-body .card h2{color:#25215f!important;font-weight:900}.th-dashboard-body .card h3{color:#4d3bc6!important;font-weight:850}
.th-dashboard-body .card p,.th-dashboard-body #scores,.th-dashboard-body #participants{color:#233454!important}
.th-dashboard-body input,.th-dashboard-body select{color:#172344;background:#f8faff;border-color:#cbd5ee;box-shadow:inset 0 1px 2px #17234408}.th-dashboard-body input::placeholder{color:#75819a}
.th-dashboard-body .pill{color:#26345a;background:linear-gradient(120deg,#e6f7ff,#eeeaff);border:1px solid #d6dcff;font-weight:750}
.th-dashboard-body .code{color:#fff;background:linear-gradient(120deg,#615cf5,#a34fdd);box-shadow:0 8px 22px #7356e844}
.th-dashboard-body .secondary{color:#4436b7;background:linear-gradient(120deg,#eef0ff,#e8f8ff);border:1px solid #d9ddff;box-shadow:0 5px 13px #5554a514}
.th-dashboard-body .score-row{color:#243451!important;border-color:#dce4f2;font-weight:750}.th-dashboard-body #message{font-weight:750}

.th-student-body{padding:clamp(18px,4vw,38px) 14px;background-image:radial-gradient(ellipse at 4% 8%,#98d8ffb3 0,transparent 31%),radial-gradient(ellipse at 95% 17%,#ffb9dfb0 0,transparent 28%),radial-gradient(ellipse at 75% 100%,#b4f0cf99 0,transparent 34%),linear-gradient(135deg,#f5f3ff,#fff8f1 55%,#edfaff)}
.th-student-header{position:relative;padding:18px 20px;border:1px solid #ffffffdf;border-radius:24px;background:linear-gradient(105deg,#ffffffed,#f7f1ffed 65%,#f0fbffed);box-shadow:0 14px 34px #47517e20;color:#192847!important}
.th-student-header h1{color:#23215e!important;text-shadow:0 2px #fff}.th-student-header p{color:#586582!important}.th-student-header small{color:#6754d6}
.th-student-body .card{color:#192847;background:linear-gradient(145deg,#fff,#fbfcff);border:1px solid #ffffffed;box-shadow:0 18px 48px #36457224,0 4px 12px #7c63ee12}
.th-student-body .card h2,.th-student-body .card h3,.th-student-body .card p,.th-student-body .card label{color:#1d2b4a!important}
.th-student-body #finalScores .score-row{color:#243451!important;border-color:#dce4f2;font-weight:800}.th-student-body #finalScores .score-row b{color:#6748e8!important}
.th-student-body .playbar{color:#26365a;font-weight:800}.th-student-body #studentStatus{color:#4738ba}
.th-student-body .th-countdown{color:#5638c9;background:linear-gradient(120deg,#efeaff,#e5f8ff);border-color:#d7d5ff}
.th-student-body .th-join-card{border-top:4px solid #7b61f5}.th-student-body .th-trophy{filter:drop-shadow(0 7px 8px #eebc4e66)}

/* Projector: vivid light arena with readable type at classroom distance. */
.th-projector-body{color:#1b2544;background:#f3f4ff;background-image:radial-gradient(ellipse at 5% 0,#a8d9ff 0,transparent 34%),radial-gradient(ellipse at 96% 8%,#ffbce5 0,transparent 31%),radial-gradient(ellipse at 75% 96%,#b7f1d5 0,transparent 33%),linear-gradient(135deg,#f7f5ff,#fff9f2 57%,#effaff)}
.th-projector{color:#1b2544;background-color:#f7f7ff;background-image:radial-gradient(ellipse at 4% 2%,#bfe5ff99 0,transparent 35%),radial-gradient(ellipse at 94% 8%,#ffd1ed99 0,transparent 29%),radial-gradient(ellipse at 72% 96%,#cdf4dc88 0,transparent 32%),linear-gradient(140deg,#f8f7ff,#fffaf4 54%,#f1fbff)}
.th-projector:before{opacity:.42;background-size:34px 34px;background-image:linear-gradient(#6e77af12 1px,transparent 1px),linear-gradient(90deg,#6e77af12 1px,transparent 1px)}
.th-topbar{border:1px solid #ffffffed!important;background:linear-gradient(105deg,#ffffffec,#f5f1ffed 65%,#effbffed)!important;box-shadow:0 15px 40px #3f4a7b20,0 3px 9px #7c63ee10!important;backdrop-filter:blur(16px)}
.th-brand h1{color:#20234e!important;text-shadow:0 2px #fff;font-weight:950}.th-eyebrow{color:#6555d3!important}.th-round{color:#344267!important}
.th-join-code,.th-countdown{border-color:#dcd9ff!important;background:linear-gradient(135deg,#f2edff,#e9f8ff)!important;box-shadow:0 7px 18px #6b5cf21c}
.th-join-code span,.th-countdown span{color:#6558b9!important}.th-join-code b{color:#4937c5!important}.th-countdown b{color:#078e9b!important}
.th-question-card{border:1px solid #ffffffed!important;background:linear-gradient(145deg,#fffffffa,#f8fafffa)!important;box-shadow:0 18px 55px #35436e20,0 4px 12px #745ff214!important}
.th-question-cap{color:#405073!important}
.th-waiting{border:1px solid #ffffffed;background:linear-gradient(145deg,#ffffffed,#f2f0ffed 58%,#edfbffed);box-shadow:0 22px 65px #394a7524;backdrop-filter:blur(18px)}
.th-waiting h2{color:#242152!important;text-shadow:0 2px #fff}.th-waiting p{color:#596783!important}
.th-orbit{color:#fff;background:radial-gradient(circle at 35% 25%,#f9b94f,#ff69b7 42%,#7659f2 74%);border:5px solid #fff;box-shadow:0 14px 35px #7c59e74d,inset 0 0 0 2px #ffffff70;animation:th-pulse 2.6s ease-in-out infinite}
.th-wait-badges span{color:#354064;border:1px solid #d9ddf5;background:linear-gradient(120deg,#fff,#f0f4ff);box-shadow:0 5px 14px #33416612}
.th-footer-label,.th-footer-brand{color:#53617e!important}.th-player-strip .pill{color:#354163;background:linear-gradient(120deg,#ffffff,#eff3ff);border-color:#d9dff0;box-shadow:0 4px 10px #38456612}
.th-live-dot{background:#17be86;box-shadow:0 0 12px #17be8680}
.th-results{border:1px solid #ffffffed;background:linear-gradient(145deg,#fffffffa,#f6f3fffa 58%,#effbfffa);box-shadow:0 24px 70px #36436b26;backdrop-filter:blur(18px)}
.th-results h2{color:#242152!important;text-shadow:0 2px #fff}.th-results .score-row{color:#263553!important;border-color:#dce3f2;font-weight:800}.th-results .score-row b{color:#0c9c83!important}
.th-trophy{filter:drop-shadow(0 8px 9px #eabc4c66)}
/* Question Bank's projector defaults assume a dark canvas. Talent Hunt uses
   light cards, so keep every MCQ state legible here, including reveal/lock. */
.th-dashboard-body .mcq-q-text,.th-student-body .mcq-q-text,.th-projector .mcq-q-text,.th-dashboard-body .mcq-point,.th-student-body .mcq-point,.th-projector .mcq-point{color:#172344!important;text-shadow:none!important;opacity:1!important}
.th-dashboard-body .mcq-subtext,.th-student-body .mcq-subtext,.th-projector .mcq-subtext{color:#8a4b00!important}
.th-dashboard-body .mcq-option,.th-student-body .mcq-option,.th-projector .mcq-option{color:#263452!important;background:linear-gradient(140deg,#fff,#f1f5ff)!important;border-color:#cbd5ee!important}
.th-dashboard-body .mcq-option.correct,.th-student-body .mcq-option.correct,.th-projector .mcq-option.correct{color:#075b43!important;background:linear-gradient(140deg,#d9f9e9,#c9f3e1)!important;border-color:#10a875!important}
.th-dashboard-body .mcq-option.wrong-dim,.th-student-body .mcq-option.wrong-dim,.th-projector .mcq-option.wrong-dim{opacity:.82!important;filter:none!important;transform:none}
.th-dashboard-body .mcq-option.answer-locked,.th-student-body .mcq-option.answer-locked,.th-projector .mcq-option.answer-locked{opacity:.95!important;filter:none!important}
.th-dashboard-body .mcq-passage-container,.th-student-body .mcq-passage-container,.th-projector .mcq-passage-container,.th-dashboard-body .mcq-sub-question,.th-student-body .mcq-sub-question,.th-projector .mcq-sub-question{color:#263452!important;background:linear-gradient(145deg,#fff,#f3f6ff)!important;border:1px solid #d7def2!important;box-shadow:0 9px 24px #3d4e7515!important;backdrop-filter:none}
.th-dashboard-body .mcq-passage,.th-student-body .mcq-passage,.th-projector .mcq-passage{color:#34415e!important;text-shadow:none!important}
.th-dashboard-body .mcq-passage-hint,.th-student-body .mcq-passage-hint,.th-projector .mcq-passage-hint{color:#5d48c8!important}
.th-dashboard-body .mcq-sub-question .mcq-q-text,.th-student-body .mcq-sub-question .mcq-q-text,.th-projector .mcq-sub-question .mcq-q-text{color:#172344!important}
.th-dashboard-body .mcq-points,.th-student-body .mcq-points,.th-projector .mcq-points{background:linear-gradient(120deg,#edfaff,#f3f0ff)!important;border-color:#d7e4f5!important}
.th-dashboard-body .mcq-option.wrong-dim,.th-student-body .mcq-option.wrong-dim,.th-projector .mcq-option.wrong-dim{opacity:.94!important}
@media(max-width:700px){.th-dashboard-body header{padding:15px;border-radius:18px}.th-dashboard-body .card:before{left:17px;right:17px}.th-student-header{padding:14px;border-radius:18px}.th-projector{background-attachment:fixed}}

/* ══════════════════════════════════════════════════════════════
   TALENT HUNT · MODERN BAR GRAPH LEADERBOARD (UNIFIED SINGLE SCROLL)
   ══════════════════════════════════════════════════════════════ */
html {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

body.th-projector-body {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

body.th-projector-body .projector-view.th-projector {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  padding: clamp(12px, 1.8vw, 24px) clamp(14px, 2.4vw, 36px) !important;
  gap: clamp(10px, 1.4vh, 18px) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

body.th-projector-body .th-arena {
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  flex: 1 1 auto !important;
  overflow: visible !important;
}

body.th-projector-body .th-results {
  position: relative;
  z-index: 2;
  margin: 6px auto 20px !important;
  width: min(1200px, 96vw) !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  padding: clamp(16px, 2vw, 26px) clamp(16px, 2.4vw, 32px) !important;
  border-radius: 26px;
  background: linear-gradient(160deg, #ffffff 0%, #f8faff 55%, #fff5fb 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.14), 0 4px 18px rgba(99, 102, 241, 0.08) !important;
  text-align: center;
  backdrop-filter: blur(20px);
}

#screenScores {
  width: 100%;
  overflow: visible !important;
  height: auto !important;
}

.th-trophy-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;
}

.th-trophy {
  font-size: clamp(38px, 4.4vw, 54px) !important;
  display: inline-block;
  animation: thTrophyBounce 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(245, 158, 11, 0.4)) !important;
}

@keyframes thTrophyBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.04); }
}

.th-results .th-eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-weight: 900;
  letter-spacing: 0.2em;
  font-size: clamp(0.7rem, 0.85vw, 0.78rem);
  margin-top: 1px;
}

.th-results h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  color: #1e1b4b !important;
  text-shadow: none !important;
  margin: 2px 0 8px;
}

.th-champion-banner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #fef9c3);
  border: 1.5px solid #fde047;
  color: #92400e;
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  font-weight: 850;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.16);
  margin: 0 auto 12px;
  animation: thPopIn 0.5s ease-out;
}

.th-champ-trophy {
  font-size: 1.15rem;
  line-height: 1;
}

@keyframes thPopIn {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Bar Graph List ── */
.th-bargraph-list {
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.th-bargraph-list.multi-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.th-bar-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f4;
  border-left: 5px solid var(--bar-color, #3b82f6);
  border-radius: 14px;
  padding: 9px 14px;
  box-shadow: 0 2px 10px rgba(20, 35, 75, 0.04), 0 1px 2px rgba(20, 35, 75, 0.02);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
  animation: thBarCardSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes thBarCardSlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.th-bar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 35, 75, 0.08);
  border-color: #cbd5e1;
}

.th-bar-card.rank-1 {
  background: linear-gradient(145deg, #ffffff, #fffdf5);
  border-color: #fde68a;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.1), 0 2px 5px rgba(245, 158, 11, 0.05);
}

.th-bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.th-bar-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.th-rank-pill {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.th-rank-pill.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.36);
}

.th-rank-pill.rank-2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #fff;
  box-shadow: 0 4px 10px rgba(100, 116, 139, 0.28);
}

.th-rank-pill.rank-3 {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.28);
}

.th-rank-pill.rank-other {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.86rem;
  border: 1px solid #e2e8f0;
}

.th-team-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.th-team-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.th-team-title {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  font-weight: 950;
  color: #0f172a;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.th-badge-leader {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde047;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.18);
}

.th-bar-score {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.th-score-numbers {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.th-score-big {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 950;
  color: #0f172a;
  line-height: 1;
}

.th-score-denom {
  font-size: 0.8rem;
  font-weight: 750;
  color: #94a3b8;
}

.th-score-badge {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ── Bar Track & Fill ── */
.th-bar-track-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.th-bar-track {
  flex: 1;
  height: 16px;
  background: #edf2f9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.th-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--bar-gradient, linear-gradient(90deg, #3b82f6, #06b6d4));
  box-shadow: 0 2px 8px var(--bar-glow, rgba(59, 130, 246, 0.35));
  position: relative;
  overflow: hidden;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.th-bar-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
  animation: thBarShimmer 2.4s infinite linear;
}

@keyframes thBarShimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.th-bar-pct {
  font-size: 0.82rem;
  font-weight: 850;
  color: #64748b;
  min-width: 44px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Confetti Particle Animation ── */
.th-confetti-particle {
  position: absolute;
  border-radius: 3px;
  pointer-events: none;
  z-index: 20;
  animation: thConfettiFall linear forwards;
}

@keyframes thConfettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(850px) rotate(720deg); opacity: 0; }
}

@media (max-width: 768px) {
  .th-results {
    padding: 16px 14px;
    width: 98vw;
  }
  .th-results-heading {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 14px;
    padding: 12px 14px;
    text-align: left;
  }
  .th-results-title { text-align: left; }
  .th-results-heading .th-champion-banner {
    grid-column: 1 / -1;
    justify-self: stretch;
    max-width: none;
  }
  .th-bargraph-list.multi-col {
    grid-template-columns: 1fr;
  }
  .th-bar-card {
    padding: 12px 14px;
    gap: 8px;
  }
  .th-team-title {
    font-size: 1.05rem;
  }
  .th-bar-track {
    height: 14px;
  }
  .th-bar-score {
    gap: 6px;
  }
}

body.th-projector-body .th-results-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: clamp(12px, 1.5vw, 20px) clamp(16px, 2.3vw, 30px);
  border: 1px solid #dfe5f5;
  border-radius: 20px;
  background: linear-gradient(110deg, #f7faff 0%, #f1f0ff 54%, #fff9ec 100%);
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px #33415512;
  text-align: left;
}

body.th-projector-body .th-results-heading .th-trophy-wrap {
  display: grid;
  place-items: center;
  width: clamp(60px, 7vw, 82px);
  height: clamp(60px, 7vw, 82px);
  margin: 0;
  border: 1px solid #f5d779;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff8db, #ffe9a3);
  box-shadow: 0 8px 20px #d5961b26, inset 0 1px 0 #fff;
}

body.th-projector-body .th-results-heading .th-trophy {
  font-size: clamp(38px, 4.4vw, 54px) !important;
}

body.th-projector-body .th-results-title { min-width: 0; }
body.th-projector-body .th-results-title .th-eyebrow { margin: 0 0 5px; }
body.th-projector-body .th-results-title h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
body.th-projector-body .th-results-heading .th-champion-banner {
  justify-self: end;
  max-width: min(100%, 360px);
  margin: 0;
  padding: 9px 16px;
  border-radius: 14px;
  text-align: left;
  line-height: 1.4;
}

@media (max-width: 768px) {
  body.th-projector-body .th-results-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }
  body.th-projector-body .th-results-heading .th-champion-banner {
    justify-self: stretch;
    max-width: none;
    text-align: center;
  }
}
