/* Intercepted-gateway dashboard. Masked-man video sits in the centre feed. */
:root {
  --red: #ff2a2a;
  --red-dim: rgba(255, 42, 42, 0.72);
  --green: #39ff74;
  --ink: #c6ffd2;
  --muted: rgba(140, 255, 170, 0.62);
  --line: rgba(255, 42, 42, 0.45);
  --mono: "Share Tech Mono", ui-monospace, monospace;
  --display: "Share Tech Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.gate-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(640px 180px at 50% 0%, rgba(0, 80, 28, 0.34), transparent 72%),
    radial-gradient(900px 480px at 50% 48%, rgba(90, 0, 0, 0.45), transparent 68%),
    #010201;
  color: var(--ink);
  font-family: var(--mono);
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.dash-scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 4px);
}
.dash-scan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(transparent, rgba(255, 30, 30, 0.16), transparent);
  animation: scan-sweep 6.5s linear infinite;
}
.dash-scan::after { content: none; }

.dash-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr minmax(180px, 260px);
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem 1rem 0.2rem;
}
.dash-box {
  border: 1px solid rgba(57, 255, 116, 0.42);
  background: rgba(0, 18, 8, 0.72);
  box-shadow: inset 0 0 18px rgba(0, 255, 80, 0.1);
  padding: 0.45rem 0.6rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.45;
}
.dash-box p { margin: 0; }
.dash-box b { font-weight: 400; }
.hot { color: var(--red); }
.ok { color: var(--green); }
.dash-conn { position: relative; padding-right: 1.6rem; }
.snd-line { margin: 0.12rem 0 0; }
.dash-sound {
  border: 0;
  background: none;
  padding: 0;
  min-height: 0;
  color: var(--green);
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.dash-sound[aria-pressed="false"] { color: var(--red); }
.sig {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.sig i {
  display: block;
  width: 3px;
  background: var(--green);
  box-shadow: 0 0 6px rgba(61, 255, 138, 0.7);
}
.sig i:nth-child(1) { height: 5px; }
.sig i:nth-child(2) { height: 8px; }
.sig i:nth-child(3) { height: 12px; }
.sig i:nth-child(4) { height: 16px; opacity: 0.45; }
.sig i { animation: bar-hop 1.4s ease-in-out infinite; transform-origin: bottom; }
.sig i:nth-child(2) { animation-delay: 0.15s; }
.sig i:nth-child(3) { animation-delay: 0.3s; }
.sig i:nth-child(4) { animation-delay: 0.45s; }
@keyframes bar-hop {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.dash-brand { text-align: center; min-width: 0; }
.dash-title {
  margin: 0;
  font-family: VT323, var(--mono);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: 0.12em;
  line-height: 0.9;
  text-indent: 0.12em;
  text-transform: uppercase;
  color: #d8ffe4;
  text-shadow:
    2px 0 rgba(255, 40, 50, 0.75),
    -2px 0 rgba(0, 255, 120, 0.7),
    0 0 22px rgba(0, 255, 90, 0.5);
  animation: dw-flicker 5.2s steps(1) infinite, dw-glitch 3.8s steps(1) infinite;
}
@keyframes dw-flicker {
  0%, 91%, 100% { opacity: 1; }
  92% { opacity: 0.55; }
  94% { opacity: 1; }
  96% { opacity: 0.75; }
}
@keyframes dw-glitch {
  0%, 82%, 100% { transform: none; }
  84% { transform: translate(-4px, 1px) skewX(-6deg); text-shadow: -5px 0 #ff2a2a, 5px 0 #39ff74; }
  86% { transform: translate(5px, -2px) skewX(4deg); }
  88% { transform: translate(-2px, 0); }
}
@keyframes scan-sweep {
  from { top: -25%; }
  to { top: 120%; }
}
.dash-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.05rem;
  margin-top: 0.72rem;
}
.dash-nav a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(180, 255, 200, 0.72);
  padding-bottom: 0.2rem;
}
.dash-nav a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--green);
}
.dash-nav a:hover,
.dash-nav a:focus-visible { color: #fff; outline: none; }

.dash {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(320px, 720px) minmax(190px, 1fr);
  grid-template-areas: "ql core qr";
  grid-template-rows: minmax(0, 1fr);
  gap: 0.7rem 0.85rem;
  align-items: stretch;
  padding: 0.7rem 1rem 0.4rem;
}
.dash-side {
  grid-area: ql;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  gap: 0.4rem;
}
.dash-side-r { grid-area: qr; padding-top: 0; }
.con-mask {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}
.con-roll {
  list-style: none;
  margin: 0;
  padding: 0;
  animation: con-roll 72s linear infinite;
}
.con-roll-slow { animation-duration: 88s; animation-direction: reverse; }
.con-roll li {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ff4a4a;
  text-shadow: 0 0 8px rgba(255, 30, 30, 0.35);
  padding: 0.32rem 0;
  border-bottom: 1px solid rgba(255, 40, 40, 0.16);
}
.con-roll li::before { content: "> "; color: rgba(255, 60, 60, 0.7); }
.con-roll li:nth-child(4n) { animation: red-spike 5.4s steps(1) infinite; }
.con-roll li:nth-child(4n+2) { animation: red-spike 7.2s steps(1) infinite 1.4s; }
.con-roll li:nth-child(5n) { animation: redact 8.6s steps(1) infinite 0.6s; }
@keyframes red-spike {
  0%, 72%, 100% { color: #ff4a4a; background: transparent; }
  76% { color: #fff; background: rgba(255, 0, 0, 0.45); }
  80% { color: #ff4a4a; background: transparent; }
}
@keyframes redact {
  0%, 82%, 100% { color: #ff4a4a; background: transparent; }
  86%, 90% { color: transparent; text-shadow: none; background: #ff1a1a; }
}
@keyframes con-roll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.dash-way {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  text-shadow: 0 0 12px rgba(255, 40, 40, 0.55);
}
.dash-way::after {
  content: "█";
  margin-left: 0.35rem;
  color: var(--green);
  text-shadow: 0 0 8px rgba(0, 255, 90, 0.65);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.dash-core {
  grid-area: core;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.55rem;
}
.dash-log { grid-area: log; }
.dash-status { grid-area: status; }

.side-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(80, 255, 140, 0.82);
  text-shadow: 0 0 8px rgba(0, 255, 90, 0.28);
}
.q {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.55rem;
  align-items: center;
  padding: 0.2rem 0 0.55rem;
}
.q h2 {
  margin: 0;
  grid-column: 1;
  max-width: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(0.72rem, 1.15vw, 0.92rem);
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(198, 255, 210, 0.88);
  text-shadow: 0 0 8px rgba(0, 255, 90, 0.18);
}
.stamp {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  top: auto;
  left: auto;
  translate: none;
  padding: 0.12rem 0.38rem 0.08rem;
  border: 2px solid var(--red);
  color: var(--red);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--display);
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.2rem;
  rotate: -8deg;
  box-shadow: 0 0 12px rgba(255, 42, 42, 0.25);
}
.stamp-tilt { rotate: 8deg; }
.stamp-low { rotate: -11deg; }
.stamp-hot { rotate: 6deg; }
.q-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.45rem 0 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(80, 255, 140, 0.42);
}

.dash-warn {
  width: min(100%, 680px);
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--red);
  color: var(--red);
  text-align: center;
  font-family: var(--display);
  font-size: clamp(0.58rem, 1.15vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 30, 30, 0.22) 0 8px, rgba(0, 0, 0, 0.35) 8px 16px);
  box-shadow: 0 0 22px rgba(255, 40, 40, 0.22);
}
.dash-denied {
  margin: 0;
  color: var(--red);
  font-family: VT323, var(--mono);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 40, 40, 0.45);
}

.dash-feed {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 16 / 9;
  margin: 0;
  background: #000;
  border: 1px solid rgba(255, 42, 42, 0.7);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 30, 30, 0.28);
  overflow: hidden;
  z-index: 3;
  isolation: isolate;
}
.dash-feed::before,
.dash-feed::after { content: none; }
.dash-feed video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transform: translateZ(0);
}
.feed-frame {
  position: absolute;
  inset: 8px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(#39ff74, #39ff74) left top / 16px 2px no-repeat,
    linear-gradient(#39ff74, #39ff74) left top / 2px 16px no-repeat,
    linear-gradient(#ff2a2a, #ff2a2a) right top / 16px 2px no-repeat,
    linear-gradient(#ff2a2a, #ff2a2a) right top / 2px 16px no-repeat,
    linear-gradient(#ff2a2a, #ff2a2a) left bottom / 16px 2px no-repeat,
    linear-gradient(#ff2a2a, #ff2a2a) left bottom / 2px 16px no-repeat,
    linear-gradient(#39ff74, #39ff74) right bottom / 16px 2px no-repeat,
    linear-gradient(#39ff74, #39ff74) right bottom / 2px 16px no-repeat;
}
.feed-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 3;
  color: #d8ffe4;
  text-shadow: 0 0 8px rgba(0, 255, 90, 0.45);
}
.feed-hud p { margin: 0; }
.feed-time { text-align: right; }
.live {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.2rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  vertical-align: 1px;
  animation: live-pulse 1.1s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.7); }
}
.feed-cap {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.65rem;
  margin: 0;
  padding: 0.7rem 0.8rem 0.55rem;
  z-index: 3;
  border: 1px solid rgba(255, 42, 42, 0.55);
  background: rgba(0, 8, 4, 0.72);
  color: #d8ffe4;
  font-family: var(--mono);
  text-align: center;
  font-size: clamp(0.82rem, 1.5vw, 1.05rem);
  font-weight: 600;
  line-height: 1.35;
}
.feed-cap b { color: var(--red); font-weight: 700; }
.feed-cap::before,
.feed-cap::after,
.cap-br::before,
.cap-br::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 70, 70, 0.9);
  pointer-events: none;
}
.feed-cap::before { top: 4px; left: 4px; border-right: 0; border-bottom: 0; }
.feed-cap::after { top: 4px; right: 4px; border-left: 0; border-bottom: 0; }
.cap-br::before { bottom: 4px; left: 4px; border-right: 0; border-top: 0; }
.cap-br::after { bottom: 4px; right: 4px; border-left: 0; border-top: 0; }

.dash-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: min(100%, 680px);
  min-height: 76px;
  margin-top: 0.35rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--red);
  color: #fff;
  background: rgba(70, 0, 0, 0.72);
  text-decoration: none;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 36px rgba(255, 30, 30, 0.55), inset 0 0 22px rgba(255, 40, 40, 0.16);
  animation: btn-pulse 2.1s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 30, 30, 0.35), inset 0 0 10px rgba(255, 40, 40, 0.08); }
  50% { box-shadow: 0 0 46px rgba(255, 20, 20, 0.85), inset 0 0 26px rgba(255, 40, 40, 0.28); }
}
.dash-enter::before { content: "["; color: var(--red); }
.dash-enter::after { content: "]"; color: var(--red); }
.dash-enter:hover,
.dash-enter:focus-visible {
  background: var(--red);
  color: #1a0000;
  outline: none;
}
.dash-enter:hover::before,
.dash-enter:hover::after,
.dash-enter:focus-visible::before,
.dash-enter:focus-visible::after { color: #1a0000; }
.dash-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff6a6a;
}

