@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700;800;900&display=swap');
:root{--bg:#231342;--panel:#301d51;--line:#5b4277;--text:#fff9ff;--muted:#ccbedc;--yellow:#ffe16b;--a:#72e4e2;--b:#ffa3ca;--green:#9ae8b1;--red:#ffc4b5;--ink:#26163c;--font:'Noto Kufi Arabic',Tahoma,Arial,sans-serif;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;font:400 16px/1.85 var(--font);background:var(--bg);color:var(--text);background-image:radial-gradient(ellipse at 15% 5%,#633f812e,transparent 50%)}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.36}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}[hidden]{display:none!important}button,input,select{border:1px solid var(--line);border-radius:12px}.app{max-width:1420px;margin:auto;padding:0 40px}.topbar{min-height:92px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #ffffff1c}.brand{display:flex;gap:13px;align-items:center}.brand-icon{display:grid;place-items:center;background:var(--yellow);color:var(--ink);width:44px;height:48px;border-radius:13px;font-size:34px;font-weight:900;transform:rotate(-7deg)}.brand strong{display:block;font-size:23px;font-weight:800}.brand>div>span{display:block;font-size:12px;color:var(--muted)}.top-actions{display:flex;gap:6px;flex-wrap:wrap}.text-button{background:transparent;color:var(--muted);border:0;border-radius:8px;min-height:44px;padding:6px 12px;font-size:13px}.text-button:hover:not(:disabled){background:#ffffff0e;color:var(--text)}.button{min-height:48px;padding:12px 22px;border-radius:12px;display:inline-flex;gap:12px;align-items:center;justify-content:center;font-size:15px;font-weight:700;transition:background .16s,transform .16s}.button:active:not(:disabled){transform:translateY(1px)}.primary{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}.primary:hover:not(:disabled){background:#ffeb9a}.secondary{background:transparent;color:var(--text);border:1px solid var(--line)}.secondary:hover:not(:disabled){background:#ffffff0a}.overline{color:var(--yellow);font-size:13px;font-weight:600;margin:0 0 6px}.setup{display:grid;grid-template-columns:minmax(360px,1.1fr) minmax(300px,.9fr);gap:80px;align-items:center;padding:45px 0 50px;min-height:calc(100svh - 163px)}.setup h1{font-size:clamp(30px,3.4vw,48px);line-height:1.75;margin:8px 0 12px;letter-spacing:normal;font-weight:800}.setup h1 span{color:var(--yellow)}.setup-description{color:var(--muted);font-size:15px;max-width:560px;margin:0 0 24px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.team-a{--team:var(--a)}.team-b{--team:var(--b)}.team-field{font-size:13px;color:var(--team)}input,select{display:block;width:100%;background:#2c1b49;color:var(--text);min-height:48px;padding:9px 13px;font-size:15px;margin-top:7px;line-height:1.8}input::placeholder{color:#bdaccd}.team-field input{border-color:color-mix(in srgb,var(--team) 55%,#392252);font-weight:600}.options-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin:20px 0}.options-grid label{font-size:13px;color:var(--muted)}.start-match{width:100%;justify-content:space-between;font-size:16px;margin-top:4px}.setup-footnote{font-size:12px;color:var(--muted);margin:14px 0 0}.setup-preview{text-align:center;padding:20px 15px;max-width:440px;width:100%;margin:auto}.preview-tag{display:inline-block;background:var(--yellow);color:var(--ink);font-weight:700;font-size:13px;padding:6px 18px;border-radius:9px;position:relative;z-index:1;transform:rotate(4deg);margin-bottom:-5px}.mystery-preview{background:#f7f2ff;color:var(--ink);padding:36px 25px;border-radius:30px;min-height:340px;box-shadow:15px 17px 0 #11092366;transform:rotate(-4deg);display:flex;flex-direction:column;align-items:center;justify-content:center}.card-caption{font-size:14px;color:#6f537e}.mystery-preview>strong{font-size:128px;line-height:1.4;color:#6739a4}.preview-stamps{display:flex;justify-content:space-between;gap:40px;font-size:20px;font-weight:800;width:100%}.preview-stamps span:first-child{color:#217846}.preview-stamps span:last-child{color:#b33c51}.preview-dots{display:flex;justify-content:center;gap:8px;margin:38px 0 16px;direction:ltr}.preview-dots i{width:12px;height:12px;border-radius:50%;background:#7d618f}.preview-dots i:nth-child(-n+3){background:var(--yellow)}.setup-preview>p{font-size:14px;color:var(--muted)}footer{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap;color:var(--muted);border-top:1px solid #ffffff1c;padding:17px 0;font-size:12px}.footer-dot{color:var(--yellow)}.credit-button{font:inherit;color:var(--muted);background:transparent;border:0;padding:7px 8px;text-decoration:underline}.form-error{color:#ffbdb0;font-size:14px}.game{padding:22px 0}.score-strip{display:grid;grid-template-columns:1fr 140px 1fr;gap:20px;align-items:center}.score-team{display:flex;align-items:center;gap:12px;background:#301d51;padding:12px 18px;border:1px solid #5b4277;border-radius:14px;min-width:0}.score-team.active{border-color:var(--team);background:color-mix(in srgb,var(--team) 8%,#301d51)}.team-number{display:grid;place-items:center;width:30px;height:34px;border-radius:8px;background:var(--team);color:var(--ink);font-weight:800;font-size:14px;flex-shrink:0}.score-team>div{flex:1;min-width:0}.score-team-name{display:block;font-size:16px;font-weight:700;color:var(--team);overflow-wrap:anywhere}.score-team small{display:block;color:var(--muted);font-size:11px}.score-team>strong{font-size:29px;font-variant-numeric:tabular-nums}.points-label{font-size:11px;color:var(--muted)}.match-position{text-align:center;font-size:12px;color:var(--muted)}.match-position b{display:block;color:var(--yellow);font-weight:500}.round-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0 17px}.round-heading h2{font-size:25px;margin:0;overflow-wrap:anywhere}.round-heading label{color:var(--muted);font-size:12px;max-width:235px;width:100%}.round-heading label>span{font-size:11px}.round-heading input{margin-top:3px;padding:5px 10px;min-height:40px;font-size:14px}.arena{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(340px,.82fr);gap:28px}.secret-stage{min-width:0}.secret-card{background:#fcf9ff;color:var(--ink);border-radius:22px;min-height:350px;display:grid;place-items:center;position:relative;overflow:hidden;padding:28px;text-align:center;box-shadow:0 8px 0 #170c2c}.concealed,.revealed,.round-result{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.card-eyebrow{font-size:13px;color:#795e8b;font-weight:600}.question-symbol{font-size:120px;color:#7342a8;line-height:1.45;font-weight:900}.concealed h3{font-size:24px;margin:0}.concealed p{font-size:14px;color:#725680;margin:10px 0 0}.revealed img{width:clamp(140px,18vw,230px);height:clamp(140px,18vw,230px);object-fit:contain;margin:15px 0}.secret-word{font-size:clamp(38px,5.4vw,74px);line-height:1.7;margin:30px 0;font-weight:900;overflow-wrap:anywhere;max-width:100%}.for-group{color:#795e8b;font-size:12px;border:1px solid #ded0e7;border-radius:20px;padding:3px 14px}.stage-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin:22px 0 0}.stage-actions .text-button{font-size:12px}.question-panel{background:#2e1b4d;border:1px solid #53396f;border-radius:22px;padding:22px;align-self:start}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.panel-heading h3{font-size:18px;margin:0}.remaining-pill{font-size:12px;background:#493261;padding:4px 10px;border-radius:20px;white-space:nowrap}.remaining-pill b{color:var(--yellow);font-size:15px}.question-dots{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin:19px 0 20px}.question-dot{aspect-ratio:1;min-width:0;border:1px solid #705586;background:#38234f;border-radius:50%;display:grid;place-items:center;font-size:11px;color:#d4c5e1;font-family:Tahoma,Arial,sans-serif;font-weight:700}.question-dot.yes{background:var(--green);border-color:var(--green);color:#133f26}.question-dot.no{background:var(--red);border-color:var(--red);color:#64241b}.question-dot.current{border:2px solid var(--yellow);color:var(--yellow)}.counter-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answer-button{border:1px solid;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:130px;padding:12px;border-radius:15px;transition:transform .1s,background .15s}.answer-button.yes{background:#b7efc6;border-color:#b7efc6;color:#173c23}.answer-button.no{background:#ffd1c3;border-color:#ffd1c3;color:#662c28}.answer-button:disabled{opacity:.6}.answer-button:hover:not(:disabled){filter:brightness(1.05);transform:translateY(-2px)}.answer-label{font-size:19px;font-weight:800}.answer-button>strong{font-size:44px;line-height:1.4;font-weight:800;font-variant-numeric:tabular-nums}.answer-action{font-size:11px}.total-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;margin-top:10px;color:var(--muted)}.total-row strong{color:var(--text);margin-inline-start:8px;font-size:14px;white-space:nowrap}.total-row .text-button{font-size:12px;padding:5px 8px}.round-status{font-size:13px;min-height:48px;margin:10px 0 12px;color:#e0d4eb}.round-status.warning{color:var(--yellow);font-weight:700}.round-status.exhausted{color:#ffbbaa;font-weight:700}.decision{border-top:1px solid #62477c;padding-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.decision-label{grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px;margin-bottom:2px}.decision-label>span:last-child{color:var(--yellow)}.success{background:#ffe16b;color:#2f2140;border-color:#ffe16b}.decision .button{font-size:12px;padding:10px 8px}.judge-hint{grid-column:1/-1;font-size:11px;color:var(--muted);margin:0}.bottom-tools{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:24px}.bottom-tools p{font-size:12px;color:var(--muted);margin:0}.result-symbol{display:grid;place-items:center;width:75px;height:75px;background:#d9f4d3;border-radius:50%;color:#266b32;font-size:45px;font-weight:800}.round-result.failed .result-symbol{background:#f4d5e6;color:#8d496a}.round-result h3{font-size:32px;margin:15px 0 7px;color:#39204d}.round-result>p{font-size:15px;color:#705480;margin:0 0 18px}.revealed-answer{border-top:1px solid #d7c8e0;padding-top:12px;width:100%}.revealed-answer>span{font-size:12px;color:#795e8b}.revealed-answer strong{display:block;font-size:27px;margin-top:5px;overflow-wrap:anywhere}.finish{max-width:760px;margin:auto;padding:50px 0;text-align:center;min-height:calc(100svh - 163px)}.finish-medal{color:var(--yellow);font-size:80px;line-height:1.4}.finish h1{font-size:clamp(29px,4vw,48px);line-height:1.8;margin:10px 0;overflow-wrap:anywhere}.finish>p{color:var(--muted);font-size:15px}.finish .overline{color:var(--yellow)}.final-scores{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:30px 0}.final-scores>div{border:1px solid var(--team);padding:25px 18px;border-radius:20px;background:#321f50;color:var(--team);display:flex;flex-direction:column;align-items:center}.final-scores>div>strong{font-size:64px;line-height:1.6;color:var(--text)}.final-scores>div>span:first-child{font-size:19px;overflow-wrap:anywhere}.final-scores>div>span:last-child{font-size:13px}.finish>.button{margin-top:15px}dialog{color:var(--text);background:#301d51;border:1px solid #765690;border-radius:22px;max-width:650px;width:calc(100% - 28px);padding:28px;max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 25px 100px #0e081e99;font:400 15px/2 var(--font)}dialog::backdrop{background:#12081ed9;backdrop-filter:blur(5px)}dialog h2{font-size:24px;color:var(--yellow);margin:0 0 16px}dialog li{padding:5px 0}dialog ol{padding-right:22px}dialog a{color:var(--a)}.dialog-actions{display:flex;flex-wrap:wrap;gap:12px}.global-notice{position:fixed;bottom:20px;left:20px;right:20px;max-width:600px;margin:auto;background:#fff0bb;color:#362445;border:1px solid #f8d54b;border-radius:12px;padding:12px 20px;z-index:20;font-size:14px}@media(min-width:1100px) and (max-height:850px){.topbar{min-height:78px}.game{padding-top:15px}.score-team{padding:9px 15px}.round-heading{padding:13px 0}.round-heading h2{font-size:22px}.secret-card{min-height:330px}.question-panel{padding:18px}.answer-button{min-height:110px}.answer-button>strong{font-size:36px}.question-dots{margin:14px 0}.round-status{min-height:26px}.stage-actions{margin-top:17px}.bottom-tools{margin-top:14px}footer{padding:12px 0}.setup{padding:25px 0;gap:60px}.setup h1{font-size:39px}.setup-description{margin-bottom:18px}.options-grid{margin:16px 0;gap:12px}}@media(max-width:1000px){.app{padding:0 24px}.setup{gap:36px;grid-template-columns:minmax(330px,1fr) minmax(230px,.75fr)}.setup h1{font-size:33px}.mystery-preview{min-height:300px}.mystery-preview>strong{font-size:100px}.preview-stamps{font-size:17px;gap:16px}.arena{grid-template-columns:1fr 1fr;gap:18px}.question-panel{padding:17px}.score-strip{gap:12px;grid-template-columns:1fr 110px 1fr}.score-team{padding:12px;gap:8px}.score-team-name{font-size:14px}.points-label{display:none}.secret-card{padding:20px;min-height:330px}.question-dot{font-size:10px}.decision .button{font-size:11px}.answer-action{font-size:10px}}@media(max-width:700px){.app{padding:0 16px}.topbar{min-height:88px;gap:10px}.brand{gap:9px}.brand strong{font-size:19px}.brand>div>span{font-size:11px}.brand-icon{width:35px;height:41px;font-size:28px}.top-actions{gap:0;justify-content:flex-end;max-width:180px}.top-actions .text-button{padding:3px 7px;font-size:11px;min-height:35px}.setup{grid-template-columns:1fr;gap:32px;padding:28px 0;min-height:0}.setup-form-wrap{width:100%;max-width:510px;margin:auto}.setup h1{font-size:32px;line-height:1.8}.setup-description{font-size:14px}.setup-preview{max-width:320px;padding:12px 16px 20px}.mystery-preview{min-height:265px;padding:25px}.mystery-preview>strong{font-size:90px}.preview-dots{margin-top:28px}.setup-preview>p{margin-bottom:0;font-size:13px}.two-fields{gap:10px}.team-field{font-size:12px}.team-field input{font-size:15px;padding:10px}.options-grid{gap:12px}.options-grid label{font-size:12px}select{font-size:14px}.score-strip{grid-template-columns:1fr 1fr;gap:9px}.match-position{grid-column:1/-1;grid-row:2;display:flex;justify-content:center;gap:12px;font-size:12px}.score-team{padding:10px;gap:7px}.team-number{width:23px;height:29px;font-size:12px}.score-team-name{font-size:13px}.score-team>strong{font-size:24px}.score-team small{font-size:10px}.round-heading{gap:12px;padding:17px 0 13px}.round-heading h2{font-size:18px}.round-heading .overline{font-size:11px}.round-heading label{max-width:155px;font-size:11px}.round-heading input{font-size:14px;min-height:40px}.arena{grid-template-columns:1fr;gap:22px}.secret-card{min-height:250px;padding:22px}.question-symbol{font-size:82px}.concealed h3{font-size:21px}.concealed p{font-size:12px}.revealed img{width:170px;height:170px;margin:12px 0}.secret-word{font-size:42px;margin:25px 0}.stage-actions{margin-top:17px;gap:10px}.stage-actions .button{font-size:13px;padding:10px 15px}.question-panel{padding:20px}.question-dot{font-size:12px}.panel-heading h3{font-size:18px}.answer-label{font-size:20px}.answer-button{min-height:124px}.answer-action{font-size:12px}.decision .button{font-size:13px}.judge-hint{font-size:12px}.round-status{min-height:26px}.bottom-tools{margin-top:18px;align-items:flex-start}.bottom-tools p{font-size:11px;max-width:230px}.bottom-tools .text-button{font-size:12px;white-space:nowrap;padding:3px}.round-result h3{font-size:27px}.result-symbol{width:60px;height:60px;font-size:36px}.round-result>p{font-size:13px}.revealed-answer strong{font-size:24px}footer{gap:8px;font-size:11px}.credit-button{font-size:11px}.finish{padding:35px 0}.final-scores{gap:12px;margin:22px 0}.final-scores>div{padding:18px 12px}.final-scores>div>span:first-child{font-size:16px}.final-scores>div>strong{font-size:51px}dialog{padding:22px;font-size:14px}dialog h2{font-size:22px}}@media(max-width:360px){.app{padding:0 12px}.brand strong{font-size:17px}.brand>div>span{font-size:10px}.top-actions{max-width:150px}.setup h1{font-size:28px}.two-fields{grid-template-columns:1fr}.round-heading{align-items:flex-start}.round-heading label{max-width:132px}.question-panel{padding:16px}.question-dots{gap:4px}.question-dot{font-size:10px}.score-team-name{font-size:12px}.score-team .team-number{display:none}.round-heading h2{font-size:16px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
