* {
  box-sizing: border-box;
}
:root {
  --cyan: #79c9df;
  --dim: rgba(121, 201, 223, 0.58);
  --bg: #03090d;
  --mono: "Share Tech Mono", "Courier New", monospace;
}
html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: #c8e4eb;
  font-family: var(--mono);
  overflow: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background: radial-gradient(ellipse at 50% 35%, #174456 0, transparent 55%);
}
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.34) 4px
  );
}
.screen-noise {
  position: fixed;
  inset: 0;
  z-index: 19;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 7vw;
  background: #3939a4;
  color: #fff;
  font-family: VT323, monospace;
  font-size: clamp(19px, 2.2vw, 30px);
  transition:
    opacity 1.2s,
    visibility 1.2s;
}
.boot-content {
  width: min(900px, 100%);
  text-shadow: 2px 2px #19195b;
}
.boot-brand {
  text-align: center;
  margin-bottom: 30px;
}
.boot-memory {
  margin-bottom: 24px;
}
.boot-log {
  min-height: 125px;
  white-space: pre-line;
  line-height: 1.15;
}
.boot-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.boot-cursor {
  width: 15px;
  height: 24px;
  background: #fff;
  animation: blink 0.8s steps(2, start) infinite;
}
.boot-hint {
  position: absolute;
  right: 0;
  bottom: -23vh;
  font-size: 18px;
  opacity: 0.8;
}
.boot-screen.done {
  opacity: 0;
  visibility: hidden;
}
.blink {
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}
.grid-screen {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition:
    opacity 1.3s,
    transform 1.3s,
    visibility 1.3s;
  background:
    radial-gradient(
      ellipse at 28% 60%,
      rgba(23, 66, 82, 0.23),
      transparent 42%
    ),
    #03090d;
}
.grid-screen.ready {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.topbar {
  height: 30px;
  border-bottom: 1px solid var(--dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: #b6dce6;
  font-size: 12px;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
}
.top-left,
.system-tabs,
.top-status {
  display: flex;
  align-items: center;
  gap: 14px;
}
.encom-mark {
  border: 1px solid var(--cyan);
  border-radius: 5px;
  padding: 0 5px;
  font-weight: bold;
  font-size: 11px;
}
.system-tabs {
  gap: 12px;
}
.system-tabs a {
  color: #537d89;
  text-decoration: none;
}
.system-tabs a.active {
  color: #d9f7ff;
  border-bottom: 1px solid var(--cyan);
}
.clock {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
}
.top-status {
  gap: 10px;
  color: #8dbdca;
}
.frame {
  position: absolute;
  inset: 30px 4px 4px;
  border: 1px solid rgba(121, 201, 223, 0.52);
  box-shadow: inset 0 0 0 5px rgba(121, 201, 223, 0.025);
  overflow: hidden;
}
.frame:before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(121, 201, 223, 0.12);
  pointer-events: none;
}
.hero-panel {
  position: absolute;
  left: 2.5%;
  top: 2%;
  width: 43%;
  height: 93%;
}
.encom-logo {
  width: min(100%, 650px);
  margin-top: 1%;
  position: relative;
}
.encom-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(0, 156, 255, 0.28));
}
.logo-outline {
  fill: none;
  stroke: #079cf0;
  stroke-width: 25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: traceLogo 4.2s cubic-bezier(0.55, 0.02, 0.25, 1) forwards;
  filter: url(#logo-glow);
}
.logo-lettering {
  fill: #079cf0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 156px;
  font-weight: 900;
  letter-spacing: -8px;
  opacity: 0;
  transform-origin: center;
  animation: logoTextIn 1.1s ease-out 2.8s forwards;
}
@keyframes traceLogo {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes logoTextIn {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}
.logo-scanlines {
  position: absolute;
  inset: 9% 4% 18%;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(1, 8, 17, 0.38) 4px 5px
  );
  mix-blend-mode: multiply;
  animation: scanlinesAppear 0.5s linear 3.1s forwards;
}
@keyframes scanlinesAppear {
  to {
    opacity: 0.7;
  }
}
.logo-subtitle {
  margin: 3.5vh 0 0 7%;
  letter-spacing: 0.55em;
  color: #8bcbdc;
  font-size: clamp(12px, 1.4vw, 19px);
  white-space: nowrap;
}
.logo-subtitle span {
  padding: 0 0.7em;
}
.grid-floor {
  position: absolute;
  left: -15%;
  right: -5%;
  bottom: -3%;
  height: 48%;
  opacity: 0.35;
  transform: perspective(300px) rotateX(58deg);
  transform-origin: bottom;
  background-image:
    linear-gradient(rgba(90, 190, 218, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 190, 218, 0.28) 1px, transparent 1px);
  background-size: 42px 32px;
  mask-image: linear-gradient(to top, black, transparent 85%);
}
.radar {
  position: absolute;
  left: 2%;
  bottom: 7%;
  width: 80px;
  aspect-ratio: 1;
  border: 1px solid rgba(121, 201, 223, 0.25);
  border-radius: 50%;
  opacity: 0.55;
}
.radar:before {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(121, 201, 223, 0.18);
  border-radius: 50%;
}
.radar:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 49%;
  border-top: 1px solid rgba(121, 201, 223, 0.35);
}
.radar i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  top: 48%;
  left: 48%;
  box-shadow: 0 0 12px var(--cyan);
}
.console {
  position: absolute;
  left: 48%;
  top: 2.2%;
  width: 38%;
  min-width: 390px;
  z-index: 1;
}
.system-info {
  padding: 0 14px 14px;
  border-bottom: 1px solid var(--dim);
  border-radius: 0 0 9px 9px;
  margin-bottom: 30px;
}
.info-row {
  display: grid;
  grid-template-columns: 65px 1fr;
  min-height: 27px;
  align-items: center;
  font-size: clamp(13px, 1.35vw, 19px);
  white-space: nowrap;
}
.info-row b {
  color: #81cce0;
}
.info-row span {
  color: #c4dce2;
}
.info-row em {
  color: #70d6b9;
  font-style: normal;
}
.data-box {
  border: 1px solid var(--dim);
  border-radius: 8px;
  padding: 7px 14px 12px;
  margin: 0 0 28px;
  min-width: 0;
}
.data-box legend {
  padding: 0 12px;
  color: #9bd7e5;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.data-box .info-row {
  min-height: 26px;
}
.welcome-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #85cddd;
  font-size: clamp(14px, 1.5vw, 20px);
  letter-spacing: 0.08em;
  margin: 0 14px 18px;
}
.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #a9e8f4;
  box-shadow: 0 0 12px rgba(121, 201, 223, 0.5);
}
.log-panel {
  border: 1px solid rgba(121, 201, 223, 0.28);
  border-radius: 6px;
  margin: 0 0 12px;
  padding: 7px 10px 8px;
  background: rgba(2, 12, 18, 0.52);
}
.log-heading {
  display: flex;
  justify-content: space-between;
  color: #82cfe2;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(121, 201, 223, 0.16);
}
.log-heading i {
  color: #72d8b5;
  font-style: normal;
  animation: softBlink 1.5s ease-in-out infinite;
}
.grid-log {
  height: 120px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding-top: 5px;
}
.log-entry {
  display: grid;
  grid-template-columns: 52px 43px 1fr;
  gap: 7px;
  font-size: 10px;
  line-height: 1.25;
  color: rgba(190, 220, 228, 0.82);
  animation: logMaterialize 0.35s ease-out both;
}
.log-entry .log-time {
  color: rgba(121, 201, 223, 0.45);
}
.log-entry .log-tag {
  color: #79c9df;
}
.log-entry .log-message {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.log-entry.warn .log-tag,
.log-entry.warn .log-message {
  color: #e3b77b;
}
.log-entry.alert .log-tag,
.log-entry.alert .log-message {
  color: #ed8e8e;
}
@keyframes logMaterialize {
  from {
    opacity: 0;
    transform: translateX(8px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes softBlink {
  50% {
    opacity: 0.35;
  }
}
.bottom-line {
  border-top: 1px solid rgba(121, 201, 223, 0.22);
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #527d89;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.bottom-line a {
  color: #8bd5e6;
  text-decoration: none;
  border-bottom: 1px solid rgba(121, 201, 223, 0.5);
  padding-bottom: 3px;
}
.bottom-line a:hover {
  color: #fff;
  text-shadow: 0 0 9px var(--cyan);
}
.bottom-line a span {
  margin-left: 8px;
}
.identity-panel,
.ghost-panel,
.metrics-panel {
  position: absolute;
  right: 2.2%;
  width: 13%;
  border: 1px solid rgba(121, 201, 223, 0.15);
  color: rgba(121, 201, 223, 0.5);
  padding: 10px;
  background: rgba(3, 13, 19, 0.4);
}
.identity-panel {
  top: 35%;
  min-width: 150px;
  border-color: rgba(121, 201, 223, 0.24);
  clip-path: polygon(0 0, 92% 0, 100% 9%, 100% 100%, 0 100%);
}
.identity-head {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.1em;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(121, 201, 223, 0.18);
}
.identity-head i {
  color: #70d9b7;
  font-style: normal;
  font-size: 7px;
}
.identity-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 11px 0 8px;
}
.avatar-wrap {
  position: relative;
  width: clamp(72px, 7vw, 104px);
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid rgba(121, 201, 223, 0.62);
  overflow: hidden;
}
.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.avatar-wrap:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(4, 15, 22, 0.36) 4px
  );
}
.avatar-crosshair {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(130, 228, 247, 0.45);
}
.identity-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  letter-spacing: 0.08em;
}
.identity-data strong {
  color: #a9e4f0;
  font-size: 10px;
  font-weight: normal;
}
.identity-data > span {
  color: rgba(145, 199, 212, 0.65);
}
.identity-data .identity-id {
  font-size: 7px;
}
.identity-state {
  color: #76d9b7 !important;
}
.identity-state b {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #76d9b7;
  margin-right: 4px;
}
.identity-footer {
  border-top: 1px solid rgba(121, 201, 223, 0.16);
  padding-top: 7px;
  font-size: 6px;
  white-space: nowrap;
}
.identity-footer span {
  color: #79d6b9;
  float: right;
}
.ghost-panel {
  top: 15%;
  font-size: 9px;
}
.ghost-title {
  font-size: 13px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(121, 201, 223, 0.15);
  padding-bottom: 6px;
}
.ghost-panel small {
  display: block;
  line-height: 1.7;
}
.metrics-panel {
  bottom: 4%;
  width: 15%;
  font-size: 9px;
  line-height: 2;
}
.metrics-panel div {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.metrics-panel b {
  font-weight: normal;
}
.bars {
  letter-spacing: -2px;
}
.telemetry-strip {
  position: absolute;
  right: 18%;
  bottom: 13px;
  display: flex;
  gap: 16px;
  color: rgba(121, 201, 223, 0.42);
  font-size: 8px;
  letter-spacing: 0.1em;
}
.telemetry-strip b {
  color: rgba(139, 216, 232, 0.75);
  font-weight: normal;
  margin-left: 4px;
}
.telemetry-strip .online {
  color: #75d7b6;
}
.corner-label {
  position: absolute;
  bottom: 9px;
  left: 16px;
  color: rgba(121, 201, 223, 0.35);
  font-size: 9px;
  letter-spacing: 0.18em;
}
.corner-label span {
  padding: 0 8px;
}
.data-streams {
  position: absolute;
  inset: 30px 5px 5px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.42;
}
.data-column {
  position: absolute;
  top: -40%;
  color: rgba(80, 190, 220, 0.34);
  font-size: 10px;
  line-height: 1.8;
  writing-mode: vertical-rl;
  white-space: nowrap;
  text-shadow: 0 0 7px rgba(72, 190, 225, 0.45);
  animation: dataFall linear infinite;
}
@keyframes dataFall {
  from {
    transform: translateY(-10%);
  }
  to {
    transform: translateY(170%);
  }
}
.signal-sweep {
  position: fixed;
  z-index: 18;
  pointer-events: none;
  left: 0;
  right: 0;
  top: -15%;
  height: 2px;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(111, 225, 255, 0.8),
    transparent
  );
  box-shadow: 0 0 18px 4px rgba(62, 190, 235, 0.22);
  animation: sweep 11s linear infinite;
}
@keyframes sweep {
  0%,
  72% {
    top: -15%;
    opacity: 0;
  }
  74% {
    opacity: 0.65;
  }
  82% {
    top: 110%;
    opacity: 0.25;
  }
  83%,
  100% {
    opacity: 0;
  }
}
.frame.signal-glitch:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background: linear-gradient(
    transparent 48%,
    rgba(108, 225, 255, 0.12) 49%,
    transparent 51%
  );
  animation: glitchFlash 0.42s steps(2, end);
}
@keyframes glitchFlash {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  25% {
    opacity: 0.8;
    transform: translateX(-5px);
  }
  50% {
    opacity: 0.25;
    transform: translateX(4px);
  }
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}
@media (max-width: 900px) {
  .hero-panel {
    left: 3%;
    top: 5%;
    width: 42%;
  }
  .console {
    left: 45%;
    width: 51%;
    min-width: 0;
    top: 3%;
  }
  .ghost-panel,
  .metrics-panel {
    display: none;
  }
  .system-info {
    margin-bottom: 20px;
  }
  .data-box {
    margin-bottom: 20px;
  }
  .info-row {
    grid-template-columns: 56px 1fr;
    font-size: clamp(11px, 1.6vw, 15px);
    min-height: 23px;
  }
  .data-box .info-row {
    min-height: 22px;
  }
  .welcome-line {
    margin-bottom: 14px;
  }
  .identity-panel {
    right: 1.5%;
    top: 38%;
    width: 14%;
    min-width: 110px;
  }
  .identity-footer {
    font-size: 5px;
  }
  .telemetry-strip {
    right: 4%;
    bottom: 30px;
    gap: 8px;
    font-size: 7px;
  }
  .grid-log {
    height: 68px;
  }
  .log-entry {
    font-size: 9px;
    grid-template-columns: 44px 38px 1fr;
    gap: 5px;
  }
}
@media (max-width: 620px) {
  html,
  body {
    overflow: auto;
  }
  .grid-screen {
    position: absolute;
    min-height: 100vh;
  }
  .frame {
    position: absolute;
    overflow: auto;
  }
  .hero-panel {
    position: relative;
    left: auto;
    top: auto;
    width: 90%;
    height: 215px;
    margin: 12px auto 0;
  }
  .encom-logo {
    width: 94%;
    margin: auto;
  }
  .logo-subtitle {
    margin: 14px 0 0 7%;
    font-size: 12px;
    letter-spacing: 0.35em;
  }
  .grid-floor {
    height: 35%;
  }
  .radar {
    display: none;
  }
  .console {
    position: relative;
    left: auto;
    top: auto;
    width: 92%;
    min-width: 0;
    margin: 0 auto 30px;
  }
  .system-info {
    margin-bottom: 20px;
  }
  .info-row {
    font-size: 14px;
    grid-template-columns: 62px 1fr;
  }
  .data-box {
    margin-bottom: 20px;
  }
  .data-box .info-row {
    font-size: 13px;
  }
  .welcome-line {
    margin: 0 8px 14px;
  }
  .bottom-line {
    font-size: 10px;
  }
  .top-status {
    gap: 6px;
  }
  .topbar {
    padding: 0 8px;
  }
  .clock {
    display: none;
  }
  .identity-panel {
    position: relative;
    top: auto;
    right: auto;
    width: 92%;
    min-width: 0;
    margin: 0 auto 22px;
    clip-path: none;
  }
  .identity-content {
    flex-direction: row;
    justify-content: center;
  }
  .avatar-wrap {
    width: 76px;
    flex: 0 0 76px;
  }
  .identity-data {
    align-items: flex-start;
  }
  .identity-footer {
    font-size: 7px;
  }
  .telemetry-strip {
    position: relative;
    right: auto;
    bottom: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 12px 16px;
  }
  .ghost-panel,
  .metrics-panel {
    display: none;
  }
  .corner-label {
    position: relative;
    bottom: auto;
    padding: 0 12px 12px;
  }
  .grid-log {
    height: 94px;
  }
  .log-entry {
    font-size: 10px;
    grid-template-columns: 48px 40px 1fr;
  }
}

