body {
  background: var(--dark);
}

.frame {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
  padding: 12dvh 8.14% 6dvh;
}

.spacer-top {
  flex: 1.2 1 0;
  min-height: 40px;
}

.house {
  width: min(113px, 28.75%);
  aspect-ratio: 113 / 61;
  flex-shrink: 0;
}

.house img {
  width: 100%;
  height: 100%;
  display: block;
}

.welcome-title {
  margin-top: 2px;
  width: min(329px, 83.7%);
  aspect-ratio: 329 / 33;
  flex-shrink: 0;
}

.welcome-title img {
  width: 100%;
  height: 100%;
  display: block;
}

.spacer-mid {
  flex: 0.55 1 0;
  min-height: 28px;
}

.nickname-label {
  width: min(258px, 65.6%);
  color: var(--green);
  font-size: 16px;
  font-weight: 500;
  line-height: 21px;
  text-align: center;
  flex-shrink: 0;
}

.form-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(285px, 72.5%);
  height: 37px;
  flex-shrink: 0;
}

.nickname-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 37px;
  padding: 0 18px;
  background: transparent;
  border: 2px solid var(--green);
  border-radius: 18.5px;
  color: var(--green);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  outline: none;
}

.nickname-input::placeholder {
  color: rgba(0, 255, 0, 0.35);
}

.nickname-input.is-fail {
  background: #00ff00;
  border-color: #00ff00;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: default;
}

.check-btn {
  flex-shrink: 0;
  min-width: 83px;
  height: 37px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  border: 2px solid var(--green);
  border-radius: 18.5px;
  color: var(--dark);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 21px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}

.check-btn:hover {
  opacity: 0.88;
}

.check-btn:active {
  transform: scale(0.98);
}

.check-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spacer-bottom {
  flex: 1.4 1 0;
  min-height: 48px;
}
