/* Backstage Saudi Classic — black + dark orange, Arabic RTL / English LTR.
   Layout: one-column app shell with a fixed bottom tab bar; lists split into two columns on tablets.
   Only logical properties (inline-start/end) so both directions render correctly. */
:root{
  --bg:#0d0b0a; --surface:#171412; --surface2:#221d19; --line:#352c26; --fg:#f5efe9; --muted:#aa9e93;
  --accent:#c4500c; --accent-hi:#f0742a; --accent-ink:#fff8f2; --accent-soft:rgba(240,116,42,.13);
  --ok:#46b884; --ok-soft:rgba(70,184,132,.15); --warn:#e6aa2e; --warn-soft:rgba(230,170,46,.15);
  --bad:#ef5757; --bad-soft:rgba(239,87,87,.15); --bib-bg:#f5efe9; --bib-ink:#141110;
  --f-display:"Cairo","Segoe UI",Tahoma,sans-serif; --f-body:"IBM Plex Sans Arabic","Segoe UI",Tahoma,sans-serif;
  --f-num:"Barlow Condensed","Arial Narrow","Segoe UI",sans-serif; --r:14px; color-scheme:dark;
}
*{box-sizing:border-box}
html,body{background:var(--bg);color:var(--fg);margin:0}
body{font-family:var(--f-body);font-size:16px;line-height:1.55;-webkit-tap-highlight-color:transparent;padding-top:env(safe-area-inset-top,0px)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--accent-hi);outline-offset:2px}
.wrap{max-width:1100px;margin-inline:auto;padding-inline:max(16px,env(safe-area-inset-left,0px))}
h1,h2,h3{font-family:var(--f-display);line-height:1.25;margin:0;text-wrap:balance}
h1{font-size:24px;font-weight:900} h2{font-size:19px;font-weight:800} h3{font-size:17px;font-weight:800}
p{margin:0}
.muted{color:var(--muted)} .small{font-size:13.5px}
.eyebrow{font-size:12.5px;letter-spacing:.06em;color:var(--accent-hi);font-weight:700}
.num{font-family:var(--f-num);font-variant-numeric:tabular-nums;letter-spacing:.02em;direction:ltr;unicode-bidi:isolate}
.ltr{direction:ltr;unicode-bidi:isolate}