/* Keep the entire ENCOM wordmark comfortably inside its rounded frame. */
.encom-svg {
  overflow: visible;
}
.logo-outline {
  stroke-width: 24;
}
.logo-scanlines {
  inset: 20% 7% 27% 7%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 8, 17, 0.02) 0 2px,
    rgba(0, 8, 17, 0.42) 3px 4px
  );
}
.metric-track {
  border-radius: 1px;
}

/* Commodore 64 power-on screen: lavender surround and indigo display field. */
.boot-screen {
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #7c70de;
  color: #b8b0e8;
  font-size: clamp(13px, 1.15vw, 17px);
  text-shadow: none;
}
.boot-screen:before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}
.boot-content {
  position: relative;
  width: 84%;
  height: 74%;
  min-height: 210px;
  padding: 8px;
  background: #3e32a2;
  color: #b8b0e8;
  text-shadow: none;
  overflow: hidden;
}
.boot-brand {
  margin: 0 0 3px;
  text-align: center;
  letter-spacing: 0.08em;
}
.boot-memory {
  margin: 0 0 3px;
  letter-spacing: 0.07em;
}
.boot-log {
  min-height: 0;
  white-space: pre-line;
  line-height: 1.18;
}
.boot-prompt {
  gap: 0;
  margin-top: 2px;
}
.boot-prompt > span:first-child {
  display: none;
}
.boot-cursor {
  width: 8px;
  height: 12px;
  background: #b8b0e8;
}
.boot-hint {
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  color: #b8b0e8;
  opacity: 0.7;
}
.boot-screen .blink {
  color: #b8b0e8;
}
@media (max-width: 620px) {
  .boot-content {
    width: 88%;
    height: 76%;
    padding: 7px;
  }
  .boot-screen {
    font-size: 12px;
  }
  .boot-hint {
    font-size: 9px;
  }
}

