/* Reflex Test: audience canvas, existing phone controls and operator telemetry. */
/* Arena/EWC inherit shared backgrounds, typography and fitting geometry. */
.screen-body .tb-shell .rxb-round { display:grid; grid-template-rows:88px minmax(0,1fr) 78px; gap:24px; }
.screen-body .tb-shell .rxb-head { display:flex; align-items:center; justify-content:space-between; gap:36px; min-width:0; }
.screen-body .tb-shell .rxb-round-label { flex:none; width:560px; height:78px; display:flex; align-items:center; font:700 56px/1.2 var(--tb-font); }
.screen-body .tb-shell .rxb-scoring { min-width:0; width:800px; height:76px; display:flex; align-items:center; justify-content:flex-end; text-align:right; font:600 44px/1.2 var(--tb-font); color:var(--tb-white); }
.screen-body .tb-shell .rxb-signal { --rx-signal:var(--danger); grid-row:2 / 4; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; padding:36px 64px; min-width:0; min-height:0; border-radius:36px; background:var(--tb-base); box-shadow:inset 0 0 0 6px var(--rx-signal); }
.screen-body .tb-shell .rxb-lamp { flex:none; width:136px; height:136px; border-radius:50%; background:var(--rx-signal); }
.screen-body .tb-shell .rxb-command { display:flex; align-items:center; justify-content:center; flex:none; width:100%; height:352px; text-align:center; font:800 300px/1.05 var(--tb-font); letter-spacing:-.045em; overflow-wrap:anywhere; }
.screen-body .tb-shell .rxb-hint { display:flex; align-items:center; justify-content:center; flex:none; width:100%; height:110px; text-align:center; font:600 64px/1.2 var(--tb-font); }
/* The cue changes on receipt. No fade, countdown or animated colour ramp. */
.screen-body .tb-shell .rxb-round[data-phase='go'] .rxb-signal { --rx-signal:var(--success); background:var(--success); color:var(--ewc-charcoal); box-shadow:inset 0 0 0 6px var(--tb-white); }
.screen-body .tb-shell .rxb-round[data-phase='go'] { animation:none; }
.screen-body .tb-shell .rxb-round[data-phase='go'] .rxb-lamp { display:none; }
.screen-body .tb-shell .rxb-round[data-phase='go'] .rxb-command { height:410px; --tb-fit-max:370; }
.screen-body .tb-shell .rxb-result { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:36px; min-width:0; min-height:0; }
.screen-body .tb-shell .rxb-fastest { display:flex; flex-direction:column; justify-content:center; gap:24px; min-width:0; min-height:0; padding:38px; border:1px solid var(--tb-border); border-radius:32px; background:var(--tb-base); }
.screen-body .tb-shell .rxb-result-title { display:flex; align-items:center; height:98px; flex:none; font:700 64px/1.2 var(--tb-font); color:var(--tb-blue); overflow-wrap:anywhere; }
.screen-body .tb-shell .rxb-name { display:flex; align-items:center; height:180px; flex:none; font:800 100px/1.15 var(--tb-font); letter-spacing:-.035em; overflow-wrap:anywhere; unicode-bidi:plaintext; }
.screen-body .tb-shell .rxb-time { display:flex; align-items:baseline; gap:20px; flex:none; min-width:0; }
.screen-body .tb-shell .rxb-time-number { display:flex; align-items:center; height:268px; flex:1; min-width:0; font:800 240px/1.1 var(--tb-font); letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.screen-body .tb-shell .rxb-ms { font:650 66px/1.2 var(--tb-font); flex:none; }
.screen-body .tb-shell .rxb-board { display:flex; flex-direction:column; justify-content:center; gap:18px; min-width:0; min-height:0; }
.screen-body .tb-shell .rxb-row { display:flex; gap:20px; align-items:center; flex:none; height:98px; min-width:0; padding:16px 24px; border:1px solid var(--tb-border); border-radius:22px; background:var(--tb-surface); }
.screen-body .tb-shell .rxb-row.is-first { background:var(--tb-surface-top); border-color:var(--tb-blue); }
.screen-body .tb-shell .rxb-rank { flex:none; width:52px; font:700 52px/1.1 var(--tb-font); color:var(--tb-blue); }
.screen-body .tb-shell .rxb-row-name { min-width:0; flex:1; height:66px; display:flex; align-items:center; font:650 48px/1.2 var(--tb-font); overflow-wrap:anywhere; unicode-bidi:plaintext; }
.screen-body .tb-shell .rxb-row-time { display:flex; align-items:baseline; gap:10px; width:232px; flex:none; }
.screen-body .tb-shell .rxb-row-time strong { display:flex; align-items:center; flex:1; height:66px; min-width:0; font:750 58px/1.15 var(--tb-font); font-variant-numeric:tabular-nums; }
.screen-body .tb-shell .rxb-row-time span { font:600 30px/1.2 var(--tb-font); }
.screen-body .tb-shell .rxb-cue { display:flex; align-items:center; justify-content:center; gap:24px; min-width:0; }
.screen-body .tb-shell .rxb-cue-label { display:flex; align-items:center; justify-content:center; width:1200px; height:76px; min-width:0; text-align:center; font:600 44px/1.2 var(--tb-font); color:var(--tb-white); }
.screen-body .tb-shell .rxb-clock { font:700 62px/1 var(--tb-font); font-variant-numeric:tabular-nums; }
.screen-body .tb-shell .rxb-result.is-empty { grid-template-columns:1fr; }
.screen-body .tb-shell .rxb-result.is-empty .rxb-fastest { align-items:center; border:0; background:none; }
.screen-body .tb-shell .rxb-result.is-empty .rxb-result-title { justify-content:center; width:100%; }
.screen-body .tb-shell .rxb-result.is-empty .rxb-name { justify-content:center; text-align:center; width:1500px; max-width:100%; height:280px; --tb-fit-max:116; }
.screen-body .tb-shell.is-arabic .rxb-command { letter-spacing:0; }
.screen-body .tb-shell[data-mainboard-layout='ewc26'] :is(.rxb-command,.rxb-name,.rxb-time-number) { font-weight:900; }
.screen-body .tb-shell[data-mainboard-layout='ewc26'] :is(.rxb-command,.rxb-time-number) { font-family:var(--tb-headline); letter-spacing:0; }
.screen-body .tb-shell[data-mainboard-layout='ewc26'] :is(.rxb-signal,.rxb-fastest,.rxb-row) { border-radius:0; }
.screen-body .tb-shell[data-mainboard-layout='ewc26'] .rxb-row { background:var(--tb-white); color:var(--tb-bg); border-color:var(--tb-white); }
.screen-body .tb-shell[data-mainboard-layout='ewc26'] .rxb-row.is-first { border-left:10px solid transparent; border-image:var(--tb-highlight) 1; }
.screen-body .tb-shell[data-mainboard-layout='ewc26'] .rxb-rank { color:var(--tb-bg); }
.screen-body .tb-shell[data-mainboard-layout='ewc26'].is-arabic :is(.rxb-command,.rxb-time-number) { font-family:var(--tb-font); }

/* Kept for the phone's existing immediate green cue. */
@keyframes rxGoPop { from { transform:scale(.9); } to { transform:scale(1); } }
/* ================================ PHONE =================================== */
.play-body .rx-pad {
  flex: 1; width: 100%; border: none; border-radius: 26px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--ewc-off-white); text-align: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.14);
}
.play-body .rx-pad-big { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 62px; line-height: 0.9; }
.play-body .rx-pad-sub { font-family: var(--font-narrow); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px; opacity: 0.92; max-width: 260px; }

