:root {
  color-scheme: light;
  font-family: Inter, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #000;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #fff;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  touch-action: manipulation;
}

button,
input { font: inherit; }

.artboard {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
}

.captcha-button {
  position: absolute;
  z-index: 2;
  top: 33.52%;
  left: 50%;
  width: min(31.343vw, 126px);
  height: 27px;
  margin: 0;
  padding: 0 9px 1px;
  border: 1px solid #494949;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font: 400 18px/25px Inter, Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
}

.captcha-button.is-hidden { display: none; }

.input-bar {
  position: absolute;
  z-index: 3;
  top: 41.3%;
  left: 50%;
  width: min(69.403vw, 279px);
  height: 41px;
  margin: 0;
  background: #f1f1f1;
  transform: translateX(-50%);
}

.input-bar input {
  position: absolute;
  top: 0;
  left: 12px;
  width: calc(100% - 58px);
  height: 41px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #636363;
  caret-color: #000;
  font: 400 22px/41px "PingFang SC", Inter, Arial, sans-serif;
}

.enter-button {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 26px;
  height: 27px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.enter-button img {
  position: absolute;
  top: 2px;
  left: 1px;
  width: 24px;
  height: 23.364px;
  display: block;
  transform: rotate(180deg);
}

.artwork-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.captcha-artwork {
  position: absolute;
  margin: 0;
  background: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
  pointer-events: auto;
}

.captcha-artwork.is-dragging { cursor: grabbing; }

.captcha-artwork img {
  width: 100%;
  display: block;
  object-fit: fill;
  background: #fff;
  pointer-events: none;
  -webkit-user-drag: none;
}

.artwork-caption {
  width: 100%;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  overflow: hidden;
  border: .5px solid #9c9c9c;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font: 400 18px/17px "Libertinus Math", "Times New Roman", serif;
  text-align: center;
  white-space: nowrap;
}

.input-bar.is-invalid { animation: nudge 120ms linear 2; }

@keyframes nudge { 50% { transform: translateX(calc(-50% + 3px)); } }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .input-bar.is-invalid { animation: none; }
}
