.frame {
  width: min(var(--frame-width), calc(100vw - 32px));
  min-height: var(--frame-height);
  height: var(--frame-height);
  max-height: var(--frame-height);
  border: 8px solid var(--color-frame-border);
  border-radius: var(--radius-frame);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-frame), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  background: var(--color-content-surface);
  animation: frame-in 650ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.4px, transparent 0.4px);
  background-size: 3px 3px;
}
