.link-screen {
  position: relative;
  padding: 20px;
  overflow: hidden;
  background: #000;
  color: var(--text-primary);
}

.link-screen:focus {
  border-color: transparent;
  box-shadow: none;
}

.link-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(112, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 231, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.72;
}

.link-header,
.link-gauge,
.link-metrics,
.link-footer {
  position: relative;
  z-index: 1;
}

.link-header {
  height: 70px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.link-header h1 {
  font-size: 31px;
  line-height: 1;
}

.link-button {
  width: 86px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: rgba(28, 30, 33, 0.9);
  color: var(--accent-strong);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.link-gauge {
  height: 354px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
}

.link-gauge strong {
  font-size: 88px;
  line-height: 0.9;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(112, 231, 255, 0.34);
}

.link-gauge span {
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  font-weight: 850;
}

.bar-track {
  width: 340px;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.bar-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--danger), var(--warm), var(--success));
  transition: width 280ms ease;
}

.link-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.link-metrics div {
  display: grid;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(12, 14, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.link-metrics span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.link-metrics strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}

.link-footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.link-screen[data-state="bad"] .link-gauge strong {
  color: var(--danger);
}

.link-screen[data-state="mid"] .link-gauge strong {
  color: var(--warm);
}

.link-screen[data-state="good"] .link-gauge strong {
  color: var(--success);
}
