body {
  margin: 0;
  padding: 0;
  background: #111;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  user-select: none;
}
:root {
  /* Keep stimuli close to the legacy desktop size across common displays. */
  --stimulus-size: clamp(280px, 32vmin, 380px);
}
#jspsych-target {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jspsych-display-element {
  text-align: center;
}
.fixation {
  font-size: 64px;
  color: #fff;
}
.stimulus-frame {
  position: relative;
  width: var(--stimulus-size);
  height: calc(var(--stimulus-size) + 70px);
  margin: 0 auto;
}
.choice-label {
  position: absolute;
  top: 0;
  font-size: 42px;
  line-height: 1;
  color: #fff;
  font-weight: 700;
}
.choice-label-left {
  left: 0;
}
.choice-label-right {
  right: 0;
}
.image-stage {
  position: absolute;
  left: 0;
  top: 70px;
  width: var(--stimulus-size);
  height: var(--stimulus-size);
}
.stimulus-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  display: block;
  margin: 0 auto;
}
.instruction-text {
  font-size: 28px;
  line-height: 1.6;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
  white-space: pre-wrap;
}
.feedback-text {
  font-size: 26px;
  line-height: 1.45;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  white-space: pre-wrap;
}
.block-feedback {
  font-size: 28px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.param-form label {
  display: block;
  font-size: 22px;
  margin: 12px 0;
}
.param-form input {
  font-size: 20px;
  padding: 6px 10px;
  margin-left: 10px;
  width: 120px;
}
.param-form button {
  font-size: 24px;
  padding: 10px 40px;
  margin-top: 20px;
  cursor: pointer;
}