.dash-log,
.dash-status {
  border: 1px solid var(--line);
  background: rgba(0, 14, 6, 0.72);
  box-shadow: inset 0 0 16px rgba(0, 255, 80, 0.04);
  padding: 0.55rem 0.65rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.45;
}
.dash-log h2,
.dash-status h2 {
  margin: 0 0 0.35rem;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(198, 255, 210, 0.7);
}
.dash-log ol { list-style: none; margin: 0; padding: 0; color: var(--green); }
.dash-log time { color: rgba(61, 255, 138, 0.7); }
.dash-log p { margin: 0.15rem 0 0; color: rgba(61, 255, 138, 0.85); }
.dash-status dl { margin: 0; }
.dash-status div { display: flex; justify-content: space-between; gap: 0.8rem; }
.dash-status dt { color: rgba(140, 255, 170, 0.55); }
.dash-status dd { margin: 0; color: var(--red); }
.granted {
  display: flex;
  justify-content: space-between;
  margin: 0.55rem 0 0;
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(61, 255, 138, 0.45);
}
.welcome {
  margin: 0.1rem 0 0;
  color: rgba(61, 255, 138, 0.7);
  font-size: 0.58rem;
}

.con-ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid rgba(255, 42, 42, 0.4);
  border-bottom: 1px solid rgba(255, 42, 42, 0.4);
  background: rgba(36, 0, 0, 0.72);
}
.con-ticker-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  margin: 0;
  padding: 0.38rem 0;
  animation: ticker 48s linear infinite;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff3b3b;
}
.con-ticker-track span::before { content: "// "; color: rgba(255, 80, 80, 0.45); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.dash-foot {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 1rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(140, 255, 170, 0.45);
}
.dash-foot p { margin: 0; }
.soc { display: flex; gap: 0.7rem; }
.soc a { text-decoration: none; }
.soc a:hover { color: #fff; }
.dash-foot span { color: rgba(198, 255, 210, 0.75); }
.lock { text-align: right; }

@media (max-width: 980px) {
  .dash-top { grid-template-columns: 1fr 1fr; }
  .dash-brand { grid-column: 1 / -1; grid-row: 1; }
  .dash {
    grid-template-columns: 1fr;
    grid-template-areas:
      "core"
      "ql"
      "qr";
    grid-template-rows: auto;
  }
  .dash-side-r { padding-top: 0; }
  .con-mask { max-height: 14rem; flex: none; }
  .dash-foot { grid-template-columns: 1fr; text-align: center; }
  .soc, .lock { justify-content: center; text-align: center; }
}

@media (min-width: 981px) {
  body.gate-page { height: 100dvh; overflow: hidden; }
  .dash { min-height: 0; align-content: stretch; }
  .dash-core { align-content: center; }
  .dash-side,
  .dash-side-r { align-content: space-evenly; }
  .dash-side-r {
    justify-self: end;
    width: max-content;
    max-width: calc(100% - 1.6rem);
    text-align: right;
  }
  .dash-feed { width: min(100%, 760px); max-height: 48vh; }
}

body.gate-page #bts-cookie-manage {
  top: auto;
  bottom: 0.4rem;
  left: 7.2rem;
  right: auto;
  opacity: 0.85;
}
body.gate-page.bts-cookie-set,
body.gate-page.bts-cookie-open { padding-bottom: 0; }

@media (max-width: 980px) {
  body.gate-page #bts-cookie-manage { left: auto; right: 0.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-scan { display: none; }
  .dash-title,
  .dash-enter,
  .dash-way::after,
  .con-roll,
  .con-roll li,
  .con-ticker-track,
  .live,
  .sig i { animation: none; }
  .con-mask { overflow: auto; -webkit-mask-image: none; mask-image: none; }
  .live { box-shadow: none; }
}
