/* GhostHash lightweight lock: no blur, grayscale, filters or animated image.
   Only the shackle transform and caption opacity/color are transitioned. */
#lock.lock-wrap {
  position: relative;
  width: 340px;
  min-height: 360px;
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  background: #0d1320;
  border-right: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

#lock .meme {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  /* Deliberately no filter and no transition on the image. */
}

.padlock {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.padlock .shackle {
  display: block;
  width: 64px;
  height: 56px;
  box-sizing: border-box;
  border: 10px solid var(--accent);
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  margin-bottom: -1px;
  transform-origin: 0% 100%;
  transition: transform 180ms ease-out;
}

#lock.open .padlock .shackle {
  transform: translateY(-10px) rotate(-24deg);
}

.padlock .body {
  width: 112px;
  height: 88px;
  border-radius: 14px;
  background: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.padlock .body .hole {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dark-on-accent);
}

.padlock .body .slot {
  width: 7px;
  height: 18px;
  margin-top: -2px;
  border-radius: 0 0 3px 3px;
  background: var(--dark-on-accent);
}

.lock-caption {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: var(--muted);
  opacity: 0.9;
  transition: color 150ms linear, opacity 150ms linear;
}

#lock.open .lock-caption {
  color: var(--accent);
  opacity: 1;
}

@media (max-width: 680px) {
  #lock.lock-wrap {
    width: 100%;
    min-height: 180px;
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid var(--panel-border);
  }
}