.play-body .rx-pad-wait { background: radial-gradient(120% 120% at 50% 40%, var(--danger) 0%, rgba(150,30,30,0.95) 100%); }
.play-body .rx-pad-jumped { background: var(--surface-3); color: var(--text-dim); }
.play-body .rx-pad-go { background: radial-gradient(120% 120% at 50% 40%, var(--success) 0%, rgba(20,120,60,0.95) 100%); animation: rxGoPop 0.14s ease-out; }
.play-body .rx-pad-go .rx-pad-big { font-size: 80px; }
.play-body .rx-pad-done { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--line-soft); }

.play-body .rx-time-label { font-family: var(--font-narrow); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; color: var(--text-dim); }
.play-body .rx-time-num { font-family: var(--font-display); font-weight: 900; font-size: 66px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.play-body .rx-time-num-lg { font-size: 60px; margin: 4px 0; }
.play-body .rx-time-num b { background: var(--grad-num); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.play-body .rx-time-ms { font-family: var(--font-narrow); font-size: 22px; color: var(--text-dim); -webkit-text-fill-color: var(--text-dim); }
.play-body .rx-time-pts { font-family: var(--font-narrow); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 16px; color: var(--text); margin-top: 4px; }

.play-body .rx-result-card { text-align: center; }
.play-body .rx-tot { display: flex; justify-content: center; gap: 26px; margin-top: 10px; }
.play-body .rx-tot-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.play-body .rx-tot-label { font-family: var(--font-narrow); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px; color: var(--text-faint); }
.play-body .rx-tot-cell b { font-family: var(--font-display); font-weight: 900; font-size: 28px; color: var(--text); }
.play-body .rx-tot-cell b.grad { background: var(--grad-num); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ================================ ADMIN =================================== */
#dash .rx-live { display: flex; flex-direction: column; gap: 10px; }

/* Operator-only signal and measured-time distribution; shell uses shared lfs-* components. */
#dash #tab-reflex .rx-signal { display:flex; align-items:center; gap:12px; padding:26px 0; }
#dash #tab-reflex .rx-signal h3 { margin:0; font:550 22px/1.4 var(--font-body); }
#dash #tab-reflex .rx-signal-dot { width:12px; height:12px; border-radius:50%; background:var(--text-faint); flex:none; }
#dash #tab-reflex .rx-signal-ready .rx-signal-dot { background:var(--danger); }
#dash #tab-reflex .rx-signal-go .rx-signal-dot { background:var(--success); }
#dash #tab-reflex .rx-distribution { display:flex; align-items:flex-end; gap:6px; height:110px; border-bottom:1px solid var(--line); }
#dash #tab-reflex .rx-distribution > span { flex:1; background:var(--grad-warm); border-radius:3px 3px 0 0; transition:height .15s ease; }
#dash #tab-reflex .rx-distribution > span:last-child { background:var(--text-faint); }
#dash #tab-reflex .rx-axis { font-size:10px; margin:10px 0 16px; }
#dash #tab-reflex [data-rx-outcome="jumped"] { --outcome-color:var(--danger); }
#dash #tab-reflex [data-rx-outcome="waiting"], #dash #tab-reflex [data-rx-outcome="unmeasured"] { --outcome-color:var(--text-faint); }

#dash #tab-reflex .rx-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:14px; }
#dash #tab-reflex .rx-header-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
#dash #tab-reflex .rx-header-actions .op-context { gap:8px; }
#dash #tab-reflex .rx-header-actions :is(#rxPrimary,#rxCloseLobby).btn-danger { background:rgba(var(--tint-danger),.1); border:1px solid rgba(var(--tint-danger),.5); color:var(--danger); }
#dash #tab-reflex .rx-header-actions :is(#rxPrimary,#rxCloseLobby).btn-danger:hover { background:rgba(var(--tint-danger),.2); }
#dash #tab-reflex .lfs-round-tools .btn-danger { color:var(--danger); border-color:rgba(var(--tint-danger),.5); }
@media (max-width:850px) { #dash #tab-reflex .rx-header-actions { justify-content:flex-start; } }
@media (prefers-reduced-motion:reduce) { .play-body .rx-pad-go { animation:none; } #dash #tab-reflex .rx-distribution > span { transition:none; } }
