:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#172640;background:#f6f8fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1160px)/2));background:white;border-bottom:1px solid #e9edf4}.brand{display:flex;align-items:center;gap:12px;cursor:pointer}.brand strong{display:block;font-size:19px;letter-spacing:-.6px}.brand small{display:block;color:#78849b;letter-spacing:1.5px;font-size:9px;margin-top:3px}.mark{width:40px;height:40px;background:#182b53;color:#e9ce84;display:grid;place-items:center;border-radius:12px;font-family:Georgia,serif;font-size:25px}.header-actions,.actions,.toolbar,.meta,.playtop{display:flex;align-items:center;justify-content:space-between;gap:14px}.actions{justify-content:flex-start;flex-wrap:wrap}main{max-width:1120px;margin:0 auto;min-height:calc(100vh - 145px);padding:44px 24px 70px}.view[hidden],[hidden]{display:none!important}.hero{background:linear-gradient(123deg,#192d58,#253c78 63%,#465fa1);color:white;padding:75px clamp(26px,6vw,80px);border-radius:26px;position:relative;overflow:hidden}.hero:after{content:'✧';position:absolute;right:7%;top:0;color:#ffffff1a;font-size:270px}.eyebrow{font-size:12px;letter-spacing:2.4px;color:#e6cf96;font-weight:800}.hero h1{font-size:clamp(38px,5.6vw,70px);line-height:1.09;letter-spacing:-2.3px;margin:19px 0}.hero em{font-style:normal;color:#ebcb81}.hero p{max-width:550px;line-height:1.8;color:#e4eaf5;margin-bottom:28px}.features,.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:17px;margin-top:23px}.features article,.panel,.quizcard{background:white;border:1px solid #e4e9f2;border-radius:19px;padding:26px;box-shadow:0 8px 30px #12295708}.features article span{font-size:28px}.features b{display:block;margin-top:15px}.features p,.toolbar p,.section-head p,.quizcard p{color:#748198;line-height:1.6}.section-head{text-align:center;margin:12px 0 30px}h2{font-size:31px;letter-spacing:-.8px;margin:10px 0}h3{letter-spacing:-.3px}.slim{max-width:490px;margin:auto}.tabs{display:flex;gap:10px;margin-bottom:22px}.tabs button{flex:1}.tabs .selected{background:#e9eefc;color:#1d3778}button{font:inherit;cursor:pointer;border:0;border-radius:11px;padding:13px 17px;font-weight:700;transition:transform .12s,background .2s}button:hover{transform:translateY(-1px)}button:disabled{opacity:.55;cursor:not-allowed;transform:none}.primary{color:#172641;background:#f0cf83}.primary:hover{background:#e5bc66}.hero .primary{color:#15234a}.secondary{background:#e9eef8;color:#20396d}.ghost{background:transparent;color:#42516c;border:1px solid #dbe2ef}.textbutton{background:transparent;color:#3b568e;padding:8px 0}.stretch{width:100%;margin-top:12px}.panel form,label{display:block}label{font-weight:700;font-size:13px;margin:0 0 19px}label small{font-weight:400;color:#75829b}input,textarea,select{display:block;width:100%;font:inherit;border:1px solid #dce3ef;border-radius:11px;padding:12px 14px;margin-top:9px;outline:0;color:#213351;background:#fff}input:focus,textarea:focus,select:focus{border-color:#6b87ca;box-shadow:0 0 0 3px #6484c21e}.toolbar{margin-bottom:20px;flex-wrap:wrap}.toolbar h2,.toolbar h3{margin:5px 0}.quizcard h3{margin:0 0 9px}.quizcard .actions{margin-top:20px}.quizcard button{padding:9px 12px;font-size:13px}.questionbox{padding:20px;border:1px solid #e1e7f0;border-radius:15px;margin:17px 0;background:#fbfcff}.questionbox header{height:auto;background:transparent;border:0;padding:0;display:flex}.questionbox .grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.questionbox .row{display:flex;gap:12px}.questionbox .row label{flex:1}.playtop{margin-bottom:18px;font-size:14px}.playpanel{max-width:820px;margin:0 auto 20px;text-align:center;padding:35px}.playpanel h2{font-size:clamp(23px,3.6vw,37px);line-height:1.35;margin:36px 0}.meter{height:9px;border-radius:9px;background:#e8ebf2;overflow:hidden}.meter>div{height:100%;width:100%;background:#ebc976;transition:width .25s}.meta{margin-top:14px;color:#687892;font-size:13px}.choicegrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice{padding:21px;min-height:80px;text-align:left;color:white;font-size:17px;border-radius:14px;word-break:break-word}.choice:nth-child(4n+1){background:#db5361}.choice:nth-child(4n+2){background:#417aca}.choice:nth-child(4n+3){background:#dc9d2a}.choice:nth-child(4n+4){background:#449b78}.choice.chosen{outline:5px solid #182b53;outline-offset:-5px}.choice.correct{box-shadow:inset 0 0 0 5px #b7f4b1}.choice.wrong{filter:saturate(.35)}.feedback{padding:17px;margin-top:23px;background:#eef3fc;border-radius:12px;line-height:1.65;font-weight:600}.hostpin{text-align:center;background:#172c56;color:white}.hostpin strong{display:block;font-size:clamp(40px,7vw,76px);letter-spacing:9px;margin:5px}.hostpin p{color:#d8e3f8;overflow-wrap:anywhere}.leaderboard div,#hostBoard div{padding:11px 15px;border-bottom:1px solid #e3e8f1;display:flex;justify-content:space-between}.overflow{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}td,th{padding:13px 15px;border-bottom:1px solid #e7eaf1}th{color:#556780;font-size:12px}footer{max-width:1120px;margin:0 auto;padding:20px 24px 30px;color:#8490a6;display:flex;justify-content:space-between;font-size:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#1d2c50;color:white;padding:15px 25px;border-radius:12px;box-shadow:0 15px 35px #1221473b;z-index:5;max-width:92vw}@media(max-width:620px){header{padding:0 17px}.brand strong{font-size:15px}.brand small{font-size:8px}.header-actions button{font-size:11px;padding:9px}main{padding:22px 14px 60px}.hero{padding:55px 24px}.panel{padding:19px}.choicegrid,.questionbox .grid2{grid-template-columns:1fr}.choice{min-height:62px;padding:16px}.playpanel{padding:20px}.questionbox .row{display:block}}

