@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');
:root{color-scheme:dark;--ink:#fcf5ff;--muted:#cbb9dd;--gold:#ffd36b;--pink:#ff71b8;--line:#ffffff24;--panel:#241138;--cyan:#81e5df}*{box-sizing:border-box}body{margin:0;background:#13091f;color:var(--ink);font:500 18px/1.65 Tajawal,Arial,sans-serif;min-height:100vh}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:15px;padding:10px 18px;background:#ffffff0b;color:inherit;transition:.2s}button:hover{background:#ffffff1e;transform:translateY(-2px)}button:disabled{opacity:.45;cursor:default;transform:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--gold);outline-offset:4px}a{color:inherit;text-decoration:none}header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 5vw;border-bottom:1px solid var(--line);position:relative;z-index:2}#brand{font-weight:900;font-size:28px;display:flex;align-items:center;gap:20px;color:var(--gold)}#brand span{border-right:1px solid var(--line);padding-right:20px;font-size:18px;color:white}nav{display:flex;gap:10px}nav button{font-size:16px;padding:8px 13px}.ambient{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 10% 20%,#6533a929,transparent 50%),radial-gradient(ellipse at 90% 90%,#b42d7133,transparent 50%)}main{position:relative;max-width:1460px;margin:auto;padding:25px 5vw 40px}.eyebrow{letter-spacing:1px;color:var(--gold);font-size:16px;font-weight:800;margin:0 0 10px}.hero{min-height:460px;position:relative;border:1px solid #a870c85e;border-radius:30px;overflow:hidden;background:#2b113c url('assets/teachers.png') center/cover no-repeat;display:flex;align-items:center}.hero:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#170b25e8 0%,#170b25ce 32%,transparent 70%)}.hero-copy{z-index:1;margin-right:auto;width:51%;padding:40px}.hero h1{font-weight:900;font-size:clamp(42px,5.5vw,76px);line-height:1.2;margin:8px 0 20px}.hero h1 span{display:block;color:var(--gold)}.hero p:not(.eyebrow){color:#efe4f9;font-size:20px}.primary{color:#23102f;background:linear-gradient(110deg,#ffda78,#ff9e63);border:0;box-shadow:0 5px 25px #ffa65725;font-weight:800;padding:13px 26px}.primary:hover{background:#ffe1a2}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.scorebar{display:flex;align-items:center;gap:15px;margin:22px 0}.team{border:1px solid var(--line);background:#29163d;padding:12px 18px;border-radius:18px;display:flex;align-items:center;gap:14px;flex:1}.team:nth-child(2){background:#34172e}.team.active{outline:2px solid var(--gold)}.team strong{margin-left:auto;max-width:200px;overflow-wrap:anywhere}.team b{color:var(--gold);font-size:30px;min-width:40px;text-align:center}.team button{padding:3px 13px;font-size:22px}.scorehint{font-size:14px;color:var(--muted)}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin-top:32px}.sectionhead h2{font-size:26px;margin:0}.muted{color:var(--muted);font-size:16px}.games{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}.gamecard{text-align:right;border-radius:25px;padding:26px;position:relative;overflow:hidden;min-height:265px;display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(135deg,#3f225b,#25143b)}.gamecard:nth-child(2){background:linear-gradient(135deg,#5b224d,#2b1538)}.gamecard:nth-child(3){background:linear-gradient(135deg,#184950,#1f1838)}.gamecard:after{content:'';width:180px;height:180px;border-radius:50%;position:absolute;left:-90px;top:-90px;background:#ffffff09}.gamecard .icon{font-size:43px;line-height:1.2}.gamecard h3{font-size:24px;margin:17px 0 4px}.gamecard p{font-size:17px;color:#e4d6ee;margin:0 0 20px}.gamecard .tag{font-size:14px;color:var(--gold);margin-top:auto}.bottom{display:flex;justify-content:space-between;align-items:center;margin-top:25px;gap:10px}.bottom p{font-size:14px;color:var(--muted)}.stage{max-width:1000px;margin:15px auto;text-align:center;border-radius:30px;border:1px solid var(--line);background:linear-gradient(145deg,#321c48ed,#1c102def);padding:30px;min-height:510px;position:relative;overflow:hidden}.stage:before{content:'';position:absolute;inset:0;z-index:-1;background:url('assets/teachers.png') right center/cover;opacity:.1}.stage h1{font-size:36px;margin:10px}.stage h2{font-size:clamp(28px,3.5vw,44px);line-height:1.5;margin:25px 0;overflow-wrap:anywhere}.stage .actions{justify-content:center}.stage-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.stage-top button{font-size:16px}.badge{font-size:16px;color:var(--gold);background:#ffce6812;padding:7px 17px;border-radius:30px;border:1px solid #ffce683d}.options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:25px auto;max-width:750px}.option{font-size:21px;padding:18px}.option.correct{background:#24674f;border-color:#8bf0a9}.option.wrong{background:#69263c;border-color:#fd89a4}.feedback{min-height:40px;color:var(--gold);font-size:20px}.locks{display:flex;justify-content:center;gap:12px;font-size:25px}.locks span{filter:grayscale(1);opacity:.4}.locks span.open{filter:none;opacity:1}.timer{display:inline-grid;place-items:center;border:4px solid #ffcf6555;width:104px;height:104px;border-radius:50%;font-size:38px;font-weight:800;direction:ltr;font-variant-numeric:tabular-nums}.timer.urgent{border-color:#ff7b9e;color:#ff7b9e}.votegrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:25px 0}.vote{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:19px}.vote b{color:var(--gold)}.wheelbox{position:relative;width:250px;height:250px;margin:15px auto}.wheel{position:absolute;inset:0;border-radius:50%;border:8px solid #ffda79;background:conic-gradient(#a748e0 0 60deg,#f073a1 60deg 120deg,#eeb758 120deg 180deg,#45a9a6 180deg 240deg,#7651d9 240deg 300deg,#ec885a 300deg);box-shadow:0 0 35px #b94ee54d;display:grid;place-items:center;transition:transform 2.8s cubic-bezier(.12,.75,.15,1)}.wheel:after{content:'✦';border:3px solid #ffe3a6;background:#321c48;border-radius:50%;width:75px;height:75px;display:grid;place-items:center;font-size:38px}.pointer{position:absolute;z-index:2;top:-12px;left:calc(50% - 12px);width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:28px solid #ffdf89}.challenge-label{color:var(--cyan);font-size:19px}.secret{border:1px dashed var(--line);border-radius:20px;padding:25px;font-size:24px;margin:20px auto;max-width:700px}.celebration{font-size:70px}.resultnames{font-size:35px;color:var(--gold);margin:25px 0}.pause{padding:80px 20px}.pause h1{font-size:48px}dialog{border:1px solid #81569b;background:#231232;color:white;border-radius:25px;padding:30px;width:min(620px,92vw);max-height:90vh}dialog::backdrop{background:#09030cbe;backdrop-filter:blur(8px)}dialog h2{font-size:27px}label{display:block;font-size:17px;margin:15px 0}input,textarea{width:100%;background:#10091b;border:1px solid #785b88;color:white;padding:12px;border-radius:12px;display:block;margin-top:5px}input[type=range]{accent-color:#ffcc76}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.close{float:left;padding:0 12px;font-size:27px}#toast{position:fixed;z-index:9;bottom:25px;left:50%;transform:translateX(-50%);background:#fff0d5;color:#32183f;border-radius:16px;padding:12px 25px;display:none;max-width:90vw;text-align:center}#confetti{position:fixed;inset:0;width:100%;height:100%;z-index:8;pointer-events:none}.pop{animation:pop .35s}.backrow{display:flex;justify-content:space-between;gap:15px}button.small{font-size:16px;padding:7px 13px}.leader{margin:20px auto;max-width:600px;background:#ffffff08;padding:20px;border-radius:20px}.leader span{color:var(--gold);font-size:38px}.readbtn{font-size:16px}footer{text-align:center;color:var(--muted);font-size:14px;margin-top:25px}@keyframes pop{0%{transform:scale(.94);opacity:.5}100%{transform:scale(1);opacity:1}}@media(min-width:1600px){body{font-size:21px}.hero{min-height:530px}}@media(max-width:800px){header{padding:15px 20px;flex-wrap:wrap;gap:12px}nav{flex-wrap:wrap}main{padding:18px}.hero{min-height:580px;background-position:65% top;align-items:flex-end}.hero:before{background:linear-gradient(0deg,#170b25 0%,#170b25ed 42%,transparent 80%)}.hero-copy{width:100%;padding:25px}.hero h1{font-size:45px}.hero p:not(.eyebrow){font-size:18px}.games{grid-template-columns:1fr}.gamecard{min-height:210px}.scorebar{flex-wrap:wrap}.team{flex-basis:100%;padding:9px 12px}.team b{font-size:27px}.scorehint{width:100%;text-align:center}.stage{padding:22px 16px}.stage-top{gap:8px;flex-wrap:wrap}.stage h1{font-size:28px}.stage h2{font-size:27px}.options{grid-template-columns:1fr}.option{font-size:19px}.bottom{flex-wrap:wrap}.two{grid-template-columns:1fr}.sectionhead{align-items:flex-start;gap:10px}.sectionhead h2{font-size:23px}nav button{font-size:14px;padding:7px 10px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* A fixed 16:9 presentation stage, scaled to the available screen. */
html,body{width:100%;height:100%;overflow:hidden;background:#090510}#presentation{width:1600px;height:900px;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--view-scale,1));transform-origin:center;overflow:hidden;background:radial-gradient(ellipse at 5% 100%,#43174388,transparent 60%),#13091f}#presentation header{height:76px;padding:13px 40px;flex-wrap:nowrap;gap:24px}#presentation #brand{font-size:28px}#presentation #brand span{font-size:18px}#presentation nav{flex-wrap:nowrap}#presentation nav button{font-size:16px;padding:8px 16px}#presentation main{padding:16px 36px 10px;max-width:none;height:824px;overflow:hidden}#presentation .hero{height:290px;min-height:0;border-radius:25px;background-position:center 42%}#presentation .hero-copy{width:52%;padding:20px 32px}#presentation .hero h1{font-size:55px;line-height:1.05;margin:7px 0 12px}#presentation .hero .eyebrow{margin:0;font-size:16px}#presentation .hero p:not(.eyebrow){font-size:19px;line-height:1.5;margin:10px 0}#presentation .hero .actions{margin-top:14px}#presentation .scorebar{margin:12px 0 3px;gap:15px}#presentation .team{padding:4px 15px;flex-basis:auto;border-radius:14px}#presentation .team strong{font-size:19px}#presentation .team b{font-size:28px}#presentation .team button{padding:2px 13px}#presentation .scorehint{font-size:14px;line-height:1.4}#presentation .sectionhead{margin-top:12px;align-items:center}#presentation .sectionhead .eyebrow{display:none}#presentation .sectionhead h2{font-size:25px}#presentation .games{grid-template-columns:repeat(3,1fr);margin-top:12px;gap:18px}#presentation .gamecard{height:165px;min-height:0;padding:17px 22px;display:grid;grid-template-columns:50px 1fr;grid-template-rows:auto auto auto;column-gap:14px}#presentation .gamecard .icon{grid-row:1/4;font-size:39px}#presentation .gamecard h3{font-size:24px;margin:0}#presentation .gamecard p{font-size:18px;margin:0;line-height:1.5}#presentation .gamecard .tag{font-size:15px;margin:0}#presentation .actions{margin-top:14px}#presentation .bottom{margin-top:12px;align-items:center}#presentation .bottom p{margin:0;font-size:14px}#presentation .bottom button{font-size:15px}#presentation footer{margin-top:7px;font-size:14px}#presentation .stage{height:707px;min-height:0;max-width:1400px;margin:13px auto 0;padding:18px 28px;overflow:hidden}#presentation .stage-top{margin-bottom:8px;gap:16px;flex-wrap:nowrap}#presentation .stage .eyebrow{display:none}#presentation .stage h1{font-size:31px;margin:0;line-height:1.4}#presentation .stage h2{font-size:34px;line-height:1.5;margin:19px 0}#presentation .locks{gap:13px;font-size:24px;line-height:1.5}#presentation .stage p.muted{font-size:17px;margin:9px 0;line-height:1.45}#presentation .options{margin:22px auto 12px;max-width:1040px;grid-template-columns:1fr 1fr;gap:14px}#presentation .option{padding:17px;font-size:23px}#presentation .feedback{min-height:30px;font-size:21px;margin:10px 0}#presentation .votegrid{margin:18px auto;max-width:1250px;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:9px;max-height:310px}#presentation .vote{font-size:18px;padding:9px 12px}#presentation .votegrid:has(.vote:nth-child(24)){grid-template-columns:repeat(8,1fr);gap:6px}#presentation .votegrid:has(.vote:nth-child(24)) .vote{font-size:16px;padding:6px 9px}#presentation .wheel-layout{display:grid;grid-template-columns:390px 1fr;gap:25px;direction:ltr;margin-top:15px;align-items:start}#presentation .wheel-panel,#presentation .challenge-panel{direction:rtl}#presentation .wheel-panel{background:#ffffff05;border:1px solid var(--line);border-radius:24px;padding:20px 15px;min-height:480px}#presentation .wheelbox{width:260px;height:260px;margin:20px auto 32px}#presentation .wheel-panel .actions{gap:8px;flex-wrap:wrap}#presentation .wheel-panel .actions button{font-size:17px}#presentation .challenge-panel h2{font-size:29px;line-height:1.5;margin:12px 0}#presentation .challenge-panel .challenge-label{font-size:19px}#presentation .challenge-panel .secret{padding:10px 17px;font-size:21px;margin:10px auto}#presentation .challenge-panel .actions{margin-top:10px}#presentation .challenge-panel .timer{width:80px;height:80px;font-size:32px;border-width:3px}#presentation .challenge-panel .muted{font-size:16px;line-height:1.35}#presentation .challenge-panel button{padding:8px 17px}#presentation .challenge-panel .readbtn{font-size:16px;padding:5px 13px}#presentation .pause{padding-top:100px}#presentation .pause h1{font-size:50px}#presentation .leader{margin:8px auto;padding:15px;width:100%}#presentation .two{grid-template-columns:1fr 1fr;gap:20px}#presentation .celebration{font-size:65px;line-height:1.3;margin-top:15px}#presentation .resultnames{font-size:32px;margin:8px 0}#presentation .leader h3{margin:0;font-size:23px}#presentation .leader p{margin:0}.wheel-stage .challenge-panel:empty{display:none}dialog{max-height:94vh;overflow:auto}
#presentation .stage:before{z-index:0;opacity:.055;pointer-events:none}#presentation .stage>*{position:relative;z-index:1}
#presentation .written-answer{margin:12px auto 3px;max-width:1060px;text-align:right}#presentation .written-answer label{font-size:18px;margin:0 0 6px;color:var(--gold)}#presentation .written-answer textarea{resize:none;height:112px;min-height:0;line-height:1.65;font-size:22px;background:#11091ed9;border:1px solid #b18ac066;padding:13px 18px;margin:0;border-radius:15px}#presentation .written-answer textarea[readonly]{background:#301b41;border-color:#e6c77688;color:#fff5d7}#presentation .answer-count{display:block;text-align:left;direction:ltr;font-size:14px;color:var(--muted);line-height:1.4;margin-top:3px}#presentation .writing-stage h2{font-size:31px;margin:14px auto;max-width:1200px;line-height:1.55}#presentation .writing-stage>.muted{max-width:1200px;margin:8px auto 12px}#presentation .writing-stage .feedback{font-size:19px;min-height:29px;margin:5px auto}#presentation .writing-stage .actions{margin-top:10px}#presentation .writing-stage .badge{font-size:17px}#presentation .challenge-panel .written-answer{margin-top:14px}#presentation .challenge-panel .written-answer textarea{height:148px;font-size:21px}#presentation .challenge-panel h2{font-size:29px;line-height:1.55}#presentation .wheel-panel .timer{width:72px;height:72px;font-size:31px;margin-top:6px}#presentation .wheel-panel{padding-top:10px}#presentation .wheelbox{width:225px;height:225px;margin:16px auto 24px}#presentation .wheel-panel .feedback{min-height:28px;margin:5px auto}#presentation .wheel-panel .actions{margin:8px auto}#presentation .wheel-panel .actions button{padding:7px 13px}
