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

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

.ce {
  width: 100%;
  max-width: 280px;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.ce__field {
  display: block;
  width: 100%;
}

.ce__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  background: #17141a;
  color: #fff7e6;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  font-family: "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
  text-align: center;
}
.ce__input::placeholder {
  color: rgba(255, 247, 230, 0.5);
}
.ce__input:focus {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
}

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

.ce__chip {
  min-width: 56px;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff7e6;
  color: rgba(23, 20, 26, 0.4);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: color 220ms ease-out;
}

.ce__chip--on {
  color: #17141a;
}

.ce__chip--pulse {
  animation: cePulse 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ce__slash {
  font-weight: 700;
  font-size: 18px;
  color: rgba(23, 20, 26, 0.35);
  transform: scale(0.4);
  opacity: 0;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease-out;
}

.ce__slash--on {
  transform: scale(1);
  opacity: 1;
  color: #17141a;
}

@keyframes cePulse {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.16);
  }
  60% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .ce {
    max-width: 240px;
  }
  .ce__input {
    padding: 8px 12px;
    font-size: 16px;
  }
  .ce__chip {
    min-width: 48px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ce__slash {
    transition: none;
  }
  .ce__chip--pulse {
    animation: none;
  }
  .ce__chip {
    transition: none;
  }
}
