/* ريموت المقدّم — جوال */
body.remote{min-height:100%;display:flex;justify-content:center}
.rm{width:100%;max-width:480px;min-height:100vh;min-height:100dvh;padding:20px 18px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;background:var(--bg);position:relative}
.rm-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.rm-r h1{margin:2px 0 0;font-size:32px;font-weight:900;line-height:1.2}
.rm-k{font-size:15px;font-weight:800;color:var(--gold2)}
.rm-st{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--muted);margin-top:4px}
.rm-st i{width:10px;height:10px;border-radius:50%;background:var(--coral);display:inline-block}.rm-st.ok i{background:var(--teal)}
.rm-wait{margin:auto;text-align:center;color:var(--muted);font-weight:700;display:flex;flex-direction:column;align-items:center;gap:6px}
.rm-team{background:var(--navy);border-radius:22px;border-top:6px solid var(--c);padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.rm-tn{display:flex;align-items:center;gap:10px}
.rm-tn .badge{width:34px;height:34px;font-size:18px;background:var(--c);color:var(--bg)}
.rm-tn input{flex:1;min-width:0;height:44px;background:var(--bg);border:2px solid var(--line);border-radius:14px;color:var(--cream);font:800 18px Cairo,sans-serif;padding:0 12px}
.rm-x{width:36px;height:36px;border-radius:50%;border:0;background:var(--chip);display:flex;align-items:center;justify-content:center}
.rm-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.chip{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:999px;background:var(--chip);font-weight:800;font-size:16px}
.chip button{background:none;border:0;padding:2px;display:flex;color:var(--muted)}
.chip.add{width:44px;height:44px;padding:0;border:2px dashed var(--c);background:none;color:var(--c);justify-content:center}
.chip-in{height:44px;min-width:140px;flex:1;background:var(--bg);border:2px solid var(--c);border-radius:999px;color:var(--cream);font:800 16px Cairo,sans-serif;padding:0 16px}
.rm-add{height:46px;border-radius:16px;border:2px solid var(--grey);background:none;font-weight:800;font-size:16px}
.rm-host{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--navy);border-radius:18px;padding:12px 14px;font-weight:800;font-size:15px;color:var(--muted)}
.rm-host select{flex:1;max-width:215px;height:44px;background:var(--bg);border:2px solid var(--gold);border-radius:14px;color:var(--cream);font:800 15px Cairo,sans-serif;padding:0 10px}
.rm-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rm-step{background:var(--navy);border-radius:18px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:var(--muted)}
.rm-step div{display:flex;align-items:center;justify-content:space-between;color:var(--cream)}
.rm-step b{font-size:22px;font-weight:900}
.rm-step button{width:40px;height:40px;border-radius:50%;border:0;background:var(--chip);display:flex;align-items:center;justify-content:center}
.rm-note{margin:0;font-size:13px;font-weight:700;color:var(--muted);text-align:center}.rm-note.warn{color:var(--gold2)}
.rm-go,.rm-gold{background:var(--gold);color:var(--bg);border:0;border-radius:18px;font-weight:900}
.rm-go{height:62px;font-size:24px;margin-top:auto}
.rm-turn{background:var(--navy);border-radius:18px;border-inline-start:6px solid var(--c);padding:12px 16px;display:flex;align-items:center;justify-content:space-between}
.rm-turn>div:first-child{display:flex;flex-direction:column;gap:2px}.rm-turn>div:first-child span{font-size:13px;font-weight:700;color:var(--muted)}.rm-turn b{font-size:20px;font-weight:900}
.rm-time{font-size:34px;font-weight:900;color:var(--gold2)}.rm-time.low{color:var(--coral)}
.rm-lead{font-size:15px;font-weight:800;color:var(--muted)}
.rm-opts,.rm-list{display:flex;flex-direction:column;gap:10px}
.rm-opt{height:60px;background:var(--navy);border:2px solid var(--line);border-radius:16px;display:flex;align-items:center;gap:12px;padding:0 14px;font-weight:800;font-size:20px;text-align:start}
.rm-opt .k{width:34px;height:34px;border-radius:50%;background:var(--line);display:flex;align-items:center;justify-content:center;font-weight:900}
.rm-opt.sel{border-color:var(--gold)}.rm-opt.sel .k{background:var(--gold);color:var(--bg)}
.rm-opt:disabled:not(.sel){opacity:.45}
.rm-opt:disabled.sel{opacity:1}
.rm-fine{font-size:12.5px;font-weight:700;color:var(--muted)}.rm-fine.c{text-align:center;font-size:13px}
.rm-box{background:var(--navy);border-radius:18px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.rm-bt{font-size:15px;font-weight:800}
.rm-coral{height:48px;border:0;border-radius:14px;background:var(--coral);color:var(--bg);font-weight:900;font-size:16px}
.rm-ghost,.rm-out{height:44px;border:2px solid var(--grey);border-radius:14px;background:none;font-weight:800;font-size:15px}
.rm-jl{display:flex;flex-direction:column;gap:6px}
.rm-jl span{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700;color:var(--sand);background:var(--bg);border-radius:10px;padding:6px 10px}
.rm-jl button{border:0;background:var(--chip);color:var(--cream);border-radius:8px;padding:4px 12px;font-weight:800;font-size:13px}
.rm-foot{display:flex;gap:10px;margin-top:auto;padding-top:6px}
.rm-foot button{flex:1;height:58px;border-radius:16px;font-size:18px}
.rm-foot .rm-out{height:58px;font-size:17px}
.rm-gold.wide{flex:1}
.rm-cat{height:64px;background:var(--navy);border:2px solid var(--line);border-radius:16px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-weight:900;font-size:20px}
.rm-cat small{font-size:13px;color:var(--muted);font-weight:700}.rm-cat:disabled{opacity:.35}
.rm-res{border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:4px;background:var(--navy);text-align:center}
.rm-res b{font-size:22px;font-weight:900}.rm-res span{font-size:15px;font-weight:700;color:var(--sand)}
.rm-res.correct{background:var(--gold);color:var(--bg)}.rm-res.correct span{color:var(--bg)}
.rm-res.wrong{background:var(--coral);color:var(--bg)}.rm-res.wrong span{color:var(--bg)}
.rm-sc{display:flex;align-items:center;gap:10px;background:var(--navy);border-radius:16px;border-inline-start:6px solid var(--c);padding:12px 14px;font-weight:800;font-size:18px}
.rm-sc span{flex:1}.rm-sc b{font-size:24px;font-weight:900}.rm-sc em{font-style:normal;font-size:14px;font-weight:900}.rm-sc em.up{color:var(--teal)}.rm-sc em.dn{color:var(--coral)}
.rm-win{text-align:center;color:var(--gold);display:flex;flex-direction:column;align-items:center;gap:2px}.rm-win small{font-size:15px;font-weight:800;color:var(--gold2)}.rm-win b{font-size:30px;font-weight:900;color:var(--cream)}
.rm-sheet{position:fixed;inset:0;background:rgba(5,9,17,.7);display:flex;align-items:flex-end;justify-content:center;z-index:50}
.rm-card{width:100%;max-width:480px;max-height:80vh;overflow:auto;background:var(--navy);border-radius:24px 24px 0 0;padding:18px 18px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}
.rm-grp{border-inline-start:6px solid var(--c);padding-inline-start:10px;display:flex;flex-direction:column;gap:6px}
.rm-gt{font-size:13px;font-weight:800;color:var(--muted)}
.rm-gl{display:flex;flex-wrap:wrap;gap:8px}
.rm-gl button{height:44px;border:0;border-radius:12px;background:var(--chip);font-weight:800;font-size:16px;padding:0 16px}
.rm-join{margin:auto 0;display:flex;flex-direction:column;gap:14px;text-align:center}
.rm-join h1{margin:0;font-size:34px;font-weight:900}.rm-join p{margin:0;color:var(--muted);font-weight:700}
.rm-join input{height:72px;border-radius:18px;border:2px solid var(--gold);background:var(--navy);color:var(--cream);text-align:center;font:900 40px Cairo,sans-serif;letter-spacing:12px;direction:ltr;text-transform:uppercase}
