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);
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.row {
  display: flex;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fieldLabel {
  color: #17141a;
  font-size: 10px;
  font-weight: 700;
}

.input {
  width: 96px;
  padding: 8px 12px;
  border: none;
  border-radius: 12px;
  background: #fff7e6;
  color: #17141a;
  text-align: center;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(1);
}
.input.is-small {
  font-size: 12px;
}
.input.is-lock {
  font-size: 16px;
}
.input:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.force-fallback .input.is-lock {
  font-size: 12px;
}

.foot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modeLabel {
  color: #17141a;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
}

.simToggle {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.82);
  color: #fff7e6;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease-out;
}
.simToggle:active {
  transform: scale(0.96);
}
.simToggle[aria-pressed=true] {
  background: #c93000;
}
.simToggle:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .row {
    gap: 12px;
  }
  .input {
    width: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .input {
    transition: none;
  }
  .simToggle {
    transition: none;
  }
}