/* ENCOM mark v6: closed, balanced outline with clear lettering clearance. */
.encom-logo {
  width: min(100%, 650px);
}
.encom-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.logo-outline {
  fill: none;
  stroke: #079cf0;
  stroke-width: 23;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: traceLogo 4.2s cubic-bezier(0.55, 0.02, 0.25, 1) forwards;
  filter: url(#logo-glow);
}
.logo-lettering {
  font-size: 150px;
  font-weight: 900;
  letter-spacing: -7px;
}
.logo-scanlines {
  inset: 18% 9% 26% 9%;
}

/* Discrete vacuum-fluorescent style load blocks for CPU and RAM. */
.vfd-row {
  grid-template-columns: 32px minmax(64px, 1fr) 30px;
  gap: 7px;
}
.vfd-segments {
  display: grid;
  grid-template-columns: repeat(12, minmax(3px, 1fr));
  gap: 3px;
  height: 11px;
  align-items: stretch;
  padding: 1px 0;
}
.vfd-segments i {
  display: block;
  min-width: 0;
  background: rgba(105, 165, 180, 0.12);
  border: 1px solid rgba(121, 201, 223, 0.13);
  border-radius: 1px;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.5);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.vfd-segments i.on.low {
  background: #39d7a1;
  border-color: #55edbb;
  box-shadow: 0 0 5px rgba(57, 215, 161, 0.42);
}
.vfd-segments i.on.medium {
  background: #e6c34e;
  border-color: #f4dc72;
  box-shadow: 0 0 5px rgba(230, 195, 78, 0.4);
}
.vfd-segments i.on.high {
  background: #ef7654;
  border-color: #ff9a72;
  box-shadow: 0 0 6px rgba(239, 118, 84, 0.5);
}
.vfd-row b {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .metrics-panel {
    display: flex;
    right: 2%;
    bottom: 3%;
    width: 190px;
  }
}
@media (max-width: 620px) {
  .metrics-panel {
    position: relative;
    display: flex;
    right: auto;
    bottom: auto;
    width: 92%;
    margin: 0 auto 16px;
  }
  .vfd-row {
    grid-template-columns: 38px minmax(80px, 1fr) 34px;
  }
}

/* Decoder/decryption data stream card. */
.decrypt-panel {
  border: 1px solid rgba(69, 174, 205, 0.24);
  border-radius: 6px;
  margin: 0 0 12px;
  padding: 7px 10px 8px;
  background: rgba(1, 10, 16, 0.62);
  box-shadow: inset 0 0 18px rgba(30, 130, 170, 0.045);
}
.decrypt-state {
  color: rgba(105, 211, 185, 0.78);
}
.decrypt-state i {
  color: #70d9b7;
  font-style: normal;
  animation: softBlink 1.3s ease-in-out infinite;
}
.decrypt-stream {
  height: 62px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding-top: 5px;
}
.decrypt-entry {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 70px;
  gap: 7px;
  min-width: 0;
  color: rgba(117, 202, 220, 0.72);
  font-size: 9px;
  line-height: 1.25;
  white-space: nowrap;
  animation: logMaterialize 0.28s ease-out both;
}
.decrypt-entry .decrypt-time {
  color: rgba(121, 201, 223, 0.4);
}
.decrypt-entry .decrypt-payload {
  overflow: hidden;
  text-overflow: clip;
  letter-spacing: 0.06em;
  color: #79c9df;
}
.decrypt-entry .decrypt-op {
  text-align: right;
  color: rgba(112, 217, 183, 0.72);
  font-size: 8px;
}
.decrypt-entry:nth-child(3n) .decrypt-payload {
  color: #a5c9d5;
}
.decrypt-entry:nth-child(4n) .decrypt-op {
  color: #d5b76b;
}

@media (max-width: 620px) {
  /* Let the logo and subtitle determine the hero height instead of clipping
     the subtitle into the fixed-height logo area on narrow viewports. */
  .hero-panel {
    width: 92%;
    height: auto;
    min-height: 0;
    padding: 8px 0 20px;
    margin: 10px auto 0;
  }
  .encom-logo {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  .encom-svg {
    width: 100%;
    height: auto;
  }
  .logo-subtitle {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 10px auto 0;
    padding: 0 8px;
    text-align: center;
    white-space: normal;
    line-height: 1.5;
    font-size: clamp(10px, 3vw, 12px);
    letter-spacing: clamp(0.16em, 1.3vw, 0.32em);
  }
  .logo-subtitle span {
    padding: 0 0.45em;
  }
  .grid-floor {
    bottom: 0;
    height: 32%;
    pointer-events: none;
  }
  .console {
    margin-top: 0;
  }
  .decrypt-stream {
    height: 76px;
  }
  .decrypt-entry {
    grid-template-columns: 44px minmax(0, 1fr) 62px;
    font-size: 9px;
    gap: 5px;
  }
}
@media (max-width: 380px) {
  .logo-subtitle {
    letter-spacing: 0.12em;
    font-size: 10px;
  }
  .hero-panel {
    padding-bottom: 16px;
  }
  .decrypt-entry {
    grid-template-columns: 39px minmax(0, 1fr) 55px;
    font-size: 8px;
  }
}


/* Responsive Identity Card */
.hero-panel .identity-panel {
    position: relative;
    top: auto;
    right: auto;

    width: clamp(300px, 34vw, 560px);
    min-width: 0;

    margin: clamp(20px, 3vw, 45px) auto 0;
    padding: clamp(12px, 1.5vw, 22px);

    z-index: 3;
}

/* Header */
.identity-head {
    font-size: clamp(9px, 0.8vw, 13px);
    padding-bottom: clamp(8px, 1vw, 14px);
}

/* Portrait and information */
.identity-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 2vw, 30px);

    padding: clamp(12px, 1.5vw, 22px) 0;
}