/* top bar */
.top{background:linear-gradient(180deg,#000,var(--bg));border-bottom:1px solid var(--line);position:sticky;top:env(safe-area-inset-top,0px);z-index:15}
.top-in{display:flex;align-items:center;gap:12px;padding-block:10px}
.logo-slot{width:44px;height:44px;border:1.5px dashed var(--accent-hi);border-radius:11px;display:grid;place-items:center;color:var(--accent-hi);font-size:10px;flex:none;overflow:hidden}
.logo-slot img{width:100%;height:100%;object-fit:contain}
.brand{flex:1;min-width:0}
.brand-name{font-family:var(--f-num);font-weight:700;font-size:clamp(14px,4.2vw,19px);letter-spacing:.05em;line-height:1.1;direction:ltr;text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-name b{color:var(--accent-hi)}
.brand-sub{color:var(--muted);font-size:12.5px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.iconbtn{min-height:44px;min-width:44px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-weight:800;font-size:14px}
.demo-bar{background:var(--warn-soft);border-bottom:1px dashed var(--warn);font-size:13px}
.demo-bar .wrap{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-block:8px}
.demo-bar b{color:var(--warn)}
.live{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:12.5px}
.live i{width:9px;height:9px;border-radius:50%;background:var(--ok);display:inline-block}
.live.stale i{background:var(--bad)}
.stale-bar{background:var(--bad);color:#fff;font-weight:800;text-align:center;padding:10px 16px}

main{padding-block:14px 120px;display:flex;flex-direction:column;gap:16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
.card.hot{border-color:var(--accent);background:linear-gradient(180deg,var(--accent-soft),var(--surface) 70%)}
.card.warnc{border-color:rgba(230,170,46,.5)}
.grid2{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:700px){.grid2{grid-template-columns:1fr 1fr}}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.row>*{min-width:0}
.between{justify-content:space-between}
.stack{display:flex;flex-direction:column;gap:10px}
.sec-title{display:flex;align-items:center;justify-content:space-between;gap:10px}

.btn{min-height:52px;padding:10px 18px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);font-weight:700;font-size:16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn.big{min-height:64px;font-size:18px;width:100%}
.btn.ok{background:var(--ok);border-color:var(--ok);color:#06130d}
.btn.ghost{background:transparent}
.btn.danger{border-color:var(--bad);color:var(--bad);background:transparent}
.btn.sm{min-height:42px;padding:6px 12px;font-size:14px}
.btn.full{width:100%}
.btn:disabled,.btn[aria-busy="true"]{opacity:.5;cursor:not-allowed}
.link{background:none;border:0;color:var(--accent-hi);text-decoration:underline;padding:6px;font-size:14px}
.back{background:none;border:0;color:var(--accent-hi);font-weight:700;font-size:16px;min-height:44px;padding:0}

.chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:3px 10px;font-size:13px;font-weight:600;background:var(--surface2);border:1px solid var(--line);white-space:nowrap}
.chip.ok{background:var(--ok-soft);border-color:transparent;color:var(--ok)}
.chip.warn{background:var(--warn-soft);border-color:transparent;color:var(--warn)}
.chip.bad{background:var(--bad-soft);border-color:transparent;color:var(--bad)}
.chip.acc{background:var(--accent-soft);border-color:transparent;color:var(--accent-hi)}
.chip.pulse::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;animation:pulse 1.4s infinite}
@keyframes pulse{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.chip.pulse::before{animation:none}}

.bib{font-family:var(--f-num);font-weight:700;font-variant-numeric:tabular-nums;background:var(--bib-bg);color:var(--bib-ink);border-radius:7px;padding:9px 12px 6px;min-width:66px;text-align:center;font-size:28px;line-height:1;position:relative;direction:ltr;flex:none}
.bib::before,.bib::after{content:"";position:absolute;top:4px;width:5px;height:5px;border-radius:50%;background:var(--bg)}
.bib::before{left:5px}.bib::after{right:5px}
.bib.sm{font-size:19px;min-width:46px;padding:6px 8px 4px}
.bib.none{background:transparent;border:1.5px dashed var(--muted);color:var(--muted);font-size:12px;font-family:var(--f-body);padding:8px}
.bib.none::before,.bib.none::after{display:none}

.stage-now{display:flex;gap:14px;align-items:center}
.stage-pos{font-family:var(--f-num);font-weight:700;font-size:52px;line-height:.9;color:var(--accent-hi);min-width:44px;text-align:center}
.bigname{font-family:var(--f-display);font-weight:900;font-size:22px;line-height:1.2}
.desc{font-size:14px;color:var(--muted)}

.drow{display:flex;align-items:center;gap:12px;width:100%;text-align:start;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;min-height:64px}
.drow .dpos{font-family:var(--f-num);font-weight:700;font-size:26px;color:var(--muted);min-width:28px;text-align:center}
.drow .dmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.drow .dmeta{font-size:12.5px;color:var(--muted)}
.drow.cur{border-color:var(--accent)} .drow.cur .dpos{color:var(--accent-hi)}
.miss{font-size:13px;font-weight:700;color:var(--bad);white-space:nowrap}

.bar{height:10px;border-radius:99px;background:var(--surface2);overflow:hidden}
.bar>i{display:block;height:100%;background:var(--accent-hi);border-radius:99px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px}
.kpi{background:var(--surface2);border-radius:10px;padding:8px 10px}
.kpi b{font-family:var(--f-num);font-size:24px;display:block;line-height:1.1;direction:ltr;text-align:start}
.kpi span{font-size:12px;color:var(--muted)}

.prow{display:flex;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line);width:100%;background:none;border-inline:0;border-bottom:0;text-align:start}
.prow:first-child{border-top:0}
.prow .pmain{flex:1;min-width:0}
.prow .pname{font-weight:700}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}

.stepper{display:flex;gap:4px;overflow-x:auto;padding-bottom:4px}
.stp{flex:1;min-width:76px;text-align:center;font-size:11.5px;color:var(--muted);padding-top:8px;border-top:4px solid var(--surface2)}
.stp.done{border-color:var(--ok);color:var(--fg)} .stp.on{border-color:var(--accent-hi);color:var(--accent-hi);font-weight:700}

.journey{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.journey li{display:flex;gap:12px;padding:8px 0;position:relative}
.journey li:not(:last-child)::after{content:"";position:absolute;inset-inline-start:13px;top:38px;bottom:-4px;width:2px;background:var(--line)}
.dot{width:28px;height:28px;border-radius:50%;border:2px solid var(--line);flex:none;display:grid;place-items:center;font-size:14px;font-weight:800;background:var(--bg);z-index:1}
.journey .done .dot{background:var(--ok);border-color:var(--ok);color:#06130d}
.journey .on .dot{border-color:var(--accent-hi);color:var(--accent-hi)}
.journey li>div{min-width:0;flex:1;display:flex;flex-direction:column}
.jd{font-size:13.5px;color:var(--muted)}

.nowbar{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.nb{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.nb.now{border-color:var(--accent);background:var(--accent-soft)}
.nb-l{font-size:13px;color:var(--muted);font-weight:700} .nb.now .nb-l{color:var(--accent-hi)}
.nb b{font-family:var(--f-display);font-weight:900;font-size:19px;line-height:1.25;overflow-wrap:anywhere}
.nb-src{font-size:13px;color:var(--muted);font-weight:600}
.pc-name{font-family:var(--f-display);font-weight:900;font-size:26px;line-height:1.15;overflow-wrap:anywhere}
.pc-where{font-size:16px;color:var(--muted);font-weight:600}
.next{border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--surface2);border:1px solid var(--line)}
.next .next-l{font-size:13px;font-weight:800;color:var(--muted)}
.next b{font-family:var(--f-display);font-size:23px;font-weight:900;line-height:1.3}
.next>span:not(.next-l){font-size:16px;color:var(--muted)}
.next.urgent{border:2px solid var(--accent-hi);background:linear-gradient(160deg,rgba(196,80,12,.35),var(--surface2) 70%)}
.next.urgent .next-l,.next.ask .next-l{color:var(--accent-hi)} .next.ask{border:2px solid var(--accent-hi)}
.next.go{border-color:var(--ok);background:var(--ok-soft)} .next.go .next-l{color:var(--ok)}
details.steps summary{cursor:pointer;font-weight:700;color:var(--muted);min-height:44px;display:flex;align-items:center}

.cksum{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.cksum .big{font-family:var(--f-num);font-weight:700;font-size:54px;line-height:1;direction:ltr}
.ckgrid{display:grid;grid-template-columns:1fr;gap:8px}
@media (min-width:700px){.ckgrid{grid-template-columns:1fr 1fr}}
.ckrow{display:flex;gap:8px;align-items:stretch}
.ckbtn{flex:1;min-width:0;display:flex;align-items:center;gap:12px;background:var(--surface);border:2px solid var(--line);border-radius:12px;padding:10px 12px;min-height:76px;text-align:start}
.ckname{flex:1;min-width:0;font-weight:700;font-size:16px}
.ckstate{display:block;font-weight:800;font-size:14px;color:var(--muted)}
.ckrow.on .ckbtn{border-color:var(--ok);background:var(--ok-soft)} .ckrow.on .ckstate{color:var(--ok)}
.ckcall{width:64px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);font-size:12px;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:none}
.ckcall svg{width:20px;height:20px}
.searchbar{display:flex;gap:8px} .searchbar input{flex:1;min-width:0}
input[type=text],input[type=tel],input[type=search],input[type=password],input[type=number],input:not([type]),select,textarea{background:var(--bg);border:1.5px solid var(--line);border-radius:12px;min-height:52px;padding:10px 14px;font-size:17px;width:100%}
textarea{min-height:90px;resize:vertical}
input.numbig{font-family:var(--f-num);font-size:26px;letter-spacing:.08em;direction:ltr;text-align:center}
label.fl,.fl{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14.5px}
.err{color:var(--bad);font-weight:600;font-size:14px;min-height:1em}
.seg{display:flex;gap:6px;flex-wrap:wrap}
.seg button{min-height:44px;padding:6px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface2);font-weight:700;font-size:14px}
.seg button.on{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.pick button{min-height:58px;border-radius:12px;border:2px solid var(--line);background:var(--surface);font-weight:700;text-align:center;padding:8px;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center}
.pick button small{font-weight:500;color:var(--muted);font-size:12px;line-height:1.35}
.pick button.on{border-color:var(--accent-hi);background:var(--accent-soft);color:var(--accent-hi)}
.pick button:disabled{opacity:.45}

.alert{display:flex;gap:12px;align-items:flex-start;border-radius:12px;padding:12px;background:var(--surface2);border:1px solid var(--line)}
.alert.bad{border-color:rgba(239,87,87,.45);background:var(--bad-soft)}
.alert.warn{border-color:rgba(230,170,46,.45);background:var(--warn-soft)}
.alert.acc{border-color:var(--accent);background:var(--accent-soft)}
.alert>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.callcard{border:2px solid var(--accent-hi);background:linear-gradient(160deg,rgba(196,80,12,.35),var(--surface) 65%);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}

.chat{display:flex;flex-direction:column;gap:10px}
.msg{max-width:88%;padding:10px 14px;border-radius:16px;display:flex;flex-direction:column;gap:6px}
.msg.me{align-self:flex-start;background:var(--accent);color:var(--accent-ink)}
.msg.bot{align-self:flex-end;background:var(--surface2);border:1px solid var(--line)}
.lbl{font-size:11.5px;font-weight:800;padding:1px 8px;border-radius:99px;align-self:flex-start}
.lbl.ok{background:var(--ok-soft);color:var(--ok)} .lbl.est{background:var(--warn-soft);color:var(--warn)} .lbl.kb{background:var(--accent-soft);color:var(--accent-hi)} .lbl.warn{background:var(--bad-soft);color:var(--bad)}
.src{font-size:12px;color:var(--muted)}
.chatbar{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom,0px));background:var(--bg);padding-block:10px;display:flex;gap:8px}
.chatbar input{flex:1;min-width:0}
.sugg{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}
.sugg button{white-space:nowrap;min-height:40px;border-radius:999px;border:1px solid var(--line);background:var(--surface);padding:6px 14px;font-size:14px}

.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px;min-height:96px;text-align:start;display:flex;flex-direction:column;gap:6px;justify-content:space-between}
.tile b{font-family:var(--f-display);font-size:16px} .tile span{font-size:12.5px;color:var(--muted)}
.badge{background:var(--bad);color:#fff;border-radius:99px;font-size:11px;font-weight:800;min-width:18px;height:18px;padding:0 5px;display:inline-grid;place-items:center}

.nav{position:fixed;bottom:0;inset-inline:0;background:rgba(13,11,10,.96);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px);z-index:20;backdrop-filter:blur(8px)}
.nav-in{display:flex;max-width:760px;margin-inline:auto;padding-inline:6px}
.nav button{flex:1;min-height:66px;background:none;border:0;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12.5px;font-weight:700;position:relative}
.nav button svg{width:24px;height:24px} .nav button.on{color:var(--accent-hi)}
.nav .badge{position:absolute;top:8px;inset-inline-start:calc(50% + 6px)}

#modal{position:fixed;inset:0;background:rgba(0,0,0,.66);z-index:50;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:var(--surface);border:1px solid var(--line);border-radius:20px 20px 0 0;width:100%;max-width:640px;max-height:90vh;overflow:auto;padding:20px max(16px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:14px}
@media (min-width:700px){#modal{align-items:center}.sheet{border-radius:20px}}
#toast{position:fixed;bottom:calc(84px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%) translateY(20px);background:var(--fg);color:var(--bg);padding:12px 18px;border-radius:12px;font-weight:700;opacity:0;pointer-events:none;transition:.2s;z-index:60;max-width:calc(100% - 32px);text-align:center}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.logrow{padding:10px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:2px}
.logrow:first-child{border-top:0}
.reo{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.reo.moved{border-color:var(--accent-hi)}
.reo .dpos{font-family:var(--f-num);font-weight:700;font-size:24px;min-width:30px;text-align:center}
.reo .rb{width:52px;height:52px;border-radius:10px;border:1px solid var(--line);background:var(--surface2);font-size:22px;font-weight:800;flex:none}
.reo .rb:disabled{opacity:.25}
hr{border:0;border-top:1px solid var(--line);margin:0;width:100%}
.code{font-family:var(--f-num);font-size:44px;letter-spacing:.2em;direction:ltr;text-align:center;background:var(--bg);border:1px dashed var(--accent-hi);border-radius:12px;padding:10px}

/* auth */
.auth{max-width:560px;margin-inline:auto;width:100%}
.hero{padding-block:8px 4px;display:flex;flex-direction:column;gap:6px}
.hero h1{font-size:28px}
.catblock{display:flex;flex-direction:column;gap:8px;padding-top:10px;border-top:1px solid var(--line)}

/* judges' big screen */
.jscreen{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:900px){.jscreen{grid-template-columns:1.6fr 1fr}}
.jnow{font-family:var(--f-display);font-weight:900;font-size:clamp(30px,5vw,56px);line-height:1.1}
.jlabel{font-size:clamp(14px,1.6vw,18px);color:var(--accent-hi);font-weight:800;letter-spacing:.04em}
.jline{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.jathlete{display:flex;gap:12px;align-items:center;background:var(--surface2);border-radius:12px;padding:10px}
.jathlete .bib{font-size:34px;min-width:84px}
.jathlete b{font-size:18px}
.jathlete.out{opacity:.45}
.jclock{font-family:var(--f-num);font-size:28px;direction:ltr}

/* survey */
.sv-scale button{min-width:52px;min-height:52px;font-size:18px;font-family:var(--f-num)}
.svbar{display:flex;align-items:center;gap:10px}
.svlab{min-width:120px;font-size:14px}
.svnum{min-width:28px;text-align:end;font-weight:700}

/* official logo: original proportions and colours, gold on black, never stretched */
.brand-logo{height:44px;width:auto;max-width:42vw;object-fit:contain;flex:none}
/* install-the-app first screen */
.install{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:18px 4px 6px}
.inst-ico{font-size:58px;line-height:1;width:104px;height:104px;display:grid;place-items:center;border-radius:28px;background:var(--accent-soft);border:2px solid var(--accent-hi)}
.inst-ico.ok{color:var(--ok);border-color:var(--ok);background:var(--ok-soft);font-weight:900}
.inst-title{font-size:clamp(34px,9vw,46px);line-height:1.15;font-weight:900;color:var(--accent-hi);margin:4px 0 0}
.inst-sub{font-size:18px;line-height:1.6;max-width:30em;margin:0}
.btn.inst-btn{min-height:78px;font-size:26px;font-weight:900;border-radius:18px;box-shadow:0 8px 28px rgba(240,116,42,.35)}
.inst-why{list-style:none;padding:0;margin:4px 0 0;display:flex;flex-direction:column;gap:8px;text-align:start;width:100%}
.inst-why li{padding:10px 14px;border-radius:12px;background:var(--surface2);font-size:15px}.inst-why li::before{content:'✓';color:var(--ok);font-weight:900;margin-inline-end:8px}
.inst-steps{margin:8px 0 14px;padding-inline-start:22px;display:flex;flex-direction:column;gap:12px;font-size:17px;line-height:1.6}
.inst-bar{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;margin:8px 0;border:2px solid var(--accent-hi);border-radius:14px;background:var(--accent-soft);color:inherit;font:inherit;font-size:18px;cursor:pointer}
.inst-bar-ico{font-size:24px}
/* championship days */
.dayhead{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:10px 12px;margin-top:6px;border-radius:10px;background:var(--surface2);border-inline-start:4px solid var(--line)}
.dayhead.on{border-inline-start-color:var(--ok)}
.pc-day{display:inline-block;margin-top:4px;padding:2px 10px;border-radius:8px;background:var(--accent-soft);color:var(--accent-hi);font-weight:800;font-size:14px}
.pick button .dchip{display:block;font-style:normal;font-weight:800;color:var(--accent-hi);font-size:12px;margin-top:2px}
.next.later{border-color:var(--line)} .next.later .next-l{color:var(--muted)}
.daymv{margin-top:6px}
/* championship program */
.dayhead.unsch{border-inline-start-color:var(--warn)}
.daybox{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:var(--surface2)}.daybox b{font-size:17px}.nodate{color:var(--warn);font-style:normal}
.srow{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line)}.srow:first-child{border-top:0}.smain{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.stags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.sbtns{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.sbtns .rb{min-width:48px;min-height:44px}.spos{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}.spos select{min-height:44px;min-width:64px}
.prog-row{display:flex;align-items:center;gap:10px;padding:6px 0;border-top:1px solid var(--line)}.prog-row b{flex:1;min-width:0}.prog-row.cur b{color:var(--ok)}
.prog-final{margin:0;padding-inline-start:26px;display:flex;flex-direction:column;gap:6px}
.diffrow{display:flex;flex-wrap:wrap;gap:4px 14px;padding:8px 10px;border-radius:10px;background:var(--surface2)}.diffrow b.ltr{flex-basis:100%}
.dsp-day{font-size:.55em;opacity:.85;margin-top:4px}
.hero-logo{display:block;width:min(100%,460px);height:auto;margin:8px auto 0;object-fit:contain}

@media (max-width:480px){.brand-sub .chip{display:none}.brand-sub .chip.daychip{display:inline-flex}}
.brand-sub{overflow:hidden}

/* ---------- role ribbons: each read-only / single-purpose screen looks different at a glance ---------- */
.ribbon{font-weight:800;font-size:14px;letter-spacing:.03em;padding:7px 0;text-align:center}
.ribbon.r-judges{background:#123f44;color:#9fe7ea;border-bottom:2px solid #2bb3b9}
.ribbon.r-observer{background:#262046;color:#cbc3ff;border-bottom:2px solid #7d6bff}
.ribbon.r-stage{background:#3a2a08;color:#ffd98a;border-bottom:2px solid #e0a526}
body.role-judges .top{border-bottom-color:#2bb3b9} body.role-observer .top{border-bottom-color:#7d6bff} body.role-stage .top{border-bottom-color:#e0a526}

/* ---------- stage announcer ---------- */
.pres-screen,.pres-next{border:1px solid var(--line);border-radius:var(--r);padding:12px;display:flex;flex-direction:column;gap:8px;background:var(--surface2)}
.pres-next{border-color:var(--ok);background:var(--ok-soft)}
.pres-big{font-family:var(--f-display);font-weight:900;font-size:clamp(22px,3.4vw,32px);line-height:1.2;overflow-wrap:anywhere}
.pres-row{align-items:center;flex-wrap:wrap}
.pres-row.cur{outline:2px solid var(--accent-hi);border-radius:10px;background:var(--accent-soft)}
.pres-btns{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.pres-adm{display:inline-flex;flex-wrap:wrap;gap:4px}
.btn.ok.big{min-width:180px}

/* ---------- audience screens (TV / big display): full bleed, no controls, both languages ---------- */
body.is-display{overflow:hidden;cursor:none;padding:0}
.dsp{position:fixed;inset:0;display:flex;flex-direction:column;background:radial-gradient(120% 90% at 50% 0%,#2a1306 0%,#0b0807 55%,#000 100%);color:#fff;user-select:none}
.dsp.is-stale>main{opacity:.35;filter:grayscale(.6)}
.bi{display:flex;flex-direction:column;align-items:center;gap:.1em;text-align:center}
.bi-ar{font-family:var(--f-display);font-weight:900} .bi-en{font-family:var(--f-num);font-weight:600;letter-spacing:.06em;text-transform:uppercase;opacity:.72;font-size:.62em}
.bi.xl{font-size:clamp(28px,5.4vw,96px)} .bi.sub{font-size:clamp(18px,2.6vw,46px);color:#e9dccf}
.dsp-top{display:flex;align-items:center;gap:2vw;padding:1.6vh 3vw;border-bottom:2px solid rgba(240,116,42,.45);background:linear-gradient(180deg,#000,rgba(0,0,0,.2))}
.dsp-logo{height:clamp(48px,9vh,120px);width:auto;flex:none;-webkit-user-drag:none}
.dsp-title{font-size:clamp(20px,2.6vw,44px);flex:1} .dsp-title .bi{align-items:flex-start}
.dsp-prog{font-size:clamp(16px,1.8vw,30px);background:var(--warn);color:#1a1200;border-radius:12px;padding:.3em .8em}
.dsp-class{display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.05}
.dsp-cat{font-family:var(--f-num);font-weight:600;letter-spacing:.08em;color:var(--accent-hi);font-size:clamp(14px,1.5vw,28px)}
.dsp-class b{font-family:var(--f-num);font-weight:800;font-size:clamp(22px,2.6vw,48px);letter-spacing:.02em}
.dsp-class.big .dsp-cat{font-size:clamp(20px,2.4vw,46px)} .dsp-class.big b{font-size:clamp(40px,6.6vw,128px)}
.dsp-lbl{font-size:clamp(18px,1.9vw,34px);color:var(--accent-hi);margin-bottom:1.2vh}
.dsp-flow{flex:1;display:grid;grid-template-rows:auto 1fr;gap:2.4vh;padding:2.4vh 3vw 3vh;min-height:0}
.dsp-stage{border:3px solid var(--line);border-radius:24px;padding:2.4vh 2vw;text-align:center;background:rgba(255,255,255,.03)}
.dsp-stage.on{border-color:var(--accent-hi);background:linear-gradient(180deg,rgba(240,116,42,.22),rgba(240,116,42,.04));box-shadow:0 0 60px rgba(240,116,42,.25)}
.dsp-none{font-size:clamp(22px,3vw,52px);opacity:.6}
.dsp-lanes{display:grid;grid-template-columns:repeat(5,1fr);gap:1.4vw;min-height:0}
.dsp-lane{border:2px solid var(--line);border-radius:20px;padding:2vh 1vw;display:flex;flex-direction:column;align-items:center;background:rgba(255,255,255,.025);min-height:0;overflow:hidden}
.dsp-lane.l1{border-color:#b9781e} .dsp-lane.l4{border-color:var(--ok)}
.dsp-items{display:flex;flex-direction:column;gap:2vh;align-items:center;width:100%}
.dsp-items .dsp-class{padding-bottom:1.4vh;border-bottom:1px solid rgba(255,255,255,.08);width:100%}
.dsp-dash{font-size:clamp(28px,3vw,56px);opacity:.25}
.dsp-empty,.dsp-wait{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3vh;padding:4vh 4vw}
.dsp-wait-logo{max-height:34vh;max-width:70vw;width:auto}
.dsp-pres{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2.4vh;padding:3vh 4vw}
.dsp-pres.intro{gap:4vh}
.dsp-athlete{display:flex;flex-direction:column;align-items:center;gap:1vh;text-align:center}
.dsp-athlete.fresh{animation:dspIn .55s cubic-bezier(.2,.8,.2,1)}
@keyframes dspIn{from{opacity:0;transform:translateY(4vh) scale(.96)}to{opacity:1;transform:none}}
.dsp-num{font-family:var(--f-num);font-weight:800;font-variant-numeric:tabular-nums;font-size:clamp(120px,30vh,420px);line-height:.9;color:var(--bib-ink);background:var(--bib-bg);border-radius:3vh;padding:3vh 4vw 1.6vh;min-width:30vw;box-shadow:0 0 80px rgba(240,116,42,.35)}
.dsp-name{font-family:var(--f-display);font-weight:900;font-size:clamp(40px,7.5vw,140px);line-height:1.15;max-width:92vw;overflow-wrap:anywhere}
.dsp-pos{font-size:clamp(18px,2.2vw,38px);opacity:.8}
.dsp-hold{padding:6vh 0}
.dsp-lost{position:fixed;inset-inline:0;bottom:0;background:var(--bad);color:#fff;padding:1.6vh 2vw;font-size:clamp(18px,2vw,34px);z-index:5}
.dsp-lost .bi{flex-direction:row;justify-content:center;gap:1.4vw} .dsp-lost .bi-en{font-size:.8em;opacity:.9}
.dsp-back{position:fixed;inset-inline-end:12px;bottom:12px;z-index:6;cursor:pointer;background:rgba(0,0,0,.7);color:#fff;border:1px solid var(--accent-hi);border-radius:999px;padding:10px 16px;font-weight:800;font-size:15px}
.dsp-logo{-webkit-touch-callout:none;-webkit-user-select:none;touch-action:manipulation}
.dsp-choose{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:24px;text-align:center}
.dsp-choose-row{display:flex;flex-wrap:wrap;gap:16px;justify-content:center}
body.is-display .dsp-choose,body.is-display #modal{cursor:auto}
@media (max-aspect-ratio:1/1){.dsp-lanes{grid-template-columns:1fr 1fr}.dsp-lane:last-child{grid-column:span 2}}
.dsp-pres>.dsp-class .dsp-cat{font-size:clamp(18px,2vw,38px)} .dsp-pres>.dsp-class:not(.big) b{font-size:clamp(30px,3.8vw,72px)}
.tan2{gap:6px;flex:0 0 auto;width:118px}.tan2 .btn{min-height:42px;font-size:13px;padding:6px 8px;white-space:normal;line-height:1.25}

.qrow,.kbrow{padding-top:12px;border-top:1px solid var(--line)}.ai-list{margin:6px 0 0;padding-inline-start:20px;display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.55}
.ctable{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;margin:8px 0}.ctable div{display:flex;justify-content:space-between;gap:8px;padding:6px 10px;border-radius:8px;background:var(--surface2);font-size:13px}
.champn{font-weight:800;color:var(--fg)}

.improw>div{display:flex;flex-direction:column;gap:4px;width:100%}.impname{font-weight:800;font-size:17px}.implike{padding:6px 8px;border-radius:8px;background:var(--surface2)}.imptick{margin-top:4px}.impbar{margin-top:10px}
.likeline{display:block}

/* ---------- audience screen 3: backstage live (read from a distance: big numbers, few words, motion only on real change) ---------- */
.connecting{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;text-align:center;color:var(--fg)}
.connecting img{max-width:min(320px,60vw);height:auto;opacity:.9}
.connecting .bi{font-size:clamp(22px,3vw,48px)}
.connecting::after{content:"";width:46px;height:46px;border-radius:50%;border:4px solid var(--line);border-top-color:var(--accent-hi);animation:bkSpin 1.1s linear infinite}
@keyframes bkSpin{to{transform:rotate(360deg)}}
.bk{flex:1;display:grid;grid-template-rows:minmax(0,1.3fr) minmax(0,1fr);gap:1.8vh;padding:1.8vh 2.2vw 1vh;min-height:0}
.bk .bi{align-items:flex-start;text-align:start}
.bk .bi.lg{font-size:clamp(22px,2.8vw,54px)} .bk .bi.sm{font-size:clamp(14px,1.4vw,26px);color:#d9cbbd}
.bk-hero{display:grid;grid-template-columns:1.12fr 1fr;gap:1.4vw;min-height:0}
.bk-low{display:grid;grid-template-columns:1.55fr 1fr;gap:1.4vw;min-height:0}
.bk-card,.bk-panel{border:2px solid var(--line);border-radius:2.2vh;background:rgba(255,255,255,.03);padding:1.8vh 1.4vw;display:flex;flex-direction:column;gap:1.2vh;min-height:0;overflow:hidden;position:relative}
.bk-card.on{border-color:var(--accent-hi);background:linear-gradient(160deg,rgba(240,116,42,.24),rgba(240,116,42,.04) 60%);animation:bkBreath 6s ease-in-out infinite}
@keyframes bkBreath{0%,100%{box-shadow:0 0 24px rgba(240,116,42,.18)}50%{box-shadow:0 0 70px rgba(240,116,42,.42)}}
.bk-eyebrow{display:flex;align-items:baseline;justify-content:space-between;gap:1vw;font-size:clamp(15px,1.5vw,28px);color:var(--accent-hi)}
.bk-note{font-size:.7em;color:var(--muted)}
.bk-cls{display:flex;flex-direction:column;line-height:1.05;min-width:0}
.bk-cls span{font-family:var(--f-num);font-weight:600;letter-spacing:.08em;color:var(--accent-hi);font-size:clamp(12px,1.1vw,22px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-cls b{font-family:var(--f-num);font-weight:800;font-size:clamp(18px,1.9vw,36px);letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-cls.big span{font-size:clamp(15px,1.5vw,30px)} .bk-cls.big b{font-size:clamp(30px,3.6vw,72px)}
.bk-cls.sm span{font-size:clamp(10px,.85vw,16px)} .bk-cls.sm b{font-size:clamp(14px,1.3vw,25px)}
[dir=rtl] .bk-cls{text-align:right}
.bk-chips{display:flex;gap:.8vw;flex-wrap:wrap}
.bk-chip{border-radius:999px;padding:.35em .9em;background:var(--surface2);border:1px solid var(--line);font-size:clamp(12px,1.15vw,22px)}
.bk .bk-chip .bi{flex-direction:row;align-items:baseline;gap:.5em} .bk-chip.ok{background:var(--ok);border-color:var(--ok);color:#06140d}
.bk-chip.s-stage{background:var(--accent);border-color:var(--accent-hi)} .bk-chip.s-queue{border-color:var(--ok)} .bk-chip.s-warmup{border-color:var(--warn)}
/* stage track: six steps, filled only up to the stage the manager recorded */
.bk-track{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,1fr);gap:.35vw;align-items:end}
.bk-track li{height:1vh;min-height:6px;border-radius:99px;background:rgba(255,255,255,.1);position:relative;overflow:hidden}
.bk-track li.past{background:linear-gradient(90deg,var(--ok),#5fd09c)}
.bk-track li.now{background:var(--accent-hi);box-shadow:0 0 14px rgba(240,116,42,.7)}
.bk-track li.now.arrive{animation:bkFill .9s cubic-bezier(.2,.8,.2,1)}
@keyframes bkFill{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0 0 0 0)}}
.bk-track.lab li{height:auto;min-height:0;background:none;box-shadow:none;overflow:visible;padding-bottom:calc(1vh + 8px);font-size:clamp(10px,.95vw,18px);color:var(--muted)}
.bk-track.lab li::after{content:"";position:absolute;inset-inline:0;bottom:0;height:1vh;min-height:6px;border-radius:99px;background:rgba(255,255,255,.1)}
.bk-track.lab li.past{color:#bfe9d4;background:none} .bk-track.lab li.past::after{background:linear-gradient(90deg,var(--ok),#5fd09c)}
.bk-track.lab li.now{color:#fff;font-weight:700;background:none;box-shadow:none} .bk-track.lab li.now::after{background:var(--accent-hi);box-shadow:0 0 14px rgba(240,116,42,.7)}
.bk-track.lab li.now.arrive{animation:none} .bk-track.lab li.now.arrive::after{animation:bkFill .9s cubic-bezier(.2,.8,.2,1)}
.bk-track.lab .bi-en{font-size:.7em}
/* athlete counts: done / correct total */
.bk-ms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9vw;margin-top:auto}
.bk-m{background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.08);border-radius:1.4vh;padding:1.1vh .8vw;display:flex;flex-direction:column;gap:.6vh;min-width:0}
.bk-ml{font-size:clamp(11px,1vw,19px);color:#e2d4c6;min-height:2.4em}
.bk-mv{display:flex;align-items:baseline;gap:.25em;font-family:var(--f-num);font-variant-numeric:tabular-nums;line-height:1}
.bk-mv b{font-weight:800;font-size:clamp(28px,3.4vw,66px)} .bk-mv span{font-size:clamp(16px,1.6vw,30px);color:var(--muted)}
.bk-mv.off{font-family:var(--f-body);color:var(--muted);font-size:clamp(14px,1.4vw,26px);min-height:1.6em;align-items:center}
.bk-m.off{opacity:.55} .bk-m.full .bk-mv b{color:#6fe0a8}
.bk-bar{height:.9vh;min-height:5px;border-radius:99px;background:rgba(255,255,255,.1);overflow:hidden;display:flex}
.bk-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),var(--accent-hi));transition:width 1s cubic-bezier(.2,.8,.2,1)}
.bk-m.full .bk-bar i{background:linear-gradient(90deg,var(--ok),#6fe0a8)}
.bk-n.bump{animation:bkBump 1.2s ease-out}
@keyframes bkBump{0%{color:var(--accent-hi);text-shadow:0 0 22px rgba(240,116,42,.9)}100%{text-shadow:none}}
.bk-none{flex:1;display:flex;flex-direction:column;justify-content:center;gap:1vh;color:#e9dccf}
.bk-ph{display:flex;align-items:baseline;justify-content:space-between;gap:1vw;font-size:clamp(15px,1.5vw,28px);color:var(--accent-hi)}
.bk-done{font-size:.75em;color:var(--muted)}
.bk-head,.bk-row{display:grid;grid-template-columns:3.2vw minmax(0,1.25fr) minmax(0,2.2fr) minmax(0,1fr);gap:1vw;align-items:center}
.bk-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7vh;min-height:0;overflow:hidden}
.bk-row{padding:.75vh .6vw;border-radius:1.2vh;background:rgba(255,255,255,.025);border:1px solid transparent}
.bk-row.cur{border-color:var(--accent-hi);background:rgba(240,116,42,.12)}
.bk-row.moved,.bk-card.moved{animation:bkMoved 1.6s ease-out}
.bk-card.on.moved{animation:bkMoved 1.6s ease-out,bkBreath 6s ease-in-out 1.6s infinite}
@keyframes bkMoved{0%{background-color:rgba(240,116,42,.45)}100%{}}
.bk-pos{font-family:var(--f-num);font-weight:800;font-size:clamp(16px,1.6vw,30px);text-align:center;color:var(--muted)}
.bk-rc{display:flex;flex-direction:column;align-items:flex-end;font-family:var(--f-num);font-variant-numeric:tabular-nums;font-size:clamp(14px,1.3vw,24px);color:var(--muted);text-align:end}
.bk-rc b{font-size:clamp(20px,2vw,38px);color:#fff} .bk .bk-rc .bi{align-items:flex-end;font-size:.75em}
.bk-more{font-size:clamp(12px,1.1vw,20px);color:var(--muted);padding-inline-start:4vw}
.bk-evs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.8vh;min-height:0;overflow:hidden}
.bk-ev{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.9vw;align-items:start;padding:.8vh .7vw;border-radius:1.2vh;background:rgba(255,255,255,.025);border-inline-start:4px solid var(--line)}
.bk-ev time{font-family:var(--f-num);font-weight:700;font-size:clamp(14px,1.3vw,24px);color:var(--muted);padding-top:.15em}
.bk-evb{display:flex;flex-direction:column;gap:.3vh;min-width:0}
.bk-evt{display:flex;gap:.6vw;align-items:flex-start;font-size:clamp(12px,1.1vw,21px)} .bk-evt .bi-ar{font-weight:700}
.bk-ev.k-call{border-color:var(--accent-hi)} .bk-ev.k-ready{border-color:var(--ok)} .bk-ev.k-tan{border-color:var(--warn)} .bk-ev.to-stage{border-color:#fff}
.bk-fix{background:var(--warn);color:#1a1200;border-radius:6px;padding:0 .4em;font-size:.85em;flex:none}
.bk-ev.fresh{animation:bkIn .8s cubic-bezier(.2,.8,.2,1)}
@keyframes bkIn{from{opacity:0;transform:translateY(-2.4vh);background:rgba(240,116,42,.35)}to{opacity:1;transform:none}}
.bk-card.swap{animation:bkSwap .7s cubic-bezier(.2,.8,.2,1)} .bk-card.on.swap{animation:bkSwap .7s cubic-bezier(.2,.8,.2,1),bkBreath 6s ease-in-out .7s infinite}
@keyframes bkSwap{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
.bk-foot{display:flex;align-items:center;gap:.8vw;padding:.6vh 2.2vw 1.2vh;color:var(--muted);font-size:clamp(11px,1vw,18px)}
.bk-foot .bi{flex-direction:row;gap:.8em;align-items:baseline}
.bk-dot{width:.9vw;height:.9vw;min-width:8px;min-height:8px;border-radius:50%;background:var(--ok);animation:bkPulse 2.4s ease-in-out infinite}
@keyframes bkPulse{0%,100%{opacity:1}50%{opacity:.35}}
.dsp.is-stale .bk-dot{background:var(--bad);animation:none}
@media (max-aspect-ratio:1/1){.dsp.backstage{overflow:auto}.bk{grid-template-rows:auto auto}.bk-hero,.bk-low{grid-template-columns:1fr}.bk-ms{grid-template-columns:repeat(2,1fr)}.bk-head,.bk-row{grid-template-columns:8vw minmax(0,1.2fr) minmax(0,1.6fr) minmax(0,1fr)}}
@media (prefers-reduced-motion:reduce){.bk *{animation:none!important;transition:none!important}}

.dsp.backstage .dsp-top{padding:.9vh 2.2vw} .dsp.backstage .dsp-logo{height:clamp(40px,7vh,96px)} .dsp.backstage .dsp-title{font-size:clamp(18px,2.1vw,38px)}
.bk-eyebrow .bi,.bk-ph .bi,.bk-foot .bi{flex-direction:row;align-items:baseline;gap:.7em}
.bk-title{display:flex;align-items:flex-end;justify-content:space-between;gap:1vw;min-width:0}
.bk-title .bk-chips{justify-content:flex-end;flex:none}
.bk-rc{flex-direction:row;align-items:center;justify-content:flex-end;gap:.7vw}
.bk .bk-rc .bi{font-size:.72em;align-items:flex-start}
.bk-card{gap:1vh}
.bk-cls.row{flex-direction:row;align-items:baseline;gap:.6vw} .bk-cls.row span{flex:none;max-width:45%} .bk-cls.row b{font-size:clamp(16px,1.6vw,32px)}
.bk-flow{gap:.8vh} .bk-rows{flex:1 1 0} .bk-row{padding:.6vh .6vw}
.bk-rows>[hidden],.bk-evs>[hidden],.bk-more[hidden]{display:none}
.bk-evs{flex:1 1 0}
.bk-m{padding:.9vh .7vw;gap:.4vh} .bk-ml{min-height:0} .bk-mv.off{min-height:0} .bk .bk-mv.off .bi{font-size:.8em}
.dsp.backstage .dsp-title{display:flex;align-items:baseline;gap:1.4vw;flex-wrap:wrap} .dsp.backstage .dsp-title .bi,.dsp.backstage .dsp-day .bi{flex-direction:row;align-items:baseline;gap:.7em}
.dsp.backstage .dsp-day{margin-top:0;font-size:.6em}
.bk .bk-mv.off .bi{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:.2em .5em}
.bk-ms{gap:.7vw}
.bk .bk-rc .bi,.bk .bk-more .bi{flex-direction:row;align-items:baseline;gap:.45em} .bk-rc b{font-size:clamp(18px,1.7vw,32px)} .bk-row{padding:.45vh .6vw}
.bk-head .bk-track.lab li{padding-bottom:4px} .bk-head .bk-track.lab li::after{display:none}
.bk{grid-template-rows:minmax(0,1.12fr) minmax(0,1fr)} .bk-low{grid-template-columns:1.85fr 1fr}
.bk-head,.bk-row{grid-template-columns:2.6vw minmax(0,1.9fr) minmax(0,1.8fr) auto}
.bk-cls.row{flex-direction:column;align-items:flex-start;gap:0;line-height:1.05} .bk-cls.row span{max-width:100%;font-size:clamp(10px,.8vw,15px)} .bk-cls.row b{font-size:clamp(16px,1.5vw,30px)}
.bk-mv.off{font-size:clamp(12px,1.1vw,21px)}
.bk-cls.sm{flex-direction:row;align-items:baseline;gap:.5vw} .bk-cls.sm span{flex:none;max-width:55%}
.bk-ev{padding:.6vh .7vw} .bk-evs{gap:.6vh} .bk .bk-evt .bi-en{font-size:.68em}
.bk-title{flex-wrap:wrap;align-items:flex-end} .bk-title .bk-cls{flex:1 0 auto;max-width:100%;min-width:45%}
.bk-title .bk-chips{flex:0 1 auto;flex-wrap:wrap;gap:.5vw}
.bk .bk-title .bk-chip .bi{flex-direction:column;align-items:center;gap:0;line-height:1.15} .bk-title .bk-chip{padding:.3em .9em;border-radius:1.2vh}
.connecting .muted.small{font-size:clamp(13px,1.3vw,24px)}

/* screen 3: today's totals in the header, and fixed arrived / tan columns per class */
.bk-tots{display:flex;align-items:stretch;gap:1vw;margin-inline-start:auto}
.bk-tt{background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:1.4vh;padding:.7vh 1vw;min-width:12vw;display:flex;flex-direction:column;gap:.3vh}
.bk-tl{font-size:clamp(11px,.95vw,18px);color:#e2d4c6} .dsp.backstage .bk-tl .bi{flex-direction:row;align-items:baseline;gap:.6em}
.bk-tv{display:flex;align-items:baseline;gap:.2em;font-family:var(--f-num);font-variant-numeric:tabular-nums;line-height:1}
.bk-tv b{font-weight:800;font-size:clamp(26px,3vw,58px)} .bk-tv span{font-size:clamp(15px,1.4vw,28px);color:var(--muted)}
.bk-tt.full .bk-tv b{color:#6fe0a8} .bk-tt.full .bk-bar i{background:linear-gradient(90deg,var(--ok),#6fe0a8)}
.bk-tnote{align-self:flex-end;font-size:clamp(10px,.85vw,16px);color:var(--muted);max-width:11vw} .dsp.backstage .bk-tnote .bi{align-items:flex-start}
.bk-head,.bk-row{grid-template-columns:2.4vw minmax(0,1.6fr) minmax(0,1.5fr) 4.6vw 4.6vw minmax(0,1.1fr)}
.bk-ch{font-size:clamp(9px,.8vw,15px);color:var(--muted);text-align:center} .bk .bk-ch .bi{align-items:center;text-align:center}
.bk-c{font-family:var(--f-num);font-variant-numeric:tabular-nums;text-align:center;color:var(--muted);font-size:clamp(13px,1.1vw,21px)}
.bk-c b{color:#fff;font-size:clamp(18px,1.6vw,30px)} .bk-c.full b{color:#6fe0a8}
.bk-head,.bk-row{grid-template-columns:2.4vw minmax(0,1.45fr) minmax(0,1.25fr) 4.4vw 4.4vw minmax(0,1.35fr)}
.bk-head .bk-track .bi-en{display:none} .bk-head .bk-track.lab li{font-size:clamp(9px,.85vw,16px);text-align:center}
.bk .bk-rc .bi{flex-direction:column;gap:0;line-height:1.1} .bk-rc{gap:.5vw}
.bk-head{align-items:end} .bk-head .bk-ch:nth-child(3){text-align:start} .bk .bk-head .bk-ch:nth-child(3) .bi{align-items:flex-start}

/* ---------- audience screen 2: athlete presentation (name first, number medium, real progress, line-up cards) ---------- */
.pr-wait .pr-next{display:flex;flex-direction:column;align-items:center;gap:1.2vh;margin-top:2vh;padding:2.2vh 4vw;border:2px solid rgba(240,116,42,.45);border-radius:2.4vh;background:rgba(240,116,42,.08)}
.pr-next-l{font-size:clamp(16px,1.8vw,34px);color:var(--accent-hi)}
.pr-one{gap:3vh}
.pr-ath{display:flex;flex-direction:column;align-items:center;gap:2.4vh;text-align:center;width:100%}
.pr-num{font-family:var(--f-num);font-weight:800;font-variant-numeric:tabular-nums;font-size:clamp(56px,12vh,160px);line-height:.95;color:var(--bib-ink);background:var(--bib-bg);border-radius:2vh;padding:1.4vh 2.6vw .8vh;min-width:14vw;text-align:center;position:relative;box-shadow:0 0 50px rgba(240,116,42,.35)}
.pr-num::before,.pr-num::after{content:"";position:absolute;top:1.2vh;width:1vh;height:1vh;border-radius:50%;background:#2a1a10}
.pr-num::before{left:1.2vh}.pr-num::after{right:1.2vh}
.pr-name{font-family:var(--f-display);font-weight:900;font-size:clamp(60px,9.4vw,200px);line-height:1.12;max-width:92vw;overflow-wrap:anywhere;text-shadow:0 4px 40px rgba(0,0,0,.6)}
.pr-prog{display:flex;flex-direction:column;align-items:center;gap:1.2vh}
.pr-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:.6vw;max-width:80vw}
.pr-dots i{width:clamp(8px,1vw,18px);height:clamp(8px,1vw,18px);border-radius:50%;background:rgba(255,255,255,.14)}
.pr-dots i.d1{background:var(--ok)} .pr-dots i.d2{background:var(--accent-hi);transform:scale(1.5);box-shadow:0 0 14px rgba(240,116,42,.8)}
.bi.pr-of{font-size:clamp(20px,2.4vw,44px)}
.dsp-pres.swap .pr-num{animation:prFlip .7s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--t)}
.dsp-pres.swap .pr-name{animation:prRise .8s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--t) + 120ms)}
@keyframes prFlip{from{transform:perspective(800px) rotateX(-90deg);opacity:0}to{transform:none;opacity:1}}
@keyframes prRise{from{transform:translateY(5vh);opacity:0;filter:blur(6px)}to{transform:none;opacity:1;filter:none}}
.dsp-pres.opening>.dsp-class{animation:prOpen 1.5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--t)}
.dsp-pres.opening .pr-intro-sub{animation:prFade .7s ease-out both;animation-delay:calc(var(--t) + 1200ms)}
@keyframes prOpen{0%{opacity:0;transform:scale(1.35);filter:blur(10px);text-shadow:0 0 0 transparent}60%{opacity:1;filter:none;text-shadow:0 0 60px rgba(240,116,42,.8)}100%{transform:none;text-shadow:none}}
@keyframes prFade{from{opacity:0;transform:translateY(2vh)}to{opacity:1;transform:none}}
.pr-intro-sub{display:flex;flex-direction:column;align-items:center;gap:2vh}
/* line-up: cards on the LEFT of the screen, class name on the right; every athlete recorded on stage, none left out */
.pr-lineup{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,25vw);direction:ltr;gap:2vw;padding:2.4vh 2.4vw 3vh;min-height:0}
.pr-grid{direction:rtl;display:grid;align-content:center;justify-content:center;min-height:0;height:100%;--cw:160px}
.pr-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow:hidden;border-radius:calc(var(--cw) * .09);
  background:radial-gradient(120% 80% at 50% 0%,rgba(240,116,42,.28),rgba(240,116,42,0) 60%),linear-gradient(180deg,#24150b,#0e0a08);border:1px solid rgba(240,116,42,.4);box-shadow:0 10px 30px rgba(0,0,0,.5);padding-bottom:calc(var(--cw) * .06)}
.pr-card::before{content:"";position:absolute;inset-inline:0;top:0;height:calc(var(--cw) * .035);background:linear-gradient(90deg,var(--accent),var(--accent-hi),var(--accent))}
.pr-sil{width:100%;height:calc(var(--cw) * .62);display:flex;align-items:flex-end;justify-content:center}
.pr-sil svg{width:74%;height:auto;display:block;fill:rgba(245,239,233,.16);stroke:rgba(240,116,42,.55);stroke-width:1.6}
.pr-bib{font-family:var(--f-num);font-weight:800;font-variant-numeric:tabular-nums;color:var(--bib-ink);background:var(--bib-bg);border-radius:calc(var(--cw) * .05);
  font-size:calc(var(--cw) * .26);line-height:1;padding:calc(var(--cw) * .05) calc(var(--cw) * .1) calc(var(--cw) * .025);margin-top:calc(var(--cw) * -.13);position:relative;box-shadow:0 4px 14px rgba(0,0,0,.5);min-width:44%;text-align:center}
.pr-bib::before,.pr-bib::after{content:"";position:absolute;top:calc(var(--cw) * .03);width:calc(var(--cw) * .025);height:calc(var(--cw) * .025);border-radius:50%;background:#2a1a10}
.pr-bib::before{left:calc(var(--cw) * .03)}.pr-bib::after{right:calc(var(--cw) * .03)}
.pr-cname{font-family:var(--f-display);font-weight:800;font-size:calc(var(--cw) * .12);line-height:1.15;text-align:center;padding:calc(var(--cw) * .05) calc(var(--cw) * .06) 0;width:100%;overflow-wrap:anywhere;flex:1;display:flex;align-items:center;justify-content:center}
.pr-lineup.enter .pr-card{animation:prCard .55s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--t) + var(--i) * 70ms)}
@keyframes prCard{from{opacity:0;transform:translateY(3vh) scale(.92)}to{opacity:1;transform:none}}
.pr-side{direction:rtl;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3vh;text-align:center;border-inline-end:2px solid rgba(240,116,42,.35);padding-inline-end:1vw}
.pr-side .dsp-class.big b{font-size:clamp(30px,3.6vw,72px)} .pr-side-n .bi{color:var(--accent-hi)}
@media (max-aspect-ratio:1/1){.pr-lineup{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.pr-side{order:-1;border:0}}
@media (prefers-reduced-motion:reduce){.dsp-pres *,.dsp-pres,.pr-lineup *{animation:none!important;transition:none!important}}
.pres-lineup{display:flex;flex-direction:column;gap:6px;border:1px dashed var(--line);border-radius:var(--r);padding:10px} .pres-lineup.on{border-color:var(--accent-hi);background:var(--accent-soft)}
.pr-wait .dsp-wait-logo{max-height:24vh}
.pr-wait{gap:2vh;padding:2vh 4vw;min-height:0} .pr-wait .dsp-wait-logo{max-height:17vh} .pr-wait>.bi.xl{font-size:clamp(24px,4.2vw,76px)} .pr-wait .pr-next{margin-top:1vh;padding:1.8vh 4vw} .pr-next .dsp-class.big b{font-size:clamp(34px,5.4vw,104px)}
.pr-cname{font-size:calc(var(--cw) * .15)} .pr-cname span{display:block;max-width:100%;overflow-wrap:anywhere}

/* line-up v2: 4:5 cards, bigger names, pages for big groups */
.pr-sil{height:calc(var(--cw) * .4)} .pr-sil svg{width:62%}
.pr-bib{font-size:calc(var(--cw) * .22);margin-top:calc(var(--cw) * -.1)}
.pr-cname{font-size:calc(var(--cw) * .19);line-height:1.12;padding:calc(var(--cw) * .04) calc(var(--cw) * .05) 0}
.pr-page{display:flex;flex-direction:column;align-items:center;gap:1.4vh;padding:1.6vh 1.4vw;border:2px solid rgba(240,116,42,.45);border-radius:2vh;background:rgba(240,116,42,.08)}
.pr-page .bi.sub{color:#fff} .pr-page>.bi:last-child{font-size:clamp(14px,1.3vw,26px);color:#e9dccf}
.pr-pdots{display:flex;gap:.7vw} .pr-pdots i{width:1.2vw;height:1.2vw;min-width:10px;min-height:10px;border-radius:50%;background:rgba(255,255,255,.2)} .pr-pdots i.on{background:var(--accent-hi);box-shadow:0 0 12px rgba(240,116,42,.8)}
.pres-pages{display:flex;flex-direction:column;gap:6px} .pres-pages .row{flex-wrap:wrap;gap:6px}
.pr-sil{padding-top:calc(var(--cw) * .06)} .pr-sil svg{height:100%;width:auto;max-width:70%}
.pr-sil{height:calc(var(--cw) * .44);padding-top:calc(var(--cw) * .05);flex:none} .pr-sil svg{fill:rgba(245,239,233,.34);stroke:var(--accent-hi);stroke-width:2.2} .pr-bib{margin-top:calc(var(--cw) * -.05);flex:none} .pr-cname{min-height:0}

/* ---------- federation director (read-only monitor) ---------- */
.otiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:10px;margin:8px 0 12px}
.otile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:12px;text-align:start;color:inherit;font:inherit;cursor:pointer}
.otile:hover{border-color:var(--accent)} .otile b{font-family:var(--f-num);font-size:34px;line-height:1;direction:ltr}
.otile small{font-family:var(--f-num);color:var(--muted);font-size:15px;direction:ltr} .otile span{font-size:13px;color:var(--muted)}
.otile.ok b{color:#6fe0a8} .otile.warn b{color:var(--warn)} .otile.acc b{color:var(--accent-hi)}
.otile.off{cursor:default;opacity:.6} .otile.off b{font-size:15px;font-family:var(--f-body);color:var(--muted)}
.obar{display:block;width:100%;height:5px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:6px} .obar i{display:block;height:100%;background:var(--accent-hi)} .otile.ok .obar i{background:var(--ok)} .otile.warn .obar i{background:var(--warn)}
.otrack{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;margin:6px 0;width:100%} .otrack i{height:6px;border-radius:99px;background:rgba(255,255,255,.1)} .otrack i.past{background:var(--ok)} .otrack i.now{background:var(--accent-hi)} .otrack em{display:none}
.olive{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;padding:8px 12px;border-radius:10px;background:var(--ok-soft)} .olive .dot{width:10px;height:10px;border-radius:50%;background:var(--ok);flex:none}
.olive.warn{background:var(--warn-soft)} .olive.warn .dot{background:var(--warn)} .olive.bad{background:var(--bad-soft)} .olive.bad .dot{background:var(--bad)} .olive.bad b{color:var(--bad)}
.osheet{display:flex;flex-direction:column}
.osh{display:grid;grid-template-columns:52px minmax(0,1fr) repeat(5,30px);gap:6px;align-items:center;padding:8px 2px;border:0;border-top:1px solid var(--line);background:none;color:inherit;text-align:start;width:100%;font:inherit;cursor:pointer}
.osh.head{font-size:10.5px;color:var(--muted);border-top:0;cursor:default} .osh.head span:nth-child(n+3){text-align:center}
.osh .oname{font-weight:700;overflow-wrap:anywhere} .osh .y{color:var(--ok);text-align:center} .osh .n{color:var(--muted);text-align:center}

/* phone field: country picker + number (always left-to-right, like the number itself) */
.phf{display:flex;flex-direction:column;gap:6px}
.phrow{display:flex;gap:8px;align-items:stretch}
.ccbtn{flex:none;display:flex;align-items:center;gap:6px;padding:0 10px;min-height:52px;border:1px solid var(--line);border-radius:12px;background:var(--surface2);color:var(--fg);font:inherit;cursor:pointer;max-width:48%}
.ccbtn b{font-family:var(--f-num);font-size:18px} .ccbtn .cname{font-size:12px;color:var(--muted);max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .ccbtn .flag,.ccopt .flag{font-size:20px;line-height:1}
.phrow input{flex:1;min-width:0}
.ccbox{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:8px;display:flex;flex-direction:column;gap:6px}
.cclist{max-height:260px;overflow:auto;display:flex;flex-direction:column}
.ccopt{display:flex;align-items:center;gap:10px;padding:10px 8px;border:0;border-bottom:1px solid var(--line);background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}
.ccopt .ccn{flex:1} .ccopt b{font-family:var(--f-num);color:var(--muted)} .ccopt.on{background:var(--accent-soft)} .ccopt[hidden]{display:none}
@media (max-width:380px){.ccbtn .cname{display:none}}
.phmm{flex-wrap:wrap;gap:8px;align-items:center} .phmm[hidden]{display:none}

/* tanning manager: name, entry number + class, mobile number and a big «اتصال» button, readable on a phone */
.tprow{align-items:flex-start;flex-wrap:wrap}
.tents{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}
.tent{display:inline-flex;align-items:center;gap:6px;background:var(--surface2);border-radius:10px;padding:3px 8px 3px 4px}
.tphone{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0;flex-wrap:wrap}
.tnum{font-size:20px;letter-spacing:.02em}
.tcallbtn{min-height:44px;padding:8px 16px;display:inline-flex;align-items:center;gap:6px;font-weight:700;text-decoration:none}
.tcallbtn svg{width:18px;height:18px}
.tprow>.pmain{flex:1 1 100%} .tprow>.btn,.tprow>.tan2{flex:1 1 100%} .tprow>.tan2{display:flex;gap:8px} .tprow>.tan2 .btn{flex:1} .tphone{flex-wrap:nowrap} .tphone .tnum{flex:1;min-width:0}

/* federation director: number + «اتصال» under each row (look and call only) */
.oitem{display:flex;flex-direction:column;border-top:1px solid var(--line);padding-bottom:6px} .oitem:first-child{border-top:0}
.oitem>.prow,.oitem>.drow{border-top:0}
.oitem>.tphone,.oshw>.tphone{padding-inline:4px;margin:2px 0 4px}
.tphone.sm .tnum{font-size:16px} .tcallbtn.sm{min-height:38px;padding:6px 12px;font-size:14px}
.oshw{border-top:1px solid var(--line)} .oshw>.osh{border-top:0}
.ovrow{display:flex;flex-direction:column;gap:6px;padding:10px 0;border-top:1px solid var(--line)} .ovrow:first-of-type{border-top:0} .ovopt{align-items:center;gap:10px;cursor:pointer}
/* tanning call: the reason a class can't be called, both languages, right under its row */
.tcrow{display:flex;flex-direction:column;gap:6px}
.callwhy{display:flex;flex-direction:column;gap:3px;border-radius:10px;padding:9px 12px;font-size:13.5px;line-height:1.55;background:var(--warn-soft);color:var(--fg);border-inline-start:3px solid var(--warn)}
.callwhy b{font-weight:600}
.callwhy span{color:var(--muted);font-size:12.5px}
.callwhy.ok{background:var(--ok-soft);border-inline-start-color:var(--ok)}
/* fixed «إرسال نداء» (backstage + tanning manager): above the bottom bar, never over the last rows (extra room below) */
.fab{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:12px;border:0;background:var(--accent);color:#fff;font-weight:800;font-size:15px;white-space:nowrap}
.fab svg{width:20px;height:20px}
@media (max-width:440px){.role-admin .top .brand-logo,.role-tan .top .brand-logo{display:none}.role-admin .top .brand-sub .chip,.role-tan .top .brand-sub .chip{display:none}.fab{padding:0 10px;font-size:14px}}
.top .brand{min-width:0}
@media (max-width:440px){.role-admin .top .champn,.role-tan .top .champn,.role-player .top .champn{display:none}.role-admin .top .brand-sub,.role-tan .top .brand-sub,.role-player .top .brand-sub{flex-wrap:nowrap;white-space:nowrap}.role-player .top .brand-logo{max-width:27vw}.role-player .top-in{gap:8px}}
.fab:active{transform:scale(.97)}
.fabcount{display:flex;align-items:baseline;gap:8px}.fabcount b{font-size:34px;line-height:1}
.fabres{margin:6px 0;padding-inline-start:20px;line-height:1.8}
/* athlete bell */
.bellbtn{position:relative}.bellbtn svg{width:22px;height:22px}
.bellbtn .badge{position:absolute;top:-4px;inset-inline-end:-4px}
.bellbtn.has{color:var(--accent-hi);border-color:var(--accent)}
.newchip{margin-inline-end:6px;align-self:flex-start;width:auto}
#snd-card details{margin-top:8px}#snd-card details p{margin:6px 0}
.callwhy.bad{background:var(--bad-soft);border-inline-start-color:var(--bad)}

/* old address: the move notice (both languages) */
.movebar{background:var(--accent-soft);border-bottom:2px solid var(--accent);padding-block:10px}.movebar .wrap{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}.movebar p{margin:0;flex:1 1 280px;line-height:1.55}.movebar a:not(.btn){color:var(--accent-hi);font-weight:800;text-decoration:underline}
