/* Shared */
:root{
  --bg:#000;
  --fg:#fff;
  --muted:rgba(255,255,255,.75);
  --line:rgba(255,255,255,.65);
  --line2:rgba(255,255,255,.35);
  --card:#0b0b0b;
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; font-family: Arial, Helvetica, sans-serif; background:var(--bg); color:var(--fg); }

/* DISPLAY */
.display-body{ overflow:hidden; }
.blackout{
  position:fixed; inset:0; background:#000;
  z-index:1000;
  opacity:0; pointer-events:none;
  transition:opacity .12s linear;
}
.blackout.on{ opacity:1; pointer-events:auto; }

.stage{
  width:1920px; height:1080px;
  margin:0 auto;
  position:relative;
  padding:70px 80px 70px 80px;
}

.top-header{
  border-bottom:4px solid var(--fg);
  padding-bottom:18px;
  margin-bottom:26px;
  text-align:center;
}
.hdr{
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
  font-size:86px;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.content{
  display:flex;
  gap:64px;
  height:calc(1080px - 70px - 70px - 86px - 18px - 26px); /* approx */
}

.left{ flex:1.15; }
.right{ flex:0.85; display:flex; flex-direction:column; gap:34px; }
.right > *{ width:100%; }

.box{
  border:4px solid var(--fg);
  padding:28px;
}

.box-left{ height:100%; }
.roster-viewport{
  height:100%;
  overflow:hidden;
  position:relative;
}
.roster{
  position:absolute;
  left:0; right:0; top:0;
  will-change: transform;
}
.roster-line{
  font-weight:900;
  text-transform:uppercase;
  font-size:70px;
  line-height:1.12;
  white-space:nowrap;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:18px;
}
.roster-line .lhs{
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
}
.roster-line .rhs{
  min-width:0;
}

.timer-wrap{ text-align:center; width:100%; }
.timer{
  font-weight:900;
  font-size:178px;
  line-height:1;
  letter-spacing:2px;
}

.box-image{ flex:1; display:flex; align-items:stretch; }
.image-frame{
  width:100%;
  max-width:520px;
  margin:0 auto;
  aspect-ratio:1 / 1;
  border:4px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.image-frame img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:none;
}
.img-placeholder{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:24px;
  font-weight:800;
  color:var(--muted);
  font-size:44px;
  letter-spacing:1px;
}

/* Auto-scroll (applied dynamically) */
@keyframes scrollUp {
  from { transform: translateY(var(--scrollStart, 0px)); }
  to   { transform: translateY(var(--scrollEnd, -100px)); }
}
.roster.scrolling{
  animation-name: scrollUp;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* OPERATOR */
.op-body{ background:#060606; color:var(--fg); }
.op{ max-width:1100px; margin:24px auto 70px auto; padding:0 16px; }
.op-title{ margin:0 0 18px 0; font-size:28px; font-weight:900; letter-spacing:.4px; }

.card{
  background:var(--card);
  border:1px solid var(--line2);
  border-radius:14px;
  padding:16px 16px 14px 16px;
  margin-bottom:14px;
}
.row{ display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
.lbl{ font-weight:800; color:var(--muted); font-size:13px; letter-spacing:.3px; text-transform:uppercase; }
.in{
  background:#0f0f0f;
  border:1px solid var(--line2);
  color:var(--fg);
  border-radius:10px;
  padding:10px 12px;
  font-size:15px;
  outline:none;
}
.in:disabled{ opacity:.55; }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.hint{ color:var(--muted); font-size:12px; }

.sub{ margin:0 0 10px 0; font-size:16px; font-weight:900; }

.guests{ display:flex; flex-direction:column; gap:10px; }
.grow{
  display:grid;
  grid-template-columns: 52px 1fr 120px 1fr;
  gap:8px;
  align-items:center;
}
.badge{
  width:52px; text-align:right;
  color:var(--muted);
  font-weight:900;
}
.controls{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.btn{
  background:#141414;
  border:1px solid var(--line2);
  color:var(--fg);
  border-radius:12px;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }
.btn-primary{ background:#1d1d1d; border-color:rgba(255,255,255,.5); }
.btn-warn{ background:#1b1212; border-color:rgba(255,255,255,.35); }
.status{ margin-left:auto; color:var(--muted); font-size:13px; display:flex; gap:18px; }

/* Modal */
.modal{
  position:fixed; inset:0;
  background:rgba(0,0,0,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:2000;
}
.modal.hidden{ display:none; }
.modal-card{
  width:min(520px, 100%);
  background:#0b0b0b;
  border:1px solid var(--line2);
  border-radius:16px;
  padding:16px;
}
.modal-title{ font-weight:900; font-size:18px; margin-bottom:8px; }
.modal-body{ color:var(--muted); line-height:1.35; margin-bottom:14px; }
.modal-actions{ display:flex; gap:10px; justify-content:flex-end; }

/* Operator segmented control */
.seg{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Operator Ops Bar */
.opbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  border:1px solid var(--line2);
  border-radius:12px;
  background:#0f0f0f;
  margin-bottom:12px;
}
.opbar-left{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}
.opbar-time{
  font-weight:900;
  letter-spacing:.5px;
}
.opbar-sep{
  color:var(--muted);
}
.opbar-label{
  color:var(--muted);
  font-weight:800;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.4px;
}
.opbar-value{
  font-weight:900;
  font-size:18px;
  letter-spacing:.6px;
}

/* Status pill */
.pill{
  padding:8px 12px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.6px;
  border:1px solid rgba(255,255,255,.25);
  text-transform:uppercase;
}
.pill.stopped{ background: rgba(255,0,0,.18); }
.pill.running{ background: rgba(0,255,0,.18); }
.pill.complete{ background: rgba(255,255,0,.18); }

.controls-top{
  margin-top:4px;
}

/* BLACKOUT_FORCE_BEGIN */
/* Hard guarantee: blackout always covers everything when .on is present */
#blackout, .blackout{
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #000 !important;
  z-index: 2147483647 !important; /* max-ish */
  pointer-events: none !important;
  display: none !important;
}

#blackout.on, .blackout.on{
  display: block !important;
}
/* BLACKOUT_FORCE_END */

