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

.kg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.kg__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.kg__cell {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  outline: none;
  transform: scale(1);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease-out;
}

.kg__cell--active {
  transform: scale(1.14);
  box-shadow: 0 0 0 3px #fff7e6, 0 14px 24px rgba(23, 20, 26, 0.32);
}

.kg__cell:focus-visible {
  box-shadow: 0 0 0 3px #fff7e6, 0 14px 24px rgba(23, 20, 26, 0.32);
}

.kg__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
  padding: 0;
  border: 0;
}

@media (max-width: 340px) {
  .kg__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
  }
  .kg__cell {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kg__cell {
    transition: none;
  }
}