/* AI Question Generator, penggunaan sederhana lintas perangkat */
.editor-mode{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}.ai-box{border:1px solid #d0daf0;background:#f1f5fd;padding:24px;border-radius:16px;margin:15px 0 28px}.ai-box .grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ai-box .grid2 label{margin-bottom:10px}.ai-box .toolbar{margin-bottom:5px}.smallnote{color:#586983;font-size:12px;line-height:1.6}.ai-options{padding-left:23px;line-height:1.7}.ai-options li{padding:3px}.ai-right{font-weight:750;color:#17663e}.pin-settings{margin:20px 0 35px;padding:18px}.pin-settings summary{font-weight:700;cursor:pointer}.pin-settings form{padding:14px 0}.ai-box button{max-width:100%}@media(max-width:620px){.ai-box{padding:16px}.ai-box .grid2{grid-template-columns:1fr}}


/* ESA V3: pemenang, rekap cetak, dan tata letak layar kecil */
.winners-panel{background:#fff;border:1px solid #dce5f2;border-radius:20px;padding:24px;margin:18px 0 24px;box-shadow:0 8px 30px #1229570a}
.winner-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.winner-head h2{font-size:clamp(22px,3vw,30px);margin:5px 0}
.winner-head p{color:#61708b;margin:3px 0 14px}
.winner-overline{color:#9b7a25;font-size:11px;font-weight:800;letter-spacing:1.6px}
.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:13px}
.podium-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#f4f6fa;border:1px solid #e0e6f0;border-radius:15px;gap:7px;min-height:160px;padding:18px 12px;min-width:0}
.podium-card .medal{font-size:30px}.podium-card strong{overflow-wrap:anywhere;font-size:clamp(16px,1.75vw,21px)}.podium-card b{font-size:14px}.podium-card small{color:#5b6d8a}
.podium-1{background:#fff5d9;border-color:#e7cb7b}.podium-2{background:#f1f4fa}.podium-3{background:#fbf1ea;border-color:#e4c2ad}
.winner-footnote,.report-subtitle{font-size:12px;color:#66758e;line-height:1.6;margin:16px 0 2px}
.report-actions{flex-wrap:wrap}
#report .overflow table{min-width:580px}#report .panel{margin-top:15px}
@media(max-width:680px){.podium{grid-template-columns:1fr}.podium-card{min-height:115px;padding:12px}.winners-panel{padding:16px}.winner-head{align-items:flex-start}.report-actions{width:100%}.report-actions button{flex:1 1 150px}.hostpin strong{letter-spacing:4px}header{gap:8px}.header-actions{gap:6px}}
@media print{
 @page{size:A4 portrait;margin:14mm}
 body{background:#fff;color:#000;font:11pt Arial,sans-serif;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 header,footer,.report-actions,.textbutton,#toast{display:none!important}
 main{max-width:none;padding:0;min-height:auto}
 .view{display:none!important}#report{display:block!important}
 .toolbar{margin:0 0 12px}#reportTitle{font-size:21pt;color:#000}
 .winners-panel{box-shadow:none;border:1px solid #888;page-break-inside:avoid}
 .podium{grid-template-columns:repeat(3,minmax(0,1fr))}.podium-card{min-height:110px}
 #report .overflow{overflow:visible}#report .overflow table{min-width:0;width:100%;font-size:9pt}
 #report .panel{box-shadow:none;border:0;padding:0}td,th{padding:6px 7px;border:1px solid #aaa}
 tr{page-break-inside:avoid}
}
