html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.tq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(220px, 84vw);
  background: #fff7e6;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.tq__cap {
  margin: 0;
  align-self: flex-start;
  color: #17141a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.tq__input {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 4px 8px;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  font-weight: 600;
  font-size: 13px;
}

.tq__input:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.tq__canvas {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transition: box-shadow 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tq__readout {
  margin: 0;
  color: #17141a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 340px) {
  .tq {
    padding: 12px;
    gap: 4px;
    width: min(200px, 84vw);
  }
  .tq__cap {
    font-size: 10px;
  }
  .tq__input {
    font-size: 12px;
  }
  .tq__canvas {
    width: 64px;
    height: 64px;
  }
  .tq__readout {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tq__canvas {
    transition: none;
  }
}
