/* 동체시력 테스트 전용 스타일. 색은 공통 변수를 쓴다. */
.dv-hud {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 10px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dv-hud li {
  flex: 1;
  min-width: 0;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 4px;
  line-height: 1.35;
}
.dv-hud li:last-child {
  flex: 1.5;
}
.dv-hud b {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  white-space: nowrap;
}
.dv-hud .dv-hearts {
  color: var(--wait);
  letter-spacing: 0.08em;
}

.dv-board {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  border: 2px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  overflow: hidden;
  container-type: inline-size;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s;
}
.dv-board[data-state='ok'] {
  border-color: var(--go);
}
.dv-board[data-state='bad'] {
  border-color: var(--wait);
}
@media (max-width: 560px) {
  .dv-board {
    aspect-ratio: 4 / 3;
  }
}

.dv-msg {
  position: absolute;
  left: 0;
  right: 0;
  top: 9%;
  margin: 0;
  padding: 0 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  pointer-events: none;
}
.dv-fix {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}
.dv-start {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  min-width: 9em;
  font-size: 1.05rem;
}
.dv-start:active {
  transform: translate(-50%, -50%) scale(0.98);
}

/* 숫자: 판 폭에 맞춰 크기가 바뀐다(cqw). 지나감은 왼쪽 끝에서 transform 으로 옮긴다. */
.dv-num {
  position: absolute;
  top: 50%;
  margin: 0;
  font-size: 3rem;
  font-size: clamp(2rem, 14cqw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
  pointer-events: none;
}
.dv-num.is-fly {
  left: 0;
  will-change: transform;
}
.dv-num.is-flash {
  left: 50%;
  transform: translate(-50%, -50%);
}
.dv-num.is-mask {
  color: var(--muted);
}
.dv-num.is-ok {
  color: var(--go);
}
.dv-num.is-bad {
  color: var(--wait);
}

.dv-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
}
.dv-form label {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.dv-form .btn {
  flex: none;
  white-space: nowrap;
}
.dv-input {
  width: 9em;
  min-width: 0;
  flex: 0 1 9em;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding: 8px 10px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.dv-input:focus {
  outline: none;
  border-color: var(--brand);
}
.dv-input:disabled,
.dv-form .btn:disabled {
  opacity: 0.5;
}
.dv-feedback {
  min-height: 1.6em;
  margin: 8px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
