.relay-bars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  color: #ffd58d;
  background: linear-gradient(currentColor,currentColor) 2px center/3px 6px no-repeat,linear-gradient(currentColor,currentColor) 9px center/3px 14px no-repeat,linear-gradient(currentColor,currentColor) 16px center/3px 9px no-repeat;
}
#relayEntry { display:inline-flex; align-items:center; gap:6px; color:#ffdea1; border-color:#f1aa56ab; background:#36252b; }
#relayBrief {
  color:#f5f1eb;
  background:#131c2a;
  border:1px solid #7b858f;
  padding:0;
  width:min(720px,calc(100% - 24px));
  max-height:calc(100dvh - 24px);
  overflow-y:auto;
  border-radius:10px;
  box-shadow:0 24px 80px #050914c4;
  touch-action:pan-y;
}
#relayBrief::backdrop { background:#080d17d9; }
.relay-cover {
  position:relative; min-height:clamp(122px,32vh,260px);
  display:flex;align-items:flex-end; padding:clamp(16px,3vw,30px);
  background:linear-gradient(0deg,#101924 0%,#10192420 54%,#1019240d),url('../../launcher-art/neon-apex-mission.webp') center 53% / cover;
}
#relayClose {
  position:absolute; right:12px; top:12px; border:1px solid #cadce780; border-radius:50%; width:38px;height:38px;
  color:white; background:#0a1421d9; line-height:1; font-size:25px;
}
.relay-heading span,.relay-launch small {
  font:700 .75rem/1.25 var(--mono); letter-spacing:.10em; text-transform:uppercase; color:#ffce86;
}
.relay-heading h2 {
  max-width:18ch;margin:4px 0 0; font:italic 900 clamp(28px,5.5vw,58px)/.99 "Arial Black",Arial,sans-serif;
  letter-spacing:-.04em; text-shadow:0 2px 10px #08121c;
}
.relay-orders {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;gap:16px;margin:0;padding:16px clamp(16px,3vw,30px) 20px;}
.relay-orders li {border-top:2px solid #85dcca; padding-top:9px;}
.relay-orders li:nth-child(2){border-color:#b6bbd8}
.relay-orders li:nth-child(3){border-color:#f9bd72}
.relay-orders b {display:block;color:#f2f0eb;font-size:1rem;margin:0 0 4px}
.relay-orders span {font-size:.91rem;line-height:1.35;color:#c7d2dc}
.relay-launch {background:#0e1723;border-top:1px solid #58637380;padding:14px clamp(16px,3vw,30px);display:flex;align-items:center;justify-content:space-between;gap:12px}
.relay-launch small,.relay-launch strong {display:block}
.relay-launch small {color:#abe8db;letter-spacing:.04em}
.relay-launch strong {margin-top:3px;font-size:1rem}
#relayGo {flex:none;min-height:40px}
.relay-hud {
  position:absolute;z-index:3;left:50%;top:var(--top);transform:translateX(-50%);pointer-events:none;
  width:clamp(165px,22vw,240px);padding:7px 12px;border:1px solid #a3e5d28a;background:linear-gradient(115deg,#152d36ef,#101a2aeb);
  color:#a5f4de;font-family:var(--mono);box-shadow:0 3px 12px #0814205c;
}
.relay-hud[data-signal=amber] {border-color:#e5ae6a;color:#ffcc85;background:linear-gradient(115deg,#30272aef,#191c2beb)}
.relay-hud[data-signal=linked] {background:#143b3bf2}
.relay-hud>div {display:flex;align-items:center;gap:7px}
.relay-hud b {font-size:.80rem;line-height:1.1}
.relay-hud output {display:block;font:700 .86rem/1.4 var(--mono);color:#eef6ee;white-space:pre}
.relay-hud meter {display:block;width:100%;height:4px;border:0;appearance:none;background:#516374;color:inherit}
.relay-hud meter::-webkit-meter-bar{border:0;border-radius:0;background:#516374;height:4px}
.relay-hud meter::-webkit-meter-optimum-value{background:currentColor}
.relay-hud meter::-moz-meter-bar{background:currentColor}
@media (max-width:850px) { .relay-hud {top:calc(var(--top) + var(--tool-size) + 6px);width:min(31vw,205px)} }
@media (orientation:portrait) and (max-width:760px) {
  .relay-hud {top:calc(var(--top) + var(--tool-size) + 104px);left:var(--left);transform:none;width:max-content;min-width:156px;max-width:70vw}
}
@media (max-width:540px) {
  .relay-orders {grid-template-columns:1fr;gap:8px;padding:12px 16px}
  .relay-orders li {border-top:none;border-left:2px solid #85dcca;padding:1px 0 1px 9px}
  .relay-orders b {margin:0}
  .relay-orders span {font-size:.875rem}
  .relay-heading h2{font-size:clamp(29px,8vw,44px)}
  .relay-launch {flex-wrap:wrap}
}
@media (max-height:440px) and (orientation:landscape) {
  .relay-cover {min-height:90px}
  .relay-hud {padding:4px 8px}
  .relay-orders {padding-block:8px}
  .relay-orders span {font-size:.82rem}
  .relay-launch {padding-block:7px}
  #relayGo {min-height:34px}
}
