@font-face {
  font-family: 'WardEnochian';
  src: url('/fonts/Enochian.woff2') format('woff2');
  font-display: swap;
}

body.static-reception {
  --static-hud-trace: #daa520;
  --static-hud-live: #6ee7bd;
  --static-hud-void: #050706;
  background-color: var(--static-hud-void);
}

body.static-reception::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    radial-gradient(125% 108% at 50% 46%, transparent 58%, rgba(0, 0, 0, 0.5) 100%),
    repeating-linear-gradient(0deg, rgba(210, 226, 214, 0.018) 0 1px, transparent 1px 3px);
}

.ed-static-canopy {
  position: fixed;
  inset: 0;
  z-index: 51;
  overflow: hidden;
  pointer-events: none;
  color: var(--static-hud-trace);
  font: 8px/1.1 'Courier New', Courier, monospace;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.ed-static-canopy::before,
.ed-static-canopy::after {
  content: '';
  position: absolute;
  top: 86px;
  width: 38%;
  height: 82px;
  opacity: 0.28;
  background:
    linear-gradient(var(--static-hud-trace), var(--static-hud-trace)) 0 0 / 74% 1px no-repeat,
    linear-gradient(var(--static-hud-trace), var(--static-hud-trace)) 42px 24px / 88% 1px no-repeat,
    linear-gradient(var(--static-hud-live), var(--static-hud-live)) 90px 48px / 70% 1px no-repeat;
  clip-path: polygon(0 0, 72% 0, 78% 24px, 100% 24px, 100% 25px, 77% 25px, 71% 1px, 0 1px);
}

.ed-static-canopy::before { left: 0; }
.ed-static-canopy::after { right: 0; transform: scaleX(-1); }

.ed-static-top {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  min-height: 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(218, 165, 32, 0.4);
  border-bottom: 1px solid rgba(218, 165, 32, 0.15);
  background: linear-gradient(90deg, rgba(3, 7, 5, 0.92), rgba(3, 7, 5, 0.24), rgba(3, 7, 5, 0.88));
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.ed-static-top > * {
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-static-top b {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  color: #091009;
  background: var(--static-hud-trace);
}

.ed-static-top span { color: #e7e3d6; opacity: 0.72; }
.ed-static-top i { color: var(--static-hud-live); font-style: normal; opacity: 0.65; }

.ed-static-angelic {
  position: absolute;
  top: 51px;
  left: 18%;
  right: 18%;
  overflow: hidden;
  color: var(--static-hud-live);
  font: 13px/18px 'WardEnochian', 'Courier New', monospace;
  letter-spacing: 0.38em;
  text-align: center;
  white-space: nowrap;
  opacity: 0.23;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.ed-static-scope {
  position: absolute;
  top: 82px;
  right: 24px;
  width: 148px;
  height: 148px;
  fill: none;
  stroke: var(--static-hud-trace);
  stroke-width: 0.8;
  opacity: 0.24;
}

.ed-static-scope .live { stroke: var(--static-hud-live); }
.ed-static-scope .fine { stroke-dasharray: 2 5; }

.ed-static-rail {
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(218, 165, 32, 0.58);
  border-top: 1px solid rgba(218, 165, 32, 0.16);
  background: linear-gradient(180deg, transparent, rgba(3, 7, 5, 0.86));
}

.ed-static-rail b {
  color: var(--static-hud-live);
  font-weight: 400;
}

.ed-static-rail::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: rgba(218, 165, 32, 0.22);
}

.static-reception .container {
  padding-top: max(96px, env(safe-area-inset-top));
}

.static-reception .hero {
  padding-top: max(116px, env(safe-area-inset-top));
}

.static-reception header {
  position: relative;
  isolation: isolate;
}

.static-reception header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(2, 12, 7, 0.34);
  mix-blend-mode: color;
}

.static-reception header > * {
  position: relative;
  z-index: 1;
}

.static-reception :is(.card, pre, .note, .status, .button, .cta) {
  border-radius: 0;
}

.static-reception :is(.card, pre, .note) {
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(110, 231, 189, 0.025), transparent 32%),
    repeating-linear-gradient(0deg, rgba(210, 226, 214, 0.012) 0 1px, transparent 1px 3px);
}

.static-reception h2 {
  position: relative;
  border-bottom-color: rgba(218, 165, 32, 0.22);
}

.static-reception h2::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 38px;
  height: 1px;
  background: var(--static-hud-live);
  opacity: 0.45;
}

@media (max-width: 720px) {
  .ed-static-top {
    left: max(7px, env(safe-area-inset-left));
    right: max(7px, env(safe-area-inset-right));
    min-height: 26px;
    grid-template-columns: auto minmax(0, 1fr);
    background: linear-gradient(90deg, rgba(3, 7, 5, 0.95), rgba(3, 7, 5, 0.48), rgba(3, 7, 5, 0.9));
  }

  .ed-static-top i { display: none; }

  .ed-static-angelic {
    top: 49px;
    left: 2%;
    right: 2%;
    font-size: 12px;
    letter-spacing: 0.32em;
    opacity: 0.31;
  }

  .ed-static-scope {
    top: 88px;
    right: -31px;
    bottom: auto;
    width: 148px;
    height: 148px;
    opacity: 0.3;
  }

  .ed-static-rail {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    min-height: 25px;
    gap: 8px;
    display: flex;
    overflow: hidden;
    color: rgba(218, 165, 32, 0.72);
    border-bottom: 1px solid rgba(110, 231, 189, 0.1);
    background: linear-gradient(90deg, rgba(3, 7, 5, 0.88), rgba(3, 7, 5, 0.34), rgba(3, 7, 5, 0.82));
    font-size: 6.5px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .ed-static-canopy::before,
  .ed-static-canopy::after {
    top: 79px;
    bottom: 42px;
    width: 18px;
    height: auto;
    opacity: 0.5;
    background:
      linear-gradient(var(--static-hud-trace), var(--static-hud-trace)) 7px 0 / 1px 28% no-repeat,
      linear-gradient(var(--static-hud-live), var(--static-hud-live)) 7px 38% / 1px 31% no-repeat,
      linear-gradient(var(--static-hud-trace), var(--static-hud-trace)) 7px 78% / 1px 22% no-repeat,
      repeating-linear-gradient(180deg, transparent 0 17px, rgba(218, 165, 32, 0.5) 17px 19px) 2px 0 / 11px 100% no-repeat;
    clip-path: none;
  }

  .ed-static-canopy::before {
    left: 0;
  }

  .ed-static-canopy::after {
    right: 0;
    transform: scaleX(-1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-static-canopy * { animation: none !important; }
}

@media (forced-colors: active) {
  body.static-reception::before,
  .ed-static-canopy { display: none; }
}