/* Profile picture */
.avatar-wrap {
    width: clamp(85px, 9vw, 145px);
    flex: 0 0 auto;
    padding: 5px;
}

/* Identity text */
.identity-data {
    align-items: flex-start;
    gap: clamp(5px, 0.6vw, 9px);
    font-size: clamp(9px, 0.8vw, 13px);
}

.identity-data strong {
    font-size: clamp(12px, 1.1vw, 17px);
}

.identity-data .identity-id {
    font-size: clamp(8px, 0.7vw, 11px);
}

/* Footer */
.identity-footer {
    font-size: clamp(7px, 0.65vw, 10px);
    padding-top: 10px;
}


@media (max-width: 620px) {
    .hero-panel .identity-panel {
        width: 100%;
        max-width: 100%;
        margin-top: 22px;
    }

    .identity-content {
        gap: 16px;
    }

    .avatar-wrap {
        width: 76px;
    }

    .identity-data strong {
        font-size: 12px;
    }
}



/* Mobile VFD layout correction */
@media (max-width: 620px) {

    .metrics-panel {
        position: relative;
        display: flex;
        flex-direction: column;

        width: 92%;
        max-width: 100%;
        min-width: 0;

        right: auto;
        bottom: auto;
        margin: 15px auto;
        padding: 12px;
        box-sizing: border-box;
    }

    .metric-row,
    .vfd-row {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 32px;
        align-items: center;
        gap: 6px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .vfd-segments {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 2px;
        width: 100%;
        min-width: 0;
        height: 10px;
    }

    .vfd-segments i {
        min-width: 0;
        width: 100%;
    }

    .metric-name {
        font-size: 9px;
    }

    .metric-row b {
        font-size: 9px;
        text-align: right;
    }
}

/* Extra narrow phones */
@media (max-width: 380px) {
    .metrics-panel {
        width: 96%;
        padding: 9px;
    }

    .metric-row,
    .vfd-row {
        grid-template-columns: 30px minmax(0, 1fr) 29px;
        gap: 4px;
    }

    .vfd-segments {
        gap: 1px;
        height: 8px;
    }
}