:root{--brand:#0061a4;--ink:#14202b;--muted:#5d6b78;--ok:#1e8e3e;--bad:#d93025;--a:#1f6fd1;--b:#e8710a;--c:#1e8e3e;--d:#8e24aa}body{color:var(--ink);margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.admin-page{box-sizing:border-box;background:#dde3ea;min-height:100vh;padding:24px 0}.admin,.login{background:#fff;max-width:1200px;margin:0 auto;font-size:14px;box-shadow:0 4px 20px #00000026}.login{flex-direction:column;gap:14px;max-width:360px;padding:24px;display:flex}.ad-top{border-bottom:1px solid #e3e7eb;flex-wrap:wrap;align-items:center;gap:16px;min-height:56px;padding:0 20px;display:flex}.ad-top img{height:24px}.ad-top b{font-size:16px}.ad-top.sub{padding:10px 20px}.ad-content{padding:16px 20px}.ad-main{display:flex}.ad-side{box-sizing:border-box;border-right:1px solid #e3e7eb;flex-direction:column;width:300px;padding:16px;display:flex}.ad-side .q{text-align:left;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;gap:8px;margin-bottom:6px;padding:10px;display:flex}.ad-side .q.on{background:#e8f1fb}.ad-side .q .n{color:var(--muted);width:22px}.ad-side .q .qt{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.ad-right{flex:1}.ad-body{flex-direction:column;gap:14px;padding:20px 24px;display:flex}.settings-form{flex-direction:column;gap:10px;padding:0 24px 20px;display:flex}.settings{grid-template-columns:1fr 1fr;gap:10px 24px;display:grid}.row{align-items:center;gap:12px;display:flex}.field{border:1px solid #b9c2cb;border-radius:6px;flex-direction:column;flex:1;padding:4px 12px 6px;display:flex}.field small{color:var(--muted)}.field input,.field textarea{font:inherit;background:0 0;border:0;outline:0;font-size:16px}.chip{border:1px solid #ccd;border-radius:16px;padding:4px 10px;font-size:12px}.chip.live{color:#a32;background:#fdecea;border-color:#f5c2be}.obtn,.fbtn,.dbtn{box-sizing:border-box;min-height:36px;font:inherit;letter-spacing:.02em;cursor:pointer;white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:6px 16px;font-size:14px;font-weight:500;line-height:1.5;text-decoration:none;transition:background-color .15s,box-shadow .15s;display:inline-flex}.obtn{color:var(--brand);background:0 0;border:0;padding:6px 12px}.obtn:hover{background:#0061a414}.fbtn{background:var(--brand);color:#fff;border:0;box-shadow:0 1px 3px #0003}.fbtn:hover{background:#004f86;box-shadow:0 2px 6px #00000040}.dbtn{background:var(--bad);color:#fff;border:0}.dbtn.outline{color:var(--bad);background:0 0;padding:6px 12px}.dbtn.outline:hover{background:#d9302514}button:disabled{opacity:.5;cursor:not-allowed}.linkbtn{color:var(--brand);font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.linkbtn.bad{color:var(--bad)}.obtn.wide{text-align:center;margin-top:10px}.optedit{align-items:center;gap:10px;display:flex}.optedit .sw{color:#fff;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-weight:700;display:flex}.sw.A{background:var(--a)}.sw.B{background:var(--b)}.sw.C{background:var(--c)}.sw.D{background:var(--d)}.optinput{font:inherit;border:1px solid #b9c2cb;border-radius:6px;flex:1;padding:10px 12px;font-size:16px}.optedit input[type=radio]{accent-color:var(--ok);width:18px;height:18px}.admin .qimg{object-fit:cover;border-radius:10px;width:220px;max-height:120px}.note{color:var(--muted);font-size:12px}.error{color:var(--bad)}.banner{background:#fff4e5;border:1px solid #f0c987;border-radius:8px;padding:8px 12px}.confirm{align-items:center;gap:8px;display:inline-flex}.titleform{align-items:stretch;margin:12px 0}.quizzes{padding:0;list-style:none}.quizzes li{border-bottom:1px solid #e3e7eb;padding:8px 0}.create{align-items:flex-end;margin-top:16px}.filelabel input{font-size:12px}.pp{min-height:100vh;color:#14202b;box-sizing:border-box;background:#f4f6f8;flex-direction:column;min-height:100dvh;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;display:flex;overflow-x:hidden}.pp *,.pp :before,.pp :after{box-sizing:border-box}.pp-top{background:#fff;border-bottom:1px solid #e3e7eb;flex:none;align-items:center;gap:10px;height:56px;padding:0 16px;font-size:14px;display:flex}.pp-top img{height:22px}.pp-top .r{text-align:right;text-overflow:ellipsis;white-space:nowrap;margin-left:auto;font-weight:600;overflow:hidden}.pp-banner{color:#8a4b00;text-align:center;background:#fff4e5;padding:8px 12px;font-size:13px}.pp-body{flex-direction:column;flex:1;gap:14px;width:100%;max-width:520px;margin:0 auto;padding:20px 16px;display:flex}.pp-center{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:14px;display:flex}.pp-h{margin:0;font-size:26px;font-weight:700}.pp-muted{color:#5d6b78;margin:0;font-size:15px}.pp-emoji{font-size:48px;line-height:1}.pp-card{background:#fff;border-radius:16px;flex-direction:column;gap:14px;width:100%;padding:22px;display:flex;box-shadow:0 1px 3px #00000014}.pp-field{background:#fff;border:1px solid #b9c2cb;border-radius:10px;padding:8px 12px;display:block}.pp-field.err{border-color:#d93025}.pp-field small{color:#5d6b78;font-size:12px;display:block}.pp-field input{width:100%;font:inherit;color:inherit;background:0 0;border:0;outline:0;padding:2px 0 0;font-size:18px}.pp-err{color:#d93025;margin:-6px 0 0;font-size:13px}.pp-btn{color:#fff;cursor:pointer;background:#0061a4;border:0;border-radius:24px;min-height:48px;padding:14px;font-size:16px;font-weight:600}.pp-btn:disabled{opacity:.6}.pp-dots{gap:8px;display:flex}.pp-dots i{opacity:.35;background:#0061a4;border-radius:50%;width:10px;height:10px;animation:1.2s ease-in-out infinite pp-pulse}.pp-dots i:nth-child(2){animation-delay:.2s}.pp-dots i:nth-child(3){animation-delay:.4s}@keyframes pp-pulse{0%,to{opacity:.25}50%{opacity:1}}.pp-n{color:#5d6b78;justify-content:space-between;align-items:center;min-height:26px;font-size:13px;display:flex}.pp-cd{color:#fff;background:#d93025;border-radius:20px;padding:4px 12px;font-size:15px;font-weight:700}.pp-q{overflow-wrap:anywhere;margin:0;font-size:21px;font-weight:600;line-height:1.3}.q-image{object-fit:contain;background:#e3e7eb;border-radius:14px;width:100%;height:auto;max-height:40vh;display:block}.opt{color:#fff;width:100%;min-height:72px;font:inherit;text-align:left;cursor:pointer;overflow-wrap:anywhere;border:0;border-radius:14px;align-items:center;gap:14px;padding:12px 16px;font-size:18px;font-weight:500;display:flex}.opt .k{background:#ffffff40;border-radius:50%;flex:0 0 40px;justify-content:center;align-items:center;height:40px;font-weight:700;display:flex}.opt-a{background:#1f6fd1}.opt-b{background:#e8710a}.opt-c{background:#1e8e3e}.opt-d{background:#8e24aa}.opt:disabled{cursor:default}.opt.dim{opacity:.3}.opt.sel{outline-offset:2px;outline:4px solid #14202b}.pp-sent{text-align:center;color:#0061a4;margin:0;font-weight:600}.pp-verdict{color:#fff;text-align:center;background:#5d6b78;border-radius:20px;padding:28px 18px}.pp-verdict.ok{background:#1e8e3e}.pp-verdict.bad{background:#d93025}.pp-verdict .big{margin:0;font-size:34px;font-weight:800}.pp-verdict .sub{margin:4px 0 0}.pp-rank{color:#0061a4;margin:0;font-size:64px;font-weight:800;line-height:1}.pp-score{font-size:28px;font-weight:700}.proj-fit{background:#003a63;position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}.proj{transform-origin:50%;color:#fff;--a:#1f6fd1;--b:#e8710a;--c:#1e8e3e;--d:#8e24aa;background:linear-gradient(135deg,#0072c0,#0061a4 55%,#004f86);width:1920px;height:1080px;font-family:Roboto,Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:absolute;top:50%;left:50%;overflow:hidden}.proj .top{opacity:.9;justify-content:space-between;align-items:center;font-size:34px;display:flex;position:absolute;top:48px;left:72px;right:72px}.proj .pill,.proj .counter{background:#ffffff24;border-radius:40px;padding:10px 28px}.proj .counter.all{background:#1e8e3e}.proj .foot{color:#5d6b78;background:#fff;align-items:center;gap:32px;height:96px;padding:0 72px;font-size:26px;display:flex;position:absolute;bottom:0;left:0;right:0}.proj .foot img{height:52px}.proj .foot .hint{margin-left:auto;font-size:22px}.proj .stage{flex-direction:column;display:flex;position:absolute;top:140px;bottom:132px;left:72px;right:72px}.proj.title-slide .stage{justify-content:center;top:0;bottom:96px}.proj .eyebrow{letter-spacing:6px;opacity:.8;margin-bottom:12px;font-size:36px}.proj .big-title{margin:0;font-size:120px;font-weight:700;line-height:1.05}.proj .sub{opacity:.85;margin-top:28px;font-size:48px}.proj .qtext{margin:0 0 36px;font-weight:600;line-height:1.2}.proj .qrow{flex:1;gap:48px;min-height:0;display:flex}.proj .qimg{background:#ffffff1a;border-radius:24px;flex:1.2 1 0;align-self:stretch;position:relative;overflow:hidden}.proj .qimg img{object-fit:contain;width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}.proj .opts{flex:1;grid-template-columns:1fr 1fr;align-content:end;gap:28px;display:grid}.proj .opts.one-col{flex:1.4;grid-template-columns:1fr;gap:16px}.proj .opts.one-col .opt{min-height:0;padding:16px 28px}.proj .opts.one-col .opt .k{flex-basis:64px;height:64px;font-size:36px}.proj .opt{color:#fff;box-sizing:border-box;border-radius:22px;align-items:center;gap:28px;min-height:150px;padding:28px 36px;font-weight:500;display:flex}.proj .opt .k{background:#ffffff38;border-radius:50%;flex:0 0 84px;justify-content:center;align-items:center;height:84px;font-size:46px;font-weight:700;display:flex}.proj .A{background:var(--a)}.proj .B{background:var(--b)}.proj .C{background:var(--c)}.proj .D{background:var(--d)}.proj .opt.dim{opacity:.28}.proj .opt.right{outline-offset:-2px;outline:10px solid #fff}.proj .count-ring{box-sizing:border-box;z-index:2;background:#ffffff14;border:16px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:220px;height:220px;font-size:110px;font-weight:700;display:flex;position:absolute;top:-118px;right:0}.proj.counting .top .counter{margin-right:260px}.proj.counting .qtext{padding-right:260px}.proj .lobby{flex:1;align-items:center;gap:96px;display:flex}.proj .qr{box-sizing:border-box;background:#fff;border-radius:28px;flex:none;width:620px;padding:36px}.proj .qr svg{width:100%;height:100%}.proj .lobby .info{font-size:44px}.proj .lobby .url{letter-spacing:.5px;margin:24px 0 64px;font-size:56px;font-weight:700}.proj .lobby .n{font-size:220px;font-weight:800;line-height:1}.proj .dist{flex:1;align-items:flex-end;gap:40px;min-height:0;margin-top:8px;display:flex}.proj .dist .col{flex-direction:column;flex:1;justify-content:flex-end;align-items:center;gap:14px;height:100%;display:flex}.proj .dist .col.dim{opacity:.35}.proj .dist .b{border-radius:18px 18px 0 0;width:100%}.proj .dist .right .b{outline-offset:-2px;outline:8px solid #fff}.proj .dist .v{font-size:48px;font-weight:700}.proj .dist .lab{text-align:center;box-sizing:border-box;border-radius:0 0 14px 14px;width:100%;padding:14px;font-size:34px}.proj .right-tag{opacity:.95;margin-top:22px;font-size:40px}.pres-ctrl{z-index:5;opacity:0;align-items:center;gap:12px;transition:opacity .2s;display:flex;position:fixed;bottom:24px;right:24px}.pres-ctrl:hover,.pres-ctrl:focus-within{opacity:1}.pres-ctrl button{color:#0061a4;font:inherit;cursor:pointer;background:#fff;border:0;border-radius:40px;padding:10px 22px;font-size:18px;font-weight:600}.pres-ctrl button:disabled{opacity:.5;cursor:default}.pres-badge{z-index:5;color:#fff;border-radius:20px;padding:6px 14px;font-size:18px;position:fixed;top:16px;left:24px}.pres-offline{background:#d93025}.pres-error{background:#8a4b00;font-size:22px;left:50%;transform:translate(-50%)}.pres-msg{color:#fff;background:#0061a4;justify-content:center;align-items:center;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:32px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.proj .podium{flex:1;justify-content:center;align-items:flex-end;gap:40px;min-height:0;padding-bottom:10px;display:flex}.proj .pcol{flex-direction:column;flex:1 1 0;justify-content:flex-end;align-items:center;min-width:0;max-width:420px;height:100%;display:flex}.proj .pname{text-align:center;overflow-wrap:anywhere;max-width:100%;max-height:250px;margin-bottom:12px;font-weight:700;line-height:1.1;overflow:hidden}.proj .pname .pn+.pn{margin-top:4px}.proj .pname.hidden{color:#ffffff59;font-size:56px}.proj .pscore{opacity:.9;margin-bottom:16px;font-size:36px}.proj .pbar-box{align-items:flex-end;width:100%;height:480px;display:flex}.proj .pbar{color:#00000059;box-sizing:border-box;border-radius:20px 20px 0 0;justify-content:center;align-items:flex-start;width:100%;padding-top:24px;font-size:110px;font-weight:800;transition:height .4s;display:flex;overflow:hidden}.proj .gold{background:linear-gradient(#ffd54f,#f9a825)}.proj .silver{background:linear-gradient(#eceff1,#b0bec5)}.proj .bronze{background:linear-gradient(#ffcc80,#d48a3a)}.proj .other{background:linear-gradient(#90caf9,#5c8fc4)}.proj .winner .pname{color:#ffe082;text-shadow:0 0 30px #ffd54f99}.proj .confetti{pointer-events:none;opacity:.7;background-image:radial-gradient(circle,#ffd54f 6px,#0000 7px),radial-gradient(circle,#4fc3f7 5px,#0000 6px),radial-gradient(circle,#ef5350 5px,#0000 6px),radial-gradient(circle,#81c784 6px,#0000 7px);background-position:0 0,60px 90px,120px 40px,30px 150px;background-size:180px 220px,240px 170px,210px 260px,280px 200px;animation:6s linear infinite confetti-fall;position:absolute;top:0;bottom:0;left:0;right:0}@keyframes confetti-fall{0%{background-position:0 0,60px 90px,120px 40px,30px 150px}to{background-position:0 220px,60px 260px,120px 300px,30px 350px}}@media (prefers-reduced-motion:reduce){.proj .confetti{animation:none}}.proj .snow{pointer-events:none;opacity:.9;background-image:radial-gradient(circle,#fff 10px,#0000 11px),radial-gradient(circle,#fff 6px,#0000 7px),radial-gradient(circle,#fff 4px,#0000 5px),radial-gradient(circle,#fff 8px,#0000 9px);background-position:0 0,70px 90px,40px 30px,150px 140px;background-size:310px 260px,190px 230px,130px 170px,250px 300px;animation:9s linear infinite snow-fall;position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}@keyframes snow-fall{0%{background-position:0 0,70px 90px,40px 30px,150px 140px}to{background-position:40px 260px,50px 320px,60px 200px,130px 440px}}@media (prefers-reduced-motion:reduce){.proj .snow{animation:none}}
